@pie-element/graphing-solution-set 6.1.2-next.5 → 6.1.2-next.7
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/author/configure.js +3 -3
- package/dist/author/correct-response.js +1 -1
- package/dist/author/graphing-config.js +1 -1
- package/dist/author/index.d.ts +1 -0
- package/dist/author/index.js +5 -2
- package/dist/author/utils.js +1 -1
- package/dist/browser/{dist-DwjthPEk.js → alert-dialog-Ddk9X-Wg.js} +27292 -32389
- package/dist/browser/alert-dialog-Ddk9X-Wg.js.map +1 -0
- package/dist/browser/author/index.js +2220 -334
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/{browser-DP-DH6tw.js → browser-BQg8KPEc.js} +2 -2
- package/dist/browser/browser-BQg8KPEc.js.map +1 -0
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +39 -40
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/controller/utils.js +1 -1
- package/dist/delivery/index.js +2 -2
- package/dist/delivery/main.js +1 -1
- package/dist/index.iife.js +108 -112
- package/package.json +14 -7
- package/dist/browser/browser-DP-DH6tw.js.map +0 -1
- package/dist/browser/dist-DwjthPEk.js.map +0 -1
|
@@ -1,28 +1,265 @@
|
|
|
1
|
-
import { E as e, g as t, o as n, r,
|
|
2
|
-
import { B as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { createRoot as
|
|
6
|
-
import { Fragment as
|
|
1
|
+
import { E as e, g as t, o as n, r, s as i, t as a, x as o } from "../browser-BQg8KPEc.js";
|
|
2
|
+
import { $ as s, A as c, B as l, D as u, E as d, F as f, G as p, H as m, I as h, J as g, K as _, L as v, M as y, O as b, P as x, Q as S, R as C, V as w, W as T, X as E, Y as D, Z as O, _ as k, a as A, b as ee, c as j, d as M, et as te, f as ne, g as N, h as re, k as ie, l as P, m as F, n as ae, nt as oe, o as se, p as ce, q as le, r as ue, s as de, t as fe, tt as pe, u as me, v as he, x as ge, y as I, z as L } from "../alert-dialog-Ddk9X-Wg.js";
|
|
3
|
+
import * as R from "react";
|
|
4
|
+
import z, { Component as _e, createElement as ve } from "react";
|
|
5
|
+
import { createRoot as ye } from "react-dom/client";
|
|
6
|
+
import { Fragment as be, jsx as B, jsxs as V } from "react/jsx-runtime";
|
|
7
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js
|
|
8
|
+
var xe = v(/*#__PURE__*/ B("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), Se = v(/*#__PURE__*/ B("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), Ce = v(/*#__PURE__*/ B("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
|
|
11
|
+
function we(e) {
|
|
12
|
+
return S("MuiCheckbox", e);
|
|
13
|
+
}
|
|
14
|
+
var Te = O("MuiCheckbox", [
|
|
15
|
+
"root",
|
|
16
|
+
"checked",
|
|
17
|
+
"disabled",
|
|
18
|
+
"indeterminate",
|
|
19
|
+
"colorPrimary",
|
|
20
|
+
"colorSecondary",
|
|
21
|
+
"sizeSmall",
|
|
22
|
+
"sizeMedium"
|
|
23
|
+
]), Ee = (e) => {
|
|
24
|
+
let { classes: t, indeterminate: n, color: r, size: i } = e, a = E({ root: [
|
|
25
|
+
"root",
|
|
26
|
+
n && "indeterminate",
|
|
27
|
+
`color${C(r)}`,
|
|
28
|
+
`size${C(i)}`
|
|
29
|
+
] }, we, t);
|
|
30
|
+
return {
|
|
31
|
+
...t,
|
|
32
|
+
...a
|
|
33
|
+
};
|
|
34
|
+
}, De = _(de, {
|
|
35
|
+
shouldForwardProp: (e) => le(e) || e === "classes",
|
|
36
|
+
name: "MuiCheckbox",
|
|
37
|
+
slot: "Root",
|
|
38
|
+
overridesResolver: (e, t) => {
|
|
39
|
+
let { ownerState: n } = e;
|
|
40
|
+
return [
|
|
41
|
+
t.root,
|
|
42
|
+
n.indeterminate && t.indeterminate,
|
|
43
|
+
t[`size${C(n.size)}`],
|
|
44
|
+
n.color !== "default" && t[`color${C(n.color)}`]
|
|
45
|
+
];
|
|
46
|
+
}
|
|
47
|
+
})(l(({ theme: e }) => ({
|
|
48
|
+
color: (e.vars || e).palette.text.secondary,
|
|
49
|
+
variants: [
|
|
50
|
+
{
|
|
51
|
+
props: {
|
|
52
|
+
color: "default",
|
|
53
|
+
disableRipple: !1
|
|
54
|
+
},
|
|
55
|
+
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity) } }
|
|
56
|
+
},
|
|
57
|
+
...Object.entries(e.palette).filter(y()).map(([t]) => ({
|
|
58
|
+
props: {
|
|
59
|
+
color: t,
|
|
60
|
+
disableRipple: !1
|
|
61
|
+
},
|
|
62
|
+
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity) } }
|
|
63
|
+
})),
|
|
64
|
+
...Object.entries(e.palette).filter(y()).map(([t]) => ({
|
|
65
|
+
props: { color: t },
|
|
66
|
+
style: {
|
|
67
|
+
[`&.${Te.checked}, &.${Te.indeterminate}`]: { color: (e.vars || e).palette[t].main },
|
|
68
|
+
[`&.${Te.disabled}`]: { color: (e.vars || e).palette.action.disabled }
|
|
69
|
+
}
|
|
70
|
+
})),
|
|
71
|
+
{
|
|
72
|
+
props: { disableRipple: !1 },
|
|
73
|
+
style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}))), Oe = /*#__PURE__*/ B(Se, {}), ke = /*#__PURE__*/ B(xe, {}), Ae = /*#__PURE__*/ B(Ce, {}), je = /*#__PURE__*/ R.forwardRef(function(e, t) {
|
|
77
|
+
let n = m({
|
|
78
|
+
props: e,
|
|
79
|
+
name: "MuiCheckbox"
|
|
80
|
+
}), { checkedIcon: r = Oe, color: i = "primary", icon: a = ke, indeterminate: o = !1, indeterminateIcon: c = Ae, inputProps: l, size: u = "medium", disableRipple: d = !1, className: f, slots: p = {}, slotProps: h = {}, ...g } = n, _ = o ? c : a, v = o ? c : r, y = {
|
|
81
|
+
...n,
|
|
82
|
+
disableRipple: d,
|
|
83
|
+
color: i,
|
|
84
|
+
indeterminate: o,
|
|
85
|
+
size: u
|
|
86
|
+
}, b = Ee(y), S = h.input ?? l, [C, w] = L("root", {
|
|
87
|
+
ref: t,
|
|
88
|
+
elementType: De,
|
|
89
|
+
className: s(b.root, f),
|
|
90
|
+
shouldForwardComponentProp: !0,
|
|
91
|
+
externalForwardedProps: {
|
|
92
|
+
slots: p,
|
|
93
|
+
slotProps: h,
|
|
94
|
+
...g
|
|
95
|
+
},
|
|
96
|
+
ownerState: y,
|
|
97
|
+
additionalProps: {
|
|
98
|
+
type: "checkbox",
|
|
99
|
+
icon: /*#__PURE__*/ R.cloneElement(_, { fontSize: _.props.fontSize ?? u }),
|
|
100
|
+
checkedIcon: /*#__PURE__*/ R.cloneElement(v, { fontSize: v.props.fontSize ?? u }),
|
|
101
|
+
disableRipple: d,
|
|
102
|
+
slots: p,
|
|
103
|
+
slotProps: { input: x(typeof S == "function" ? S(y) : S, {
|
|
104
|
+
"data-indeterminate": o,
|
|
105
|
+
"aria-checked": o ? "mixed" : void 0
|
|
106
|
+
}) }
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
return /*#__PURE__*/ B(C, {
|
|
110
|
+
...w,
|
|
111
|
+
classes: b
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
|
|
116
|
+
function Me(e) {
|
|
117
|
+
return S("MuiFormControlLabel", e);
|
|
118
|
+
}
|
|
119
|
+
var H = O("MuiFormControlLabel", [
|
|
120
|
+
"root",
|
|
121
|
+
"labelPlacementStart",
|
|
122
|
+
"labelPlacementTop",
|
|
123
|
+
"labelPlacementBottom",
|
|
124
|
+
"disabled",
|
|
125
|
+
"label",
|
|
126
|
+
"error",
|
|
127
|
+
"required",
|
|
128
|
+
"asterisk"
|
|
129
|
+
]), Ne = (e) => {
|
|
130
|
+
let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
|
|
131
|
+
return E({
|
|
132
|
+
root: [
|
|
133
|
+
"root",
|
|
134
|
+
n && "disabled",
|
|
135
|
+
`labelPlacement${C(r)}`,
|
|
136
|
+
i && "error",
|
|
137
|
+
a && "required"
|
|
138
|
+
],
|
|
139
|
+
label: ["label", n && "disabled"],
|
|
140
|
+
asterisk: ["asterisk", i && "error"]
|
|
141
|
+
}, Me, t);
|
|
142
|
+
}, Pe = _("label", {
|
|
143
|
+
name: "MuiFormControlLabel",
|
|
144
|
+
slot: "Root",
|
|
145
|
+
overridesResolver: (e, t) => {
|
|
146
|
+
let { ownerState: n } = e;
|
|
147
|
+
return [
|
|
148
|
+
{ [`& .${H.label}`]: t.label },
|
|
149
|
+
t.root,
|
|
150
|
+
t[`labelPlacement${C(n.labelPlacement)}`]
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
})(l(({ theme: e }) => ({
|
|
154
|
+
display: "inline-flex",
|
|
155
|
+
alignItems: "center",
|
|
156
|
+
cursor: "pointer",
|
|
157
|
+
verticalAlign: "middle",
|
|
158
|
+
WebkitTapHighlightColor: "transparent",
|
|
159
|
+
marginLeft: -11,
|
|
160
|
+
marginRight: 16,
|
|
161
|
+
[`&.${H.disabled}`]: { cursor: "default" },
|
|
162
|
+
[`& .${H.label}`]: { [`&.${H.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
|
|
163
|
+
variants: [
|
|
164
|
+
{
|
|
165
|
+
props: { labelPlacement: "start" },
|
|
166
|
+
style: {
|
|
167
|
+
flexDirection: "row-reverse",
|
|
168
|
+
marginRight: -11
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
props: { labelPlacement: "top" },
|
|
173
|
+
style: { flexDirection: "column-reverse" }
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
props: { labelPlacement: "bottom" },
|
|
177
|
+
style: { flexDirection: "column" }
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
props: ({ labelPlacement: e }) => e === "start" || e === "top" || e === "bottom",
|
|
181
|
+
style: { marginLeft: 16 }
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}))), Fe = _("span", {
|
|
185
|
+
name: "MuiFormControlLabel",
|
|
186
|
+
slot: "Asterisk"
|
|
187
|
+
})(l(({ theme: e }) => ({ [`&.${H.error}`]: { color: (e.vars || e).palette.error.main } }))), Ie = /*#__PURE__*/ R.forwardRef(function(e, t) {
|
|
188
|
+
let n = m({
|
|
189
|
+
props: e,
|
|
190
|
+
name: "MuiFormControlLabel"
|
|
191
|
+
}), { checked: r, className: i, componentsProps: a = {}, control: o, disabled: l, disableTypography: u, inputRef: d, label: f, labelPlacement: p = "end", name: h, onChange: g, required: _, slots: v = {}, slotProps: y = {}, value: x, ...S } = n, C = b(), w = l ?? o.props.disabled ?? C?.disabled, T = _ ?? o.props.required, E = {
|
|
192
|
+
disabled: w,
|
|
193
|
+
required: T
|
|
194
|
+
};
|
|
195
|
+
[
|
|
196
|
+
"checked",
|
|
197
|
+
"name",
|
|
198
|
+
"onChange",
|
|
199
|
+
"value",
|
|
200
|
+
"inputRef"
|
|
201
|
+
].forEach((e) => {
|
|
202
|
+
o.props[e] === void 0 && n[e] !== void 0 && (E[e] = n[e]);
|
|
203
|
+
});
|
|
204
|
+
let D = c({
|
|
205
|
+
props: n,
|
|
206
|
+
muiFormControl: C,
|
|
207
|
+
states: ["error"]
|
|
208
|
+
}), O = {
|
|
209
|
+
...n,
|
|
210
|
+
disabled: w,
|
|
211
|
+
labelPlacement: p,
|
|
212
|
+
required: T,
|
|
213
|
+
error: D.error
|
|
214
|
+
}, k = Ne(O), [A, ee] = L("typography", {
|
|
215
|
+
elementType: I,
|
|
216
|
+
externalForwardedProps: {
|
|
217
|
+
slots: v,
|
|
218
|
+
slotProps: {
|
|
219
|
+
...a,
|
|
220
|
+
...y
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
ownerState: O
|
|
224
|
+
}), j = f;
|
|
225
|
+
return j != null && j.type !== I && !u && (j = /*#__PURE__*/ B(A, {
|
|
226
|
+
component: "span",
|
|
227
|
+
...ee,
|
|
228
|
+
className: s(k.label, ee?.className),
|
|
229
|
+
children: j
|
|
230
|
+
})), /*#__PURE__*/ V(Pe, {
|
|
231
|
+
className: s(k.root, i),
|
|
232
|
+
ownerState: O,
|
|
233
|
+
ref: t,
|
|
234
|
+
...S,
|
|
235
|
+
children: [/*#__PURE__*/ R.cloneElement(o, E), T ? /*#__PURE__*/ V("div", { children: [j, /*#__PURE__*/ V(Fe, {
|
|
236
|
+
ownerState: O,
|
|
237
|
+
"aria-hidden": !0,
|
|
238
|
+
className: k.asterisk,
|
|
239
|
+
children: [" ", "*"]
|
|
240
|
+
})] }) : j]
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
//#endregion
|
|
7
244
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/formGroupClasses.js
|
|
8
|
-
function
|
|
9
|
-
return
|
|
245
|
+
function Le(e) {
|
|
246
|
+
return S("MuiFormGroup", e);
|
|
10
247
|
}
|
|
11
|
-
|
|
248
|
+
O("MuiFormGroup", [
|
|
12
249
|
"root",
|
|
13
250
|
"row",
|
|
14
251
|
"error"
|
|
15
252
|
]);
|
|
16
253
|
//#endregion
|
|
17
254
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/FormGroup.js
|
|
18
|
-
var
|
|
255
|
+
var Re = (e) => {
|
|
19
256
|
let { classes: t, row: n, error: r } = e;
|
|
20
|
-
return
|
|
257
|
+
return E({ root: [
|
|
21
258
|
"root",
|
|
22
259
|
n && "row",
|
|
23
260
|
r && "error"
|
|
24
|
-
] },
|
|
25
|
-
},
|
|
261
|
+
] }, Le, t);
|
|
262
|
+
}, ze = _("div", {
|
|
26
263
|
name: "MuiFormGroup",
|
|
27
264
|
slot: "Root",
|
|
28
265
|
overridesResolver: (e, t) => {
|
|
@@ -37,124 +274,1770 @@ var ie = (e) => {
|
|
|
37
274
|
props: { row: !0 },
|
|
38
275
|
style: { flexDirection: "row" }
|
|
39
276
|
}]
|
|
40
|
-
}),
|
|
277
|
+
}), Be = /*#__PURE__*/ R.forwardRef(function(e, t) {
|
|
41
278
|
let n = m({
|
|
42
279
|
props: e,
|
|
43
280
|
name: "MuiFormGroup"
|
|
44
|
-
}), { className: r, row: i = !1, ...a } = n,
|
|
281
|
+
}), { className: r, row: i = !1, ...a } = n, o = c({
|
|
45
282
|
props: n,
|
|
46
|
-
muiFormControl:
|
|
283
|
+
muiFormControl: b(),
|
|
47
284
|
states: ["error"]
|
|
48
|
-
}),
|
|
285
|
+
}), l = {
|
|
49
286
|
...n,
|
|
50
287
|
row: i,
|
|
51
|
-
error:
|
|
288
|
+
error: o.error
|
|
52
289
|
};
|
|
53
|
-
return /*#__PURE__*/
|
|
54
|
-
className:
|
|
55
|
-
ownerState:
|
|
290
|
+
return /*#__PURE__*/ B(ze, {
|
|
291
|
+
className: s(Re(l).root, r),
|
|
292
|
+
ownerState: l,
|
|
56
293
|
ref: t,
|
|
57
294
|
...a
|
|
58
295
|
});
|
|
59
296
|
});
|
|
60
297
|
//#endregion
|
|
298
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
|
|
299
|
+
function Ve(e) {
|
|
300
|
+
return S("MuiInputAdornment", e);
|
|
301
|
+
}
|
|
302
|
+
var He = O("MuiInputAdornment", [
|
|
303
|
+
"root",
|
|
304
|
+
"filled",
|
|
305
|
+
"standard",
|
|
306
|
+
"outlined",
|
|
307
|
+
"positionStart",
|
|
308
|
+
"positionEnd",
|
|
309
|
+
"disablePointerEvents",
|
|
310
|
+
"hiddenLabel",
|
|
311
|
+
"sizeSmall"
|
|
312
|
+
]), Ue, We = (e, t) => {
|
|
313
|
+
let { ownerState: n } = e;
|
|
314
|
+
return [
|
|
315
|
+
t.root,
|
|
316
|
+
t[`position${C(n.position)}`],
|
|
317
|
+
n.disablePointerEvents === !0 && t.disablePointerEvents,
|
|
318
|
+
t[n.variant]
|
|
319
|
+
];
|
|
320
|
+
}, Ge = (e) => {
|
|
321
|
+
let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
|
|
322
|
+
return E({ root: [
|
|
323
|
+
"root",
|
|
324
|
+
n && "disablePointerEvents",
|
|
325
|
+
i && `position${C(i)}`,
|
|
326
|
+
o,
|
|
327
|
+
r && "hiddenLabel",
|
|
328
|
+
a && `size${C(a)}`
|
|
329
|
+
] }, Ve, t);
|
|
330
|
+
}, Ke = _("div", {
|
|
331
|
+
name: "MuiInputAdornment",
|
|
332
|
+
slot: "Root",
|
|
333
|
+
overridesResolver: We
|
|
334
|
+
})(l(({ theme: e }) => ({
|
|
335
|
+
display: "flex",
|
|
336
|
+
maxHeight: "2em",
|
|
337
|
+
alignItems: "center",
|
|
338
|
+
whiteSpace: "nowrap",
|
|
339
|
+
color: (e.vars || e).palette.action.active,
|
|
340
|
+
variants: [
|
|
341
|
+
{
|
|
342
|
+
props: { variant: "filled" },
|
|
343
|
+
style: { [`&.${He.positionStart}&:not(.${He.hiddenLabel})`]: { marginTop: 16 } }
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
props: { position: "start" },
|
|
347
|
+
style: { marginRight: 8 }
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
props: { position: "end" },
|
|
351
|
+
style: { marginLeft: 8 }
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
props: { disablePointerEvents: !0 },
|
|
355
|
+
style: { pointerEvents: "none" }
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
}))), qe = /*#__PURE__*/ R.forwardRef(function(e, t) {
|
|
359
|
+
let n = m({
|
|
360
|
+
props: e,
|
|
361
|
+
name: "MuiInputAdornment"
|
|
362
|
+
}), { children: r, className: i, component: a = "div", disablePointerEvents: o = !1, disableTypography: c = !1, position: l, variant: u, ...d } = n, f = b() || {}, p = u;
|
|
363
|
+
u && f.variant, f && !p && (p = f.variant);
|
|
364
|
+
let h = {
|
|
365
|
+
...n,
|
|
366
|
+
hiddenLabel: f.hiddenLabel,
|
|
367
|
+
size: f.size,
|
|
368
|
+
disablePointerEvents: o,
|
|
369
|
+
position: l,
|
|
370
|
+
variant: p
|
|
371
|
+
}, g = Ge(h);
|
|
372
|
+
return /*#__PURE__*/ B(ie.Provider, {
|
|
373
|
+
value: null,
|
|
374
|
+
children: /*#__PURE__*/ B(Ke, {
|
|
375
|
+
as: a,
|
|
376
|
+
ownerState: h,
|
|
377
|
+
className: s(g.root, i),
|
|
378
|
+
ref: t,
|
|
379
|
+
...d,
|
|
380
|
+
children: typeof r == "string" && !c ? /*#__PURE__*/ B(I, {
|
|
381
|
+
color: "textSecondary",
|
|
382
|
+
children: r
|
|
383
|
+
}) : /*#__PURE__*/ V(R.Fragment, { children: [l === "start" ? Ue ||= /*#__PURE__*/ B("span", {
|
|
384
|
+
className: "notranslate",
|
|
385
|
+
"aria-hidden": !0,
|
|
386
|
+
children: ""
|
|
387
|
+
}) : null, r] })
|
|
388
|
+
})
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
//#endregion
|
|
61
392
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/radioGroupClasses.js
|
|
62
|
-
function
|
|
63
|
-
return
|
|
393
|
+
function Je(e) {
|
|
394
|
+
return S("MuiRadioGroup", e);
|
|
64
395
|
}
|
|
65
|
-
|
|
396
|
+
O("MuiRadioGroup", [
|
|
66
397
|
"root",
|
|
67
398
|
"row",
|
|
68
399
|
"error"
|
|
69
400
|
]);
|
|
70
401
|
//#endregion
|
|
71
402
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroup.js
|
|
72
|
-
var
|
|
403
|
+
var Ye = (e) => {
|
|
73
404
|
let { classes: t, row: n, error: r } = e;
|
|
74
|
-
return
|
|
405
|
+
return E({ root: [
|
|
75
406
|
"root",
|
|
76
407
|
n && "row",
|
|
77
408
|
r && "error"
|
|
78
|
-
] },
|
|
79
|
-
},
|
|
80
|
-
let { actions: n, children: r, className: i, defaultValue: a, name: o, onChange:
|
|
81
|
-
controlled:
|
|
409
|
+
] }, Je, t);
|
|
410
|
+
}, Xe = /*#__PURE__*/ R.forwardRef(function(e, t) {
|
|
411
|
+
let { actions: n, children: r, className: i, defaultValue: a, name: o, onChange: c, value: l, ...u } = e, d = R.useRef(null), p = Ye(e), [m, g] = f({
|
|
412
|
+
controlled: l,
|
|
82
413
|
default: a,
|
|
83
414
|
name: "RadioGroup"
|
|
84
415
|
});
|
|
85
|
-
|
|
86
|
-
let e =
|
|
87
|
-
e ||=
|
|
416
|
+
R.useImperativeHandle(n, () => ({ focus: () => {
|
|
417
|
+
let e = d.current.querySelector("input:not(:disabled):checked");
|
|
418
|
+
e ||= d.current.querySelector("input:not(:disabled)"), e && e.focus();
|
|
88
419
|
} }), []);
|
|
89
|
-
let
|
|
420
|
+
let _ = w(t, d), v = h(o), y = R.useMemo(() => ({
|
|
90
421
|
name: v,
|
|
91
422
|
onChange(e) {
|
|
92
|
-
|
|
423
|
+
g(e.target.value), c && c(e, e.target.value);
|
|
93
424
|
},
|
|
94
425
|
value: m
|
|
95
426
|
}), [
|
|
96
427
|
v,
|
|
97
|
-
|
|
98
|
-
|
|
428
|
+
c,
|
|
429
|
+
g,
|
|
99
430
|
m
|
|
100
431
|
]);
|
|
101
|
-
return /*#__PURE__*/
|
|
432
|
+
return /*#__PURE__*/ B(se.Provider, {
|
|
102
433
|
value: y,
|
|
103
|
-
children: /*#__PURE__*/
|
|
434
|
+
children: /*#__PURE__*/ B(Be, {
|
|
104
435
|
role: "radiogroup",
|
|
105
|
-
ref:
|
|
106
|
-
className:
|
|
107
|
-
...
|
|
436
|
+
ref: _,
|
|
437
|
+
className: s(p.root, i),
|
|
438
|
+
...u,
|
|
108
439
|
children: r
|
|
109
440
|
})
|
|
110
441
|
});
|
|
111
|
-
})
|
|
112
|
-
|
|
442
|
+
});
|
|
443
|
+
//#endregion
|
|
444
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
|
|
445
|
+
function Ze(e) {
|
|
446
|
+
return S("MuiSwitch", e);
|
|
447
|
+
}
|
|
448
|
+
var U = O("MuiSwitch", [
|
|
449
|
+
"root",
|
|
450
|
+
"edgeStart",
|
|
451
|
+
"edgeEnd",
|
|
452
|
+
"switchBase",
|
|
453
|
+
"colorPrimary",
|
|
454
|
+
"colorSecondary",
|
|
455
|
+
"sizeSmall",
|
|
456
|
+
"sizeMedium",
|
|
457
|
+
"checked",
|
|
458
|
+
"disabled",
|
|
459
|
+
"input",
|
|
460
|
+
"thumb",
|
|
461
|
+
"track"
|
|
462
|
+
]), Qe = (e) => {
|
|
463
|
+
let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = E({
|
|
464
|
+
root: [
|
|
465
|
+
"root",
|
|
466
|
+
n && `edge${C(n)}`,
|
|
467
|
+
`size${C(r)}`
|
|
468
|
+
],
|
|
469
|
+
switchBase: [
|
|
470
|
+
"switchBase",
|
|
471
|
+
`color${C(i)}`,
|
|
472
|
+
a && "checked",
|
|
473
|
+
o && "disabled"
|
|
474
|
+
],
|
|
475
|
+
thumb: ["thumb"],
|
|
476
|
+
track: ["track"],
|
|
477
|
+
input: ["input"]
|
|
478
|
+
}, Ze, t);
|
|
479
|
+
return {
|
|
480
|
+
...t,
|
|
481
|
+
...s
|
|
482
|
+
};
|
|
483
|
+
}, $e = _("span", {
|
|
484
|
+
name: "MuiSwitch",
|
|
485
|
+
slot: "Root",
|
|
486
|
+
overridesResolver: (e, t) => {
|
|
487
|
+
let { ownerState: n } = e;
|
|
488
|
+
return [
|
|
489
|
+
t.root,
|
|
490
|
+
n.edge && t[`edge${C(n.edge)}`],
|
|
491
|
+
t[`size${C(n.size)}`]
|
|
492
|
+
];
|
|
493
|
+
}
|
|
494
|
+
})({
|
|
495
|
+
display: "inline-flex",
|
|
496
|
+
width: 58,
|
|
497
|
+
height: 38,
|
|
498
|
+
overflow: "hidden",
|
|
499
|
+
padding: 12,
|
|
500
|
+
boxSizing: "border-box",
|
|
501
|
+
position: "relative",
|
|
502
|
+
flexShrink: 0,
|
|
503
|
+
zIndex: 0,
|
|
504
|
+
verticalAlign: "middle",
|
|
505
|
+
"@media print": { colorAdjust: "exact" },
|
|
506
|
+
variants: [
|
|
507
|
+
{
|
|
508
|
+
props: { edge: "start" },
|
|
509
|
+
style: { marginLeft: -8 }
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
props: { edge: "end" },
|
|
513
|
+
style: { marginRight: -8 }
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
props: { size: "small" },
|
|
517
|
+
style: {
|
|
518
|
+
width: 40,
|
|
519
|
+
height: 24,
|
|
520
|
+
padding: 7,
|
|
521
|
+
[`& .${U.thumb}`]: {
|
|
522
|
+
width: 16,
|
|
523
|
+
height: 16
|
|
524
|
+
},
|
|
525
|
+
[`& .${U.switchBase}`]: {
|
|
526
|
+
padding: 4,
|
|
527
|
+
[`&.${U.checked}`]: { transform: "translateX(16px)" }
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
]
|
|
532
|
+
}), et = _(de, {
|
|
533
|
+
name: "MuiSwitch",
|
|
534
|
+
slot: "SwitchBase",
|
|
535
|
+
overridesResolver: (e, t) => {
|
|
536
|
+
let { ownerState: n } = e;
|
|
537
|
+
return [
|
|
538
|
+
t.switchBase,
|
|
539
|
+
{ [`& .${U.input}`]: t.input },
|
|
540
|
+
n.color !== "default" && t[`color${C(n.color)}`]
|
|
541
|
+
];
|
|
542
|
+
}
|
|
543
|
+
})(l(({ theme: e }) => ({
|
|
544
|
+
position: "absolute",
|
|
545
|
+
top: 0,
|
|
546
|
+
left: 0,
|
|
547
|
+
zIndex: 1,
|
|
548
|
+
color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
|
|
549
|
+
transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
|
|
550
|
+
[`&.${U.checked}`]: { transform: "translateX(20px)" },
|
|
551
|
+
[`&.${U.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
|
|
552
|
+
[`&.${U.checked} + .${U.track}`]: { opacity: .5 },
|
|
553
|
+
[`&.${U.disabled} + .${U.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
|
|
554
|
+
[`& .${U.input}`]: {
|
|
555
|
+
left: "-100%",
|
|
556
|
+
width: "300%"
|
|
557
|
+
}
|
|
558
|
+
})), l(({ theme: e }) => ({
|
|
559
|
+
"&:hover": {
|
|
560
|
+
backgroundColor: e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity),
|
|
561
|
+
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
562
|
+
},
|
|
563
|
+
variants: [...Object.entries(e.palette).filter(y(["light"])).map(([t]) => ({
|
|
564
|
+
props: { color: t },
|
|
565
|
+
style: {
|
|
566
|
+
[`&.${U.checked}`]: {
|
|
567
|
+
color: (e.vars || e).palette[t].main,
|
|
568
|
+
"&:hover": {
|
|
569
|
+
backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
|
|
570
|
+
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
571
|
+
},
|
|
572
|
+
[`&.${U.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
|
|
573
|
+
},
|
|
574
|
+
[`&.${U.checked} + .${U.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
|
|
575
|
+
}
|
|
576
|
+
}))]
|
|
577
|
+
}))), tt = _("span", {
|
|
578
|
+
name: "MuiSwitch",
|
|
579
|
+
slot: "Track"
|
|
580
|
+
})(l(({ theme: e }) => ({
|
|
581
|
+
height: "100%",
|
|
582
|
+
width: "100%",
|
|
583
|
+
borderRadius: 14 / 2,
|
|
584
|
+
boxSizing: "border-box",
|
|
585
|
+
border: "1px solid transparent",
|
|
586
|
+
zIndex: -1,
|
|
587
|
+
transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
|
|
588
|
+
backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
|
|
589
|
+
opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
|
|
590
|
+
}))), nt = _("span", {
|
|
591
|
+
name: "MuiSwitch",
|
|
592
|
+
slot: "Thumb"
|
|
593
|
+
})(l(({ theme: e }) => ({
|
|
594
|
+
boxShadow: (e.vars || e).shadows[1],
|
|
595
|
+
backgroundColor: "currentColor",
|
|
596
|
+
boxSizing: "border-box",
|
|
597
|
+
border: "1px solid transparent",
|
|
598
|
+
width: 20,
|
|
599
|
+
height: 20,
|
|
600
|
+
borderRadius: "50%"
|
|
601
|
+
}))), rt = /*#__PURE__*/ R.forwardRef(function(e, t) {
|
|
602
|
+
let n = m({
|
|
603
|
+
props: e,
|
|
604
|
+
name: "MuiSwitch"
|
|
605
|
+
}), { className: r, color: i = "primary", edge: a = !1, size: o = "medium", sx: c, slots: l = {}, slotProps: u = {}, ...d } = n, f = {
|
|
606
|
+
...n,
|
|
607
|
+
color: i,
|
|
608
|
+
edge: a,
|
|
609
|
+
size: o
|
|
610
|
+
}, p = Qe(f), h = u.input, g = {
|
|
611
|
+
slots: l,
|
|
612
|
+
slotProps: u
|
|
613
|
+
}, [_, v] = L("root", {
|
|
614
|
+
className: s(p.root, r),
|
|
615
|
+
elementType: $e,
|
|
616
|
+
externalForwardedProps: g,
|
|
617
|
+
ownerState: f,
|
|
618
|
+
additionalProps: { sx: c }
|
|
619
|
+
}), [y, b] = L("thumb", {
|
|
620
|
+
className: p.thumb,
|
|
621
|
+
elementType: nt,
|
|
622
|
+
externalForwardedProps: g,
|
|
623
|
+
ownerState: f
|
|
624
|
+
}), S = /*#__PURE__*/ B(y, { ...b }), [C, w] = L("track", {
|
|
625
|
+
className: p.track,
|
|
626
|
+
elementType: tt,
|
|
627
|
+
externalForwardedProps: g,
|
|
628
|
+
ownerState: f
|
|
629
|
+
});
|
|
630
|
+
return /*#__PURE__*/ V(_, {
|
|
631
|
+
...v,
|
|
632
|
+
children: [/*#__PURE__*/ B(et, {
|
|
633
|
+
type: "checkbox",
|
|
634
|
+
icon: S,
|
|
635
|
+
checkedIcon: S,
|
|
636
|
+
ref: t,
|
|
637
|
+
ownerState: f,
|
|
638
|
+
...d,
|
|
639
|
+
classes: {
|
|
640
|
+
...p,
|
|
641
|
+
root: p.switchBase
|
|
642
|
+
},
|
|
643
|
+
slots: {
|
|
644
|
+
...l.switchBase && { root: l.switchBase },
|
|
645
|
+
...l.input && { input: l.input }
|
|
646
|
+
},
|
|
647
|
+
slotProps: {
|
|
648
|
+
...u.switchBase && { root: typeof u.switchBase == "function" ? u.switchBase(f) : u.switchBase },
|
|
649
|
+
input: x(typeof h == "function" ? h(f) : h, { role: "switch" })
|
|
650
|
+
}
|
|
651
|
+
}), /*#__PURE__*/ B(C, { ...w })]
|
|
652
|
+
});
|
|
653
|
+
}), W = /* @__PURE__ */ e(a(), 1), G = /* @__PURE__ */ e(pe(), 1), it = _(Ie)(() => ({ "& .MuiFormControlLabel-label": {
|
|
654
|
+
left: "-5px",
|
|
655
|
+
position: "relative"
|
|
656
|
+
} })), at = _(A)(() => ({ color: `${T.tertiary()} !important` })), ot = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ B(it, {
|
|
657
|
+
value: t,
|
|
658
|
+
control: /* @__PURE__ */ B(at, {
|
|
659
|
+
checked: n,
|
|
660
|
+
onChange: r
|
|
661
|
+
}),
|
|
662
|
+
label: e
|
|
663
|
+
});
|
|
664
|
+
ot.propTypes = {
|
|
665
|
+
label: G.default.string,
|
|
666
|
+
value: G.default.string,
|
|
667
|
+
checked: G.default.bool,
|
|
668
|
+
onChange: G.default.func
|
|
669
|
+
};
|
|
670
|
+
//#endregion
|
|
671
|
+
//#region ../../lib-react/config-ui/dist/tabs/index.js
|
|
672
|
+
var st = _(ne)(() => ({})), ct = class extends z.Component {
|
|
673
|
+
static propTypes = {
|
|
674
|
+
className: G.default.string,
|
|
675
|
+
contentClassName: G.default.string,
|
|
676
|
+
contentStyle: G.default.object,
|
|
677
|
+
children: G.default.oneOfType([G.default.arrayOf(G.default.node), G.default.node]).isRequired
|
|
678
|
+
};
|
|
679
|
+
constructor(e) {
|
|
680
|
+
super(e), this.state = { value: 0 };
|
|
681
|
+
}
|
|
682
|
+
handleChange = (e, t) => {
|
|
683
|
+
this.setState({ value: t });
|
|
684
|
+
};
|
|
685
|
+
render() {
|
|
686
|
+
let { value: e } = this.state, { children: t, className: n, contentClassName: r, contentStyle: i = {} } = this.props;
|
|
687
|
+
return /* @__PURE__ */ V("div", {
|
|
688
|
+
className: n,
|
|
689
|
+
children: [/* @__PURE__ */ B(ce, {
|
|
690
|
+
indicatorColor: "primary",
|
|
691
|
+
value: e,
|
|
692
|
+
onChange: this.handleChange,
|
|
693
|
+
children: z.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ B(st, { label: e.props.title }, t) : null)
|
|
694
|
+
}), /* @__PURE__ */ B("div", {
|
|
695
|
+
className: r,
|
|
696
|
+
style: i,
|
|
697
|
+
children: t[e]
|
|
698
|
+
})]
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
}, lt = _(Ie)(({ theme: e, mini: t }) => ({
|
|
702
|
+
margin: 0,
|
|
703
|
+
marginLeft: 0,
|
|
704
|
+
padding: 0,
|
|
705
|
+
"& .MuiFormControlLabel-label": {
|
|
706
|
+
fontSize: e.typography.fontSize - 1,
|
|
707
|
+
transform: "translate(-4%, 2%)",
|
|
708
|
+
color: "rgba(0,0,0,1.0)",
|
|
709
|
+
...t && {
|
|
710
|
+
marginLeft: e.spacing(1),
|
|
711
|
+
color: D[700],
|
|
712
|
+
fontSize: e.typography.fontSize - 3
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
})), ut = _(je)(({ theme: e, mini: t, error: n }) => ({
|
|
716
|
+
color: `${T.tertiary()} !important`,
|
|
717
|
+
...t && {
|
|
718
|
+
margin: 0,
|
|
719
|
+
padding: 0,
|
|
720
|
+
width: e.spacing(3),
|
|
721
|
+
height: e.spacing(3)
|
|
722
|
+
},
|
|
723
|
+
...n && { color: `${e.palette.error.main} !important` }
|
|
724
|
+
})), dt = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ B(lt, {
|
|
725
|
+
mini: e,
|
|
726
|
+
control: /* @__PURE__ */ B(ut, {
|
|
727
|
+
checked: t,
|
|
728
|
+
onChange: n,
|
|
729
|
+
value: r,
|
|
730
|
+
mini: e,
|
|
731
|
+
error: a
|
|
732
|
+
}),
|
|
733
|
+
label: i
|
|
734
|
+
});
|
|
735
|
+
dt.propTypes = {
|
|
736
|
+
mini: G.default.bool,
|
|
737
|
+
checked: G.default.bool.isRequired,
|
|
738
|
+
onChange: G.default.func.isRequired,
|
|
739
|
+
value: G.default.string,
|
|
740
|
+
label: G.default.string.isRequired,
|
|
741
|
+
error: G.default.bool
|
|
742
|
+
}, dt.defaultProps = {
|
|
743
|
+
value: "",
|
|
744
|
+
mini: !1,
|
|
745
|
+
error: !1
|
|
746
|
+
};
|
|
747
|
+
//#endregion
|
|
748
|
+
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
749
|
+
var ft = (0, W.default)("@pie-lib:config-ui:number-text-field"), pt = _(F)(({ theme: e }) => ({
|
|
750
|
+
marginRight: e.spacing(1),
|
|
751
|
+
"& .MuiInputLabel-root": {
|
|
752
|
+
width: "auto",
|
|
753
|
+
minWidth: "max-content",
|
|
754
|
+
maxWidth: "none",
|
|
755
|
+
whiteSpace: "nowrap",
|
|
756
|
+
overflow: "visible",
|
|
757
|
+
transform: "translate(0, 8px) scale(0.75)",
|
|
758
|
+
transformOrigin: "top left",
|
|
759
|
+
position: "relative"
|
|
760
|
+
},
|
|
761
|
+
"& .MuiInputBase-root, & .MuiInput-root, & .MuiFilledInput-root, & .MuiOutlinedInput-root": {
|
|
762
|
+
height: "auto",
|
|
763
|
+
minHeight: "auto",
|
|
764
|
+
marginTop: 0
|
|
765
|
+
},
|
|
766
|
+
"& .MuiInputBase-input": {
|
|
767
|
+
height: "auto",
|
|
768
|
+
minHeight: "auto",
|
|
769
|
+
padding: "6px 0 7px"
|
|
770
|
+
}
|
|
771
|
+
})), mt = (e, t) => {
|
|
772
|
+
if (!i(e) && !i(t)) return 0;
|
|
773
|
+
if (!i(e) && i(t)) return t;
|
|
774
|
+
if (i(e)) return e;
|
|
775
|
+
}, ht = class extends z.Component {
|
|
776
|
+
static propTypes = {
|
|
777
|
+
disabled: G.default.bool,
|
|
778
|
+
className: G.default.string,
|
|
779
|
+
inputClassName: G.default.string,
|
|
780
|
+
onChange: G.default.func.isRequired,
|
|
781
|
+
value: G.default.number,
|
|
782
|
+
min: G.default.number,
|
|
783
|
+
max: G.default.number,
|
|
784
|
+
label: G.default.string,
|
|
785
|
+
suffix: G.default.string,
|
|
786
|
+
showErrorWhenOutsideRange: G.default.bool,
|
|
787
|
+
disableUnderline: G.default.bool,
|
|
788
|
+
variant: G.default.string
|
|
789
|
+
};
|
|
790
|
+
static defaultProps = { showErrorWhenOutsideRange: !1 };
|
|
791
|
+
constructor(e) {
|
|
792
|
+
super(e);
|
|
793
|
+
let t = this.clamp(e.value);
|
|
794
|
+
this.state = { value: t }, t !== e.value && this.props.onChange({}, t), this.onChange = this.onChange.bind(this);
|
|
795
|
+
}
|
|
796
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
797
|
+
let t = this.clamp(e.value, e.min, e.max);
|
|
798
|
+
this.setState({ value: t });
|
|
799
|
+
}
|
|
800
|
+
clamp(e, t = this.props.min, n = this.props.max) {
|
|
801
|
+
return i(e) ? (i(n) && (e = Math.min(e, n)), i(t) && (e = Math.max(e, t)), e) : mt(t, n);
|
|
802
|
+
}
|
|
803
|
+
onBlur = (e) => {
|
|
804
|
+
let t = e.target.value, n = parseFloat(t);
|
|
805
|
+
ft("rawNumber: ", n);
|
|
806
|
+
let r = this.clamp(n);
|
|
807
|
+
ft("number: ", r), r !== this.state.value && (ft("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
808
|
+
this.props.onChange(e, r);
|
|
809
|
+
}));
|
|
810
|
+
};
|
|
811
|
+
onChange(e) {
|
|
812
|
+
let t = e.target.value;
|
|
813
|
+
this.setState({ value: t });
|
|
814
|
+
}
|
|
815
|
+
errorMessage = () => {
|
|
816
|
+
let { min: e, max: t } = this.props;
|
|
817
|
+
if (e && t) return `The value must be between ${e} and ${t}`;
|
|
818
|
+
if (e) return `The value must be greater than ${e}`;
|
|
819
|
+
if (t) return `The value must be less than ${t}`;
|
|
820
|
+
};
|
|
821
|
+
getError = () => {
|
|
822
|
+
let { value: e } = this.state, t = parseFloat(e);
|
|
823
|
+
if (this.clamp(t) !== t) return this.errorMessage();
|
|
824
|
+
};
|
|
825
|
+
render() {
|
|
826
|
+
let { className: e, label: t, disabled: n, suffix: r, min: i, max: a, inputClassName: o, disableUnderline: s, showErrorWhenOutsideRange: c, variant: l } = this.props, u = c && this.getError();
|
|
827
|
+
return /* @__PURE__ */ B(pt, {
|
|
828
|
+
variant: s ? "filled" : l || "standard",
|
|
829
|
+
inputRef: (e) => {
|
|
830
|
+
this.inputRef = e;
|
|
831
|
+
},
|
|
832
|
+
disabled: n,
|
|
833
|
+
label: t,
|
|
834
|
+
InputLabelProps: { shrink: !0 },
|
|
835
|
+
value: this.state.value,
|
|
836
|
+
error: !!u,
|
|
837
|
+
helperText: u,
|
|
838
|
+
onChange: this.onChange,
|
|
839
|
+
onBlur: this.onBlur,
|
|
840
|
+
onKeyDown: (e) => {
|
|
841
|
+
e.key === "Enter" && this.inputRef && this.inputRef.blur();
|
|
842
|
+
},
|
|
843
|
+
type: "number",
|
|
844
|
+
className: e,
|
|
845
|
+
slotProps: { input: {
|
|
846
|
+
endAdornment: r && /* @__PURE__ */ B(qe, {
|
|
847
|
+
position: "end",
|
|
848
|
+
children: r
|
|
849
|
+
}),
|
|
850
|
+
className: o,
|
|
851
|
+
inputProps: {
|
|
852
|
+
min: i,
|
|
853
|
+
max: a
|
|
854
|
+
}
|
|
855
|
+
} },
|
|
856
|
+
margin: "normal"
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
}, gt = (e) => typeof e == "object" && !!e && typeof e.n == "number" && typeof e.d == "number", K = (e) => {
|
|
860
|
+
if (typeof e == "number") return e;
|
|
861
|
+
if (gt(e)) return (e.s ?? 1) * e.n / e.d;
|
|
862
|
+
let t = String(e).trim(), n = t.match(/^([+-]?\d+)\s*\/\s*([+-]?\d+)$/);
|
|
863
|
+
return n ? Number.parseInt(n[1] ?? "0", 10) / Number.parseInt(n[2] ?? "1", 10) : Number(t);
|
|
864
|
+
}, _t = v(/*#__PURE__*/ B("path", { d: "M19 13H5v-2h14z" }), "Remove"), vt = v(/*#__PURE__*/ B("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add"), yt = _(F)(() => ({
|
|
865
|
+
"& input[type=number]": { MozAppearance: "textfield" },
|
|
866
|
+
"& input[type=number]::-webkit-outer-spin-button": {
|
|
867
|
+
WebkitAppearance: "none",
|
|
868
|
+
margin: 0
|
|
869
|
+
},
|
|
870
|
+
"& input[type=number]::-webkit-inner-spin-button": {
|
|
871
|
+
WebkitAppearance: "none",
|
|
872
|
+
margin: 0
|
|
873
|
+
}
|
|
874
|
+
})), bt = _(ee)(() => ({ padding: "2px" })), xt = (e, t) => {
|
|
875
|
+
if (!i(e) && !i(t)) return 0;
|
|
876
|
+
if (!i(e) && i(t)) return t;
|
|
877
|
+
if (i(e)) return e;
|
|
878
|
+
}, q = class extends z.Component {
|
|
879
|
+
static propTypes = {
|
|
880
|
+
className: G.default.string,
|
|
881
|
+
customValues: G.default.array,
|
|
882
|
+
disabled: G.default.bool,
|
|
883
|
+
error: G.default.bool,
|
|
884
|
+
inputClassName: G.default.string,
|
|
885
|
+
helperText: G.default.string,
|
|
886
|
+
onChange: G.default.func.isRequired,
|
|
887
|
+
onlyIntegersAllowed: G.default.bool,
|
|
888
|
+
value: G.default.any,
|
|
889
|
+
min: G.default.number,
|
|
890
|
+
max: G.default.number,
|
|
891
|
+
step: G.default.number,
|
|
892
|
+
label: G.default.string,
|
|
893
|
+
disableUnderline: G.default.bool,
|
|
894
|
+
textAlign: G.default.string,
|
|
895
|
+
variant: G.default.string,
|
|
896
|
+
type: G.default.string
|
|
897
|
+
};
|
|
898
|
+
static defaultProps = {
|
|
899
|
+
step: 1,
|
|
900
|
+
customValues: [],
|
|
901
|
+
textAlign: "center",
|
|
902
|
+
variant: "standard",
|
|
903
|
+
onlyIntegersAllowed: !1
|
|
904
|
+
};
|
|
905
|
+
constructor(e) {
|
|
906
|
+
super(e);
|
|
907
|
+
let { value: t, currentIndex: n } = this.normalizeValueAndIndex(e.customValues, e.value);
|
|
908
|
+
this.state = {
|
|
909
|
+
value: t,
|
|
910
|
+
currentIndex: n
|
|
911
|
+
}, t !== e.value && this.props.onChange({}, t), this.onChange = this.onChange.bind(this);
|
|
912
|
+
}
|
|
913
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
914
|
+
let { value: t, currentIndex: n } = this.normalizeValueAndIndex(e.customValues, e.value, e.min, e.max);
|
|
915
|
+
this.setState({
|
|
916
|
+
value: t,
|
|
917
|
+
currentIndex: n
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
clamp(e, t = this.props.min, n = this.props.max) {
|
|
921
|
+
let { customValues: r } = this.props;
|
|
922
|
+
return (r || []).length > 0 ? e : i(e) ? (i(n) && (e = Math.min(e, n)), i(t) && (e = Math.max(e, t)), e) : xt(t, n);
|
|
923
|
+
}
|
|
924
|
+
normalizeValueAndIndex = (e, t, n, r) => {
|
|
925
|
+
let { type: i } = this.props, a = this.clamp(t, n, r), o = (e || []).findIndex((e) => e === a);
|
|
926
|
+
if ((e || []).length > 0 && o === -1) {
|
|
927
|
+
let t = i === "text" ? this.getClosestFractionValue(e, a) : this.getClosestValue(e, a);
|
|
928
|
+
return {
|
|
929
|
+
value: t.value,
|
|
930
|
+
currentIndex: t.index
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
return {
|
|
934
|
+
value: a,
|
|
935
|
+
currentIndex: o
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
getClosestValue = (e, t) => e.reduce((e, n, r) => Math.abs(n - t) < Math.abs(e.value - t) ? {
|
|
939
|
+
value: n,
|
|
940
|
+
index: r
|
|
941
|
+
} : e, {
|
|
942
|
+
value: e[0],
|
|
943
|
+
index: 0
|
|
944
|
+
});
|
|
945
|
+
getClosestFractionValue = (e, t) => e.reduce((e, n, r) => Math.abs(K(n) - K(t)) < Math.abs(K(e.value) - K(t)) ? {
|
|
946
|
+
value: n,
|
|
947
|
+
index: r
|
|
948
|
+
} : e, {
|
|
949
|
+
value: e[0],
|
|
950
|
+
index: 0
|
|
951
|
+
});
|
|
952
|
+
getValidFraction = (e) => {
|
|
953
|
+
if (this.isPositiveInteger(e.trim())) return e.trim();
|
|
954
|
+
if (e.trim() === "" || e.trim().split("/").length !== 2) return !1;
|
|
955
|
+
let [t, n] = e.trim().split("/");
|
|
956
|
+
return isNaN(t) || isNaN(n) || (t = parseFloat(t), n = parseFloat(n), !Number.isInteger(t) || !Number.isInteger(n)) || t < 0 || n < 1 ? !1 : t + "/" + n;
|
|
957
|
+
};
|
|
958
|
+
isPositiveInteger = (e) => e >>> 0 === parseFloat(e);
|
|
959
|
+
onBlur = (e) => {
|
|
960
|
+
let { customValues: t, onlyIntegersAllowed: n, type: r } = this.props, { value: i } = e.target;
|
|
961
|
+
r === "text" && (i = this.getValidFraction(i) || this.props.value);
|
|
962
|
+
let a = n ? Math.round(parseFloat(i)) : parseFloat(i);
|
|
963
|
+
r === "text" && (a = i.trim());
|
|
964
|
+
let { value: o, currentIndex: s } = this.normalizeValueAndIndex(t, a);
|
|
965
|
+
this.setState({
|
|
966
|
+
value: o.toString(),
|
|
967
|
+
currentIndex: s
|
|
968
|
+
}, () => this.props.onChange(e, o));
|
|
969
|
+
};
|
|
970
|
+
onChange(e) {
|
|
971
|
+
let { type: t } = this.props, { value: n } = e.target;
|
|
972
|
+
t !== "text" && typeof n == "string" && n.trim() === "" || this.setState({ value: n });
|
|
973
|
+
}
|
|
974
|
+
changeValue(e, t = 1, n = !1) {
|
|
975
|
+
e.preventDefault();
|
|
976
|
+
let { customValues: r, step: i, onlyIntegersAllowed: a, onChange: o } = this.props, { currentIndex: s, value: c } = this.state, l = s + t * 1, u;
|
|
977
|
+
if (r.length > 0) {
|
|
978
|
+
if (l < 0 || l >= r.length) return;
|
|
979
|
+
u = r[l];
|
|
980
|
+
} else {
|
|
981
|
+
let e = ((a ? parseInt(c) : parseFloat(c)) * 1e4 + i * t * 1e4) / 1e4;
|
|
982
|
+
u = this.clamp(e);
|
|
983
|
+
}
|
|
984
|
+
this.setState({
|
|
985
|
+
value: u.toString(),
|
|
986
|
+
currentIndex: l
|
|
987
|
+
}, () => {
|
|
988
|
+
n && o(e, u);
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
render() {
|
|
992
|
+
let { className: e, label: t, disabled: n, error: r, min: a, max: o, customValues: s, inputClassName: c, disableUnderline: l, helperText: u, variant: d, textAlign: f, type: p = "number" } = this.props, { value: m } = this.state, h = e, g = !1, _ = !1;
|
|
993
|
+
return s.length > 0 ? (g = m === s[0], _ = m === s[s.length - 1]) : i(a) && i(o) && (g = m === a, _ = m === o), /* @__PURE__ */ B(yt, {
|
|
994
|
+
variant: d,
|
|
995
|
+
inputRef: (e) => this.inputRef = e,
|
|
996
|
+
disabled: n,
|
|
997
|
+
label: t,
|
|
998
|
+
value: m,
|
|
999
|
+
error: r,
|
|
1000
|
+
helperText: u,
|
|
1001
|
+
onChange: this.onChange,
|
|
1002
|
+
onBlur: this.onBlur,
|
|
1003
|
+
onKeyPress: (e) => {
|
|
1004
|
+
e.key === "Enter" && this.inputRef && this.inputRef.blur();
|
|
1005
|
+
},
|
|
1006
|
+
onKeyDown: (e) => {
|
|
1007
|
+
e.key === "ArrowUp" && this.changeValue(e), e.key === "ArrowDown" && this.changeValue(e, -1);
|
|
1008
|
+
},
|
|
1009
|
+
title: "",
|
|
1010
|
+
type: p,
|
|
1011
|
+
className: h,
|
|
1012
|
+
InputProps: {
|
|
1013
|
+
className: c,
|
|
1014
|
+
disableUnderline: l,
|
|
1015
|
+
startAdornment: /* @__PURE__ */ B(qe, {
|
|
1016
|
+
position: "start",
|
|
1017
|
+
children: /* @__PURE__ */ B(bt, {
|
|
1018
|
+
disabled: n || g,
|
|
1019
|
+
onClick: (e) => this.changeValue(e, -1, !0),
|
|
1020
|
+
size: "large",
|
|
1021
|
+
children: /* @__PURE__ */ B(_t, { fontSize: "small" })
|
|
1022
|
+
})
|
|
1023
|
+
}),
|
|
1024
|
+
endAdornment: /* @__PURE__ */ B(qe, {
|
|
1025
|
+
position: "end",
|
|
1026
|
+
children: /* @__PURE__ */ B(bt, {
|
|
1027
|
+
disabled: n || _,
|
|
1028
|
+
onClick: (e) => this.changeValue(e, 1, !0),
|
|
1029
|
+
size: "large",
|
|
1030
|
+
children: /* @__PURE__ */ B(vt, { fontSize: "small" })
|
|
1031
|
+
})
|
|
1032
|
+
})
|
|
1033
|
+
},
|
|
1034
|
+
inputProps: {
|
|
1035
|
+
style: { textAlign: f },
|
|
1036
|
+
min: a,
|
|
1037
|
+
max: o
|
|
1038
|
+
}
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
//#endregion
|
|
1043
|
+
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
1044
|
+
function J(e) {
|
|
1045
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
1046
|
+
}
|
|
1047
|
+
function St(e, t) {
|
|
1048
|
+
return !e || J(e) ? e : J(e.default) ? e.default : t && J(e[t]) ? e[t] : t && J(e[t]?.default) ? e[t].default : e;
|
|
1049
|
+
}
|
|
1050
|
+
var Ct = St(d, "InputContainer") || St(Et.InputContainer, "InputContainer"), wt = ge, Tt = wt.default, Et = Tt && typeof Tt == "object" ? Tt : wt, Dt = _("div")(({ theme: e, direction: t }) => ({
|
|
1051
|
+
display: "flex",
|
|
1052
|
+
flexWrap: "wrap",
|
|
1053
|
+
paddingLeft: 0,
|
|
1054
|
+
marginTop: e.spacing(1),
|
|
1055
|
+
...t === "vertical" && { flexDirection: "column" }
|
|
1056
|
+
})), Ot = class extends z.Component {
|
|
1057
|
+
static propTypes = {
|
|
1058
|
+
header: G.default.string.isRequired,
|
|
1059
|
+
className: G.default.string,
|
|
1060
|
+
customLabel: G.default.func,
|
|
1061
|
+
opts: G.default.array.isRequired,
|
|
1062
|
+
value: G.default.string,
|
|
1063
|
+
onChange: G.default.func.isRequired,
|
|
1064
|
+
direction: G.default.oneOf(["horizontal", "vertical"])
|
|
1065
|
+
};
|
|
1066
|
+
handleChange = (e) => {
|
|
1067
|
+
this.props.onChange(e.currentTarget.value);
|
|
1068
|
+
};
|
|
1069
|
+
render() {
|
|
1070
|
+
let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
|
|
1071
|
+
label: e,
|
|
1072
|
+
value: e
|
|
1073
|
+
} : e), s = n || ot;
|
|
1074
|
+
return /* @__PURE__ */ B(Ct, {
|
|
1075
|
+
label: e,
|
|
1076
|
+
className: t,
|
|
1077
|
+
children: /* @__PURE__ */ B(Dt, {
|
|
1078
|
+
direction: a,
|
|
1079
|
+
children: o.map((e, t) => /* @__PURE__ */ B(s, {
|
|
1080
|
+
value: e.value,
|
|
1081
|
+
checked: e.value === i,
|
|
1082
|
+
onChange: this.handleChange,
|
|
1083
|
+
label: e.label
|
|
1084
|
+
}, t))
|
|
1085
|
+
})
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
}, kt = G.default.shape({
|
|
1089
|
+
label: G.default.string,
|
|
1090
|
+
value: G.default.string
|
|
1091
|
+
});
|
|
1092
|
+
(class extends z.Component {
|
|
1093
|
+
static propTypes = {
|
|
1094
|
+
header: G.default.string.isRequired,
|
|
1095
|
+
value: G.default.string.isRequired,
|
|
1096
|
+
onChange: G.default.func.isRequired,
|
|
1097
|
+
one: G.default.oneOfType([kt, G.default.string]),
|
|
1098
|
+
two: G.default.oneOfType([kt, G.default.string]),
|
|
1099
|
+
className: G.default.string,
|
|
1100
|
+
customLabel: G.default.func
|
|
1101
|
+
};
|
|
1102
|
+
render() {
|
|
1103
|
+
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
1104
|
+
return /* @__PURE__ */ B(Ot, {
|
|
1105
|
+
customLabel: i,
|
|
1106
|
+
header: n,
|
|
1107
|
+
className: r,
|
|
1108
|
+
opts: [e, t],
|
|
1109
|
+
value: a,
|
|
1110
|
+
onChange: o
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
//#endregion
|
|
1115
|
+
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
1116
|
+
var At = Object.defineProperty, jt = (e, t) => {
|
|
1117
|
+
let n = {};
|
|
1118
|
+
for (var r in e) At(n, r, {
|
|
1119
|
+
get: e[r],
|
|
1120
|
+
enumerable: !0
|
|
1121
|
+
});
|
|
1122
|
+
return t || At(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
1123
|
+
}, Mt = _("div")(() => ({
|
|
1124
|
+
display: "flex",
|
|
1125
|
+
flexDirection: "column",
|
|
1126
|
+
position: "relative"
|
|
1127
|
+
})), Nt = _("div")(() => ({
|
|
1128
|
+
display: "flex",
|
|
1129
|
+
justifyContent: "space-between"
|
|
1130
|
+
})), Pt = _("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), Ft = _("div")(() => ({ flex: "1" })), It = _("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), Lt = class extends z.Component {
|
|
1131
|
+
static propTypes = {
|
|
1132
|
+
mode: G.default.oneOf(["tabbed", "inline"]),
|
|
1133
|
+
secondary: G.default.oneOfType([G.default.arrayOf(G.default.node), G.default.node]),
|
|
1134
|
+
children: G.default.oneOfType([G.default.arrayOf(G.default.node), G.default.node]),
|
|
1135
|
+
dimensions: G.default.object
|
|
1136
|
+
};
|
|
1137
|
+
getConfiguration = () => {
|
|
1138
|
+
let { secondary: e } = this.props;
|
|
1139
|
+
return e?.props?.configuration || e?.props?.children?.props?.configuration || void 0;
|
|
1140
|
+
};
|
|
1141
|
+
render() {
|
|
1142
|
+
let { mode: e, secondary: t, children: n, dimensions: r } = this.props, { minHeight: i, minWidth: a, maxHeight: o, maxWidth: s } = r || {}, c = this.getConfiguration(), l = Object.entries(c || {}).some(([, e]) => !!e?.settings);
|
|
1143
|
+
if (!l) try {
|
|
1144
|
+
l = JSON.stringify(c)?.match(/settings":true/)?.length;
|
|
1145
|
+
} catch (e) {
|
|
1146
|
+
console.log(e.toString());
|
|
1147
|
+
}
|
|
1148
|
+
return /* @__PURE__ */ V(Mt, {
|
|
1149
|
+
style: {
|
|
1150
|
+
minHeight: i,
|
|
1151
|
+
minWidth: a,
|
|
1152
|
+
maxHeight: o,
|
|
1153
|
+
maxWidth: s
|
|
1154
|
+
},
|
|
1155
|
+
children: [
|
|
1156
|
+
e === "inline" && /* @__PURE__ */ V(Nt, { children: [/* @__PURE__ */ B(Ft, {
|
|
1157
|
+
className: "design-container",
|
|
1158
|
+
children: n
|
|
1159
|
+
}), l && /* @__PURE__ */ B(It, {
|
|
1160
|
+
className: "settings-container",
|
|
1161
|
+
children: t
|
|
1162
|
+
})] }),
|
|
1163
|
+
e === "tabbed" && l && /* @__PURE__ */ V(ct, {
|
|
1164
|
+
onChange: this.onTabsChange,
|
|
1165
|
+
contentClassName: "content-container",
|
|
1166
|
+
indicatorColor: "primary",
|
|
1167
|
+
children: [/* @__PURE__ */ B(Pt, {
|
|
1168
|
+
title: "Design",
|
|
1169
|
+
className: "design-container",
|
|
1170
|
+
children: n
|
|
1171
|
+
}), /* @__PURE__ */ B(Pt, {
|
|
1172
|
+
title: "Settings",
|
|
1173
|
+
className: "settings-container",
|
|
1174
|
+
children: t
|
|
1175
|
+
})]
|
|
1176
|
+
}),
|
|
1177
|
+
e === "tabbed" && !l && /* @__PURE__ */ B(Pt, {
|
|
1178
|
+
className: "design-container",
|
|
1179
|
+
children: n
|
|
1180
|
+
})
|
|
1181
|
+
]
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
//#endregion
|
|
1186
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1187
|
+
function Rt() {
|
|
1188
|
+
return Rt = Object.assign ? Object.assign.bind() : function(e) {
|
|
1189
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1190
|
+
var n = arguments[t];
|
|
1191
|
+
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1192
|
+
}
|
|
1193
|
+
return e;
|
|
1194
|
+
}, Rt.apply(null, arguments);
|
|
1195
|
+
}
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1198
|
+
function zt(e, t) {
|
|
1199
|
+
if (e == null) return {};
|
|
1200
|
+
var n = {};
|
|
1201
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
1202
|
+
if (t.indexOf(r) !== -1) continue;
|
|
1203
|
+
n[r] = e[r];
|
|
1204
|
+
}
|
|
1205
|
+
return n;
|
|
1206
|
+
}
|
|
1207
|
+
//#endregion
|
|
1208
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
1209
|
+
function Bt(e, t) {
|
|
1210
|
+
return Bt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1211
|
+
return e.__proto__ = t, e;
|
|
1212
|
+
}, Bt(e, t);
|
|
1213
|
+
}
|
|
1214
|
+
//#endregion
|
|
1215
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
1216
|
+
function Vt(e, t) {
|
|
1217
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Bt(e, t);
|
|
1218
|
+
}
|
|
1219
|
+
//#endregion
|
|
1220
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
1221
|
+
var Ht = (function() {
|
|
1222
|
+
if (typeof Map < "u") return Map;
|
|
1223
|
+
function e(e, t) {
|
|
1224
|
+
var n = -1;
|
|
1225
|
+
return e.some(function(e, r) {
|
|
1226
|
+
return e[0] === t ? (n = r, !0) : !1;
|
|
1227
|
+
}), n;
|
|
1228
|
+
}
|
|
1229
|
+
return function() {
|
|
1230
|
+
function t() {
|
|
1231
|
+
this.__entries__ = [];
|
|
1232
|
+
}
|
|
1233
|
+
return Object.defineProperty(t.prototype, "size", {
|
|
1234
|
+
get: function() {
|
|
1235
|
+
return this.__entries__.length;
|
|
1236
|
+
},
|
|
1237
|
+
enumerable: !0,
|
|
1238
|
+
configurable: !0
|
|
1239
|
+
}), t.prototype.get = function(t) {
|
|
1240
|
+
var n = e(this.__entries__, t), r = this.__entries__[n];
|
|
1241
|
+
return r && r[1];
|
|
1242
|
+
}, t.prototype.set = function(t, n) {
|
|
1243
|
+
var r = e(this.__entries__, t);
|
|
1244
|
+
~r ? this.__entries__[r][1] = n : this.__entries__.push([t, n]);
|
|
1245
|
+
}, t.prototype.delete = function(t) {
|
|
1246
|
+
var n = this.__entries__, r = e(n, t);
|
|
1247
|
+
~r && n.splice(r, 1);
|
|
1248
|
+
}, t.prototype.has = function(t) {
|
|
1249
|
+
return !!~e(this.__entries__, t);
|
|
1250
|
+
}, t.prototype.clear = function() {
|
|
1251
|
+
this.__entries__.splice(0);
|
|
1252
|
+
}, t.prototype.forEach = function(e, t) {
|
|
1253
|
+
t === void 0 && (t = null);
|
|
1254
|
+
for (var n = 0, r = this.__entries__; n < r.length; n++) {
|
|
1255
|
+
var i = r[n];
|
|
1256
|
+
e.call(t, i[1], i[0]);
|
|
1257
|
+
}
|
|
1258
|
+
}, t;
|
|
1259
|
+
}();
|
|
1260
|
+
})(), Ut = typeof window < "u" && typeof document < "u" && window.document === document, Y = (function() {
|
|
1261
|
+
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1262
|
+
})(), Wt = (function() {
|
|
1263
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Y) : function(e) {
|
|
1264
|
+
return setTimeout(function() {
|
|
1265
|
+
return e(Date.now());
|
|
1266
|
+
}, 1e3 / 60);
|
|
1267
|
+
};
|
|
1268
|
+
})(), Gt = 2;
|
|
1269
|
+
function Kt(e, t) {
|
|
1270
|
+
var n = !1, r = !1, i = 0;
|
|
1271
|
+
function a() {
|
|
1272
|
+
n && (n = !1, e()), r && s();
|
|
1273
|
+
}
|
|
1274
|
+
function o() {
|
|
1275
|
+
Wt(a);
|
|
1276
|
+
}
|
|
1277
|
+
function s() {
|
|
1278
|
+
var e = Date.now();
|
|
1279
|
+
if (n) {
|
|
1280
|
+
if (e - i < Gt) return;
|
|
1281
|
+
r = !0;
|
|
1282
|
+
} else n = !0, r = !1, setTimeout(o, t);
|
|
1283
|
+
i = e;
|
|
1284
|
+
}
|
|
1285
|
+
return s;
|
|
1286
|
+
}
|
|
1287
|
+
var qt = 20, Jt = [
|
|
1288
|
+
"top",
|
|
1289
|
+
"right",
|
|
1290
|
+
"bottom",
|
|
1291
|
+
"left",
|
|
1292
|
+
"width",
|
|
1293
|
+
"height",
|
|
1294
|
+
"size",
|
|
1295
|
+
"weight"
|
|
1296
|
+
], Yt = typeof MutationObserver < "u", Xt = function() {
|
|
1297
|
+
function e() {
|
|
1298
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Kt(this.refresh.bind(this), qt);
|
|
1299
|
+
}
|
|
1300
|
+
return e.prototype.addObserver = function(e) {
|
|
1301
|
+
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
1302
|
+
}, e.prototype.removeObserver = function(e) {
|
|
1303
|
+
var t = this.observers_, n = t.indexOf(e);
|
|
1304
|
+
~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_();
|
|
1305
|
+
}, e.prototype.refresh = function() {
|
|
1306
|
+
this.updateObservers_() && this.refresh();
|
|
1307
|
+
}, e.prototype.updateObservers_ = function() {
|
|
1308
|
+
var e = this.observers_.filter(function(e) {
|
|
1309
|
+
return e.gatherActive(), e.hasActive();
|
|
1310
|
+
});
|
|
1311
|
+
return e.forEach(function(e) {
|
|
1312
|
+
return e.broadcastActive();
|
|
1313
|
+
}), e.length > 0;
|
|
1314
|
+
}, e.prototype.connect_ = function() {
|
|
1315
|
+
!Ut || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Yt ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1316
|
+
attributes: !0,
|
|
1317
|
+
childList: !0,
|
|
1318
|
+
characterData: !0,
|
|
1319
|
+
subtree: !0
|
|
1320
|
+
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1321
|
+
}, e.prototype.disconnect_ = function() {
|
|
1322
|
+
!Ut || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
1323
|
+
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
1324
|
+
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
1325
|
+
Jt.some(function(e) {
|
|
1326
|
+
return !!~n.indexOf(e);
|
|
1327
|
+
}) && this.refresh();
|
|
1328
|
+
}, e.getInstance = function() {
|
|
1329
|
+
return this.instance_ ||= new e(), this.instance_;
|
|
1330
|
+
}, e.instance_ = null, e;
|
|
1331
|
+
}(), Zt = (function(e, t) {
|
|
1332
|
+
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
1333
|
+
var i = r[n];
|
|
1334
|
+
Object.defineProperty(e, i, {
|
|
1335
|
+
value: t[i],
|
|
1336
|
+
enumerable: !1,
|
|
1337
|
+
writable: !1,
|
|
1338
|
+
configurable: !0
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
return e;
|
|
1342
|
+
}), X = (function(e) {
|
|
1343
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || Y;
|
|
1344
|
+
}), Qt = ln(0, 0, 0, 0);
|
|
1345
|
+
function $t(e) {
|
|
1346
|
+
return parseFloat(e) || 0;
|
|
1347
|
+
}
|
|
1348
|
+
function en(e) {
|
|
1349
|
+
return [...arguments].slice(1).reduce(function(t, n) {
|
|
1350
|
+
var r = e["border-" + n + "-width"];
|
|
1351
|
+
return t + $t(r);
|
|
1352
|
+
}, 0);
|
|
1353
|
+
}
|
|
1354
|
+
function tn(e) {
|
|
1355
|
+
for (var t = [
|
|
1356
|
+
"top",
|
|
1357
|
+
"right",
|
|
1358
|
+
"bottom",
|
|
1359
|
+
"left"
|
|
1360
|
+
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
1361
|
+
var a = i[r], o = e["padding-" + a];
|
|
1362
|
+
n[a] = $t(o);
|
|
1363
|
+
}
|
|
1364
|
+
return n;
|
|
1365
|
+
}
|
|
1366
|
+
function nn(e) {
|
|
1367
|
+
var t = e.getBBox();
|
|
1368
|
+
return ln(0, 0, t.width, t.height);
|
|
1369
|
+
}
|
|
1370
|
+
function rn(e) {
|
|
1371
|
+
var t = e.clientWidth, n = e.clientHeight;
|
|
1372
|
+
if (!t && !n) return Qt;
|
|
1373
|
+
var r = X(e).getComputedStyle(e), i = tn(r), a = i.left + i.right, o = i.top + i.bottom, s = $t(r.width), c = $t(r.height);
|
|
1374
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= en(r, "left", "right") + a), Math.round(c + o) !== n && (c -= en(r, "top", "bottom") + o)), !on(e)) {
|
|
1375
|
+
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
1376
|
+
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
1377
|
+
}
|
|
1378
|
+
return ln(i.left, i.top, s, c);
|
|
1379
|
+
}
|
|
1380
|
+
var an = (function() {
|
|
1381
|
+
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
1382
|
+
return e instanceof X(e).SVGGraphicsElement;
|
|
1383
|
+
} : function(e) {
|
|
1384
|
+
return e instanceof X(e).SVGElement && typeof e.getBBox == "function";
|
|
1385
|
+
};
|
|
1386
|
+
})();
|
|
1387
|
+
function on(e) {
|
|
1388
|
+
return e === X(e).document.documentElement;
|
|
1389
|
+
}
|
|
1390
|
+
function sn(e) {
|
|
1391
|
+
return Ut ? an(e) ? nn(e) : rn(e) : Qt;
|
|
1392
|
+
}
|
|
1393
|
+
function cn(e) {
|
|
1394
|
+
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
1395
|
+
return Zt(a, {
|
|
1396
|
+
x: t,
|
|
1397
|
+
y: n,
|
|
1398
|
+
width: r,
|
|
1399
|
+
height: i,
|
|
1400
|
+
top: n,
|
|
1401
|
+
right: t + r,
|
|
1402
|
+
bottom: i + n,
|
|
1403
|
+
left: t
|
|
1404
|
+
}), a;
|
|
1405
|
+
}
|
|
1406
|
+
function ln(e, t, n, r) {
|
|
1407
|
+
return {
|
|
1408
|
+
x: e,
|
|
1409
|
+
y: t,
|
|
1410
|
+
width: n,
|
|
1411
|
+
height: r
|
|
1412
|
+
};
|
|
1413
|
+
}
|
|
1414
|
+
var un = function() {
|
|
1415
|
+
function e(e) {
|
|
1416
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ln(0, 0, 0, 0), this.target = e;
|
|
1417
|
+
}
|
|
1418
|
+
return e.prototype.isActive = function() {
|
|
1419
|
+
var e = sn(this.target);
|
|
1420
|
+
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
1421
|
+
}, e.prototype.broadcastRect = function() {
|
|
1422
|
+
var e = this.contentRect_;
|
|
1423
|
+
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
1424
|
+
}, e;
|
|
1425
|
+
}(), dn = function() {
|
|
1426
|
+
function e(e, t) {
|
|
1427
|
+
var n = cn(t);
|
|
1428
|
+
Zt(this, {
|
|
1429
|
+
target: e,
|
|
1430
|
+
contentRect: n
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
return e;
|
|
1434
|
+
}(), fn = function() {
|
|
1435
|
+
function e(e, t, n) {
|
|
1436
|
+
if (this.activeObservations_ = [], this.observations_ = new Ht(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
1437
|
+
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
1438
|
+
}
|
|
1439
|
+
return e.prototype.observe = function(e) {
|
|
1440
|
+
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
1441
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1442
|
+
if (!(e instanceof X(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
1443
|
+
var t = this.observations_;
|
|
1444
|
+
t.has(e) || (t.set(e, new un(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
1445
|
+
}
|
|
1446
|
+
}, e.prototype.unobserve = function(e) {
|
|
1447
|
+
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
1448
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1449
|
+
if (!(e instanceof X(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
1450
|
+
var t = this.observations_;
|
|
1451
|
+
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
1452
|
+
}
|
|
1453
|
+
}, e.prototype.disconnect = function() {
|
|
1454
|
+
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
1455
|
+
}, e.prototype.gatherActive = function() {
|
|
1456
|
+
var e = this;
|
|
1457
|
+
this.clearActive(), this.observations_.forEach(function(t) {
|
|
1458
|
+
t.isActive() && e.activeObservations_.push(t);
|
|
1459
|
+
});
|
|
1460
|
+
}, e.prototype.broadcastActive = function() {
|
|
1461
|
+
if (this.hasActive()) {
|
|
1462
|
+
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
1463
|
+
return new dn(e.target, e.broadcastRect());
|
|
1464
|
+
});
|
|
1465
|
+
this.callback_.call(e, t, e), this.clearActive();
|
|
1466
|
+
}
|
|
1467
|
+
}, e.prototype.clearActive = function() {
|
|
1468
|
+
this.activeObservations_.splice(0);
|
|
1469
|
+
}, e.prototype.hasActive = function() {
|
|
1470
|
+
return this.activeObservations_.length > 0;
|
|
1471
|
+
}, e;
|
|
1472
|
+
}(), pn = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Ht(), mn = function() {
|
|
1473
|
+
function e(t) {
|
|
1474
|
+
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
1475
|
+
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
1476
|
+
var n = new fn(t, Xt.getInstance(), this);
|
|
1477
|
+
pn.set(this, n);
|
|
1478
|
+
}
|
|
1479
|
+
return e;
|
|
1480
|
+
}();
|
|
1481
|
+
[
|
|
1482
|
+
"observe",
|
|
1483
|
+
"unobserve",
|
|
1484
|
+
"disconnect"
|
|
1485
|
+
].forEach(function(e) {
|
|
1486
|
+
mn.prototype[e] = function() {
|
|
1487
|
+
var t;
|
|
1488
|
+
return (t = pn.get(this))[e].apply(t, arguments);
|
|
1489
|
+
};
|
|
1490
|
+
});
|
|
1491
|
+
var hn = (function() {
|
|
1492
|
+
return Y.ResizeObserver === void 0 ? mn : Y.ResizeObserver;
|
|
1493
|
+
})(), gn = [
|
|
1494
|
+
"client",
|
|
1495
|
+
"offset",
|
|
1496
|
+
"scroll",
|
|
1497
|
+
"bounds",
|
|
1498
|
+
"margin"
|
|
1499
|
+
];
|
|
1500
|
+
function _n(e) {
|
|
1501
|
+
var t = [];
|
|
1502
|
+
return gn.forEach(function(n) {
|
|
1503
|
+
e[n] && t.push(n);
|
|
1504
|
+
}), t;
|
|
1505
|
+
}
|
|
1506
|
+
function vn(e, t) {
|
|
1507
|
+
var n = {};
|
|
1508
|
+
if (t.indexOf("client") > -1 && (n.client = {
|
|
1509
|
+
top: e.clientTop,
|
|
1510
|
+
left: e.clientLeft,
|
|
1511
|
+
width: e.clientWidth,
|
|
1512
|
+
height: e.clientHeight
|
|
1513
|
+
}), t.indexOf("offset") > -1 && (n.offset = {
|
|
1514
|
+
top: e.offsetTop,
|
|
1515
|
+
left: e.offsetLeft,
|
|
1516
|
+
width: e.offsetWidth,
|
|
1517
|
+
height: e.offsetHeight
|
|
1518
|
+
}), t.indexOf("scroll") > -1 && (n.scroll = {
|
|
1519
|
+
top: e.scrollTop,
|
|
1520
|
+
left: e.scrollLeft,
|
|
1521
|
+
width: e.scrollWidth,
|
|
1522
|
+
height: e.scrollHeight
|
|
1523
|
+
}), t.indexOf("bounds") > -1) {
|
|
1524
|
+
var r = e.getBoundingClientRect();
|
|
1525
|
+
n.bounds = {
|
|
1526
|
+
top: r.top,
|
|
1527
|
+
right: r.right,
|
|
1528
|
+
bottom: r.bottom,
|
|
1529
|
+
left: r.left,
|
|
1530
|
+
width: r.width,
|
|
1531
|
+
height: r.height
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
if (t.indexOf("margin") > -1) {
|
|
1535
|
+
var i = getComputedStyle(e);
|
|
1536
|
+
n.margin = {
|
|
1537
|
+
top: i ? parseInt(i.marginTop) : 0,
|
|
1538
|
+
right: i ? parseInt(i.marginRight) : 0,
|
|
1539
|
+
bottom: i ? parseInt(i.marginBottom) : 0,
|
|
1540
|
+
left: i ? parseInt(i.marginLeft) : 0
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
return n;
|
|
1544
|
+
}
|
|
1545
|
+
function yn(e) {
|
|
1546
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
1547
|
+
}
|
|
1548
|
+
function bn(e) {
|
|
1549
|
+
return function(t) {
|
|
1550
|
+
var n, r;
|
|
1551
|
+
return r = n = /*#__PURE__*/ function(n) {
|
|
1552
|
+
Vt(r, n);
|
|
1553
|
+
function r() {
|
|
1554
|
+
var t, r = [...arguments];
|
|
1555
|
+
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
1556
|
+
entry: {},
|
|
1557
|
+
client: {},
|
|
1558
|
+
offset: {},
|
|
1559
|
+
scroll: {},
|
|
1560
|
+
bounds: {},
|
|
1561
|
+
margin: {}
|
|
1562
|
+
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
1563
|
+
var r = vn(t._node, e || _n(t.props));
|
|
1564
|
+
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
1565
|
+
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
1566
|
+
});
|
|
1567
|
+
}, t._handleRef = function(e) {
|
|
1568
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = yn(t._node);
|
|
1569
|
+
var n = t.props.innerRef;
|
|
1570
|
+
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
1571
|
+
}, t;
|
|
1572
|
+
}
|
|
1573
|
+
var i = r.prototype;
|
|
1574
|
+
return i.componentDidMount = function() {
|
|
1575
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new hn(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(vn(this._node, e || _n(this.props))));
|
|
1576
|
+
}, i.componentWillUnmount = function() {
|
|
1577
|
+
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
1578
|
+
}, i.render = function() {
|
|
1579
|
+
var e = this.props;
|
|
1580
|
+
return e.innerRef, e.onResize, ve(t, Rt({}, zt(e, ["innerRef", "onResize"]), {
|
|
1581
|
+
measureRef: this._handleRef,
|
|
1582
|
+
measure: this.measure,
|
|
1583
|
+
contentRect: this.state.contentRect
|
|
1584
|
+
}));
|
|
1585
|
+
}, r;
|
|
1586
|
+
}(_e), n.propTypes = {
|
|
1587
|
+
client: G.default.bool,
|
|
1588
|
+
offset: G.default.bool,
|
|
1589
|
+
scroll: G.default.bool,
|
|
1590
|
+
bounds: G.default.bool,
|
|
1591
|
+
margin: G.default.bool,
|
|
1592
|
+
innerRef: G.default.oneOfType([G.default.object, G.default.func]),
|
|
1593
|
+
onResize: G.default.func
|
|
1594
|
+
}, r;
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
var xn = bn()(function(e) {
|
|
1598
|
+
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
1599
|
+
return i({
|
|
1600
|
+
measure: t,
|
|
1601
|
+
measureRef: n,
|
|
1602
|
+
contentRect: r
|
|
1603
|
+
});
|
|
1604
|
+
});
|
|
1605
|
+
xn.displayName = "Measure", xn.propTypes.children = G.default.func;
|
|
1606
|
+
//#endregion
|
|
1607
|
+
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
1608
|
+
var Sn = _("div")(() => ({
|
|
1609
|
+
backgroundColor: T.white(),
|
|
1610
|
+
border: `2px solid ${T.border()}`,
|
|
1611
|
+
display: "flex",
|
|
1612
|
+
flexDirection: "column",
|
|
1613
|
+
justifyContent: "flex-start",
|
|
1614
|
+
minWidth: "275px",
|
|
1615
|
+
maxWidth: "300px",
|
|
1616
|
+
padding: "20px 4px 4px 20px",
|
|
1617
|
+
zIndex: 99
|
|
1618
|
+
})), Cn = class extends z.Component {
|
|
1619
|
+
static propTypes = {
|
|
1620
|
+
className: G.default.string,
|
|
1621
|
+
children: G.default.oneOfType([G.default.arrayOf(G.default.node), G.default.node]).isRequired
|
|
1622
|
+
};
|
|
1623
|
+
static defaultProps = {};
|
|
1624
|
+
render() {
|
|
1625
|
+
let { className: e, children: t } = this.props;
|
|
1626
|
+
return /* @__PURE__ */ B(Sn, {
|
|
1627
|
+
className: e,
|
|
1628
|
+
children: t
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
}, wn = g({
|
|
1632
|
+
typography: { fontFamily: "inherit" },
|
|
1633
|
+
components: { MuiButton: { styleOverrides: { contained: {
|
|
1634
|
+
backgroundColor: "#e0e0e0",
|
|
1635
|
+
color: "#000000",
|
|
1636
|
+
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
1637
|
+
} } } }
|
|
1638
|
+
}), Tn = class extends z.Component {
|
|
1639
|
+
static propTypes = {
|
|
1640
|
+
children: G.default.oneOfType([
|
|
1641
|
+
G.default.string,
|
|
1642
|
+
G.default.arrayOf(G.default.element),
|
|
1643
|
+
G.default.element
|
|
1644
|
+
]),
|
|
1645
|
+
className: G.default.string,
|
|
1646
|
+
dimensions: G.default.object,
|
|
1647
|
+
settings: G.default.element,
|
|
1648
|
+
sidePanelMinWidth: G.default.number,
|
|
1649
|
+
hideSettings: G.default.bool,
|
|
1650
|
+
extraCSSRules: G.default.shape({
|
|
1651
|
+
names: G.default.arrayOf(G.default.string),
|
|
1652
|
+
rules: G.default.string
|
|
1653
|
+
})
|
|
1654
|
+
};
|
|
1655
|
+
static defaultProps = {
|
|
1656
|
+
sidePanelMinWidth: 1135,
|
|
1657
|
+
hideSettings: !1,
|
|
1658
|
+
dimensions: {}
|
|
1659
|
+
};
|
|
1660
|
+
constructor(...e) {
|
|
1661
|
+
super(...e), this.state = { layoutMode: void 0 };
|
|
1662
|
+
}
|
|
1663
|
+
onResize = (e) => {
|
|
1664
|
+
let { bounds: t } = e, { sidePanelMinWidth: n, dimensions: r } = this.props, { maxWidth: i } = r || {}, a = t.width > n && (!i || i > n) ? "inline" : "tabbed";
|
|
1665
|
+
a !== this.state.layoutMode && this.setState({ layoutMode: a });
|
|
1666
|
+
};
|
|
1667
|
+
render() {
|
|
1668
|
+
return /* @__PURE__ */ B(te, {
|
|
1669
|
+
injectFirst: !0,
|
|
1670
|
+
children: /* @__PURE__ */ B(p, {
|
|
1671
|
+
theme: wn,
|
|
1672
|
+
children: /* @__PURE__ */ B(xn, {
|
|
1673
|
+
bounds: !0,
|
|
1674
|
+
onResize: this.onResize,
|
|
1675
|
+
children: ({ measureRef: e }) => {
|
|
1676
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ B(Cn, {
|
|
1677
|
+
className: "settings-box",
|
|
1678
|
+
children: n
|
|
1679
|
+
}) : n;
|
|
1680
|
+
return /* @__PURE__ */ V("div", {
|
|
1681
|
+
ref: e,
|
|
1682
|
+
className: "main-container extraCSSRules",
|
|
1683
|
+
children: [a?.rules ? /* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ B(Lt, {
|
|
1684
|
+
mode: o,
|
|
1685
|
+
secondary: s,
|
|
1686
|
+
dimensions: i,
|
|
1687
|
+
children: t
|
|
1688
|
+
})]
|
|
1689
|
+
});
|
|
1690
|
+
}
|
|
1691
|
+
})
|
|
1692
|
+
})
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
}, En = bn("bounds")(Tn), Dn = /* @__PURE__ */ jt({
|
|
1696
|
+
ConfigLayout: () => En,
|
|
1697
|
+
LayoutContents: () => Lt
|
|
1698
|
+
}), On = _("div")(() => ({
|
|
1699
|
+
display: "flex",
|
|
1700
|
+
width: "100%",
|
|
1701
|
+
justifyContent: "space-between"
|
|
1702
|
+
})), kn = _(u)(({ theme: e }) => ({
|
|
1703
|
+
color: "rgba(0, 0, 0, 0.89)",
|
|
1704
|
+
fontSize: e.typography.fontSize,
|
|
1705
|
+
paddingTop: e.spacing(2)
|
|
1706
|
+
})), An = _(rt)(({ checked: e }) => ({
|
|
1707
|
+
"&.Mui-checked .MuiSwitch-thumb": { color: `${T.tertiary()} !important` },
|
|
1708
|
+
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${T.tertiaryLight()} !important` },
|
|
1709
|
+
"& .MuiSwitch-track": { backgroundColor: e ? `${T.tertiaryLight()} !important` : void 0 }
|
|
1710
|
+
})), jn = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ V(On, { children: [/* @__PURE__ */ B(kn, { children: n }), /* @__PURE__ */ B(An, {
|
|
1711
|
+
checked: e,
|
|
1712
|
+
disabled: t,
|
|
1713
|
+
onChange: (e) => r(e.target.checked)
|
|
1714
|
+
})] });
|
|
1715
|
+
jn.propTypes = {
|
|
1716
|
+
checked: G.default.bool,
|
|
1717
|
+
disabled: G.default.bool,
|
|
1718
|
+
label: G.default.string.isRequired,
|
|
1719
|
+
toggle: G.default.func.isRequired
|
|
1720
|
+
};
|
|
1721
|
+
//#endregion
|
|
1722
|
+
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
1723
|
+
var Mn = _(Ie)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
1724
|
+
color: "rgba(0, 0, 0, 0.89)",
|
|
1725
|
+
fontSize: e.typography.fontSize - 2,
|
|
1726
|
+
left: "-5px",
|
|
1727
|
+
position: "relative"
|
|
1728
|
+
} })), Nn = _(A)(() => ({ color: `${T.tertiary()} !important` })), Pn = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ B(Mn, {
|
|
1729
|
+
value: t,
|
|
1730
|
+
control: /* @__PURE__ */ B(Nn, {
|
|
1731
|
+
checked: n,
|
|
1732
|
+
onChange: r
|
|
1733
|
+
}),
|
|
1734
|
+
label: e
|
|
1735
|
+
});
|
|
1736
|
+
Pn.propTypes = {
|
|
1737
|
+
label: G.default.string,
|
|
1738
|
+
value: G.default.string,
|
|
1739
|
+
checked: G.default.bool,
|
|
1740
|
+
onChange: G.default.func
|
|
1741
|
+
};
|
|
1742
|
+
//#endregion
|
|
1743
|
+
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
1744
|
+
var Fn = (0, W.default)("pie-lib:config-ui:settings:panel"), In = {
|
|
1745
|
+
label: G.default.string,
|
|
1746
|
+
value: G.default.string
|
|
1747
|
+
}, Z = {
|
|
1748
|
+
label: G.default.string,
|
|
1749
|
+
value: G.default.string,
|
|
1750
|
+
onChange: G.default.func
|
|
1751
|
+
}, Ln = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ B(dt, {
|
|
1752
|
+
checked: t,
|
|
1753
|
+
label: e,
|
|
1754
|
+
onChange: (e) => {
|
|
1755
|
+
n(e.target.checked);
|
|
1756
|
+
}
|
|
1757
|
+
});
|
|
1758
|
+
Ln.propTypes = {
|
|
1759
|
+
label: G.default.string,
|
|
1760
|
+
value: G.default.bool,
|
|
1761
|
+
onChange: G.default.func
|
|
1762
|
+
};
|
|
1763
|
+
var Rn = _(Ot)(({ theme: e }) => ({
|
|
1764
|
+
marginTop: e.spacing(.5),
|
|
1765
|
+
paddingBottom: e.spacing(.5),
|
|
1766
|
+
width: "100%",
|
|
1767
|
+
"& > label": {
|
|
1768
|
+
color: "rgba(0, 0, 0, 0.89)",
|
|
1769
|
+
transform: "translate(0, 10px) scale(1)",
|
|
1770
|
+
fontSize: "18px",
|
|
1771
|
+
marginTop: e.spacing(2.5)
|
|
1772
|
+
},
|
|
1773
|
+
"& > div": { marginTop: e.spacing(2.5) }
|
|
1774
|
+
})), zn = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ B(Rn, {
|
|
1775
|
+
direction: "horizontal",
|
|
1776
|
+
customLabel: Pn,
|
|
1777
|
+
value: t,
|
|
1778
|
+
header: e,
|
|
1779
|
+
opts: r,
|
|
1780
|
+
onChange: n
|
|
1781
|
+
});
|
|
1782
|
+
zn.propTypes = {
|
|
1783
|
+
...Z,
|
|
1784
|
+
choices: G.default.arrayOf(G.default.shape(In))
|
|
1785
|
+
};
|
|
1786
|
+
var Bn = zn, Vn = _("p")(({ theme: e }) => ({
|
|
1787
|
+
margin: 0,
|
|
1788
|
+
fontSize: e.typography.fontSize
|
|
1789
|
+
})), Hn = _(N)(({ theme: e }) => ({
|
|
1790
|
+
marginTop: e.spacing(.5),
|
|
1791
|
+
border: "2px solid lightgrey",
|
|
1792
|
+
padding: `0 ${e.spacing(1)}`,
|
|
1793
|
+
borderRadius: "4px"
|
|
1794
|
+
})), Un = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
1795
|
+
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
1796
|
+
return /* @__PURE__ */ V("div", { children: [e && /* @__PURE__ */ B(Vn, { children: e }), /* @__PURE__ */ B(Hn, {
|
|
1797
|
+
value: t || r && r[0],
|
|
1798
|
+
onChange: ({ target: e }) => n(e.value),
|
|
1799
|
+
input: /* @__PURE__ */ B(he, { id: `dropdown-${e}` }),
|
|
1800
|
+
disableUnderline: !0,
|
|
1801
|
+
MenuProps: { transitionDuration: {
|
|
1802
|
+
enter: 225,
|
|
1803
|
+
exit: 195
|
|
1804
|
+
} },
|
|
1805
|
+
children: r.map((e, t) => /* @__PURE__ */ B(re, {
|
|
1806
|
+
value: a(e),
|
|
1807
|
+
children: i(e)
|
|
1808
|
+
}, t))
|
|
1809
|
+
})] });
|
|
1810
|
+
};
|
|
1811
|
+
Un.propTypes = {
|
|
1812
|
+
...Z,
|
|
1813
|
+
choices: G.default.arrayOf(G.default.string)
|
|
1814
|
+
};
|
|
1815
|
+
var Wn = _(I)(({ theme: e }) => ({
|
|
1816
|
+
marginRight: e.spacing(3),
|
|
1817
|
+
marginTop: e.spacing(1)
|
|
1818
|
+
})), Gn = ({ label: e }) => /* @__PURE__ */ B(Wn, { children: e }), Kn = _(ht)(({ theme: e }) => ({
|
|
1819
|
+
width: "35%",
|
|
1820
|
+
marginRight: e.spacing(3),
|
|
1821
|
+
marginTop: e.spacing(1),
|
|
1822
|
+
"& .MuiInputBase-root": {
|
|
1823
|
+
marginTop: e.spacing(.5),
|
|
1824
|
+
border: "2px solid lightgrey",
|
|
1825
|
+
borderRadius: "4px",
|
|
1826
|
+
padding: `0 ${e.spacing(1)}`,
|
|
1827
|
+
backgroundColor: "transparent"
|
|
1828
|
+
}
|
|
1829
|
+
})), qn = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ B(Kn, {
|
|
1830
|
+
variant: "standard",
|
|
1831
|
+
label: e || "Label",
|
|
1832
|
+
value: t,
|
|
1833
|
+
max: a,
|
|
1834
|
+
min: i,
|
|
1835
|
+
onChange: (e, t) => n(t),
|
|
1836
|
+
suffix: r,
|
|
1837
|
+
showErrorWhenOutsideRange: !0,
|
|
1838
|
+
disableUnderline: !0
|
|
1839
|
+
});
|
|
1840
|
+
qn.propTypes = {
|
|
1841
|
+
...Z,
|
|
1842
|
+
suffix: G.default.string,
|
|
1843
|
+
min: G.default.number,
|
|
1844
|
+
max: G.default.number,
|
|
1845
|
+
value: G.default.number
|
|
1846
|
+
}, Gn.propTypes = { ...Z };
|
|
1847
|
+
var Jn = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ B(jn, {
|
|
1848
|
+
label: t,
|
|
1849
|
+
checked: !!n,
|
|
1850
|
+
disabled: !!e,
|
|
1851
|
+
toggle: r
|
|
1852
|
+
});
|
|
1853
|
+
Jn.propTypes = {
|
|
1854
|
+
...Z,
|
|
1855
|
+
value: G.default.bool
|
|
1856
|
+
};
|
|
1857
|
+
var Yn = {
|
|
1858
|
+
toggle: Jn,
|
|
1859
|
+
radio: Bn,
|
|
1860
|
+
dropdown: Un,
|
|
1861
|
+
numberField: qn,
|
|
1862
|
+
checkbox: Ln,
|
|
1863
|
+
textField: Gn
|
|
1864
|
+
}, Xn = _("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), Zn = _("div")(({ theme: e }) => ({
|
|
1865
|
+
color: "#495B8F",
|
|
1866
|
+
fontSize: e.typography.fontSize + 2,
|
|
1867
|
+
fontWeight: 600,
|
|
1868
|
+
marginBottom: e.spacing(1)
|
|
1869
|
+
})), Qn = _("p")(({ theme: e }) => ({
|
|
1870
|
+
fontSize: e.typography.fontSize,
|
|
1871
|
+
marginBottom: 0
|
|
1872
|
+
})), $n = (e) => {
|
|
1873
|
+
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, s = (e, n, r) => {
|
|
1874
|
+
let { isConfigProperty: s, ...c } = o(e, r || n), l = o(s ? i : t, n), u = {
|
|
1875
|
+
...c,
|
|
1876
|
+
key: n,
|
|
1877
|
+
value: l
|
|
1878
|
+
}, d = Yn[u.type];
|
|
1879
|
+
return /* @__PURE__ */ B(d, {
|
|
1880
|
+
...u,
|
|
1881
|
+
onChange: (e) => a(n, e, s)
|
|
1882
|
+
}, n);
|
|
1883
|
+
}, c = (e, t) => {
|
|
1884
|
+
let n = e[t];
|
|
1885
|
+
if (!n) return null;
|
|
1886
|
+
let { type: r, label: i, fields: a, choices: o } = n;
|
|
1887
|
+
return r === "numberFields" ? /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B(Qn, { children: i }), Object.keys(a).map((n) => s(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", { children: i }), Object.keys(o).map((n) => s(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : s(e, t);
|
|
1888
|
+
};
|
|
1889
|
+
return /* @__PURE__ */ V(Xn, { children: [/* @__PURE__ */ B(Zn, { children: n }), Object.keys(r).map((e) => c(r, e))] });
|
|
1890
|
+
};
|
|
1891
|
+
$n.propTypes = {
|
|
1892
|
+
model: G.default.object,
|
|
1893
|
+
label: G.default.string,
|
|
1894
|
+
group: G.default.object,
|
|
1895
|
+
configuration: G.default.object,
|
|
1896
|
+
onChange: G.default.func
|
|
1897
|
+
};
|
|
1898
|
+
var er = class extends z.Component {
|
|
1899
|
+
static propTypes = {
|
|
1900
|
+
model: G.default.object,
|
|
1901
|
+
configuration: G.default.object,
|
|
1902
|
+
groups: G.default.object,
|
|
1903
|
+
onChangeModel: G.default.func,
|
|
1904
|
+
onChangeConfiguration: G.default.func,
|
|
1905
|
+
modal: G.default.object
|
|
1906
|
+
};
|
|
1907
|
+
static defaultProps = {
|
|
1908
|
+
onChangeModel: () => {},
|
|
1909
|
+
onChangeConfiguration: () => {}
|
|
1910
|
+
};
|
|
1911
|
+
change = (e, t, r = !1) => {
|
|
1912
|
+
Fn("[changeModel]", e, t);
|
|
1913
|
+
let { onChangeModel: i, onChangeConfiguration: a } = this.props, o = { ...this.props.model }, s = { ...this.props.configuration };
|
|
1914
|
+
r ? (n(s, e, t), a(s, e)) : (n(o, e, t), i(o, e));
|
|
1915
|
+
};
|
|
1916
|
+
render() {
|
|
1917
|
+
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
1918
|
+
return Fn("render:", t), /* @__PURE__ */ V("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ B($n, {
|
|
1919
|
+
label: r,
|
|
1920
|
+
model: t,
|
|
1921
|
+
configuration: n,
|
|
1922
|
+
group: e[r],
|
|
1923
|
+
onChange: this.change
|
|
1924
|
+
}, r) : null), r] });
|
|
1925
|
+
}
|
|
1926
|
+
}, tr = /* @__PURE__ */ jt({
|
|
1927
|
+
Panel: () => er,
|
|
1928
|
+
checkbox: () => lr,
|
|
1929
|
+
checkboxes: () => ur,
|
|
1930
|
+
dropdown: () => or,
|
|
1931
|
+
numberField: () => sr,
|
|
1932
|
+
numberFields: () => cr,
|
|
1933
|
+
radio: () => ar,
|
|
1934
|
+
textField: () => nr,
|
|
1935
|
+
toggle: () => rr
|
|
1936
|
+
}), nr = (e, t = !0) => ({
|
|
1937
|
+
label: e,
|
|
1938
|
+
type: "textField",
|
|
1939
|
+
isConfigProperty: t
|
|
1940
|
+
}), rr = (e, t = !1, n = !1) => ({
|
|
1941
|
+
type: "toggle",
|
|
1942
|
+
label: e,
|
|
1943
|
+
isConfigProperty: t,
|
|
1944
|
+
disabled: n
|
|
1945
|
+
}), ir = (e) => typeof e == "string" ? {
|
|
1946
|
+
label: e,
|
|
1947
|
+
value: e
|
|
1948
|
+
} : e, ar = function() {
|
|
1949
|
+
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
1950
|
+
return {
|
|
1951
|
+
type: "radio",
|
|
1952
|
+
label: e,
|
|
1953
|
+
choices: t && t.map((e) => ir(e)),
|
|
1954
|
+
isConfigProperty: n
|
|
1955
|
+
};
|
|
1956
|
+
}, or = (e, t, n = !1) => ({
|
|
1957
|
+
type: "dropdown",
|
|
1958
|
+
label: e,
|
|
1959
|
+
choices: t,
|
|
1960
|
+
isConfigProperty: n
|
|
1961
|
+
}), sr = (e, t, n = !1) => ({
|
|
1962
|
+
...t,
|
|
1963
|
+
label: e,
|
|
1964
|
+
type: "numberField",
|
|
1965
|
+
isConfigProperty: n
|
|
1966
|
+
}), cr = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
1967
|
+
t[e] = sr(t[e].label, t[e], n);
|
|
1968
|
+
}), {
|
|
1969
|
+
type: "numberFields",
|
|
1970
|
+
label: e,
|
|
1971
|
+
fields: t
|
|
1972
|
+
}), lr = (e, t, n = !1) => ({
|
|
1973
|
+
...t,
|
|
1974
|
+
label: e,
|
|
1975
|
+
type: "checkbox",
|
|
1976
|
+
isConfigProperty: n
|
|
1977
|
+
}), ur = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
1978
|
+
t[e] = lr(t[e].label, t[e], n);
|
|
1979
|
+
}), {
|
|
1980
|
+
type: "checkboxes",
|
|
1981
|
+
label: e,
|
|
1982
|
+
choices: t
|
|
1983
|
+
});
|
|
1984
|
+
//#endregion
|
|
1985
|
+
//#region ../../lib-react/config-ui/dist/index.js
|
|
1986
|
+
function dr(e) {
|
|
1987
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
1988
|
+
}
|
|
1989
|
+
function fr(e, t) {
|
|
1990
|
+
return !e || dr(e) ? e : dr(e.default) ? e.default : t && dr(e[t]) ? e[t] : t && dr(e[t]?.default) ? e[t].default : e;
|
|
1991
|
+
}
|
|
1992
|
+
var pr = fr(d, "InputContainer") || fr(gr.InputContainer, "InputContainer"), mr = ge, hr = mr.default, gr = hr && typeof hr == "object" ? hr : mr;
|
|
1993
|
+
//#endregion
|
|
1994
|
+
//#region ../../lib-react/graphing-solution-set/dist/grid-setup.js
|
|
1995
|
+
function _r(e) {
|
|
113
1996
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
114
1997
|
}
|
|
115
|
-
function
|
|
116
|
-
return !e ||
|
|
1998
|
+
function vr(e, t) {
|
|
1999
|
+
return !e || _r(e) ? e : _r(e.default) ? e.default : t && _r(e[t]) ? e[t] : t && _r(e[t]?.default) ? e[t].default : e;
|
|
117
2000
|
}
|
|
118
|
-
var
|
|
2001
|
+
var yr = vr(d, "InputContainer") || vr(Sr.InputContainer, "InputContainer"), br = ge, xr = br.default, Sr = xr && typeof xr == "object" ? xr : br, Cr = _("div")(() => ({ width: "450px" })), wr = _("div")(() => ({
|
|
119
2002
|
display: "flex",
|
|
120
2003
|
flexDirection: "column",
|
|
121
2004
|
width: "100%"
|
|
122
|
-
})),
|
|
2005
|
+
})), Tr = _("div")(() => ({
|
|
123
2006
|
display: "flex",
|
|
124
2007
|
flexDirection: "column",
|
|
125
2008
|
alignItems: "center"
|
|
126
|
-
})),
|
|
2009
|
+
})), Er = _("div")(() => ({
|
|
127
2010
|
display: "flex",
|
|
128
2011
|
justifyContent: "space-around",
|
|
129
2012
|
alignItems: "center"
|
|
130
|
-
})),
|
|
2013
|
+
})), Dr = _("div")(({ theme: e }) => ({
|
|
131
2014
|
width: "130px",
|
|
132
2015
|
margin: `${e.spacing(1)} ${e.spacing(.5)}`
|
|
133
|
-
})),
|
|
2016
|
+
})), Q = _("div")(({ theme: e }) => ({
|
|
134
2017
|
width: "160px",
|
|
135
2018
|
margin: `${e.spacing(1)} ${e.spacing(.5)}`,
|
|
136
2019
|
"& .MuiFormControl-root": { width: "100%" }
|
|
137
|
-
})),
|
|
2020
|
+
})), Or = _("div")(({ theme: e }) => ({
|
|
138
2021
|
width: "230px",
|
|
139
2022
|
margin: `${e.spacing(1)} ${e.spacing(.5)}`,
|
|
140
2023
|
"& .MuiFormControl-root": { width: "100%" }
|
|
141
|
-
})),
|
|
2024
|
+
})), kr = _(I)(({ theme: e }) => ({
|
|
142
2025
|
fontStyle: "italic",
|
|
143
2026
|
margin: `${e.spacing(1)} 0`
|
|
144
|
-
})),
|
|
2027
|
+
})), Ar = _("div")(() => ({
|
|
145
2028
|
display: "flex",
|
|
146
2029
|
justifyContent: "space-between",
|
|
147
2030
|
alignItems: "center"
|
|
148
|
-
})),
|
|
2031
|
+
})), jr = _(I)(() => ({ color: T.disabled() })), Mr = _("div")(({ theme: e }) => ({ paddingTop: e.spacing(2) })), Nr = (e) => {
|
|
149
2032
|
let { disabled: t, displayedFields: n, labelValue: r, labelValues: i, gridValue: a, gridValues: o, onChange: s } = e, { labelStep: c = {}, step: l = {} } = n;
|
|
150
|
-
return /* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ V(Tr, { children: [l && l.enabled && /* @__PURE__ */ B(Q, { children: /* @__PURE__ */ B(q, {
|
|
151
2034
|
label: l.label || "",
|
|
152
2035
|
value: a,
|
|
153
2036
|
customValues: o,
|
|
154
2037
|
variant: "outlined",
|
|
155
2038
|
disabled: t,
|
|
156
2039
|
onChange: (e, t) => s("step", t)
|
|
157
|
-
}) }), c && c.enabled && /* @__PURE__ */
|
|
2040
|
+
}) }), c && c.enabled && /* @__PURE__ */ B(Q, { children: /* @__PURE__ */ B(q, {
|
|
158
2041
|
label: c.label || "",
|
|
159
2042
|
value: r,
|
|
160
2043
|
customValues: i,
|
|
@@ -163,23 +2046,23 @@ var de = ue(s, "InputContainer") || ue(pe.InputContainer, "InputContainer"), fe
|
|
|
163
2046
|
onChange: (e, t) => s("labelStep", t)
|
|
164
2047
|
}) })] });
|
|
165
2048
|
};
|
|
166
|
-
|
|
167
|
-
disabled:
|
|
168
|
-
displayedFields:
|
|
169
|
-
labelValue:
|
|
170
|
-
labelValues:
|
|
171
|
-
gridValue:
|
|
172
|
-
gridValues:
|
|
173
|
-
onChange:
|
|
2049
|
+
Nr.propTypes = {
|
|
2050
|
+
disabled: G.default.bool,
|
|
2051
|
+
displayedFields: G.default.object,
|
|
2052
|
+
labelValue: G.default.number,
|
|
2053
|
+
labelValues: G.default.array,
|
|
2054
|
+
gridValue: G.default.number,
|
|
2055
|
+
gridValues: G.default.array,
|
|
2056
|
+
onChange: G.default.func
|
|
174
2057
|
};
|
|
175
|
-
var
|
|
2058
|
+
var Pr = (e) => {
|
|
176
2059
|
let { disabled: t, displayedFields: n, displayHeader: r, label: i, maxValue: a, minValue: o, onChange: s, type: c } = e, { axisLabel: l = {}, min: u = {}, max: d = {} } = n;
|
|
177
|
-
return /* @__PURE__ */
|
|
178
|
-
r && /* @__PURE__ */
|
|
2060
|
+
return /* @__PURE__ */ V(Tr, { children: [
|
|
2061
|
+
r && /* @__PURE__ */ V(I, {
|
|
179
2062
|
variant: "subtitle2",
|
|
180
|
-
children: [/* @__PURE__ */
|
|
2063
|
+
children: [/* @__PURE__ */ B("i", { children: c === "domain" ? "x" : "y" }), "-axis"]
|
|
181
2064
|
}),
|
|
182
|
-
u && u.enabled && /* @__PURE__ */
|
|
2065
|
+
u && u.enabled && /* @__PURE__ */ B(Q, { children: /* @__PURE__ */ B(q, {
|
|
183
2066
|
label: u.label || "",
|
|
184
2067
|
value: o,
|
|
185
2068
|
min: -1e4,
|
|
@@ -188,7 +2071,7 @@ var Y = (e) => {
|
|
|
188
2071
|
disabled: t,
|
|
189
2072
|
onChange: (e, t) => s("min", t)
|
|
190
2073
|
}) }),
|
|
191
|
-
d && d.enabled && /* @__PURE__ */
|
|
2074
|
+
d && d.enabled && /* @__PURE__ */ B(Q, { children: /* @__PURE__ */ B(q, {
|
|
192
2075
|
label: d.label || "",
|
|
193
2076
|
value: a,
|
|
194
2077
|
min: o + .05,
|
|
@@ -197,9 +2080,9 @@ var Y = (e) => {
|
|
|
197
2080
|
disabled: t,
|
|
198
2081
|
onChange: (e, t) => s("max", t)
|
|
199
2082
|
}) }),
|
|
200
|
-
l && l.enabled && /* @__PURE__ */
|
|
2083
|
+
l && l.enabled && /* @__PURE__ */ B(Q, { children: /* @__PURE__ */ B(yr, {
|
|
201
2084
|
label: l.label || "",
|
|
202
|
-
children: /* @__PURE__ */
|
|
2085
|
+
children: /* @__PURE__ */ B(Mr, { children: /* @__PURE__ */ B(M, {
|
|
203
2086
|
onChange: (e) => s("axisLabel", e),
|
|
204
2087
|
markup: i || "",
|
|
205
2088
|
charactersLimit: 5,
|
|
@@ -214,28 +2097,28 @@ var Y = (e) => {
|
|
|
214
2097
|
}) })
|
|
215
2098
|
] });
|
|
216
2099
|
};
|
|
217
|
-
|
|
218
|
-
disabled:
|
|
219
|
-
displayedFields:
|
|
220
|
-
displayHeader:
|
|
221
|
-
label:
|
|
222
|
-
maxValue:
|
|
223
|
-
minValue:
|
|
224
|
-
type:
|
|
225
|
-
onChange:
|
|
2100
|
+
Pr.propTypes = {
|
|
2101
|
+
disabled: G.default.bool,
|
|
2102
|
+
displayedFields: G.default.object,
|
|
2103
|
+
displayHeader: G.default.bool,
|
|
2104
|
+
label: G.default.string,
|
|
2105
|
+
maxValue: G.default.number,
|
|
2106
|
+
minValue: G.default.number,
|
|
2107
|
+
type: G.default.string,
|
|
2108
|
+
onChange: G.default.func
|
|
226
2109
|
};
|
|
227
|
-
var
|
|
2110
|
+
var Fr = (e) => {
|
|
228
2111
|
let { domain: t, displayedFields: n = {}, gridValues: r = {}, includeAxes: i, labelValues: a = {}, onChange: o, onChangeView: s, range: c, size: l, sizeConstraints: u, standardGrid: d } = e, f = {
|
|
229
2112
|
min: 2,
|
|
230
2113
|
max: 41
|
|
231
|
-
}, { axisLabel: p = {}, dimensionsEnabled: m, includeAxesEnabled: h, labelStep: g = {}, min: _ = {}, max: v = {}, standardGridEnabled:
|
|
232
|
-
step:
|
|
2114
|
+
}, { axisLabel: p = {}, dimensionsEnabled: m, includeAxesEnabled: h, labelStep: g = {}, min: _ = {}, max: v = {}, standardGridEnabled: y, step: b = {} } = n || {}, x = _.enabled || v.enabled || p.enabled || b.enabled || g.enabled, S = {
|
|
2115
|
+
step: b,
|
|
233
2116
|
labelStep: g
|
|
234
|
-
},
|
|
2117
|
+
}, C = {
|
|
235
2118
|
min: _,
|
|
236
2119
|
max: v,
|
|
237
2120
|
axisLabel: p
|
|
238
|
-
},
|
|
2121
|
+
}, w = (e) => {
|
|
239
2122
|
let n = (e) => {
|
|
240
2123
|
let n = e === "domain" ? t : c;
|
|
241
2124
|
return {
|
|
@@ -244,19 +2127,19 @@ var Ce = (e) => {
|
|
|
244
2127
|
step: 1,
|
|
245
2128
|
labelStep: 0
|
|
246
2129
|
};
|
|
2130
|
+
}, r = {
|
|
2131
|
+
...c,
|
|
2132
|
+
...e ? { labelStep: 1 } : n("range")
|
|
2133
|
+
}, i = {
|
|
2134
|
+
...t,
|
|
2135
|
+
...e ? { labelStep: 1 } : n("domain")
|
|
247
2136
|
};
|
|
248
2137
|
o({
|
|
249
2138
|
includeAxes: e,
|
|
250
|
-
range:
|
|
251
|
-
|
|
252
|
-
...e ? { labelStep: 1 } : n("range")
|
|
253
|
-
},
|
|
254
|
-
domain: {
|
|
255
|
-
...t,
|
|
256
|
-
...e ? { labelStep: 1 } : n("domain")
|
|
257
|
-
}
|
|
2139
|
+
range: r,
|
|
2140
|
+
domain: i
|
|
258
2141
|
});
|
|
259
|
-
},
|
|
2142
|
+
}, T = (e) => {
|
|
260
2143
|
o({
|
|
261
2144
|
standardGrid: e,
|
|
262
2145
|
range: {
|
|
@@ -268,115 +2151,115 @@ var Ce = (e) => {
|
|
|
268
2151
|
height: l.width
|
|
269
2152
|
}
|
|
270
2153
|
});
|
|
271
|
-
},
|
|
2154
|
+
}, E = (e, t) => {
|
|
272
2155
|
let n = {
|
|
273
2156
|
...l,
|
|
274
2157
|
[e]: t
|
|
275
2158
|
};
|
|
276
2159
|
d && (n.height = t), o({ graph: n });
|
|
277
|
-
},
|
|
2160
|
+
}, D = (e, n) => {
|
|
278
2161
|
t[e] = n, d && e !== "axisLabel" && (c[e] = n), o({
|
|
279
2162
|
domain: t,
|
|
280
2163
|
range: c
|
|
281
2164
|
});
|
|
282
|
-
},
|
|
2165
|
+
}, O = (e, t) => {
|
|
283
2166
|
c[e] = t, o({ range: c });
|
|
284
|
-
},
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
-
displayedFields:
|
|
287
|
-
displayHeader:
|
|
2167
|
+
}, k = /* @__PURE__ */ V(be, { children: [
|
|
2168
|
+
/* @__PURE__ */ V(Er, { children: [/* @__PURE__ */ B(Pr, {
|
|
2169
|
+
displayedFields: C,
|
|
2170
|
+
displayHeader: x,
|
|
288
2171
|
type: "domain",
|
|
289
2172
|
minValue: t.min,
|
|
290
2173
|
maxValue: t.max,
|
|
291
2174
|
label: t.axisLabel,
|
|
292
2175
|
includeAxes: i,
|
|
293
|
-
onChange:
|
|
294
|
-
}), /* @__PURE__ */
|
|
295
|
-
displayedFields:
|
|
296
|
-
displayHeader:
|
|
2176
|
+
onChange: D
|
|
2177
|
+
}), /* @__PURE__ */ B(Pr, {
|
|
2178
|
+
displayedFields: C,
|
|
2179
|
+
displayHeader: x,
|
|
297
2180
|
type: "range",
|
|
298
2181
|
minValue: c.min,
|
|
299
2182
|
maxValue: c.max,
|
|
300
2183
|
label: c.axisLabel,
|
|
301
2184
|
disabled: d,
|
|
302
2185
|
includeAxes: i,
|
|
303
|
-
onChange:
|
|
2186
|
+
onChange: O
|
|
304
2187
|
})] }),
|
|
305
|
-
(_.enabled || v.enabled) && /* @__PURE__ */
|
|
306
|
-
(
|
|
307
|
-
displayedFields:
|
|
2188
|
+
(_.enabled || v.enabled) && /* @__PURE__ */ B(kr, { children: "If you want the axis to be visible, use a zero or negative Min Value, and a positive Max Value" }),
|
|
2189
|
+
(b.enabled || g.enabled) && /* @__PURE__ */ V(Er, { children: [/* @__PURE__ */ B(Nr, {
|
|
2190
|
+
displayedFields: S,
|
|
308
2191
|
gridValue: t.step,
|
|
309
2192
|
labelValue: t.labelStep,
|
|
310
2193
|
gridValues: r.domain || [],
|
|
311
2194
|
labelValues: a.domain || [],
|
|
312
|
-
onChange:
|
|
313
|
-
}), /* @__PURE__ */
|
|
2195
|
+
onChange: D
|
|
2196
|
+
}), /* @__PURE__ */ B(Nr, {
|
|
314
2197
|
disabled: d,
|
|
315
|
-
displayedFields:
|
|
2198
|
+
displayedFields: S,
|
|
316
2199
|
gridValue: c.step,
|
|
317
2200
|
labelValue: c.labelStep,
|
|
318
2201
|
gridValues: r.range || [],
|
|
319
2202
|
labelValues: a.range || [],
|
|
320
|
-
onChange:
|
|
2203
|
+
onChange: O
|
|
321
2204
|
})] }),
|
|
322
|
-
g.enabled && /* @__PURE__ */
|
|
323
|
-
] }),
|
|
2205
|
+
g.enabled && /* @__PURE__ */ B(kr, { children: "For unnumbered gridlines, enter a label interval of 0" })
|
|
2206
|
+
] }), A = v.enabled ? /* @__PURE__ */ V(Tr, { children: [/* @__PURE__ */ B(Or, { children: /* @__PURE__ */ B(q, {
|
|
324
2207
|
label: "Number of Vertical Gridlines",
|
|
325
2208
|
value: t.max,
|
|
326
2209
|
min: !i && f.min,
|
|
327
2210
|
max: !i && f.max,
|
|
328
2211
|
variant: "outlined",
|
|
329
|
-
onChange: (e, t) =>
|
|
330
|
-
}) }), /* @__PURE__ */
|
|
2212
|
+
onChange: (e, t) => D("max", t)
|
|
2213
|
+
}) }), /* @__PURE__ */ B(Or, { children: /* @__PURE__ */ B(q, {
|
|
331
2214
|
label: "Number of Horizontal Gridlines",
|
|
332
2215
|
value: c.max,
|
|
333
2216
|
min: !i && f.min,
|
|
334
2217
|
max: !i && f.max,
|
|
335
2218
|
variant: "outlined",
|
|
336
2219
|
disabled: d,
|
|
337
|
-
onChange: (e, t) =>
|
|
2220
|
+
onChange: (e, t) => O("max", t)
|
|
338
2221
|
}) })] }) : null;
|
|
339
|
-
return /* @__PURE__ */
|
|
2222
|
+
return /* @__PURE__ */ B(Cr, { children: /* @__PURE__ */ V(me, {
|
|
340
2223
|
onChange: s,
|
|
341
2224
|
TransitionProps: { timeout: {
|
|
342
2225
|
enter: 225,
|
|
343
2226
|
exit: 195
|
|
344
2227
|
} },
|
|
345
|
-
children: [/* @__PURE__ */
|
|
346
|
-
expandIcon: /* @__PURE__ */
|
|
347
|
-
children: /* @__PURE__ */
|
|
2228
|
+
children: [/* @__PURE__ */ B(j, {
|
|
2229
|
+
expandIcon: /* @__PURE__ */ B(ue, {}),
|
|
2230
|
+
children: /* @__PURE__ */ B(I, {
|
|
348
2231
|
variant: "subtitle1",
|
|
349
2232
|
children: "Customize Grid Setup"
|
|
350
2233
|
})
|
|
351
|
-
}), /* @__PURE__ */
|
|
352
|
-
h && /* @__PURE__ */
|
|
2234
|
+
}), /* @__PURE__ */ B(P, { children: /* @__PURE__ */ V(wr, { children: [
|
|
2235
|
+
h && /* @__PURE__ */ B(jn, {
|
|
353
2236
|
label: "Include axes and labels?",
|
|
354
|
-
toggle:
|
|
2237
|
+
toggle: w,
|
|
355
2238
|
checked: i
|
|
356
2239
|
}),
|
|
357
|
-
|
|
2240
|
+
y && /* @__PURE__ */ B(jn, {
|
|
358
2241
|
label: "Constrain to standard coordinate grid?",
|
|
359
|
-
toggle:
|
|
2242
|
+
toggle: T,
|
|
360
2243
|
checked: d
|
|
361
2244
|
}),
|
|
362
|
-
i ?
|
|
363
|
-
m && /* @__PURE__ */
|
|
364
|
-
/* @__PURE__ */
|
|
2245
|
+
i ? k : A,
|
|
2246
|
+
m && /* @__PURE__ */ V(Ar, { children: [
|
|
2247
|
+
/* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B(I, { children: "Dimensions(px)" }), /* @__PURE__ */ V(jr, { children: [
|
|
365
2248
|
"Min ",
|
|
366
2249
|
u.min,
|
|
367
2250
|
", Max ",
|
|
368
2251
|
u.max
|
|
369
2252
|
] })] }),
|
|
370
|
-
/* @__PURE__ */
|
|
2253
|
+
/* @__PURE__ */ B(Dr, { children: /* @__PURE__ */ B(q, {
|
|
371
2254
|
label: "Width",
|
|
372
2255
|
value: l.width,
|
|
373
2256
|
min: u.min,
|
|
374
2257
|
max: u.max,
|
|
375
2258
|
step: u.step,
|
|
376
2259
|
variant: "outlined",
|
|
377
|
-
onChange: (e, t) =>
|
|
2260
|
+
onChange: (e, t) => E("width", t)
|
|
378
2261
|
}) }),
|
|
379
|
-
/* @__PURE__ */
|
|
2262
|
+
/* @__PURE__ */ B(Dr, { children: /* @__PURE__ */ B(q, {
|
|
380
2263
|
label: "Height",
|
|
381
2264
|
value: l.height,
|
|
382
2265
|
min: u.min,
|
|
@@ -384,28 +2267,28 @@ var Ce = (e) => {
|
|
|
384
2267
|
step: u.step,
|
|
385
2268
|
variant: "outlined",
|
|
386
2269
|
disabled: d,
|
|
387
|
-
onChange: (e, t) =>
|
|
2270
|
+
onChange: (e, t) => E("height", t)
|
|
388
2271
|
}) })
|
|
389
2272
|
] })
|
|
390
2273
|
] }) })]
|
|
391
2274
|
}) });
|
|
392
2275
|
};
|
|
393
|
-
|
|
394
|
-
domain:
|
|
395
|
-
displayedFields:
|
|
396
|
-
gridValues:
|
|
397
|
-
includeAxes:
|
|
398
|
-
labelValues:
|
|
399
|
-
onChange:
|
|
400
|
-
onChangeView:
|
|
401
|
-
range:
|
|
402
|
-
size:
|
|
403
|
-
sizeConstraints:
|
|
404
|
-
standardGrid:
|
|
2276
|
+
Fr.propTypes = {
|
|
2277
|
+
domain: G.default.object,
|
|
2278
|
+
displayedFields: G.default.object,
|
|
2279
|
+
gridValues: G.default.object,
|
|
2280
|
+
includeAxes: G.default.bool,
|
|
2281
|
+
labelValues: G.default.object,
|
|
2282
|
+
onChange: G.default.func,
|
|
2283
|
+
onChangeView: G.default.func,
|
|
2284
|
+
range: G.default.object,
|
|
2285
|
+
size: G.default.object,
|
|
2286
|
+
sizeConstraints: G.default.object,
|
|
2287
|
+
standardGrid: G.default.bool
|
|
405
2288
|
};
|
|
406
2289
|
//#endregion
|
|
407
2290
|
//#region src/author/utils.ts
|
|
408
|
-
var
|
|
2291
|
+
var Ir = [
|
|
409
2292
|
.01,
|
|
410
2293
|
.02,
|
|
411
2294
|
.04,
|
|
@@ -432,7 +2315,7 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
432
2315
|
100,
|
|
433
2316
|
500,
|
|
434
2317
|
1e3
|
|
435
|
-
],
|
|
2318
|
+
], Lr = [
|
|
436
2319
|
.01,
|
|
437
2320
|
.02,
|
|
438
2321
|
.05,
|
|
@@ -449,7 +2332,7 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
449
2332
|
100,
|
|
450
2333
|
500,
|
|
451
2334
|
1e3
|
|
452
|
-
],
|
|
2335
|
+
], Rr = {
|
|
453
2336
|
.01: [
|
|
454
2337
|
0,
|
|
455
2338
|
.01,
|
|
@@ -628,14 +2511,14 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
628
2511
|
4e3,
|
|
629
2512
|
5e3
|
|
630
2513
|
]
|
|
631
|
-
},
|
|
2514
|
+
}, zr = (e, t, n = !1) => {
|
|
632
2515
|
let r = 10 * (e.max - e.min) / t, i = r * 10;
|
|
633
|
-
return (n ?
|
|
634
|
-
},
|
|
635
|
-
let a =
|
|
2516
|
+
return (n ? Lr : Ir).filter((e) => e >= r && e <= i);
|
|
2517
|
+
}, Br = (e) => Rr[e] || [], Vr = (e, t, n, i) => {
|
|
2518
|
+
let a = zr(e, t), o = Br(e.step);
|
|
636
2519
|
if (!r(n, a) && !a.includes(e.step)) {
|
|
637
|
-
let n =
|
|
638
|
-
return e.step = n, o =
|
|
2520
|
+
let n = zr(e, t, !0)[0] || 1;
|
|
2521
|
+
return e.step = n, o = Br(n), o.includes(e.labelStep) || (e.labelStep = n), {
|
|
639
2522
|
gridValues: a,
|
|
640
2523
|
labelValues: o
|
|
641
2524
|
};
|
|
@@ -644,13 +2527,13 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
644
2527
|
gridValues: a,
|
|
645
2528
|
labelValues: o
|
|
646
2529
|
};
|
|
647
|
-
},
|
|
2530
|
+
}, Hr = (e) => {
|
|
648
2531
|
let t = [], n = 0;
|
|
649
2532
|
for (; n >= e.min && t.indexOf(n) < 0;) t.push(n), n = Math.round((n - e.step) * 1e4) / 1e4;
|
|
650
2533
|
for (n = Math.round(e.step * 1e4) / 1e4; n <= e.max && t.indexOf(n) < 0;) t.push(n), n = Math.round((n + e.step) * 1e4) / 1e4;
|
|
651
2534
|
return t ? t.filter((t) => t >= e.min && t <= e.max) : [];
|
|
652
|
-
},
|
|
653
|
-
let r =
|
|
2535
|
+
}, Ur = (e, t, n) => {
|
|
2536
|
+
let r = Hr(e), i = Hr(t), a = (e, t) => r.includes(e) && i.includes(t);
|
|
654
2537
|
return Object.entries(n || {}).reduce((e, [t, n]) => (e[t] = {
|
|
655
2538
|
...n,
|
|
656
2539
|
marks: (n.marks || []).filter((e) => {
|
|
@@ -660,24 +2543,24 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
660
2543
|
return e.building ? a(t.x, t.y) : a(t.x, t.y) && a(n.x, n.y);
|
|
661
2544
|
})
|
|
662
2545
|
}, e), {});
|
|
663
|
-
},
|
|
2546
|
+
}, Wr = (e, t) => Number(Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2).toFixed(3)), Gr = (e, t) => {
|
|
664
2547
|
let n = e, r = !1, i = [...t];
|
|
665
2548
|
i.push(t[0]);
|
|
666
2549
|
for (let e = 0; e < i.length - 1; e++) {
|
|
667
2550
|
let t = i[e], a = i[e + 1];
|
|
668
|
-
if (
|
|
2551
|
+
if (Wr(t, n) + Wr(n, a) === Wr(t, a)) {
|
|
669
2552
|
r = !0;
|
|
670
2553
|
break;
|
|
671
2554
|
}
|
|
672
2555
|
}
|
|
673
2556
|
return r;
|
|
674
|
-
},
|
|
2557
|
+
}, Kr = (e, t, n, r, i, a, o, s) => {
|
|
675
2558
|
let c, l = (s - a) * (n - e) - (o - i) * (r - t);
|
|
676
2559
|
return l === 0 ? null : (c = ((o - i) * (t - a) - (s - a) * (e - i)) / l, {
|
|
677
2560
|
x: Number((e + c * (n - e)).toFixed(3)),
|
|
678
2561
|
y: Number((t + c * (r - t)).toFixed(3))
|
|
679
2562
|
});
|
|
680
|
-
},
|
|
2563
|
+
}, qr = (e, t, n) => e.x > t.min && e.x < t.max && e.y > n.min && e.y < n.max, Jr = (e, t, n) => e.x >= t.min && e.x <= t.max && e.y >= n.min && e.y <= n.max, Yr = (e, t, n) => {
|
|
681
2564
|
let r = [], i = [
|
|
682
2565
|
[
|
|
683
2566
|
t.max,
|
|
@@ -705,11 +2588,11 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
705
2588
|
]
|
|
706
2589
|
];
|
|
707
2590
|
for (let a = 0; a < i.length; a++) {
|
|
708
|
-
let o =
|
|
709
|
-
o &&
|
|
2591
|
+
let o = Kr(e.from.x, e.from.y, e.to.x, e.to.y, i[a][0], i[a][1], i[a][2], i[a][3]);
|
|
2592
|
+
o && Jr(o, t, n) && r.push(o);
|
|
710
2593
|
}
|
|
711
2594
|
return r;
|
|
712
|
-
},
|
|
2595
|
+
}, Xr = (e) => {
|
|
713
2596
|
e.sort((e, t) => e.y - t.y);
|
|
714
2597
|
let t = (e[0].y + e[e.length - 1].y) / 2;
|
|
715
2598
|
e.sort((e, t) => t.x - e.x);
|
|
@@ -723,10 +2606,10 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
723
2606
|
}), e.sort((e, t) => e.angle - t.angle);
|
|
724
2607
|
let i = e.reverse();
|
|
725
2608
|
return i.unshift(i.pop()), i.map(({ angle: e, ...t }) => t);
|
|
726
|
-
},
|
|
727
|
-
let n =
|
|
2609
|
+
}, Zr = (e, t) => e.x * t.x + e.y * t.y, Qr = (e) => Math.sqrt(e.x * e.x + e.y * e.y), $r = (e, t) => {
|
|
2610
|
+
let n = Zr(e, t), r = Qr(e), i = Qr(t);
|
|
728
2611
|
return Math.acos(n / (r * i));
|
|
729
|
-
},
|
|
2612
|
+
}, ei = (e, t, n, r) => {
|
|
730
2613
|
let i = {
|
|
731
2614
|
x: t.x - e.x,
|
|
732
2615
|
y: t.y - e.y
|
|
@@ -736,14 +2619,14 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
736
2619
|
}, o = {
|
|
737
2620
|
x: r.x - e.x,
|
|
738
2621
|
y: r.y - e.y
|
|
739
|
-
}, s =
|
|
740
|
-
return Math.abs(s -
|
|
741
|
-
},
|
|
2622
|
+
}, s = $r(i, o) + $r(a, o);
|
|
2623
|
+
return Math.abs(s - $r(i, a)) < 1e-4;
|
|
2624
|
+
}, ti = (e) => e.filter((t, n) => n === e.findIndex((e) => t.x === e.x && t.y === e.y)), ni = (e) => {
|
|
742
2625
|
for (let t = 0; t < e.length; t++) e[t] = e[t].filter((n, r) => r === e[t].findIndex((e) => n.x === e.x && n.y === e.y));
|
|
743
2626
|
e = e.filter((e) => e.length > 2);
|
|
744
|
-
for (let t = 0; t < e.length; t++) e[t] =
|
|
2627
|
+
for (let t = 0; t < e.length; t++) e[t] = Xr(e[t]);
|
|
745
2628
|
return e;
|
|
746
|
-
},
|
|
2629
|
+
}, ri = (e, t, n) => {
|
|
747
2630
|
let r = [];
|
|
748
2631
|
return r.push([].concat(e)), r.push([].concat(e)), e[0].x === t.max && e[1].y === n.max || e[1].x === t.max && e[0].y === n.max ? (r[0].push({
|
|
749
2632
|
x: t.max,
|
|
@@ -817,8 +2700,8 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
817
2700
|
}, {
|
|
818
2701
|
x: t.max,
|
|
819
2702
|
y: n.max
|
|
820
|
-
})),
|
|
821
|
-
},
|
|
2703
|
+
})), ni(r);
|
|
2704
|
+
}, ii = (e, t, n, r) => {
|
|
822
2705
|
let i = t[0], a = t[1], o = [
|
|
823
2706
|
{
|
|
824
2707
|
x: n.min,
|
|
@@ -836,19 +2719,19 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
836
2719
|
x: n.max,
|
|
837
2720
|
y: r.max
|
|
838
2721
|
}
|
|
839
|
-
], s =
|
|
840
|
-
l =
|
|
841
|
-
let u =
|
|
842
|
-
if (u =
|
|
2722
|
+
], s = Kr(i.from.x, i.from.y, i.to.x, i.to.y, a.from.x, a.from.y, a.to.x, a.to.y), c = [], l = Yr(i, n, r);
|
|
2723
|
+
l = ti(l);
|
|
2724
|
+
let u = Yr(a, n, r);
|
|
2725
|
+
if (u = ti(u), s && qr(s, n, r)) for (let e = 0; e < l.length; e++) for (let t = 0; t < u.length; t++) {
|
|
843
2726
|
let n = [], r = [];
|
|
844
2727
|
n.push(s), n.push(l[e]), n.push(u[t]);
|
|
845
|
-
for (let i = 0; i < o.length; i++)
|
|
2728
|
+
for (let i = 0; i < o.length; i++) ei(s, l[e], u[t], o[i]) ? n.push(o[i]) : r.push(o[i]);
|
|
846
2729
|
o = r, c.push(n);
|
|
847
2730
|
}
|
|
848
2731
|
else {
|
|
849
|
-
let e =
|
|
850
|
-
for (let t = 0; t < e.length; t++)
|
|
851
|
-
for (let e = 0; e < t.length; e++)
|
|
2732
|
+
let e = ri(l, n, r), t = ri(u, n, r);
|
|
2733
|
+
for (let t = 0; t < e.length; t++) Gr(u[0], e[t]) && Gr(u[1], e[t]) || c.push(e[t]);
|
|
2734
|
+
for (let e = 0; e < t.length; e++) Gr(l[0], t[e]) && Gr(l[1], t[e]) || c.push(t[e]);
|
|
852
2735
|
for (let e = 0; e < c.length; e++) o = o.filter(function(t) {
|
|
853
2736
|
return !c[e].some(function(e) {
|
|
854
2737
|
return t.x === e.x && t.y === e.y;
|
|
@@ -857,8 +2740,8 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
857
2740
|
let i = o.concat(l, u);
|
|
858
2741
|
c.push(i);
|
|
859
2742
|
}
|
|
860
|
-
return
|
|
861
|
-
},
|
|
2743
|
+
return ni(c);
|
|
2744
|
+
}, ai = (e, t, n, r) => (e.numberOfLines === 1 ? e.sections = ri(Yr(t[0], n, r), n, r) : e.sections = ii(e, t, n, r), e), oi = (e, t) => {
|
|
862
2745
|
let n = t.length, r = e.x, i = e.y, a = !1, o = t[0], s;
|
|
863
2746
|
for (let e = 1; e <= n; e++) {
|
|
864
2747
|
if (s = t[e % n], i > Math.min(o.y, s.y) && i <= Math.max(o.y, s.y) && r <= Math.max(o.x, s.x)) {
|
|
@@ -868,55 +2751,55 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
868
2751
|
o = s;
|
|
869
2752
|
}
|
|
870
2753
|
return a;
|
|
871
|
-
},
|
|
2754
|
+
}, si = (e, t) => {
|
|
872
2755
|
if (t.length === 0) return !1;
|
|
873
2756
|
if (e.numberOfLines === 1) {
|
|
874
2757
|
if (t.length === 1) return !t[0].building;
|
|
875
2758
|
} else if (t.length !== 2) return !1;
|
|
876
2759
|
else return !t[1].building;
|
|
877
|
-
},
|
|
2760
|
+
}, ci = _("div")(({ theme: e }) => ({
|
|
878
2761
|
display: "flex",
|
|
879
2762
|
flexWrap: "wrap",
|
|
880
2763
|
marginBottom: e.spacing(2.5)
|
|
881
|
-
})),
|
|
2764
|
+
})), li = _("div")(({ theme: e }) => ({
|
|
882
2765
|
display: "flex",
|
|
883
2766
|
flexDirection: "column",
|
|
884
2767
|
marginRight: e.spacing(3),
|
|
885
2768
|
marginBottom: e.spacing(2.5)
|
|
886
|
-
})),
|
|
2769
|
+
})), ui = _("div")({
|
|
887
2770
|
display: "flex",
|
|
888
2771
|
flexDirection: "column"
|
|
889
|
-
}),
|
|
2772
|
+
}), di = _(I)(({ theme: e }) => ({
|
|
890
2773
|
marginTop: e.spacing(1.5),
|
|
891
2774
|
marginBottom: e.spacing(1)
|
|
892
|
-
})),
|
|
2775
|
+
})), fi = _("div")(({ theme: e }) => ({
|
|
893
2776
|
display: "flex",
|
|
894
2777
|
flexWrap: "wrap",
|
|
895
2778
|
alignItems: "center",
|
|
896
2779
|
width: "100%",
|
|
897
2780
|
marginBottom: e.spacing(2.5)
|
|
898
|
-
})),
|
|
2781
|
+
})), pi = _(I)(({ theme: e }) => ({ padding: `0 ${e.spacing(1)}` })), mi = _(N)({ flex: "1" }), hi = class extends R.Component {
|
|
899
2782
|
static propTypes = {
|
|
900
|
-
availableTools:
|
|
901
|
-
authoring:
|
|
902
|
-
dimensionsEnabled:
|
|
903
|
-
graphDimensions:
|
|
904
|
-
gridConfigurations:
|
|
905
|
-
labelsPlaceholders:
|
|
906
|
-
model:
|
|
907
|
-
onChange:
|
|
908
|
-
showLabels:
|
|
909
|
-
showTitle:
|
|
910
|
-
titlePlaceholder:
|
|
2783
|
+
availableTools: G.default.array,
|
|
2784
|
+
authoring: G.default.object,
|
|
2785
|
+
dimensionsEnabled: G.default.bool,
|
|
2786
|
+
graphDimensions: G.default.object,
|
|
2787
|
+
gridConfigurations: G.default.array,
|
|
2788
|
+
labelsPlaceholders: G.default.object,
|
|
2789
|
+
model: G.default.object.isRequired,
|
|
2790
|
+
onChange: G.default.func.isRequired,
|
|
2791
|
+
showLabels: G.default.bool,
|
|
2792
|
+
showTitle: G.default.bool,
|
|
2793
|
+
titlePlaceholder: G.default.string
|
|
911
2794
|
};
|
|
912
2795
|
constructor(e) {
|
|
913
2796
|
super(e);
|
|
914
2797
|
let { domain: t, range: n, graph: r } = e.model || {}, i = {
|
|
915
|
-
domain:
|
|
916
|
-
range:
|
|
2798
|
+
domain: zr(t, r.width, !0),
|
|
2799
|
+
range: zr(n, r.height, !0)
|
|
917
2800
|
}, a = {
|
|
918
|
-
domain:
|
|
919
|
-
range:
|
|
2801
|
+
domain: Br(t.step),
|
|
2802
|
+
range: Br(n.step)
|
|
920
2803
|
};
|
|
921
2804
|
this.state = {
|
|
922
2805
|
gridValues: i,
|
|
@@ -953,17 +2836,17 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
953
2836
|
range: []
|
|
954
2837
|
}, b = n >= 0 ? n : o;
|
|
955
2838
|
if (m) {
|
|
956
|
-
let e =
|
|
2839
|
+
let e = Vr(p, h.width, s.domain, c.domain);
|
|
957
2840
|
v.domain = e.gridValues || [], y.domain = e.labelValues || [];
|
|
958
2841
|
}
|
|
959
2842
|
if (_) v.range = v.domain, y.range = y.domain, g.step = p.step, g.labelStep = p.labelStep;
|
|
960
2843
|
else if (m) {
|
|
961
|
-
let e =
|
|
2844
|
+
let e = Vr(g, h.height, s.range, c.range);
|
|
962
2845
|
v.range = e.gridValues || [], y.range = e.labelValues || [];
|
|
963
2846
|
}
|
|
964
2847
|
let x = t(f);
|
|
965
2848
|
x.correctAnswer.marks = f.correctAnswer.marks.filter((e) => e.type !== "polygon");
|
|
966
|
-
let S =
|
|
2849
|
+
let S = Ur(p, g, x);
|
|
967
2850
|
if (!r(x, S)) {
|
|
968
2851
|
this.setState({ dialog: {
|
|
969
2852
|
isOpened: !0,
|
|
@@ -1007,11 +2890,11 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1007
2890
|
this.onConfigChange(t?.[n] || {}, n);
|
|
1008
2891
|
};
|
|
1009
2892
|
render() {
|
|
1010
|
-
let { authoring: e = {}, gridConfigurations: t = [], graphDimensions: n = {}, labelsPlaceholders: r, model: i, showLabels: a, dimensionsEnabled: o, showTitle: s, titlePlaceholder: c, mathMlOptions: l = {} } = this.props, { arrows: u, coordinatesOnHover: d, defaultGridConfiguration: f, domain: p, labels: m, range: h, standardGrid: g, title: _ } = i || {},
|
|
1011
|
-
min: Math.max(150,
|
|
1012
|
-
max: Math.min(800,
|
|
1013
|
-
step:
|
|
1014
|
-
},
|
|
2893
|
+
let { authoring: e = {}, gridConfigurations: t = [], graphDimensions: n = {}, labelsPlaceholders: r, model: i, showLabels: a, dimensionsEnabled: o, showTitle: s, titlePlaceholder: c, mathMlOptions: l = {} } = this.props, { arrows: u, coordinatesOnHover: d, defaultGridConfiguration: f, domain: p, labels: m, range: h, standardGrid: g, title: _ } = i || {}, v = (i || {}).graph || {}, { min: y, max: b, step: x } = n || {}, { dialog: S = {}, gridValues: C, labelValues: w, showPixelGuides: T } = this.state, E = {
|
|
2894
|
+
min: Math.max(150, y),
|
|
2895
|
+
max: Math.min(800, b),
|
|
2896
|
+
step: x >= 1 ? Math.min(200, x) : 20
|
|
2897
|
+
}, D = {
|
|
1015
2898
|
axisLabel: e.axisLabel,
|
|
1016
2899
|
dimensionsEnabled: o,
|
|
1017
2900
|
includeAxesEnabled: !1,
|
|
@@ -1020,14 +2903,14 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1020
2903
|
max: e.max,
|
|
1021
2904
|
standardGridEnabled: e.standardGridEnabled,
|
|
1022
2905
|
step: e.step
|
|
1023
|
-
},
|
|
1024
|
-
return /* @__PURE__ */
|
|
1025
|
-
/* @__PURE__ */
|
|
2906
|
+
}, O = e.enabled && Object.values(D).some((e) => typeof e == "object" ? e.enabled : e);
|
|
2907
|
+
return /* @__PURE__ */ V(ci, { children: [
|
|
2908
|
+
/* @__PURE__ */ V(li, { children: [t && t.length ? /* @__PURE__ */ V(fi, { children: [/* @__PURE__ */ B(pi, {
|
|
1026
2909
|
component: "div",
|
|
1027
2910
|
variant: "h6",
|
|
1028
2911
|
children: "Grid Configuration"
|
|
1029
|
-
}), /* @__PURE__ */
|
|
1030
|
-
input: /* @__PURE__ */
|
|
2912
|
+
}), /* @__PURE__ */ B(mi, {
|
|
2913
|
+
input: /* @__PURE__ */ B(k, { labelWidth: 10 }),
|
|
1031
2914
|
displayEmpty: !0,
|
|
1032
2915
|
onChange: this.changeGridConfiguration,
|
|
1033
2916
|
value: f,
|
|
@@ -1035,35 +2918,35 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1035
2918
|
enter: 225,
|
|
1036
2919
|
exit: 195
|
|
1037
2920
|
} },
|
|
1038
|
-
children: (t || []).map((e, t) => /* @__PURE__ */
|
|
2921
|
+
children: (t || []).map((e, t) => /* @__PURE__ */ B(re, {
|
|
1039
2922
|
value: t,
|
|
1040
2923
|
children: e.label
|
|
1041
2924
|
}, t))
|
|
1042
|
-
})] }) : null,
|
|
1043
|
-
displayedFields:
|
|
2925
|
+
})] }) : null, O && /* @__PURE__ */ B(Fr, {
|
|
2926
|
+
displayedFields: D,
|
|
1044
2927
|
domain: p,
|
|
1045
|
-
gridValues:
|
|
2928
|
+
gridValues: C,
|
|
1046
2929
|
includeAxes: !0,
|
|
1047
|
-
labelValues:
|
|
2930
|
+
labelValues: w,
|
|
1048
2931
|
range: h,
|
|
1049
|
-
size:
|
|
1050
|
-
sizeConstraints:
|
|
2932
|
+
size: v,
|
|
2933
|
+
sizeConstraints: E,
|
|
1051
2934
|
standardGrid: g,
|
|
1052
2935
|
onChange: this.onConfigChange,
|
|
1053
2936
|
onChangeView: this.onChangeView
|
|
1054
2937
|
})] }),
|
|
1055
|
-
/* @__PURE__ */
|
|
1056
|
-
/* @__PURE__ */
|
|
2938
|
+
/* @__PURE__ */ V(ui, { children: [
|
|
2939
|
+
/* @__PURE__ */ B(I, {
|
|
1057
2940
|
component: "div",
|
|
1058
2941
|
variant: "h6",
|
|
1059
2942
|
children: "Define Graph Attributes"
|
|
1060
2943
|
}),
|
|
1061
|
-
/* @__PURE__ */
|
|
2944
|
+
/* @__PURE__ */ B(di, {
|
|
1062
2945
|
component: "div",
|
|
1063
2946
|
variant: "body1",
|
|
1064
2947
|
children: "Use this interface to add/edit a title and/or labels"
|
|
1065
2948
|
}),
|
|
1066
|
-
/* @__PURE__ */
|
|
2949
|
+
/* @__PURE__ */ B(ae, {
|
|
1067
2950
|
axesSettings: { includeArrows: u },
|
|
1068
2951
|
backgroundMarks: [],
|
|
1069
2952
|
coordinatesOnHover: d,
|
|
@@ -1077,11 +2960,11 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1077
2960
|
onChangeTitle: this.changeTitle,
|
|
1078
2961
|
range: h,
|
|
1079
2962
|
showLabels: a,
|
|
1080
|
-
showPixelGuides:
|
|
2963
|
+
showPixelGuides: T,
|
|
1081
2964
|
showTitle: s,
|
|
1082
2965
|
size: {
|
|
1083
|
-
width:
|
|
1084
|
-
height:
|
|
2966
|
+
width: v.width,
|
|
2967
|
+
height: v.height
|
|
1085
2968
|
},
|
|
1086
2969
|
title: _,
|
|
1087
2970
|
titlePlaceholder: c,
|
|
@@ -1089,31 +2972,31 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1089
2972
|
mathMlOptions: l
|
|
1090
2973
|
}, "graphing-config")
|
|
1091
2974
|
] }, "graph"),
|
|
1092
|
-
/* @__PURE__ */
|
|
1093
|
-
open:
|
|
2975
|
+
/* @__PURE__ */ B(fe, {
|
|
2976
|
+
open: S.isOpened,
|
|
1094
2977
|
title: "Warning",
|
|
1095
2978
|
text: "This change would make it impossible for students to plot one or more graph objects in the current correct answers. If you proceed, all such graph objects will be removed from the correct answers.",
|
|
1096
|
-
onClose:
|
|
1097
|
-
onConfirm:
|
|
2979
|
+
onClose: S.onClose,
|
|
2980
|
+
onConfirm: S.onConfirm
|
|
1098
2981
|
})
|
|
1099
2982
|
] });
|
|
1100
2983
|
}
|
|
1101
|
-
},
|
|
2984
|
+
}, gi = _(I)(({ theme: e }) => ({
|
|
1102
2985
|
marginTop: e.spacing(1.5),
|
|
1103
2986
|
marginBottom: e.spacing(1)
|
|
1104
|
-
})),
|
|
2987
|
+
})), _i = _(Ie)({
|
|
1105
2988
|
height: "20px",
|
|
1106
2989
|
width: "fit-content",
|
|
1107
2990
|
padding: ".5rem 0"
|
|
1108
|
-
}),
|
|
2991
|
+
}), vi = _(A)({ color: "#000000 !important" }), yi = _("div")(({ theme: e }) => ({
|
|
1109
2992
|
fontSize: e.typography.fontSize - 2,
|
|
1110
2993
|
color: e.palette.error.main,
|
|
1111
2994
|
paddingTop: e.spacing(1)
|
|
1112
|
-
})),
|
|
2995
|
+
})), bi = class extends R.Component {
|
|
1113
2996
|
static propTypes = {
|
|
1114
|
-
errors:
|
|
1115
|
-
model:
|
|
1116
|
-
onChange:
|
|
2997
|
+
errors: G.default.object,
|
|
2998
|
+
model: G.default.object.isRequired,
|
|
2999
|
+
onChange: G.default.func.isRequired
|
|
1117
3000
|
};
|
|
1118
3001
|
state = { dialog: { open: !1 } };
|
|
1119
3002
|
handleAlertDialog = (e, t) => this.setState({ dialog: { open: e } }, t);
|
|
@@ -1151,7 +3034,7 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1151
3034
|
};
|
|
1152
3035
|
onSolutionSetSelected = (e) => {
|
|
1153
3036
|
let { model: t, onChange: r } = this.props, { answers: i, gssLineData: a } = t;
|
|
1154
|
-
for (let t of a.sections) if (
|
|
3037
|
+
for (let t of a.sections) if (oi(e, t)) {
|
|
1155
3038
|
let e = {
|
|
1156
3039
|
points: t,
|
|
1157
3040
|
building: !1,
|
|
@@ -1168,7 +3051,7 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1168
3051
|
let { model: n } = this.props, { answers: r, domain: i, range: a } = n;
|
|
1169
3052
|
if (e.selectedTool === "solutionSet") {
|
|
1170
3053
|
let n = r.correctAnswer.marks.filter((e) => e.type !== "polygon");
|
|
1171
|
-
if (!
|
|
3054
|
+
if (!si(e, n)) e.selectedTool = t, this.setState({ dialog: {
|
|
1172
3055
|
open: !0,
|
|
1173
3056
|
title: "Warning",
|
|
1174
3057
|
text: "Please define the line(s) and then select a solution set for the item.",
|
|
@@ -1176,7 +3059,7 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1176
3059
|
} });
|
|
1177
3060
|
else {
|
|
1178
3061
|
let t = r.correctAnswer.marks.filter((e) => e.type !== "polygon");
|
|
1179
|
-
e =
|
|
3062
|
+
e = ai(e, t, i, a);
|
|
1180
3063
|
}
|
|
1181
3064
|
this.handleGssLineDataChange(e, r);
|
|
1182
3065
|
} else {
|
|
@@ -1222,37 +3105,37 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1222
3105
|
selectedTool: "lineA",
|
|
1223
3106
|
lineA: { lineType: "Solid" }
|
|
1224
3107
|
}, arrows: a, coordinatesOnHover: o, domain: s, graph: c = {}, labels: l, labelsEnabled: u, range: d, title: f, titleEnabled: p, answers: m } = t || {}, { correctAnswerErrors: h = "" } = e || {};
|
|
1225
|
-
return /* @__PURE__ */
|
|
1226
|
-
/* @__PURE__ */
|
|
3108
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
3109
|
+
/* @__PURE__ */ B(I, {
|
|
1227
3110
|
component: "div",
|
|
1228
3111
|
variant: "h6",
|
|
1229
3112
|
children: "Define Line Type(s) and Correct Response"
|
|
1230
3113
|
}),
|
|
1231
|
-
/* @__PURE__ */
|
|
3114
|
+
/* @__PURE__ */ B(gi, {
|
|
1232
3115
|
component: "div",
|
|
1233
3116
|
variant: "body1",
|
|
1234
3117
|
children: "Use this interface to choose how many lines students will be able to draw, and to define the correct answer."
|
|
1235
3118
|
}),
|
|
1236
|
-
/* @__PURE__ */
|
|
3119
|
+
/* @__PURE__ */ B(gi, {
|
|
1237
3120
|
component: "div",
|
|
1238
3121
|
variant: "body1",
|
|
1239
3122
|
children: "Choose Number of Lines"
|
|
1240
3123
|
}),
|
|
1241
|
-
/* @__PURE__ */
|
|
3124
|
+
/* @__PURE__ */ V(Xe, {
|
|
1242
3125
|
name: "numberOfLines",
|
|
1243
3126
|
value: i.numberOfLines,
|
|
1244
3127
|
onChange: this.changeNumberOfLines,
|
|
1245
|
-
children: [/* @__PURE__ */
|
|
3128
|
+
children: [/* @__PURE__ */ B(_i, {
|
|
1246
3129
|
value: "1",
|
|
1247
|
-
control: /* @__PURE__ */
|
|
3130
|
+
control: /* @__PURE__ */ B(vi, { checked: i.numberOfLines === 1 }),
|
|
1248
3131
|
label: "One"
|
|
1249
|
-
}), /* @__PURE__ */
|
|
3132
|
+
}), /* @__PURE__ */ B(_i, {
|
|
1250
3133
|
value: "2",
|
|
1251
|
-
control: /* @__PURE__ */
|
|
3134
|
+
control: /* @__PURE__ */ B(vi, { checked: i.numberOfLines === 2 }),
|
|
1252
3135
|
label: "Two"
|
|
1253
3136
|
})]
|
|
1254
3137
|
}),
|
|
1255
|
-
/* @__PURE__ */
|
|
3138
|
+
/* @__PURE__ */ V(R.Fragment, { children: [/* @__PURE__ */ B(ae, {
|
|
1256
3139
|
style: h.correctAnswer && { border: "2px solid red" },
|
|
1257
3140
|
axesSettings: { includeArrows: a },
|
|
1258
3141
|
backgroundMarks: [],
|
|
@@ -1278,8 +3161,8 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1278
3161
|
onSolutionSetSelected: this.onSolutionSetSelected,
|
|
1279
3162
|
toolbarTools: ["line", "polygon"],
|
|
1280
3163
|
mathMlOptions: n
|
|
1281
|
-
}), h.correctAnswer && /* @__PURE__ */
|
|
1282
|
-
/* @__PURE__ */
|
|
3164
|
+
}), h.correctAnswer && /* @__PURE__ */ B(yi, { children: h.correctAnswer })] }),
|
|
3165
|
+
/* @__PURE__ */ B(fe, {
|
|
1283
3166
|
open: r.open,
|
|
1284
3167
|
title: r.title,
|
|
1285
3168
|
text: r.text,
|
|
@@ -1289,21 +3172,21 @@ var we = /* @__PURE__ */ e(i(), 1), Te = [
|
|
|
1289
3172
|
})
|
|
1290
3173
|
] });
|
|
1291
3174
|
}
|
|
1292
|
-
}, { Panel:
|
|
1293
|
-
(0,
|
|
1294
|
-
var
|
|
3175
|
+
}, { Panel: xi, toggle: $, radio: Si, checkboxes: Ci, textField: wi, dropdown: Ti } = tr;
|
|
3176
|
+
(0, W.default)("@pie-element:graphing-solution-set:configure");
|
|
3177
|
+
var Ei = _(pr)(({ theme: e }) => ({
|
|
1295
3178
|
width: "100%",
|
|
1296
3179
|
paddingTop: e.spacing(2),
|
|
1297
3180
|
marginBottom: e.spacing(2),
|
|
1298
3181
|
marginTop: e.spacing(2)
|
|
1299
|
-
})),
|
|
3182
|
+
})), Di = _(I)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), Oi = class extends z.Component {
|
|
1300
3183
|
static propTypes = {
|
|
1301
|
-
onModelChanged:
|
|
1302
|
-
onConfigurationChanged:
|
|
1303
|
-
imageSupport:
|
|
1304
|
-
uploadSoundSupport:
|
|
1305
|
-
model:
|
|
1306
|
-
configuration:
|
|
3184
|
+
onModelChanged: G.default.func,
|
|
3185
|
+
onConfigurationChanged: G.default.func,
|
|
3186
|
+
imageSupport: G.default.object,
|
|
3187
|
+
uploadSoundSupport: G.default.object,
|
|
3188
|
+
model: G.default.object.isRequired,
|
|
3189
|
+
configuration: G.default.object.isRequired
|
|
1307
3190
|
};
|
|
1308
3191
|
componentDidMount() {
|
|
1309
3192
|
let { configuration: e, onModelChanged: t, model: n } = this.props, { title: r, graphDimensions: i } = e || {}, { arrows: a, titleEnabled: o, dimensionsEnabled: s } = n || {};
|
|
@@ -1348,13 +3231,13 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1348
3231
|
});
|
|
1349
3232
|
};
|
|
1350
3233
|
render() {
|
|
1351
|
-
let { model: e, configuration: t, onConfigurationChanged: n, onModelChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { arrows: o = {}, authoring: s = {}, coordinatesOnHover: c = {}, contentDimensions: l = {}, gridConfigurations: u = [], graphDimensions: d = {}, instruction: f = {}, labels: p = {}, padding: m = {}, prompt: h = {}, rationale: g = {}, scoringType: _ = {}, settingsPanelDisabled: v, spellCheck: y = {}, studentInstructions: b = {}, teacherInstructions: x = {}, title: S = {}, maxImageWidth: C = {}, maxImageHeight:
|
|
3234
|
+
let { model: e, configuration: t, onConfigurationChanged: n, onModelChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { arrows: o = {}, authoring: s = {}, coordinatesOnHover: c = {}, contentDimensions: l = {}, gridConfigurations: u = [], graphDimensions: d = {}, instruction: f = {}, labels: p = {}, padding: m = {}, prompt: h = {}, rationale: g = {}, scoringType: _ = {}, settingsPanelDisabled: v, spellCheck: y = {}, studentInstructions: b = {}, teacherInstructions: x = {}, title: S = {}, maxImageWidth: C = {}, maxImageHeight: w = {}, withRubric: T = {}, language: E = {}, languageChoices: D = {}, mathMlOptions: O = {} } = t || {}, { errors: k = {}, extraCSSRules: A, labelsEnabled: ee, dimensionsEnabled: j, promptEnabled: te, rationaleEnabled: ne, spellCheckEnabled: N, teacherInstructionsEnabled: re, titleEnabled: ie } = e || {}, P = C && C.prompt, F = w && w.prompt, ae = {
|
|
1352
3235
|
top: p.top,
|
|
1353
3236
|
right: p.right,
|
|
1354
3237
|
bottom: p.bottom,
|
|
1355
3238
|
left: p.left
|
|
1356
|
-
},
|
|
1357
|
-
arrows: o.settings &&
|
|
3239
|
+
}, oe = {
|
|
3240
|
+
arrows: o.settings && Ci(o.label, {
|
|
1358
3241
|
left: o.left,
|
|
1359
3242
|
right: o.right,
|
|
1360
3243
|
up: o.up,
|
|
@@ -1363,109 +3246,109 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1363
3246
|
titleEnabled: S.settings && $(S.label),
|
|
1364
3247
|
padding: m.settings && $(m.label),
|
|
1365
3248
|
labelsEnabled: p.settings && $(p.label),
|
|
1366
|
-
"language.enabled":
|
|
1367
|
-
language:
|
|
3249
|
+
"language.enabled": E.settings && $(E.label, !0),
|
|
3250
|
+
language: E.settings && E.enabled && Ti(D.label, D.options),
|
|
1368
3251
|
dimensionsEnabled: d.settings && $(d.label),
|
|
1369
3252
|
coordinatesOnHover: c.settings && $(c.label)
|
|
1370
|
-
},
|
|
3253
|
+
}, se = {
|
|
1371
3254
|
"authoring.enabled": s.settings && $(s.label, !0),
|
|
1372
3255
|
teacherInstructionsEnabled: x.settings && $(x.label),
|
|
1373
3256
|
studentInstructionsEnabled: b.settings && $(b.label),
|
|
1374
3257
|
promptEnabled: h.settings && $(h.label),
|
|
1375
3258
|
rationaleEnabled: g.settings && $(g.label),
|
|
1376
3259
|
spellCheckEnabled: y.settings && $(y.label),
|
|
1377
|
-
scoringType: _.settings &&
|
|
1378
|
-
rubricEnabled:
|
|
1379
|
-
instruction: f.settings &&
|
|
3260
|
+
scoringType: _.settings && Si(_.label, ["dichotomous", "partial scoring"]),
|
|
3261
|
+
rubricEnabled: T?.settings && $(T?.label),
|
|
3262
|
+
instruction: f.settings && wi(f.label)
|
|
1380
3263
|
};
|
|
1381
|
-
return /* @__PURE__ */
|
|
1382
|
-
extraCSSRules:
|
|
3264
|
+
return /* @__PURE__ */ V(Dn.ConfigLayout, {
|
|
3265
|
+
extraCSSRules: A,
|
|
1383
3266
|
dimensions: l,
|
|
1384
3267
|
hideSettings: v,
|
|
1385
|
-
settings: /* @__PURE__ */
|
|
3268
|
+
settings: /* @__PURE__ */ B(xi, {
|
|
1386
3269
|
model: e,
|
|
1387
3270
|
configuration: t,
|
|
1388
3271
|
onChangeModel: r,
|
|
1389
3272
|
onChangeConfiguration: n,
|
|
1390
3273
|
groups: {
|
|
1391
|
-
Settings:
|
|
1392
|
-
Properties:
|
|
3274
|
+
Settings: oe,
|
|
3275
|
+
Properties: se
|
|
1393
3276
|
}
|
|
1394
3277
|
}),
|
|
1395
3278
|
children: [
|
|
1396
|
-
/* @__PURE__ */
|
|
3279
|
+
/* @__PURE__ */ B(Di, {
|
|
1397
3280
|
component: "div",
|
|
1398
3281
|
variant: "body1",
|
|
1399
3282
|
children: f?.label || ""
|
|
1400
3283
|
}),
|
|
1401
|
-
|
|
3284
|
+
re && /* @__PURE__ */ B(Ei, {
|
|
1402
3285
|
label: x.label,
|
|
1403
|
-
children: /* @__PURE__ */
|
|
3286
|
+
children: /* @__PURE__ */ B(M, {
|
|
1404
3287
|
markup: e.teacherInstructions || "",
|
|
1405
3288
|
onChange: this.onTeacherInstructionsChange,
|
|
1406
3289
|
imageSupport: i,
|
|
1407
3290
|
nonEmpty: !1,
|
|
1408
|
-
spellCheck:
|
|
1409
|
-
maxImageWidth: C && C.teacherInstructions ||
|
|
1410
|
-
maxImageHeight:
|
|
3291
|
+
spellCheck: N,
|
|
3292
|
+
maxImageWidth: C && C.teacherInstructions || P,
|
|
3293
|
+
maxImageHeight: w && w.teacherInstructions || F,
|
|
1411
3294
|
uploadSoundSupport: a,
|
|
1412
3295
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
1413
|
-
mathMlOptions:
|
|
3296
|
+
mathMlOptions: O
|
|
1414
3297
|
})
|
|
1415
3298
|
}),
|
|
1416
|
-
|
|
3299
|
+
te && /* @__PURE__ */ B(Ei, {
|
|
1417
3300
|
label: h.label,
|
|
1418
|
-
children: /* @__PURE__ */
|
|
3301
|
+
children: /* @__PURE__ */ B(M, {
|
|
1419
3302
|
markup: e.prompt,
|
|
1420
3303
|
onChange: this.onPromptChange,
|
|
1421
3304
|
imageSupport: i,
|
|
1422
3305
|
nonEmpty: !1,
|
|
1423
|
-
spellCheck:
|
|
3306
|
+
spellCheck: N,
|
|
1424
3307
|
disableUnderline: !0,
|
|
1425
|
-
maxImageWidth:
|
|
1426
|
-
maxImageHeight:
|
|
3308
|
+
maxImageWidth: P,
|
|
3309
|
+
maxImageHeight: F,
|
|
1427
3310
|
uploadSoundSupport: a,
|
|
1428
3311
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
1429
|
-
mathMlOptions:
|
|
3312
|
+
mathMlOptions: O
|
|
1430
3313
|
})
|
|
1431
3314
|
}),
|
|
1432
|
-
/* @__PURE__ */
|
|
3315
|
+
/* @__PURE__ */ B(hi, {
|
|
1433
3316
|
authoring: s,
|
|
1434
3317
|
gridConfigurations: u,
|
|
1435
3318
|
graphDimensions: d,
|
|
1436
|
-
labelsPlaceholders:
|
|
3319
|
+
labelsPlaceholders: ae,
|
|
1437
3320
|
model: e,
|
|
1438
|
-
showLabels:
|
|
1439
|
-
dimensionsEnabled:
|
|
1440
|
-
showTitle:
|
|
3321
|
+
showLabels: ee,
|
|
3322
|
+
dimensionsEnabled: j,
|
|
3323
|
+
showTitle: ie,
|
|
1441
3324
|
titlePlaceholder: S.placeholder,
|
|
1442
3325
|
onChange: this.props.onModelChanged,
|
|
1443
|
-
mathMlOptions:
|
|
3326
|
+
mathMlOptions: O
|
|
1444
3327
|
}),
|
|
1445
|
-
/* @__PURE__ */
|
|
1446
|
-
errors:
|
|
3328
|
+
/* @__PURE__ */ B(bi, {
|
|
3329
|
+
errors: k,
|
|
1447
3330
|
model: e,
|
|
1448
3331
|
onChange: this.props.onModelChanged,
|
|
1449
|
-
mathMlOptions:
|
|
3332
|
+
mathMlOptions: O
|
|
1450
3333
|
}),
|
|
1451
|
-
|
|
3334
|
+
ne && /* @__PURE__ */ B(Ei, {
|
|
1452
3335
|
label: g.label || "Rationale",
|
|
1453
|
-
children: /* @__PURE__ */
|
|
3336
|
+
children: /* @__PURE__ */ B(M, {
|
|
1454
3337
|
markup: e.rationale || "",
|
|
1455
3338
|
onChange: this.onRationaleChange,
|
|
1456
3339
|
imageSupport: i,
|
|
1457
|
-
spellCheck:
|
|
1458
|
-
maxImageWidth: C && C.rationale ||
|
|
1459
|
-
maxImageHeight:
|
|
3340
|
+
spellCheck: N,
|
|
3341
|
+
maxImageWidth: C && C.rationale || P,
|
|
3342
|
+
maxImageHeight: w && w.rationale || F,
|
|
1460
3343
|
uploadSoundSupport: a,
|
|
1461
3344
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
1462
|
-
mathMlOptions:
|
|
3345
|
+
mathMlOptions: O
|
|
1463
3346
|
})
|
|
1464
3347
|
})
|
|
1465
3348
|
]
|
|
1466
3349
|
});
|
|
1467
3350
|
}
|
|
1468
|
-
},
|
|
3351
|
+
}, ki = class e extends CustomEvent {
|
|
1469
3352
|
static {
|
|
1470
3353
|
this.TYPE = "model.updated";
|
|
1471
3354
|
}
|
|
@@ -1478,7 +3361,7 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1478
3361
|
}
|
|
1479
3362
|
}), this.update = t, this.reset = n;
|
|
1480
3363
|
}
|
|
1481
|
-
},
|
|
3364
|
+
}, Ai = class e extends CustomEvent {
|
|
1482
3365
|
static {
|
|
1483
3366
|
this.TYPE = "delete.image";
|
|
1484
3367
|
}
|
|
@@ -1491,7 +3374,7 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1491
3374
|
}
|
|
1492
3375
|
}), this.src = t, this.done = n;
|
|
1493
3376
|
}
|
|
1494
|
-
},
|
|
3377
|
+
}, ji = class e extends CustomEvent {
|
|
1495
3378
|
static {
|
|
1496
3379
|
this.TYPE = "insert.image";
|
|
1497
3380
|
}
|
|
@@ -1501,7 +3384,7 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1501
3384
|
detail: t
|
|
1502
3385
|
}), this.handler = t;
|
|
1503
3386
|
}
|
|
1504
|
-
},
|
|
3387
|
+
}, Mi = class e extends CustomEvent {
|
|
1505
3388
|
static {
|
|
1506
3389
|
this.TYPE = "delete.sound";
|
|
1507
3390
|
}
|
|
@@ -1514,7 +3397,7 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1514
3397
|
}
|
|
1515
3398
|
}), this.src = t, this.done = n;
|
|
1516
3399
|
}
|
|
1517
|
-
},
|
|
3400
|
+
}, Ni = class e extends CustomEvent {
|
|
1518
3401
|
static {
|
|
1519
3402
|
this.TYPE = "insert.sound";
|
|
1520
3403
|
}
|
|
@@ -1524,7 +3407,7 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1524
3407
|
detail: t
|
|
1525
3408
|
}), this.handler = t;
|
|
1526
3409
|
}
|
|
1527
|
-
},
|
|
3410
|
+
}, Pi = {
|
|
1528
3411
|
model: {
|
|
1529
3412
|
answers: { correctAnswer: {
|
|
1530
3413
|
name: "Correct Answer",
|
|
@@ -1859,17 +3742,17 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1859
3742
|
mmlEditing: !1
|
|
1860
3743
|
}
|
|
1861
3744
|
}
|
|
1862
|
-
},
|
|
3745
|
+
}, Fi = (0, W.default)("pie-elements:graphing-solution-set:configure"), Ii = (e) => Object.keys(e || {}).sort().reduce((t, n) => (n !== "correctAnswer" && (t[n] = e[n]), t), {}), Li = class e extends HTMLElement {
|
|
1863
3746
|
static createDefaultModel = (e = {}) => {
|
|
1864
3747
|
let t = {
|
|
1865
|
-
...
|
|
3748
|
+
...Pi.model,
|
|
1866
3749
|
...e
|
|
1867
3750
|
}, { answers: n = {}, domain: r = {}, graph: i = {}, range: a = {}, standardGrid: o } = t;
|
|
1868
3751
|
return {
|
|
1869
3752
|
...t,
|
|
1870
3753
|
answers: n && n.correctAnswer && {
|
|
1871
3754
|
correctAnswer: n.correctAnswer,
|
|
1872
|
-
...
|
|
3755
|
+
...Ii(n)
|
|
1873
3756
|
} || n,
|
|
1874
3757
|
range: o && {
|
|
1875
3758
|
...a,
|
|
@@ -1885,7 +3768,7 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1885
3768
|
};
|
|
1886
3769
|
};
|
|
1887
3770
|
constructor() {
|
|
1888
|
-
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration =
|
|
3771
|
+
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = Pi.configuration;
|
|
1889
3772
|
}
|
|
1890
3773
|
set model(t) {
|
|
1891
3774
|
this._model = e.createDefaultModel(t), this._render();
|
|
@@ -1894,26 +3777,26 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1894
3777
|
this._configuration = e, e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings ? this._model.language && (this._configuration.language.enabled = !0) : delete this._model.language, this._render();
|
|
1895
3778
|
}
|
|
1896
3779
|
onModelChanged = (e) => {
|
|
1897
|
-
this._model = e, this._render(),
|
|
3780
|
+
this._model = e, this._render(), Fi("[onModelChanged]: ", this._model), this.dispatchEvent(new ki(this._model));
|
|
1898
3781
|
};
|
|
1899
3782
|
onConfigurationChanged = (e) => {
|
|
1900
3783
|
this._configuration = e, this._render();
|
|
1901
3784
|
};
|
|
1902
3785
|
insertImage = (e) => {
|
|
1903
|
-
this.dispatchEvent(new
|
|
3786
|
+
this.dispatchEvent(new ji(e));
|
|
1904
3787
|
};
|
|
1905
3788
|
onDeleteImage = (e, t) => {
|
|
1906
|
-
this.dispatchEvent(new
|
|
3789
|
+
this.dispatchEvent(new Ai(e, t));
|
|
1907
3790
|
};
|
|
1908
3791
|
insertSound(e) {
|
|
1909
|
-
this.dispatchEvent(new
|
|
3792
|
+
this.dispatchEvent(new Ni(e));
|
|
1910
3793
|
}
|
|
1911
3794
|
onDeleteSound(e, t) {
|
|
1912
|
-
this.dispatchEvent(new
|
|
3795
|
+
this.dispatchEvent(new Mi(e, t));
|
|
1913
3796
|
}
|
|
1914
3797
|
_render() {
|
|
1915
3798
|
if (this._model) {
|
|
1916
|
-
let e =
|
|
3799
|
+
let e = z.createElement(Oi, {
|
|
1917
3800
|
onModelChanged: this.onModelChanged,
|
|
1918
3801
|
onConfigurationChanged: this.onConfigurationChanged,
|
|
1919
3802
|
model: this._model,
|
|
@@ -1927,16 +3810,19 @@ var ft = u(P)(({ theme: e }) => ({
|
|
|
1927
3810
|
delete: this.onDeleteSound.bind(this)
|
|
1928
3811
|
}
|
|
1929
3812
|
});
|
|
1930
|
-
this._root ||=
|
|
1931
|
-
|
|
3813
|
+
this._root ||= ye(this), this._root.render(e), queueMicrotask(() => {
|
|
3814
|
+
oe(this);
|
|
1932
3815
|
});
|
|
1933
3816
|
}
|
|
1934
3817
|
}
|
|
3818
|
+
connectedCallback() {
|
|
3819
|
+
this._render();
|
|
3820
|
+
}
|
|
1935
3821
|
disconnectedCallback() {
|
|
1936
|
-
this._root
|
|
3822
|
+
this._root &&= (this._root.unmount(), null);
|
|
1937
3823
|
}
|
|
1938
3824
|
};
|
|
1939
3825
|
//#endregion
|
|
1940
|
-
export {
|
|
3826
|
+
export { Li as default };
|
|
1941
3827
|
|
|
1942
3828
|
//# sourceMappingURL=index.js.map
|