@pie-element/extended-text-entry 16.0.2-next.20261007003844 → 16.0.2
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/browser/author/index.js +644 -644
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{dist-Dcix7OLC.js → dist-j1vyVp3g.js} +10160 -9237
- package/dist/browser/dist-j1vyVp3g.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +644 -644
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +2 -2
- package/dist/browser/editor-runtime/{dist-DOjPCQ8G.js → dist-DuFswITB.js} +7033 -6110
- package/dist/browser/editor-runtime/dist-DuFswITB.js.map +1 -0
- package/dist/browser/editor-runtime/{main-CbR0FsxW.js → main-BhK70YBL.js} +176 -176
- package/dist/browser/editor-runtime/main-BhK70YBL.js.map +1 -0
- package/dist/browser/editor-runtime/print/index.js +2 -2
- package/dist/browser/{main-D5PwTUlN.js → main-BRPP6Mvf.js} +176 -176
- package/dist/browser/main-BRPP6Mvf.js.map +1 -0
- package/dist/browser/print/index.js +2 -2
- package/dist/delivery/annotation/annotation-editor.js +24 -23
- package/dist/index.iife.js +44 -42
- package/module/print.js +9572 -8649
- package/module/print.js.map +1 -1
- package/package.json +12 -11
- package/dist/browser/dist-Dcix7OLC.js.map +0 -1
- package/dist/browser/editor-runtime/dist-DOjPCQ8G.js.map +0 -1
- package/dist/browser/editor-runtime/main-CbR0FsxW.js.map +0 -1
- package/dist/browser/main-D5PwTUlN.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as e } from "../rolldown-runtime-CHQKHQ89.js";
|
|
2
|
-
import { A as t, B as n, C as r, D as i, E as a,
|
|
3
|
-
import { t as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { createRoot as
|
|
2
|
+
import { A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, J as l, K as u, L as d, M as f, P as p, Q as m, R as h, T as g, U as _, V as v, W as y, X as b, Y as x, Z as S, _ as C, a as w, c as T, d as E, f as D, h as O, i as k, j as A, l as j, m as M, n as N, o as P, p as F, q as I, r as L, s as R, t as ee, w as te, x as ne, z } from "../dist-DuFswITB.js";
|
|
3
|
+
import { t as re } from "../browser-BfhCkXup.js";
|
|
4
|
+
import * as B from "react";
|
|
5
|
+
import V, { Component as ie, createElement as ae, useId as oe } from "react";
|
|
6
|
+
import { jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
7
|
+
import { createRoot as se } from "react-dom/client";
|
|
8
8
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/utils/createChainedFunction.js
|
|
9
|
-
var
|
|
9
|
+
var ce = a;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/switchBaseClasses.js
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function le(e) {
|
|
13
|
+
return l("PrivateSwitchBase", e);
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
I("PrivateSwitchBase", [
|
|
16
16
|
"root",
|
|
17
17
|
"checked",
|
|
18
18
|
"disabled",
|
|
@@ -22,18 +22,18 @@ u("PrivateSwitchBase", [
|
|
|
22
22
|
]);
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/SwitchBase.js
|
|
25
|
-
var
|
|
26
|
-
let { classes: t, checked:
|
|
25
|
+
var ue = (e) => {
|
|
26
|
+
let { classes: t, checked: r, disabled: i, edge: a } = e;
|
|
27
27
|
return b({
|
|
28
28
|
root: [
|
|
29
29
|
"root",
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
r && "checked",
|
|
31
|
+
i && "disabled",
|
|
32
|
+
a && `edge${n(a)}`
|
|
33
33
|
],
|
|
34
34
|
input: ["input"]
|
|
35
|
-
},
|
|
36
|
-
},
|
|
35
|
+
}, le, t);
|
|
36
|
+
}, de = _(C, { name: "MuiSwitchBase" })({
|
|
37
37
|
padding: 9,
|
|
38
38
|
borderRadius: "50%",
|
|
39
39
|
variants: [
|
|
@@ -60,9 +60,9 @@ var ce = (e) => {
|
|
|
60
60
|
style: { marginRight: -12 }
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
|
-
}),
|
|
63
|
+
}), fe = _("input", {
|
|
64
64
|
name: "MuiSwitchBase",
|
|
65
|
-
shouldForwardProp:
|
|
65
|
+
shouldForwardProp: y
|
|
66
66
|
})({
|
|
67
67
|
cursor: "inherit",
|
|
68
68
|
position: "absolute",
|
|
@@ -74,8 +74,8 @@ var ce = (e) => {
|
|
|
74
74
|
margin: 0,
|
|
75
75
|
padding: 0,
|
|
76
76
|
zIndex: 1
|
|
77
|
-
}),
|
|
78
|
-
let { autoFocus: n, checked: r, checkedIcon: a, defaultChecked: o, disabled: s, disableFocusRipple: c = !1, edge: l = !1, icon: u, id: d, inputProps: f, inputRef: p, name: m, onBlur: h, onChange: g, onFocus: _, readOnly: v, required: y = !1, tabIndex: b, type: x, value: S, slots: C = {}, slotProps: w = {}, ...T } = e, [E, D] =
|
|
77
|
+
}), pe = /*#__PURE__*/ B.forwardRef(function(e, t) {
|
|
78
|
+
let { autoFocus: n, checked: r, checkedIcon: a, defaultChecked: o, disabled: s, disableFocusRipple: c = !1, edge: l = !1, icon: u, id: d, inputProps: f, inputRef: p, name: m, onBlur: h, onChange: g, onFocus: _, readOnly: v, required: y = !1, tabIndex: b, type: x, value: S, slots: C = {}, slotProps: w = {}, ...T } = e, [E, D] = te({
|
|
79
79
|
controlled: r,
|
|
80
80
|
default: !!o,
|
|
81
81
|
name: "SwitchBase",
|
|
@@ -96,15 +96,15 @@ var ce = (e) => {
|
|
|
96
96
|
disabled: M,
|
|
97
97
|
disableFocusRipple: c,
|
|
98
98
|
edge: l
|
|
99
|
-
}, I =
|
|
99
|
+
}, I = ue(P), L = {
|
|
100
100
|
slots: C,
|
|
101
101
|
slotProps: {
|
|
102
102
|
input: f,
|
|
103
103
|
...w
|
|
104
104
|
}
|
|
105
|
-
}, [R,
|
|
105
|
+
}, [R, ee] = i("root", {
|
|
106
106
|
ref: t,
|
|
107
|
-
elementType:
|
|
107
|
+
elementType: de,
|
|
108
108
|
className: I.root,
|
|
109
109
|
shouldForwardComponentProp: !0,
|
|
110
110
|
externalForwardedProps: {
|
|
@@ -128,9 +128,9 @@ var ce = (e) => {
|
|
|
128
128
|
role: void 0,
|
|
129
129
|
tabIndex: null
|
|
130
130
|
}
|
|
131
|
-
}), [
|
|
131
|
+
}), [ne, z] = i("input", {
|
|
132
132
|
ref: p,
|
|
133
|
-
elementType:
|
|
133
|
+
elementType: fe,
|
|
134
134
|
className: I.input,
|
|
135
135
|
externalForwardedProps: L,
|
|
136
136
|
getSlotProps: (e) => ({
|
|
@@ -154,17 +154,17 @@ var ce = (e) => {
|
|
|
154
154
|
...x === "checkbox" && S === void 0 ? {} : { value: S }
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
|
-
return /*#__PURE__*/
|
|
158
|
-
...
|
|
159
|
-
children: [/*#__PURE__*/
|
|
157
|
+
return /*#__PURE__*/ U(R, {
|
|
158
|
+
...ee,
|
|
159
|
+
children: [/*#__PURE__*/ H(ne, { ...z }), E ? a : u]
|
|
160
160
|
});
|
|
161
|
-
}),
|
|
161
|
+
}), me = g(/*#__PURE__*/ H("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"), he = g(/*#__PURE__*/ H("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"), ge = g(/*#__PURE__*/ H("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");
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
|
|
164
|
-
function
|
|
165
|
-
return
|
|
164
|
+
function _e(e) {
|
|
165
|
+
return l("MuiCheckbox", e);
|
|
166
166
|
}
|
|
167
|
-
var
|
|
167
|
+
var ve = I("MuiCheckbox", [
|
|
168
168
|
"root",
|
|
169
169
|
"checked",
|
|
170
170
|
"disabled",
|
|
@@ -173,31 +173,31 @@ var ge = u("MuiCheckbox", [
|
|
|
173
173
|
"colorSecondary",
|
|
174
174
|
"sizeSmall",
|
|
175
175
|
"sizeMedium"
|
|
176
|
-
]),
|
|
177
|
-
let { classes: t, indeterminate:
|
|
176
|
+
]), ye = (e) => {
|
|
177
|
+
let { classes: t, indeterminate: r, color: i, size: a } = e, o = b({ root: [
|
|
178
178
|
"root",
|
|
179
|
-
|
|
180
|
-
`color${
|
|
181
|
-
`size${
|
|
182
|
-
] },
|
|
179
|
+
r && "indeterminate",
|
|
180
|
+
`color${n(i)}`,
|
|
181
|
+
`size${n(a)}`
|
|
182
|
+
] }, _e, t);
|
|
183
183
|
return {
|
|
184
184
|
...t,
|
|
185
|
-
...
|
|
185
|
+
...o
|
|
186
186
|
};
|
|
187
|
-
},
|
|
188
|
-
shouldForwardProp: (e) =>
|
|
187
|
+
}, be = _(pe, {
|
|
188
|
+
shouldForwardProp: (e) => y(e) || e === "classes",
|
|
189
189
|
name: "MuiCheckbox",
|
|
190
190
|
slot: "Root",
|
|
191
191
|
overridesResolver: (e, t) => {
|
|
192
|
-
let { ownerState:
|
|
192
|
+
let { ownerState: r } = e;
|
|
193
193
|
return [
|
|
194
194
|
t.root,
|
|
195
|
-
|
|
196
|
-
t[`size${
|
|
197
|
-
|
|
195
|
+
r.indeterminate && t.indeterminate,
|
|
196
|
+
t[`size${n(r.size)}`],
|
|
197
|
+
r.color !== "default" && t[`color${n(r.color)}`]
|
|
198
198
|
];
|
|
199
199
|
}
|
|
200
|
-
})(
|
|
200
|
+
})(c(({ theme: e }) => ({
|
|
201
201
|
color: (e.vars || e).palette.text.secondary,
|
|
202
202
|
variants: [
|
|
203
203
|
{
|
|
@@ -207,18 +207,18 @@ var ge = u("MuiCheckbox", [
|
|
|
207
207
|
},
|
|
208
208
|
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity) } }
|
|
209
209
|
},
|
|
210
|
-
...Object.entries(e.palette).filter(
|
|
210
|
+
...Object.entries(e.palette).filter(z()).map(([t]) => ({
|
|
211
211
|
props: {
|
|
212
212
|
color: t,
|
|
213
213
|
disableRipple: !1
|
|
214
214
|
},
|
|
215
215
|
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity) } }
|
|
216
216
|
})),
|
|
217
|
-
...Object.entries(e.palette).filter(
|
|
217
|
+
...Object.entries(e.palette).filter(z()).map(([t]) => ({
|
|
218
218
|
props: { color: t },
|
|
219
219
|
style: {
|
|
220
|
-
[`&.${
|
|
221
|
-
[`&.${
|
|
220
|
+
[`&.${ve.checked}, &.${ve.indeterminate}`]: { color: (e.vars || e).palette[t].main },
|
|
221
|
+
[`&.${ve.disabled}`]: { color: (e.vars || e).palette.action.disabled }
|
|
222
222
|
}
|
|
223
223
|
})),
|
|
224
224
|
{
|
|
@@ -226,50 +226,50 @@ var ge = u("MuiCheckbox", [
|
|
|
226
226
|
style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
|
|
227
227
|
}
|
|
228
228
|
]
|
|
229
|
-
}))),
|
|
230
|
-
let
|
|
229
|
+
}))), xe = /*#__PURE__*/ H(he, {}), Se = /*#__PURE__*/ H(me, {}), Ce = /*#__PURE__*/ H(ge, {}), we = /*#__PURE__*/ B.forwardRef(function(e, t) {
|
|
230
|
+
let n = v({
|
|
231
231
|
props: e,
|
|
232
232
|
name: "MuiCheckbox"
|
|
233
|
-
}), { checkedIcon:
|
|
234
|
-
...
|
|
235
|
-
disableRipple:
|
|
236
|
-
color:
|
|
237
|
-
indeterminate:
|
|
238
|
-
size:
|
|
239
|
-
},
|
|
233
|
+
}), { checkedIcon: a = xe, color: o = "primary", icon: s = Se, indeterminate: c = !1, indeterminateIcon: l = Ce, inputProps: u, size: d = "medium", disableRipple: f = !1, className: p, slots: m = {}, slotProps: h = {}, ...g } = n, _ = c ? l : s, y = c ? l : a, b = {
|
|
234
|
+
...n,
|
|
235
|
+
disableRipple: f,
|
|
236
|
+
color: o,
|
|
237
|
+
indeterminate: c,
|
|
238
|
+
size: d
|
|
239
|
+
}, x = ye(b), C = h.input ?? u, [w, T] = i("root", {
|
|
240
240
|
ref: t,
|
|
241
|
-
elementType:
|
|
242
|
-
className:
|
|
241
|
+
elementType: be,
|
|
242
|
+
className: S(x.root, p),
|
|
243
243
|
shouldForwardComponentProp: !0,
|
|
244
244
|
externalForwardedProps: {
|
|
245
|
-
slots:
|
|
246
|
-
slotProps:
|
|
247
|
-
...
|
|
245
|
+
slots: m,
|
|
246
|
+
slotProps: h,
|
|
247
|
+
...g
|
|
248
248
|
},
|
|
249
|
-
ownerState:
|
|
249
|
+
ownerState: b,
|
|
250
250
|
additionalProps: {
|
|
251
251
|
type: "checkbox",
|
|
252
|
-
icon: /*#__PURE__*/
|
|
253
|
-
checkedIcon: /*#__PURE__*/
|
|
254
|
-
disableRipple:
|
|
255
|
-
slots:
|
|
256
|
-
slotProps: { input: r(typeof C == "function" ? C(
|
|
257
|
-
"data-indeterminate":
|
|
258
|
-
"aria-checked":
|
|
252
|
+
icon: /*#__PURE__*/ B.cloneElement(_, { fontSize: _.props.fontSize ?? d }),
|
|
253
|
+
checkedIcon: /*#__PURE__*/ B.cloneElement(y, { fontSize: y.props.fontSize ?? d }),
|
|
254
|
+
disableRipple: f,
|
|
255
|
+
slots: m,
|
|
256
|
+
slotProps: { input: r(typeof C == "function" ? C(b) : C, {
|
|
257
|
+
"data-indeterminate": c,
|
|
258
|
+
"aria-checked": c ? "mixed" : void 0
|
|
259
259
|
}) }
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
return /*#__PURE__*/
|
|
262
|
+
return /*#__PURE__*/ H(w, {
|
|
263
263
|
...T,
|
|
264
|
-
classes:
|
|
264
|
+
classes: x
|
|
265
265
|
});
|
|
266
266
|
});
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
|
|
269
|
-
function
|
|
270
|
-
return
|
|
269
|
+
function Te(e) {
|
|
270
|
+
return l("MuiFormControlLabel", e);
|
|
271
271
|
}
|
|
272
|
-
var
|
|
272
|
+
var W = I("MuiFormControlLabel", [
|
|
273
273
|
"root",
|
|
274
274
|
"labelPlacementStart",
|
|
275
275
|
"labelPlacementTop",
|
|
@@ -279,31 +279,31 @@ var K = u("MuiFormControlLabel", [
|
|
|
279
279
|
"error",
|
|
280
280
|
"required",
|
|
281
281
|
"asterisk"
|
|
282
|
-
]),
|
|
283
|
-
let { classes: t, disabled:
|
|
282
|
+
]), Ee = (e) => {
|
|
283
|
+
let { classes: t, disabled: r, labelPlacement: i, error: a, required: o } = e;
|
|
284
284
|
return b({
|
|
285
285
|
root: [
|
|
286
286
|
"root",
|
|
287
|
-
|
|
288
|
-
`labelPlacement${
|
|
289
|
-
|
|
290
|
-
|
|
287
|
+
r && "disabled",
|
|
288
|
+
`labelPlacement${n(i)}`,
|
|
289
|
+
a && "error",
|
|
290
|
+
o && "required"
|
|
291
291
|
],
|
|
292
|
-
label: ["label",
|
|
293
|
-
asterisk: ["asterisk",
|
|
294
|
-
},
|
|
295
|
-
},
|
|
292
|
+
label: ["label", r && "disabled"],
|
|
293
|
+
asterisk: ["asterisk", a && "error"]
|
|
294
|
+
}, Te, t);
|
|
295
|
+
}, De = _("label", {
|
|
296
296
|
name: "MuiFormControlLabel",
|
|
297
297
|
slot: "Root",
|
|
298
298
|
overridesResolver: (e, t) => {
|
|
299
|
-
let { ownerState:
|
|
299
|
+
let { ownerState: r } = e;
|
|
300
300
|
return [
|
|
301
|
-
{ [`& .${
|
|
301
|
+
{ [`& .${W.label}`]: t.label },
|
|
302
302
|
t.root,
|
|
303
|
-
t[`labelPlacement${
|
|
303
|
+
t[`labelPlacement${n(r.labelPlacement)}`]
|
|
304
304
|
];
|
|
305
305
|
}
|
|
306
|
-
})(
|
|
306
|
+
})(c(({ theme: e }) => ({
|
|
307
307
|
display: "inline-flex",
|
|
308
308
|
alignItems: "center",
|
|
309
309
|
cursor: "pointer",
|
|
@@ -311,8 +311,8 @@ var K = u("MuiFormControlLabel", [
|
|
|
311
311
|
WebkitTapHighlightColor: "transparent",
|
|
312
312
|
marginLeft: -11,
|
|
313
313
|
marginRight: 16,
|
|
314
|
-
[`&.${
|
|
315
|
-
[`& .${
|
|
314
|
+
[`&.${W.disabled}`]: { cursor: "default" },
|
|
315
|
+
[`& .${W.label}`]: { [`&.${W.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
|
|
316
316
|
variants: [
|
|
317
317
|
{
|
|
318
318
|
props: { labelPlacement: "start" },
|
|
@@ -334,14 +334,14 @@ var K = u("MuiFormControlLabel", [
|
|
|
334
334
|
style: { marginLeft: 16 }
|
|
335
335
|
}
|
|
336
336
|
]
|
|
337
|
-
}))),
|
|
337
|
+
}))), Oe = _("span", {
|
|
338
338
|
name: "MuiFormControlLabel",
|
|
339
339
|
slot: "Asterisk"
|
|
340
|
-
})(
|
|
341
|
-
let
|
|
340
|
+
})(c(({ theme: e }) => ({ [`&.${W.error}`]: { color: (e.vars || e).palette.error.main } }))), ke = /*#__PURE__*/ B.forwardRef(function(e, t) {
|
|
341
|
+
let n = v({
|
|
342
342
|
props: e,
|
|
343
343
|
name: "MuiFormControlLabel"
|
|
344
|
-
}), { checked:
|
|
344
|
+
}), { checked: r, className: a, componentsProps: o = {}, control: s, disabled: c, disableTypography: l, inputRef: u, label: d, labelPlacement: f = "end", name: p, onChange: m, required: g, slots: _ = {}, slotProps: y = {}, value: b, ...x } = n, C = F(), w = c ?? s.props.disabled ?? C?.disabled, T = g ?? s.props.required, E = {
|
|
345
345
|
disabled: w,
|
|
346
346
|
required: T
|
|
347
347
|
};
|
|
@@ -352,40 +352,40 @@ var K = u("MuiFormControlLabel", [
|
|
|
352
352
|
"value",
|
|
353
353
|
"inputRef"
|
|
354
354
|
].forEach((e) => {
|
|
355
|
-
|
|
355
|
+
s.props[e] === void 0 && n[e] !== void 0 && (E[e] = n[e]);
|
|
356
356
|
});
|
|
357
|
-
let
|
|
358
|
-
props:
|
|
357
|
+
let D = O({
|
|
358
|
+
props: n,
|
|
359
359
|
muiFormControl: C,
|
|
360
360
|
states: ["error"]
|
|
361
361
|
}), k = {
|
|
362
|
-
...
|
|
362
|
+
...n,
|
|
363
363
|
disabled: w,
|
|
364
|
-
labelPlacement:
|
|
364
|
+
labelPlacement: f,
|
|
365
365
|
required: T,
|
|
366
|
-
error:
|
|
367
|
-
}, A =
|
|
368
|
-
elementType:
|
|
366
|
+
error: D.error
|
|
367
|
+
}, A = Ee(k), [j, M] = i("typography", {
|
|
368
|
+
elementType: h,
|
|
369
369
|
externalForwardedProps: {
|
|
370
|
-
slots:
|
|
370
|
+
slots: _,
|
|
371
371
|
slotProps: {
|
|
372
|
-
...
|
|
373
|
-
...
|
|
372
|
+
...o,
|
|
373
|
+
...y
|
|
374
374
|
}
|
|
375
375
|
},
|
|
376
376
|
ownerState: k
|
|
377
|
-
}), N =
|
|
378
|
-
return N != null && N.type !==
|
|
377
|
+
}), N = d;
|
|
378
|
+
return N != null && N.type !== h && !l && (N = /*#__PURE__*/ H(j, {
|
|
379
379
|
component: "span",
|
|
380
380
|
...M,
|
|
381
|
-
className:
|
|
381
|
+
className: S(A.label, M?.className),
|
|
382
382
|
children: N
|
|
383
|
-
})), /*#__PURE__*/
|
|
384
|
-
className:
|
|
383
|
+
})), /*#__PURE__*/ U(De, {
|
|
384
|
+
className: S(A.root, a),
|
|
385
385
|
ownerState: k,
|
|
386
386
|
ref: t,
|
|
387
|
-
...
|
|
388
|
-
children: [/*#__PURE__*/
|
|
387
|
+
...x,
|
|
388
|
+
children: [/*#__PURE__*/ B.cloneElement(s, E), T ? /*#__PURE__*/ U("div", { children: [N, /*#__PURE__*/ U(Oe, {
|
|
389
389
|
ownerState: k,
|
|
390
390
|
"aria-hidden": !0,
|
|
391
391
|
className: A.asterisk,
|
|
@@ -395,10 +395,10 @@ var K = u("MuiFormControlLabel", [
|
|
|
395
395
|
});
|
|
396
396
|
//#endregion
|
|
397
397
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
|
|
398
|
-
function
|
|
399
|
-
return
|
|
398
|
+
function Ae(e) {
|
|
399
|
+
return l("MuiInputAdornment", e);
|
|
400
400
|
}
|
|
401
|
-
var
|
|
401
|
+
var je = I("MuiInputAdornment", [
|
|
402
402
|
"root",
|
|
403
403
|
"filled",
|
|
404
404
|
"standard",
|
|
@@ -408,29 +408,29 @@ var ke = u("MuiInputAdornment", [
|
|
|
408
408
|
"disablePointerEvents",
|
|
409
409
|
"hiddenLabel",
|
|
410
410
|
"sizeSmall"
|
|
411
|
-
]),
|
|
412
|
-
let { ownerState:
|
|
411
|
+
]), Me, Ne = (e, t) => {
|
|
412
|
+
let { ownerState: r } = e;
|
|
413
413
|
return [
|
|
414
414
|
t.root,
|
|
415
|
-
t[`position${
|
|
416
|
-
|
|
417
|
-
t[
|
|
415
|
+
t[`position${n(r.position)}`],
|
|
416
|
+
r.disablePointerEvents === !0 && t.disablePointerEvents,
|
|
417
|
+
t[r.variant]
|
|
418
418
|
];
|
|
419
|
-
},
|
|
420
|
-
let { classes: t, disablePointerEvents:
|
|
419
|
+
}, Pe = (e) => {
|
|
420
|
+
let { classes: t, disablePointerEvents: r, hiddenLabel: i, position: a, size: o, variant: s } = e;
|
|
421
421
|
return b({ root: [
|
|
422
422
|
"root",
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
] },
|
|
429
|
-
},
|
|
423
|
+
r && "disablePointerEvents",
|
|
424
|
+
a && `position${n(a)}`,
|
|
425
|
+
s,
|
|
426
|
+
i && "hiddenLabel",
|
|
427
|
+
o && `size${n(o)}`
|
|
428
|
+
] }, Ae, t);
|
|
429
|
+
}, Fe = _("div", {
|
|
430
430
|
name: "MuiInputAdornment",
|
|
431
431
|
slot: "Root",
|
|
432
|
-
overridesResolver:
|
|
433
|
-
})(
|
|
432
|
+
overridesResolver: Ne
|
|
433
|
+
})(c(({ theme: e }) => ({
|
|
434
434
|
display: "flex",
|
|
435
435
|
maxHeight: "2em",
|
|
436
436
|
alignItems: "center",
|
|
@@ -439,7 +439,7 @@ var ke = u("MuiInputAdornment", [
|
|
|
439
439
|
variants: [
|
|
440
440
|
{
|
|
441
441
|
props: { variant: "filled" },
|
|
442
|
-
style: { [`&.${
|
|
442
|
+
style: { [`&.${je.positionStart}&:not(.${je.hiddenLabel})`]: { marginTop: 16 } }
|
|
443
443
|
},
|
|
444
444
|
{
|
|
445
445
|
props: { position: "start" },
|
|
@@ -454,45 +454,45 @@ var ke = u("MuiInputAdornment", [
|
|
|
454
454
|
style: { pointerEvents: "none" }
|
|
455
455
|
}
|
|
456
456
|
]
|
|
457
|
-
}))),
|
|
458
|
-
let
|
|
457
|
+
}))), Ie = /*#__PURE__*/ B.forwardRef(function(e, t) {
|
|
458
|
+
let n = v({
|
|
459
459
|
props: e,
|
|
460
460
|
name: "MuiInputAdornment"
|
|
461
|
-
}), { children:
|
|
462
|
-
|
|
463
|
-
let
|
|
464
|
-
...
|
|
465
|
-
hiddenLabel:
|
|
466
|
-
size:
|
|
467
|
-
disablePointerEvents:
|
|
468
|
-
position:
|
|
469
|
-
variant:
|
|
470
|
-
},
|
|
471
|
-
return /*#__PURE__*/
|
|
461
|
+
}), { children: r, className: i, component: a = "div", disablePointerEvents: o = !1, disableTypography: s = !1, position: c, variant: l, ...u } = n, d = F() || {}, f = l;
|
|
462
|
+
l && d.variant, d && !f && (f = d.variant);
|
|
463
|
+
let p = {
|
|
464
|
+
...n,
|
|
465
|
+
hiddenLabel: d.hiddenLabel,
|
|
466
|
+
size: d.size,
|
|
467
|
+
disablePointerEvents: o,
|
|
468
|
+
position: c,
|
|
469
|
+
variant: f
|
|
470
|
+
}, m = Pe(p);
|
|
471
|
+
return /*#__PURE__*/ H(M.Provider, {
|
|
472
472
|
value: null,
|
|
473
|
-
children: /*#__PURE__*/
|
|
474
|
-
as:
|
|
475
|
-
ownerState:
|
|
476
|
-
className:
|
|
473
|
+
children: /*#__PURE__*/ H(Fe, {
|
|
474
|
+
as: a,
|
|
475
|
+
ownerState: p,
|
|
476
|
+
className: S(m.root, i),
|
|
477
477
|
ref: t,
|
|
478
|
-
...
|
|
479
|
-
children: typeof
|
|
478
|
+
...u,
|
|
479
|
+
children: typeof r == "string" && !s ? /*#__PURE__*/ H(h, {
|
|
480
480
|
color: "textSecondary",
|
|
481
|
-
children:
|
|
482
|
-
}) : /*#__PURE__*/
|
|
481
|
+
children: r
|
|
482
|
+
}) : /*#__PURE__*/ U(B.Fragment, { children: [c === "start" ? Me ||= /*#__PURE__*/ H("span", {
|
|
483
483
|
className: "notranslate",
|
|
484
484
|
"aria-hidden": !0,
|
|
485
485
|
children: ""
|
|
486
|
-
}) : null,
|
|
486
|
+
}) : null, r] })
|
|
487
487
|
})
|
|
488
488
|
});
|
|
489
|
-
}),
|
|
489
|
+
}), Le = g(/*#__PURE__*/ H("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), Re = g(/*#__PURE__*/ H("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), ze = _("span", {
|
|
490
490
|
name: "MuiRadioButtonIcon",
|
|
491
|
-
shouldForwardProp:
|
|
491
|
+
shouldForwardProp: y
|
|
492
492
|
})({
|
|
493
493
|
position: "relative",
|
|
494
494
|
display: "flex"
|
|
495
|
-
}),
|
|
495
|
+
}), Be = _(Le, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), Ve = _(Re, { name: "MuiRadioButtonIcon" })(c(({ theme: e }) => ({
|
|
496
496
|
left: 0,
|
|
497
497
|
position: "absolute",
|
|
498
498
|
transform: "scale(0)",
|
|
@@ -511,19 +511,19 @@ var ke = u("MuiInputAdornment", [
|
|
|
511
511
|
}
|
|
512
512
|
}]
|
|
513
513
|
})));
|
|
514
|
-
function
|
|
514
|
+
function He(e) {
|
|
515
515
|
let { checked: t = !1, classes: n = {}, fontSize: r } = e, i = {
|
|
516
516
|
...e,
|
|
517
517
|
checked: t
|
|
518
518
|
};
|
|
519
|
-
return /*#__PURE__*/
|
|
519
|
+
return /*#__PURE__*/ U(ze, {
|
|
520
520
|
className: n.root,
|
|
521
521
|
ownerState: i,
|
|
522
|
-
children: [/*#__PURE__*/
|
|
522
|
+
children: [/*#__PURE__*/ H(Be, {
|
|
523
523
|
fontSize: r,
|
|
524
524
|
className: n.background,
|
|
525
525
|
ownerState: i
|
|
526
|
-
}), /*#__PURE__*/
|
|
526
|
+
}), /*#__PURE__*/ H(Ve, {
|
|
527
527
|
fontSize: r,
|
|
528
528
|
className: n.dot,
|
|
529
529
|
ownerState: i
|
|
@@ -532,49 +532,49 @@ function Be(e) {
|
|
|
532
532
|
}
|
|
533
533
|
//#endregion
|
|
534
534
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroupContext.js
|
|
535
|
-
var
|
|
535
|
+
var Ue = /*#__PURE__*/ B.createContext(void 0);
|
|
536
536
|
//#endregion
|
|
537
537
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/useRadioGroup.js
|
|
538
|
-
function
|
|
539
|
-
return
|
|
538
|
+
function We() {
|
|
539
|
+
return B.useContext(Ue);
|
|
540
540
|
}
|
|
541
541
|
//#endregion
|
|
542
542
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Radio/radioClasses.js
|
|
543
|
-
function
|
|
544
|
-
return
|
|
543
|
+
function Ge(e) {
|
|
544
|
+
return l("MuiRadio", e);
|
|
545
545
|
}
|
|
546
|
-
var
|
|
546
|
+
var Ke = I("MuiRadio", [
|
|
547
547
|
"root",
|
|
548
548
|
"checked",
|
|
549
549
|
"disabled",
|
|
550
550
|
"colorPrimary",
|
|
551
551
|
"colorSecondary",
|
|
552
552
|
"sizeSmall"
|
|
553
|
-
]),
|
|
554
|
-
let { classes: t, color:
|
|
553
|
+
]), qe = (e) => {
|
|
554
|
+
let { classes: t, color: r, size: i } = e, a = { root: [
|
|
555
555
|
"root",
|
|
556
|
-
`color${
|
|
557
|
-
|
|
556
|
+
`color${n(r)}`,
|
|
557
|
+
i !== "medium" && `size${n(i)}`
|
|
558
558
|
] };
|
|
559
559
|
return {
|
|
560
560
|
...t,
|
|
561
|
-
...b(
|
|
561
|
+
...b(a, Ge, t)
|
|
562
562
|
};
|
|
563
|
-
},
|
|
564
|
-
shouldForwardProp: (e) =>
|
|
563
|
+
}, Je = _(pe, {
|
|
564
|
+
shouldForwardProp: (e) => y(e) || e === "classes",
|
|
565
565
|
name: "MuiRadio",
|
|
566
566
|
slot: "Root",
|
|
567
567
|
overridesResolver: (e, t) => {
|
|
568
|
-
let { ownerState:
|
|
568
|
+
let { ownerState: r } = e;
|
|
569
569
|
return [
|
|
570
570
|
t.root,
|
|
571
|
-
|
|
572
|
-
t[`color${
|
|
571
|
+
r.size !== "medium" && t[`size${n(r.size)}`],
|
|
572
|
+
t[`color${n(r.color)}`]
|
|
573
573
|
];
|
|
574
574
|
}
|
|
575
|
-
})(
|
|
575
|
+
})(c(({ theme: e }) => ({
|
|
576
576
|
color: (e.vars || e).palette.text.secondary,
|
|
577
|
-
[`&.${
|
|
577
|
+
[`&.${Ke.disabled}`]: { color: (e.vars || e).palette.action.disabled },
|
|
578
578
|
variants: [
|
|
579
579
|
{
|
|
580
580
|
props: {
|
|
@@ -584,7 +584,7 @@ var We = u("MuiRadio", [
|
|
|
584
584
|
},
|
|
585
585
|
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity) } }
|
|
586
586
|
},
|
|
587
|
-
...Object.entries(e.palette).filter(
|
|
587
|
+
...Object.entries(e.palette).filter(z()).map(([t]) => ({
|
|
588
588
|
props: {
|
|
589
589
|
color: t,
|
|
590
590
|
disabled: !1,
|
|
@@ -592,12 +592,12 @@ var We = u("MuiRadio", [
|
|
|
592
592
|
},
|
|
593
593
|
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity) } }
|
|
594
594
|
})),
|
|
595
|
-
...Object.entries(e.palette).filter(
|
|
595
|
+
...Object.entries(e.palette).filter(z()).map(([t]) => ({
|
|
596
596
|
props: {
|
|
597
597
|
color: t,
|
|
598
598
|
disabled: !1
|
|
599
599
|
},
|
|
600
|
-
style: { [`&.${
|
|
600
|
+
style: { [`&.${Ke.checked}`]: { color: (e.vars || e).palette[t].main } }
|
|
601
601
|
})),
|
|
602
602
|
{
|
|
603
603
|
props: { disableRipple: !1 },
|
|
@@ -605,32 +605,32 @@ var We = u("MuiRadio", [
|
|
|
605
605
|
}
|
|
606
606
|
]
|
|
607
607
|
})));
|
|
608
|
-
function
|
|
608
|
+
function Ye(e, t) {
|
|
609
609
|
return typeof t == "object" && t ? e === t : String(e) === String(t);
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
let
|
|
611
|
+
var Xe = /*#__PURE__*/ H(He, { checked: !0 }), Ze = /*#__PURE__*/ H(He, {}), Qe = /*#__PURE__*/ B.forwardRef(function(e, t) {
|
|
612
|
+
let n = v({
|
|
613
613
|
props: e,
|
|
614
614
|
name: "MuiRadio"
|
|
615
|
-
}), { checked:
|
|
616
|
-
|
|
617
|
-
let
|
|
618
|
-
...
|
|
619
|
-
disabled:
|
|
620
|
-
disableRipple:
|
|
621
|
-
color:
|
|
622
|
-
size:
|
|
623
|
-
}, C =
|
|
624
|
-
w && (T === void 0 && (T =
|
|
625
|
-
let O =
|
|
615
|
+
}), { checked: r, checkedIcon: a = Xe, color: o = "primary", icon: s = Ze, name: c, onChange: l, size: u = "medium", className: d, disabled: f, disableRipple: p = !1, slots: m = {}, slotProps: h = {}, inputProps: g, ..._ } = n, y = F(), b = f;
|
|
616
|
+
y && b === void 0 && (b = y.disabled), b ??= !1;
|
|
617
|
+
let x = {
|
|
618
|
+
...n,
|
|
619
|
+
disabled: b,
|
|
620
|
+
disableRipple: p,
|
|
621
|
+
color: o,
|
|
622
|
+
size: u
|
|
623
|
+
}, C = qe(x), w = We(), T = r, E = ce(l, w && w.onChange), D = c;
|
|
624
|
+
w && (T === void 0 && (T = Ye(w.value, n.value)), D === void 0 && (D = w.name));
|
|
625
|
+
let O = h.input ?? g, [k, A] = i("root", {
|
|
626
626
|
ref: t,
|
|
627
|
-
elementType:
|
|
628
|
-
className:
|
|
627
|
+
elementType: Je,
|
|
628
|
+
className: S(C.root, d),
|
|
629
629
|
shouldForwardComponentProp: !0,
|
|
630
630
|
externalForwardedProps: {
|
|
631
|
-
slots:
|
|
632
|
-
slotProps:
|
|
633
|
-
...
|
|
631
|
+
slots: m,
|
|
632
|
+
slotProps: h,
|
|
633
|
+
..._
|
|
634
634
|
},
|
|
635
635
|
getSlotProps: (e) => ({
|
|
636
636
|
...e,
|
|
@@ -638,29 +638,29 @@ var Je = /*#__PURE__*/ W(Be, { checked: !0 }), Ye = /*#__PURE__*/ W(Be, {}), Xe
|
|
|
638
638
|
e.onChange?.(t, ...n), E(t, ...n);
|
|
639
639
|
}
|
|
640
640
|
}),
|
|
641
|
-
ownerState:
|
|
641
|
+
ownerState: x,
|
|
642
642
|
additionalProps: {
|
|
643
643
|
type: "radio",
|
|
644
|
-
icon: /*#__PURE__*/
|
|
645
|
-
checkedIcon: /*#__PURE__*/
|
|
646
|
-
disabled:
|
|
644
|
+
icon: /*#__PURE__*/ B.cloneElement(s, { fontSize: s.props.fontSize ?? u }),
|
|
645
|
+
checkedIcon: /*#__PURE__*/ B.cloneElement(a, { fontSize: a.props.fontSize ?? u }),
|
|
646
|
+
disabled: b,
|
|
647
647
|
name: D,
|
|
648
648
|
checked: T,
|
|
649
|
-
slots:
|
|
650
|
-
slotProps: { input: typeof O == "function" ? O(
|
|
649
|
+
slots: m,
|
|
650
|
+
slotProps: { input: typeof O == "function" ? O(x) : O }
|
|
651
651
|
}
|
|
652
652
|
});
|
|
653
|
-
return /*#__PURE__*/
|
|
653
|
+
return /*#__PURE__*/ H(k, {
|
|
654
654
|
...A,
|
|
655
655
|
classes: C
|
|
656
656
|
});
|
|
657
657
|
});
|
|
658
658
|
//#endregion
|
|
659
659
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
|
|
660
|
-
function
|
|
661
|
-
return
|
|
660
|
+
function $e(e) {
|
|
661
|
+
return l("MuiSwitch", e);
|
|
662
662
|
}
|
|
663
|
-
var
|
|
663
|
+
var G = I("MuiSwitch", [
|
|
664
664
|
"root",
|
|
665
665
|
"edgeStart",
|
|
666
666
|
"edgeEnd",
|
|
@@ -674,36 +674,36 @@ var q = u("MuiSwitch", [
|
|
|
674
674
|
"input",
|
|
675
675
|
"thumb",
|
|
676
676
|
"track"
|
|
677
|
-
]),
|
|
678
|
-
let { classes: t, edge:
|
|
677
|
+
]), et = (e) => {
|
|
678
|
+
let { classes: t, edge: r, size: i, color: a, checked: o, disabled: s } = e, c = b({
|
|
679
679
|
root: [
|
|
680
680
|
"root",
|
|
681
|
-
|
|
682
|
-
`size${
|
|
681
|
+
r && `edge${n(r)}`,
|
|
682
|
+
`size${n(i)}`
|
|
683
683
|
],
|
|
684
684
|
switchBase: [
|
|
685
685
|
"switchBase",
|
|
686
|
-
`color${
|
|
687
|
-
|
|
688
|
-
|
|
686
|
+
`color${n(a)}`,
|
|
687
|
+
o && "checked",
|
|
688
|
+
s && "disabled"
|
|
689
689
|
],
|
|
690
690
|
thumb: ["thumb"],
|
|
691
691
|
track: ["track"],
|
|
692
692
|
input: ["input"]
|
|
693
|
-
},
|
|
693
|
+
}, $e, t);
|
|
694
694
|
return {
|
|
695
695
|
...t,
|
|
696
|
-
...
|
|
696
|
+
...c
|
|
697
697
|
};
|
|
698
|
-
},
|
|
698
|
+
}, tt = _("span", {
|
|
699
699
|
name: "MuiSwitch",
|
|
700
700
|
slot: "Root",
|
|
701
701
|
overridesResolver: (e, t) => {
|
|
702
|
-
let { ownerState:
|
|
702
|
+
let { ownerState: r } = e;
|
|
703
703
|
return [
|
|
704
704
|
t.root,
|
|
705
|
-
|
|
706
|
-
t[`size${
|
|
705
|
+
r.edge && t[`edge${n(r.edge)}`],
|
|
706
|
+
t[`size${n(r.size)}`]
|
|
707
707
|
];
|
|
708
708
|
}
|
|
709
709
|
})({
|
|
@@ -733,66 +733,66 @@ var q = u("MuiSwitch", [
|
|
|
733
733
|
width: 40,
|
|
734
734
|
height: 24,
|
|
735
735
|
padding: 7,
|
|
736
|
-
[`& .${
|
|
736
|
+
[`& .${G.thumb}`]: {
|
|
737
737
|
width: 16,
|
|
738
738
|
height: 16
|
|
739
739
|
},
|
|
740
|
-
[`& .${
|
|
740
|
+
[`& .${G.switchBase}`]: {
|
|
741
741
|
padding: 4,
|
|
742
|
-
[`&.${
|
|
742
|
+
[`&.${G.checked}`]: { transform: "translateX(16px)" }
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
]
|
|
747
|
-
}),
|
|
747
|
+
}), nt = _(pe, {
|
|
748
748
|
name: "MuiSwitch",
|
|
749
749
|
slot: "SwitchBase",
|
|
750
750
|
overridesResolver: (e, t) => {
|
|
751
|
-
let { ownerState:
|
|
751
|
+
let { ownerState: r } = e;
|
|
752
752
|
return [
|
|
753
753
|
t.switchBase,
|
|
754
|
-
{ [`& .${
|
|
755
|
-
|
|
754
|
+
{ [`& .${G.input}`]: t.input },
|
|
755
|
+
r.color !== "default" && t[`color${n(r.color)}`]
|
|
756
756
|
];
|
|
757
757
|
}
|
|
758
|
-
})(
|
|
758
|
+
})(c(({ theme: e }) => ({
|
|
759
759
|
position: "absolute",
|
|
760
760
|
top: 0,
|
|
761
761
|
left: 0,
|
|
762
762
|
zIndex: 1,
|
|
763
763
|
color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
|
|
764
764
|
transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
|
|
765
|
-
[`&.${
|
|
766
|
-
[`&.${
|
|
767
|
-
[`&.${
|
|
768
|
-
[`&.${
|
|
769
|
-
[`& .${
|
|
765
|
+
[`&.${G.checked}`]: { transform: "translateX(20px)" },
|
|
766
|
+
[`&.${G.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
|
|
767
|
+
[`&.${G.checked} + .${G.track}`]: { opacity: .5 },
|
|
768
|
+
[`&.${G.disabled} + .${G.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
|
|
769
|
+
[`& .${G.input}`]: {
|
|
770
770
|
left: "-100%",
|
|
771
771
|
width: "300%"
|
|
772
772
|
}
|
|
773
|
-
})),
|
|
773
|
+
})), c(({ theme: e }) => ({
|
|
774
774
|
"&:hover": {
|
|
775
775
|
backgroundColor: e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity),
|
|
776
776
|
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
777
777
|
},
|
|
778
|
-
variants: [...Object.entries(e.palette).filter(
|
|
778
|
+
variants: [...Object.entries(e.palette).filter(z(["light"])).map(([t]) => ({
|
|
779
779
|
props: { color: t },
|
|
780
780
|
style: {
|
|
781
|
-
[`&.${
|
|
781
|
+
[`&.${G.checked}`]: {
|
|
782
782
|
color: (e.vars || e).palette[t].main,
|
|
783
783
|
"&:hover": {
|
|
784
784
|
backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
|
|
785
785
|
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
786
786
|
},
|
|
787
|
-
[`&.${
|
|
787
|
+
[`&.${G.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)}` }
|
|
788
788
|
},
|
|
789
|
-
[`&.${
|
|
789
|
+
[`&.${G.checked} + .${G.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
|
|
790
790
|
}
|
|
791
791
|
}))]
|
|
792
|
-
}))),
|
|
792
|
+
}))), rt = _("span", {
|
|
793
793
|
name: "MuiSwitch",
|
|
794
794
|
slot: "Track"
|
|
795
|
-
})(
|
|
795
|
+
})(c(({ theme: e }) => ({
|
|
796
796
|
height: "100%",
|
|
797
797
|
width: "100%",
|
|
798
798
|
borderRadius: 14 / 2,
|
|
@@ -802,10 +802,10 @@ var q = u("MuiSwitch", [
|
|
|
802
802
|
transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
|
|
803
803
|
backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
|
|
804
804
|
opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
|
|
805
|
-
}))),
|
|
805
|
+
}))), it = _("span", {
|
|
806
806
|
name: "MuiSwitch",
|
|
807
807
|
slot: "Thumb"
|
|
808
|
-
})(
|
|
808
|
+
})(c(({ theme: e }) => ({
|
|
809
809
|
boxShadow: (e.vars || e).shadows[1],
|
|
810
810
|
backgroundColor: "currentColor",
|
|
811
811
|
boxSizing: "border-box",
|
|
@@ -813,88 +813,88 @@ var q = u("MuiSwitch", [
|
|
|
813
813
|
width: 20,
|
|
814
814
|
height: 20,
|
|
815
815
|
borderRadius: "50%"
|
|
816
|
-
}))),
|
|
817
|
-
let
|
|
816
|
+
}))), at = /*#__PURE__*/ B.forwardRef(function(e, t) {
|
|
817
|
+
let n = v({
|
|
818
818
|
props: e,
|
|
819
819
|
name: "MuiSwitch"
|
|
820
|
-
}), { className:
|
|
821
|
-
...
|
|
822
|
-
color:
|
|
823
|
-
edge:
|
|
824
|
-
size:
|
|
825
|
-
},
|
|
826
|
-
slots:
|
|
827
|
-
slotProps:
|
|
828
|
-
}, [
|
|
829
|
-
className:
|
|
830
|
-
elementType: $e,
|
|
831
|
-
externalForwardedProps: _,
|
|
832
|
-
ownerState: m,
|
|
833
|
-
additionalProps: { sx: u }
|
|
834
|
-
}), [x, S] = i("thumb", {
|
|
835
|
-
className: h.thumb,
|
|
836
|
-
elementType: nt,
|
|
837
|
-
externalForwardedProps: _,
|
|
838
|
-
ownerState: m
|
|
839
|
-
}), C = /*#__PURE__*/ W(x, { ...S }), [w, T] = i("track", {
|
|
840
|
-
className: h.track,
|
|
820
|
+
}), { className: a, color: o = "primary", edge: s = !1, size: c = "medium", sx: l, slots: u = {}, slotProps: d = {}, ...f } = n, p = {
|
|
821
|
+
...n,
|
|
822
|
+
color: o,
|
|
823
|
+
edge: s,
|
|
824
|
+
size: c
|
|
825
|
+
}, m = et(p), h = d.input, g = {
|
|
826
|
+
slots: u,
|
|
827
|
+
slotProps: d
|
|
828
|
+
}, [_, y] = i("root", {
|
|
829
|
+
className: S(m.root, a),
|
|
841
830
|
elementType: tt,
|
|
842
|
-
externalForwardedProps:
|
|
843
|
-
ownerState:
|
|
831
|
+
externalForwardedProps: g,
|
|
832
|
+
ownerState: p,
|
|
833
|
+
additionalProps: { sx: l }
|
|
834
|
+
}), [b, x] = i("thumb", {
|
|
835
|
+
className: m.thumb,
|
|
836
|
+
elementType: it,
|
|
837
|
+
externalForwardedProps: g,
|
|
838
|
+
ownerState: p
|
|
839
|
+
}), C = /*#__PURE__*/ H(b, { ...x }), [w, T] = i("track", {
|
|
840
|
+
className: m.track,
|
|
841
|
+
elementType: rt,
|
|
842
|
+
externalForwardedProps: g,
|
|
843
|
+
ownerState: p
|
|
844
844
|
});
|
|
845
|
-
return /*#__PURE__*/
|
|
846
|
-
...
|
|
847
|
-
children: [/*#__PURE__*/
|
|
845
|
+
return /*#__PURE__*/ U(_, {
|
|
846
|
+
...y,
|
|
847
|
+
children: [/*#__PURE__*/ H(nt, {
|
|
848
848
|
type: "checkbox",
|
|
849
849
|
icon: C,
|
|
850
850
|
checkedIcon: C,
|
|
851
851
|
ref: t,
|
|
852
|
-
ownerState:
|
|
853
|
-
...
|
|
852
|
+
ownerState: p,
|
|
853
|
+
...f,
|
|
854
854
|
classes: {
|
|
855
|
-
...
|
|
856
|
-
root:
|
|
855
|
+
...m,
|
|
856
|
+
root: m.switchBase
|
|
857
857
|
},
|
|
858
858
|
slots: {
|
|
859
|
-
...
|
|
860
|
-
...
|
|
859
|
+
...u.switchBase && { root: u.switchBase },
|
|
860
|
+
...u.input && { input: u.input }
|
|
861
861
|
},
|
|
862
862
|
slotProps: {
|
|
863
|
-
...
|
|
864
|
-
input: r(typeof
|
|
863
|
+
...d.switchBase && { root: typeof d.switchBase == "function" ? d.switchBase(p) : d.switchBase },
|
|
864
|
+
input: r(typeof h == "function" ? h(p) : h, { role: "switch" })
|
|
865
865
|
}
|
|
866
|
-
}), /*#__PURE__*/
|
|
866
|
+
}), /*#__PURE__*/ H(w, { ...T })]
|
|
867
867
|
});
|
|
868
|
-
}),
|
|
868
|
+
}), K = /* @__PURE__ */ e(m(), 1), ot = _(ke)(() => ({ "& .MuiFormControlLabel-label": {
|
|
869
869
|
left: "-5px",
|
|
870
870
|
position: "relative"
|
|
871
|
-
} })),
|
|
871
|
+
} })), st = _(Qe)(() => ({ color: `${t.tertiary()} !important` })), ct = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ H(ot, {
|
|
872
872
|
value: t,
|
|
873
|
-
control: /* @__PURE__ */
|
|
873
|
+
control: /* @__PURE__ */ H(st, {
|
|
874
874
|
checked: n,
|
|
875
875
|
onChange: r
|
|
876
876
|
}),
|
|
877
877
|
label: e
|
|
878
878
|
});
|
|
879
|
-
|
|
880
|
-
label:
|
|
881
|
-
value:
|
|
882
|
-
checked:
|
|
883
|
-
onChange:
|
|
879
|
+
ct.propTypes = {
|
|
880
|
+
label: K.default.string,
|
|
881
|
+
value: K.default.string,
|
|
882
|
+
checked: K.default.bool,
|
|
883
|
+
onChange: K.default.func
|
|
884
884
|
};
|
|
885
885
|
//#endregion
|
|
886
886
|
//#region ../../lib-react/config-ui/dist/feedback-config/group.js
|
|
887
|
-
var
|
|
887
|
+
var lt = _("div")(() => ({
|
|
888
888
|
display: "flex",
|
|
889
889
|
alignItems: "center"
|
|
890
|
-
})),
|
|
890
|
+
})), ut = _("div")(() => ({
|
|
891
891
|
display: "flex",
|
|
892
892
|
alignItems: "center"
|
|
893
|
-
})),
|
|
893
|
+
})), dt = _(ct)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": { fontSize: e.typography.fontSize - 2 } })), ft = (e) => {
|
|
894
894
|
let { feedbackLabels: t, value: n, className: r, onChange: i, keys: a } = e;
|
|
895
|
-
return /* @__PURE__ */
|
|
895
|
+
return /* @__PURE__ */ H(lt, {
|
|
896
896
|
className: r,
|
|
897
|
-
children: a.map((e) => /* @__PURE__ */
|
|
897
|
+
children: a.map((e) => /* @__PURE__ */ H(ut, { children: /* @__PURE__ */ H(dt, {
|
|
898
898
|
value: e,
|
|
899
899
|
checked: n === e,
|
|
900
900
|
onChange: (e) => i(e.currentTarget.value),
|
|
@@ -902,55 +902,55 @@ var st = s("div")(() => ({
|
|
|
902
902
|
}) }, e))
|
|
903
903
|
});
|
|
904
904
|
};
|
|
905
|
-
|
|
906
|
-
className:
|
|
907
|
-
feedbackLabels:
|
|
908
|
-
value:
|
|
909
|
-
keys:
|
|
910
|
-
onChange:
|
|
905
|
+
ft.propTypes = {
|
|
906
|
+
className: K.default.string,
|
|
907
|
+
feedbackLabels: K.default.object.isRequired,
|
|
908
|
+
value: K.default.string.isRequired,
|
|
909
|
+
keys: K.default.arrayOf(K.default.string),
|
|
910
|
+
onChange: K.default.func
|
|
911
911
|
};
|
|
912
912
|
//#endregion
|
|
913
913
|
//#region ../../lib-react/config-ui/dist/feedback-config/feedback-selector.js
|
|
914
|
-
function
|
|
914
|
+
function q(e) {
|
|
915
915
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
return !e ||
|
|
917
|
+
function pt(e, t) {
|
|
918
|
+
return !e || q(e) ? e : q(e.default) ? e.default : t && q(e[t]) ? e[t] : t && q(e[t]?.default) ? e[t].default : e;
|
|
919
919
|
}
|
|
920
|
-
var
|
|
920
|
+
var mt = pt(E, "InputContainer") || pt(_t.InputContainer, "InputContainer"), ht = j, gt = ht.default, _t = gt && typeof gt == "object" ? gt : ht, vt = _(N)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), yt = {
|
|
921
921
|
default: "Simple Feedback",
|
|
922
922
|
none: "No Feedback",
|
|
923
923
|
custom: "Customized Feedback"
|
|
924
|
-
},
|
|
924
|
+
}, bt = _("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), xt = _(mt)(() => ({ paddingBottom: 0 })), St = _("div")(({ theme: e }) => ({
|
|
925
925
|
marginTop: "0px",
|
|
926
|
-
background:
|
|
926
|
+
background: t.backgroundDark(),
|
|
927
927
|
padding: 0,
|
|
928
928
|
marginBottom: e.spacing(2),
|
|
929
929
|
borderRadius: "4px"
|
|
930
|
-
})),
|
|
930
|
+
})), Ct = _("div")(({ theme: e }) => ({
|
|
931
931
|
marginTop: "0px",
|
|
932
|
-
background:
|
|
932
|
+
background: t.backgroundDark(),
|
|
933
933
|
padding: e.spacing(2),
|
|
934
934
|
marginBottom: e.spacing(2),
|
|
935
935
|
borderRadius: "4px",
|
|
936
936
|
fontFamily: e.typography.fontFamily,
|
|
937
937
|
cursor: "default"
|
|
938
|
-
})),
|
|
939
|
-
type:
|
|
938
|
+
})), wt = _(ft)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), Tt = {
|
|
939
|
+
type: K.default.oneOf([
|
|
940
940
|
"default",
|
|
941
941
|
"custom",
|
|
942
942
|
"none"
|
|
943
943
|
]),
|
|
944
|
-
default:
|
|
945
|
-
custom:
|
|
946
|
-
},
|
|
944
|
+
default: K.default.string,
|
|
945
|
+
custom: K.default.string
|
|
946
|
+
}, Et = class extends V.Component {
|
|
947
947
|
static propTypes = {
|
|
948
|
-
keys:
|
|
949
|
-
label:
|
|
950
|
-
feedback:
|
|
951
|
-
onChange:
|
|
952
|
-
toolbarOpts:
|
|
953
|
-
mathMlOptions:
|
|
948
|
+
keys: K.default.arrayOf(K.default.string),
|
|
949
|
+
label: K.default.string.isRequired,
|
|
950
|
+
feedback: K.default.shape(Tt).isRequired,
|
|
951
|
+
onChange: K.default.func.isRequired,
|
|
952
|
+
toolbarOpts: K.default.object,
|
|
953
|
+
mathMlOptions: K.default.object
|
|
954
954
|
};
|
|
955
955
|
changeType = (e) => {
|
|
956
956
|
let { onChange: t, feedback: n } = this.props;
|
|
@@ -969,34 +969,34 @@ var ft = dt(T, "InputContainer") || dt(ht.InputContainer, "InputContainer"), pt
|
|
|
969
969
|
};
|
|
970
970
|
render() {
|
|
971
971
|
let { keys: e, label: t, feedback: n, toolbarOpts: r, mathMlOptions: i = {} } = this.props;
|
|
972
|
-
return /* @__PURE__ */
|
|
973
|
-
/* @__PURE__ */
|
|
972
|
+
return /* @__PURE__ */ U(bt, { children: [
|
|
973
|
+
/* @__PURE__ */ H(xt, {
|
|
974
974
|
label: t,
|
|
975
975
|
extraClasses: { label: { transform: "translateY(-20%)" } },
|
|
976
|
-
children: /* @__PURE__ */
|
|
977
|
-
keys: e || Object.keys(
|
|
976
|
+
children: /* @__PURE__ */ H(wt, {
|
|
977
|
+
keys: e || Object.keys(yt),
|
|
978
978
|
label: t,
|
|
979
979
|
value: n.type,
|
|
980
980
|
onChange: this.changeType,
|
|
981
|
-
feedbackLabels:
|
|
981
|
+
feedbackLabels: yt
|
|
982
982
|
})
|
|
983
983
|
}),
|
|
984
|
-
n.type === "custom" && /* @__PURE__ */
|
|
984
|
+
n.type === "custom" && /* @__PURE__ */ H(St, { children: /* @__PURE__ */ H(vt, {
|
|
985
985
|
onChange: this.changeCustom,
|
|
986
986
|
markup: n.custom || "",
|
|
987
987
|
toolbarOpts: r,
|
|
988
988
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
989
989
|
mathMlOptions: i
|
|
990
990
|
}) }),
|
|
991
|
-
n.type === "default" && /* @__PURE__ */
|
|
991
|
+
n.type === "default" && /* @__PURE__ */ U(Ct, { children: [" ", n.default] })
|
|
992
992
|
] });
|
|
993
993
|
}
|
|
994
|
-
},
|
|
994
|
+
}, Dt = _(L)(() => ({})), Ot = class extends V.Component {
|
|
995
995
|
static propTypes = {
|
|
996
|
-
className:
|
|
997
|
-
contentClassName:
|
|
998
|
-
contentStyle:
|
|
999
|
-
children:
|
|
996
|
+
className: K.default.string,
|
|
997
|
+
contentClassName: K.default.string,
|
|
998
|
+
contentStyle: K.default.object,
|
|
999
|
+
children: K.default.oneOfType([K.default.arrayOf(K.default.node), K.default.node]).isRequired
|
|
1000
1000
|
};
|
|
1001
1001
|
constructor(e) {
|
|
1002
1002
|
super(e), this.state = { value: 0 };
|
|
@@ -1006,21 +1006,21 @@ var ft = dt(T, "InputContainer") || dt(ht.InputContainer, "InputContainer"), pt
|
|
|
1006
1006
|
};
|
|
1007
1007
|
render() {
|
|
1008
1008
|
let { value: e } = this.state, { children: t, className: n, contentClassName: r, contentStyle: i = {} } = this.props;
|
|
1009
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ U("div", {
|
|
1010
1010
|
className: n,
|
|
1011
|
-
children: [/* @__PURE__ */
|
|
1011
|
+
children: [/* @__PURE__ */ H(k, {
|
|
1012
1012
|
indicatorColor: "primary",
|
|
1013
1013
|
value: e,
|
|
1014
1014
|
onChange: this.handleChange,
|
|
1015
|
-
children:
|
|
1016
|
-
}), /* @__PURE__ */
|
|
1015
|
+
children: V.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ H(Dt, { label: e.props.title }, t) : null)
|
|
1016
|
+
}), /* @__PURE__ */ H("div", {
|
|
1017
1017
|
className: r,
|
|
1018
1018
|
style: i,
|
|
1019
1019
|
children: t[e]
|
|
1020
1020
|
})]
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
|
-
},
|
|
1023
|
+
}, kt = _(ke)(({ theme: e, mini: t }) => ({
|
|
1024
1024
|
margin: 0,
|
|
1025
1025
|
marginLeft: 0,
|
|
1026
1026
|
padding: 0,
|
|
@@ -1030,22 +1030,22 @@ var ft = dt(T, "InputContainer") || dt(ht.InputContainer, "InputContainer"), pt
|
|
|
1030
1030
|
color: "rgba(0,0,0,1.0)",
|
|
1031
1031
|
...t && {
|
|
1032
1032
|
marginLeft: e.spacing(1),
|
|
1033
|
-
color:
|
|
1033
|
+
color: u[700],
|
|
1034
1034
|
fontSize: e.typography.fontSize - 3
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
})),
|
|
1038
|
-
color: `${
|
|
1039
|
-
...
|
|
1037
|
+
})), At = _(we)(({ theme: e, mini: n, error: r }) => ({
|
|
1038
|
+
color: `${t.tertiary()} !important`,
|
|
1039
|
+
...n && {
|
|
1040
1040
|
margin: 0,
|
|
1041
1041
|
padding: 0,
|
|
1042
1042
|
width: e.spacing(3),
|
|
1043
1043
|
height: e.spacing(3)
|
|
1044
1044
|
},
|
|
1045
|
-
...
|
|
1046
|
-
})),
|
|
1045
|
+
...r && { color: `${e.palette.error.main} !important` }
|
|
1046
|
+
})), jt = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ H(kt, {
|
|
1047
1047
|
mini: e,
|
|
1048
|
-
control: /* @__PURE__ */
|
|
1048
|
+
control: /* @__PURE__ */ H(At, {
|
|
1049
1049
|
checked: t,
|
|
1050
1050
|
onChange: n,
|
|
1051
1051
|
value: r,
|
|
@@ -1054,21 +1054,21 @@ var ft = dt(T, "InputContainer") || dt(ht.InputContainer, "InputContainer"), pt
|
|
|
1054
1054
|
}),
|
|
1055
1055
|
label: i
|
|
1056
1056
|
});
|
|
1057
|
-
|
|
1058
|
-
mini:
|
|
1059
|
-
checked:
|
|
1060
|
-
onChange:
|
|
1061
|
-
value:
|
|
1062
|
-
label:
|
|
1063
|
-
error:
|
|
1064
|
-
},
|
|
1057
|
+
jt.propTypes = {
|
|
1058
|
+
mini: K.default.bool,
|
|
1059
|
+
checked: K.default.bool.isRequired,
|
|
1060
|
+
onChange: K.default.func.isRequired,
|
|
1061
|
+
value: K.default.string,
|
|
1062
|
+
label: K.default.string.isRequired,
|
|
1063
|
+
error: K.default.bool
|
|
1064
|
+
}, jt.defaultProps = {
|
|
1065
1065
|
value: "",
|
|
1066
1066
|
mini: !1,
|
|
1067
1067
|
error: !1
|
|
1068
1068
|
};
|
|
1069
1069
|
//#endregion
|
|
1070
1070
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
1071
|
-
var
|
|
1071
|
+
var Mt = /* @__PURE__ */ e(re(), 1), Nt = (0, Mt.default)("@pie-lib:config-ui:number-text-field"), Pt = _(w)(({ theme: e }) => ({
|
|
1072
1072
|
marginRight: e.spacing(1),
|
|
1073
1073
|
"& .MuiInputLabel-root": {
|
|
1074
1074
|
width: "auto",
|
|
@@ -1090,24 +1090,24 @@ var At = /* @__PURE__ */ e(te(), 1), jt = (0, At.default)("@pie-lib:config-ui:nu
|
|
|
1090
1090
|
minHeight: "auto",
|
|
1091
1091
|
padding: "6px 0 7px"
|
|
1092
1092
|
}
|
|
1093
|
-
})),
|
|
1094
|
-
if (!
|
|
1095
|
-
if (!
|
|
1096
|
-
if (
|
|
1097
|
-
},
|
|
1093
|
+
})), Ft = (e, t) => {
|
|
1094
|
+
if (!f(e) && !f(t)) return 0;
|
|
1095
|
+
if (!f(e) && f(t)) return t;
|
|
1096
|
+
if (f(e)) return e;
|
|
1097
|
+
}, It = class extends V.Component {
|
|
1098
1098
|
static propTypes = {
|
|
1099
|
-
disabled:
|
|
1100
|
-
className:
|
|
1101
|
-
inputClassName:
|
|
1102
|
-
onChange:
|
|
1103
|
-
value:
|
|
1104
|
-
min:
|
|
1105
|
-
max:
|
|
1106
|
-
label:
|
|
1107
|
-
suffix:
|
|
1108
|
-
showErrorWhenOutsideRange:
|
|
1109
|
-
disableUnderline:
|
|
1110
|
-
variant:
|
|
1099
|
+
disabled: K.default.bool,
|
|
1100
|
+
className: K.default.string,
|
|
1101
|
+
inputClassName: K.default.string,
|
|
1102
|
+
onChange: K.default.func.isRequired,
|
|
1103
|
+
value: K.default.number,
|
|
1104
|
+
min: K.default.number,
|
|
1105
|
+
max: K.default.number,
|
|
1106
|
+
label: K.default.string,
|
|
1107
|
+
suffix: K.default.string,
|
|
1108
|
+
showErrorWhenOutsideRange: K.default.bool,
|
|
1109
|
+
disableUnderline: K.default.bool,
|
|
1110
|
+
variant: K.default.string
|
|
1111
1111
|
};
|
|
1112
1112
|
static defaultProps = { showErrorWhenOutsideRange: !1 };
|
|
1113
1113
|
constructor(e) {
|
|
@@ -1120,13 +1120,13 @@ var At = /* @__PURE__ */ e(te(), 1), jt = (0, At.default)("@pie-lib:config-ui:nu
|
|
|
1120
1120
|
this.setState({ value: t });
|
|
1121
1121
|
}
|
|
1122
1122
|
clamp(e, t = this.props.min, n = this.props.max) {
|
|
1123
|
-
return
|
|
1123
|
+
return f(e) ? (f(n) && (e = Math.min(e, n)), f(t) && (e = Math.max(e, t)), e) : Ft(t, n);
|
|
1124
1124
|
}
|
|
1125
1125
|
onBlur = (e) => {
|
|
1126
1126
|
let t = e.target.value, n = parseFloat(t);
|
|
1127
|
-
|
|
1127
|
+
Nt("rawNumber: ", n);
|
|
1128
1128
|
let r = this.clamp(n);
|
|
1129
|
-
|
|
1129
|
+
Nt("number: ", r), r !== this.state.value && (Nt("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
1130
1130
|
this.props.onChange(e, r);
|
|
1131
1131
|
}));
|
|
1132
1132
|
};
|
|
@@ -1146,7 +1146,7 @@ var At = /* @__PURE__ */ e(te(), 1), jt = (0, At.default)("@pie-lib:config-ui:nu
|
|
|
1146
1146
|
};
|
|
1147
1147
|
render() {
|
|
1148
1148
|
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();
|
|
1149
|
-
return /* @__PURE__ */
|
|
1149
|
+
return /* @__PURE__ */ H(Pt, {
|
|
1150
1150
|
variant: s ? "filled" : l || "standard",
|
|
1151
1151
|
inputRef: (e) => {
|
|
1152
1152
|
this.inputRef = e;
|
|
@@ -1165,7 +1165,7 @@ var At = /* @__PURE__ */ e(te(), 1), jt = (0, At.default)("@pie-lib:config-ui:nu
|
|
|
1165
1165
|
type: "number",
|
|
1166
1166
|
className: e,
|
|
1167
1167
|
slotProps: { input: {
|
|
1168
|
-
endAdornment: r && /* @__PURE__ */
|
|
1168
|
+
endAdornment: r && /* @__PURE__ */ H(Ie, {
|
|
1169
1169
|
position: "end",
|
|
1170
1170
|
children: r
|
|
1171
1171
|
}),
|
|
@@ -1181,27 +1181,27 @@ var At = /* @__PURE__ */ e(te(), 1), jt = (0, At.default)("@pie-lib:config-ui:nu
|
|
|
1181
1181
|
};
|
|
1182
1182
|
//#endregion
|
|
1183
1183
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
1184
|
-
function
|
|
1184
|
+
function J(e) {
|
|
1185
1185
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return !e ||
|
|
1187
|
+
function Lt(e, t) {
|
|
1188
|
+
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;
|
|
1189
1189
|
}
|
|
1190
|
-
var
|
|
1190
|
+
var Rt = Lt(E, "InputContainer") || Lt(Vt.InputContainer, "InputContainer"), zt = j, Bt = zt.default, Vt = Bt && typeof Bt == "object" ? Bt : zt, Ht = _("div")(({ theme: e, direction: t }) => ({
|
|
1191
1191
|
display: "flex",
|
|
1192
1192
|
flexWrap: "wrap",
|
|
1193
1193
|
paddingLeft: 0,
|
|
1194
1194
|
marginTop: e.spacing(1),
|
|
1195
1195
|
...t === "vertical" && { flexDirection: "column" }
|
|
1196
|
-
})),
|
|
1196
|
+
})), Ut = class extends V.Component {
|
|
1197
1197
|
static propTypes = {
|
|
1198
|
-
header:
|
|
1199
|
-
className:
|
|
1200
|
-
customLabel:
|
|
1201
|
-
opts:
|
|
1202
|
-
value:
|
|
1203
|
-
onChange:
|
|
1204
|
-
direction:
|
|
1198
|
+
header: K.default.string.isRequired,
|
|
1199
|
+
className: K.default.string,
|
|
1200
|
+
customLabel: K.default.func,
|
|
1201
|
+
opts: K.default.array.isRequired,
|
|
1202
|
+
value: K.default.string,
|
|
1203
|
+
onChange: K.default.func.isRequired,
|
|
1204
|
+
direction: K.default.oneOf(["horizontal", "vertical"])
|
|
1205
1205
|
};
|
|
1206
1206
|
handleChange = (e) => {
|
|
1207
1207
|
this.props.onChange(e.currentTarget.value);
|
|
@@ -1210,13 +1210,13 @@ var It = Ft(T, "InputContainer") || Ft(zt.InputContainer, "InputContainer"), Lt
|
|
|
1210
1210
|
let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
|
|
1211
1211
|
label: e,
|
|
1212
1212
|
value: e
|
|
1213
|
-
} : e), s = n ||
|
|
1214
|
-
return /* @__PURE__ */
|
|
1213
|
+
} : e), s = n || ct;
|
|
1214
|
+
return /* @__PURE__ */ H(Rt, {
|
|
1215
1215
|
label: e,
|
|
1216
1216
|
className: t,
|
|
1217
|
-
children: /* @__PURE__ */
|
|
1217
|
+
children: /* @__PURE__ */ H(Ht, {
|
|
1218
1218
|
direction: a,
|
|
1219
|
-
children: o.map((e, t) => /* @__PURE__ */
|
|
1219
|
+
children: o.map((e, t) => /* @__PURE__ */ H(s, {
|
|
1220
1220
|
value: e.value,
|
|
1221
1221
|
checked: e.value === i,
|
|
1222
1222
|
onChange: this.handleChange,
|
|
@@ -1225,23 +1225,23 @@ var It = Ft(T, "InputContainer") || Ft(zt.InputContainer, "InputContainer"), Lt
|
|
|
1225
1225
|
})
|
|
1226
1226
|
});
|
|
1227
1227
|
}
|
|
1228
|
-
},
|
|
1229
|
-
label:
|
|
1230
|
-
value:
|
|
1228
|
+
}, Wt = K.default.shape({
|
|
1229
|
+
label: K.default.string,
|
|
1230
|
+
value: K.default.string
|
|
1231
1231
|
});
|
|
1232
|
-
(class extends
|
|
1232
|
+
(class extends V.Component {
|
|
1233
1233
|
static propTypes = {
|
|
1234
|
-
header:
|
|
1235
|
-
value:
|
|
1236
|
-
onChange:
|
|
1237
|
-
one:
|
|
1238
|
-
two:
|
|
1239
|
-
className:
|
|
1240
|
-
customLabel:
|
|
1234
|
+
header: K.default.string.isRequired,
|
|
1235
|
+
value: K.default.string.isRequired,
|
|
1236
|
+
onChange: K.default.func.isRequired,
|
|
1237
|
+
one: K.default.oneOfType([Wt, K.default.string]),
|
|
1238
|
+
two: K.default.oneOfType([Wt, K.default.string]),
|
|
1239
|
+
className: K.default.string,
|
|
1240
|
+
customLabel: K.default.func
|
|
1241
1241
|
};
|
|
1242
1242
|
render() {
|
|
1243
1243
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
1244
|
-
return /* @__PURE__ */
|
|
1244
|
+
return /* @__PURE__ */ H(Ut, {
|
|
1245
1245
|
customLabel: i,
|
|
1246
1246
|
header: n,
|
|
1247
1247
|
className: r,
|
|
@@ -1253,26 +1253,26 @@ var It = Ft(T, "InputContainer") || Ft(zt.InputContainer, "InputContainer"), Lt
|
|
|
1253
1253
|
});
|
|
1254
1254
|
//#endregion
|
|
1255
1255
|
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
1256
|
-
var
|
|
1256
|
+
var Gt = Object.defineProperty, Kt = (e, t) => {
|
|
1257
1257
|
let n = {};
|
|
1258
|
-
for (var r in e)
|
|
1258
|
+
for (var r in e) Gt(n, r, {
|
|
1259
1259
|
get: e[r],
|
|
1260
1260
|
enumerable: !0
|
|
1261
1261
|
});
|
|
1262
|
-
return t ||
|
|
1263
|
-
},
|
|
1262
|
+
return t || Gt(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
1263
|
+
}, qt = _("div")(() => ({
|
|
1264
1264
|
display: "flex",
|
|
1265
1265
|
flexDirection: "column",
|
|
1266
1266
|
position: "relative"
|
|
1267
|
-
})),
|
|
1267
|
+
})), Jt = _("div")(() => ({
|
|
1268
1268
|
display: "flex",
|
|
1269
1269
|
justifyContent: "space-between"
|
|
1270
|
-
})),
|
|
1270
|
+
})), Yt = _("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), Xt = _("div")(() => ({ flex: "1" })), Zt = _("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), Qt = class extends V.Component {
|
|
1271
1271
|
static propTypes = {
|
|
1272
|
-
mode:
|
|
1273
|
-
secondary:
|
|
1274
|
-
children:
|
|
1275
|
-
dimensions:
|
|
1272
|
+
mode: K.default.oneOf(["tabbed", "inline"]),
|
|
1273
|
+
secondary: K.default.oneOfType([K.default.arrayOf(K.default.node), K.default.node]),
|
|
1274
|
+
children: K.default.oneOfType([K.default.arrayOf(K.default.node), K.default.node]),
|
|
1275
|
+
dimensions: K.default.object
|
|
1276
1276
|
};
|
|
1277
1277
|
getConfiguration = () => {
|
|
1278
1278
|
let { secondary: e } = this.props;
|
|
@@ -1285,7 +1285,7 @@ var Ut = Object.defineProperty, Wt = (e, t) => {
|
|
|
1285
1285
|
} catch (e) {
|
|
1286
1286
|
console.log(e.toString());
|
|
1287
1287
|
}
|
|
1288
|
-
return /* @__PURE__ */
|
|
1288
|
+
return /* @__PURE__ */ U(qt, {
|
|
1289
1289
|
style: {
|
|
1290
1290
|
minHeight: i,
|
|
1291
1291
|
minWidth: a,
|
|
@@ -1293,28 +1293,28 @@ var Ut = Object.defineProperty, Wt = (e, t) => {
|
|
|
1293
1293
|
maxWidth: s
|
|
1294
1294
|
},
|
|
1295
1295
|
children: [
|
|
1296
|
-
e === "inline" && /* @__PURE__ */
|
|
1296
|
+
e === "inline" && /* @__PURE__ */ U(Jt, { children: [/* @__PURE__ */ H(Xt, {
|
|
1297
1297
|
className: "design-container",
|
|
1298
1298
|
children: n
|
|
1299
|
-
}), l && /* @__PURE__ */
|
|
1299
|
+
}), l && /* @__PURE__ */ H(Zt, {
|
|
1300
1300
|
className: "settings-container",
|
|
1301
1301
|
children: t
|
|
1302
1302
|
})] }),
|
|
1303
|
-
e === "tabbed" && l && /* @__PURE__ */
|
|
1303
|
+
e === "tabbed" && l && /* @__PURE__ */ U(Ot, {
|
|
1304
1304
|
onChange: this.onTabsChange,
|
|
1305
1305
|
contentClassName: "content-container",
|
|
1306
1306
|
indicatorColor: "primary",
|
|
1307
|
-
children: [/* @__PURE__ */
|
|
1307
|
+
children: [/* @__PURE__ */ H(Yt, {
|
|
1308
1308
|
title: "Design",
|
|
1309
1309
|
className: "design-container",
|
|
1310
1310
|
children: n
|
|
1311
|
-
}), /* @__PURE__ */
|
|
1311
|
+
}), /* @__PURE__ */ H(Yt, {
|
|
1312
1312
|
title: "Settings",
|
|
1313
1313
|
className: "settings-container",
|
|
1314
1314
|
children: t
|
|
1315
1315
|
})]
|
|
1316
1316
|
}),
|
|
1317
|
-
e === "tabbed" && !l && /* @__PURE__ */
|
|
1317
|
+
e === "tabbed" && !l && /* @__PURE__ */ H(Yt, {
|
|
1318
1318
|
className: "design-container",
|
|
1319
1319
|
children: n
|
|
1320
1320
|
})
|
|
@@ -1324,18 +1324,18 @@ var Ut = Object.defineProperty, Wt = (e, t) => {
|
|
|
1324
1324
|
};
|
|
1325
1325
|
//#endregion
|
|
1326
1326
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1327
|
-
function
|
|
1328
|
-
return
|
|
1327
|
+
function $t() {
|
|
1328
|
+
return $t = Object.assign ? Object.assign.bind() : function(e) {
|
|
1329
1329
|
for (var t = 1; t < arguments.length; t++) {
|
|
1330
1330
|
var n = arguments[t];
|
|
1331
1331
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1332
1332
|
}
|
|
1333
1333
|
return e;
|
|
1334
|
-
},
|
|
1334
|
+
}, $t.apply(null, arguments);
|
|
1335
1335
|
}
|
|
1336
1336
|
//#endregion
|
|
1337
1337
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1338
|
-
function
|
|
1338
|
+
function en(e, t) {
|
|
1339
1339
|
if (e == null) return {};
|
|
1340
1340
|
var n = {};
|
|
1341
1341
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -1346,19 +1346,19 @@ function Qt(e, t) {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
//#endregion
|
|
1348
1348
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1349
|
+
function tn(e, t) {
|
|
1350
|
+
return tn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1351
1351
|
return e.__proto__ = t, e;
|
|
1352
|
-
},
|
|
1352
|
+
}, tn(e, t);
|
|
1353
1353
|
}
|
|
1354
1354
|
//#endregion
|
|
1355
1355
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
1356
|
-
function
|
|
1357
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
1356
|
+
function nn(e, t) {
|
|
1357
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, tn(e, t);
|
|
1358
1358
|
}
|
|
1359
1359
|
//#endregion
|
|
1360
1360
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
1361
|
-
var
|
|
1361
|
+
var rn = (function() {
|
|
1362
1362
|
if (typeof Map < "u") return Map;
|
|
1363
1363
|
function e(e, t) {
|
|
1364
1364
|
var n = -1;
|
|
@@ -1397,34 +1397,34 @@ var tn = (function() {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}, t;
|
|
1399
1399
|
}();
|
|
1400
|
-
})(),
|
|
1400
|
+
})(), an = typeof window < "u" && typeof document < "u" && window.document === document, Y = (function() {
|
|
1401
1401
|
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")();
|
|
1402
|
-
})(),
|
|
1403
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
1402
|
+
})(), on = (function() {
|
|
1403
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Y) : function(e) {
|
|
1404
1404
|
return setTimeout(function() {
|
|
1405
1405
|
return e(Date.now());
|
|
1406
1406
|
}, 1e3 / 60);
|
|
1407
1407
|
};
|
|
1408
|
-
})(),
|
|
1409
|
-
function
|
|
1408
|
+
})(), sn = 2;
|
|
1409
|
+
function cn(e, t) {
|
|
1410
1410
|
var n = !1, r = !1, i = 0;
|
|
1411
1411
|
function a() {
|
|
1412
1412
|
n && (n = !1, e()), r && s();
|
|
1413
1413
|
}
|
|
1414
1414
|
function o() {
|
|
1415
|
-
|
|
1415
|
+
on(a);
|
|
1416
1416
|
}
|
|
1417
1417
|
function s() {
|
|
1418
1418
|
var e = Date.now();
|
|
1419
1419
|
if (n) {
|
|
1420
|
-
if (e - i <
|
|
1420
|
+
if (e - i < sn) return;
|
|
1421
1421
|
r = !0;
|
|
1422
1422
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
1423
1423
|
i = e;
|
|
1424
1424
|
}
|
|
1425
1425
|
return s;
|
|
1426
1426
|
}
|
|
1427
|
-
var
|
|
1427
|
+
var ln = 20, un = [
|
|
1428
1428
|
"top",
|
|
1429
1429
|
"right",
|
|
1430
1430
|
"bottom",
|
|
@@ -1433,9 +1433,9 @@ var cn = 20, ln = [
|
|
|
1433
1433
|
"height",
|
|
1434
1434
|
"size",
|
|
1435
1435
|
"weight"
|
|
1436
|
-
],
|
|
1436
|
+
], dn = typeof MutationObserver < "u", fn = function() {
|
|
1437
1437
|
function e() {
|
|
1438
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
1438
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = cn(this.refresh.bind(this), ln);
|
|
1439
1439
|
}
|
|
1440
1440
|
return e.prototype.addObserver = function(e) {
|
|
1441
1441
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -1452,23 +1452,23 @@ var cn = 20, ln = [
|
|
|
1452
1452
|
return e.broadcastActive();
|
|
1453
1453
|
}), e.length > 0;
|
|
1454
1454
|
}, e.prototype.connect_ = function() {
|
|
1455
|
-
!
|
|
1455
|
+
!an || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), dn ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1456
1456
|
attributes: !0,
|
|
1457
1457
|
childList: !0,
|
|
1458
1458
|
characterData: !0,
|
|
1459
1459
|
subtree: !0
|
|
1460
1460
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1461
1461
|
}, e.prototype.disconnect_ = function() {
|
|
1462
|
-
!
|
|
1462
|
+
!an || !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);
|
|
1463
1463
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
1464
1464
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
1465
|
-
|
|
1465
|
+
un.some(function(e) {
|
|
1466
1466
|
return !!~n.indexOf(e);
|
|
1467
1467
|
}) && this.refresh();
|
|
1468
1468
|
}, e.getInstance = function() {
|
|
1469
1469
|
return this.instance_ ||= new e(), this.instance_;
|
|
1470
1470
|
}, e.instance_ = null, e;
|
|
1471
|
-
}(),
|
|
1471
|
+
}(), pn = (function(e, t) {
|
|
1472
1472
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
1473
1473
|
var i = r[n];
|
|
1474
1474
|
Object.defineProperty(e, i, {
|
|
@@ -1479,16 +1479,16 @@ var cn = 20, ln = [
|
|
|
1479
1479
|
});
|
|
1480
1480
|
}
|
|
1481
1481
|
return e;
|
|
1482
|
-
}),
|
|
1483
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
1484
|
-
}),
|
|
1485
|
-
function
|
|
1482
|
+
}), X = (function(e) {
|
|
1483
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || Y;
|
|
1484
|
+
}), mn = Cn(0, 0, 0, 0);
|
|
1485
|
+
function Z(e) {
|
|
1486
1486
|
return parseFloat(e) || 0;
|
|
1487
1487
|
}
|
|
1488
1488
|
function hn(e) {
|
|
1489
1489
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
1490
1490
|
var r = e["border-" + n + "-width"];
|
|
1491
|
-
return t +
|
|
1491
|
+
return t + Z(r);
|
|
1492
1492
|
}, 0);
|
|
1493
1493
|
}
|
|
1494
1494
|
function gn(e) {
|
|
@@ -1499,7 +1499,7 @@ function gn(e) {
|
|
|
1499
1499
|
"left"
|
|
1500
1500
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
1501
1501
|
var a = i[r], o = e["padding-" + a];
|
|
1502
|
-
n[a] =
|
|
1502
|
+
n[a] = Z(o);
|
|
1503
1503
|
}
|
|
1504
1504
|
return n;
|
|
1505
1505
|
}
|
|
@@ -1509,8 +1509,8 @@ function _n(e) {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
function vn(e) {
|
|
1511
1511
|
var t = e.clientWidth, n = e.clientHeight;
|
|
1512
|
-
if (!t && !n) return
|
|
1513
|
-
var r =
|
|
1512
|
+
if (!t && !n) return mn;
|
|
1513
|
+
var r = X(e).getComputedStyle(e), i = gn(r), a = i.left + i.right, o = i.top + i.bottom, s = Z(r.width), c = Z(r.height);
|
|
1514
1514
|
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= hn(r, "left", "right") + a), Math.round(c + o) !== n && (c -= hn(r, "top", "bottom") + o)), !bn(e)) {
|
|
1515
1515
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
1516
1516
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
@@ -1519,20 +1519,20 @@ function vn(e) {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
var yn = (function() {
|
|
1521
1521
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
1522
|
-
return e instanceof
|
|
1522
|
+
return e instanceof X(e).SVGGraphicsElement;
|
|
1523
1523
|
} : function(e) {
|
|
1524
|
-
return e instanceof
|
|
1524
|
+
return e instanceof X(e).SVGElement && typeof e.getBBox == "function";
|
|
1525
1525
|
};
|
|
1526
1526
|
})();
|
|
1527
1527
|
function bn(e) {
|
|
1528
|
-
return e ===
|
|
1528
|
+
return e === X(e).document.documentElement;
|
|
1529
1529
|
}
|
|
1530
1530
|
function xn(e) {
|
|
1531
|
-
return
|
|
1531
|
+
return an ? yn(e) ? _n(e) : vn(e) : mn;
|
|
1532
1532
|
}
|
|
1533
1533
|
function Sn(e) {
|
|
1534
1534
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
1535
|
-
return
|
|
1535
|
+
return pn(a, {
|
|
1536
1536
|
x: t,
|
|
1537
1537
|
y: n,
|
|
1538
1538
|
width: r,
|
|
@@ -1565,7 +1565,7 @@ var wn = function() {
|
|
|
1565
1565
|
}(), Tn = function() {
|
|
1566
1566
|
function e(e, t) {
|
|
1567
1567
|
var n = Sn(t);
|
|
1568
|
-
|
|
1568
|
+
pn(this, {
|
|
1569
1569
|
target: e,
|
|
1570
1570
|
contentRect: n
|
|
1571
1571
|
});
|
|
@@ -1573,20 +1573,20 @@ var wn = function() {
|
|
|
1573
1573
|
return e;
|
|
1574
1574
|
}(), En = function() {
|
|
1575
1575
|
function e(e, t, n) {
|
|
1576
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
1576
|
+
if (this.activeObservations_ = [], this.observations_ = new rn(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
1577
1577
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
1578
1578
|
}
|
|
1579
1579
|
return e.prototype.observe = function(e) {
|
|
1580
1580
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
1581
1581
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1582
|
-
if (!(e instanceof
|
|
1582
|
+
if (!(e instanceof X(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
1583
1583
|
var t = this.observations_;
|
|
1584
1584
|
t.has(e) || (t.set(e, new wn(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
1585
1585
|
}
|
|
1586
1586
|
}, e.prototype.unobserve = function(e) {
|
|
1587
1587
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
1588
1588
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
1589
|
-
if (!(e instanceof
|
|
1589
|
+
if (!(e instanceof X(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
1590
1590
|
var t = this.observations_;
|
|
1591
1591
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
1592
1592
|
}
|
|
@@ -1609,11 +1609,11 @@ var wn = function() {
|
|
|
1609
1609
|
}, e.prototype.hasActive = function() {
|
|
1610
1610
|
return this.activeObservations_.length > 0;
|
|
1611
1611
|
}, e;
|
|
1612
|
-
}(), Dn = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new
|
|
1612
|
+
}(), Dn = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new rn(), On = function() {
|
|
1613
1613
|
function e(t) {
|
|
1614
1614
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
1615
1615
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
1616
|
-
var n = new En(t,
|
|
1616
|
+
var n = new En(t, fn.getInstance(), this);
|
|
1617
1617
|
Dn.set(this, n);
|
|
1618
1618
|
}
|
|
1619
1619
|
return e;
|
|
@@ -1629,7 +1629,7 @@ var wn = function() {
|
|
|
1629
1629
|
};
|
|
1630
1630
|
});
|
|
1631
1631
|
var kn = (function() {
|
|
1632
|
-
return
|
|
1632
|
+
return Y.ResizeObserver === void 0 ? On : Y.ResizeObserver;
|
|
1633
1633
|
})(), An = [
|
|
1634
1634
|
"client",
|
|
1635
1635
|
"offset",
|
|
@@ -1689,7 +1689,7 @@ function Pn(e) {
|
|
|
1689
1689
|
return function(t) {
|
|
1690
1690
|
var n, r;
|
|
1691
1691
|
return r = n = /*#__PURE__*/ function(n) {
|
|
1692
|
-
|
|
1692
|
+
nn(r, n);
|
|
1693
1693
|
function r() {
|
|
1694
1694
|
var t, r = [...arguments];
|
|
1695
1695
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -1717,20 +1717,20 @@ function Pn(e) {
|
|
|
1717
1717
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
1718
1718
|
}, i.render = function() {
|
|
1719
1719
|
var e = this.props;
|
|
1720
|
-
return e.innerRef, e.onResize,
|
|
1720
|
+
return e.innerRef, e.onResize, ae(t, $t({}, en(e, ["innerRef", "onResize"]), {
|
|
1721
1721
|
measureRef: this._handleRef,
|
|
1722
1722
|
measure: this.measure,
|
|
1723
1723
|
contentRect: this.state.contentRect
|
|
1724
1724
|
}));
|
|
1725
1725
|
}, r;
|
|
1726
|
-
}(
|
|
1727
|
-
client:
|
|
1728
|
-
offset:
|
|
1729
|
-
scroll:
|
|
1730
|
-
bounds:
|
|
1731
|
-
margin:
|
|
1732
|
-
innerRef:
|
|
1733
|
-
onResize:
|
|
1726
|
+
}(ie), n.propTypes = {
|
|
1727
|
+
client: K.default.bool,
|
|
1728
|
+
offset: K.default.bool,
|
|
1729
|
+
scroll: K.default.bool,
|
|
1730
|
+
bounds: K.default.bool,
|
|
1731
|
+
margin: K.default.bool,
|
|
1732
|
+
innerRef: K.default.oneOfType([K.default.object, K.default.func]),
|
|
1733
|
+
onResize: K.default.func
|
|
1734
1734
|
}, r;
|
|
1735
1735
|
};
|
|
1736
1736
|
}
|
|
@@ -1742,12 +1742,12 @@ var Fn = Pn()(function(e) {
|
|
|
1742
1742
|
contentRect: r
|
|
1743
1743
|
});
|
|
1744
1744
|
});
|
|
1745
|
-
Fn.displayName = "Measure", Fn.propTypes.children =
|
|
1745
|
+
Fn.displayName = "Measure", Fn.propTypes.children = K.default.func;
|
|
1746
1746
|
//#endregion
|
|
1747
1747
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
1748
|
-
var In =
|
|
1749
|
-
backgroundColor:
|
|
1750
|
-
border: `2px solid ${
|
|
1748
|
+
var In = _("div")(() => ({
|
|
1749
|
+
backgroundColor: t.white(),
|
|
1750
|
+
border: `2px solid ${t.border()}`,
|
|
1751
1751
|
display: "flex",
|
|
1752
1752
|
flexDirection: "column",
|
|
1753
1753
|
justifyContent: "flex-start",
|
|
@@ -1755,41 +1755,41 @@ var In = s("div")(() => ({
|
|
|
1755
1755
|
maxWidth: "300px",
|
|
1756
1756
|
padding: "20px 4px 4px 20px",
|
|
1757
1757
|
zIndex: 99
|
|
1758
|
-
})), Ln = class extends
|
|
1758
|
+
})), Ln = class extends V.Component {
|
|
1759
1759
|
static propTypes = {
|
|
1760
|
-
className:
|
|
1761
|
-
children:
|
|
1760
|
+
className: K.default.string,
|
|
1761
|
+
children: K.default.oneOfType([K.default.arrayOf(K.default.node), K.default.node]).isRequired
|
|
1762
1762
|
};
|
|
1763
1763
|
static defaultProps = {};
|
|
1764
1764
|
render() {
|
|
1765
1765
|
let { className: e, children: t } = this.props;
|
|
1766
|
-
return /* @__PURE__ */
|
|
1766
|
+
return /* @__PURE__ */ H(In, {
|
|
1767
1767
|
className: e,
|
|
1768
1768
|
children: t
|
|
1769
1769
|
});
|
|
1770
1770
|
}
|
|
1771
|
-
}, Rn =
|
|
1771
|
+
}, Rn = s({
|
|
1772
1772
|
typography: { fontFamily: "inherit" },
|
|
1773
1773
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
1774
1774
|
backgroundColor: "#e0e0e0",
|
|
1775
1775
|
color: "#000000",
|
|
1776
1776
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
1777
1777
|
} } } }
|
|
1778
|
-
}), zn = class extends
|
|
1778
|
+
}), zn = class extends V.Component {
|
|
1779
1779
|
static propTypes = {
|
|
1780
|
-
children:
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1780
|
+
children: K.default.oneOfType([
|
|
1781
|
+
K.default.string,
|
|
1782
|
+
K.default.arrayOf(K.default.element),
|
|
1783
|
+
K.default.element
|
|
1784
1784
|
]),
|
|
1785
|
-
className:
|
|
1786
|
-
dimensions:
|
|
1787
|
-
settings:
|
|
1788
|
-
sidePanelMinWidth:
|
|
1789
|
-
hideSettings:
|
|
1790
|
-
extraCSSRules:
|
|
1791
|
-
names:
|
|
1792
|
-
rules:
|
|
1785
|
+
className: K.default.string,
|
|
1786
|
+
dimensions: K.default.object,
|
|
1787
|
+
settings: K.default.element,
|
|
1788
|
+
sidePanelMinWidth: K.default.number,
|
|
1789
|
+
hideSettings: K.default.bool,
|
|
1790
|
+
extraCSSRules: K.default.shape({
|
|
1791
|
+
names: K.default.arrayOf(K.default.string),
|
|
1792
|
+
rules: K.default.string
|
|
1793
1793
|
})
|
|
1794
1794
|
};
|
|
1795
1795
|
static defaultProps = {
|
|
@@ -1800,28 +1800,28 @@ var In = s("div")(() => ({
|
|
|
1800
1800
|
constructor(...e) {
|
|
1801
1801
|
super(...e), this.state = { layoutMode: void 0 };
|
|
1802
1802
|
}
|
|
1803
|
-
scopeClass =
|
|
1803
|
+
scopeClass = ne("extra-css-rules");
|
|
1804
1804
|
onResize = (e) => {
|
|
1805
1805
|
let { bounds: t } = e, { sidePanelMinWidth: n, dimensions: r } = this.props, { maxWidth: i } = r || {}, a = t.width > n && (!i || i > n) ? "inline" : "tabbed";
|
|
1806
1806
|
a !== this.state.layoutMode && this.setState({ layoutMode: a });
|
|
1807
1807
|
};
|
|
1808
1808
|
render() {
|
|
1809
|
-
return /* @__PURE__ */
|
|
1809
|
+
return /* @__PURE__ */ H(x, {
|
|
1810
1810
|
injectFirst: !0,
|
|
1811
|
-
children: /* @__PURE__ */
|
|
1811
|
+
children: /* @__PURE__ */ H(d, {
|
|
1812
1812
|
theme: Rn,
|
|
1813
|
-
children: /* @__PURE__ */
|
|
1813
|
+
children: /* @__PURE__ */ H(Fn, {
|
|
1814
1814
|
bounds: !0,
|
|
1815
1815
|
onResize: this.onResize,
|
|
1816
1816
|
children: ({ measureRef: e }) => {
|
|
1817
|
-
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */
|
|
1817
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ H(Ln, {
|
|
1818
1818
|
className: "settings-box",
|
|
1819
1819
|
children: n
|
|
1820
1820
|
}) : n;
|
|
1821
|
-
return /* @__PURE__ */
|
|
1821
|
+
return /* @__PURE__ */ U("div", {
|
|
1822
1822
|
ref: e,
|
|
1823
1823
|
className: `main-container extraCSSRules ${this.scopeClass}`,
|
|
1824
|
-
children: [a?.rules ? /* @__PURE__ */
|
|
1824
|
+
children: [a?.rules ? /* @__PURE__ */ H("style", { dangerouslySetInnerHTML: { __html: `.${this.scopeClass} { ${a.rules} }` } }) : null, /* @__PURE__ */ H(Qt, {
|
|
1825
1825
|
mode: o,
|
|
1826
1826
|
secondary: s,
|
|
1827
1827
|
dimensions: i,
|
|
@@ -1833,27 +1833,27 @@ var In = s("div")(() => ({
|
|
|
1833
1833
|
})
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
|
-
}, Bn = Pn("bounds")(zn), Vn = /* @__PURE__ */
|
|
1836
|
+
}, Bn = Pn("bounds")(zn), Vn = /* @__PURE__ */ Kt({
|
|
1837
1837
|
ConfigLayout: () => Bn,
|
|
1838
|
-
LayoutContents: () =>
|
|
1839
|
-
}), Hn =
|
|
1838
|
+
LayoutContents: () => Qt
|
|
1839
|
+
}), Hn = _("div")(() => ({
|
|
1840
1840
|
display: "flex",
|
|
1841
1841
|
width: "100%",
|
|
1842
1842
|
justifyContent: "space-between"
|
|
1843
|
-
})), Un =
|
|
1843
|
+
})), Un = _(D)(({ theme: e }) => ({
|
|
1844
1844
|
color: "rgba(0, 0, 0, 0.89)",
|
|
1845
1845
|
fontSize: e.typography.fontSize,
|
|
1846
1846
|
paddingTop: e.spacing(2)
|
|
1847
|
-
})), Wn =
|
|
1848
|
-
"&.Mui-checked .MuiSwitch-thumb": { color: `${
|
|
1849
|
-
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${
|
|
1850
|
-
"& .MuiSwitch-track": { backgroundColor: e ? `${
|
|
1847
|
+
})), Wn = _(at)(({ checked: e }) => ({
|
|
1848
|
+
"&.Mui-checked .MuiSwitch-thumb": { color: `${t.tertiary()} !important` },
|
|
1849
|
+
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${t.tertiaryLight()} !important` },
|
|
1850
|
+
"& .MuiSwitch-track": { backgroundColor: e ? `${t.tertiaryLight()} !important` : void 0 }
|
|
1851
1851
|
})), Gn = ({ checked: e, disabled: t, label: n, toggle: r }) => {
|
|
1852
|
-
let i =
|
|
1853
|
-
return /* @__PURE__ */
|
|
1852
|
+
let i = oe();
|
|
1853
|
+
return /* @__PURE__ */ U(Hn, { children: [/* @__PURE__ */ H(Un, {
|
|
1854
1854
|
htmlFor: i,
|
|
1855
1855
|
children: n
|
|
1856
|
-
}), /* @__PURE__ */
|
|
1856
|
+
}), /* @__PURE__ */ H(Wn, {
|
|
1857
1857
|
id: i,
|
|
1858
1858
|
checked: e,
|
|
1859
1859
|
disabled: t,
|
|
@@ -1861,42 +1861,42 @@ var In = s("div")(() => ({
|
|
|
1861
1861
|
})] });
|
|
1862
1862
|
};
|
|
1863
1863
|
Gn.propTypes = {
|
|
1864
|
-
checked:
|
|
1865
|
-
disabled:
|
|
1866
|
-
label:
|
|
1867
|
-
toggle:
|
|
1864
|
+
checked: K.default.bool,
|
|
1865
|
+
disabled: K.default.bool,
|
|
1866
|
+
label: K.default.string.isRequired,
|
|
1867
|
+
toggle: K.default.func.isRequired
|
|
1868
1868
|
};
|
|
1869
1869
|
//#endregion
|
|
1870
1870
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
1871
|
-
var Kn =
|
|
1871
|
+
var Kn = _(ke)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
1872
1872
|
color: "rgba(0, 0, 0, 0.89)",
|
|
1873
1873
|
fontSize: e.typography.fontSize - 2,
|
|
1874
1874
|
left: "-5px",
|
|
1875
1875
|
position: "relative"
|
|
1876
|
-
} })), qn =
|
|
1876
|
+
} })), qn = _(Qe)(() => ({ color: `${t.tertiary()} !important` })), Jn = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ H(Kn, {
|
|
1877
1877
|
value: t,
|
|
1878
|
-
control: /* @__PURE__ */
|
|
1878
|
+
control: /* @__PURE__ */ H(qn, {
|
|
1879
1879
|
checked: n,
|
|
1880
1880
|
onChange: r
|
|
1881
1881
|
}),
|
|
1882
1882
|
label: e
|
|
1883
1883
|
});
|
|
1884
1884
|
Jn.propTypes = {
|
|
1885
|
-
label:
|
|
1886
|
-
value:
|
|
1887
|
-
checked:
|
|
1888
|
-
onChange:
|
|
1885
|
+
label: K.default.string,
|
|
1886
|
+
value: K.default.string,
|
|
1887
|
+
checked: K.default.bool,
|
|
1888
|
+
onChange: K.default.func
|
|
1889
1889
|
};
|
|
1890
1890
|
//#endregion
|
|
1891
1891
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
1892
|
-
var Yn = (0,
|
|
1893
|
-
label:
|
|
1894
|
-
value:
|
|
1892
|
+
var Yn = (0, Mt.default)("pie-lib:config-ui:settings:panel"), Xn = {
|
|
1893
|
+
label: K.default.string,
|
|
1894
|
+
value: K.default.string
|
|
1895
1895
|
}, Q = {
|
|
1896
|
-
label:
|
|
1897
|
-
value:
|
|
1898
|
-
onChange:
|
|
1899
|
-
}, Zn = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */
|
|
1896
|
+
label: K.default.string,
|
|
1897
|
+
value: K.default.string,
|
|
1898
|
+
onChange: K.default.func
|
|
1899
|
+
}, Zn = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ H(jt, {
|
|
1900
1900
|
checked: t,
|
|
1901
1901
|
label: e,
|
|
1902
1902
|
onChange: (e) => {
|
|
@@ -1904,11 +1904,11 @@ var Yn = (0, At.default)("pie-lib:config-ui:settings:panel"), Xn = {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
});
|
|
1906
1906
|
Zn.propTypes = {
|
|
1907
|
-
label:
|
|
1908
|
-
value:
|
|
1909
|
-
onChange:
|
|
1907
|
+
label: K.default.string,
|
|
1908
|
+
value: K.default.bool,
|
|
1909
|
+
onChange: K.default.func
|
|
1910
1910
|
};
|
|
1911
|
-
var Qn =
|
|
1911
|
+
var Qn = _(Ut)(({ theme: e }) => ({
|
|
1912
1912
|
marginTop: e.spacing(.5),
|
|
1913
1913
|
paddingBottom: e.spacing(.5),
|
|
1914
1914
|
width: "100%",
|
|
@@ -1919,7 +1919,7 @@ var Qn = s(Vt)(({ theme: e }) => ({
|
|
|
1919
1919
|
marginTop: e.spacing(2.5)
|
|
1920
1920
|
},
|
|
1921
1921
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
1922
|
-
})), $n = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */
|
|
1922
|
+
})), $n = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ H(Qn, {
|
|
1923
1923
|
direction: "horizontal",
|
|
1924
1924
|
customLabel: Jn,
|
|
1925
1925
|
value: t,
|
|
@@ -1929,28 +1929,28 @@ var Qn = s(Vt)(({ theme: e }) => ({
|
|
|
1929
1929
|
});
|
|
1930
1930
|
$n.propTypes = {
|
|
1931
1931
|
...Q,
|
|
1932
|
-
choices:
|
|
1932
|
+
choices: K.default.arrayOf(K.default.shape(Xn))
|
|
1933
1933
|
};
|
|
1934
|
-
var er = $n, tr =
|
|
1934
|
+
var er = $n, tr = _("p")(({ theme: e }) => ({
|
|
1935
1935
|
margin: 0,
|
|
1936
1936
|
fontSize: e.typography.fontSize
|
|
1937
|
-
})), nr =
|
|
1937
|
+
})), nr = _(R)(({ theme: e }) => ({
|
|
1938
1938
|
marginTop: e.spacing(.5),
|
|
1939
1939
|
border: "2px solid lightgrey",
|
|
1940
1940
|
padding: `0 ${e.spacing(1)}`,
|
|
1941
1941
|
borderRadius: "4px"
|
|
1942
1942
|
})), rr = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
1943
1943
|
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
1944
|
-
return /* @__PURE__ */
|
|
1944
|
+
return /* @__PURE__ */ U("div", { children: [e && /* @__PURE__ */ H(tr, { children: e }), /* @__PURE__ */ H(nr, {
|
|
1945
1945
|
value: t || r && r[0],
|
|
1946
1946
|
onChange: ({ target: e }) => n(e.value),
|
|
1947
|
-
input: /* @__PURE__ */
|
|
1947
|
+
input: /* @__PURE__ */ H(T, { id: `dropdown-${e}` }),
|
|
1948
1948
|
disableUnderline: !0,
|
|
1949
1949
|
MenuProps: { transitionDuration: {
|
|
1950
1950
|
enter: 225,
|
|
1951
1951
|
exit: 195
|
|
1952
1952
|
} },
|
|
1953
|
-
children: r.map((e, t) => /* @__PURE__ */
|
|
1953
|
+
children: r.map((e, t) => /* @__PURE__ */ H(P, {
|
|
1954
1954
|
value: a(e),
|
|
1955
1955
|
children: i(e)
|
|
1956
1956
|
}, t))
|
|
@@ -1958,12 +1958,12 @@ var er = $n, tr = s("p")(({ theme: e }) => ({
|
|
|
1958
1958
|
};
|
|
1959
1959
|
rr.propTypes = {
|
|
1960
1960
|
...Q,
|
|
1961
|
-
choices:
|
|
1961
|
+
choices: K.default.arrayOf(K.default.string)
|
|
1962
1962
|
};
|
|
1963
|
-
var ir =
|
|
1963
|
+
var ir = _(h)(({ theme: e }) => ({
|
|
1964
1964
|
marginRight: e.spacing(3),
|
|
1965
1965
|
marginTop: e.spacing(1)
|
|
1966
|
-
})), ar = ({ label: e }) => /* @__PURE__ */
|
|
1966
|
+
})), ar = ({ label: e }) => /* @__PURE__ */ H(ir, { children: e }), or = _(It)(({ theme: e }) => ({
|
|
1967
1967
|
width: "35%",
|
|
1968
1968
|
marginRight: e.spacing(3),
|
|
1969
1969
|
marginTop: e.spacing(1),
|
|
@@ -1974,7 +1974,7 @@ var ir = s(d)(({ theme: e }) => ({
|
|
|
1974
1974
|
padding: `0 ${e.spacing(1)}`,
|
|
1975
1975
|
backgroundColor: "transparent"
|
|
1976
1976
|
}
|
|
1977
|
-
})), sr = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */
|
|
1977
|
+
})), sr = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ H(or, {
|
|
1978
1978
|
variant: "standard",
|
|
1979
1979
|
label: e || "Label",
|
|
1980
1980
|
value: t,
|
|
@@ -1987,12 +1987,12 @@ var ir = s(d)(({ theme: e }) => ({
|
|
|
1987
1987
|
});
|
|
1988
1988
|
sr.propTypes = {
|
|
1989
1989
|
...Q,
|
|
1990
|
-
suffix:
|
|
1991
|
-
min:
|
|
1992
|
-
max:
|
|
1993
|
-
value:
|
|
1990
|
+
suffix: K.default.string,
|
|
1991
|
+
min: K.default.number,
|
|
1992
|
+
max: K.default.number,
|
|
1993
|
+
value: K.default.number
|
|
1994
1994
|
}, ar.propTypes = { ...Q };
|
|
1995
|
-
var cr = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */
|
|
1995
|
+
var cr = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ H(Gn, {
|
|
1996
1996
|
label: t,
|
|
1997
1997
|
checked: !!n,
|
|
1998
1998
|
disabled: !!e,
|
|
@@ -2000,7 +2000,7 @@ var cr = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ W
|
|
|
2000
2000
|
});
|
|
2001
2001
|
cr.propTypes = {
|
|
2002
2002
|
...Q,
|
|
2003
|
-
value:
|
|
2003
|
+
value: K.default.bool
|
|
2004
2004
|
};
|
|
2005
2005
|
var lr = {
|
|
2006
2006
|
toggle: cr,
|
|
@@ -2009,22 +2009,22 @@ var lr = {
|
|
|
2009
2009
|
numberField: sr,
|
|
2010
2010
|
checkbox: Zn,
|
|
2011
2011
|
textField: ar
|
|
2012
|
-
}, ur =
|
|
2012
|
+
}, ur = _("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), dr = _("div")(({ theme: e }) => ({
|
|
2013
2013
|
color: "#495B8F",
|
|
2014
2014
|
fontSize: e.typography.fontSize + 2,
|
|
2015
2015
|
fontWeight: 600,
|
|
2016
2016
|
marginBottom: e.spacing(1)
|
|
2017
|
-
})), fr =
|
|
2017
|
+
})), fr = _("p")(({ theme: e }) => ({
|
|
2018
2018
|
fontSize: e.typography.fontSize,
|
|
2019
2019
|
marginBottom: 0
|
|
2020
2020
|
})), pr = (e) => {
|
|
2021
2021
|
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
2022
|
-
let { isConfigProperty: o, ...s } =
|
|
2022
|
+
let { isConfigProperty: o, ...s } = p(e, r || n), c = p(o ? i : t, n), l = {
|
|
2023
2023
|
...s,
|
|
2024
2024
|
key: n,
|
|
2025
2025
|
value: c
|
|
2026
2026
|
}, u = lr[l.type];
|
|
2027
|
-
return /* @__PURE__ */
|
|
2027
|
+
return /* @__PURE__ */ H(u, {
|
|
2028
2028
|
...l,
|
|
2029
2029
|
onChange: (e) => a(n, e, o)
|
|
2030
2030
|
}, n);
|
|
@@ -2032,25 +2032,25 @@ var lr = {
|
|
|
2032
2032
|
let n = e[t];
|
|
2033
2033
|
if (!n) return null;
|
|
2034
2034
|
let { type: r, label: i, fields: a, choices: s } = n;
|
|
2035
|
-
return r === "numberFields" ? /* @__PURE__ */
|
|
2035
|
+
return r === "numberFields" ? /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(fr, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
|
|
2036
2036
|
};
|
|
2037
|
-
return /* @__PURE__ */
|
|
2037
|
+
return /* @__PURE__ */ U(ur, { children: [/* @__PURE__ */ H(dr, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
2038
2038
|
};
|
|
2039
2039
|
pr.propTypes = {
|
|
2040
|
-
model:
|
|
2041
|
-
label:
|
|
2042
|
-
group:
|
|
2043
|
-
configuration:
|
|
2044
|
-
onChange:
|
|
2040
|
+
model: K.default.object,
|
|
2041
|
+
label: K.default.string,
|
|
2042
|
+
group: K.default.object,
|
|
2043
|
+
configuration: K.default.object,
|
|
2044
|
+
onChange: K.default.func
|
|
2045
2045
|
};
|
|
2046
|
-
var mr = class extends
|
|
2046
|
+
var mr = class extends V.Component {
|
|
2047
2047
|
static propTypes = {
|
|
2048
|
-
model:
|
|
2049
|
-
configuration:
|
|
2050
|
-
groups:
|
|
2051
|
-
onChangeModel:
|
|
2052
|
-
onChangeConfiguration:
|
|
2053
|
-
modal:
|
|
2048
|
+
model: K.default.object,
|
|
2049
|
+
configuration: K.default.object,
|
|
2050
|
+
groups: K.default.object,
|
|
2051
|
+
onChangeModel: K.default.func,
|
|
2052
|
+
onChangeConfiguration: K.default.func,
|
|
2053
|
+
modal: K.default.object
|
|
2054
2054
|
};
|
|
2055
2055
|
static defaultProps = {
|
|
2056
2056
|
onChangeModel: () => {},
|
|
@@ -2058,12 +2058,12 @@ var mr = class extends U.Component {
|
|
|
2058
2058
|
};
|
|
2059
2059
|
change = (e, t, n = !1) => {
|
|
2060
2060
|
Yn("[changeModel]", e, t);
|
|
2061
|
-
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model },
|
|
2062
|
-
n ? (
|
|
2061
|
+
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, s = { ...this.props.configuration };
|
|
2062
|
+
n ? (o(s, e, t), i(s, e)) : (o(a, e, t), r(a, e));
|
|
2063
2063
|
};
|
|
2064
2064
|
render() {
|
|
2065
2065
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
2066
|
-
return Yn("render:", t), /* @__PURE__ */
|
|
2066
|
+
return Yn("render:", t), /* @__PURE__ */ U("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ H(pr, {
|
|
2067
2067
|
label: r,
|
|
2068
2068
|
model: t,
|
|
2069
2069
|
configuration: n,
|
|
@@ -2071,7 +2071,7 @@ var mr = class extends U.Component {
|
|
|
2071
2071
|
onChange: this.change
|
|
2072
2072
|
}, r) : null), r] });
|
|
2073
2073
|
}
|
|
2074
|
-
}, hr = /* @__PURE__ */
|
|
2074
|
+
}, hr = /* @__PURE__ */ Kt({
|
|
2075
2075
|
Panel: () => mr,
|
|
2076
2076
|
checkbox: () => Cr,
|
|
2077
2077
|
checkboxes: () => wr,
|
|
@@ -2190,23 +2190,23 @@ var mr = class extends U.Component {
|
|
|
2190
2190
|
}, { Panel: Ar, toggle: $, numberFields: jr, dropdown: Mr } = hr, Nr = {
|
|
2191
2191
|
type: "default",
|
|
2192
2192
|
default: "Your answer has been submitted"
|
|
2193
|
-
}, Pr =
|
|
2193
|
+
}, Pr = _(h)(({ theme: e }) => ({ paddingBottom: e.spacing(1) })), Fr = _(ee)(({ theme: e }) => ({
|
|
2194
2194
|
paddingTop: e.spacing(1),
|
|
2195
2195
|
marginTop: e.spacing(2),
|
|
2196
2196
|
marginBottom: e.spacing(2),
|
|
2197
2197
|
width: "100%"
|
|
2198
|
-
})), Ir =
|
|
2198
|
+
})), Ir = _("div")(({ theme: e }) => ({
|
|
2199
2199
|
fontSize: e.typography.fontSize - 2,
|
|
2200
2200
|
color: e.palette.error.main,
|
|
2201
2201
|
paddingTop: e.spacing(1)
|
|
2202
|
-
})), Lr = class extends
|
|
2202
|
+
})), Lr = class extends V.Component {
|
|
2203
2203
|
static propTypes = {
|
|
2204
|
-
onModelChanged:
|
|
2205
|
-
onConfigurationChanged:
|
|
2206
|
-
model:
|
|
2207
|
-
configuration:
|
|
2208
|
-
imageSupport:
|
|
2209
|
-
uploadSoundSupport:
|
|
2204
|
+
onModelChanged: K.default.func.isRequired,
|
|
2205
|
+
onConfigurationChanged: K.default.func,
|
|
2206
|
+
model: K.default.object.isRequired,
|
|
2207
|
+
configuration: K.default.object.isRequired,
|
|
2208
|
+
imageSupport: K.default.object.isRequired,
|
|
2209
|
+
uploadSoundSupport: K.default.object.isRequired
|
|
2210
2210
|
};
|
|
2211
2211
|
constructor(e) {
|
|
2212
2212
|
super(e), this.state = { setDimensions: !0 };
|
|
@@ -2233,9 +2233,9 @@ var mr = class extends U.Component {
|
|
|
2233
2233
|
});
|
|
2234
2234
|
};
|
|
2235
2235
|
render() {
|
|
2236
|
-
let { model: e, configuration:
|
|
2237
|
-
mathInput:
|
|
2238
|
-
equationEditor:
|
|
2236
|
+
let { model: e, configuration: t, imageSupport: n, onConfigurationChanged: r, onModelChanged: i, uploadSoundSupport: a } = this.props, { annotations: o = {}, contentDimensions: s = {}, dimensions: c = {}, equationEditor: l = {}, feedback: u = {}, playerPasteFormatting: d = {}, playerSpellCheck: f = {}, prompt: p = {}, settingsPanelDisabled: m, spanishInput: h = {}, specialInput: g = {}, spellCheck: _ = {}, studentInstructions: v = {}, teacherInstructions: y = {}, mathInput: b = {}, maxImageWidth: x = {}, maxImageHeight: S = {}, multiple: C = {}, withRubric: w = {}, mathMlOptions: T = {}, baseInputConfiguration: E = {} } = t || {}, { errors: D = {}, extraCSSRules: O, feedbackEnabled: k, promptEnabled: j, spellCheckEnabled: M, teacherInstructionsEnabled: P, toolbarEditorPosition: F } = e || {}, { prompt: I, teacherInstructions: L } = D, R = x && x.prompt, ee = S && S.prompt, te = { position: F === "top" ? "top" : "bottom" }, ne = {
|
|
2237
|
+
mathInput: b.settings && $(b.label),
|
|
2238
|
+
equationEditor: l.enabled && e.mathInput && Mr(l.label, [
|
|
2239
2239
|
"non-negative-integers",
|
|
2240
2240
|
"integers",
|
|
2241
2241
|
"decimals",
|
|
@@ -2249,9 +2249,9 @@ var mr = class extends U.Component {
|
|
|
2249
2249
|
"statistics",
|
|
2250
2250
|
"item-authoring"
|
|
2251
2251
|
]),
|
|
2252
|
-
spanishInput:
|
|
2253
|
-
specialInput:
|
|
2254
|
-
dimensions:
|
|
2252
|
+
spanishInput: h.settings && $(h.label),
|
|
2253
|
+
specialInput: g.settings && $(g.label),
|
|
2254
|
+
dimensions: c.settings && jr(c.label, {
|
|
2255
2255
|
width: {
|
|
2256
2256
|
label: "Width (px)",
|
|
2257
2257
|
suffix: "px",
|
|
@@ -2265,80 +2265,80 @@ var mr = class extends U.Component {
|
|
|
2265
2265
|
max: 500
|
|
2266
2266
|
}
|
|
2267
2267
|
}),
|
|
2268
|
-
"multiple.enabled":
|
|
2269
|
-
promptEnabled:
|
|
2270
|
-
feedbackEnabled:
|
|
2271
|
-
annotationsEnabled:
|
|
2272
|
-
spellCheckEnabled:
|
|
2273
|
-
playerSpellCheckDisabled:
|
|
2274
|
-
playerPasteFormattingDisabled:
|
|
2275
|
-
},
|
|
2276
|
-
teacherInstructionsEnabled:
|
|
2277
|
-
studentInstructionsEnabled:
|
|
2278
|
-
rubricEnabled:
|
|
2279
|
-
},
|
|
2280
|
-
return /* @__PURE__ */
|
|
2281
|
-
extraCSSRules:
|
|
2282
|
-
dimensions:
|
|
2283
|
-
hideSettings:
|
|
2284
|
-
settings: /* @__PURE__ */
|
|
2268
|
+
"multiple.enabled": C.settings && $(C.label, !0),
|
|
2269
|
+
promptEnabled: p.settings && $(p.label),
|
|
2270
|
+
feedbackEnabled: u.settings && $(u.label),
|
|
2271
|
+
annotationsEnabled: o.settings && $(o.label),
|
|
2272
|
+
spellCheckEnabled: _.settings && $(_.label),
|
|
2273
|
+
playerSpellCheckDisabled: f.settings && $(f.label),
|
|
2274
|
+
playerPasteFormattingDisabled: d.settings && $(d.label)
|
|
2275
|
+
}, z = {
|
|
2276
|
+
teacherInstructionsEnabled: y.settings && $(y.label),
|
|
2277
|
+
studentInstructionsEnabled: v.settings && $(v.label),
|
|
2278
|
+
rubricEnabled: w?.settings && $(w?.label)
|
|
2279
|
+
}, re = (e) => Object.assign({ ...E }, e || {});
|
|
2280
|
+
return /* @__PURE__ */ U(Vn.ConfigLayout, {
|
|
2281
|
+
extraCSSRules: O,
|
|
2282
|
+
dimensions: s,
|
|
2283
|
+
hideSettings: m,
|
|
2284
|
+
settings: /* @__PURE__ */ H(Ar, {
|
|
2285
2285
|
model: e,
|
|
2286
|
-
configuration:
|
|
2287
|
-
onChangeModel: (e) =>
|
|
2288
|
-
onChangeConfiguration: (e) =>
|
|
2286
|
+
configuration: t,
|
|
2287
|
+
onChangeModel: (e) => i(e),
|
|
2288
|
+
onChangeConfiguration: (e) => r(e),
|
|
2289
2289
|
groups: {
|
|
2290
|
-
Settings:
|
|
2291
|
-
Properties:
|
|
2290
|
+
Settings: ne,
|
|
2291
|
+
Properties: z
|
|
2292
2292
|
}
|
|
2293
2293
|
}),
|
|
2294
2294
|
children: [
|
|
2295
|
-
P && /* @__PURE__ */
|
|
2296
|
-
label:
|
|
2297
|
-
children: [/* @__PURE__ */
|
|
2295
|
+
P && /* @__PURE__ */ U(Fr, {
|
|
2296
|
+
label: y.label,
|
|
2297
|
+
children: [/* @__PURE__ */ H(N, {
|
|
2298
2298
|
className: "prompt",
|
|
2299
2299
|
markup: e.teacherInstructions || "",
|
|
2300
2300
|
onChange: this.changeTeacherInstructions,
|
|
2301
|
-
imageSupport:
|
|
2301
|
+
imageSupport: n,
|
|
2302
2302
|
nonEmpty: !1,
|
|
2303
2303
|
error: L,
|
|
2304
|
-
toolbarOpts:
|
|
2304
|
+
toolbarOpts: te,
|
|
2305
2305
|
spellCheck: M,
|
|
2306
|
-
maxImageWidth:
|
|
2307
|
-
maxImageHeight:
|
|
2308
|
-
uploadSoundSupport:
|
|
2306
|
+
maxImageWidth: x && x.teacherInstructions || R,
|
|
2307
|
+
maxImageHeight: S && S.teacherInstructions || ee,
|
|
2308
|
+
uploadSoundSupport: a,
|
|
2309
2309
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
2310
|
-
mathMlOptions:
|
|
2311
|
-
pluginProps:
|
|
2312
|
-
}), L && /* @__PURE__ */
|
|
2310
|
+
mathMlOptions: T,
|
|
2311
|
+
pluginProps: re(y?.inputConfiguration)
|
|
2312
|
+
}), L && /* @__PURE__ */ H(Ir, { children: L })]
|
|
2313
2313
|
}),
|
|
2314
|
-
j && /* @__PURE__ */
|
|
2315
|
-
label:
|
|
2316
|
-
children: [/* @__PURE__ */
|
|
2317
|
-
activePlugins:
|
|
2314
|
+
j && /* @__PURE__ */ U(Fr, {
|
|
2315
|
+
label: p.label,
|
|
2316
|
+
children: [/* @__PURE__ */ H(N, {
|
|
2317
|
+
activePlugins: A,
|
|
2318
2318
|
className: "prompt",
|
|
2319
2319
|
markup: e.prompt || "",
|
|
2320
2320
|
onChange: this.onPromptChange,
|
|
2321
|
-
imageSupport:
|
|
2321
|
+
imageSupport: n,
|
|
2322
2322
|
nonEmpty: !1,
|
|
2323
2323
|
error: I,
|
|
2324
|
-
toolbarOpts:
|
|
2324
|
+
toolbarOpts: te,
|
|
2325
2325
|
spellCheck: M,
|
|
2326
2326
|
maxImageWidth: R,
|
|
2327
|
-
maxImageHeight:
|
|
2328
|
-
uploadSoundSupport:
|
|
2327
|
+
maxImageHeight: ee,
|
|
2328
|
+
uploadSoundSupport: a,
|
|
2329
2329
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
2330
|
-
mathMlOptions:
|
|
2331
|
-
pluginProps:
|
|
2332
|
-
}), I && /* @__PURE__ */
|
|
2330
|
+
mathMlOptions: T,
|
|
2331
|
+
pluginProps: re(p?.inputConfiguration)
|
|
2332
|
+
}), I && /* @__PURE__ */ H(Ir, { children: I })]
|
|
2333
2333
|
}),
|
|
2334
|
-
|
|
2334
|
+
k && /* @__PURE__ */ U(V.Fragment, { children: [/* @__PURE__ */ H(Pr, {
|
|
2335
2335
|
variant: "h6",
|
|
2336
2336
|
children: "Feedback"
|
|
2337
|
-
}), /* @__PURE__ */
|
|
2337
|
+
}), /* @__PURE__ */ H(Et, {
|
|
2338
2338
|
label: "When submitted, show",
|
|
2339
2339
|
feedback: e.feedback || Nr,
|
|
2340
2340
|
onChange: this.changeFeedback,
|
|
2341
|
-
toolbarOpts:
|
|
2341
|
+
toolbarOpts: te
|
|
2342
2342
|
})] })
|
|
2343
2343
|
]
|
|
2344
2344
|
});
|
|
@@ -2598,7 +2598,7 @@ var mr = class extends U.Component {
|
|
|
2598
2598
|
}
|
|
2599
2599
|
render() {
|
|
2600
2600
|
if (this._model) {
|
|
2601
|
-
let e =
|
|
2601
|
+
let e = V.createElement(Lr, {
|
|
2602
2602
|
model: this._model,
|
|
2603
2603
|
configuration: this._configuration,
|
|
2604
2604
|
onModelChanged: this.onModelChanged.bind(this),
|
|
@@ -2612,7 +2612,7 @@ var mr = class extends U.Component {
|
|
|
2612
2612
|
delete: this.onDeleteSound.bind(this)
|
|
2613
2613
|
}
|
|
2614
2614
|
});
|
|
2615
|
-
this._root ||=
|
|
2615
|
+
this._root ||= se(this), this._root.render(e);
|
|
2616
2616
|
}
|
|
2617
2617
|
}
|
|
2618
2618
|
connectedCallback() {
|