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