@pie-element/matrix 5.0.1-next.20261004011201 → 5.0.1-next.20261004020741
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.
|
@@ -18859,10 +18859,21 @@ var TT = {
|
|
|
18859
18859
|
},
|
|
18860
18860
|
dragInTheBlank: { blank: "Blank {{index}}" },
|
|
18861
18861
|
ebsr: { part: "Part {{index}}" },
|
|
18862
|
+
explicitConstructedResponse: { response: "Response {{index}} of {{total}}" },
|
|
18863
|
+
extendedTextEntry: { response: "Your response" },
|
|
18862
18864
|
numberLine: {
|
|
18863
18865
|
addElementLimit_one: "You can only add {{count}} element",
|
|
18864
18866
|
addElementLimit_other: "You can only add {{count}} elements",
|
|
18865
|
-
clearAll: "Clear all"
|
|
18867
|
+
clearAll: "Clear all",
|
|
18868
|
+
closedEnd: "closed",
|
|
18869
|
+
graphLabel: "Number line from {{min}} to {{max}}, with a tick every {{interval}}",
|
|
18870
|
+
line: "Line from {{left}} ({{leftEnd}}) to {{right}} ({{rightEnd}}).",
|
|
18871
|
+
openEnd: "open",
|
|
18872
|
+
plottedNone: "Nothing is plotted.",
|
|
18873
|
+
pointClosed: "Closed point at {{position}}.",
|
|
18874
|
+
pointOpen: "Open point at {{position}}.",
|
|
18875
|
+
rayLeft: "Ray from {{position}} ({{end}}) to the left.",
|
|
18876
|
+
rayRight: "Ray from {{position}} ({{end}}) to the right."
|
|
18866
18877
|
},
|
|
18867
18878
|
hotspot: {
|
|
18868
18879
|
image_one: "Image with {{count}} hotspot",
|
|
@@ -18891,7 +18902,9 @@ var TT = {
|
|
|
18891
18902
|
green: "Green",
|
|
18892
18903
|
white: "White",
|
|
18893
18904
|
black: "Black",
|
|
18894
|
-
onDoubleClick: "Double click to edit this text. Press Enter to submit."
|
|
18905
|
+
onDoubleClick: "Double click to edit this text. Press Enter to submit.",
|
|
18906
|
+
drawingArea: "Drawing area",
|
|
18907
|
+
drawingAreaOverImage: "Drawing area over a background image"
|
|
18895
18908
|
},
|
|
18896
18909
|
charting: {
|
|
18897
18910
|
addCategory: "Add category",
|
|
@@ -19032,10 +19045,21 @@ var TT = {
|
|
|
19032
19045
|
},
|
|
19033
19046
|
dragInTheBlank: { blank: "Espacio en blanco {{index}}" },
|
|
19034
19047
|
ebsr: { part: "Parte {{index}}" },
|
|
19048
|
+
explicitConstructedResponse: { response: "Respuesta {{index}} de {{total}}" },
|
|
19049
|
+
extendedTextEntry: { response: "Tu respuesta" },
|
|
19035
19050
|
numberLine: {
|
|
19036
19051
|
addElementLimit_one: "Solo puedes agregar {{count}} elemento",
|
|
19037
19052
|
addElementLimit_other: "Solo puedes agregar {{count}} elementos",
|
|
19038
|
-
clearAll: "Borrar todo"
|
|
19053
|
+
clearAll: "Borrar todo",
|
|
19054
|
+
closedEnd: "cerrado",
|
|
19055
|
+
graphLabel: "Recta numérica de {{min}} a {{max}}, con una marca cada {{interval}}",
|
|
19056
|
+
line: "Línea de {{left}} ({{leftEnd}}) a {{right}} ({{rightEnd}}).",
|
|
19057
|
+
openEnd: "abierto",
|
|
19058
|
+
plottedNone: "No hay nada marcado en la recta.",
|
|
19059
|
+
pointClosed: "Punto cerrado en {{position}}.",
|
|
19060
|
+
pointOpen: "Punto abierto en {{position}}.",
|
|
19061
|
+
rayLeft: "Rayo desde {{position}} ({{end}}) hacia la izquierda.",
|
|
19062
|
+
rayRight: "Rayo desde {{position}} ({{end}}) hacia la derecha."
|
|
19039
19063
|
},
|
|
19040
19064
|
hotspot: {
|
|
19041
19065
|
image_one: "Imagen con {{count}} zona activa",
|
|
@@ -19064,7 +19088,9 @@ var TT = {
|
|
|
19064
19088
|
green: "Verde",
|
|
19065
19089
|
white: "Blanco",
|
|
19066
19090
|
black: "Negro",
|
|
19067
|
-
onDoubleClick: "Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"
|
|
19091
|
+
onDoubleClick: "Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar",
|
|
19092
|
+
drawingArea: "Área de dibujo",
|
|
19093
|
+
drawingAreaOverImage: "Área de dibujo sobre una imagen de fondo"
|
|
19068
19094
|
},
|
|
19069
19095
|
charting: {
|
|
19070
19096
|
addCategory: "Añadir categoría",
|
|
@@ -33894,14 +33920,16 @@ var PB = ym.create({
|
|
|
33894
33920
|
"--red": "#ff5c33",
|
|
33895
33921
|
"--red-light": "#ffebe5",
|
|
33896
33922
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
33897
|
-
}, rV = (e) => ({
|
|
33923
|
+
}, rV = (e, t, n) => ({
|
|
33898
33924
|
role: "textbox",
|
|
33899
33925
|
"data-pie-editor": "true",
|
|
33900
33926
|
class: "mathjax_ignore",
|
|
33901
33927
|
spellcheck: e ? "true" : "false",
|
|
33902
33928
|
autocorrect: e ? "on" : "off",
|
|
33903
|
-
autocapitalize: e ? "on" : "off"
|
|
33904
|
-
|
|
33929
|
+
autocapitalize: e ? "on" : "off",
|
|
33930
|
+
...t && { "aria-label": t },
|
|
33931
|
+
...n && { "aria-labelledby": n }
|
|
33932
|
+
}), iV = ["aria-label", "aria-labelledby"], aV = (e) => {
|
|
33905
33933
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Et([]), [a, o] = Et(!1), { toolbarOpts: s } = e, c = yt((e) => {
|
|
33906
33934
|
i((t) => {
|
|
33907
33935
|
let n = t.filter((t) => t.pos !== e);
|
|
@@ -34041,11 +34069,11 @@ var PB = ym.create({
|
|
|
34041
34069
|
}),
|
|
34042
34070
|
Jj.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
34043
34071
|
dM.configure({ extraCSSRules: e.extraCSSRules })
|
|
34044
|
-
], m = e.spellCheck !== !1, h = ry({
|
|
34072
|
+
], m = e.spellCheck !== !1, { ariaLabel: h, ariaLabelledBy: g } = e, _ = ry({
|
|
34045
34073
|
extensions: p,
|
|
34046
34074
|
immediatelyRender: !1,
|
|
34047
34075
|
editorProps: {
|
|
34048
|
-
attributes: rV(m),
|
|
34076
|
+
attributes: rV(m, h, g),
|
|
34049
34077
|
handleKeyDown(t, n) {
|
|
34050
34078
|
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
34051
34079
|
}
|
|
@@ -34060,32 +34088,39 @@ var PB = ym.create({
|
|
|
34060
34088
|
}
|
|
34061
34089
|
}, [e.charactersLimit]);
|
|
34062
34090
|
St(() => {
|
|
34063
|
-
e.editorRef && e.editorRef(
|
|
34064
|
-
}, [e.editorRef,
|
|
34065
|
-
|
|
34066
|
-
}, [e.disabled,
|
|
34067
|
-
if (!
|
|
34068
|
-
let e =
|
|
34069
|
-
|
|
34070
|
-
|
|
34071
|
-
|
|
34072
|
-
e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
|
|
34091
|
+
e.editorRef && e.editorRef(_);
|
|
34092
|
+
}, [e.editorRef, _]), St(() => {
|
|
34093
|
+
_?.setEditable(!e.disabled);
|
|
34094
|
+
}, [e.disabled, _]), St(() => {
|
|
34095
|
+
if (!_) return;
|
|
34096
|
+
let e = _.options?.editorProps, t = e?.attributes || {}, n = rV(m, h, g);
|
|
34097
|
+
if (["spellcheck", ...iV].every((e) => t[e] === n[e])) return;
|
|
34098
|
+
let r = Object.fromEntries(Object.entries(t).filter(([e]) => !iV.includes(e)));
|
|
34099
|
+
_.setOptions({ editorProps: {
|
|
34073
34100
|
...e,
|
|
34074
|
-
attributes:
|
|
34101
|
+
attributes: {
|
|
34102
|
+
...r,
|
|
34103
|
+
...n
|
|
34104
|
+
}
|
|
34075
34105
|
} });
|
|
34076
|
-
}, [
|
|
34077
|
-
|
|
34106
|
+
}, [
|
|
34107
|
+
m,
|
|
34108
|
+
h,
|
|
34109
|
+
g,
|
|
34110
|
+
_
|
|
34111
|
+
]), St(() => {
|
|
34112
|
+
if (!_) return;
|
|
34078
34113
|
let t = ih(e.markup);
|
|
34079
|
-
t !==
|
|
34080
|
-
}, [e.markup,
|
|
34114
|
+
t !== _.getHTML() && _.commands.setContent(t, { emitUpdate: !1 });
|
|
34115
|
+
}, [e.markup, _]), St(() => {
|
|
34081
34116
|
Object.entries(nV).forEach(([e, t]) => {
|
|
34082
34117
|
document.documentElement.style.setProperty(e, t);
|
|
34083
34118
|
});
|
|
34084
34119
|
}, []);
|
|
34085
|
-
let
|
|
34086
|
-
editor:
|
|
34120
|
+
let v = $v({
|
|
34121
|
+
editor: _,
|
|
34087
34122
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
34088
|
-
}),
|
|
34123
|
+
}), y = wt(() => {
|
|
34089
34124
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
34090
34125
|
return {
|
|
34091
34126
|
width: vN(n),
|
|
@@ -34100,20 +34135,20 @@ var PB = ym.create({
|
|
|
34100
34135
|
...e,
|
|
34101
34136
|
activePlugins: f,
|
|
34102
34137
|
toolbarOpts: l,
|
|
34103
|
-
editorState:
|
|
34104
|
-
editor:
|
|
34105
|
-
children:
|
|
34138
|
+
editorState: v,
|
|
34139
|
+
editor: _,
|
|
34140
|
+
children: _ && /* @__PURE__ */ M(oV, {
|
|
34106
34141
|
style: {
|
|
34107
|
-
minHeight:
|
|
34108
|
-
height:
|
|
34109
|
-
maxHeight:
|
|
34142
|
+
minHeight: y.minHeight,
|
|
34143
|
+
height: y.height,
|
|
34144
|
+
maxHeight: y.maxHeight
|
|
34110
34145
|
},
|
|
34111
34146
|
showParagraph: t && !t.disabled,
|
|
34112
34147
|
separateParagraph: n && !n.disabled,
|
|
34113
|
-
editor:
|
|
34148
|
+
editor: _
|
|
34114
34149
|
})
|
|
34115
34150
|
});
|
|
34116
|
-
},
|
|
34151
|
+
}, oV = k(Xv, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
34117
34152
|
display: "flex",
|
|
34118
34153
|
outline: "none !important",
|
|
34119
34154
|
"& .ProseMirror": {
|
|
@@ -34141,13 +34176,13 @@ var PB = ym.create({
|
|
|
34141
34176
|
} },
|
|
34142
34177
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
34143
34178
|
}
|
|
34144
|
-
})),
|
|
34179
|
+
})), sV = aV, cV = w(/*#__PURE__*/ M("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"), lV = w(/*#__PURE__*/ M("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"), uV = w(/*#__PURE__*/ M("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");
|
|
34145
34180
|
//#endregion
|
|
34146
34181
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
|
|
34147
|
-
function
|
|
34182
|
+
function dV(e) {
|
|
34148
34183
|
return Se("MuiCheckbox", e);
|
|
34149
34184
|
}
|
|
34150
|
-
var
|
|
34185
|
+
var fV = A("MuiCheckbox", [
|
|
34151
34186
|
"root",
|
|
34152
34187
|
"checked",
|
|
34153
34188
|
"disabled",
|
|
@@ -34156,18 +34191,18 @@ var dV = A("MuiCheckbox", [
|
|
|
34156
34191
|
"colorSecondary",
|
|
34157
34192
|
"sizeSmall",
|
|
34158
34193
|
"sizeMedium"
|
|
34159
|
-
]),
|
|
34194
|
+
]), pV = (e) => {
|
|
34160
34195
|
let { classes: t, indeterminate: n, color: r, size: i } = e, a = Ge({ root: [
|
|
34161
34196
|
"root",
|
|
34162
34197
|
n && "indeterminate",
|
|
34163
34198
|
`color${p(r)}`,
|
|
34164
34199
|
`size${p(i)}`
|
|
34165
|
-
] },
|
|
34200
|
+
] }, dV, t);
|
|
34166
34201
|
return {
|
|
34167
34202
|
...t,
|
|
34168
34203
|
...a
|
|
34169
34204
|
};
|
|
34170
|
-
},
|
|
34205
|
+
}, mV = k(Re, {
|
|
34171
34206
|
shouldForwardProp: (e) => ue(e) || e === "classes",
|
|
34172
34207
|
name: "MuiCheckbox",
|
|
34173
34208
|
slot: "Root",
|
|
@@ -34200,8 +34235,8 @@ var dV = A("MuiCheckbox", [
|
|
|
34200
34235
|
...Object.entries(e.palette).filter(s()).map(([t]) => ({
|
|
34201
34236
|
props: { color: t },
|
|
34202
34237
|
style: {
|
|
34203
|
-
[`&.${
|
|
34204
|
-
[`&.${
|
|
34238
|
+
[`&.${fV.checked}, &.${fV.indeterminate}`]: { color: (e.vars || e).palette[t].main },
|
|
34239
|
+
[`&.${fV.disabled}`]: { color: (e.vars || e).palette.action.disabled }
|
|
34205
34240
|
}
|
|
34206
34241
|
})),
|
|
34207
34242
|
{
|
|
@@ -34209,19 +34244,19 @@ var dV = A("MuiCheckbox", [
|
|
|
34209
34244
|
style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
|
|
34210
34245
|
}
|
|
34211
34246
|
]
|
|
34212
|
-
}))),
|
|
34247
|
+
}))), hV = /*#__PURE__*/ M(lV, {}), gV = /*#__PURE__*/ M(cV, {}), _V = /*#__PURE__*/ M(uV, {}), vV = /*#__PURE__*/ j.forwardRef(function(e, t) {
|
|
34213
34248
|
let n = Ue({
|
|
34214
34249
|
props: e,
|
|
34215
34250
|
name: "MuiCheckbox"
|
|
34216
|
-
}), { checkedIcon: r =
|
|
34251
|
+
}), { checkedIcon: r = hV, color: i = "primary", icon: a = gV, indeterminate: o = !1, indeterminateIcon: s = _V, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: f = {}, slotProps: p = {}, ...m } = n, h = o ? s : a, g = o ? s : r, _ = {
|
|
34217
34252
|
...n,
|
|
34218
34253
|
disableRipple: u,
|
|
34219
34254
|
color: i,
|
|
34220
34255
|
indeterminate: o,
|
|
34221
34256
|
size: l
|
|
34222
|
-
}, v =
|
|
34257
|
+
}, v = pV(_), y = p.input ?? c, [b, x] = O("root", {
|
|
34223
34258
|
ref: t,
|
|
34224
|
-
elementType:
|
|
34259
|
+
elementType: mV,
|
|
34225
34260
|
className: be(v.root, d),
|
|
34226
34261
|
shouldForwardComponentProp: !0,
|
|
34227
34262
|
externalForwardedProps: {
|
|
@@ -34249,10 +34284,10 @@ var dV = A("MuiCheckbox", [
|
|
|
34249
34284
|
});
|
|
34250
34285
|
//#endregion
|
|
34251
34286
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
|
|
34252
|
-
function
|
|
34287
|
+
function yV(e) {
|
|
34253
34288
|
return Se("MuiFormControlLabel", e);
|
|
34254
34289
|
}
|
|
34255
|
-
var
|
|
34290
|
+
var bV = A("MuiFormControlLabel", [
|
|
34256
34291
|
"root",
|
|
34257
34292
|
"labelPlacementStart",
|
|
34258
34293
|
"labelPlacementTop",
|
|
@@ -34262,7 +34297,7 @@ var yV = A("MuiFormControlLabel", [
|
|
|
34262
34297
|
"error",
|
|
34263
34298
|
"required",
|
|
34264
34299
|
"asterisk"
|
|
34265
|
-
]),
|
|
34300
|
+
]), xV = (e) => {
|
|
34266
34301
|
let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
|
|
34267
34302
|
return Ge({
|
|
34268
34303
|
root: [
|
|
@@ -34274,14 +34309,14 @@ var yV = A("MuiFormControlLabel", [
|
|
|
34274
34309
|
],
|
|
34275
34310
|
label: ["label", n && "disabled"],
|
|
34276
34311
|
asterisk: ["asterisk", i && "error"]
|
|
34277
|
-
},
|
|
34278
|
-
},
|
|
34312
|
+
}, yV, t);
|
|
34313
|
+
}, SV = k("label", {
|
|
34279
34314
|
name: "MuiFormControlLabel",
|
|
34280
34315
|
slot: "Root",
|
|
34281
34316
|
overridesResolver: (e, t) => {
|
|
34282
34317
|
let { ownerState: n } = e;
|
|
34283
34318
|
return [
|
|
34284
|
-
{ [`& .${
|
|
34319
|
+
{ [`& .${bV.label}`]: t.label },
|
|
34285
34320
|
t.root,
|
|
34286
34321
|
t[`labelPlacement${p(n.labelPlacement)}`]
|
|
34287
34322
|
];
|
|
@@ -34294,8 +34329,8 @@ var yV = A("MuiFormControlLabel", [
|
|
|
34294
34329
|
WebkitTapHighlightColor: "transparent",
|
|
34295
34330
|
marginLeft: -11,
|
|
34296
34331
|
marginRight: 16,
|
|
34297
|
-
[`&.${
|
|
34298
|
-
[`& .${
|
|
34332
|
+
[`&.${bV.disabled}`]: { cursor: "default" },
|
|
34333
|
+
[`& .${bV.label}`]: { [`&.${bV.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
|
|
34299
34334
|
variants: [
|
|
34300
34335
|
{
|
|
34301
34336
|
props: { labelPlacement: "start" },
|
|
@@ -34317,10 +34352,10 @@ var yV = A("MuiFormControlLabel", [
|
|
|
34317
34352
|
style: { marginLeft: 16 }
|
|
34318
34353
|
}
|
|
34319
34354
|
]
|
|
34320
|
-
}))),
|
|
34355
|
+
}))), CV = k("span", {
|
|
34321
34356
|
name: "MuiFormControlLabel",
|
|
34322
34357
|
slot: "Asterisk"
|
|
34323
|
-
})(h(({ theme: e }) => ({ [`&.${
|
|
34358
|
+
})(h(({ theme: e }) => ({ [`&.${bV.error}`]: { color: (e.vars || e).palette.error.main } }))), wV = /*#__PURE__*/ j.forwardRef(function(e, t) {
|
|
34324
34359
|
let n = Ue({
|
|
34325
34360
|
props: e,
|
|
34326
34361
|
name: "MuiFormControlLabel"
|
|
@@ -34347,7 +34382,7 @@ var yV = A("MuiFormControlLabel", [
|
|
|
34347
34382
|
labelPlacement: d,
|
|
34348
34383
|
required: x,
|
|
34349
34384
|
error: C.error
|
|
34350
|
-
}, T =
|
|
34385
|
+
}, T = xV(w), [E, ee] = O("typography", {
|
|
34351
34386
|
elementType: ED,
|
|
34352
34387
|
externalForwardedProps: {
|
|
34353
34388
|
slots: h,
|
|
@@ -34363,12 +34398,12 @@ var yV = A("MuiFormControlLabel", [
|
|
|
34363
34398
|
...ee,
|
|
34364
34399
|
className: be(T.label, ee?.className),
|
|
34365
34400
|
children: D
|
|
34366
|
-
})), /*#__PURE__*/ N(
|
|
34401
|
+
})), /*#__PURE__*/ N(SV, {
|
|
34367
34402
|
className: be(T.root, i),
|
|
34368
34403
|
ownerState: w,
|
|
34369
34404
|
ref: t,
|
|
34370
34405
|
...v,
|
|
34371
|
-
children: [/*#__PURE__*/ j.cloneElement(o, S), x ? /*#__PURE__*/ N("div", { children: [D, /*#__PURE__*/ N(
|
|
34406
|
+
children: [/*#__PURE__*/ j.cloneElement(o, S), x ? /*#__PURE__*/ N("div", { children: [D, /*#__PURE__*/ N(CV, {
|
|
34372
34407
|
ownerState: w,
|
|
34373
34408
|
"aria-hidden": !0,
|
|
34374
34409
|
className: T.asterisk,
|
|
@@ -34378,7 +34413,7 @@ var yV = A("MuiFormControlLabel", [
|
|
|
34378
34413
|
});
|
|
34379
34414
|
//#endregion
|
|
34380
34415
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/formGroupClasses.js
|
|
34381
|
-
function
|
|
34416
|
+
function TV(e) {
|
|
34382
34417
|
return Se("MuiFormGroup", e);
|
|
34383
34418
|
}
|
|
34384
34419
|
A("MuiFormGroup", [
|
|
@@ -34388,14 +34423,14 @@ A("MuiFormGroup", [
|
|
|
34388
34423
|
]);
|
|
34389
34424
|
//#endregion
|
|
34390
34425
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/FormGroup.js
|
|
34391
|
-
var
|
|
34426
|
+
var EV = (e) => {
|
|
34392
34427
|
let { classes: t, row: n, error: r } = e;
|
|
34393
34428
|
return Ge({ root: [
|
|
34394
34429
|
"root",
|
|
34395
34430
|
n && "row",
|
|
34396
34431
|
r && "error"
|
|
34397
|
-
] },
|
|
34398
|
-
},
|
|
34432
|
+
] }, TV, t);
|
|
34433
|
+
}, DV = k("div", {
|
|
34399
34434
|
name: "MuiFormGroup",
|
|
34400
34435
|
slot: "Root",
|
|
34401
34436
|
overridesResolver: (e, t) => {
|
|
@@ -34410,7 +34445,7 @@ var TV = (e) => {
|
|
|
34410
34445
|
props: { row: !0 },
|
|
34411
34446
|
style: { flexDirection: "row" }
|
|
34412
34447
|
}]
|
|
34413
|
-
}),
|
|
34448
|
+
}), OV = /*#__PURE__*/ j.forwardRef(function(e, t) {
|
|
34414
34449
|
let n = Ue({
|
|
34415
34450
|
props: e,
|
|
34416
34451
|
name: "MuiFormGroup"
|
|
@@ -34423,8 +34458,8 @@ var TV = (e) => {
|
|
|
34423
34458
|
row: i,
|
|
34424
34459
|
error: o.error
|
|
34425
34460
|
};
|
|
34426
|
-
return /*#__PURE__*/ M(
|
|
34427
|
-
className: be(
|
|
34461
|
+
return /*#__PURE__*/ M(DV, {
|
|
34462
|
+
className: be(EV(s).root, r),
|
|
34428
34463
|
ownerState: s,
|
|
34429
34464
|
ref: t,
|
|
34430
34465
|
...a
|
|
@@ -34432,10 +34467,10 @@ var TV = (e) => {
|
|
|
34432
34467
|
});
|
|
34433
34468
|
//#endregion
|
|
34434
34469
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
|
|
34435
|
-
function
|
|
34470
|
+
function kV(e) {
|
|
34436
34471
|
return Se("MuiInputAdornment", e);
|
|
34437
34472
|
}
|
|
34438
|
-
var
|
|
34473
|
+
var AV = A("MuiInputAdornment", [
|
|
34439
34474
|
"root",
|
|
34440
34475
|
"filled",
|
|
34441
34476
|
"standard",
|
|
@@ -34445,7 +34480,7 @@ var kV = A("MuiInputAdornment", [
|
|
|
34445
34480
|
"disablePointerEvents",
|
|
34446
34481
|
"hiddenLabel",
|
|
34447
34482
|
"sizeSmall"
|
|
34448
|
-
]),
|
|
34483
|
+
]), jV, MV = (e, t) => {
|
|
34449
34484
|
let { ownerState: n } = e;
|
|
34450
34485
|
return [
|
|
34451
34486
|
t.root,
|
|
@@ -34453,7 +34488,7 @@ var kV = A("MuiInputAdornment", [
|
|
|
34453
34488
|
n.disablePointerEvents === !0 && t.disablePointerEvents,
|
|
34454
34489
|
t[n.variant]
|
|
34455
34490
|
];
|
|
34456
|
-
},
|
|
34491
|
+
}, NV = (e) => {
|
|
34457
34492
|
let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
|
|
34458
34493
|
return Ge({ root: [
|
|
34459
34494
|
"root",
|
|
@@ -34462,11 +34497,11 @@ var kV = A("MuiInputAdornment", [
|
|
|
34462
34497
|
o,
|
|
34463
34498
|
r && "hiddenLabel",
|
|
34464
34499
|
a && `size${p(a)}`
|
|
34465
|
-
] },
|
|
34466
|
-
},
|
|
34500
|
+
] }, kV, t);
|
|
34501
|
+
}, PV = k("div", {
|
|
34467
34502
|
name: "MuiInputAdornment",
|
|
34468
34503
|
slot: "Root",
|
|
34469
|
-
overridesResolver:
|
|
34504
|
+
overridesResolver: MV
|
|
34470
34505
|
})(h(({ theme: e }) => ({
|
|
34471
34506
|
display: "flex",
|
|
34472
34507
|
maxHeight: "2em",
|
|
@@ -34476,7 +34511,7 @@ var kV = A("MuiInputAdornment", [
|
|
|
34476
34511
|
variants: [
|
|
34477
34512
|
{
|
|
34478
34513
|
props: { variant: "filled" },
|
|
34479
|
-
style: { [`&.${
|
|
34514
|
+
style: { [`&.${AV.positionStart}&:not(.${AV.hiddenLabel})`]: { marginTop: 16 } }
|
|
34480
34515
|
},
|
|
34481
34516
|
{
|
|
34482
34517
|
props: { position: "start" },
|
|
@@ -34491,7 +34526,7 @@ var kV = A("MuiInputAdornment", [
|
|
|
34491
34526
|
style: { pointerEvents: "none" }
|
|
34492
34527
|
}
|
|
34493
34528
|
]
|
|
34494
|
-
}))),
|
|
34529
|
+
}))), FV = /*#__PURE__*/ j.forwardRef(function(e, t) {
|
|
34495
34530
|
let n = Ue({
|
|
34496
34531
|
props: e,
|
|
34497
34532
|
name: "MuiInputAdornment"
|
|
@@ -34504,10 +34539,10 @@ var kV = A("MuiInputAdornment", [
|
|
|
34504
34539
|
disablePointerEvents: o,
|
|
34505
34540
|
position: c,
|
|
34506
34541
|
variant: f
|
|
34507
|
-
}, m =
|
|
34542
|
+
}, m = NV(p);
|
|
34508
34543
|
return /*#__PURE__*/ M(se.Provider, {
|
|
34509
34544
|
value: null,
|
|
34510
|
-
children: /*#__PURE__*/ M(
|
|
34545
|
+
children: /*#__PURE__*/ M(PV, {
|
|
34511
34546
|
as: a,
|
|
34512
34547
|
ownerState: p,
|
|
34513
34548
|
className: be(m.root, i),
|
|
@@ -34516,7 +34551,7 @@ var kV = A("MuiInputAdornment", [
|
|
|
34516
34551
|
children: typeof r == "string" && !s ? /*#__PURE__*/ M(ED, {
|
|
34517
34552
|
color: "textSecondary",
|
|
34518
34553
|
children: r
|
|
34519
|
-
}) : /*#__PURE__*/ N(j.Fragment, { children: [c === "start" ?
|
|
34554
|
+
}) : /*#__PURE__*/ N(j.Fragment, { children: [c === "start" ? jV ||= /*#__PURE__*/ M("span", {
|
|
34520
34555
|
className: "notranslate",
|
|
34521
34556
|
"aria-hidden": !0,
|
|
34522
34557
|
children: ""
|
|
@@ -34526,7 +34561,7 @@ var kV = A("MuiInputAdornment", [
|
|
|
34526
34561
|
});
|
|
34527
34562
|
//#endregion
|
|
34528
34563
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/radioGroupClasses.js
|
|
34529
|
-
function
|
|
34564
|
+
function IV(e) {
|
|
34530
34565
|
return Se("MuiRadioGroup", e);
|
|
34531
34566
|
}
|
|
34532
34567
|
A("MuiRadioGroup", [
|
|
@@ -34536,15 +34571,15 @@ A("MuiRadioGroup", [
|
|
|
34536
34571
|
]);
|
|
34537
34572
|
//#endregion
|
|
34538
34573
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroup.js
|
|
34539
|
-
var
|
|
34574
|
+
var LV = (e) => {
|
|
34540
34575
|
let { classes: t, row: n, error: r } = e;
|
|
34541
34576
|
return Ge({ root: [
|
|
34542
34577
|
"root",
|
|
34543
34578
|
n && "row",
|
|
34544
34579
|
r && "error"
|
|
34545
|
-
] },
|
|
34546
|
-
},
|
|
34547
|
-
let { actions: n, children: r, className: a, defaultValue: o, name: s, onChange: c, value: l, ...u } = e, d = j.useRef(null), f =
|
|
34580
|
+
] }, IV, t);
|
|
34581
|
+
}, RV = /*#__PURE__*/ j.forwardRef(function(e, t) {
|
|
34582
|
+
let { actions: n, children: r, className: a, defaultValue: o, name: s, onChange: c, value: l, ...u } = e, d = j.useRef(null), f = LV(e), [p, m] = i({
|
|
34548
34583
|
controlled: l,
|
|
34549
34584
|
default: o,
|
|
34550
34585
|
name: "RadioGroup"
|
|
@@ -34567,7 +34602,7 @@ var IV = (e) => {
|
|
|
34567
34602
|
]);
|
|
34568
34603
|
return /*#__PURE__*/ M(je.Provider, {
|
|
34569
34604
|
value: _,
|
|
34570
|
-
children: /*#__PURE__*/ M(
|
|
34605
|
+
children: /*#__PURE__*/ M(OV, {
|
|
34571
34606
|
role: "radiogroup",
|
|
34572
34607
|
ref: h,
|
|
34573
34608
|
className: be(f.root, a),
|
|
@@ -34578,10 +34613,10 @@ var IV = (e) => {
|
|
|
34578
34613
|
});
|
|
34579
34614
|
//#endregion
|
|
34580
34615
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
|
|
34581
|
-
function
|
|
34616
|
+
function zV(e) {
|
|
34582
34617
|
return Se("MuiSwitch", e);
|
|
34583
34618
|
}
|
|
34584
|
-
var
|
|
34619
|
+
var BV = A("MuiSwitch", [
|
|
34585
34620
|
"root",
|
|
34586
34621
|
"edgeStart",
|
|
34587
34622
|
"edgeEnd",
|
|
@@ -34595,7 +34630,7 @@ var zV = A("MuiSwitch", [
|
|
|
34595
34630
|
"input",
|
|
34596
34631
|
"thumb",
|
|
34597
34632
|
"track"
|
|
34598
|
-
]),
|
|
34633
|
+
]), VV = (e) => {
|
|
34599
34634
|
let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = Ge({
|
|
34600
34635
|
root: [
|
|
34601
34636
|
"root",
|
|
@@ -34611,12 +34646,12 @@ var zV = A("MuiSwitch", [
|
|
|
34611
34646
|
thumb: ["thumb"],
|
|
34612
34647
|
track: ["track"],
|
|
34613
34648
|
input: ["input"]
|
|
34614
|
-
},
|
|
34649
|
+
}, zV, t);
|
|
34615
34650
|
return {
|
|
34616
34651
|
...t,
|
|
34617
34652
|
...s
|
|
34618
34653
|
};
|
|
34619
|
-
},
|
|
34654
|
+
}, HV = k("span", {
|
|
34620
34655
|
name: "MuiSwitch",
|
|
34621
34656
|
slot: "Root",
|
|
34622
34657
|
overridesResolver: (e, t) => {
|
|
@@ -34654,25 +34689,25 @@ var zV = A("MuiSwitch", [
|
|
|
34654
34689
|
width: 40,
|
|
34655
34690
|
height: 24,
|
|
34656
34691
|
padding: 7,
|
|
34657
|
-
[`& .${
|
|
34692
|
+
[`& .${BV.thumb}`]: {
|
|
34658
34693
|
width: 16,
|
|
34659
34694
|
height: 16
|
|
34660
34695
|
},
|
|
34661
|
-
[`& .${
|
|
34696
|
+
[`& .${BV.switchBase}`]: {
|
|
34662
34697
|
padding: 4,
|
|
34663
|
-
[`&.${
|
|
34698
|
+
[`&.${BV.checked}`]: { transform: "translateX(16px)" }
|
|
34664
34699
|
}
|
|
34665
34700
|
}
|
|
34666
34701
|
}
|
|
34667
34702
|
]
|
|
34668
|
-
}),
|
|
34703
|
+
}), UV = k(Re, {
|
|
34669
34704
|
name: "MuiSwitch",
|
|
34670
34705
|
slot: "SwitchBase",
|
|
34671
34706
|
overridesResolver: (e, t) => {
|
|
34672
34707
|
let { ownerState: n } = e;
|
|
34673
34708
|
return [
|
|
34674
34709
|
t.switchBase,
|
|
34675
|
-
{ [`& .${
|
|
34710
|
+
{ [`& .${BV.input}`]: t.input },
|
|
34676
34711
|
n.color !== "default" && t[`color${p(n.color)}`]
|
|
34677
34712
|
];
|
|
34678
34713
|
}
|
|
@@ -34683,11 +34718,11 @@ var zV = A("MuiSwitch", [
|
|
|
34683
34718
|
zIndex: 1,
|
|
34684
34719
|
color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
|
|
34685
34720
|
transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
|
|
34686
|
-
[`&.${
|
|
34687
|
-
[`&.${
|
|
34688
|
-
[`&.${
|
|
34689
|
-
[`&.${
|
|
34690
|
-
[`& .${
|
|
34721
|
+
[`&.${BV.checked}`]: { transform: "translateX(20px)" },
|
|
34722
|
+
[`&.${BV.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
|
|
34723
|
+
[`&.${BV.checked} + .${BV.track}`]: { opacity: .5 },
|
|
34724
|
+
[`&.${BV.disabled} + .${BV.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
|
|
34725
|
+
[`& .${BV.input}`]: {
|
|
34691
34726
|
left: "-100%",
|
|
34692
34727
|
width: "300%"
|
|
34693
34728
|
}
|
|
@@ -34699,18 +34734,18 @@ var zV = A("MuiSwitch", [
|
|
|
34699
34734
|
variants: [...Object.entries(e.palette).filter(s(["light"])).map(([t]) => ({
|
|
34700
34735
|
props: { color: t },
|
|
34701
34736
|
style: {
|
|
34702
|
-
[`&.${
|
|
34737
|
+
[`&.${BV.checked}`]: {
|
|
34703
34738
|
color: (e.vars || e).palette[t].main,
|
|
34704
34739
|
"&:hover": {
|
|
34705
34740
|
backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
|
|
34706
34741
|
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
34707
34742
|
},
|
|
34708
|
-
[`&.${
|
|
34743
|
+
[`&.${BV.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)}` }
|
|
34709
34744
|
},
|
|
34710
|
-
[`&.${
|
|
34745
|
+
[`&.${BV.checked} + .${BV.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
|
|
34711
34746
|
}
|
|
34712
34747
|
}))]
|
|
34713
|
-
}))),
|
|
34748
|
+
}))), WV = k("span", {
|
|
34714
34749
|
name: "MuiSwitch",
|
|
34715
34750
|
slot: "Track"
|
|
34716
34751
|
})(h(({ theme: e }) => ({
|
|
@@ -34723,7 +34758,7 @@ var zV = A("MuiSwitch", [
|
|
|
34723
34758
|
transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
|
|
34724
34759
|
backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
|
|
34725
34760
|
opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
|
|
34726
|
-
}))),
|
|
34761
|
+
}))), GV = k("span", {
|
|
34727
34762
|
name: "MuiSwitch",
|
|
34728
34763
|
slot: "Thumb"
|
|
34729
34764
|
})(h(({ theme: e }) => ({
|
|
@@ -34734,7 +34769,7 @@ var zV = A("MuiSwitch", [
|
|
|
34734
34769
|
width: 20,
|
|
34735
34770
|
height: 20,
|
|
34736
34771
|
borderRadius: "50%"
|
|
34737
|
-
}))),
|
|
34772
|
+
}))), KV = /*#__PURE__*/ j.forwardRef(function(e, t) {
|
|
34738
34773
|
let n = Ue({
|
|
34739
34774
|
props: e,
|
|
34740
34775
|
name: "MuiSwitch"
|
|
@@ -34743,29 +34778,29 @@ var zV = A("MuiSwitch", [
|
|
|
34743
34778
|
color: i,
|
|
34744
34779
|
edge: a,
|
|
34745
34780
|
size: o
|
|
34746
|
-
}, f =
|
|
34781
|
+
}, f = VV(d), p = l.input, m = {
|
|
34747
34782
|
slots: c,
|
|
34748
34783
|
slotProps: l
|
|
34749
34784
|
}, [h, g] = O("root", {
|
|
34750
34785
|
className: be(f.root, r),
|
|
34751
|
-
elementType:
|
|
34786
|
+
elementType: HV,
|
|
34752
34787
|
externalForwardedProps: m,
|
|
34753
34788
|
ownerState: d,
|
|
34754
34789
|
additionalProps: { sx: s }
|
|
34755
34790
|
}), [_, v] = O("thumb", {
|
|
34756
34791
|
className: f.thumb,
|
|
34757
|
-
elementType:
|
|
34792
|
+
elementType: GV,
|
|
34758
34793
|
externalForwardedProps: m,
|
|
34759
34794
|
ownerState: d
|
|
34760
34795
|
}), y = /*#__PURE__*/ M(_, { ...v }), [b, x] = O("track", {
|
|
34761
34796
|
className: f.track,
|
|
34762
|
-
elementType:
|
|
34797
|
+
elementType: WV,
|
|
34763
34798
|
externalForwardedProps: m,
|
|
34764
34799
|
ownerState: d
|
|
34765
34800
|
});
|
|
34766
34801
|
return /*#__PURE__*/ N(h, {
|
|
34767
34802
|
...g,
|
|
34768
|
-
children: [/*#__PURE__*/ M(
|
|
34803
|
+
children: [/*#__PURE__*/ M(UV, {
|
|
34769
34804
|
type: "checkbox",
|
|
34770
34805
|
icon: y,
|
|
34771
34806
|
checkedIcon: y,
|
|
@@ -34786,18 +34821,18 @@ var zV = A("MuiSwitch", [
|
|
|
34786
34821
|
}
|
|
34787
34822
|
}), /*#__PURE__*/ M(b, { ...x })]
|
|
34788
34823
|
});
|
|
34789
|
-
}),
|
|
34824
|
+
}), qV = k(wV)(() => ({ "& .MuiFormControlLabel-label": {
|
|
34790
34825
|
left: "-5px",
|
|
34791
34826
|
position: "relative"
|
|
34792
|
-
} })),
|
|
34827
|
+
} })), JV = k(He)(() => ({ color: `${f.tertiary()} !important` })), YV = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ M(qV, {
|
|
34793
34828
|
value: t,
|
|
34794
|
-
control: /* @__PURE__ */ M(
|
|
34829
|
+
control: /* @__PURE__ */ M(JV, {
|
|
34795
34830
|
checked: n,
|
|
34796
34831
|
onChange: r
|
|
34797
34832
|
}),
|
|
34798
34833
|
label: e
|
|
34799
34834
|
});
|
|
34800
|
-
|
|
34835
|
+
YV.propTypes = {
|
|
34801
34836
|
label: V.default.string,
|
|
34802
34837
|
value: V.default.string,
|
|
34803
34838
|
checked: V.default.bool,
|
|
@@ -34805,7 +34840,7 @@ JV.propTypes = {
|
|
|
34805
34840
|
};
|
|
34806
34841
|
//#endregion
|
|
34807
34842
|
//#region ../../lib-react/config-ui/dist/tabs/index.js
|
|
34808
|
-
var
|
|
34843
|
+
var XV = k(bj)(() => ({})), ZV = class extends ft.Component {
|
|
34809
34844
|
static propTypes = {
|
|
34810
34845
|
className: V.default.string,
|
|
34811
34846
|
contentClassName: V.default.string,
|
|
@@ -34826,7 +34861,7 @@ var YV = k(bj)(() => ({})), XV = class extends ft.Component {
|
|
|
34826
34861
|
indicatorColor: "primary",
|
|
34827
34862
|
value: e,
|
|
34828
34863
|
onChange: this.handleChange,
|
|
34829
|
-
children: ft.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ M(
|
|
34864
|
+
children: ft.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ M(XV, { label: e.props.title }, t) : null)
|
|
34830
34865
|
}), /* @__PURE__ */ M("div", {
|
|
34831
34866
|
className: r,
|
|
34832
34867
|
style: i,
|
|
@@ -34834,7 +34869,7 @@ var YV = k(bj)(() => ({})), XV = class extends ft.Component {
|
|
|
34834
34869
|
})]
|
|
34835
34870
|
});
|
|
34836
34871
|
}
|
|
34837
|
-
},
|
|
34872
|
+
}, QV = k(wV)(({ theme: e, mini: t }) => ({
|
|
34838
34873
|
margin: 0,
|
|
34839
34874
|
marginLeft: 0,
|
|
34840
34875
|
padding: 0,
|
|
@@ -34848,7 +34883,7 @@ var YV = k(bj)(() => ({})), XV = class extends ft.Component {
|
|
|
34848
34883
|
fontSize: e.typography.fontSize - 3
|
|
34849
34884
|
}
|
|
34850
34885
|
}
|
|
34851
|
-
})),
|
|
34886
|
+
})), $V = k(vV)(({ theme: e, mini: t, error: n }) => ({
|
|
34852
34887
|
color: `${f.tertiary()} !important`,
|
|
34853
34888
|
...t && {
|
|
34854
34889
|
margin: 0,
|
|
@@ -34857,9 +34892,9 @@ var YV = k(bj)(() => ({})), XV = class extends ft.Component {
|
|
|
34857
34892
|
height: e.spacing(3)
|
|
34858
34893
|
},
|
|
34859
34894
|
...n && { color: `${e.palette.error.main} !important` }
|
|
34860
|
-
})),
|
|
34895
|
+
})), eH = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ M(QV, {
|
|
34861
34896
|
mini: e,
|
|
34862
|
-
control: /* @__PURE__ */ M(
|
|
34897
|
+
control: /* @__PURE__ */ M($V, {
|
|
34863
34898
|
checked: t,
|
|
34864
34899
|
onChange: n,
|
|
34865
34900
|
value: r,
|
|
@@ -34868,21 +34903,21 @@ var YV = k(bj)(() => ({})), XV = class extends ft.Component {
|
|
|
34868
34903
|
}),
|
|
34869
34904
|
label: i
|
|
34870
34905
|
});
|
|
34871
|
-
|
|
34906
|
+
eH.propTypes = {
|
|
34872
34907
|
mini: V.default.bool,
|
|
34873
34908
|
checked: V.default.bool.isRequired,
|
|
34874
34909
|
onChange: V.default.func.isRequired,
|
|
34875
34910
|
value: V.default.string,
|
|
34876
34911
|
label: V.default.string.isRequired,
|
|
34877
34912
|
error: V.default.bool
|
|
34878
|
-
},
|
|
34913
|
+
}, eH.defaultProps = {
|
|
34879
34914
|
value: "",
|
|
34880
34915
|
mini: !1,
|
|
34881
34916
|
error: !1
|
|
34882
34917
|
};
|
|
34883
34918
|
//#endregion
|
|
34884
34919
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
34885
|
-
var
|
|
34920
|
+
var tH = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), nH = k(eA)(({ theme: e }) => ({
|
|
34886
34921
|
marginRight: e.spacing(1),
|
|
34887
34922
|
"& .MuiInputLabel-root": {
|
|
34888
34923
|
width: "auto",
|
|
@@ -34904,11 +34939,11 @@ var eH = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), tH = k(eA)(({
|
|
|
34904
34939
|
minHeight: "auto",
|
|
34905
34940
|
padding: "6px 0 7px"
|
|
34906
34941
|
}
|
|
34907
|
-
})),
|
|
34942
|
+
})), rH = (e, t) => {
|
|
34908
34943
|
if (!lt(e) && !lt(t)) return 0;
|
|
34909
34944
|
if (!lt(e) && lt(t)) return t;
|
|
34910
34945
|
if (lt(e)) return e;
|
|
34911
|
-
},
|
|
34946
|
+
}, iH = class extends ft.Component {
|
|
34912
34947
|
static propTypes = {
|
|
34913
34948
|
disabled: V.default.bool,
|
|
34914
34949
|
className: V.default.string,
|
|
@@ -34934,13 +34969,13 @@ var eH = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), tH = k(eA)(({
|
|
|
34934
34969
|
this.setState({ value: t });
|
|
34935
34970
|
}
|
|
34936
34971
|
clamp(e, t = this.props.min, n = this.props.max) {
|
|
34937
|
-
return lt(e) ? (lt(n) && (e = Math.min(e, n)), lt(t) && (e = Math.max(e, t)), e) :
|
|
34972
|
+
return lt(e) ? (lt(n) && (e = Math.min(e, n)), lt(t) && (e = Math.max(e, t)), e) : rH(t, n);
|
|
34938
34973
|
}
|
|
34939
34974
|
onBlur = (e) => {
|
|
34940
34975
|
let t = e.target.value, n = parseFloat(t);
|
|
34941
|
-
|
|
34976
|
+
tH("rawNumber: ", n);
|
|
34942
34977
|
let r = this.clamp(n);
|
|
34943
|
-
|
|
34978
|
+
tH("number: ", r), r !== this.state.value && (tH("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
34944
34979
|
this.props.onChange(e, r);
|
|
34945
34980
|
}));
|
|
34946
34981
|
};
|
|
@@ -34960,7 +34995,7 @@ var eH = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), tH = k(eA)(({
|
|
|
34960
34995
|
};
|
|
34961
34996
|
render() {
|
|
34962
34997
|
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();
|
|
34963
|
-
return /* @__PURE__ */ M(
|
|
34998
|
+
return /* @__PURE__ */ M(nH, {
|
|
34964
34999
|
variant: s ? "filled" : l || "standard",
|
|
34965
35000
|
inputRef: (e) => {
|
|
34966
35001
|
this.inputRef = e;
|
|
@@ -34979,7 +35014,7 @@ var eH = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), tH = k(eA)(({
|
|
|
34979
35014
|
type: "number",
|
|
34980
35015
|
className: e,
|
|
34981
35016
|
slotProps: { input: {
|
|
34982
|
-
endAdornment: r && /* @__PURE__ */ M(
|
|
35017
|
+
endAdornment: r && /* @__PURE__ */ M(FV, {
|
|
34983
35018
|
position: "end",
|
|
34984
35019
|
children: r
|
|
34985
35020
|
}),
|
|
@@ -34992,22 +35027,22 @@ var eH = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), tH = k(eA)(({
|
|
|
34992
35027
|
margin: "normal"
|
|
34993
35028
|
});
|
|
34994
35029
|
}
|
|
34995
|
-
},
|
|
35030
|
+
}, aH = w(/*#__PURE__*/ M("path", { d: "M19 13H5v-2h14z" }), "Remove"), oH = w(/*#__PURE__*/ M("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
|
|
34996
35031
|
//#endregion
|
|
34997
35032
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
34998
|
-
function
|
|
35033
|
+
function sH(e) {
|
|
34999
35034
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
35000
35035
|
}
|
|
35001
|
-
function
|
|
35002
|
-
return !e ||
|
|
35036
|
+
function cH(e, t) {
|
|
35037
|
+
return !e || sH(e) ? e : sH(e.default) ? e.default : t && sH(e[t]) ? e[t] : t && sH(e[t]?.default) ? e[t].default : e;
|
|
35003
35038
|
}
|
|
35004
|
-
var
|
|
35039
|
+
var lH = cH(_e, "InputContainer") || cH(fH.InputContainer, "InputContainer"), uH = le, dH = uH.default, fH = dH && typeof dH == "object" ? dH : uH, pH = k("div")(({ theme: e, direction: t }) => ({
|
|
35005
35040
|
display: "flex",
|
|
35006
35041
|
flexWrap: "wrap",
|
|
35007
35042
|
paddingLeft: 0,
|
|
35008
35043
|
marginTop: e.spacing(1),
|
|
35009
35044
|
...t === "vertical" && { flexDirection: "column" }
|
|
35010
|
-
})),
|
|
35045
|
+
})), mH = class extends ft.Component {
|
|
35011
35046
|
static propTypes = {
|
|
35012
35047
|
header: V.default.string.isRequired,
|
|
35013
35048
|
className: V.default.string,
|
|
@@ -35024,11 +35059,11 @@ var cH = sH(_e, "InputContainer") || sH(dH.InputContainer, "InputContainer"), lH
|
|
|
35024
35059
|
let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
|
|
35025
35060
|
label: e,
|
|
35026
35061
|
value: e
|
|
35027
|
-
} : e), s = n ||
|
|
35028
|
-
return /* @__PURE__ */ M(
|
|
35062
|
+
} : e), s = n || YV;
|
|
35063
|
+
return /* @__PURE__ */ M(lH, {
|
|
35029
35064
|
label: e,
|
|
35030
35065
|
className: t,
|
|
35031
|
-
children: /* @__PURE__ */ M(
|
|
35066
|
+
children: /* @__PURE__ */ M(pH, {
|
|
35032
35067
|
direction: a,
|
|
35033
35068
|
children: o.map((e, t) => /* @__PURE__ */ M(s, {
|
|
35034
35069
|
value: e.value,
|
|
@@ -35039,7 +35074,7 @@ var cH = sH(_e, "InputContainer") || sH(dH.InputContainer, "InputContainer"), lH
|
|
|
35039
35074
|
})
|
|
35040
35075
|
});
|
|
35041
35076
|
}
|
|
35042
|
-
},
|
|
35077
|
+
}, hH = V.default.shape({
|
|
35043
35078
|
label: V.default.string,
|
|
35044
35079
|
value: V.default.string
|
|
35045
35080
|
});
|
|
@@ -35048,14 +35083,14 @@ var cH = sH(_e, "InputContainer") || sH(dH.InputContainer, "InputContainer"), lH
|
|
|
35048
35083
|
header: V.default.string.isRequired,
|
|
35049
35084
|
value: V.default.string.isRequired,
|
|
35050
35085
|
onChange: V.default.func.isRequired,
|
|
35051
|
-
one: V.default.oneOfType([
|
|
35052
|
-
two: V.default.oneOfType([
|
|
35086
|
+
one: V.default.oneOfType([hH, V.default.string]),
|
|
35087
|
+
two: V.default.oneOfType([hH, V.default.string]),
|
|
35053
35088
|
className: V.default.string,
|
|
35054
35089
|
customLabel: V.default.func
|
|
35055
35090
|
};
|
|
35056
35091
|
render() {
|
|
35057
35092
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
35058
|
-
return /* @__PURE__ */ M(
|
|
35093
|
+
return /* @__PURE__ */ M(mH, {
|
|
35059
35094
|
customLabel: i,
|
|
35060
35095
|
header: n,
|
|
35061
35096
|
className: r,
|
|
@@ -35067,21 +35102,21 @@ var cH = sH(_e, "InputContainer") || sH(dH.InputContainer, "InputContainer"), lH
|
|
|
35067
35102
|
});
|
|
35068
35103
|
//#endregion
|
|
35069
35104
|
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
35070
|
-
var
|
|
35105
|
+
var gH = Object.defineProperty, _H = (e, t) => {
|
|
35071
35106
|
let n = {};
|
|
35072
|
-
for (var r in e)
|
|
35107
|
+
for (var r in e) gH(n, r, {
|
|
35073
35108
|
get: e[r],
|
|
35074
35109
|
enumerable: !0
|
|
35075
35110
|
});
|
|
35076
|
-
return t ||
|
|
35077
|
-
},
|
|
35111
|
+
return t || gH(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
35112
|
+
}, vH = k("div")(() => ({
|
|
35078
35113
|
display: "flex",
|
|
35079
35114
|
flexDirection: "column",
|
|
35080
35115
|
position: "relative"
|
|
35081
|
-
})),
|
|
35116
|
+
})), yH = k("div")(() => ({
|
|
35082
35117
|
display: "flex",
|
|
35083
35118
|
justifyContent: "space-between"
|
|
35084
|
-
})),
|
|
35119
|
+
})), bH = k("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), xH = k("div")(() => ({ flex: "1" })), SH = k("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), CH = class extends ft.Component {
|
|
35085
35120
|
static propTypes = {
|
|
35086
35121
|
mode: V.default.oneOf(["tabbed", "inline"]),
|
|
35087
35122
|
secondary: V.default.oneOfType([V.default.arrayOf(V.default.node), V.default.node]),
|
|
@@ -35099,7 +35134,7 @@ var hH = Object.defineProperty, gH = (e, t) => {
|
|
|
35099
35134
|
} catch (e) {
|
|
35100
35135
|
console.log(e.toString());
|
|
35101
35136
|
}
|
|
35102
|
-
return /* @__PURE__ */ N(
|
|
35137
|
+
return /* @__PURE__ */ N(vH, {
|
|
35103
35138
|
style: {
|
|
35104
35139
|
minHeight: i,
|
|
35105
35140
|
minWidth: a,
|
|
@@ -35107,28 +35142,28 @@ var hH = Object.defineProperty, gH = (e, t) => {
|
|
|
35107
35142
|
maxWidth: s
|
|
35108
35143
|
},
|
|
35109
35144
|
children: [
|
|
35110
|
-
e === "inline" && /* @__PURE__ */ N(
|
|
35145
|
+
e === "inline" && /* @__PURE__ */ N(yH, { children: [/* @__PURE__ */ M(xH, {
|
|
35111
35146
|
className: "design-container",
|
|
35112
35147
|
children: n
|
|
35113
|
-
}), l && /* @__PURE__ */ M(
|
|
35148
|
+
}), l && /* @__PURE__ */ M(SH, {
|
|
35114
35149
|
className: "settings-container",
|
|
35115
35150
|
children: t
|
|
35116
35151
|
})] }),
|
|
35117
|
-
e === "tabbed" && l && /* @__PURE__ */ N(
|
|
35152
|
+
e === "tabbed" && l && /* @__PURE__ */ N(ZV, {
|
|
35118
35153
|
onChange: this.onTabsChange,
|
|
35119
35154
|
contentClassName: "content-container",
|
|
35120
35155
|
indicatorColor: "primary",
|
|
35121
|
-
children: [/* @__PURE__ */ M(
|
|
35156
|
+
children: [/* @__PURE__ */ M(bH, {
|
|
35122
35157
|
title: "Design",
|
|
35123
35158
|
className: "design-container",
|
|
35124
35159
|
children: n
|
|
35125
|
-
}), /* @__PURE__ */ M(
|
|
35160
|
+
}), /* @__PURE__ */ M(bH, {
|
|
35126
35161
|
title: "Settings",
|
|
35127
35162
|
className: "settings-container",
|
|
35128
35163
|
children: t
|
|
35129
35164
|
})]
|
|
35130
35165
|
}),
|
|
35131
|
-
e === "tabbed" && !l && /* @__PURE__ */ M(
|
|
35166
|
+
e === "tabbed" && !l && /* @__PURE__ */ M(bH, {
|
|
35132
35167
|
className: "design-container",
|
|
35133
35168
|
children: n
|
|
35134
35169
|
})
|
|
@@ -35138,18 +35173,18 @@ var hH = Object.defineProperty, gH = (e, t) => {
|
|
|
35138
35173
|
};
|
|
35139
35174
|
//#endregion
|
|
35140
35175
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
35141
|
-
function
|
|
35142
|
-
return
|
|
35176
|
+
function wH() {
|
|
35177
|
+
return wH = Object.assign ? Object.assign.bind() : function(e) {
|
|
35143
35178
|
for (var t = 1; t < arguments.length; t++) {
|
|
35144
35179
|
var n = arguments[t];
|
|
35145
35180
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
35146
35181
|
}
|
|
35147
35182
|
return e;
|
|
35148
|
-
},
|
|
35183
|
+
}, wH.apply(null, arguments);
|
|
35149
35184
|
}
|
|
35150
35185
|
//#endregion
|
|
35151
35186
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
35152
|
-
function
|
|
35187
|
+
function TH(e, t) {
|
|
35153
35188
|
if (e == null) return {};
|
|
35154
35189
|
var n = {};
|
|
35155
35190
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -35160,19 +35195,19 @@ function wH(e, t) {
|
|
|
35160
35195
|
}
|
|
35161
35196
|
//#endregion
|
|
35162
35197
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
35163
|
-
function
|
|
35164
|
-
return
|
|
35198
|
+
function EH(e, t) {
|
|
35199
|
+
return EH = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
35165
35200
|
return e.__proto__ = t, e;
|
|
35166
|
-
},
|
|
35201
|
+
}, EH(e, t);
|
|
35167
35202
|
}
|
|
35168
35203
|
//#endregion
|
|
35169
35204
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
35170
|
-
function
|
|
35171
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
35205
|
+
function DH(e, t) {
|
|
35206
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, EH(e, t);
|
|
35172
35207
|
}
|
|
35173
35208
|
//#endregion
|
|
35174
35209
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
35175
|
-
var
|
|
35210
|
+
var OH = (function() {
|
|
35176
35211
|
if (typeof Map < "u") return Map;
|
|
35177
35212
|
function e(e, t) {
|
|
35178
35213
|
var n = -1;
|
|
@@ -35211,34 +35246,34 @@ var DH = (function() {
|
|
|
35211
35246
|
}
|
|
35212
35247
|
}, t;
|
|
35213
35248
|
}();
|
|
35214
|
-
})(),
|
|
35249
|
+
})(), kH = typeof window < "u" && typeof document < "u" && window.document === document, AH = (function() {
|
|
35215
35250
|
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")();
|
|
35216
|
-
})(),
|
|
35217
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
35251
|
+
})(), jH = (function() {
|
|
35252
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(AH) : function(e) {
|
|
35218
35253
|
return setTimeout(function() {
|
|
35219
35254
|
return e(Date.now());
|
|
35220
35255
|
}, 1e3 / 60);
|
|
35221
35256
|
};
|
|
35222
|
-
})(),
|
|
35223
|
-
function
|
|
35257
|
+
})(), MH = 2;
|
|
35258
|
+
function NH(e, t) {
|
|
35224
35259
|
var n = !1, r = !1, i = 0;
|
|
35225
35260
|
function a() {
|
|
35226
35261
|
n && (n = !1, e()), r && s();
|
|
35227
35262
|
}
|
|
35228
35263
|
function o() {
|
|
35229
|
-
|
|
35264
|
+
jH(a);
|
|
35230
35265
|
}
|
|
35231
35266
|
function s() {
|
|
35232
35267
|
var e = Date.now();
|
|
35233
35268
|
if (n) {
|
|
35234
|
-
if (e - i <
|
|
35269
|
+
if (e - i < MH) return;
|
|
35235
35270
|
r = !0;
|
|
35236
35271
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
35237
35272
|
i = e;
|
|
35238
35273
|
}
|
|
35239
35274
|
return s;
|
|
35240
35275
|
}
|
|
35241
|
-
var
|
|
35276
|
+
var PH = 20, FH = [
|
|
35242
35277
|
"top",
|
|
35243
35278
|
"right",
|
|
35244
35279
|
"bottom",
|
|
@@ -35247,9 +35282,9 @@ var NH = 20, PH = [
|
|
|
35247
35282
|
"height",
|
|
35248
35283
|
"size",
|
|
35249
35284
|
"weight"
|
|
35250
|
-
],
|
|
35285
|
+
], IH = typeof MutationObserver < "u", LH = function() {
|
|
35251
35286
|
function e() {
|
|
35252
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
35287
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = NH(this.refresh.bind(this), PH);
|
|
35253
35288
|
}
|
|
35254
35289
|
return e.prototype.addObserver = function(e) {
|
|
35255
35290
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -35266,23 +35301,23 @@ var NH = 20, PH = [
|
|
|
35266
35301
|
return e.broadcastActive();
|
|
35267
35302
|
}), e.length > 0;
|
|
35268
35303
|
}, e.prototype.connect_ = function() {
|
|
35269
|
-
!
|
|
35304
|
+
!kH || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), IH ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
35270
35305
|
attributes: !0,
|
|
35271
35306
|
childList: !0,
|
|
35272
35307
|
characterData: !0,
|
|
35273
35308
|
subtree: !0
|
|
35274
35309
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
35275
35310
|
}, e.prototype.disconnect_ = function() {
|
|
35276
|
-
!
|
|
35311
|
+
!kH || !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);
|
|
35277
35312
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
35278
35313
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
35279
|
-
|
|
35314
|
+
FH.some(function(e) {
|
|
35280
35315
|
return !!~n.indexOf(e);
|
|
35281
35316
|
}) && this.refresh();
|
|
35282
35317
|
}, e.getInstance = function() {
|
|
35283
35318
|
return this.instance_ ||= new e(), this.instance_;
|
|
35284
35319
|
}, e.instance_ = null, e;
|
|
35285
|
-
}(),
|
|
35320
|
+
}(), RH = (function(e, t) {
|
|
35286
35321
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
35287
35322
|
var i = r[n];
|
|
35288
35323
|
Object.defineProperty(e, i, {
|
|
@@ -35293,19 +35328,19 @@ var NH = 20, PH = [
|
|
|
35293
35328
|
});
|
|
35294
35329
|
}
|
|
35295
35330
|
return e;
|
|
35296
|
-
}),
|
|
35297
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
35298
|
-
}),
|
|
35299
|
-
function
|
|
35331
|
+
}), zH = (function(e) {
|
|
35332
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || AH;
|
|
35333
|
+
}), BH = XH(0, 0, 0, 0);
|
|
35334
|
+
function VH(e) {
|
|
35300
35335
|
return parseFloat(e) || 0;
|
|
35301
35336
|
}
|
|
35302
|
-
function
|
|
35337
|
+
function HH(e) {
|
|
35303
35338
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
35304
35339
|
var r = e["border-" + n + "-width"];
|
|
35305
|
-
return t +
|
|
35340
|
+
return t + VH(r);
|
|
35306
35341
|
}, 0);
|
|
35307
35342
|
}
|
|
35308
|
-
function
|
|
35343
|
+
function UH(e) {
|
|
35309
35344
|
for (var t = [
|
|
35310
35345
|
"top",
|
|
35311
35346
|
"right",
|
|
@@ -35313,40 +35348,40 @@ function HH(e) {
|
|
|
35313
35348
|
"left"
|
|
35314
35349
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
35315
35350
|
var a = i[r], o = e["padding-" + a];
|
|
35316
|
-
n[a] =
|
|
35351
|
+
n[a] = VH(o);
|
|
35317
35352
|
}
|
|
35318
35353
|
return n;
|
|
35319
35354
|
}
|
|
35320
|
-
function
|
|
35355
|
+
function WH(e) {
|
|
35321
35356
|
var t = e.getBBox();
|
|
35322
|
-
return
|
|
35357
|
+
return XH(0, 0, t.width, t.height);
|
|
35323
35358
|
}
|
|
35324
|
-
function
|
|
35359
|
+
function GH(e) {
|
|
35325
35360
|
var t = e.clientWidth, n = e.clientHeight;
|
|
35326
|
-
if (!t && !n) return
|
|
35327
|
-
var r =
|
|
35328
|
-
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -=
|
|
35361
|
+
if (!t && !n) return BH;
|
|
35362
|
+
var r = zH(e).getComputedStyle(e), i = UH(r), a = i.left + i.right, o = i.top + i.bottom, s = VH(r.width), c = VH(r.height);
|
|
35363
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= HH(r, "left", "right") + a), Math.round(c + o) !== n && (c -= HH(r, "top", "bottom") + o)), !qH(e)) {
|
|
35329
35364
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
35330
35365
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
35331
35366
|
}
|
|
35332
|
-
return
|
|
35367
|
+
return XH(i.left, i.top, s, c);
|
|
35333
35368
|
}
|
|
35334
|
-
var
|
|
35369
|
+
var KH = (function() {
|
|
35335
35370
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
35336
|
-
return e instanceof
|
|
35371
|
+
return e instanceof zH(e).SVGGraphicsElement;
|
|
35337
35372
|
} : function(e) {
|
|
35338
|
-
return e instanceof
|
|
35373
|
+
return e instanceof zH(e).SVGElement && typeof e.getBBox == "function";
|
|
35339
35374
|
};
|
|
35340
35375
|
})();
|
|
35341
|
-
function KH(e) {
|
|
35342
|
-
return e === RH(e).document.documentElement;
|
|
35343
|
-
}
|
|
35344
35376
|
function qH(e) {
|
|
35345
|
-
return
|
|
35377
|
+
return e === zH(e).document.documentElement;
|
|
35346
35378
|
}
|
|
35347
35379
|
function JH(e) {
|
|
35380
|
+
return kH ? KH(e) ? WH(e) : GH(e) : BH;
|
|
35381
|
+
}
|
|
35382
|
+
function YH(e) {
|
|
35348
35383
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
35349
|
-
return
|
|
35384
|
+
return RH(a, {
|
|
35350
35385
|
x: t,
|
|
35351
35386
|
y: n,
|
|
35352
35387
|
width: r,
|
|
@@ -35357,7 +35392,7 @@ function JH(e) {
|
|
|
35357
35392
|
left: t
|
|
35358
35393
|
}), a;
|
|
35359
35394
|
}
|
|
35360
|
-
function
|
|
35395
|
+
function XH(e, t, n, r) {
|
|
35361
35396
|
return {
|
|
35362
35397
|
x: e,
|
|
35363
35398
|
y: t,
|
|
@@ -35365,42 +35400,42 @@ function YH(e, t, n, r) {
|
|
|
35365
35400
|
height: r
|
|
35366
35401
|
};
|
|
35367
35402
|
}
|
|
35368
|
-
var
|
|
35403
|
+
var ZH = function() {
|
|
35369
35404
|
function e(e) {
|
|
35370
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
35405
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = XH(0, 0, 0, 0), this.target = e;
|
|
35371
35406
|
}
|
|
35372
35407
|
return e.prototype.isActive = function() {
|
|
35373
|
-
var e =
|
|
35408
|
+
var e = JH(this.target);
|
|
35374
35409
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
35375
35410
|
}, e.prototype.broadcastRect = function() {
|
|
35376
35411
|
var e = this.contentRect_;
|
|
35377
35412
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
35378
35413
|
}, e;
|
|
35379
|
-
}(),
|
|
35414
|
+
}(), QH = function() {
|
|
35380
35415
|
function e(e, t) {
|
|
35381
|
-
var n =
|
|
35382
|
-
|
|
35416
|
+
var n = YH(t);
|
|
35417
|
+
RH(this, {
|
|
35383
35418
|
target: e,
|
|
35384
35419
|
contentRect: n
|
|
35385
35420
|
});
|
|
35386
35421
|
}
|
|
35387
35422
|
return e;
|
|
35388
|
-
}(),
|
|
35423
|
+
}(), $H = function() {
|
|
35389
35424
|
function e(e, t, n) {
|
|
35390
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
35425
|
+
if (this.activeObservations_ = [], this.observations_ = new OH(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
35391
35426
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
35392
35427
|
}
|
|
35393
35428
|
return e.prototype.observe = function(e) {
|
|
35394
35429
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
35395
35430
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
35396
|
-
if (!(e instanceof
|
|
35431
|
+
if (!(e instanceof zH(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
35397
35432
|
var t = this.observations_;
|
|
35398
|
-
t.has(e) || (t.set(e, new
|
|
35433
|
+
t.has(e) || (t.set(e, new ZH(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
35399
35434
|
}
|
|
35400
35435
|
}, e.prototype.unobserve = function(e) {
|
|
35401
35436
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
35402
35437
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
35403
|
-
if (!(e instanceof
|
|
35438
|
+
if (!(e instanceof zH(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
35404
35439
|
var t = this.observations_;
|
|
35405
35440
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
35406
35441
|
}
|
|
@@ -35414,7 +35449,7 @@ var XH = function() {
|
|
|
35414
35449
|
}, e.prototype.broadcastActive = function() {
|
|
35415
35450
|
if (this.hasActive()) {
|
|
35416
35451
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
35417
|
-
return new
|
|
35452
|
+
return new QH(e.target, e.broadcastRect());
|
|
35418
35453
|
});
|
|
35419
35454
|
this.callback_.call(e, t, e), this.clearActive();
|
|
35420
35455
|
}
|
|
@@ -35423,12 +35458,12 @@ var XH = function() {
|
|
|
35423
35458
|
}, e.prototype.hasActive = function() {
|
|
35424
35459
|
return this.activeObservations_.length > 0;
|
|
35425
35460
|
}, e;
|
|
35426
|
-
}(),
|
|
35461
|
+
}(), eU = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new OH(), tU = function() {
|
|
35427
35462
|
function e(t) {
|
|
35428
35463
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
35429
35464
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
35430
|
-
var n = new
|
|
35431
|
-
|
|
35465
|
+
var n = new $H(t, LH.getInstance(), this);
|
|
35466
|
+
eU.set(this, n);
|
|
35432
35467
|
}
|
|
35433
35468
|
return e;
|
|
35434
35469
|
}();
|
|
@@ -35437,27 +35472,27 @@ var XH = function() {
|
|
|
35437
35472
|
"unobserve",
|
|
35438
35473
|
"disconnect"
|
|
35439
35474
|
].forEach(function(e) {
|
|
35440
|
-
|
|
35475
|
+
tU.prototype[e] = function() {
|
|
35441
35476
|
var t;
|
|
35442
|
-
return (t =
|
|
35477
|
+
return (t = eU.get(this))[e].apply(t, arguments);
|
|
35443
35478
|
};
|
|
35444
35479
|
});
|
|
35445
|
-
var
|
|
35446
|
-
return
|
|
35447
|
-
})(),
|
|
35480
|
+
var nU = (function() {
|
|
35481
|
+
return AH.ResizeObserver === void 0 ? tU : AH.ResizeObserver;
|
|
35482
|
+
})(), rU = [
|
|
35448
35483
|
"client",
|
|
35449
35484
|
"offset",
|
|
35450
35485
|
"scroll",
|
|
35451
35486
|
"bounds",
|
|
35452
35487
|
"margin"
|
|
35453
35488
|
];
|
|
35454
|
-
function
|
|
35489
|
+
function iU(e) {
|
|
35455
35490
|
var t = [];
|
|
35456
|
-
return
|
|
35491
|
+
return rU.forEach(function(n) {
|
|
35457
35492
|
e[n] && t.push(n);
|
|
35458
35493
|
}), t;
|
|
35459
35494
|
}
|
|
35460
|
-
function
|
|
35495
|
+
function aU(e, t) {
|
|
35461
35496
|
var n = {};
|
|
35462
35497
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
35463
35498
|
top: e.clientTop,
|
|
@@ -35496,14 +35531,14 @@ function iU(e, t) {
|
|
|
35496
35531
|
}
|
|
35497
35532
|
return n;
|
|
35498
35533
|
}
|
|
35499
|
-
function
|
|
35534
|
+
function oU(e) {
|
|
35500
35535
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
35501
35536
|
}
|
|
35502
|
-
function
|
|
35537
|
+
function sU(e) {
|
|
35503
35538
|
return function(t) {
|
|
35504
35539
|
var n, r;
|
|
35505
35540
|
return r = n = /*#__PURE__*/ function(n) {
|
|
35506
|
-
|
|
35541
|
+
DH(r, n);
|
|
35507
35542
|
function r() {
|
|
35508
35543
|
var t, r = [...arguments];
|
|
35509
35544
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -35514,24 +35549,24 @@ function oU(e) {
|
|
|
35514
35549
|
bounds: {},
|
|
35515
35550
|
margin: {}
|
|
35516
35551
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
35517
|
-
var r =
|
|
35552
|
+
var r = aU(t._node, e || iU(t.props));
|
|
35518
35553
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
35519
35554
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
35520
35555
|
});
|
|
35521
35556
|
}, t._handleRef = function(e) {
|
|
35522
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
35557
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = oU(t._node);
|
|
35523
35558
|
var n = t.props.innerRef;
|
|
35524
35559
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
35525
35560
|
}, t;
|
|
35526
35561
|
}
|
|
35527
35562
|
var i = r.prototype;
|
|
35528
35563
|
return i.componentDidMount = function() {
|
|
35529
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
35564
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new nU(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(aU(this._node, e || iU(this.props))));
|
|
35530
35565
|
}, i.componentWillUnmount = function() {
|
|
35531
35566
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
35532
35567
|
}, i.render = function() {
|
|
35533
35568
|
var e = this.props;
|
|
35534
|
-
return e.innerRef, e.onResize, ht(t,
|
|
35569
|
+
return e.innerRef, e.onResize, ht(t, wH({}, TH(e, ["innerRef", "onResize"]), {
|
|
35535
35570
|
measureRef: this._handleRef,
|
|
35536
35571
|
measure: this.measure,
|
|
35537
35572
|
contentRect: this.state.contentRect
|
|
@@ -35548,7 +35583,7 @@ function oU(e) {
|
|
|
35548
35583
|
}, r;
|
|
35549
35584
|
};
|
|
35550
35585
|
}
|
|
35551
|
-
var
|
|
35586
|
+
var cU = sU()(function(e) {
|
|
35552
35587
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
35553
35588
|
return i({
|
|
35554
35589
|
measure: t,
|
|
@@ -35556,10 +35591,10 @@ var sU = oU()(function(e) {
|
|
|
35556
35591
|
contentRect: r
|
|
35557
35592
|
});
|
|
35558
35593
|
});
|
|
35559
|
-
|
|
35594
|
+
cU.displayName = "Measure", cU.propTypes.children = V.default.func;
|
|
35560
35595
|
//#endregion
|
|
35561
35596
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
35562
|
-
var
|
|
35597
|
+
var lU = k("div")(() => ({
|
|
35563
35598
|
backgroundColor: f.white(),
|
|
35564
35599
|
border: `2px solid ${f.border()}`,
|
|
35565
35600
|
display: "flex",
|
|
@@ -35569,7 +35604,7 @@ var cU = k("div")(() => ({
|
|
|
35569
35604
|
maxWidth: "300px",
|
|
35570
35605
|
padding: "20px 4px 4px 20px",
|
|
35571
35606
|
zIndex: 99
|
|
35572
|
-
})),
|
|
35607
|
+
})), uU = class extends ft.Component {
|
|
35573
35608
|
static propTypes = {
|
|
35574
35609
|
className: V.default.string,
|
|
35575
35610
|
children: V.default.oneOfType([V.default.arrayOf(V.default.node), V.default.node]).isRequired
|
|
@@ -35577,19 +35612,19 @@ var cU = k("div")(() => ({
|
|
|
35577
35612
|
static defaultProps = {};
|
|
35578
35613
|
render() {
|
|
35579
35614
|
let { className: e, children: t } = this.props;
|
|
35580
|
-
return /* @__PURE__ */ M(
|
|
35615
|
+
return /* @__PURE__ */ M(lU, {
|
|
35581
35616
|
className: e,
|
|
35582
35617
|
children: t
|
|
35583
35618
|
});
|
|
35584
35619
|
}
|
|
35585
|
-
},
|
|
35620
|
+
}, dU = ke({
|
|
35586
35621
|
typography: { fontFamily: "inherit" },
|
|
35587
35622
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
35588
35623
|
backgroundColor: "#e0e0e0",
|
|
35589
35624
|
color: "#000000",
|
|
35590
35625
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
35591
35626
|
} } } }
|
|
35592
|
-
}),
|
|
35627
|
+
}), fU = class extends ft.Component {
|
|
35593
35628
|
static propTypes = {
|
|
35594
35629
|
children: V.default.oneOfType([
|
|
35595
35630
|
V.default.string,
|
|
@@ -35622,19 +35657,19 @@ var cU = k("div")(() => ({
|
|
|
35622
35657
|
return /* @__PURE__ */ M(Ze, {
|
|
35623
35658
|
injectFirst: !0,
|
|
35624
35659
|
children: /* @__PURE__ */ M(ze, {
|
|
35625
|
-
theme:
|
|
35626
|
-
children: /* @__PURE__ */ M(
|
|
35660
|
+
theme: dU,
|
|
35661
|
+
children: /* @__PURE__ */ M(cU, {
|
|
35627
35662
|
bounds: !0,
|
|
35628
35663
|
onResize: this.onResize,
|
|
35629
35664
|
children: ({ measureRef: e }) => {
|
|
35630
|
-
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ M(
|
|
35665
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ M(uU, {
|
|
35631
35666
|
className: "settings-box",
|
|
35632
35667
|
children: n
|
|
35633
35668
|
}) : n;
|
|
35634
35669
|
return /* @__PURE__ */ N("div", {
|
|
35635
35670
|
ref: e,
|
|
35636
35671
|
className: "main-container extraCSSRules",
|
|
35637
|
-
children: [a?.rules ? /* @__PURE__ */ M("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ M(
|
|
35672
|
+
children: [a?.rules ? /* @__PURE__ */ M("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ M(CH, {
|
|
35638
35673
|
mode: o,
|
|
35639
35674
|
secondary: s,
|
|
35640
35675
|
dimensions: i,
|
|
@@ -35646,27 +35681,27 @@ var cU = k("div")(() => ({
|
|
|
35646
35681
|
})
|
|
35647
35682
|
});
|
|
35648
35683
|
}
|
|
35649
|
-
},
|
|
35650
|
-
ConfigLayout: () =>
|
|
35651
|
-
LayoutContents: () =>
|
|
35652
|
-
}),
|
|
35684
|
+
}, pU = sU("bounds")(fU), mU = /* @__PURE__ */ _H({
|
|
35685
|
+
ConfigLayout: () => pU,
|
|
35686
|
+
LayoutContents: () => CH
|
|
35687
|
+
}), hU = k("div")(() => ({
|
|
35653
35688
|
display: "flex",
|
|
35654
35689
|
width: "100%",
|
|
35655
35690
|
justifyContent: "space-between"
|
|
35656
|
-
})),
|
|
35691
|
+
})), gU = k(xe)(({ theme: e }) => ({
|
|
35657
35692
|
color: "rgba(0, 0, 0, 0.89)",
|
|
35658
35693
|
fontSize: e.typography.fontSize,
|
|
35659
35694
|
paddingTop: e.spacing(2)
|
|
35660
|
-
})),
|
|
35695
|
+
})), _U = k(KV)(({ checked: e }) => ({
|
|
35661
35696
|
"&.Mui-checked .MuiSwitch-thumb": { color: `${f.tertiary()} !important` },
|
|
35662
35697
|
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${f.tertiaryLight()} !important` },
|
|
35663
35698
|
"& .MuiSwitch-track": { backgroundColor: e ? `${f.tertiaryLight()} !important` : void 0 }
|
|
35664
|
-
})),
|
|
35699
|
+
})), vU = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ N(hU, { children: [/* @__PURE__ */ M(gU, { children: n }), /* @__PURE__ */ M(_U, {
|
|
35665
35700
|
checked: e,
|
|
35666
35701
|
disabled: t,
|
|
35667
35702
|
onChange: (e) => r(e.target.checked)
|
|
35668
35703
|
})] });
|
|
35669
|
-
|
|
35704
|
+
vU.propTypes = {
|
|
35670
35705
|
checked: V.default.bool,
|
|
35671
35706
|
disabled: V.default.bool,
|
|
35672
35707
|
label: V.default.string.isRequired,
|
|
@@ -35674,20 +35709,20 @@ _U.propTypes = {
|
|
|
35674
35709
|
};
|
|
35675
35710
|
//#endregion
|
|
35676
35711
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
35677
|
-
var
|
|
35712
|
+
var yU = k(wV)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
35678
35713
|
color: "rgba(0, 0, 0, 0.89)",
|
|
35679
35714
|
fontSize: e.typography.fontSize - 2,
|
|
35680
35715
|
left: "-5px",
|
|
35681
35716
|
position: "relative"
|
|
35682
|
-
} })),
|
|
35717
|
+
} })), bU = k(He)(() => ({ color: `${f.tertiary()} !important` })), xU = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ M(yU, {
|
|
35683
35718
|
value: t,
|
|
35684
|
-
control: /* @__PURE__ */ M(
|
|
35719
|
+
control: /* @__PURE__ */ M(bU, {
|
|
35685
35720
|
checked: n,
|
|
35686
35721
|
onChange: r
|
|
35687
35722
|
}),
|
|
35688
35723
|
label: e
|
|
35689
35724
|
});
|
|
35690
|
-
|
|
35725
|
+
xU.propTypes = {
|
|
35691
35726
|
label: V.default.string,
|
|
35692
35727
|
value: V.default.string,
|
|
35693
35728
|
checked: V.default.bool,
|
|
@@ -35695,26 +35730,26 @@ bU.propTypes = {
|
|
|
35695
35730
|
};
|
|
35696
35731
|
//#endregion
|
|
35697
35732
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
35698
|
-
var
|
|
35733
|
+
var SU = (0, Lt.default)("pie-lib:config-ui:settings:panel"), CU = {
|
|
35699
35734
|
label: V.default.string,
|
|
35700
35735
|
value: V.default.string
|
|
35701
|
-
},
|
|
35736
|
+
}, wU = {
|
|
35702
35737
|
label: V.default.string,
|
|
35703
35738
|
value: V.default.string,
|
|
35704
35739
|
onChange: V.default.func
|
|
35705
|
-
},
|
|
35740
|
+
}, TU = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ M(eH, {
|
|
35706
35741
|
checked: t,
|
|
35707
35742
|
label: e,
|
|
35708
35743
|
onChange: (e) => {
|
|
35709
35744
|
n(e.target.checked);
|
|
35710
35745
|
}
|
|
35711
35746
|
});
|
|
35712
|
-
|
|
35747
|
+
TU.propTypes = {
|
|
35713
35748
|
label: V.default.string,
|
|
35714
35749
|
value: V.default.bool,
|
|
35715
35750
|
onChange: V.default.func
|
|
35716
35751
|
};
|
|
35717
|
-
var
|
|
35752
|
+
var EU = k(mH)(({ theme: e }) => ({
|
|
35718
35753
|
marginTop: e.spacing(.5),
|
|
35719
35754
|
paddingBottom: e.spacing(.5),
|
|
35720
35755
|
width: "100%",
|
|
@@ -35725,29 +35760,29 @@ var TU = k(pH)(({ theme: e }) => ({
|
|
|
35725
35760
|
marginTop: e.spacing(2.5)
|
|
35726
35761
|
},
|
|
35727
35762
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
35728
|
-
})),
|
|
35763
|
+
})), DU = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ M(EU, {
|
|
35729
35764
|
direction: "horizontal",
|
|
35730
|
-
customLabel:
|
|
35765
|
+
customLabel: xU,
|
|
35731
35766
|
value: t,
|
|
35732
35767
|
header: e,
|
|
35733
35768
|
opts: r,
|
|
35734
35769
|
onChange: n
|
|
35735
35770
|
});
|
|
35736
|
-
|
|
35737
|
-
...
|
|
35738
|
-
choices: V.default.arrayOf(V.default.shape(
|
|
35771
|
+
DU.propTypes = {
|
|
35772
|
+
...wU,
|
|
35773
|
+
choices: V.default.arrayOf(V.default.shape(CU))
|
|
35739
35774
|
};
|
|
35740
|
-
var
|
|
35775
|
+
var OU = DU, kU = k("p")(({ theme: e }) => ({
|
|
35741
35776
|
margin: 0,
|
|
35742
35777
|
fontSize: e.typography.fontSize
|
|
35743
|
-
})),
|
|
35778
|
+
})), AU = k(WO)(({ theme: e }) => ({
|
|
35744
35779
|
marginTop: e.spacing(.5),
|
|
35745
35780
|
border: "2px solid lightgrey",
|
|
35746
35781
|
padding: `0 ${e.spacing(1)}`,
|
|
35747
35782
|
borderRadius: "4px"
|
|
35748
|
-
})),
|
|
35783
|
+
})), jU = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
35749
35784
|
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
35750
|
-
return /* @__PURE__ */ N("div", { children: [e && /* @__PURE__ */ M(
|
|
35785
|
+
return /* @__PURE__ */ N("div", { children: [e && /* @__PURE__ */ M(kU, { children: e }), /* @__PURE__ */ M(AU, {
|
|
35751
35786
|
value: t || r && r[0],
|
|
35752
35787
|
onChange: ({ target: e }) => n(e.value),
|
|
35753
35788
|
input: /* @__PURE__ */ M(xO, { id: `dropdown-${e}` }),
|
|
@@ -35762,14 +35797,14 @@ var DU = EU, OU = k("p")(({ theme: e }) => ({
|
|
|
35762
35797
|
}, t))
|
|
35763
35798
|
})] });
|
|
35764
35799
|
};
|
|
35765
|
-
|
|
35766
|
-
...
|
|
35800
|
+
jU.propTypes = {
|
|
35801
|
+
...wU,
|
|
35767
35802
|
choices: V.default.arrayOf(V.default.string)
|
|
35768
35803
|
};
|
|
35769
|
-
var
|
|
35804
|
+
var MU = k(ED)(({ theme: e }) => ({
|
|
35770
35805
|
marginRight: e.spacing(3),
|
|
35771
35806
|
marginTop: e.spacing(1)
|
|
35772
|
-
})),
|
|
35807
|
+
})), NU = ({ label: e }) => /* @__PURE__ */ M(MU, { children: e }), PU = k(iH)(({ theme: e }) => ({
|
|
35773
35808
|
width: "35%",
|
|
35774
35809
|
marginRight: e.spacing(3),
|
|
35775
35810
|
marginTop: e.spacing(1),
|
|
@@ -35780,7 +35815,7 @@ var jU = k(ED)(({ theme: e }) => ({
|
|
|
35780
35815
|
padding: `0 ${e.spacing(1)}`,
|
|
35781
35816
|
backgroundColor: "transparent"
|
|
35782
35817
|
}
|
|
35783
|
-
})),
|
|
35818
|
+
})), FU = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ M(PU, {
|
|
35784
35819
|
variant: "standard",
|
|
35785
35820
|
label: e || "Label",
|
|
35786
35821
|
value: t,
|
|
@@ -35791,45 +35826,45 @@ var jU = k(ED)(({ theme: e }) => ({
|
|
|
35791
35826
|
showErrorWhenOutsideRange: !0,
|
|
35792
35827
|
disableUnderline: !0
|
|
35793
35828
|
});
|
|
35794
|
-
|
|
35795
|
-
...
|
|
35829
|
+
FU.propTypes = {
|
|
35830
|
+
...wU,
|
|
35796
35831
|
suffix: V.default.string,
|
|
35797
35832
|
min: V.default.number,
|
|
35798
35833
|
max: V.default.number,
|
|
35799
35834
|
value: V.default.number
|
|
35800
|
-
},
|
|
35801
|
-
var
|
|
35835
|
+
}, NU.propTypes = { ...wU };
|
|
35836
|
+
var IU = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ M(vU, {
|
|
35802
35837
|
label: t,
|
|
35803
35838
|
checked: !!n,
|
|
35804
35839
|
disabled: !!e,
|
|
35805
35840
|
toggle: r
|
|
35806
35841
|
});
|
|
35807
|
-
|
|
35808
|
-
...
|
|
35842
|
+
IU.propTypes = {
|
|
35843
|
+
...wU,
|
|
35809
35844
|
value: V.default.bool
|
|
35810
35845
|
};
|
|
35811
|
-
var
|
|
35812
|
-
toggle:
|
|
35813
|
-
radio:
|
|
35814
|
-
dropdown:
|
|
35815
|
-
numberField:
|
|
35816
|
-
checkbox:
|
|
35817
|
-
textField:
|
|
35818
|
-
},
|
|
35846
|
+
var LU = {
|
|
35847
|
+
toggle: IU,
|
|
35848
|
+
radio: OU,
|
|
35849
|
+
dropdown: jU,
|
|
35850
|
+
numberField: FU,
|
|
35851
|
+
checkbox: TU,
|
|
35852
|
+
textField: NU
|
|
35853
|
+
}, RU = k("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), zU = k("div")(({ theme: e }) => ({
|
|
35819
35854
|
color: "#495B8F",
|
|
35820
35855
|
fontSize: e.typography.fontSize + 2,
|
|
35821
35856
|
fontWeight: 600,
|
|
35822
35857
|
marginBottom: e.spacing(1)
|
|
35823
|
-
})),
|
|
35858
|
+
})), BU = k("p")(({ theme: e }) => ({
|
|
35824
35859
|
fontSize: e.typography.fontSize,
|
|
35825
35860
|
marginBottom: 0
|
|
35826
|
-
})),
|
|
35861
|
+
})), VU = (e) => {
|
|
35827
35862
|
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
35828
35863
|
let { isConfigProperty: o, ...s } = rt(e, r || n), c = rt(o ? i : t, n), l = {
|
|
35829
35864
|
...s,
|
|
35830
35865
|
key: n,
|
|
35831
35866
|
value: c
|
|
35832
|
-
}, u =
|
|
35867
|
+
}, u = LU[l.type];
|
|
35833
35868
|
return /* @__PURE__ */ M(u, {
|
|
35834
35869
|
...l,
|
|
35835
35870
|
onChange: (e) => a(n, e, o)
|
|
@@ -35838,18 +35873,18 @@ var IU = {
|
|
|
35838
35873
|
let n = e[t];
|
|
35839
35874
|
if (!n) return null;
|
|
35840
35875
|
let { type: r, label: i, fields: a, choices: s } = n;
|
|
35841
|
-
return r === "numberFields" ? /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M(
|
|
35876
|
+
return r === "numberFields" ? /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M(BU, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
|
|
35842
35877
|
};
|
|
35843
|
-
return /* @__PURE__ */ N(
|
|
35878
|
+
return /* @__PURE__ */ N(RU, { children: [/* @__PURE__ */ M(zU, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
35844
35879
|
};
|
|
35845
|
-
|
|
35880
|
+
VU.propTypes = {
|
|
35846
35881
|
model: V.default.object,
|
|
35847
35882
|
label: V.default.string,
|
|
35848
35883
|
group: V.default.object,
|
|
35849
35884
|
configuration: V.default.object,
|
|
35850
35885
|
onChange: V.default.func
|
|
35851
35886
|
};
|
|
35852
|
-
var
|
|
35887
|
+
var HU = class extends ft.Component {
|
|
35853
35888
|
static propTypes = {
|
|
35854
35889
|
model: V.default.object,
|
|
35855
35890
|
configuration: V.default.object,
|
|
@@ -35863,13 +35898,13 @@ var VU = class extends ft.Component {
|
|
|
35863
35898
|
onChangeConfiguration: () => {}
|
|
35864
35899
|
};
|
|
35865
35900
|
change = (e, t, n = !1) => {
|
|
35866
|
-
|
|
35901
|
+
SU("[changeModel]", e, t);
|
|
35867
35902
|
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
|
|
35868
35903
|
n ? (ot(o, e, t), i(o, e)) : (ot(a, e, t), r(a, e));
|
|
35869
35904
|
};
|
|
35870
35905
|
render() {
|
|
35871
35906
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
35872
|
-
return
|
|
35907
|
+
return SU("render:", t), /* @__PURE__ */ N("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ M(VU, {
|
|
35873
35908
|
label: r,
|
|
35874
35909
|
model: t,
|
|
35875
35910
|
configuration: n,
|
|
@@ -35877,59 +35912,59 @@ var VU = class extends ft.Component {
|
|
|
35877
35912
|
onChange: this.change
|
|
35878
35913
|
}, r) : null), r] });
|
|
35879
35914
|
}
|
|
35880
|
-
},
|
|
35881
|
-
Panel: () =>
|
|
35882
|
-
checkbox: () =>
|
|
35883
|
-
checkboxes: () =>
|
|
35884
|
-
dropdown: () =>
|
|
35885
|
-
numberField: () =>
|
|
35886
|
-
numberFields: () =>
|
|
35887
|
-
radio: () =>
|
|
35888
|
-
textField: () =>
|
|
35889
|
-
toggle: () =>
|
|
35890
|
-
}),
|
|
35915
|
+
}, UU = /* @__PURE__ */ _H({
|
|
35916
|
+
Panel: () => HU,
|
|
35917
|
+
checkbox: () => ZU,
|
|
35918
|
+
checkboxes: () => QU,
|
|
35919
|
+
dropdown: () => JU,
|
|
35920
|
+
numberField: () => YU,
|
|
35921
|
+
numberFields: () => XU,
|
|
35922
|
+
radio: () => qU,
|
|
35923
|
+
textField: () => WU,
|
|
35924
|
+
toggle: () => GU
|
|
35925
|
+
}), WU = (e, t = !0) => ({
|
|
35891
35926
|
label: e,
|
|
35892
35927
|
type: "textField",
|
|
35893
35928
|
isConfigProperty: t
|
|
35894
|
-
}),
|
|
35929
|
+
}), GU = (e, t = !1, n = !1) => ({
|
|
35895
35930
|
type: "toggle",
|
|
35896
35931
|
label: e,
|
|
35897
35932
|
isConfigProperty: t,
|
|
35898
35933
|
disabled: n
|
|
35899
|
-
}),
|
|
35934
|
+
}), KU = (e) => typeof e == "string" ? {
|
|
35900
35935
|
label: e,
|
|
35901
35936
|
value: e
|
|
35902
|
-
} : e,
|
|
35937
|
+
} : e, qU = function() {
|
|
35903
35938
|
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
35904
35939
|
return {
|
|
35905
35940
|
type: "radio",
|
|
35906
35941
|
label: e,
|
|
35907
|
-
choices: t && t.map((e) =>
|
|
35942
|
+
choices: t && t.map((e) => KU(e)),
|
|
35908
35943
|
isConfigProperty: n
|
|
35909
35944
|
};
|
|
35910
|
-
},
|
|
35945
|
+
}, JU = (e, t, n = !1) => ({
|
|
35911
35946
|
type: "dropdown",
|
|
35912
35947
|
label: e,
|
|
35913
35948
|
choices: t,
|
|
35914
35949
|
isConfigProperty: n
|
|
35915
|
-
}),
|
|
35950
|
+
}), YU = (e, t, n = !1) => ({
|
|
35916
35951
|
...t,
|
|
35917
35952
|
label: e,
|
|
35918
35953
|
type: "numberField",
|
|
35919
35954
|
isConfigProperty: n
|
|
35920
|
-
}),
|
|
35921
|
-
t[e] =
|
|
35955
|
+
}), XU = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
35956
|
+
t[e] = YU(t[e].label, t[e], n);
|
|
35922
35957
|
}), {
|
|
35923
35958
|
type: "numberFields",
|
|
35924
35959
|
label: e,
|
|
35925
35960
|
fields: t
|
|
35926
|
-
}),
|
|
35961
|
+
}), ZU = (e, t, n = !1) => ({
|
|
35927
35962
|
...t,
|
|
35928
35963
|
label: e,
|
|
35929
35964
|
type: "checkbox",
|
|
35930
35965
|
isConfigProperty: n
|
|
35931
|
-
}),
|
|
35932
|
-
t[e] =
|
|
35966
|
+
}), QU = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
35967
|
+
t[e] = ZU(t[e].label, t[e], n);
|
|
35933
35968
|
}), {
|
|
35934
35969
|
type: "checkboxes",
|
|
35935
35970
|
label: e,
|
|
@@ -35937,28 +35972,28 @@ var VU = class extends ft.Component {
|
|
|
35937
35972
|
});
|
|
35938
35973
|
//#endregion
|
|
35939
35974
|
//#region ../../lib-react/config-ui/dist/index.js
|
|
35940
|
-
function
|
|
35975
|
+
function $U(e) {
|
|
35941
35976
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
35942
35977
|
}
|
|
35943
|
-
function
|
|
35944
|
-
return !e ||
|
|
35978
|
+
function eW(e, t) {
|
|
35979
|
+
return !e || $U(e) ? e : $U(e.default) ? e.default : t && $U(e[t]) ? e[t] : t && $U(e[t]?.default) ? e[t].default : e;
|
|
35945
35980
|
}
|
|
35946
|
-
var
|
|
35981
|
+
var tW = eW(_e, "InputContainer") || eW(iW.InputContainer, "InputContainer"), nW = le, rW = nW.default, iW = rW && typeof rW == "object" ? rW : nW, aW = Ce.div`
|
|
35947
35982
|
display: flex;
|
|
35948
35983
|
flex-direction: column;
|
|
35949
35984
|
align-items: center;
|
|
35950
|
-
`,
|
|
35985
|
+
`, oW = Ce.p`
|
|
35951
35986
|
margin: 10px 0;
|
|
35952
35987
|
color: #c3c3c3;
|
|
35953
35988
|
font-size: 12px;
|
|
35954
|
-
`,
|
|
35989
|
+
`, sW = Ce.div`
|
|
35955
35990
|
display: flex;
|
|
35956
35991
|
align-items: center;
|
|
35957
35992
|
justify-content: space-between;
|
|
35958
35993
|
width: 110px;
|
|
35959
|
-
`,
|
|
35994
|
+
`, cW = Ce.div`
|
|
35960
35995
|
cursor: pointer;
|
|
35961
|
-
`,
|
|
35996
|
+
`, lW = {
|
|
35962
35997
|
agreement: "agreement",
|
|
35963
35998
|
frequency: "frequency",
|
|
35964
35999
|
yesNo: "yesNo",
|
|
@@ -35966,8 +36001,8 @@ var eW = $U(_e, "InputContainer") || $U(rW.InputContainer, "InputContainer"), tW
|
|
|
35966
36001
|
likelihood: "likelihood",
|
|
35967
36002
|
like: "like",
|
|
35968
36003
|
custom: "custom"
|
|
35969
|
-
},
|
|
35970
|
-
/* @__PURE__ */ M(
|
|
36004
|
+
}, uW = ({ model: e, onChangeModel: t }) => /* @__PURE__ */ N(aW, { children: [/* @__PURE__ */ M(oW, { children: "Matrix Columns" }), /* @__PURE__ */ N(sW, { children: [
|
|
36005
|
+
/* @__PURE__ */ M(cW, { children: /* @__PURE__ */ M(aH, { onClick: () => {
|
|
35971
36006
|
let n = e.columnLabels.length;
|
|
35972
36007
|
if (n <= 1) return;
|
|
35973
36008
|
let r = [...e.columnLabels];
|
|
@@ -35979,26 +36014,26 @@ var eW = $U(_e, "InputContainer") || $U(rW.InputContainer, "InputContainer"), tW
|
|
|
35979
36014
|
...e,
|
|
35980
36015
|
columnLabels: r,
|
|
35981
36016
|
matrixValues: i,
|
|
35982
|
-
labelType:
|
|
36017
|
+
labelType: lW.custom
|
|
35983
36018
|
});
|
|
35984
36019
|
} }) }),
|
|
35985
36020
|
/* @__PURE__ */ M("p", { children: e.columnLabels.length }),
|
|
35986
|
-
/* @__PURE__ */ M(
|
|
36021
|
+
/* @__PURE__ */ M(cW, { children: /* @__PURE__ */ M(oH, { onClick: () => {
|
|
35987
36022
|
t({
|
|
35988
36023
|
...e,
|
|
35989
36024
|
columnLabels: [...e.columnLabels, `COLUMN ${e.columnLabels.length + 1}`],
|
|
35990
|
-
labelType:
|
|
36025
|
+
labelType: lW.custom
|
|
35991
36026
|
});
|
|
35992
36027
|
} }) })
|
|
35993
36028
|
] })] });
|
|
35994
|
-
|
|
36029
|
+
uW.propTypes = {
|
|
35995
36030
|
model: V.default.object.isRequired,
|
|
35996
36031
|
onChangeModel: V.default.func.isRequired
|
|
35997
36032
|
};
|
|
35998
36033
|
//#endregion
|
|
35999
36034
|
//#region src/author/MatrixRowsSizeHeaderInput.tsx
|
|
36000
|
-
var
|
|
36001
|
-
/* @__PURE__ */ M(
|
|
36035
|
+
var dW = ({ model: e, onChangeModel: t }) => /* @__PURE__ */ N(aW, { children: [/* @__PURE__ */ M(oW, { children: "Matrix Rows" }), /* @__PURE__ */ N(sW, { children: [
|
|
36036
|
+
/* @__PURE__ */ M(cW, { children: /* @__PURE__ */ M(aH, { onClick: () => {
|
|
36002
36037
|
let n = e.rowLabels.length;
|
|
36003
36038
|
if (n <= 1) return;
|
|
36004
36039
|
let r = [...e.rowLabels];
|
|
@@ -36010,59 +36045,59 @@ var uW = ({ model: e, onChangeModel: t }) => /* @__PURE__ */ N(iW, { children: [
|
|
|
36010
36045
|
...e,
|
|
36011
36046
|
rowLabels: r,
|
|
36012
36047
|
matrixValues: i,
|
|
36013
|
-
labelType:
|
|
36048
|
+
labelType: lW.custom
|
|
36014
36049
|
});
|
|
36015
36050
|
} }) }),
|
|
36016
36051
|
/* @__PURE__ */ M("p", { children: e.rowLabels.length }),
|
|
36017
|
-
/* @__PURE__ */ M(
|
|
36052
|
+
/* @__PURE__ */ M(cW, { children: /* @__PURE__ */ M(oH, { onClick: () => {
|
|
36018
36053
|
t({
|
|
36019
36054
|
...e,
|
|
36020
36055
|
rowLabels: [...e.rowLabels, `STATEMENT ${e.rowLabels.length + 1}`],
|
|
36021
|
-
labelType:
|
|
36056
|
+
labelType: lW.custom
|
|
36022
36057
|
});
|
|
36023
36058
|
} }) })
|
|
36024
36059
|
] })] });
|
|
36025
|
-
|
|
36060
|
+
dW.propTypes = {
|
|
36026
36061
|
model: V.default.object.isRequired,
|
|
36027
36062
|
onChangeModel: V.default.func.isRequired
|
|
36028
36063
|
};
|
|
36029
36064
|
//#endregion
|
|
36030
36065
|
//#region src/author/columnLabelsGenerator.ts
|
|
36031
|
-
var
|
|
36066
|
+
var fW = [
|
|
36032
36067
|
"Disagree",
|
|
36033
36068
|
"Unsure",
|
|
36034
36069
|
"Agree"
|
|
36035
|
-
],
|
|
36070
|
+
], pW = [
|
|
36036
36071
|
"Strongly Disagree",
|
|
36037
|
-
...
|
|
36072
|
+
...fW,
|
|
36038
36073
|
"Strongly Agree"
|
|
36039
|
-
],
|
|
36074
|
+
], mW = [
|
|
36040
36075
|
"Extremely Disagree",
|
|
36041
|
-
...
|
|
36076
|
+
...pW,
|
|
36042
36077
|
"Extremely Agree"
|
|
36043
|
-
],
|
|
36078
|
+
], hW = [
|
|
36044
36079
|
"Infrequently",
|
|
36045
36080
|
"Unsure",
|
|
36046
36081
|
"Frequently"
|
|
36047
|
-
],
|
|
36082
|
+
], gW = [
|
|
36048
36083
|
"Very Infrequently",
|
|
36049
|
-
...
|
|
36084
|
+
...hW,
|
|
36050
36085
|
"Very Frequently"
|
|
36051
|
-
],
|
|
36086
|
+
], _W = [
|
|
36052
36087
|
"Never",
|
|
36053
|
-
...
|
|
36088
|
+
...gW,
|
|
36054
36089
|
"Always"
|
|
36055
|
-
],
|
|
36090
|
+
], vW = [
|
|
36056
36091
|
"No",
|
|
36057
36092
|
"Unsure",
|
|
36058
36093
|
"Yes"
|
|
36059
|
-
],
|
|
36094
|
+
], yW = [
|
|
36060
36095
|
"No",
|
|
36061
36096
|
"Not really",
|
|
36062
36097
|
"Unsure",
|
|
36063
36098
|
"Sometimes",
|
|
36064
36099
|
"Yes"
|
|
36065
|
-
],
|
|
36100
|
+
], bW = [
|
|
36066
36101
|
"No",
|
|
36067
36102
|
"Rarely",
|
|
36068
36103
|
"Not really",
|
|
@@ -36070,146 +36105,146 @@ var dW = [
|
|
|
36070
36105
|
"Sometimes",
|
|
36071
36106
|
"Very Often",
|
|
36072
36107
|
"Always"
|
|
36073
|
-
],
|
|
36108
|
+
], xW = [
|
|
36074
36109
|
"Not Likely",
|
|
36075
36110
|
"Unsure",
|
|
36076
36111
|
"Likely"
|
|
36077
|
-
],
|
|
36112
|
+
], SW = [
|
|
36078
36113
|
"Very Unlikely",
|
|
36079
|
-
...
|
|
36114
|
+
...xW,
|
|
36080
36115
|
"Very Likely"
|
|
36081
|
-
],
|
|
36116
|
+
], CW = [
|
|
36082
36117
|
"Extremely Unlikely",
|
|
36083
|
-
...
|
|
36118
|
+
...SW,
|
|
36084
36119
|
"Extremely Likely"
|
|
36085
|
-
],
|
|
36120
|
+
], wW = [
|
|
36086
36121
|
"Not Important",
|
|
36087
36122
|
"Unsure",
|
|
36088
36123
|
"Important"
|
|
36089
|
-
],
|
|
36124
|
+
], TW = [
|
|
36090
36125
|
"Very Not Important",
|
|
36091
|
-
...
|
|
36126
|
+
...wW,
|
|
36092
36127
|
"Very Important"
|
|
36093
|
-
],
|
|
36128
|
+
], EW = [
|
|
36094
36129
|
"Extremely Not Important",
|
|
36095
|
-
...
|
|
36130
|
+
...TW,
|
|
36096
36131
|
"Extremely Important"
|
|
36097
|
-
],
|
|
36132
|
+
], DW = [
|
|
36098
36133
|
"Dislike",
|
|
36099
36134
|
"Unsure",
|
|
36100
36135
|
"Like"
|
|
36101
|
-
],
|
|
36136
|
+
], OW = [
|
|
36102
36137
|
"Really Dislike",
|
|
36103
|
-
...
|
|
36138
|
+
...DW,
|
|
36104
36139
|
"Really Like"
|
|
36105
|
-
],
|
|
36106
|
-
agreement_3:
|
|
36107
|
-
agreement_5:
|
|
36108
|
-
agreement_7:
|
|
36109
|
-
frequency_3:
|
|
36110
|
-
frequency_5:
|
|
36111
|
-
frequency_7:
|
|
36112
|
-
yesNo_3:
|
|
36113
|
-
yesNo_5:
|
|
36114
|
-
yesNo_7:
|
|
36115
|
-
likelihood_3:
|
|
36116
|
-
likelihood_5:
|
|
36117
|
-
likelihood_7:
|
|
36118
|
-
importance_3:
|
|
36119
|
-
importance_5:
|
|
36120
|
-
importance_7:
|
|
36121
|
-
like_3:
|
|
36122
|
-
like_5:
|
|
36140
|
+
], kW = {
|
|
36141
|
+
agreement_3: fW,
|
|
36142
|
+
agreement_5: pW,
|
|
36143
|
+
agreement_7: mW,
|
|
36144
|
+
frequency_3: hW,
|
|
36145
|
+
frequency_5: gW,
|
|
36146
|
+
frequency_7: _W,
|
|
36147
|
+
yesNo_3: vW,
|
|
36148
|
+
yesNo_5: yW,
|
|
36149
|
+
yesNo_7: bW,
|
|
36150
|
+
likelihood_3: xW,
|
|
36151
|
+
likelihood_5: SW,
|
|
36152
|
+
likelihood_7: CW,
|
|
36153
|
+
importance_3: wW,
|
|
36154
|
+
importance_5: TW,
|
|
36155
|
+
importance_7: EW,
|
|
36156
|
+
like_3: DW,
|
|
36157
|
+
like_5: OW,
|
|
36123
36158
|
like_7: [
|
|
36124
36159
|
"Extremely Dislike",
|
|
36125
|
-
...
|
|
36160
|
+
...OW,
|
|
36126
36161
|
"Extremely Like"
|
|
36127
36162
|
]
|
|
36128
|
-
},
|
|
36163
|
+
}, AW = (e, t) => kW[`${e}_${t}`], jW = k("div")({ display: "flex" }), MW = k(He)({ "&.MuiRadio-root": { color: `${f.tertiary()} !important` } }), NW = ({ model: e, onChangeModel: t }) => {
|
|
36129
36164
|
let n = (n) => {
|
|
36130
36165
|
let r = n.target.value, i = {
|
|
36131
36166
|
...e,
|
|
36132
36167
|
labelType: r
|
|
36133
36168
|
};
|
|
36134
|
-
r !==
|
|
36169
|
+
r !== lW.custom && (i.columnLabels = AW(r, e.columnLabels.length)), t(i);
|
|
36135
36170
|
}, r = [
|
|
36136
36171
|
3,
|
|
36137
36172
|
5,
|
|
36138
36173
|
7
|
|
36139
36174
|
].includes(e.columnLabels.length);
|
|
36140
|
-
return /* @__PURE__ */ N(
|
|
36141
|
-
/* @__PURE__ */ N(
|
|
36175
|
+
return /* @__PURE__ */ N(aW, { children: [/* @__PURE__ */ M(oW, { children: "Matrix Type" }), /* @__PURE__ */ N(jW, { children: [
|
|
36176
|
+
/* @__PURE__ */ N(RV, {
|
|
36142
36177
|
"aria-label": "matrixLabelType",
|
|
36143
36178
|
name: "matrixLabelType",
|
|
36144
36179
|
value: e.labelType,
|
|
36145
36180
|
onChange: n,
|
|
36146
36181
|
children: [
|
|
36147
|
-
/* @__PURE__ */ M(
|
|
36182
|
+
/* @__PURE__ */ M(wV, {
|
|
36148
36183
|
disabled: !r,
|
|
36149
|
-
value:
|
|
36150
|
-
control: /* @__PURE__ */ M(
|
|
36184
|
+
value: lW.agreement,
|
|
36185
|
+
control: /* @__PURE__ */ M(MW, {}),
|
|
36151
36186
|
label: "Agreement"
|
|
36152
36187
|
}),
|
|
36153
|
-
/* @__PURE__ */ M(
|
|
36188
|
+
/* @__PURE__ */ M(wV, {
|
|
36154
36189
|
disabled: !r,
|
|
36155
|
-
value:
|
|
36156
|
-
control: /* @__PURE__ */ M(
|
|
36190
|
+
value: lW.frequency,
|
|
36191
|
+
control: /* @__PURE__ */ M(MW, {}),
|
|
36157
36192
|
label: "Frequency"
|
|
36158
36193
|
}),
|
|
36159
|
-
/* @__PURE__ */ M(
|
|
36194
|
+
/* @__PURE__ */ M(wV, {
|
|
36160
36195
|
disabled: !r,
|
|
36161
|
-
value:
|
|
36162
|
-
control: /* @__PURE__ */ M(
|
|
36196
|
+
value: lW.yesNo,
|
|
36197
|
+
control: /* @__PURE__ */ M(MW, {}),
|
|
36163
36198
|
label: "Yes/No"
|
|
36164
36199
|
})
|
|
36165
36200
|
]
|
|
36166
36201
|
}),
|
|
36167
|
-
/* @__PURE__ */ N(
|
|
36202
|
+
/* @__PURE__ */ N(RV, {
|
|
36168
36203
|
"aria-label": "matrixLabelType",
|
|
36169
36204
|
name: "matrixLabelType",
|
|
36170
36205
|
value: e.labelType,
|
|
36171
36206
|
onChange: n,
|
|
36172
36207
|
children: [
|
|
36173
|
-
/* @__PURE__ */ M(
|
|
36208
|
+
/* @__PURE__ */ M(wV, {
|
|
36174
36209
|
disabled: !r,
|
|
36175
|
-
value:
|
|
36176
|
-
control: /* @__PURE__ */ M(
|
|
36210
|
+
value: lW.importance,
|
|
36211
|
+
control: /* @__PURE__ */ M(MW, {}),
|
|
36177
36212
|
label: "Importance"
|
|
36178
36213
|
}),
|
|
36179
|
-
/* @__PURE__ */ M(
|
|
36214
|
+
/* @__PURE__ */ M(wV, {
|
|
36180
36215
|
disabled: !r,
|
|
36181
|
-
value:
|
|
36182
|
-
control: /* @__PURE__ */ M(
|
|
36216
|
+
value: lW.likelihood,
|
|
36217
|
+
control: /* @__PURE__ */ M(MW, {}),
|
|
36183
36218
|
label: "Likelihood"
|
|
36184
36219
|
}),
|
|
36185
|
-
/* @__PURE__ */ M(
|
|
36220
|
+
/* @__PURE__ */ M(wV, {
|
|
36186
36221
|
disabled: !r,
|
|
36187
|
-
value:
|
|
36188
|
-
control: /* @__PURE__ */ M(
|
|
36222
|
+
value: lW.like,
|
|
36223
|
+
control: /* @__PURE__ */ M(MW, {}),
|
|
36189
36224
|
label: "Like"
|
|
36190
36225
|
})
|
|
36191
36226
|
]
|
|
36192
36227
|
}),
|
|
36193
|
-
/* @__PURE__ */ M(
|
|
36228
|
+
/* @__PURE__ */ M(RV, {
|
|
36194
36229
|
"aria-label": "matrixLabelType",
|
|
36195
36230
|
name: "matrixLabelType",
|
|
36196
36231
|
value: e.labelType,
|
|
36197
36232
|
onChange: n,
|
|
36198
|
-
children: /* @__PURE__ */ M(
|
|
36199
|
-
value:
|
|
36200
|
-
control: /* @__PURE__ */ M(
|
|
36233
|
+
children: /* @__PURE__ */ M(wV, {
|
|
36234
|
+
value: lW.custom,
|
|
36235
|
+
control: /* @__PURE__ */ M(MW, {}),
|
|
36201
36236
|
label: "Custom"
|
|
36202
36237
|
})
|
|
36203
36238
|
})
|
|
36204
36239
|
] })] });
|
|
36205
36240
|
};
|
|
36206
|
-
|
|
36241
|
+
NW.propTypes = {
|
|
36207
36242
|
model: V.default.object.isRequired,
|
|
36208
36243
|
onChangeModel: V.default.func.isRequired
|
|
36209
36244
|
};
|
|
36210
36245
|
//#endregion
|
|
36211
36246
|
//#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/KeyboardArrowDown.js
|
|
36212
|
-
var
|
|
36247
|
+
var PW = w(/*#__PURE__*/ M("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z" }), "KeyboardArrowDown"), FW = k("div")`
|
|
36213
36248
|
width: 100%;
|
|
36214
36249
|
height: 100%;
|
|
36215
36250
|
input[type='number'] {
|
|
@@ -36220,7 +36255,7 @@ var NW = w(/*#__PURE__*/ M("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6
|
|
|
36220
36255
|
input::-webkit-inner-spin-button {
|
|
36221
36256
|
-webkit-appearance: none;
|
|
36222
36257
|
}
|
|
36223
|
-
`,
|
|
36258
|
+
`, IW = k(eA)({
|
|
36224
36259
|
"& .MuiOutlinedInput-root": {
|
|
36225
36260
|
fontSize: "16px",
|
|
36226
36261
|
textAlign: "center!important",
|
|
@@ -36242,9 +36277,9 @@ var NW = w(/*#__PURE__*/ M("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6
|
|
|
36242
36277
|
borderWidth: "1px !important",
|
|
36243
36278
|
borderColor: "#d6d6d6 !important"
|
|
36244
36279
|
}
|
|
36245
|
-
}),
|
|
36280
|
+
}), LW = (e) => {
|
|
36246
36281
|
let { onFieldUpdate: t, name: n, placeholder: r, fieldValue: i } = e;
|
|
36247
|
-
return /* @__PURE__ */ M(
|
|
36282
|
+
return /* @__PURE__ */ M(FW, { children: /* @__PURE__ */ M(IW, {
|
|
36248
36283
|
name: n,
|
|
36249
36284
|
value: i.value,
|
|
36250
36285
|
inputRef: i.ref,
|
|
@@ -36256,7 +36291,7 @@ var NW = w(/*#__PURE__*/ M("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6
|
|
|
36256
36291
|
variant: "outlined"
|
|
36257
36292
|
}) });
|
|
36258
36293
|
};
|
|
36259
|
-
|
|
36294
|
+
LW.propTypes = {
|
|
36260
36295
|
name: V.default.string.isRequired,
|
|
36261
36296
|
placeholder: V.default.string.isRequired,
|
|
36262
36297
|
fieldValue: V.default.object.isRequired,
|
|
@@ -36264,16 +36299,16 @@ IW.propTypes = {
|
|
|
36264
36299
|
};
|
|
36265
36300
|
//#endregion
|
|
36266
36301
|
//#region src/author/isNumeric.ts
|
|
36267
|
-
var
|
|
36302
|
+
var RW = (e) => /^-?\d+$/.test(e);
|
|
36268
36303
|
//#endregion
|
|
36269
36304
|
//#region src/author/MatrixLabelEditableButton.tsx
|
|
36270
|
-
function
|
|
36305
|
+
function zW(e) {
|
|
36271
36306
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
36272
36307
|
}
|
|
36273
|
-
function
|
|
36274
|
-
return !e ||
|
|
36308
|
+
function BW(e, t) {
|
|
36309
|
+
return !e || zW(e) ? e : zW(e.default) ? e.default : t && zW(e[t]) ? e[t] : t && zW(e[t]?.default) ? e[t].default : e;
|
|
36275
36310
|
}
|
|
36276
|
-
var
|
|
36311
|
+
var VW = BW(Ne, "InlineMenu") || BW(WW.InlineMenu, "InlineMenu"), HW = le, UW = HW.default, WW = UW && typeof UW == "object" ? UW : HW, GW = Ce.div`
|
|
36277
36312
|
width: 100%;
|
|
36278
36313
|
height: 50px;
|
|
36279
36314
|
margin: 1px;
|
|
@@ -36285,13 +36320,13 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36285
36320
|
display: flex;
|
|
36286
36321
|
align-items: center;
|
|
36287
36322
|
justify-content: space-between;
|
|
36288
|
-
`,
|
|
36323
|
+
`, KW = Ce.div`
|
|
36289
36324
|
padding: 0 5px 0 12px;
|
|
36290
36325
|
width: 100%;
|
|
36291
36326
|
display: flex;
|
|
36292
36327
|
align-items: center;
|
|
36293
36328
|
overflow: hidden;
|
|
36294
|
-
`,
|
|
36329
|
+
`, qW = Ce.p`
|
|
36295
36330
|
margin: 0;
|
|
36296
36331
|
padding: 3px 0 3px 4px;
|
|
36297
36332
|
cursor: pointer;
|
|
@@ -36306,7 +36341,7 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36306
36341
|
}
|
|
36307
36342
|
|
|
36308
36343
|
transition: all 0.1s ease-in-out;
|
|
36309
|
-
`,
|
|
36344
|
+
`, JW = Ce.div`
|
|
36310
36345
|
padding: 0 3px;
|
|
36311
36346
|
height: 100%;
|
|
36312
36347
|
cursor: pointer;
|
|
@@ -36319,9 +36354,9 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36319
36354
|
border-bottom-right-radius: 5px;
|
|
36320
36355
|
}
|
|
36321
36356
|
transition: all 0.1s ease-in-out;
|
|
36322
|
-
`,
|
|
36357
|
+
`, YW = Ce.div`
|
|
36323
36358
|
font-size: 18px;
|
|
36324
|
-
`,
|
|
36359
|
+
`, XW = Ce.input`
|
|
36325
36360
|
margin: 0;
|
|
36326
36361
|
padding: 0 0 0 4px;
|
|
36327
36362
|
font-size: 14px;
|
|
@@ -36334,24 +36369,24 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36334
36369
|
height: 22px;
|
|
36335
36370
|
display: flex;
|
|
36336
36371
|
align-items: center;
|
|
36337
|
-
`,
|
|
36372
|
+
`, ZW = Ce.div`
|
|
36338
36373
|
display: flex;
|
|
36339
36374
|
align-items: center;
|
|
36340
|
-
`,
|
|
36375
|
+
`, QW = Ce.div`
|
|
36341
36376
|
width: 50px;
|
|
36342
36377
|
margin-left: 10px;
|
|
36343
|
-
`,
|
|
36378
|
+
`, $W = {
|
|
36344
36379
|
clear: "clear",
|
|
36345
36380
|
sortAscending: "sortAscending",
|
|
36346
36381
|
sortDescending: "sortDescending",
|
|
36347
36382
|
set: "set"
|
|
36348
|
-
},
|
|
36383
|
+
}, eG = (e) => {
|
|
36349
36384
|
let { onLabelUpdate: t, value: n, resourceIndex: r, onAction: i, spellCheck: a } = e, [o, s] = Et(null), [c, l] = Et(""), [u, d] = Et(!1), [f, p] = ft.useState(null), [m] = ft.useState(ft.createRef()), h = !!f, g = (e) => {
|
|
36350
36385
|
p(e.currentTarget);
|
|
36351
36386
|
}, _ = (e) => {
|
|
36352
36387
|
e.stopPropagation(), p(null), l("");
|
|
36353
36388
|
};
|
|
36354
|
-
return /* @__PURE__ */ N(
|
|
36389
|
+
return /* @__PURE__ */ N(GW, { children: [/* @__PURE__ */ M(KW, { children: u ? /* @__PURE__ */ M(XW, {
|
|
36355
36390
|
autoFocus: !0,
|
|
36356
36391
|
value: o,
|
|
36357
36392
|
onChange: (e) => s(e.target.value),
|
|
@@ -36360,14 +36395,14 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36360
36395
|
e && t(e), s(null), d(!1);
|
|
36361
36396
|
},
|
|
36362
36397
|
spellCheck: a
|
|
36363
|
-
}) : /* @__PURE__ */ M(
|
|
36398
|
+
}) : /* @__PURE__ */ M(qW, {
|
|
36364
36399
|
onClick: () => {
|
|
36365
36400
|
d(!0), s(n);
|
|
36366
36401
|
},
|
|
36367
36402
|
children: n
|
|
36368
|
-
}) }), /* @__PURE__ */ N(
|
|
36403
|
+
}) }), /* @__PURE__ */ N(JW, {
|
|
36369
36404
|
onClick: g,
|
|
36370
|
-
children: [/* @__PURE__ */ M(
|
|
36405
|
+
children: [/* @__PURE__ */ M(YW, { children: /* @__PURE__ */ M(PW, { fontSize: "inherit" }) }), /* @__PURE__ */ N(VW, {
|
|
36371
36406
|
anchorEl: f,
|
|
36372
36407
|
open: h,
|
|
36373
36408
|
onClose: _,
|
|
@@ -36381,7 +36416,7 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36381
36416
|
onClick: (e) => {
|
|
36382
36417
|
_(e), i({
|
|
36383
36418
|
resourceIndex: r,
|
|
36384
|
-
actionType:
|
|
36419
|
+
actionType: $W.clear
|
|
36385
36420
|
});
|
|
36386
36421
|
},
|
|
36387
36422
|
children: "Clear Scores"
|
|
@@ -36391,7 +36426,7 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36391
36426
|
onClick: (e) => {
|
|
36392
36427
|
_(e), i({
|
|
36393
36428
|
resourceIndex: r,
|
|
36394
|
-
actionType:
|
|
36429
|
+
actionType: $W.sortAscending
|
|
36395
36430
|
});
|
|
36396
36431
|
},
|
|
36397
36432
|
children: "Set Scores Ascending"
|
|
@@ -36401,28 +36436,28 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36401
36436
|
onClick: (e) => {
|
|
36402
36437
|
_(e), i({
|
|
36403
36438
|
resourceIndex: r,
|
|
36404
|
-
actionType:
|
|
36439
|
+
actionType: $W.sortDescending
|
|
36405
36440
|
});
|
|
36406
36441
|
},
|
|
36407
36442
|
children: "Set Scores Descending"
|
|
36408
36443
|
}, "item3"),
|
|
36409
36444
|
/* @__PURE__ */ M(YO, {
|
|
36410
36445
|
selected: !1,
|
|
36411
|
-
children: /* @__PURE__ */ N(
|
|
36446
|
+
children: /* @__PURE__ */ N(ZW, { children: [/* @__PURE__ */ M("p", {
|
|
36412
36447
|
onClick: () => {
|
|
36413
36448
|
m.current.focus();
|
|
36414
36449
|
},
|
|
36415
36450
|
children: "Set Scores To"
|
|
36416
|
-
}), /* @__PURE__ */ M(
|
|
36451
|
+
}), /* @__PURE__ */ M(QW, { children: /* @__PURE__ */ M(LW, {
|
|
36417
36452
|
onFieldUpdate: (e) => {
|
|
36418
|
-
if (!
|
|
36453
|
+
if (!RW(e)) {
|
|
36419
36454
|
l("");
|
|
36420
36455
|
return;
|
|
36421
36456
|
}
|
|
36422
36457
|
let t = parseInt(e, 10);
|
|
36423
36458
|
l(t), i({
|
|
36424
36459
|
resourceIndex: r,
|
|
36425
|
-
actionType:
|
|
36460
|
+
actionType: $W.set,
|
|
36426
36461
|
setValue: t
|
|
36427
36462
|
});
|
|
36428
36463
|
},
|
|
@@ -36438,7 +36473,7 @@ var BW = zW(Ne, "InlineMenu") || zW(UW.InlineMenu, "InlineMenu"), VW = le, HW =
|
|
|
36438
36473
|
})]
|
|
36439
36474
|
})] });
|
|
36440
36475
|
};
|
|
36441
|
-
|
|
36476
|
+
eG.propTypes = {
|
|
36442
36477
|
value: V.default.string.isRequired,
|
|
36443
36478
|
resourceIndex: V.default.number.isRequired,
|
|
36444
36479
|
onLabelUpdate: V.default.func.isRequired,
|
|
@@ -36447,56 +36482,56 @@ $W.propTypes = {
|
|
|
36447
36482
|
};
|
|
36448
36483
|
//#endregion
|
|
36449
36484
|
//#region src/author/MatrixValues.tsx
|
|
36450
|
-
var
|
|
36485
|
+
var tG = "120px", nG = Ce.div`
|
|
36451
36486
|
display: grid;
|
|
36452
36487
|
grid-template-columns: min-content min-content auto;
|
|
36453
|
-
`,
|
|
36488
|
+
`, rG = Ce.div`
|
|
36454
36489
|
display: flex;
|
|
36455
36490
|
justify-content: space-between;
|
|
36456
36491
|
padding: 5px;
|
|
36457
|
-
`,
|
|
36458
|
-
width: ${
|
|
36492
|
+
`, iG = Ce.div`
|
|
36493
|
+
width: ${tG};
|
|
36459
36494
|
display: flex;
|
|
36460
36495
|
align-items: center;
|
|
36461
36496
|
justify-content: center;
|
|
36462
|
-
`,
|
|
36497
|
+
`, aG = Ce.div`
|
|
36463
36498
|
width: 200px;
|
|
36464
36499
|
display: flex;
|
|
36465
36500
|
align-items: center;
|
|
36466
36501
|
justify-content: center;
|
|
36467
|
-
`,
|
|
36502
|
+
`, oG = Ce.div`
|
|
36468
36503
|
display: flex;
|
|
36469
36504
|
justify-content: space-between;
|
|
36470
|
-
`,
|
|
36471
|
-
width: ${
|
|
36505
|
+
`, sG = Ce.div`
|
|
36506
|
+
width: ${tG};
|
|
36472
36507
|
height: 50px;
|
|
36473
36508
|
margin: 1px;
|
|
36474
36509
|
display: flex;
|
|
36475
36510
|
align-items: center;
|
|
36476
36511
|
justify-content: center;
|
|
36477
|
-
`,
|
|
36512
|
+
`, cG = Ce.div`
|
|
36478
36513
|
display: flex;
|
|
36479
36514
|
flex-direction: column;
|
|
36480
36515
|
justify-content: space-between;
|
|
36481
36516
|
padding: 5px;
|
|
36482
|
-
`,
|
|
36517
|
+
`, lG = Ce.div`
|
|
36483
36518
|
width: 60px;
|
|
36484
36519
|
justify-self: center;
|
|
36485
36520
|
align-self: center;
|
|
36486
|
-
`,
|
|
36521
|
+
`, uG = Ce.div`
|
|
36487
36522
|
background: gray;
|
|
36488
36523
|
width: 100%;
|
|
36489
36524
|
height: 1px;
|
|
36490
|
-
`,
|
|
36525
|
+
`, dG = Ce.div`
|
|
36491
36526
|
background: gray;
|
|
36492
36527
|
width: 1px;
|
|
36493
36528
|
height: 100%;
|
|
36494
|
-
`,
|
|
36529
|
+
`, fG = Ce.div`
|
|
36495
36530
|
padding: 5px;
|
|
36496
|
-
`,
|
|
36531
|
+
`, pG = (e) => {
|
|
36497
36532
|
let { model: t, onChangeModel: n } = e, { rowLabels: r, columnLabels: i, matrixValues: a, spellCheckEnabled: o } = t, s = (e, r) => {
|
|
36498
36533
|
let i = { ...a };
|
|
36499
|
-
|
|
36534
|
+
RW(r) ? i[e] = parseInt(r, 10) : delete i[e], n({
|
|
36500
36535
|
...t,
|
|
36501
36536
|
matrixValues: i
|
|
36502
36537
|
});
|
|
@@ -36516,16 +36551,16 @@ var eG = "120px", tG = Ce.div`
|
|
|
36516
36551
|
let s = e, c = { ...a };
|
|
36517
36552
|
r.forEach((e, t) => {
|
|
36518
36553
|
switch (i) {
|
|
36519
|
-
case
|
|
36554
|
+
case $W.clear:
|
|
36520
36555
|
delete c[`${t}-${s}`];
|
|
36521
36556
|
break;
|
|
36522
|
-
case
|
|
36557
|
+
case $W.sortAscending:
|
|
36523
36558
|
c[`${t}-${s}`] = t + 1;
|
|
36524
36559
|
break;
|
|
36525
|
-
case
|
|
36560
|
+
case $W.sortDescending:
|
|
36526
36561
|
c[`${t}-${s}`] = r.length - t;
|
|
36527
36562
|
break;
|
|
36528
|
-
case
|
|
36563
|
+
case $W.set:
|
|
36529
36564
|
c[`${t}-${s}`] = o;
|
|
36530
36565
|
break;
|
|
36531
36566
|
default: throw "Incorrect actionType";
|
|
@@ -36538,16 +36573,16 @@ var eG = "120px", tG = Ce.div`
|
|
|
36538
36573
|
let c = e, l = { ...a };
|
|
36539
36574
|
i.forEach((e, t) => {
|
|
36540
36575
|
switch (o) {
|
|
36541
|
-
case
|
|
36576
|
+
case $W.clear:
|
|
36542
36577
|
delete l[`${c}-${t}`];
|
|
36543
36578
|
break;
|
|
36544
|
-
case
|
|
36579
|
+
case $W.sortAscending:
|
|
36545
36580
|
l[`${c}-${t}`] = c + 1;
|
|
36546
36581
|
break;
|
|
36547
|
-
case
|
|
36582
|
+
case $W.sortDescending:
|
|
36548
36583
|
l[`${c}-${t}`] = r.length - c;
|
|
36549
36584
|
break;
|
|
36550
|
-
case
|
|
36585
|
+
case $W.set:
|
|
36551
36586
|
l[`${c}-${t}`] = s;
|
|
36552
36587
|
break;
|
|
36553
36588
|
default: throw "Incorrect actionType";
|
|
@@ -36557,73 +36592,73 @@ var eG = "120px", tG = Ce.div`
|
|
|
36557
36592
|
matrixValues: l
|
|
36558
36593
|
});
|
|
36559
36594
|
};
|
|
36560
|
-
return /* @__PURE__ */ N(
|
|
36595
|
+
return /* @__PURE__ */ N(nG, { children: [
|
|
36561
36596
|
/* @__PURE__ */ M("div", {}),
|
|
36562
|
-
/* @__PURE__ */ M(
|
|
36563
|
-
/* @__PURE__ */ M(
|
|
36597
|
+
/* @__PURE__ */ M(dG, {}),
|
|
36598
|
+
/* @__PURE__ */ M(rG, { children: i.map((e, t) => /* @__PURE__ */ M(iG, { children: /* @__PURE__ */ M(eG, {
|
|
36564
36599
|
resourceIndex: t,
|
|
36565
36600
|
onAction: u,
|
|
36566
36601
|
value: e,
|
|
36567
36602
|
onLabelUpdate: (e) => c(t, e),
|
|
36568
36603
|
spellCheck: o
|
|
36569
36604
|
}) }, t)) }),
|
|
36570
|
-
/* @__PURE__ */ M(lG, {}),
|
|
36571
36605
|
/* @__PURE__ */ M(uG, {}),
|
|
36572
|
-
/* @__PURE__ */ M(
|
|
36573
|
-
/* @__PURE__ */ M(
|
|
36606
|
+
/* @__PURE__ */ M(dG, {}),
|
|
36607
|
+
/* @__PURE__ */ M(uG, {}),
|
|
36608
|
+
/* @__PURE__ */ M(cG, { children: r.map((e, t) => /* @__PURE__ */ M(aG, { children: /* @__PURE__ */ M(eG, {
|
|
36574
36609
|
resourceIndex: t,
|
|
36575
36610
|
onAction: d,
|
|
36576
36611
|
value: e,
|
|
36577
36612
|
onLabelUpdate: (e) => l(t, e),
|
|
36578
36613
|
spellCheck: o
|
|
36579
36614
|
}) }, t)) }),
|
|
36580
|
-
/* @__PURE__ */ M(
|
|
36581
|
-
/* @__PURE__ */ M(
|
|
36615
|
+
/* @__PURE__ */ M(dG, {}),
|
|
36616
|
+
/* @__PURE__ */ M(fG, { children: r.map((e, t) => /* @__PURE__ */ M(oG, { children: i.map((e, n) => {
|
|
36582
36617
|
let r = `${t}-${n}`;
|
|
36583
|
-
return /* @__PURE__ */ M(
|
|
36618
|
+
return /* @__PURE__ */ M(sG, { children: /* @__PURE__ */ M(lG, { children: /* @__PURE__ */ M(LW, {
|
|
36584
36619
|
onFieldUpdate: (e) => s(r, e),
|
|
36585
36620
|
name: r,
|
|
36586
36621
|
placeholder: "#",
|
|
36587
|
-
fieldValue: { value:
|
|
36622
|
+
fieldValue: { value: RW(a[r]) ? a[r] : "" }
|
|
36588
36623
|
}) }) }, n);
|
|
36589
36624
|
}) }, t)) })
|
|
36590
36625
|
] });
|
|
36591
36626
|
};
|
|
36592
|
-
|
|
36627
|
+
pG.propTypes = {
|
|
36593
36628
|
model: V.default.object.isRequired,
|
|
36594
36629
|
onChangeModel: V.default.func.isRequired
|
|
36595
36630
|
};
|
|
36596
36631
|
//#endregion
|
|
36597
36632
|
//#region src/author/Main.tsx
|
|
36598
|
-
var { Panel:
|
|
36633
|
+
var { Panel: mG, toggle: hG, radio: gG } = UU, _G = k(tW)(({ theme: e }) => ({
|
|
36599
36634
|
width: "100%",
|
|
36600
36635
|
paddingTop: e.spacing(1),
|
|
36601
36636
|
marginTop: e.spacing(2),
|
|
36602
36637
|
marginBottom: e.spacing(2)
|
|
36603
|
-
})),
|
|
36638
|
+
})), vG = k("div")(({ theme: e }) => ({
|
|
36604
36639
|
display: "flex",
|
|
36605
36640
|
flexWrap: "wrap",
|
|
36606
36641
|
width: "100%",
|
|
36607
36642
|
paddingBottom: e.spacing(2.5),
|
|
36608
36643
|
justifyContent: "space-around"
|
|
36609
|
-
})),
|
|
36644
|
+
})), yG = k("div")(({ theme: e }) => ({
|
|
36610
36645
|
fontSize: e.typography.fontSize - 2,
|
|
36611
36646
|
color: e.palette.error.main,
|
|
36612
36647
|
paddingTop: e.spacing(1)
|
|
36613
|
-
})),
|
|
36648
|
+
})), bG = (e) => {
|
|
36614
36649
|
let { model: t, configuration: n, onPromptChanged: r, imageSupport: i, uploadSoundSupport: a, onChangeModel: o, onConfigurationChanged: s, onTeacherInstructionsChanged: c } = e, { baseInputConfiguration: l = {}, contentDimensions: u = {}, prompt: d = {}, scoringType: f = {}, settingsPanelDisabled: p, spellCheck: m = {}, teacherInstructions: h = {} } = n || {}, { errors: g = {}, extraCSSRules: _, teacherInstructionsEnabled: v, spellCheckEnabled: y } = t || {}, { prompt: b, teacherInstructions: x } = g, S = {
|
|
36615
|
-
teacherInstructionsEnabled: h.settings &&
|
|
36616
|
-
spellCheckEnabled: m.settings &&
|
|
36617
|
-
scoringType: f.settings &&
|
|
36650
|
+
teacherInstructionsEnabled: h.settings && hG(h.label),
|
|
36651
|
+
spellCheckEnabled: m.settings && hG(m.label),
|
|
36652
|
+
scoringType: f.settings && gG(f.label, ["auto", "rubric"])
|
|
36618
36653
|
}, C = (e = {}) => ({
|
|
36619
36654
|
...l,
|
|
36620
36655
|
...e
|
|
36621
36656
|
});
|
|
36622
|
-
return /* @__PURE__ */ N(
|
|
36657
|
+
return /* @__PURE__ */ N(mU.ConfigLayout, {
|
|
36623
36658
|
extraCSSRules: _,
|
|
36624
36659
|
dimensions: u,
|
|
36625
36660
|
hideSettings: p,
|
|
36626
|
-
settings: /* @__PURE__ */ M(
|
|
36661
|
+
settings: /* @__PURE__ */ M(mG, {
|
|
36627
36662
|
model: t,
|
|
36628
36663
|
onChangeModel: o,
|
|
36629
36664
|
configuration: n,
|
|
@@ -36631,9 +36666,9 @@ var { Panel: pG, toggle: mG, radio: hG } = HU, gG = k(eW)(({ theme: e }) => ({
|
|
|
36631
36666
|
groups: { Properties: S }
|
|
36632
36667
|
}),
|
|
36633
36668
|
children: [
|
|
36634
|
-
v && /* @__PURE__ */ N(
|
|
36669
|
+
v && /* @__PURE__ */ N(_G, {
|
|
36635
36670
|
label: h.label,
|
|
36636
|
-
children: [/* @__PURE__ */ M(
|
|
36671
|
+
children: [/* @__PURE__ */ M(sV, {
|
|
36637
36672
|
markup: t.teacherInstructions || "",
|
|
36638
36673
|
onChange: c,
|
|
36639
36674
|
imageSupport: i,
|
|
@@ -36642,11 +36677,11 @@ var { Panel: pG, toggle: mG, radio: hG } = HU, gG = k(eW)(({ theme: e }) => ({
|
|
|
36642
36677
|
nonEmpty: !1,
|
|
36643
36678
|
spellCheck: y,
|
|
36644
36679
|
uploadSoundSupport: a
|
|
36645
|
-
}), x && /* @__PURE__ */ M(
|
|
36680
|
+
}), x && /* @__PURE__ */ M(yG, { children: x })]
|
|
36646
36681
|
}),
|
|
36647
|
-
/* @__PURE__ */ N(
|
|
36682
|
+
/* @__PURE__ */ N(_G, {
|
|
36648
36683
|
label: d.label,
|
|
36649
|
-
children: [/* @__PURE__ */ M(
|
|
36684
|
+
children: [/* @__PURE__ */ M(sV, {
|
|
36650
36685
|
markup: t.prompt,
|
|
36651
36686
|
onChange: r,
|
|
36652
36687
|
imageSupport: i,
|
|
@@ -36656,29 +36691,29 @@ var { Panel: pG, toggle: mG, radio: hG } = HU, gG = k(eW)(({ theme: e }) => ({
|
|
|
36656
36691
|
spellCheck: y,
|
|
36657
36692
|
uploadSoundSupport: a,
|
|
36658
36693
|
disableUnderline: !0
|
|
36659
|
-
}), b && /* @__PURE__ */ M(
|
|
36694
|
+
}), b && /* @__PURE__ */ M(yG, { children: b })]
|
|
36660
36695
|
}),
|
|
36661
|
-
/* @__PURE__ */ N(
|
|
36662
|
-
/* @__PURE__ */ M(
|
|
36696
|
+
/* @__PURE__ */ N(vG, { children: [
|
|
36697
|
+
/* @__PURE__ */ M(dW, {
|
|
36663
36698
|
model: t,
|
|
36664
36699
|
onChangeModel: o
|
|
36665
36700
|
}),
|
|
36666
|
-
/* @__PURE__ */ M(
|
|
36701
|
+
/* @__PURE__ */ M(uW, {
|
|
36667
36702
|
model: t,
|
|
36668
36703
|
onChangeModel: o
|
|
36669
36704
|
}),
|
|
36670
|
-
/* @__PURE__ */ M(
|
|
36705
|
+
/* @__PURE__ */ M(NW, {
|
|
36671
36706
|
model: t,
|
|
36672
36707
|
onChangeModel: o
|
|
36673
36708
|
})
|
|
36674
36709
|
] }),
|
|
36675
|
-
/* @__PURE__ */ M(
|
|
36710
|
+
/* @__PURE__ */ M(pG, {
|
|
36676
36711
|
model: t,
|
|
36677
36712
|
onChangeModel: o
|
|
36678
36713
|
})
|
|
36679
36714
|
]
|
|
36680
36715
|
});
|
|
36681
|
-
},
|
|
36716
|
+
}, xG = class extends ft.Component {
|
|
36682
36717
|
static propTypes = {
|
|
36683
36718
|
model: V.default.object.isRequired,
|
|
36684
36719
|
disableSidePanel: V.default.bool,
|
|
@@ -36708,14 +36743,14 @@ var { Panel: pG, toggle: mG, radio: hG } = HU, gG = k(eW)(({ theme: e }) => ({
|
|
|
36708
36743
|
});
|
|
36709
36744
|
};
|
|
36710
36745
|
render() {
|
|
36711
|
-
return /* @__PURE__ */ M(
|
|
36746
|
+
return /* @__PURE__ */ M(bG, {
|
|
36712
36747
|
...this.props,
|
|
36713
36748
|
onChangeModel: this.props.onModelChanged,
|
|
36714
36749
|
onPromptChanged: this.onPromptChanged,
|
|
36715
36750
|
onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
|
|
36716
36751
|
});
|
|
36717
36752
|
}
|
|
36718
|
-
},
|
|
36753
|
+
}, SG = {
|
|
36719
36754
|
model: {
|
|
36720
36755
|
columnLabels: [
|
|
36721
36756
|
"COLUMN 1",
|
|
@@ -36767,22 +36802,22 @@ var { Panel: pG, toggle: mG, radio: hG } = HU, gG = k(eW)(({ theme: e }) => ({
|
|
|
36767
36802
|
required: !1
|
|
36768
36803
|
}
|
|
36769
36804
|
}
|
|
36770
|
-
},
|
|
36771
|
-
configuration: dt(e,
|
|
36805
|
+
}, CG = (0, Lt.default)("matrix:configure"), wG = (e, t) => ({
|
|
36806
|
+
configuration: dt(e, SG.configuration),
|
|
36772
36807
|
model: t
|
|
36773
|
-
}),
|
|
36808
|
+
}), TG = class e extends HTMLElement {
|
|
36774
36809
|
static createDefaultModel = (e = {}) => ({
|
|
36775
|
-
...
|
|
36810
|
+
...SG.model,
|
|
36776
36811
|
...e
|
|
36777
36812
|
});
|
|
36778
36813
|
constructor() {
|
|
36779
|
-
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration =
|
|
36814
|
+
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = SG.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
36780
36815
|
}
|
|
36781
36816
|
set model(t) {
|
|
36782
36817
|
this._model = e.createDefaultModel(t), this._render();
|
|
36783
36818
|
}
|
|
36784
36819
|
set configuration(e) {
|
|
36785
|
-
let t =
|
|
36820
|
+
let t = wG(e, this._model);
|
|
36786
36821
|
this.onModelChanged(t.model), this._configuration = t.configuration, this._render();
|
|
36787
36822
|
}
|
|
36788
36823
|
set disableSidePanel(e) {
|
|
@@ -36796,7 +36831,7 @@ var { Panel: pG, toggle: mG, radio: hG } = HU, gG = k(eW)(({ theme: e }) => ({
|
|
|
36796
36831
|
this._model = e, this._render(), this.dispatchModelUpdated(t);
|
|
36797
36832
|
}
|
|
36798
36833
|
onConfigurationChanged(e) {
|
|
36799
|
-
this._configuration =
|
|
36834
|
+
this._configuration = wG(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
|
|
36800
36835
|
}
|
|
36801
36836
|
insertSound(e) {
|
|
36802
36837
|
this.dispatchEvent(new Bt(e));
|
|
@@ -36805,8 +36840,8 @@ var { Panel: pG, toggle: mG, radio: hG } = HU, gG = k(eW)(({ theme: e }) => ({
|
|
|
36805
36840
|
this.dispatchEvent(new zt(e, t));
|
|
36806
36841
|
}
|
|
36807
36842
|
_render() {
|
|
36808
|
-
|
|
36809
|
-
let e = ft.createElement(
|
|
36843
|
+
CG("_render");
|
|
36844
|
+
let e = ft.createElement(xG, {
|
|
36810
36845
|
model: this._model,
|
|
36811
36846
|
configuration: this._configuration,
|
|
36812
36847
|
onModelChanged: this.onModelChanged,
|
|
@@ -36827,6 +36862,6 @@ var { Panel: pG, toggle: mG, radio: hG } = HU, gG = k(eW)(({ theme: e }) => ({
|
|
|
36827
36862
|
}
|
|
36828
36863
|
};
|
|
36829
36864
|
//#endregion
|
|
36830
|
-
export {
|
|
36865
|
+
export { TG as default };
|
|
36831
36866
|
|
|
36832
36867
|
//# sourceMappingURL=index.js.map
|