@pie-element/multi-trait-rubric 8.1.2-next.6 → 8.1.2-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/author/index.js +735 -648
- package/dist/browser/author/index.js.map +1 -1
- package/package.json +6 -4
|
@@ -41004,8 +41004,8 @@ px.create({
|
|
|
41004
41004
|
})) ?? null };
|
|
41005
41005
|
}
|
|
41006
41006
|
});
|
|
41007
|
-
var zY = "placeholder", BY = new bd("tiptap__placeholder")
|
|
41008
|
-
function
|
|
41007
|
+
var zY = "placeholder", BY = new bd("tiptap__placeholder");
|
|
41008
|
+
function VY(e) {
|
|
41009
41009
|
let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
|
|
41010
41010
|
return o && u.push(l), g_.node(i, i + a.nodeSize, {
|
|
41011
41011
|
class: u.join(" "),
|
|
@@ -41017,156 +41017,198 @@ function HY(e) {
|
|
|
41017
41017
|
}) : n
|
|
41018
41018
|
});
|
|
41019
41019
|
}
|
|
41020
|
-
function
|
|
41020
|
+
function HY(e, t) {
|
|
41021
|
+
return typeof e == "function" ? e(t) : e;
|
|
41022
|
+
}
|
|
41023
|
+
function UY({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
|
|
41024
|
+
let { anchor: s } = i, c = [], l = e.isEmpty;
|
|
41025
|
+
return r.nodesBetween(a, o, (r, i) => {
|
|
41026
|
+
let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && xb(r);
|
|
41027
|
+
return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(VY({
|
|
41028
|
+
editor: e,
|
|
41029
|
+
isEmptyDoc: l,
|
|
41030
|
+
dataAttribute: n,
|
|
41031
|
+
hasAnchor: a,
|
|
41032
|
+
placeholder: t.placeholder,
|
|
41033
|
+
classes: {
|
|
41034
|
+
emptyEditor: t.emptyEditorClass,
|
|
41035
|
+
emptyNode: HY(t.emptyNodeClass, {
|
|
41036
|
+
editor: e,
|
|
41037
|
+
node: r,
|
|
41038
|
+
pos: i,
|
|
41039
|
+
hasAnchor: a
|
|
41040
|
+
})
|
|
41041
|
+
},
|
|
41042
|
+
node: r,
|
|
41043
|
+
pos: i
|
|
41044
|
+
})), t.includeChildren;
|
|
41045
|
+
}), c;
|
|
41046
|
+
}
|
|
41047
|
+
function WY({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
|
|
41021
41048
|
if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
|
|
41022
|
-
let { anchor: a } = i, o = [], s = e.isEmpty
|
|
41023
|
-
emptyEditor: t.emptyEditorClass,
|
|
41024
|
-
emptyNode: t.emptyNodeClass
|
|
41025
|
-
};
|
|
41049
|
+
let { anchor: a } = i, o = [], s = e.isEmpty;
|
|
41026
41050
|
if (t.showOnlyCurrent && !t.includeChildren) {
|
|
41027
|
-
let i = r.resolve(a),
|
|
41028
|
-
if (
|
|
41029
|
-
let r = a >=
|
|
41030
|
-
o.push(
|
|
41051
|
+
let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
|
|
41052
|
+
if (c && c.type.isTextblock && xb(c)) {
|
|
41053
|
+
let r = a >= l && a <= l + c.nodeSize;
|
|
41054
|
+
o.push(VY({
|
|
41031
41055
|
editor: e,
|
|
41032
41056
|
isEmptyDoc: s,
|
|
41033
41057
|
dataAttribute: n,
|
|
41034
41058
|
hasAnchor: r,
|
|
41035
41059
|
placeholder: t.placeholder,
|
|
41036
|
-
classes:
|
|
41037
|
-
|
|
41038
|
-
|
|
41060
|
+
classes: {
|
|
41061
|
+
emptyEditor: t.emptyEditorClass,
|
|
41062
|
+
emptyNode: HY(t.emptyNodeClass, {
|
|
41063
|
+
editor: e,
|
|
41064
|
+
node: c,
|
|
41065
|
+
pos: l,
|
|
41066
|
+
hasAnchor: r
|
|
41067
|
+
})
|
|
41068
|
+
},
|
|
41069
|
+
node: c,
|
|
41070
|
+
pos: l
|
|
41039
41071
|
}));
|
|
41040
41072
|
}
|
|
41041
|
-
} else {
|
|
41042
|
-
|
|
41043
|
-
|
|
41044
|
-
|
|
41045
|
-
|
|
41046
|
-
|
|
41047
|
-
|
|
41048
|
-
|
|
41049
|
-
|
|
41050
|
-
placeholder: t.placeholder,
|
|
41051
|
-
classes: c,
|
|
41052
|
-
node: r,
|
|
41053
|
-
pos: i
|
|
41054
|
-
})), t.includeChildren;
|
|
41055
|
-
});
|
|
41056
|
-
}
|
|
41073
|
+
} else o.push(...UY({
|
|
41074
|
+
editor: e,
|
|
41075
|
+
options: t,
|
|
41076
|
+
dataAttribute: n,
|
|
41077
|
+
doc: r,
|
|
41078
|
+
selection: i,
|
|
41079
|
+
from: 0,
|
|
41080
|
+
to: r.content.size
|
|
41081
|
+
}));
|
|
41057
41082
|
return y_.create(r, o);
|
|
41058
41083
|
}
|
|
41059
|
-
function
|
|
41060
|
-
|
|
41084
|
+
function GY(e, t) {
|
|
41085
|
+
let n = e.resolve(t);
|
|
41086
|
+
if (n.depth === 0) {
|
|
41087
|
+
let e = n.nodeAfter ?? n.nodeBefore;
|
|
41088
|
+
if (!e) return {
|
|
41089
|
+
from: t,
|
|
41090
|
+
to: t
|
|
41091
|
+
};
|
|
41092
|
+
let r = n.nodeAfter ? t : t - e.nodeSize;
|
|
41093
|
+
return {
|
|
41094
|
+
from: r,
|
|
41095
|
+
to: r + e.nodeSize
|
|
41096
|
+
};
|
|
41097
|
+
}
|
|
41098
|
+
let r = n.before(1);
|
|
41099
|
+
return {
|
|
41100
|
+
from: r,
|
|
41101
|
+
to: r + n.node(1).nodeSize
|
|
41102
|
+
};
|
|
41061
41103
|
}
|
|
41062
|
-
function
|
|
41063
|
-
|
|
41064
|
-
|
|
41104
|
+
function KY(e, t) {
|
|
41105
|
+
return {
|
|
41106
|
+
from: Math.max(0, t.from - 1),
|
|
41107
|
+
to: Math.min(e.content.size, t.to - 1)
|
|
41108
|
+
};
|
|
41065
41109
|
}
|
|
41066
|
-
function
|
|
41067
|
-
let
|
|
41068
|
-
|
|
41069
|
-
|
|
41070
|
-
|
|
41071
|
-
|
|
41072
|
-
|
|
41073
|
-
|
|
41074
|
-
|
|
41075
|
-
|
|
41076
|
-
|
|
41077
|
-
|
|
41078
|
-
|
|
41079
|
-
|
|
41110
|
+
function qY(e, t, n) {
|
|
41111
|
+
let r = [];
|
|
41112
|
+
return e.forEach((e, i) => {
|
|
41113
|
+
let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
|
|
41114
|
+
s < n && c > t && r.push({
|
|
41115
|
+
from: a,
|
|
41116
|
+
to: o
|
|
41117
|
+
});
|
|
41118
|
+
}), r;
|
|
41119
|
+
}
|
|
41120
|
+
function JY(e) {
|
|
41121
|
+
if (e.length === 0) return [];
|
|
41122
|
+
let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
|
|
41123
|
+
for (let e = 1; e < t.length; e += 1) {
|
|
41124
|
+
let r = n[n.length - 1], i = t[e];
|
|
41125
|
+
i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
|
|
41080
41126
|
}
|
|
41081
|
-
return
|
|
41127
|
+
return n;
|
|
41082
41128
|
}
|
|
41083
|
-
function
|
|
41084
|
-
|
|
41085
|
-
|
|
41086
|
-
bottom: window.innerHeight
|
|
41087
|
-
} : e.getBoundingClientRect();
|
|
41129
|
+
function YY(e, t) {
|
|
41130
|
+
let n = qY(e, t.from, t.to);
|
|
41131
|
+
return n.push(KY(e, GY(e, t.from))), t.to > t.from ? n.push(KY(e, GY(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(KY(e, GY(e, Math.min(t.from + 1, e.content.size)))), n;
|
|
41088
41132
|
}
|
|
41089
|
-
function
|
|
41090
|
-
let r =
|
|
41091
|
-
|
|
41092
|
-
|
|
41093
|
-
|
|
41094
|
-
|
|
41095
|
-
|
|
41096
|
-
|
|
41097
|
-
|
|
41098
|
-
let
|
|
41099
|
-
left: s,
|
|
41100
|
-
top: a + 2
|
|
41101
|
-
}), l = t.posAtCoords({
|
|
41102
|
-
left: s,
|
|
41103
|
-
top: o - 2
|
|
41104
|
-
});
|
|
41133
|
+
function XY(e, t, n) {
|
|
41134
|
+
let r = [];
|
|
41135
|
+
if (e.docChanged) {
|
|
41136
|
+
let t = ub(e);
|
|
41137
|
+
for (let e of t) r.push(...YY(n.doc, e.newRange));
|
|
41138
|
+
}
|
|
41139
|
+
return e.selectionSet && (r.push(KY(n.doc, GY(n.doc, e.mapping.map(t.selection.anchor)))), r.push(KY(n.doc, GY(n.doc, n.selection.anchor)))), JY(r);
|
|
41140
|
+
}
|
|
41141
|
+
function ZY(e, t, n) {
|
|
41142
|
+
let r = Math.max(0, Math.min(e, n.content.size));
|
|
41105
41143
|
return {
|
|
41106
|
-
|
|
41107
|
-
|
|
41144
|
+
from: r,
|
|
41145
|
+
to: Math.max(r, Math.min(t, n.content.size))
|
|
41108
41146
|
};
|
|
41109
41147
|
}
|
|
41110
|
-
|
|
41111
|
-
|
|
41112
|
-
|
|
41113
|
-
|
|
41114
|
-
|
|
41115
|
-
|
|
41116
|
-
|
|
41117
|
-
|
|
41118
|
-
|
|
41119
|
-
|
|
41120
|
-
|
|
41121
|
-
|
|
41122
|
-
|
|
41123
|
-
|
|
41124
|
-
|
|
41125
|
-
} : t;
|
|
41148
|
+
function QY({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
|
|
41149
|
+
let s = e;
|
|
41150
|
+
for (let e of t) {
|
|
41151
|
+
let { from: t, to: c } = ZY(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
|
|
41152
|
+
l.length && (s = s.remove(l));
|
|
41153
|
+
let u = UY({
|
|
41154
|
+
editor: n,
|
|
41155
|
+
options: r,
|
|
41156
|
+
dataAttribute: i,
|
|
41157
|
+
doc: a,
|
|
41158
|
+
selection: o,
|
|
41159
|
+
from: t,
|
|
41160
|
+
to: c
|
|
41161
|
+
});
|
|
41162
|
+
u.length && (s = s.add(a, u));
|
|
41126
41163
|
}
|
|
41127
|
-
|
|
41128
|
-
|
|
41129
|
-
|
|
41130
|
-
|
|
41131
|
-
|
|
41132
|
-
|
|
41133
|
-
|
|
41134
|
-
|
|
41135
|
-
|
|
41136
|
-
|
|
41137
|
-
|
|
41138
|
-
|
|
41139
|
-
r === null && (r = requestAnimationFrame(() => {
|
|
41140
|
-
r = null;
|
|
41141
|
-
let e = performance.now();
|
|
41142
|
-
e - i >= 150 ? (i = e, n()) : a();
|
|
41143
|
-
}));
|
|
41144
|
-
};
|
|
41145
|
-
return t.addEventListener("scroll", a, { passive: !0 }), n(), {
|
|
41146
|
-
update(t, n) {
|
|
41147
|
-
e.state.doc.content.size !== n.doc.content.size && a();
|
|
41164
|
+
return s;
|
|
41165
|
+
}
|
|
41166
|
+
function $Y({ editor: e, options: t, dataAttribute: n }) {
|
|
41167
|
+
return {
|
|
41168
|
+
init(r, i) {
|
|
41169
|
+
return WY({
|
|
41170
|
+
editor: e,
|
|
41171
|
+
options: t,
|
|
41172
|
+
dataAttribute: n,
|
|
41173
|
+
doc: i.doc,
|
|
41174
|
+
selection: i.selection
|
|
41175
|
+
}) ?? y_.empty;
|
|
41148
41176
|
},
|
|
41149
|
-
|
|
41150
|
-
r
|
|
41177
|
+
apply(r, i, a, o) {
|
|
41178
|
+
return !r.docChanged && !r.selectionSet ? i : QY({
|
|
41179
|
+
decorations: i.map(r.mapping, r.doc),
|
|
41180
|
+
ranges: XY(r, a, o),
|
|
41181
|
+
editor: e,
|
|
41182
|
+
options: t,
|
|
41183
|
+
dataAttribute: n,
|
|
41184
|
+
doc: o.doc,
|
|
41185
|
+
selection: o.selection
|
|
41186
|
+
});
|
|
41151
41187
|
}
|
|
41152
41188
|
};
|
|
41153
41189
|
}
|
|
41154
|
-
function
|
|
41155
|
-
|
|
41190
|
+
function eX(e) {
|
|
41191
|
+
return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
41192
|
+
}
|
|
41193
|
+
function tX({ editor: e, options: t }) {
|
|
41194
|
+
let n = t.dataAttribute ? `data-${eX(t.dataAttribute)}` : `data-${zY}`, r = t.showOnlyCurrent && !t.includeChildren;
|
|
41156
41195
|
return new _d({
|
|
41157
41196
|
key: BY,
|
|
41158
|
-
state:
|
|
41159
|
-
|
|
41160
|
-
|
|
41197
|
+
...r ? {} : { state: $Y({
|
|
41198
|
+
editor: e,
|
|
41199
|
+
options: t,
|
|
41200
|
+
dataAttribute: n
|
|
41201
|
+
}) },
|
|
41202
|
+
props: { decorations: r ? ({ doc: r, selection: i }) => WY({
|
|
41161
41203
|
editor: e,
|
|
41162
41204
|
options: t,
|
|
41163
41205
|
dataAttribute: n,
|
|
41164
41206
|
doc: r,
|
|
41165
41207
|
selection: i
|
|
41166
|
-
}) }
|
|
41208
|
+
}) : (n) => t.showOnlyWhenEditable && !e.isEditable ? y_.empty : BY.getState(n) ?? y_.empty }
|
|
41167
41209
|
});
|
|
41168
41210
|
}
|
|
41169
|
-
var
|
|
41211
|
+
var nX = px.create({
|
|
41170
41212
|
name: "placeholder",
|
|
41171
41213
|
addOptions() {
|
|
41172
41214
|
return {
|
|
@@ -41180,12 +41222,25 @@ var QY = px.create({
|
|
|
41180
41222
|
};
|
|
41181
41223
|
},
|
|
41182
41224
|
addProseMirrorPlugins() {
|
|
41183
|
-
return [
|
|
41225
|
+
return [tX({
|
|
41184
41226
|
editor: this.editor,
|
|
41185
41227
|
options: this.options
|
|
41186
41228
|
})];
|
|
41187
41229
|
}
|
|
41188
41230
|
});
|
|
41231
|
+
function rX(e, t) {
|
|
41232
|
+
return !e.selection.empty && !Sb(e.selection) && t.isEditable;
|
|
41233
|
+
}
|
|
41234
|
+
function iX(e, t) {
|
|
41235
|
+
return rX(e, t) && !t.isFocused && !t.view.dragging;
|
|
41236
|
+
}
|
|
41237
|
+
function aX() {
|
|
41238
|
+
var e;
|
|
41239
|
+
(e = window.getSelection()) == null || e.removeAllRanges();
|
|
41240
|
+
}
|
|
41241
|
+
function oX(e) {
|
|
41242
|
+
e.focus();
|
|
41243
|
+
}
|
|
41189
41244
|
px.create({
|
|
41190
41245
|
name: "selection",
|
|
41191
41246
|
addOptions() {
|
|
@@ -41195,13 +41250,25 @@ px.create({
|
|
|
41195
41250
|
let { editor: e, options: t } = this;
|
|
41196
41251
|
return [new _d({
|
|
41197
41252
|
key: new bd("selection"),
|
|
41198
|
-
props: {
|
|
41199
|
-
|
|
41200
|
-
|
|
41253
|
+
props: {
|
|
41254
|
+
decorations(n) {
|
|
41255
|
+
return iX(n, e) ? y_.create(n.doc, [g_.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
|
|
41256
|
+
},
|
|
41257
|
+
handleDOMEvents: {
|
|
41258
|
+
blur(t) {
|
|
41259
|
+
return rX(t.state, e) && aX(), !1;
|
|
41260
|
+
},
|
|
41261
|
+
focus(t) {
|
|
41262
|
+
return rX(t.state, e) && requestAnimationFrame(() => {
|
|
41263
|
+
!e.isDestroyed && t.hasFocus() && oX(t);
|
|
41264
|
+
}), !1;
|
|
41265
|
+
}
|
|
41266
|
+
}
|
|
41267
|
+
}
|
|
41201
41268
|
})];
|
|
41202
41269
|
}
|
|
41203
41270
|
});
|
|
41204
|
-
function
|
|
41271
|
+
function sX({ types: e, node: t }) {
|
|
41205
41272
|
return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
|
|
41206
41273
|
}
|
|
41207
41274
|
px.create({
|
|
@@ -41223,7 +41290,7 @@ px.create({
|
|
|
41223
41290
|
state: {
|
|
41224
41291
|
init: (e, t) => {
|
|
41225
41292
|
let r = t.tr.doc.lastChild;
|
|
41226
|
-
return
|
|
41293
|
+
return !sX({
|
|
41227
41294
|
node: r,
|
|
41228
41295
|
types: n
|
|
41229
41296
|
});
|
|
@@ -41231,7 +41298,7 @@ px.create({
|
|
|
41231
41298
|
apply: (e, t) => {
|
|
41232
41299
|
if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
|
|
41233
41300
|
let r = e.doc.lastChild;
|
|
41234
|
-
return
|
|
41301
|
+
return !sX({
|
|
41235
41302
|
node: r,
|
|
41236
41303
|
types: n
|
|
41237
41304
|
});
|
|
@@ -41266,7 +41333,7 @@ px.create({
|
|
|
41266
41333
|
};
|
|
41267
41334
|
}
|
|
41268
41335
|
});
|
|
41269
|
-
var
|
|
41336
|
+
var cX = ax.create({
|
|
41270
41337
|
name: "superscript",
|
|
41271
41338
|
addOptions() {
|
|
41272
41339
|
return { HTMLAttributes: {} };
|
|
@@ -41296,7 +41363,7 @@ var eX = ax.create({
|
|
|
41296
41363
|
addKeyboardShortcuts() {
|
|
41297
41364
|
return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
|
|
41298
41365
|
}
|
|
41299
|
-
}),
|
|
41366
|
+
}), lX = ax.create({
|
|
41300
41367
|
name: "subscript",
|
|
41301
41368
|
addOptions() {
|
|
41302
41369
|
return { HTMLAttributes: {} };
|
|
@@ -41326,7 +41393,7 @@ var eX = ax.create({
|
|
|
41326
41393
|
addKeyboardShortcuts() {
|
|
41327
41394
|
return { "Mod-,": () => this.editor.commands.toggleSubscript() };
|
|
41328
41395
|
}
|
|
41329
|
-
}),
|
|
41396
|
+
}), uX = px.create({
|
|
41330
41397
|
name: "textAlign",
|
|
41331
41398
|
addOptions() {
|
|
41332
41399
|
return {
|
|
@@ -41368,7 +41435,7 @@ var eX = ax.create({
|
|
|
41368
41435
|
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
41369
41436
|
};
|
|
41370
41437
|
}
|
|
41371
|
-
}),
|
|
41438
|
+
}), dX = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, fX = Ux.create({
|
|
41372
41439
|
name: "image",
|
|
41373
41440
|
addOptions() {
|
|
41374
41441
|
return {
|
|
@@ -41461,7 +41528,7 @@ var eX = ax.create({
|
|
|
41461
41528
|
},
|
|
41462
41529
|
addInputRules() {
|
|
41463
41530
|
return [kx({
|
|
41464
|
-
find:
|
|
41531
|
+
find: dX,
|
|
41465
41532
|
type: this.type,
|
|
41466
41533
|
getAttributes: (e) => {
|
|
41467
41534
|
let [, , t, n, r] = e;
|
|
@@ -41473,17 +41540,17 @@ var eX = ax.create({
|
|
|
41473
41540
|
}
|
|
41474
41541
|
})];
|
|
41475
41542
|
}
|
|
41476
|
-
}),
|
|
41543
|
+
}), pX = nX, mX = {
|
|
41477
41544
|
position: "bottom",
|
|
41478
41545
|
alignment: "left",
|
|
41479
41546
|
alwaysVisible: !1,
|
|
41480
41547
|
showDone: !0,
|
|
41481
41548
|
doneOn: "blur"
|
|
41482
|
-
},
|
|
41549
|
+
}, hX = {
|
|
41483
41550
|
options: {},
|
|
41484
41551
|
respAreaToolbar: () => {},
|
|
41485
41552
|
onHandleAreaChange: () => {}
|
|
41486
|
-
},
|
|
41553
|
+
}, gX = [
|
|
41487
41554
|
"bold",
|
|
41488
41555
|
"italic",
|
|
41489
41556
|
"underline",
|
|
@@ -41505,7 +41572,7 @@ var eX = ax.create({
|
|
|
41505
41572
|
"h3",
|
|
41506
41573
|
"undo",
|
|
41507
41574
|
"redo"
|
|
41508
|
-
],
|
|
41575
|
+
], _X = {
|
|
41509
41576
|
"--white": "#fff",
|
|
41510
41577
|
"--black": "#2e2b29",
|
|
41511
41578
|
"--black-contrast": "#110f0e",
|
|
@@ -41524,14 +41591,18 @@ var eX = ax.create({
|
|
|
41524
41591
|
"--red": "#ff5c33",
|
|
41525
41592
|
"--red-light": "#ffebe5",
|
|
41526
41593
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
41527
|
-
},
|
|
41594
|
+
}, vX = (e) => ({
|
|
41595
|
+
spellcheck: e ? "true" : "false",
|
|
41596
|
+
autocorrect: e ? "on" : "off",
|
|
41597
|
+
autocapitalize: e ? "on" : "off"
|
|
41598
|
+
}), yX = (e) => {
|
|
41528
41599
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = ot([]), [a, o] = ot(!1), { toolbarOpts: s } = e, c = $e((e) => {
|
|
41529
41600
|
i((t) => {
|
|
41530
41601
|
let n = t.filter((t) => t.pos !== e);
|
|
41531
41602
|
return n.length === 0 && o(!1), n;
|
|
41532
41603
|
});
|
|
41533
41604
|
}, [i]), l = {
|
|
41534
|
-
...
|
|
41605
|
+
...mX,
|
|
41535
41606
|
...s
|
|
41536
41607
|
}, u = $e((t) => {
|
|
41537
41608
|
let n = t.getHTML();
|
|
@@ -41542,13 +41613,13 @@ var eX = ax.create({
|
|
|
41542
41613
|
e.onDone,
|
|
41543
41614
|
l.doneOn
|
|
41544
41615
|
]), d = rt(() => ({
|
|
41545
|
-
...
|
|
41616
|
+
...hX,
|
|
41546
41617
|
...e.responseAreaProps,
|
|
41547
41618
|
onInlineDropdownToolbarClose: u
|
|
41548
41619
|
}), [e.responseAreaProps, u]), f = rt(() => {
|
|
41549
41620
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
41550
41621
|
t ||= [];
|
|
41551
|
-
let r = (e.activePlugins ||
|
|
41622
|
+
let r = (e.activePlugins || gX)?.filter((e) => {
|
|
41552
41623
|
let t = uc[e] || e, r = n[t] || {};
|
|
41553
41624
|
return !r || !r.disabled;
|
|
41554
41625
|
});
|
|
@@ -41566,103 +41637,112 @@ var eX = ax.create({
|
|
|
41566
41637
|
setKeypadInteraction: {},
|
|
41567
41638
|
media: {}
|
|
41568
41639
|
});
|
|
41569
|
-
}, [e, d.type]), p =
|
|
41570
|
-
|
|
41571
|
-
|
|
41572
|
-
|
|
41573
|
-
|
|
41574
|
-
|
|
41575
|
-
|
|
41576
|
-
|
|
41577
|
-
|
|
41578
|
-
|
|
41579
|
-
|
|
41580
|
-
|
|
41581
|
-
|
|
41582
|
-
|
|
41583
|
-
|
|
41584
|
-
|
|
41585
|
-
|
|
41586
|
-
|
|
41587
|
-
|
|
41588
|
-
|
|
41589
|
-
|
|
41590
|
-
|
|
41591
|
-
|
|
41592
|
-
|
|
41593
|
-
|
|
41594
|
-
|
|
41595
|
-
|
|
41640
|
+
}, [e, d.type]), p = [
|
|
41641
|
+
uX.configure({
|
|
41642
|
+
types: [
|
|
41643
|
+
"heading",
|
|
41644
|
+
"paragraph",
|
|
41645
|
+
"div",
|
|
41646
|
+
"headingParagraph",
|
|
41647
|
+
"h1",
|
|
41648
|
+
"h2",
|
|
41649
|
+
"h3",
|
|
41650
|
+
"h4",
|
|
41651
|
+
"h5",
|
|
41652
|
+
"h6",
|
|
41653
|
+
"td",
|
|
41654
|
+
"th"
|
|
41655
|
+
],
|
|
41656
|
+
alignments: [
|
|
41657
|
+
"left",
|
|
41658
|
+
"right",
|
|
41659
|
+
"center",
|
|
41660
|
+
"justify"
|
|
41661
|
+
]
|
|
41662
|
+
}),
|
|
41663
|
+
LY,
|
|
41664
|
+
RY.configure({ limit: e.charactersLimit || 1e6 }),
|
|
41665
|
+
DY.configure({
|
|
41666
|
+
trailingNode: {
|
|
41596
41667
|
node: "paragraph",
|
|
41597
41668
|
notAfter: ["paragraph", "div"]
|
|
41598
|
-
}
|
|
41599
|
-
|
|
41600
|
-
|
|
41601
|
-
|
|
41602
|
-
|
|
41603
|
-
|
|
41604
|
-
|
|
41605
|
-
|
|
41606
|
-
|
|
41607
|
-
|
|
41608
|
-
|
|
41609
|
-
|
|
41610
|
-
|
|
41611
|
-
|
|
41612
|
-
|
|
41613
|
-
|
|
41614
|
-
|
|
41615
|
-
|
|
41616
|
-
|
|
41617
|
-
|
|
41618
|
-
|
|
41619
|
-
|
|
41620
|
-
|
|
41621
|
-
|
|
41622
|
-
|
|
41623
|
-
|
|
41624
|
-
|
|
41625
|
-
|
|
41626
|
-
|
|
41627
|
-
|
|
41628
|
-
|
|
41629
|
-
|
|
41630
|
-
|
|
41631
|
-
|
|
41632
|
-
|
|
41633
|
-
|
|
41634
|
-
|
|
41635
|
-
|
|
41636
|
-
|
|
41637
|
-
|
|
41638
|
-
|
|
41639
|
-
|
|
41640
|
-
|
|
41641
|
-
|
|
41642
|
-
|
|
41643
|
-
|
|
41644
|
-
|
|
41645
|
-
|
|
41646
|
-
|
|
41647
|
-
|
|
41648
|
-
|
|
41649
|
-
|
|
41650
|
-
|
|
41651
|
-
|
|
41652
|
-
|
|
41653
|
-
|
|
41654
|
-
|
|
41655
|
-
|
|
41656
|
-
|
|
41657
|
-
|
|
41658
|
-
|
|
41659
|
-
|
|
41660
|
-
|
|
41661
|
-
|
|
41669
|
+
},
|
|
41670
|
+
link: {
|
|
41671
|
+
autolink: !1,
|
|
41672
|
+
linkOnPaste: !1
|
|
41673
|
+
}
|
|
41674
|
+
}),
|
|
41675
|
+
jB,
|
|
41676
|
+
xO,
|
|
41677
|
+
MB,
|
|
41678
|
+
SO,
|
|
41679
|
+
CO,
|
|
41680
|
+
pX.configure({
|
|
41681
|
+
placeholder: e.placeholder,
|
|
41682
|
+
showOnlyWhenEditable: !0,
|
|
41683
|
+
showOnlyCurrent: !1,
|
|
41684
|
+
includeChildren: !0
|
|
41685
|
+
}),
|
|
41686
|
+
_O,
|
|
41687
|
+
tO,
|
|
41688
|
+
bO,
|
|
41689
|
+
yO,
|
|
41690
|
+
gR.configure(d),
|
|
41691
|
+
_R.configure(d),
|
|
41692
|
+
yR.configure(d),
|
|
41693
|
+
bR.configure(d),
|
|
41694
|
+
vR.configure(d),
|
|
41695
|
+
rz.configure({
|
|
41696
|
+
toolbarOpts: l,
|
|
41697
|
+
math: e.pluginProps?.math || {}
|
|
41698
|
+
}),
|
|
41699
|
+
lX,
|
|
41700
|
+
cX,
|
|
41701
|
+
fX,
|
|
41702
|
+
Cz.configure({
|
|
41703
|
+
toolbarOpts: l,
|
|
41704
|
+
imageHandling: {
|
|
41705
|
+
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
41706
|
+
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
41707
|
+
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
41708
|
+
let { src: n } = t.attrs;
|
|
41709
|
+
e.imageSupport.delete(n, (e) => {
|
|
41710
|
+
c(t.pos);
|
|
41711
|
+
});
|
|
41712
|
+
}),
|
|
41713
|
+
insertImageRequested: e.imageSupport && ((t, n, r) => {
|
|
41714
|
+
let [o, s] = n, l = (n) => {
|
|
41715
|
+
let r;
|
|
41716
|
+
a && n && (r = e.onChange), c(s), r?.(t.getHTML());
|
|
41717
|
+
};
|
|
41718
|
+
t._insertingImage = !0, i((e) => [...e, o]), (() => {
|
|
41719
|
+
let n = r(l), i = Dt(() => {
|
|
41720
|
+
let e = () => window.removeEventListener("focus", i);
|
|
41721
|
+
if (!t._insertingImage) {
|
|
41722
|
+
e();
|
|
41723
|
+
return;
|
|
41724
|
+
}
|
|
41725
|
+
c(s), t._insertingImage = !1, e();
|
|
41726
|
+
}, 500);
|
|
41727
|
+
window.addEventListener("focus", i), e.imageSupport.add(n);
|
|
41728
|
+
})();
|
|
41729
|
+
}),
|
|
41730
|
+
maxImageWidth: e.maxImageWidth,
|
|
41731
|
+
maxImageHeight: e.maxImageHeight
|
|
41732
|
+
},
|
|
41733
|
+
limit: 3
|
|
41734
|
+
}),
|
|
41735
|
+
Wz.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
41736
|
+
Xz.configure({ extraCSSRules: e.extraCSSRules })
|
|
41737
|
+
], m = e.spellCheck !== !1, h = Yk({
|
|
41738
|
+
extensions: p,
|
|
41662
41739
|
immediatelyRender: !1,
|
|
41663
|
-
editorProps: {
|
|
41664
|
-
|
|
41665
|
-
|
|
41740
|
+
editorProps: {
|
|
41741
|
+
attributes: vX(m),
|
|
41742
|
+
handleKeyDown(t, n) {
|
|
41743
|
+
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
41744
|
+
}
|
|
41745
|
+
},
|
|
41666
41746
|
editable: !e.disabled,
|
|
41667
41747
|
content: hc(e.markup),
|
|
41668
41748
|
onUpdate: ({ editor: t, transaction: n }) => {
|
|
@@ -41673,22 +41753,29 @@ var eX = ax.create({
|
|
|
41673
41753
|
}
|
|
41674
41754
|
}, [e.charactersLimit]);
|
|
41675
41755
|
P(() => {
|
|
41676
|
-
e.editorRef && e.editorRef(
|
|
41677
|
-
}, [e.editorRef,
|
|
41678
|
-
|
|
41679
|
-
}, [e.disabled,
|
|
41680
|
-
if (!
|
|
41756
|
+
e.editorRef && e.editorRef(h);
|
|
41757
|
+
}, [e.editorRef, h]), P(() => {
|
|
41758
|
+
h?.setEditable(!e.disabled);
|
|
41759
|
+
}, [e.disabled, h]), P(() => {
|
|
41760
|
+
if (!h) return;
|
|
41761
|
+
let e = h.options?.editorProps, t = vX(m);
|
|
41762
|
+
e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
|
|
41763
|
+
...e,
|
|
41764
|
+
attributes: t
|
|
41765
|
+
} });
|
|
41766
|
+
}, [m, h]), P(() => {
|
|
41767
|
+
if (!h) return;
|
|
41681
41768
|
let t = hc(e.markup);
|
|
41682
|
-
t !==
|
|
41683
|
-
}, [e.markup,
|
|
41684
|
-
Object.entries(
|
|
41769
|
+
t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
|
|
41770
|
+
}, [e.markup, h]), P(() => {
|
|
41771
|
+
Object.entries(_X).forEach(([e, t]) => {
|
|
41685
41772
|
document.documentElement.style.setProperty(e, t);
|
|
41686
41773
|
});
|
|
41687
41774
|
}, []);
|
|
41688
|
-
let
|
|
41689
|
-
editor:
|
|
41775
|
+
let g = Gk({
|
|
41776
|
+
editor: h,
|
|
41690
41777
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
41691
|
-
}),
|
|
41778
|
+
}), _ = rt(() => {
|
|
41692
41779
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
41693
41780
|
return {
|
|
41694
41781
|
width: NB(n),
|
|
@@ -41703,20 +41790,20 @@ var eX = ax.create({
|
|
|
41703
41790
|
...e,
|
|
41704
41791
|
activePlugins: f,
|
|
41705
41792
|
toolbarOpts: l,
|
|
41706
|
-
editorState:
|
|
41707
|
-
editor:
|
|
41708
|
-
children:
|
|
41793
|
+
editorState: g,
|
|
41794
|
+
editor: h,
|
|
41795
|
+
children: h && /* @__PURE__ */ F(bX, {
|
|
41709
41796
|
style: {
|
|
41710
|
-
minHeight:
|
|
41711
|
-
height:
|
|
41712
|
-
maxHeight:
|
|
41797
|
+
minHeight: _.minHeight,
|
|
41798
|
+
height: _.height,
|
|
41799
|
+
maxHeight: _.maxHeight
|
|
41713
41800
|
},
|
|
41714
41801
|
showParagraph: t && !t.disabled,
|
|
41715
41802
|
separateParagraph: n && !n.disabled,
|
|
41716
|
-
editor:
|
|
41803
|
+
editor: h
|
|
41717
41804
|
})
|
|
41718
41805
|
});
|
|
41719
|
-
},
|
|
41806
|
+
}, bX = j(Hk, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
41720
41807
|
display: "flex",
|
|
41721
41808
|
outline: "none !important",
|
|
41722
41809
|
"& .ProseMirror": {
|
|
@@ -41744,7 +41831,7 @@ var eX = ax.create({
|
|
|
41744
41831
|
} },
|
|
41745
41832
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
41746
41833
|
}
|
|
41747
|
-
})),
|
|
41834
|
+
})), xX = yX, SX = j(Os)(() => ({})), CX = class extends N.Component {
|
|
41748
41835
|
static propTypes = {
|
|
41749
41836
|
className: L.default.string,
|
|
41750
41837
|
contentClassName: L.default.string,
|
|
@@ -41765,7 +41852,7 @@ var eX = ax.create({
|
|
|
41765
41852
|
indicatorColor: "primary",
|
|
41766
41853
|
value: e,
|
|
41767
41854
|
onChange: this.handleChange,
|
|
41768
|
-
children: N.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(
|
|
41855
|
+
children: N.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(SX, { label: e.props.title }, t) : null)
|
|
41769
41856
|
}), /* @__PURE__ */ F("div", {
|
|
41770
41857
|
className: r,
|
|
41771
41858
|
style: i,
|
|
@@ -41773,7 +41860,7 @@ var eX = ax.create({
|
|
|
41773
41860
|
})]
|
|
41774
41861
|
});
|
|
41775
41862
|
}
|
|
41776
|
-
},
|
|
41863
|
+
}, wX = j(ga)(({ theme: e, mini: t }) => ({
|
|
41777
41864
|
margin: 0,
|
|
41778
41865
|
marginLeft: 0,
|
|
41779
41866
|
padding: 0,
|
|
@@ -41787,7 +41874,7 @@ var eX = ax.create({
|
|
|
41787
41874
|
fontSize: e.typography.fontSize - 3
|
|
41788
41875
|
}
|
|
41789
41876
|
}
|
|
41790
|
-
})),
|
|
41877
|
+
})), TX = j(Ni)(({ theme: e, mini: t, error: n }) => ({
|
|
41791
41878
|
color: `${A.tertiary()} !important`,
|
|
41792
41879
|
...t && {
|
|
41793
41880
|
margin: 0,
|
|
@@ -41796,9 +41883,9 @@ var eX = ax.create({
|
|
|
41796
41883
|
height: e.spacing(3)
|
|
41797
41884
|
},
|
|
41798
41885
|
...n && { color: `${e.palette.error.main} !important` }
|
|
41799
|
-
})),
|
|
41886
|
+
})), EX = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(wX, {
|
|
41800
41887
|
mini: e,
|
|
41801
|
-
control: /* @__PURE__ */ F(
|
|
41888
|
+
control: /* @__PURE__ */ F(TX, {
|
|
41802
41889
|
checked: t,
|
|
41803
41890
|
onChange: n,
|
|
41804
41891
|
value: r,
|
|
@@ -41807,21 +41894,21 @@ var eX = ax.create({
|
|
|
41807
41894
|
}),
|
|
41808
41895
|
label: i
|
|
41809
41896
|
});
|
|
41810
|
-
|
|
41897
|
+
EX.propTypes = {
|
|
41811
41898
|
mini: L.default.bool,
|
|
41812
41899
|
checked: L.default.bool.isRequired,
|
|
41813
41900
|
onChange: L.default.func.isRequired,
|
|
41814
41901
|
value: L.default.string,
|
|
41815
41902
|
label: L.default.string.isRequired,
|
|
41816
41903
|
error: L.default.bool
|
|
41817
|
-
},
|
|
41904
|
+
}, EX.defaultProps = {
|
|
41818
41905
|
value: "",
|
|
41819
41906
|
mini: !1,
|
|
41820
41907
|
error: !1
|
|
41821
41908
|
};
|
|
41822
41909
|
//#endregion
|
|
41823
41910
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
41824
|
-
var
|
|
41911
|
+
var DX = (0, sc.default)("@pie-lib:config-ui:number-text-field"), OX = j(rc)(({ theme: e }) => ({
|
|
41825
41912
|
marginRight: e.spacing(1),
|
|
41826
41913
|
"& .MuiInputLabel-root": {
|
|
41827
41914
|
width: "auto",
|
|
@@ -41843,11 +41930,11 @@ var vX = (0, sc.default)("@pie-lib:config-ui:number-text-field"), yX = j(rc)(({
|
|
|
41843
41930
|
minHeight: "auto",
|
|
41844
41931
|
padding: "6px 0 7px"
|
|
41845
41932
|
}
|
|
41846
|
-
})),
|
|
41933
|
+
})), kX = (e, t) => {
|
|
41847
41934
|
if (!Nt(e) && !Nt(t)) return 0;
|
|
41848
41935
|
if (!Nt(e) && Nt(t)) return t;
|
|
41849
41936
|
if (Nt(e)) return e;
|
|
41850
|
-
},
|
|
41937
|
+
}, AX = class extends N.Component {
|
|
41851
41938
|
static propTypes = {
|
|
41852
41939
|
disabled: L.default.bool,
|
|
41853
41940
|
className: L.default.string,
|
|
@@ -41873,13 +41960,13 @@ var vX = (0, sc.default)("@pie-lib:config-ui:number-text-field"), yX = j(rc)(({
|
|
|
41873
41960
|
this.setState({ value: t });
|
|
41874
41961
|
}
|
|
41875
41962
|
clamp(e, t = this.props.min, n = this.props.max) {
|
|
41876
|
-
return Nt(e) ? (Nt(n) && (e = Math.min(e, n)), Nt(t) && (e = Math.max(e, t)), e) :
|
|
41963
|
+
return Nt(e) ? (Nt(n) && (e = Math.min(e, n)), Nt(t) && (e = Math.max(e, t)), e) : kX(t, n);
|
|
41877
41964
|
}
|
|
41878
41965
|
onBlur = (e) => {
|
|
41879
41966
|
let t = e.target.value, n = parseFloat(t);
|
|
41880
|
-
|
|
41967
|
+
DX("rawNumber: ", n);
|
|
41881
41968
|
let r = this.clamp(n);
|
|
41882
|
-
|
|
41969
|
+
DX("number: ", r), r !== this.state.value && (DX("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
41883
41970
|
this.props.onChange(e, r);
|
|
41884
41971
|
}));
|
|
41885
41972
|
};
|
|
@@ -41899,7 +41986,7 @@ var vX = (0, sc.default)("@pie-lib:config-ui:number-text-field"), yX = j(rc)(({
|
|
|
41899
41986
|
};
|
|
41900
41987
|
render() {
|
|
41901
41988
|
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();
|
|
41902
|
-
return /* @__PURE__ */ F(
|
|
41989
|
+
return /* @__PURE__ */ F(OX, {
|
|
41903
41990
|
variant: s ? "filled" : l || "standard",
|
|
41904
41991
|
inputRef: (e) => {
|
|
41905
41992
|
this.inputRef = e;
|
|
@@ -41934,19 +42021,19 @@ var vX = (0, sc.default)("@pie-lib:config-ui:number-text-field"), yX = j(rc)(({
|
|
|
41934
42021
|
};
|
|
41935
42022
|
//#endregion
|
|
41936
42023
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
41937
|
-
function
|
|
42024
|
+
function jX(e) {
|
|
41938
42025
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
41939
42026
|
}
|
|
41940
|
-
function
|
|
41941
|
-
return !e ||
|
|
42027
|
+
function MX(e, t) {
|
|
42028
|
+
return !e || jX(e) ? e : jX(e.default) ? e.default : t && jX(e[t]) ? e[t] : t && jX(e[t]?.default) ? e[t].default : e;
|
|
41942
42029
|
}
|
|
41943
|
-
var
|
|
42030
|
+
var NX = MX(Ie, "InputContainer") || MX(IX.InputContainer, "InputContainer"), PX = ge, FX = PX.default, IX = FX && typeof FX == "object" ? FX : PX, LX = j("div")(({ theme: e, direction: t }) => ({
|
|
41944
42031
|
display: "flex",
|
|
41945
42032
|
flexWrap: "wrap",
|
|
41946
42033
|
paddingLeft: 0,
|
|
41947
42034
|
marginTop: e.spacing(1),
|
|
41948
42035
|
...t === "vertical" && { flexDirection: "column" }
|
|
41949
|
-
})),
|
|
42036
|
+
})), RX = class extends N.Component {
|
|
41950
42037
|
static propTypes = {
|
|
41951
42038
|
header: L.default.string.isRequired,
|
|
41952
42039
|
className: L.default.string,
|
|
@@ -41964,10 +42051,10 @@ var wX = CX(Ie, "InputContainer") || CX(DX.InputContainer, "InputContainer"), TX
|
|
|
41964
42051
|
label: e,
|
|
41965
42052
|
value: e
|
|
41966
42053
|
} : e), s = n || oc;
|
|
41967
|
-
return /* @__PURE__ */ F(
|
|
42054
|
+
return /* @__PURE__ */ F(NX, {
|
|
41968
42055
|
label: e,
|
|
41969
42056
|
className: t,
|
|
41970
|
-
children: /* @__PURE__ */ F(
|
|
42057
|
+
children: /* @__PURE__ */ F(LX, {
|
|
41971
42058
|
direction: a,
|
|
41972
42059
|
children: o.map((e, t) => /* @__PURE__ */ F(s, {
|
|
41973
42060
|
value: e.value,
|
|
@@ -41978,7 +42065,7 @@ var wX = CX(Ie, "InputContainer") || CX(DX.InputContainer, "InputContainer"), TX
|
|
|
41978
42065
|
})
|
|
41979
42066
|
});
|
|
41980
42067
|
}
|
|
41981
|
-
},
|
|
42068
|
+
}, zX = L.default.shape({
|
|
41982
42069
|
label: L.default.string,
|
|
41983
42070
|
value: L.default.string
|
|
41984
42071
|
});
|
|
@@ -41987,14 +42074,14 @@ var wX = CX(Ie, "InputContainer") || CX(DX.InputContainer, "InputContainer"), TX
|
|
|
41987
42074
|
header: L.default.string.isRequired,
|
|
41988
42075
|
value: L.default.string.isRequired,
|
|
41989
42076
|
onChange: L.default.func.isRequired,
|
|
41990
|
-
one: L.default.oneOfType([
|
|
41991
|
-
two: L.default.oneOfType([
|
|
42077
|
+
one: L.default.oneOfType([zX, L.default.string]),
|
|
42078
|
+
two: L.default.oneOfType([zX, L.default.string]),
|
|
41992
42079
|
className: L.default.string,
|
|
41993
42080
|
customLabel: L.default.func
|
|
41994
42081
|
};
|
|
41995
42082
|
render() {
|
|
41996
42083
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
41997
|
-
return /* @__PURE__ */ F(
|
|
42084
|
+
return /* @__PURE__ */ F(RX, {
|
|
41998
42085
|
customLabel: i,
|
|
41999
42086
|
header: n,
|
|
42000
42087
|
className: r,
|
|
@@ -42006,21 +42093,21 @@ var wX = CX(Ie, "InputContainer") || CX(DX.InputContainer, "InputContainer"), TX
|
|
|
42006
42093
|
});
|
|
42007
42094
|
//#endregion
|
|
42008
42095
|
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
42009
|
-
var
|
|
42096
|
+
var BX = Object.defineProperty, VX = (e, t) => {
|
|
42010
42097
|
let n = {};
|
|
42011
|
-
for (var r in e)
|
|
42098
|
+
for (var r in e) BX(n, r, {
|
|
42012
42099
|
get: e[r],
|
|
42013
42100
|
enumerable: !0
|
|
42014
42101
|
});
|
|
42015
|
-
return t ||
|
|
42016
|
-
},
|
|
42102
|
+
return t || BX(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
42103
|
+
}, HX = j("div")(() => ({
|
|
42017
42104
|
display: "flex",
|
|
42018
42105
|
flexDirection: "column",
|
|
42019
42106
|
position: "relative"
|
|
42020
|
-
})),
|
|
42107
|
+
})), UX = j("div")(() => ({
|
|
42021
42108
|
display: "flex",
|
|
42022
42109
|
justifyContent: "space-between"
|
|
42023
|
-
})),
|
|
42110
|
+
})), WX = j("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), GX = j("div")(() => ({ flex: "1" })), KX = j("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), qX = class extends N.Component {
|
|
42024
42111
|
static propTypes = {
|
|
42025
42112
|
mode: L.default.oneOf(["tabbed", "inline"]),
|
|
42026
42113
|
secondary: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]),
|
|
@@ -42038,7 +42125,7 @@ var jX = Object.defineProperty, MX = (e, t) => {
|
|
|
42038
42125
|
} catch (e) {
|
|
42039
42126
|
console.log(e.toString());
|
|
42040
42127
|
}
|
|
42041
|
-
return /* @__PURE__ */ I(
|
|
42128
|
+
return /* @__PURE__ */ I(HX, {
|
|
42042
42129
|
style: {
|
|
42043
42130
|
minHeight: i,
|
|
42044
42131
|
minWidth: a,
|
|
@@ -42046,28 +42133,28 @@ var jX = Object.defineProperty, MX = (e, t) => {
|
|
|
42046
42133
|
maxWidth: s
|
|
42047
42134
|
},
|
|
42048
42135
|
children: [
|
|
42049
|
-
e === "inline" && /* @__PURE__ */ I(
|
|
42136
|
+
e === "inline" && /* @__PURE__ */ I(UX, { children: [/* @__PURE__ */ F(GX, {
|
|
42050
42137
|
className: "design-container",
|
|
42051
42138
|
children: n
|
|
42052
|
-
}), l && /* @__PURE__ */ F(
|
|
42139
|
+
}), l && /* @__PURE__ */ F(KX, {
|
|
42053
42140
|
className: "settings-container",
|
|
42054
42141
|
children: t
|
|
42055
42142
|
})] }),
|
|
42056
|
-
e === "tabbed" && l && /* @__PURE__ */ I(
|
|
42143
|
+
e === "tabbed" && l && /* @__PURE__ */ I(CX, {
|
|
42057
42144
|
onChange: this.onTabsChange,
|
|
42058
42145
|
contentClassName: "content-container",
|
|
42059
42146
|
indicatorColor: "primary",
|
|
42060
|
-
children: [/* @__PURE__ */ F(
|
|
42147
|
+
children: [/* @__PURE__ */ F(WX, {
|
|
42061
42148
|
title: "Design",
|
|
42062
42149
|
className: "design-container",
|
|
42063
42150
|
children: n
|
|
42064
|
-
}), /* @__PURE__ */ F(
|
|
42151
|
+
}), /* @__PURE__ */ F(WX, {
|
|
42065
42152
|
title: "Settings",
|
|
42066
42153
|
className: "settings-container",
|
|
42067
42154
|
children: t
|
|
42068
42155
|
})]
|
|
42069
42156
|
}),
|
|
42070
|
-
e === "tabbed" && !l && /* @__PURE__ */ F(
|
|
42157
|
+
e === "tabbed" && !l && /* @__PURE__ */ F(WX, {
|
|
42071
42158
|
className: "design-container",
|
|
42072
42159
|
children: n
|
|
42073
42160
|
})
|
|
@@ -42077,18 +42164,18 @@ var jX = Object.defineProperty, MX = (e, t) => {
|
|
|
42077
42164
|
};
|
|
42078
42165
|
//#endregion
|
|
42079
42166
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
42080
|
-
function
|
|
42081
|
-
return
|
|
42167
|
+
function JX() {
|
|
42168
|
+
return JX = Object.assign ? Object.assign.bind() : function(e) {
|
|
42082
42169
|
for (var t = 1; t < arguments.length; t++) {
|
|
42083
42170
|
var n = arguments[t];
|
|
42084
42171
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
42085
42172
|
}
|
|
42086
42173
|
return e;
|
|
42087
|
-
},
|
|
42174
|
+
}, JX.apply(null, arguments);
|
|
42088
42175
|
}
|
|
42089
42176
|
//#endregion
|
|
42090
42177
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
42091
|
-
function
|
|
42178
|
+
function YX(e, t) {
|
|
42092
42179
|
if (e == null) return {};
|
|
42093
42180
|
var n = {};
|
|
42094
42181
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -42099,19 +42186,19 @@ function BX(e, t) {
|
|
|
42099
42186
|
}
|
|
42100
42187
|
//#endregion
|
|
42101
42188
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
42102
|
-
function
|
|
42103
|
-
return
|
|
42189
|
+
function XX(e, t) {
|
|
42190
|
+
return XX = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
42104
42191
|
return e.__proto__ = t, e;
|
|
42105
|
-
},
|
|
42192
|
+
}, XX(e, t);
|
|
42106
42193
|
}
|
|
42107
42194
|
//#endregion
|
|
42108
42195
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
42109
|
-
function
|
|
42110
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
42196
|
+
function ZX(e, t) {
|
|
42197
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, XX(e, t);
|
|
42111
42198
|
}
|
|
42112
42199
|
//#endregion
|
|
42113
42200
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
42114
|
-
var
|
|
42201
|
+
var QX = (function() {
|
|
42115
42202
|
if (typeof Map < "u") return Map;
|
|
42116
42203
|
function e(e, t) {
|
|
42117
42204
|
var n = -1;
|
|
@@ -42150,34 +42237,34 @@ var UX = (function() {
|
|
|
42150
42237
|
}
|
|
42151
42238
|
}, t;
|
|
42152
42239
|
}();
|
|
42153
|
-
})(),
|
|
42240
|
+
})(), $X = typeof window < "u" && typeof document < "u" && window.document === document, eZ = (function() {
|
|
42154
42241
|
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")();
|
|
42155
|
-
})(),
|
|
42156
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
42242
|
+
})(), tZ = (function() {
|
|
42243
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(eZ) : function(e) {
|
|
42157
42244
|
return setTimeout(function() {
|
|
42158
42245
|
return e(Date.now());
|
|
42159
42246
|
}, 1e3 / 60);
|
|
42160
42247
|
};
|
|
42161
|
-
})(),
|
|
42162
|
-
function
|
|
42248
|
+
})(), nZ = 2;
|
|
42249
|
+
function rZ(e, t) {
|
|
42163
42250
|
var n = !1, r = !1, i = 0;
|
|
42164
42251
|
function a() {
|
|
42165
42252
|
n && (n = !1, e()), r && s();
|
|
42166
42253
|
}
|
|
42167
42254
|
function o() {
|
|
42168
|
-
|
|
42255
|
+
tZ(a);
|
|
42169
42256
|
}
|
|
42170
42257
|
function s() {
|
|
42171
42258
|
var e = Date.now();
|
|
42172
42259
|
if (n) {
|
|
42173
|
-
if (e - i <
|
|
42260
|
+
if (e - i < nZ) return;
|
|
42174
42261
|
r = !0;
|
|
42175
42262
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
42176
42263
|
i = e;
|
|
42177
42264
|
}
|
|
42178
42265
|
return s;
|
|
42179
42266
|
}
|
|
42180
|
-
var
|
|
42267
|
+
var iZ = 20, aZ = [
|
|
42181
42268
|
"top",
|
|
42182
42269
|
"right",
|
|
42183
42270
|
"bottom",
|
|
@@ -42186,9 +42273,9 @@ var YX = 20, XX = [
|
|
|
42186
42273
|
"height",
|
|
42187
42274
|
"size",
|
|
42188
42275
|
"weight"
|
|
42189
|
-
],
|
|
42276
|
+
], oZ = typeof MutationObserver < "u", sZ = function() {
|
|
42190
42277
|
function e() {
|
|
42191
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
42278
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = rZ(this.refresh.bind(this), iZ);
|
|
42192
42279
|
}
|
|
42193
42280
|
return e.prototype.addObserver = function(e) {
|
|
42194
42281
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -42205,23 +42292,23 @@ var YX = 20, XX = [
|
|
|
42205
42292
|
return e.broadcastActive();
|
|
42206
42293
|
}), e.length > 0;
|
|
42207
42294
|
}, e.prototype.connect_ = function() {
|
|
42208
|
-
|
|
42295
|
+
!$X || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), oZ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
42209
42296
|
attributes: !0,
|
|
42210
42297
|
childList: !0,
|
|
42211
42298
|
characterData: !0,
|
|
42212
42299
|
subtree: !0
|
|
42213
42300
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
42214
42301
|
}, e.prototype.disconnect_ = function() {
|
|
42215
|
-
|
|
42302
|
+
!$X || !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);
|
|
42216
42303
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
42217
42304
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
42218
|
-
|
|
42305
|
+
aZ.some(function(e) {
|
|
42219
42306
|
return !!~n.indexOf(e);
|
|
42220
42307
|
}) && this.refresh();
|
|
42221
42308
|
}, e.getInstance = function() {
|
|
42222
42309
|
return this.instance_ ||= new e(), this.instance_;
|
|
42223
42310
|
}, e.instance_ = null, e;
|
|
42224
|
-
}(),
|
|
42311
|
+
}(), cZ = (function(e, t) {
|
|
42225
42312
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
42226
42313
|
var i = r[n];
|
|
42227
42314
|
Object.defineProperty(e, i, {
|
|
@@ -42232,19 +42319,19 @@ var YX = 20, XX = [
|
|
|
42232
42319
|
});
|
|
42233
42320
|
}
|
|
42234
42321
|
return e;
|
|
42235
|
-
}),
|
|
42236
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
42237
|
-
}),
|
|
42238
|
-
function
|
|
42322
|
+
}), lZ = (function(e) {
|
|
42323
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || eZ;
|
|
42324
|
+
}), uZ = bZ(0, 0, 0, 0);
|
|
42325
|
+
function dZ(e) {
|
|
42239
42326
|
return parseFloat(e) || 0;
|
|
42240
42327
|
}
|
|
42241
|
-
function
|
|
42328
|
+
function fZ(e) {
|
|
42242
42329
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
42243
42330
|
var r = e["border-" + n + "-width"];
|
|
42244
|
-
return t +
|
|
42331
|
+
return t + dZ(r);
|
|
42245
42332
|
}, 0);
|
|
42246
42333
|
}
|
|
42247
|
-
function
|
|
42334
|
+
function pZ(e) {
|
|
42248
42335
|
for (var t = [
|
|
42249
42336
|
"top",
|
|
42250
42337
|
"right",
|
|
@@ -42252,40 +42339,40 @@ function iZ(e) {
|
|
|
42252
42339
|
"left"
|
|
42253
42340
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
42254
42341
|
var a = i[r], o = e["padding-" + a];
|
|
42255
|
-
n[a] =
|
|
42342
|
+
n[a] = dZ(o);
|
|
42256
42343
|
}
|
|
42257
42344
|
return n;
|
|
42258
42345
|
}
|
|
42259
|
-
function
|
|
42346
|
+
function mZ(e) {
|
|
42260
42347
|
var t = e.getBBox();
|
|
42261
|
-
return
|
|
42348
|
+
return bZ(0, 0, t.width, t.height);
|
|
42262
42349
|
}
|
|
42263
|
-
function
|
|
42350
|
+
function hZ(e) {
|
|
42264
42351
|
var t = e.clientWidth, n = e.clientHeight;
|
|
42265
|
-
if (!t && !n) return
|
|
42266
|
-
var r =
|
|
42267
|
-
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -=
|
|
42352
|
+
if (!t && !n) return uZ;
|
|
42353
|
+
var r = lZ(e).getComputedStyle(e), i = pZ(r), a = i.left + i.right, o = i.top + i.bottom, s = dZ(r.width), c = dZ(r.height);
|
|
42354
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= fZ(r, "left", "right") + a), Math.round(c + o) !== n && (c -= fZ(r, "top", "bottom") + o)), !_Z(e)) {
|
|
42268
42355
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
42269
42356
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
42270
42357
|
}
|
|
42271
|
-
return
|
|
42358
|
+
return bZ(i.left, i.top, s, c);
|
|
42272
42359
|
}
|
|
42273
|
-
var
|
|
42360
|
+
var gZ = (function() {
|
|
42274
42361
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
42275
|
-
return e instanceof
|
|
42362
|
+
return e instanceof lZ(e).SVGGraphicsElement;
|
|
42276
42363
|
} : function(e) {
|
|
42277
|
-
return e instanceof
|
|
42364
|
+
return e instanceof lZ(e).SVGElement && typeof e.getBBox == "function";
|
|
42278
42365
|
};
|
|
42279
42366
|
})();
|
|
42280
|
-
function
|
|
42281
|
-
return e ===
|
|
42367
|
+
function _Z(e) {
|
|
42368
|
+
return e === lZ(e).document.documentElement;
|
|
42282
42369
|
}
|
|
42283
|
-
function
|
|
42284
|
-
return
|
|
42370
|
+
function vZ(e) {
|
|
42371
|
+
return $X ? gZ(e) ? mZ(e) : hZ(e) : uZ;
|
|
42285
42372
|
}
|
|
42286
|
-
function
|
|
42373
|
+
function yZ(e) {
|
|
42287
42374
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
42288
|
-
return
|
|
42375
|
+
return cZ(a, {
|
|
42289
42376
|
x: t,
|
|
42290
42377
|
y: n,
|
|
42291
42378
|
width: r,
|
|
@@ -42296,7 +42383,7 @@ function uZ(e) {
|
|
|
42296
42383
|
left: t
|
|
42297
42384
|
}), a;
|
|
42298
42385
|
}
|
|
42299
|
-
function
|
|
42386
|
+
function bZ(e, t, n, r) {
|
|
42300
42387
|
return {
|
|
42301
42388
|
x: e,
|
|
42302
42389
|
y: t,
|
|
@@ -42304,42 +42391,42 @@ function dZ(e, t, n, r) {
|
|
|
42304
42391
|
height: r
|
|
42305
42392
|
};
|
|
42306
42393
|
}
|
|
42307
|
-
var
|
|
42394
|
+
var xZ = function() {
|
|
42308
42395
|
function e(e) {
|
|
42309
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
42396
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = bZ(0, 0, 0, 0), this.target = e;
|
|
42310
42397
|
}
|
|
42311
42398
|
return e.prototype.isActive = function() {
|
|
42312
|
-
var e =
|
|
42399
|
+
var e = vZ(this.target);
|
|
42313
42400
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
42314
42401
|
}, e.prototype.broadcastRect = function() {
|
|
42315
42402
|
var e = this.contentRect_;
|
|
42316
42403
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
42317
42404
|
}, e;
|
|
42318
|
-
}(),
|
|
42405
|
+
}(), SZ = function() {
|
|
42319
42406
|
function e(e, t) {
|
|
42320
|
-
var n =
|
|
42321
|
-
|
|
42407
|
+
var n = yZ(t);
|
|
42408
|
+
cZ(this, {
|
|
42322
42409
|
target: e,
|
|
42323
42410
|
contentRect: n
|
|
42324
42411
|
});
|
|
42325
42412
|
}
|
|
42326
42413
|
return e;
|
|
42327
|
-
}(),
|
|
42414
|
+
}(), CZ = function() {
|
|
42328
42415
|
function e(e, t, n) {
|
|
42329
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
42416
|
+
if (this.activeObservations_ = [], this.observations_ = new QX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
42330
42417
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
42331
42418
|
}
|
|
42332
42419
|
return e.prototype.observe = function(e) {
|
|
42333
42420
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42334
42421
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
42335
|
-
if (!(e instanceof
|
|
42422
|
+
if (!(e instanceof lZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
42336
42423
|
var t = this.observations_;
|
|
42337
|
-
t.has(e) || (t.set(e, new
|
|
42424
|
+
t.has(e) || (t.set(e, new xZ(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
42338
42425
|
}
|
|
42339
42426
|
}, e.prototype.unobserve = function(e) {
|
|
42340
42427
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42341
42428
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
42342
|
-
if (!(e instanceof
|
|
42429
|
+
if (!(e instanceof lZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
42343
42430
|
var t = this.observations_;
|
|
42344
42431
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
42345
42432
|
}
|
|
@@ -42353,7 +42440,7 @@ var fZ = function() {
|
|
|
42353
42440
|
}, e.prototype.broadcastActive = function() {
|
|
42354
42441
|
if (this.hasActive()) {
|
|
42355
42442
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
42356
|
-
return new
|
|
42443
|
+
return new SZ(e.target, e.broadcastRect());
|
|
42357
42444
|
});
|
|
42358
42445
|
this.callback_.call(e, t, e), this.clearActive();
|
|
42359
42446
|
}
|
|
@@ -42362,12 +42449,12 @@ var fZ = function() {
|
|
|
42362
42449
|
}, e.prototype.hasActive = function() {
|
|
42363
42450
|
return this.activeObservations_.length > 0;
|
|
42364
42451
|
}, e;
|
|
42365
|
-
}(),
|
|
42452
|
+
}(), wZ = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new QX(), TZ = function() {
|
|
42366
42453
|
function e(t) {
|
|
42367
42454
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
42368
42455
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42369
|
-
var n = new
|
|
42370
|
-
|
|
42456
|
+
var n = new CZ(t, sZ.getInstance(), this);
|
|
42457
|
+
wZ.set(this, n);
|
|
42371
42458
|
}
|
|
42372
42459
|
return e;
|
|
42373
42460
|
}();
|
|
@@ -42376,27 +42463,27 @@ var fZ = function() {
|
|
|
42376
42463
|
"unobserve",
|
|
42377
42464
|
"disconnect"
|
|
42378
42465
|
].forEach(function(e) {
|
|
42379
|
-
|
|
42466
|
+
TZ.prototype[e] = function() {
|
|
42380
42467
|
var t;
|
|
42381
|
-
return (t =
|
|
42468
|
+
return (t = wZ.get(this))[e].apply(t, arguments);
|
|
42382
42469
|
};
|
|
42383
42470
|
});
|
|
42384
|
-
var
|
|
42385
|
-
return
|
|
42386
|
-
})(),
|
|
42471
|
+
var EZ = (function() {
|
|
42472
|
+
return eZ.ResizeObserver === void 0 ? TZ : eZ.ResizeObserver;
|
|
42473
|
+
})(), DZ = [
|
|
42387
42474
|
"client",
|
|
42388
42475
|
"offset",
|
|
42389
42476
|
"scroll",
|
|
42390
42477
|
"bounds",
|
|
42391
42478
|
"margin"
|
|
42392
42479
|
];
|
|
42393
|
-
function
|
|
42480
|
+
function OZ(e) {
|
|
42394
42481
|
var t = [];
|
|
42395
|
-
return
|
|
42482
|
+
return DZ.forEach(function(n) {
|
|
42396
42483
|
e[n] && t.push(n);
|
|
42397
42484
|
}), t;
|
|
42398
42485
|
}
|
|
42399
|
-
function
|
|
42486
|
+
function kZ(e, t) {
|
|
42400
42487
|
var n = {};
|
|
42401
42488
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
42402
42489
|
top: e.clientTop,
|
|
@@ -42435,14 +42522,14 @@ function bZ(e, t) {
|
|
|
42435
42522
|
}
|
|
42436
42523
|
return n;
|
|
42437
42524
|
}
|
|
42438
|
-
function
|
|
42525
|
+
function AZ(e) {
|
|
42439
42526
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
42440
42527
|
}
|
|
42441
|
-
function
|
|
42528
|
+
function jZ(e) {
|
|
42442
42529
|
return function(t) {
|
|
42443
42530
|
var n, r;
|
|
42444
42531
|
return r = n = /*#__PURE__*/ function(n) {
|
|
42445
|
-
|
|
42532
|
+
ZX(r, n);
|
|
42446
42533
|
function r() {
|
|
42447
42534
|
var t, r = [...arguments];
|
|
42448
42535
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -42453,24 +42540,24 @@ function SZ(e) {
|
|
|
42453
42540
|
bounds: {},
|
|
42454
42541
|
margin: {}
|
|
42455
42542
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
42456
|
-
var r =
|
|
42543
|
+
var r = kZ(t._node, e || OZ(t.props));
|
|
42457
42544
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
42458
42545
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
42459
42546
|
});
|
|
42460
42547
|
}, t._handleRef = function(e) {
|
|
42461
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
42548
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = AZ(t._node);
|
|
42462
42549
|
var n = t.props.innerRef;
|
|
42463
42550
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
42464
42551
|
}, t;
|
|
42465
42552
|
}
|
|
42466
42553
|
var i = r.prototype;
|
|
42467
42554
|
return i.componentDidMount = function() {
|
|
42468
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
42555
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new EZ(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(kZ(this._node, e || OZ(this.props))));
|
|
42469
42556
|
}, i.componentWillUnmount = function() {
|
|
42470
42557
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
42471
42558
|
}, i.render = function() {
|
|
42472
42559
|
var e = this.props;
|
|
42473
|
-
return e.innerRef, e.onResize, Ye(t,
|
|
42560
|
+
return e.innerRef, e.onResize, Ye(t, JX({}, YX(e, ["innerRef", "onResize"]), {
|
|
42474
42561
|
measureRef: this._handleRef,
|
|
42475
42562
|
measure: this.measure,
|
|
42476
42563
|
contentRect: this.state.contentRect
|
|
@@ -42487,7 +42574,7 @@ function SZ(e) {
|
|
|
42487
42574
|
}, r;
|
|
42488
42575
|
};
|
|
42489
42576
|
}
|
|
42490
|
-
var
|
|
42577
|
+
var MZ = jZ()(function(e) {
|
|
42491
42578
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
42492
42579
|
return i({
|
|
42493
42580
|
measure: t,
|
|
@@ -42495,10 +42582,10 @@ var CZ = SZ()(function(e) {
|
|
|
42495
42582
|
contentRect: r
|
|
42496
42583
|
});
|
|
42497
42584
|
});
|
|
42498
|
-
|
|
42585
|
+
MZ.displayName = "Measure", MZ.propTypes.children = L.default.func;
|
|
42499
42586
|
//#endregion
|
|
42500
42587
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
42501
|
-
var
|
|
42588
|
+
var NZ = j("div")(() => ({
|
|
42502
42589
|
backgroundColor: A.white(),
|
|
42503
42590
|
border: `2px solid ${A.border()}`,
|
|
42504
42591
|
display: "flex",
|
|
@@ -42508,7 +42595,7 @@ var wZ = j("div")(() => ({
|
|
|
42508
42595
|
maxWidth: "300px",
|
|
42509
42596
|
padding: "20px 4px 4px 20px",
|
|
42510
42597
|
zIndex: 99
|
|
42511
|
-
})),
|
|
42598
|
+
})), PZ = class extends N.Component {
|
|
42512
42599
|
static propTypes = {
|
|
42513
42600
|
className: L.default.string,
|
|
42514
42601
|
children: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]).isRequired
|
|
@@ -42516,19 +42603,19 @@ var wZ = j("div")(() => ({
|
|
|
42516
42603
|
static defaultProps = {};
|
|
42517
42604
|
render() {
|
|
42518
42605
|
let { className: e, children: t } = this.props;
|
|
42519
|
-
return /* @__PURE__ */ F(
|
|
42606
|
+
return /* @__PURE__ */ F(NZ, {
|
|
42520
42607
|
className: e,
|
|
42521
42608
|
children: t
|
|
42522
42609
|
});
|
|
42523
42610
|
}
|
|
42524
|
-
},
|
|
42611
|
+
}, FZ = Le({
|
|
42525
42612
|
typography: { fontFamily: "inherit" },
|
|
42526
42613
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
42527
42614
|
backgroundColor: "#e0e0e0",
|
|
42528
42615
|
color: "#000000",
|
|
42529
42616
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
42530
42617
|
} } } }
|
|
42531
|
-
}),
|
|
42618
|
+
}), IZ = class extends N.Component {
|
|
42532
42619
|
static propTypes = {
|
|
42533
42620
|
children: L.default.oneOfType([
|
|
42534
42621
|
L.default.string,
|
|
@@ -42561,19 +42648,19 @@ var wZ = j("div")(() => ({
|
|
|
42561
42648
|
return /* @__PURE__ */ F(C, {
|
|
42562
42649
|
injectFirst: !0,
|
|
42563
42650
|
children: /* @__PURE__ */ F(ae, {
|
|
42564
|
-
theme:
|
|
42565
|
-
children: /* @__PURE__ */ F(
|
|
42651
|
+
theme: FZ,
|
|
42652
|
+
children: /* @__PURE__ */ F(MZ, {
|
|
42566
42653
|
bounds: !0,
|
|
42567
42654
|
onResize: this.onResize,
|
|
42568
42655
|
children: ({ measureRef: e }) => {
|
|
42569
|
-
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(
|
|
42656
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(PZ, {
|
|
42570
42657
|
className: "settings-box",
|
|
42571
42658
|
children: n
|
|
42572
42659
|
}) : n;
|
|
42573
42660
|
return /* @__PURE__ */ I("div", {
|
|
42574
42661
|
ref: e,
|
|
42575
42662
|
className: "main-container extraCSSRules",
|
|
42576
|
-
children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(
|
|
42663
|
+
children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(qX, {
|
|
42577
42664
|
mode: o,
|
|
42578
42665
|
secondary: s,
|
|
42579
42666
|
dimensions: i,
|
|
@@ -42585,27 +42672,27 @@ var wZ = j("div")(() => ({
|
|
|
42585
42672
|
})
|
|
42586
42673
|
});
|
|
42587
42674
|
}
|
|
42588
|
-
},
|
|
42589
|
-
ConfigLayout: () =>
|
|
42590
|
-
LayoutContents: () =>
|
|
42591
|
-
}),
|
|
42675
|
+
}, LZ = jZ("bounds")(IZ), RZ = /* @__PURE__ */ VX({
|
|
42676
|
+
ConfigLayout: () => LZ,
|
|
42677
|
+
LayoutContents: () => qX
|
|
42678
|
+
}), zZ = j("div")(() => ({
|
|
42592
42679
|
display: "flex",
|
|
42593
42680
|
width: "100%",
|
|
42594
42681
|
justifyContent: "space-between"
|
|
42595
|
-
})),
|
|
42682
|
+
})), BZ = j(De)(({ theme: e }) => ({
|
|
42596
42683
|
color: "rgba(0, 0, 0, 0.89)",
|
|
42597
42684
|
fontSize: e.typography.fontSize,
|
|
42598
42685
|
paddingTop: e.spacing(2)
|
|
42599
|
-
})),
|
|
42686
|
+
})), VZ = j(Cs)(({ checked: e }) => ({
|
|
42600
42687
|
"&.Mui-checked .MuiSwitch-thumb": { color: `${A.tertiary()} !important` },
|
|
42601
42688
|
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${A.tertiaryLight()} !important` },
|
|
42602
42689
|
"& .MuiSwitch-track": { backgroundColor: e ? `${A.tertiaryLight()} !important` : void 0 }
|
|
42603
|
-
})),
|
|
42690
|
+
})), HZ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I(zZ, { children: [/* @__PURE__ */ F(BZ, { children: n }), /* @__PURE__ */ F(VZ, {
|
|
42604
42691
|
checked: e,
|
|
42605
42692
|
disabled: t,
|
|
42606
42693
|
onChange: (e) => r(e.target.checked)
|
|
42607
42694
|
})] });
|
|
42608
|
-
|
|
42695
|
+
HZ.propTypes = {
|
|
42609
42696
|
checked: L.default.bool,
|
|
42610
42697
|
disabled: L.default.bool,
|
|
42611
42698
|
label: L.default.string.isRequired,
|
|
@@ -42613,20 +42700,20 @@ NZ.propTypes = {
|
|
|
42613
42700
|
};
|
|
42614
42701
|
//#endregion
|
|
42615
42702
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
42616
|
-
var
|
|
42703
|
+
var UZ = j(ga)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
42617
42704
|
color: "rgba(0, 0, 0, 0.89)",
|
|
42618
42705
|
fontSize: e.typography.fontSize - 2,
|
|
42619
42706
|
left: "-5px",
|
|
42620
42707
|
position: "relative"
|
|
42621
|
-
} })),
|
|
42708
|
+
} })), WZ = j(hs)(() => ({ color: `${A.tertiary()} !important` })), GZ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(UZ, {
|
|
42622
42709
|
value: t,
|
|
42623
|
-
control: /* @__PURE__ */ F(
|
|
42710
|
+
control: /* @__PURE__ */ F(WZ, {
|
|
42624
42711
|
checked: n,
|
|
42625
42712
|
onChange: r
|
|
42626
42713
|
}),
|
|
42627
42714
|
label: e
|
|
42628
42715
|
});
|
|
42629
|
-
|
|
42716
|
+
GZ.propTypes = {
|
|
42630
42717
|
label: L.default.string,
|
|
42631
42718
|
value: L.default.string,
|
|
42632
42719
|
checked: L.default.bool,
|
|
@@ -42634,26 +42721,26 @@ IZ.propTypes = {
|
|
|
42634
42721
|
};
|
|
42635
42722
|
//#endregion
|
|
42636
42723
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
42637
|
-
var
|
|
42724
|
+
var KZ = (0, sc.default)("pie-lib:config-ui:settings:panel"), qZ = {
|
|
42638
42725
|
label: L.default.string,
|
|
42639
42726
|
value: L.default.string
|
|
42640
|
-
},
|
|
42727
|
+
}, JZ = {
|
|
42641
42728
|
label: L.default.string,
|
|
42642
42729
|
value: L.default.string,
|
|
42643
42730
|
onChange: L.default.func
|
|
42644
|
-
},
|
|
42731
|
+
}, YZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(EX, {
|
|
42645
42732
|
checked: t,
|
|
42646
42733
|
label: e,
|
|
42647
42734
|
onChange: (e) => {
|
|
42648
42735
|
n(e.target.checked);
|
|
42649
42736
|
}
|
|
42650
42737
|
});
|
|
42651
|
-
|
|
42738
|
+
YZ.propTypes = {
|
|
42652
42739
|
label: L.default.string,
|
|
42653
42740
|
value: L.default.bool,
|
|
42654
42741
|
onChange: L.default.func
|
|
42655
42742
|
};
|
|
42656
|
-
var
|
|
42743
|
+
var XZ = j(RX)(({ theme: e }) => ({
|
|
42657
42744
|
marginTop: e.spacing(.5),
|
|
42658
42745
|
paddingBottom: e.spacing(.5),
|
|
42659
42746
|
width: "100%",
|
|
@@ -42664,29 +42751,29 @@ var VZ = j(kX)(({ theme: e }) => ({
|
|
|
42664
42751
|
marginTop: e.spacing(2.5)
|
|
42665
42752
|
},
|
|
42666
42753
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
42667
|
-
})),
|
|
42754
|
+
})), ZZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(XZ, {
|
|
42668
42755
|
direction: "horizontal",
|
|
42669
|
-
customLabel:
|
|
42756
|
+
customLabel: GZ,
|
|
42670
42757
|
value: t,
|
|
42671
42758
|
header: e,
|
|
42672
42759
|
opts: r,
|
|
42673
42760
|
onChange: n
|
|
42674
42761
|
});
|
|
42675
|
-
|
|
42676
|
-
...
|
|
42677
|
-
choices: L.default.arrayOf(L.default.shape(
|
|
42762
|
+
ZZ.propTypes = {
|
|
42763
|
+
...JZ,
|
|
42764
|
+
choices: L.default.arrayOf(L.default.shape(qZ))
|
|
42678
42765
|
};
|
|
42679
|
-
var
|
|
42766
|
+
var QZ = ZZ, $Z = j("p")(({ theme: e }) => ({
|
|
42680
42767
|
margin: 0,
|
|
42681
42768
|
fontSize: e.typography.fontSize
|
|
42682
|
-
})),
|
|
42769
|
+
})), eQ = j(qo)(({ theme: e }) => ({
|
|
42683
42770
|
marginTop: e.spacing(.5),
|
|
42684
42771
|
border: "2px solid lightgrey",
|
|
42685
42772
|
padding: `0 ${e.spacing(1)}`,
|
|
42686
42773
|
borderRadius: "4px"
|
|
42687
|
-
})),
|
|
42774
|
+
})), tQ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
42688
42775
|
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
42689
|
-
return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(
|
|
42776
|
+
return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F($Z, { children: e }), /* @__PURE__ */ F(eQ, {
|
|
42690
42777
|
value: t || r && r[0],
|
|
42691
42778
|
onChange: ({ target: e }) => n(e.value),
|
|
42692
42779
|
input: /* @__PURE__ */ F(Ea, { id: `dropdown-${e}` }),
|
|
@@ -42701,14 +42788,14 @@ var UZ = HZ, WZ = j("p")(({ theme: e }) => ({
|
|
|
42701
42788
|
}, t))
|
|
42702
42789
|
})] });
|
|
42703
42790
|
};
|
|
42704
|
-
|
|
42705
|
-
...
|
|
42791
|
+
tQ.propTypes = {
|
|
42792
|
+
...JZ,
|
|
42706
42793
|
choices: L.default.arrayOf(L.default.string)
|
|
42707
42794
|
};
|
|
42708
|
-
var
|
|
42795
|
+
var nQ = j(Pe)(({ theme: e }) => ({
|
|
42709
42796
|
marginRight: e.spacing(3),
|
|
42710
42797
|
marginTop: e.spacing(1)
|
|
42711
|
-
})),
|
|
42798
|
+
})), rQ = ({ label: e }) => /* @__PURE__ */ F(nQ, { children: e }), iQ = j(AX)(({ theme: e }) => ({
|
|
42712
42799
|
width: "35%",
|
|
42713
42800
|
marginRight: e.spacing(3),
|
|
42714
42801
|
marginTop: e.spacing(1),
|
|
@@ -42719,7 +42806,7 @@ var qZ = j(Pe)(({ theme: e }) => ({
|
|
|
42719
42806
|
padding: `0 ${e.spacing(1)}`,
|
|
42720
42807
|
backgroundColor: "transparent"
|
|
42721
42808
|
}
|
|
42722
|
-
})),
|
|
42809
|
+
})), aQ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(iQ, {
|
|
42723
42810
|
variant: "standard",
|
|
42724
42811
|
label: e || "Label",
|
|
42725
42812
|
value: t,
|
|
@@ -42730,45 +42817,45 @@ var qZ = j(Pe)(({ theme: e }) => ({
|
|
|
42730
42817
|
showErrorWhenOutsideRange: !0,
|
|
42731
42818
|
disableUnderline: !0
|
|
42732
42819
|
});
|
|
42733
|
-
|
|
42734
|
-
...
|
|
42820
|
+
aQ.propTypes = {
|
|
42821
|
+
...JZ,
|
|
42735
42822
|
suffix: L.default.string,
|
|
42736
42823
|
min: L.default.number,
|
|
42737
42824
|
max: L.default.number,
|
|
42738
42825
|
value: L.default.number
|
|
42739
|
-
},
|
|
42740
|
-
var
|
|
42826
|
+
}, rQ.propTypes = { ...JZ };
|
|
42827
|
+
var oQ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(HZ, {
|
|
42741
42828
|
label: t,
|
|
42742
42829
|
checked: !!n,
|
|
42743
42830
|
disabled: !!e,
|
|
42744
42831
|
toggle: r
|
|
42745
42832
|
});
|
|
42746
|
-
|
|
42747
|
-
...
|
|
42833
|
+
oQ.propTypes = {
|
|
42834
|
+
...JZ,
|
|
42748
42835
|
value: L.default.bool
|
|
42749
42836
|
};
|
|
42750
|
-
var
|
|
42751
|
-
toggle:
|
|
42752
|
-
radio:
|
|
42753
|
-
dropdown:
|
|
42754
|
-
numberField:
|
|
42755
|
-
checkbox:
|
|
42756
|
-
textField:
|
|
42757
|
-
},
|
|
42837
|
+
var sQ = {
|
|
42838
|
+
toggle: oQ,
|
|
42839
|
+
radio: QZ,
|
|
42840
|
+
dropdown: tQ,
|
|
42841
|
+
numberField: aQ,
|
|
42842
|
+
checkbox: YZ,
|
|
42843
|
+
textField: rQ
|
|
42844
|
+
}, cQ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), lQ = j("div")(({ theme: e }) => ({
|
|
42758
42845
|
color: "#495B8F",
|
|
42759
42846
|
fontSize: e.typography.fontSize + 2,
|
|
42760
42847
|
fontWeight: 600,
|
|
42761
42848
|
marginBottom: e.spacing(1)
|
|
42762
|
-
})),
|
|
42849
|
+
})), uQ = j("p")(({ theme: e }) => ({
|
|
42763
42850
|
fontSize: e.typography.fontSize,
|
|
42764
42851
|
marginBottom: 0
|
|
42765
|
-
})),
|
|
42852
|
+
})), dQ = (e) => {
|
|
42766
42853
|
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
42767
42854
|
let { isConfigProperty: o, ...s } = kt(e, r || n), c = kt(o ? i : t, n), l = {
|
|
42768
42855
|
...s,
|
|
42769
42856
|
key: n,
|
|
42770
42857
|
value: c
|
|
42771
|
-
}, u =
|
|
42858
|
+
}, u = sQ[l.type];
|
|
42772
42859
|
return /* @__PURE__ */ F(u, {
|
|
42773
42860
|
...l,
|
|
42774
42861
|
onChange: (e) => a(n, e, o)
|
|
@@ -42777,18 +42864,18 @@ var QZ = {
|
|
|
42777
42864
|
let n = e[t];
|
|
42778
42865
|
if (!n) return null;
|
|
42779
42866
|
let { type: r, label: i, fields: a, choices: s } = n;
|
|
42780
|
-
return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(
|
|
42867
|
+
return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(uQ, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
|
|
42781
42868
|
};
|
|
42782
|
-
return /* @__PURE__ */ I(
|
|
42869
|
+
return /* @__PURE__ */ I(cQ, { children: [/* @__PURE__ */ F(lQ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
42783
42870
|
};
|
|
42784
|
-
|
|
42871
|
+
dQ.propTypes = {
|
|
42785
42872
|
model: L.default.object,
|
|
42786
42873
|
label: L.default.string,
|
|
42787
42874
|
group: L.default.object,
|
|
42788
42875
|
configuration: L.default.object,
|
|
42789
42876
|
onChange: L.default.func
|
|
42790
42877
|
};
|
|
42791
|
-
var
|
|
42878
|
+
var fQ = class extends N.Component {
|
|
42792
42879
|
static propTypes = {
|
|
42793
42880
|
model: L.default.object,
|
|
42794
42881
|
configuration: L.default.object,
|
|
@@ -42802,13 +42889,13 @@ var rQ = class extends N.Component {
|
|
|
42802
42889
|
onChangeConfiguration: () => {}
|
|
42803
42890
|
};
|
|
42804
42891
|
change = (e, t, n = !1) => {
|
|
42805
|
-
|
|
42892
|
+
KZ("[changeModel]", e, t);
|
|
42806
42893
|
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
|
|
42807
42894
|
n ? (Ft(o, e, t), i(o, e)) : (Ft(a, e, t), r(a, e));
|
|
42808
42895
|
};
|
|
42809
42896
|
render() {
|
|
42810
42897
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
42811
|
-
return
|
|
42898
|
+
return KZ("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(dQ, {
|
|
42812
42899
|
label: r,
|
|
42813
42900
|
model: t,
|
|
42814
42901
|
configuration: n,
|
|
@@ -42816,59 +42903,59 @@ var rQ = class extends N.Component {
|
|
|
42816
42903
|
onChange: this.change
|
|
42817
42904
|
}, r) : null), r] });
|
|
42818
42905
|
}
|
|
42819
|
-
},
|
|
42820
|
-
Panel: () =>
|
|
42821
|
-
checkbox: () =>
|
|
42822
|
-
checkboxes: () =>
|
|
42823
|
-
dropdown: () =>
|
|
42824
|
-
numberField: () =>
|
|
42825
|
-
numberFields: () =>
|
|
42826
|
-
radio: () =>
|
|
42827
|
-
textField: () =>
|
|
42828
|
-
toggle: () =>
|
|
42829
|
-
}),
|
|
42906
|
+
}, pQ = /* @__PURE__ */ VX({
|
|
42907
|
+
Panel: () => fQ,
|
|
42908
|
+
checkbox: () => xQ,
|
|
42909
|
+
checkboxes: () => SQ,
|
|
42910
|
+
dropdown: () => vQ,
|
|
42911
|
+
numberField: () => yQ,
|
|
42912
|
+
numberFields: () => bQ,
|
|
42913
|
+
radio: () => _Q,
|
|
42914
|
+
textField: () => mQ,
|
|
42915
|
+
toggle: () => hQ
|
|
42916
|
+
}), mQ = (e, t = !0) => ({
|
|
42830
42917
|
label: e,
|
|
42831
42918
|
type: "textField",
|
|
42832
42919
|
isConfigProperty: t
|
|
42833
|
-
}),
|
|
42920
|
+
}), hQ = (e, t = !1, n = !1) => ({
|
|
42834
42921
|
type: "toggle",
|
|
42835
42922
|
label: e,
|
|
42836
42923
|
isConfigProperty: t,
|
|
42837
42924
|
disabled: n
|
|
42838
|
-
}),
|
|
42925
|
+
}), gQ = (e) => typeof e == "string" ? {
|
|
42839
42926
|
label: e,
|
|
42840
42927
|
value: e
|
|
42841
|
-
} : e,
|
|
42928
|
+
} : e, _Q = function() {
|
|
42842
42929
|
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
42843
42930
|
return {
|
|
42844
42931
|
type: "radio",
|
|
42845
42932
|
label: e,
|
|
42846
|
-
choices: t && t.map((e) =>
|
|
42933
|
+
choices: t && t.map((e) => gQ(e)),
|
|
42847
42934
|
isConfigProperty: n
|
|
42848
42935
|
};
|
|
42849
|
-
},
|
|
42936
|
+
}, vQ = (e, t, n = !1) => ({
|
|
42850
42937
|
type: "dropdown",
|
|
42851
42938
|
label: e,
|
|
42852
42939
|
choices: t,
|
|
42853
42940
|
isConfigProperty: n
|
|
42854
|
-
}),
|
|
42941
|
+
}), yQ = (e, t, n = !1) => ({
|
|
42855
42942
|
...t,
|
|
42856
42943
|
label: e,
|
|
42857
42944
|
type: "numberField",
|
|
42858
42945
|
isConfigProperty: n
|
|
42859
|
-
}),
|
|
42860
|
-
t[e] =
|
|
42946
|
+
}), bQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
42947
|
+
t[e] = yQ(t[e].label, t[e], n);
|
|
42861
42948
|
}), {
|
|
42862
42949
|
type: "numberFields",
|
|
42863
42950
|
label: e,
|
|
42864
42951
|
fields: t
|
|
42865
|
-
}),
|
|
42952
|
+
}), xQ = (e, t, n = !1) => ({
|
|
42866
42953
|
...t,
|
|
42867
42954
|
label: e,
|
|
42868
42955
|
type: "checkbox",
|
|
42869
42956
|
isConfigProperty: n
|
|
42870
|
-
}),
|
|
42871
|
-
t[e] =
|
|
42957
|
+
}), SQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
42958
|
+
t[e] = xQ(t[e].label, t[e], n);
|
|
42872
42959
|
}), {
|
|
42873
42960
|
type: "checkboxes",
|
|
42874
42961
|
label: e,
|
|
@@ -42876,7 +42963,7 @@ var rQ = class extends N.Component {
|
|
|
42876
42963
|
});
|
|
42877
42964
|
//#endregion
|
|
42878
42965
|
//#region ../../lib-react/drag/dist/drag-provider.js
|
|
42879
|
-
function
|
|
42966
|
+
function CQ({ children: e, onDragEnd: t, onDragStart: n, onDragCancel: r, collisionDetection: i, modifiers: a, autoScroll: o, keyboardCoordinateGetter: s, keyboardCodes: c, accessibility: l }) {
|
|
42880
42967
|
let [u, d] = ot(null), f = s || c ? {
|
|
42881
42968
|
coordinateGetter: s,
|
|
42882
42969
|
keyboardCodes: c
|
|
@@ -42899,7 +42986,7 @@ function mQ({ children: e, onDragEnd: t, onDragStart: n, onDragCancel: r, collis
|
|
|
42899
42986
|
children: e
|
|
42900
42987
|
});
|
|
42901
42988
|
}
|
|
42902
|
-
|
|
42989
|
+
CQ.propTypes = {
|
|
42903
42990
|
children: L.default.node.isRequired,
|
|
42904
42991
|
onDragEnd: L.default.func,
|
|
42905
42992
|
onDragStart: L.default.func,
|
|
@@ -42917,7 +43004,7 @@ mQ.propTypes = {
|
|
|
42917
43004
|
};
|
|
42918
43005
|
//#endregion
|
|
42919
43006
|
//#region src/author/defaults.tsx
|
|
42920
|
-
var
|
|
43007
|
+
var wQ = {
|
|
42921
43008
|
model: {
|
|
42922
43009
|
addScaleEnabled: !0,
|
|
42923
43010
|
description: !1,
|
|
@@ -43026,12 +43113,12 @@ var hQ = {
|
|
|
43026
43113
|
},
|
|
43027
43114
|
maxMaxPoints: 10
|
|
43028
43115
|
}
|
|
43029
|
-
}, { configuration: { excludeZeroDialogBoxContent:
|
|
43116
|
+
}, { configuration: { excludeZeroDialogBoxContent: TQ, includeZeroDialogBoxContent: EQ, deleteScaleDialogBoxContent: DQ, maxPointsDialogBoxContent: OQ } } = wQ, kQ = {
|
|
43030
43117
|
remove0: "remove0",
|
|
43031
43118
|
add0: "add0",
|
|
43032
43119
|
shiftLeft: "shiftLeft",
|
|
43033
43120
|
shiftRight: "shiftRight"
|
|
43034
|
-
},
|
|
43121
|
+
}, AQ = j(Hi)(({ theme: e }) => ({ "& .MuiPaper-root": { padding: e.spacing(2.5) } })), jQ = j(aa)(({ theme: e }) => ({
|
|
43035
43122
|
padding: `0 0 ${e.spacing(2)} 0`,
|
|
43036
43123
|
"& h2": {
|
|
43037
43124
|
fontSize: "20px",
|
|
@@ -43039,14 +43126,14 @@ var hQ = {
|
|
|
43039
43126
|
fontFamily: "Cerebri Sans",
|
|
43040
43127
|
color: A.text()
|
|
43041
43128
|
}
|
|
43042
|
-
})),
|
|
43129
|
+
})), MQ = j(Qi)(({ theme: e }) => ({
|
|
43043
43130
|
paddingLeft: "0",
|
|
43044
43131
|
"& p": {
|
|
43045
43132
|
fontSize: e.typography.fontSize + 2,
|
|
43046
43133
|
fontFamily: "Cerebri Sans",
|
|
43047
43134
|
color: A.text()
|
|
43048
43135
|
}
|
|
43049
|
-
})),
|
|
43136
|
+
})), NQ = j(We)(({ theme: e }) => ({
|
|
43050
43137
|
padding: `${e.spacing(1.5)} ${e.spacing(2)}`,
|
|
43051
43138
|
borderRadius: "4px",
|
|
43052
43139
|
fontSize: e.typography.fontSize,
|
|
@@ -43055,128 +43142,128 @@ var hQ = {
|
|
|
43055
43142
|
textTransform: "none",
|
|
43056
43143
|
background: A.primary(),
|
|
43057
43144
|
color: e.palette.common.white
|
|
43058
|
-
})),
|
|
43145
|
+
})), PQ = j(NQ)({
|
|
43059
43146
|
background: A.secondaryBackground(),
|
|
43060
43147
|
color: A.text()
|
|
43061
|
-
}),
|
|
43148
|
+
}), FQ = ({ open: e, changeExcludeZero: t, cancel: n }) => /* @__PURE__ */ I(AQ, {
|
|
43062
43149
|
open: e,
|
|
43063
43150
|
children: [
|
|
43064
|
-
/* @__PURE__ */ F(
|
|
43065
|
-
/* @__PURE__ */ F(
|
|
43151
|
+
/* @__PURE__ */ F(jQ, { children: TQ.title }),
|
|
43152
|
+
/* @__PURE__ */ F(MQ, { children: /* @__PURE__ */ F(na, { children: /* @__PURE__ */ F("div", { dangerouslySetInnerHTML: { __html: TQ.text } }) }) }),
|
|
43066
43153
|
/* @__PURE__ */ I(Ki, { children: [
|
|
43067
|
-
/* @__PURE__ */ F(
|
|
43154
|
+
/* @__PURE__ */ F(PQ, {
|
|
43068
43155
|
onClick: () => n(),
|
|
43069
43156
|
children: "Cancel"
|
|
43070
43157
|
}),
|
|
43071
|
-
/* @__PURE__ */ F(
|
|
43072
|
-
onClick: () => t(
|
|
43158
|
+
/* @__PURE__ */ F(NQ, {
|
|
43159
|
+
onClick: () => t(kQ.shiftLeft),
|
|
43073
43160
|
children: "Shift to Left"
|
|
43074
43161
|
}),
|
|
43075
|
-
/* @__PURE__ */ F(
|
|
43076
|
-
onClick: () => t(
|
|
43162
|
+
/* @__PURE__ */ F(NQ, {
|
|
43163
|
+
onClick: () => t(kQ.remove0),
|
|
43077
43164
|
children: "Remove 0 column"
|
|
43078
43165
|
})
|
|
43079
43166
|
] })
|
|
43080
43167
|
]
|
|
43081
43168
|
});
|
|
43082
|
-
|
|
43169
|
+
FQ.propTypes = {
|
|
43083
43170
|
open: L.default.bool,
|
|
43084
43171
|
changeExcludeZero: L.default.func,
|
|
43085
43172
|
cancel: L.default.func
|
|
43086
43173
|
};
|
|
43087
|
-
var
|
|
43174
|
+
var IQ = ({ open: e, changeExcludeZero: t, cancel: n }) => /* @__PURE__ */ I(AQ, {
|
|
43088
43175
|
open: e,
|
|
43089
43176
|
children: [
|
|
43090
|
-
/* @__PURE__ */ F(
|
|
43091
|
-
/* @__PURE__ */ F(
|
|
43177
|
+
/* @__PURE__ */ F(jQ, { children: EQ.title }),
|
|
43178
|
+
/* @__PURE__ */ F(MQ, { children: /* @__PURE__ */ F(na, { children: /* @__PURE__ */ F("div", { dangerouslySetInnerHTML: { __html: EQ.text } }) }) }),
|
|
43092
43179
|
/* @__PURE__ */ I(Ki, { children: [
|
|
43093
|
-
/* @__PURE__ */ F(
|
|
43180
|
+
/* @__PURE__ */ F(PQ, {
|
|
43094
43181
|
onClick: () => n(),
|
|
43095
43182
|
children: "Cancel"
|
|
43096
43183
|
}),
|
|
43097
|
-
/* @__PURE__ */ F(
|
|
43098
|
-
onClick: () => t(
|
|
43184
|
+
/* @__PURE__ */ F(NQ, {
|
|
43185
|
+
onClick: () => t(kQ.shiftRight),
|
|
43099
43186
|
children: "Shift to Right"
|
|
43100
43187
|
}),
|
|
43101
|
-
/* @__PURE__ */ F(
|
|
43102
|
-
onClick: () => t(
|
|
43188
|
+
/* @__PURE__ */ F(NQ, {
|
|
43189
|
+
onClick: () => t(kQ.add0),
|
|
43103
43190
|
children: "Add 0 column"
|
|
43104
43191
|
})
|
|
43105
43192
|
] })
|
|
43106
43193
|
]
|
|
43107
43194
|
});
|
|
43108
|
-
|
|
43195
|
+
IQ.propTypes = {
|
|
43109
43196
|
open: L.default.bool,
|
|
43110
43197
|
changeExcludeZero: L.default.func,
|
|
43111
43198
|
cancel: L.default.func
|
|
43112
43199
|
};
|
|
43113
|
-
var
|
|
43200
|
+
var LQ = ({ open: e, deleteScorePoints: t, cancel: n }) => /* @__PURE__ */ I(AQ, {
|
|
43114
43201
|
open: e,
|
|
43115
43202
|
children: [
|
|
43116
|
-
/* @__PURE__ */ F(
|
|
43117
|
-
/* @__PURE__ */ F(
|
|
43118
|
-
/* @__PURE__ */ I(Ki, { children: [/* @__PURE__ */ F(
|
|
43203
|
+
/* @__PURE__ */ F(jQ, { children: OQ.title }),
|
|
43204
|
+
/* @__PURE__ */ F(MQ, { children: /* @__PURE__ */ F(na, { children: /* @__PURE__ */ F("div", { dangerouslySetInnerHTML: { __html: OQ.text } }) }) }),
|
|
43205
|
+
/* @__PURE__ */ I(Ki, { children: [/* @__PURE__ */ F(PQ, {
|
|
43119
43206
|
onClick: n,
|
|
43120
43207
|
children: "Cancel"
|
|
43121
|
-
}), /* @__PURE__ */ F(
|
|
43208
|
+
}), /* @__PURE__ */ F(NQ, {
|
|
43122
43209
|
onClick: t,
|
|
43123
43210
|
children: "Confirm"
|
|
43124
43211
|
})] })
|
|
43125
43212
|
]
|
|
43126
43213
|
});
|
|
43127
|
-
|
|
43214
|
+
LQ.propTypes = {
|
|
43128
43215
|
open: L.default.bool,
|
|
43129
43216
|
deleteScorePoints: L.default.func,
|
|
43130
43217
|
cancel: L.default.func
|
|
43131
43218
|
};
|
|
43132
|
-
var
|
|
43219
|
+
var RQ = ({ open: e, scaleIndex: t, deleteScale: n, cancel: r }) => /* @__PURE__ */ I(AQ, {
|
|
43133
43220
|
open: e,
|
|
43134
43221
|
children: [
|
|
43135
|
-
/* @__PURE__ */ F(
|
|
43136
|
-
/* @__PURE__ */ F(
|
|
43137
|
-
/* @__PURE__ */ I(Ki, { children: [/* @__PURE__ */ F(
|
|
43222
|
+
/* @__PURE__ */ F(jQ, { children: `${DQ.title} #${t + 1}` }),
|
|
43223
|
+
/* @__PURE__ */ F(MQ, { children: /* @__PURE__ */ F(na, { children: /* @__PURE__ */ F("div", { dangerouslySetInnerHTML: { __html: DQ.text } }) }) }),
|
|
43224
|
+
/* @__PURE__ */ I(Ki, { children: [/* @__PURE__ */ F(PQ, {
|
|
43138
43225
|
onClick: r,
|
|
43139
43226
|
children: "Cancel"
|
|
43140
|
-
}), /* @__PURE__ */ F(
|
|
43227
|
+
}), /* @__PURE__ */ F(NQ, {
|
|
43141
43228
|
onClick: n,
|
|
43142
43229
|
children: "Delete"
|
|
43143
43230
|
})] })
|
|
43144
43231
|
]
|
|
43145
43232
|
});
|
|
43146
|
-
|
|
43233
|
+
RQ.propTypes = {
|
|
43147
43234
|
open: L.default.bool,
|
|
43148
43235
|
scaleIndex: L.default.number,
|
|
43149
43236
|
deleteScale: L.default.func,
|
|
43150
43237
|
cancel: L.default.func
|
|
43151
43238
|
};
|
|
43152
|
-
var
|
|
43239
|
+
var zQ = ({ open: e, deleteTrait: t, cancel: n, traitLabel: r }) => /* @__PURE__ */ I(AQ, {
|
|
43153
43240
|
open: e,
|
|
43154
43241
|
children: [
|
|
43155
|
-
/* @__PURE__ */ I(
|
|
43156
|
-
/* @__PURE__ */ F(
|
|
43157
|
-
/* @__PURE__ */ I(Ki, { children: [/* @__PURE__ */ F(
|
|
43242
|
+
/* @__PURE__ */ I(jQ, { children: ["Delete ", r] }),
|
|
43243
|
+
/* @__PURE__ */ F(MQ, { children: /* @__PURE__ */ F(na, { children: /* @__PURE__ */ F("div", { dangerouslySetInnerHTML: { __html: `Are you sure you want to delete this ${r}?` } }) }) }),
|
|
43244
|
+
/* @__PURE__ */ I(Ki, { children: [/* @__PURE__ */ F(PQ, {
|
|
43158
43245
|
onClick: n,
|
|
43159
43246
|
children: "Cancel"
|
|
43160
|
-
}), /* @__PURE__ */ F(
|
|
43247
|
+
}), /* @__PURE__ */ F(NQ, {
|
|
43161
43248
|
onClick: t,
|
|
43162
43249
|
children: "Delete"
|
|
43163
43250
|
})] })
|
|
43164
43251
|
]
|
|
43165
43252
|
});
|
|
43166
|
-
|
|
43253
|
+
zQ.propTypes = {
|
|
43167
43254
|
open: L.default.bool,
|
|
43168
43255
|
deleteTrait: L.default.func,
|
|
43169
43256
|
cancel: L.default.func,
|
|
43170
43257
|
traitLabel: L.default.string
|
|
43171
43258
|
};
|
|
43172
|
-
var
|
|
43259
|
+
var BQ = ({ open: e, text: t, onClose: n }) => /* @__PURE__ */ I(AQ, {
|
|
43173
43260
|
open: e,
|
|
43174
|
-
children: [/* @__PURE__ */ F(
|
|
43261
|
+
children: [/* @__PURE__ */ F(jQ, { children: t }), /* @__PURE__ */ F(Ki, { children: /* @__PURE__ */ F(NQ, {
|
|
43175
43262
|
onClick: n,
|
|
43176
43263
|
children: "OK"
|
|
43177
43264
|
}) })]
|
|
43178
43265
|
});
|
|
43179
|
-
|
|
43266
|
+
BQ.propTypes = {
|
|
43180
43267
|
open: L.default.bool,
|
|
43181
43268
|
text: L.default.string,
|
|
43182
43269
|
cancel: L.default.func,
|
|
@@ -43184,29 +43271,29 @@ jQ.propTypes = {
|
|
|
43184
43271
|
};
|
|
43185
43272
|
//#endregion
|
|
43186
43273
|
//#region src/author/utils.ts
|
|
43187
|
-
var
|
|
43274
|
+
var VQ = (dc || []).filter((e) => e !== "table" && e !== "bulleted-list" && e !== "numbered-list"), HQ = (e, t) => !e || !e.length ? [] : e.reduce((e, n) => {
|
|
43188
43275
|
let { scorePointsLabels: r, traits: i } = n || {};
|
|
43189
43276
|
if (r.length < 1) return e;
|
|
43190
43277
|
switch (t) {
|
|
43191
|
-
case
|
|
43278
|
+
case kQ.remove0:
|
|
43192
43279
|
r = r.slice(1), i = i.map(({ scorePointsDescriptors: e, ...t }) => ({
|
|
43193
43280
|
...t,
|
|
43194
43281
|
scorePointsDescriptors: e.slice(1)
|
|
43195
43282
|
}));
|
|
43196
43283
|
break;
|
|
43197
|
-
case
|
|
43284
|
+
case kQ.add0:
|
|
43198
43285
|
r = ["", ...r], i = i.map(({ scorePointsDescriptors: e, ...t }) => ({
|
|
43199
43286
|
...t,
|
|
43200
43287
|
scorePointsDescriptors: ["", ...e]
|
|
43201
43288
|
}));
|
|
43202
43289
|
break;
|
|
43203
|
-
case
|
|
43290
|
+
case kQ.shiftLeft:
|
|
43204
43291
|
r = r.slice(0, -1), i = i.map(({ scorePointsDescriptors: e, ...t }) => ({
|
|
43205
43292
|
...t,
|
|
43206
43293
|
scorePointsDescriptors: e.slice(0, -1)
|
|
43207
43294
|
}));
|
|
43208
43295
|
break;
|
|
43209
|
-
case
|
|
43296
|
+
case kQ.shiftRight:
|
|
43210
43297
|
r = [...r, ""], i = i.map(({ scorePointsDescriptors: e, ...t }) => ({
|
|
43211
43298
|
...t,
|
|
43212
43299
|
scorePointsDescriptors: [...e, ""]
|
|
@@ -43222,13 +43309,13 @@ var MQ = (dc || []).filter((e) => e !== "table" && e !== "bulleted-list" && e !=
|
|
|
43222
43309
|
}, []);
|
|
43223
43310
|
//#endregion
|
|
43224
43311
|
//#region src/author/common.tsx
|
|
43225
|
-
function
|
|
43312
|
+
function UQ(e) {
|
|
43226
43313
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
43227
43314
|
}
|
|
43228
|
-
function
|
|
43229
|
-
return !e ||
|
|
43315
|
+
function WQ(e, t) {
|
|
43316
|
+
return !e || UQ(e) ? e : UQ(e.default) ? e.default : t && UQ(e[t]) ? e[t] : t && UQ(e[t]?.default) ? e[t].default : e;
|
|
43230
43317
|
}
|
|
43231
|
-
var
|
|
43318
|
+
var GQ = WQ(Ie, "InputContainer") || WQ(JQ.InputContainer, "InputContainer"), KQ = ge, qQ = KQ.default, JQ = qQ && typeof qQ == "object" ? qQ : KQ, YQ = "120px", XQ = "100px", ZQ = "160px", QQ = `solid 1px ${ue[400]}`, $Q = "8px 4px", e$ = j("div")(({ theme: e }) => ({
|
|
43232
43319
|
fontFamily: "Cerebri",
|
|
43233
43320
|
"& .editable-label": {
|
|
43234
43321
|
textAlign: "left",
|
|
@@ -43239,9 +43326,9 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43239
43326
|
border: "none"
|
|
43240
43327
|
},
|
|
43241
43328
|
"& > div:first-of-type": {
|
|
43242
|
-
borderLeft:
|
|
43329
|
+
borderLeft: QQ,
|
|
43243
43330
|
borderRadius: 0,
|
|
43244
|
-
padding:
|
|
43331
|
+
padding: $Q
|
|
43245
43332
|
}
|
|
43246
43333
|
},
|
|
43247
43334
|
"& .editable-level": {
|
|
@@ -43254,9 +43341,9 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43254
43341
|
padding: 0,
|
|
43255
43342
|
border: "none",
|
|
43256
43343
|
"& > div:first-of-type": {
|
|
43257
|
-
borderBottom:
|
|
43344
|
+
borderBottom: QQ,
|
|
43258
43345
|
borderRadius: 0,
|
|
43259
|
-
padding:
|
|
43346
|
+
padding: $Q
|
|
43260
43347
|
}
|
|
43261
43348
|
},
|
|
43262
43349
|
"& .expanded-input-prompt": {
|
|
@@ -43264,17 +43351,17 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43264
43351
|
margin: "10px",
|
|
43265
43352
|
marginTop: 0,
|
|
43266
43353
|
"& > div:first-of-type": {
|
|
43267
|
-
border:
|
|
43354
|
+
border: QQ,
|
|
43268
43355
|
borderRadius: "4px",
|
|
43269
|
-
padding:
|
|
43356
|
+
padding: $Q
|
|
43270
43357
|
},
|
|
43271
43358
|
"& .tiptap": {
|
|
43272
43359
|
fontFamily: "Cerebri",
|
|
43273
|
-
height:
|
|
43360
|
+
height: YQ,
|
|
43274
43361
|
padding: 0
|
|
43275
43362
|
}
|
|
43276
43363
|
}
|
|
43277
|
-
})),
|
|
43364
|
+
})), t$ = j("div")(({ theme: e }) => ({
|
|
43278
43365
|
fontSize: e.typography.fontSize + 2,
|
|
43279
43366
|
textAlign: "right",
|
|
43280
43367
|
display: "flex",
|
|
@@ -43287,47 +43374,47 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43287
43374
|
justifyContent: "space-around",
|
|
43288
43375
|
color: A.text(),
|
|
43289
43376
|
cursor: "pointer"
|
|
43290
|
-
})),
|
|
43377
|
+
})), n$ = ({ children: e, onClick: t }) => /* @__PURE__ */ I(t$, {
|
|
43291
43378
|
onClick: t,
|
|
43292
43379
|
children: [/* @__PURE__ */ F("strong", { children: "+" }), /* @__PURE__ */ F("div", { children: e })]
|
|
43293
|
-
}),
|
|
43380
|
+
}), r$ = j("div")({
|
|
43294
43381
|
width: "200px",
|
|
43295
43382
|
minWidth: "200px",
|
|
43296
43383
|
position: "relative",
|
|
43297
43384
|
padding: "0 10px",
|
|
43298
43385
|
boxSizing: "border-box"
|
|
43299
|
-
}),
|
|
43386
|
+
}), i$ = j("div")(({ theme: e }) => ({
|
|
43300
43387
|
width: "200px",
|
|
43301
43388
|
minWidth: "200px",
|
|
43302
43389
|
"& ul, ol": {
|
|
43303
43390
|
marginBlockStart: 0,
|
|
43304
43391
|
paddingInlineStart: e.spacing(2)
|
|
43305
43392
|
}
|
|
43306
|
-
})),
|
|
43393
|
+
})), a$ = j("div")({
|
|
43307
43394
|
display: "flex",
|
|
43308
43395
|
overflowX: "hidden",
|
|
43309
43396
|
overflowY: "hidden",
|
|
43310
43397
|
alignItems: "flex-end",
|
|
43311
43398
|
paddingBottom: "30px"
|
|
43312
|
-
}),
|
|
43399
|
+
}), o$ = ({ children: e, setRef: t, width: n }) => /* @__PURE__ */ F(a$, {
|
|
43313
43400
|
style: { width: n },
|
|
43314
43401
|
ref: t,
|
|
43315
43402
|
children: e
|
|
43316
|
-
}),
|
|
43403
|
+
}), s$ = (({ children: e, height: t }) => /* @__PURE__ */ F("div", {
|
|
43317
43404
|
style: {
|
|
43318
43405
|
display: "flex",
|
|
43319
43406
|
height: t
|
|
43320
43407
|
},
|
|
43321
43408
|
children: e
|
|
43322
|
-
})), $
|
|
43409
|
+
})), c$ = j("div")({ padding: "0 10px" }), l$ = j("div")({
|
|
43323
43410
|
display: "flex",
|
|
43324
43411
|
borderRadius: "4px",
|
|
43325
43412
|
background: "white",
|
|
43326
43413
|
flexDirection: "row",
|
|
43327
43414
|
alignItems: "center",
|
|
43328
43415
|
justifyContent: "space-between",
|
|
43329
|
-
border:
|
|
43330
|
-
}),
|
|
43416
|
+
border: QQ
|
|
43417
|
+
}), u$ = j("div")({
|
|
43331
43418
|
display: "flex",
|
|
43332
43419
|
borderRadius: "4px",
|
|
43333
43420
|
background: "none",
|
|
@@ -43335,17 +43422,17 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43335
43422
|
alignItems: "center",
|
|
43336
43423
|
justifyContent: "center",
|
|
43337
43424
|
border: "0"
|
|
43338
|
-
}),
|
|
43425
|
+
}), d$ = j("div")({
|
|
43339
43426
|
width: "24px",
|
|
43340
43427
|
textAlign: "center"
|
|
43341
|
-
}),
|
|
43428
|
+
}), f$ = ({ error: e = "", scorePointsValue: t, scoreDescriptor: n, pluginProps: r, onChange: i, showScorePointLabels: a, alignToRight: o, spellCheck: s, uploadSoundSupport: c, imageSupport: l = {}, mathMlOptions: u = {} }) => /* @__PURE__ */ F(e$, { children: /* @__PURE__ */ F(c$, { children: /* @__PURE__ */ I(a ? l$ : u$, { children: [/* @__PURE__ */ F(d$, { children: t }), a ? /* @__PURE__ */ F(xX, {
|
|
43342
43429
|
className: "editable-label",
|
|
43343
43430
|
error: e,
|
|
43344
43431
|
markup: n,
|
|
43345
43432
|
placeholder: " Enter Label",
|
|
43346
43433
|
onChange: i,
|
|
43347
43434
|
pluginProps: r,
|
|
43348
|
-
activePlugins:
|
|
43435
|
+
activePlugins: VQ,
|
|
43349
43436
|
spellCheck: s,
|
|
43350
43437
|
toolbarOpts: o ? { alignment: "right" } : {},
|
|
43351
43438
|
uploadSoundSupport: c,
|
|
@@ -43353,7 +43440,7 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43353
43440
|
mathMlOptions: u,
|
|
43354
43441
|
imageSupport: l,
|
|
43355
43442
|
autoWidthToolbar: !0
|
|
43356
|
-
}) : null] }) }) }),
|
|
43443
|
+
}) : null] }) }) }), p$ = j(ui)(({ theme: e }) => ({
|
|
43357
43444
|
"&.MuiInputBase-root": {
|
|
43358
43445
|
background: e.palette.common.white,
|
|
43359
43446
|
marginTop: e.spacing(1),
|
|
@@ -43362,65 +43449,65 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43362
43449
|
"& .MuiInputBase-input": {
|
|
43363
43450
|
borderRadius: "4px",
|
|
43364
43451
|
position: "relative",
|
|
43365
|
-
border:
|
|
43452
|
+
border: QQ,
|
|
43366
43453
|
fontSize: e.typography.fontSize,
|
|
43367
43454
|
fontFamily: "Cerebri Sans",
|
|
43368
43455
|
padding: `${e.spacing(1)} ${e.spacing(1.5)}`,
|
|
43369
43456
|
"&:focus": { borderRadius: "4px" }
|
|
43370
43457
|
}
|
|
43371
|
-
})),
|
|
43458
|
+
})), m$ = (e) => Array.from({ length: e }, (e, t) => t + 1), h$ = ({ maxPoints: e, onChange: t, maxMaxPoints: n }) => /* @__PURE__ */ F(GQ, {
|
|
43372
43459
|
label: "Max Points",
|
|
43373
43460
|
children: /* @__PURE__ */ F(qo, {
|
|
43374
43461
|
value: e,
|
|
43375
43462
|
onChange: t,
|
|
43376
|
-
input: /* @__PURE__ */ F(
|
|
43463
|
+
input: /* @__PURE__ */ F(p$, {}),
|
|
43377
43464
|
MenuProps: { transitionDuration: {
|
|
43378
43465
|
enter: 225,
|
|
43379
43466
|
exit: 195
|
|
43380
43467
|
} },
|
|
43381
|
-
children:
|
|
43468
|
+
children: m$(n).map((e) => /* @__PURE__ */ F(Qo, {
|
|
43382
43469
|
value: e,
|
|
43383
43470
|
children: e
|
|
43384
43471
|
}, `menu-item-${e}`))
|
|
43385
43472
|
})
|
|
43386
|
-
}),
|
|
43473
|
+
}), g$ = j("div")(({ theme: e }) => ({
|
|
43387
43474
|
display: "flex",
|
|
43388
43475
|
justifyContent: "space-between",
|
|
43389
43476
|
alignItems: "center",
|
|
43390
43477
|
margin: `${e.spacing(1.5)} 0`
|
|
43391
|
-
})),
|
|
43478
|
+
})), _$ = ({ markup: e, onChange: t, pluginProps: n, label: r, spellCheck: i, uploadSoundSupport: a, mathMlOptions: o = {}, imageSupport: s = {} }) => /* @__PURE__ */ F(e$, { children: /* @__PURE__ */ I(g$, { children: [r && /* @__PURE__ */ F("div", { children: r }), /* @__PURE__ */ F(xX, {
|
|
43392
43479
|
className: "editable-level",
|
|
43393
43480
|
markup: e,
|
|
43394
43481
|
onChange: t,
|
|
43395
43482
|
placeholder: "Trait Label",
|
|
43396
43483
|
pluginProps: n,
|
|
43397
|
-
activePlugins:
|
|
43484
|
+
activePlugins: VQ,
|
|
43398
43485
|
spellCheck: i,
|
|
43399
43486
|
uploadSoundSupport: a,
|
|
43400
43487
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
43401
43488
|
mathMlOptions: o,
|
|
43402
43489
|
imageSupport: s,
|
|
43403
43490
|
autoWidthToolbar: !0
|
|
43404
|
-
})] }) }),
|
|
43491
|
+
})] }) }), v$ = j("div")({
|
|
43405
43492
|
width: "100%",
|
|
43406
43493
|
display: "flex",
|
|
43407
43494
|
justifyContent: "center",
|
|
43408
43495
|
alignItems: "center"
|
|
43409
|
-
}),
|
|
43496
|
+
}), y$ = ({ error: e, markup: t, onChange: n, pluginProps: r, label: i, placeholder: a, spellCheck: o, uploadSoundSupport: s, imageSupport: c = {}, mathMlOptions: l = {} }) => /* @__PURE__ */ F(e$, { children: /* @__PURE__ */ I(v$, { children: [i && /* @__PURE__ */ F("div", { children: i }), /* @__PURE__ */ F(xX, {
|
|
43410
43497
|
className: "underlined-editable-level",
|
|
43411
43498
|
error: e,
|
|
43412
43499
|
markup: t,
|
|
43413
43500
|
onChange: n,
|
|
43414
43501
|
placeholder: a,
|
|
43415
43502
|
pluginProps: r,
|
|
43416
|
-
activePlugins:
|
|
43503
|
+
activePlugins: VQ,
|
|
43417
43504
|
spellCheck: o,
|
|
43418
43505
|
uploadSoundSupport: s,
|
|
43419
43506
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
43420
43507
|
mathMlOptions: l,
|
|
43421
43508
|
imageSupport: c,
|
|
43422
43509
|
autoWidthToolbar: !0
|
|
43423
|
-
})] }) }),
|
|
43510
|
+
})] }) }), b$ = ({ error: e, markup: t, onChange: n, pluginProps: r, placeholder: i, alignToRight: a, spellCheck: o, uploadSoundSupport: s, mathMlOptions: c = {}, imageSupport: l = {} }) => /* @__PURE__ */ F(e$, { children: /* @__PURE__ */ F(xX, {
|
|
43424
43511
|
className: "expanded-input-prompt",
|
|
43425
43512
|
error: e,
|
|
43426
43513
|
markup: t,
|
|
@@ -43434,13 +43521,13 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43434
43521
|
autoWidthToolbar: !0,
|
|
43435
43522
|
mathMlOptions: c,
|
|
43436
43523
|
imageSupport: l
|
|
43437
|
-
}) }),
|
|
43524
|
+
}) }), x$ = j("div")(({ theme: e }) => ({
|
|
43438
43525
|
display: "flex",
|
|
43439
43526
|
justifyContent: "space-between",
|
|
43440
43527
|
alignItems: "flex-end",
|
|
43441
43528
|
paddingBottom: "18px",
|
|
43442
43529
|
gap: e.spacing(.25)
|
|
43443
|
-
})),
|
|
43530
|
+
})), S$ = j("div")(({ theme: e }) => ({
|
|
43444
43531
|
position: "absolute",
|
|
43445
43532
|
zIndex: 10,
|
|
43446
43533
|
cursor: "pointer",
|
|
@@ -43449,7 +43536,7 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43449
43536
|
justifyContent: "center",
|
|
43450
43537
|
background: `linear-gradient(to left, ${e.palette.common.white}, ${A.background()})`,
|
|
43451
43538
|
boxSizing: "border-box"
|
|
43452
|
-
})),
|
|
43539
|
+
})), C$ = j("div")(({ theme: e }) => ({
|
|
43453
43540
|
position: "absolute",
|
|
43454
43541
|
zIndex: 11,
|
|
43455
43542
|
cursor: "pointer",
|
|
@@ -43462,7 +43549,7 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43462
43549
|
position: "absolute",
|
|
43463
43550
|
bottom: "-24px"
|
|
43464
43551
|
}
|
|
43465
|
-
})),
|
|
43552
|
+
})), w$ = ({ children: e, show: t, width: n, onClick: r, left: i, showLevelTagInput: a }) => /* @__PURE__ */ F(S$, {
|
|
43466
43553
|
style: {
|
|
43467
43554
|
height: "-webkit-fill-available",
|
|
43468
43555
|
display: t ? "flex" : "none",
|
|
@@ -43471,11 +43558,11 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43471
43558
|
background: i ? `linear-gradient(to right, white, ${A.background()})` : void 0
|
|
43472
43559
|
},
|
|
43473
43560
|
onClick: r,
|
|
43474
|
-
children: /* @__PURE__ */ F(
|
|
43561
|
+
children: /* @__PURE__ */ F(C$, {
|
|
43475
43562
|
style: {
|
|
43476
43563
|
display: t ? "flex" : "none",
|
|
43477
43564
|
width: n,
|
|
43478
|
-
height: a ?
|
|
43565
|
+
height: a ? ZQ : XQ,
|
|
43479
43566
|
left: 0,
|
|
43480
43567
|
background: i ? `linear-gradient(to right, ${A.secondaryBackground()}, ${A.background()})` : void 0
|
|
43481
43568
|
},
|
|
@@ -43485,27 +43572,27 @@ var IQ = FQ(Ie, "InputContainer") || FQ(zQ.InputContainer, "InputContainer"), LQ
|
|
|
43485
43572
|
});
|
|
43486
43573
|
//#endregion
|
|
43487
43574
|
//#region src/author/traitsHeader.tsx
|
|
43488
|
-
function
|
|
43575
|
+
function T$(e) {
|
|
43489
43576
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
43490
43577
|
}
|
|
43491
|
-
function
|
|
43492
|
-
return !e ||
|
|
43578
|
+
function E$(e, t) {
|
|
43579
|
+
return !e || T$(e) ? e : T$(e.default) ? e.default : t && T$(e[t]) ? e[t] : t && T$(e[t]?.default) ? e[t].default : e;
|
|
43493
43580
|
}
|
|
43494
|
-
var
|
|
43581
|
+
var D$ = E$(ie, "InlineMenu") || E$(A$.InlineMenu, "InlineMenu"), O$ = ge, k$ = O$.default, A$ = k$ && typeof k$ == "object" ? k$ : O$, j$ = j("div")({
|
|
43495
43582
|
width: "140px",
|
|
43496
43583
|
border: "none",
|
|
43497
43584
|
padding: "10px 0",
|
|
43498
43585
|
display: "flex",
|
|
43499
43586
|
alignItems: "center",
|
|
43500
43587
|
justifyContent: "space-around"
|
|
43501
|
-
}),
|
|
43588
|
+
}), M$ = j("div")(({ height: e, theme: t }) => ({
|
|
43502
43589
|
background: A.secondaryBackground(),
|
|
43503
43590
|
borderRadius: "4px",
|
|
43504
43591
|
position: "relative",
|
|
43505
43592
|
marginBottom: t.spacing(2),
|
|
43506
43593
|
display: "flex",
|
|
43507
43594
|
height: e
|
|
43508
|
-
})),
|
|
43595
|
+
})), N$ = j("div")(({ theme: e }) => ({
|
|
43509
43596
|
width: "200px",
|
|
43510
43597
|
minWidth: "200px",
|
|
43511
43598
|
position: "relative",
|
|
@@ -43513,12 +43600,12 @@ var v$ = _$(ie, "InlineMenu") || _$(x$.InlineMenu, "InlineMenu"), y$ = ge, b$ =
|
|
|
43513
43600
|
boxSizing: "border-box",
|
|
43514
43601
|
paddingTop: e.spacing(1.5),
|
|
43515
43602
|
alignSelf: "center"
|
|
43516
|
-
})),
|
|
43603
|
+
})), P$ = j("div")(({ theme: e }) => ({
|
|
43517
43604
|
position: "absolute",
|
|
43518
43605
|
fontSize: e.typography.fontSize - 2,
|
|
43519
43606
|
color: e.palette.error.main,
|
|
43520
43607
|
paddingTop: e.spacing(.5)
|
|
43521
|
-
})),
|
|
43608
|
+
})), F$ = class extends N.Component {
|
|
43522
43609
|
static propTypes = {
|
|
43523
43610
|
maxPointsEnabled: L.default.bool,
|
|
43524
43611
|
spellCheck: L.default.bool,
|
|
@@ -43542,9 +43629,9 @@ var v$ = _$(ie, "InlineMenu") || _$(x$.InlineMenu, "InlineMenu"), y$ = ge, b$ =
|
|
|
43542
43629
|
};
|
|
43543
43630
|
render() {
|
|
43544
43631
|
let { scorePointsValues: e, scorePointsLabels: t, traitLabel: n, currentPosition: r, showStandards: i, onTraitLabelChange: a, showDescription: o, showLevelTagInput: s, maxPoints: c, updateMaxPointsFieldValue: l, scaleIndex: u, showScorePointLabels: d, secondaryBlockWidth: f, setSecondaryBlockRef: p, spellCheck: m, uploadSoundSupport: h, maxPointsEnabled: g, mathMlOptions: _ = {}, errors: v = {}, maxMaxPoints: y, labelPluginProps: b = {}, imageSupport: x = {} } = this.props, { anchorEl: S } = this.state;
|
|
43545
|
-
return /* @__PURE__ */ I(
|
|
43546
|
-
height: s ?
|
|
43547
|
-
children: [/* @__PURE__ */ I(
|
|
43632
|
+
return /* @__PURE__ */ I(M$, {
|
|
43633
|
+
height: s ? ZQ : XQ,
|
|
43634
|
+
children: [/* @__PURE__ */ I(N$, { children: [s && /* @__PURE__ */ F(_$, {
|
|
43548
43635
|
markup: n || "Trait",
|
|
43549
43636
|
onChange: a,
|
|
43550
43637
|
pluginProps: b,
|
|
@@ -43553,9 +43640,9 @@ var v$ = _$(ie, "InlineMenu") || _$(x$.InlineMenu, "InlineMenu"), y$ = ge, b$ =
|
|
|
43553
43640
|
uploadSoundSupport: h,
|
|
43554
43641
|
mathMlOptions: _,
|
|
43555
43642
|
imageSupport: x
|
|
43556
|
-
}), /* @__PURE__ */ I(
|
|
43643
|
+
}), /* @__PURE__ */ I(x$, { children: [
|
|
43557
43644
|
/* @__PURE__ */ I("div", { children: ["Scale ", u + 1] }),
|
|
43558
|
-
g && /* @__PURE__ */ F(
|
|
43645
|
+
g && /* @__PURE__ */ F(h$, {
|
|
43559
43646
|
maxPoints: c,
|
|
43560
43647
|
maxMaxPoints: y,
|
|
43561
43648
|
onChange: l
|
|
@@ -43567,7 +43654,7 @@ var v$ = _$(ie, "InlineMenu") || _$(x$.InlineMenu, "InlineMenu"), y$ = ge, b$ =
|
|
|
43567
43654
|
onClick: this.handleClick,
|
|
43568
43655
|
size: "large",
|
|
43569
43656
|
children: /* @__PURE__ */ F(gA, {})
|
|
43570
|
-
}), /* @__PURE__ */ F(
|
|
43657
|
+
}), /* @__PURE__ */ F(D$, {
|
|
43571
43658
|
id: "long-menu",
|
|
43572
43659
|
anchorEl: S,
|
|
43573
43660
|
keepMounted: !0,
|
|
@@ -43582,14 +43669,14 @@ var v$ = _$(ie, "InlineMenu") || _$(x$.InlineMenu, "InlineMenu"), y$ = ge, b$ =
|
|
|
43582
43669
|
children: e
|
|
43583
43670
|
}, e))
|
|
43584
43671
|
})] })
|
|
43585
|
-
] })] }), /* @__PURE__ */ I(
|
|
43672
|
+
] })] }), /* @__PURE__ */ I(o$, {
|
|
43586
43673
|
setRef: (e) => {
|
|
43587
43674
|
e && (this.secondaryBlock = e, p(e));
|
|
43588
43675
|
},
|
|
43589
43676
|
width: `${f}px`,
|
|
43590
43677
|
children: [
|
|
43591
|
-
i && /* @__PURE__ */ F(
|
|
43592
|
-
o && /* @__PURE__ */ F(
|
|
43678
|
+
i && /* @__PURE__ */ F(i$, { children: /* @__PURE__ */ F(j$, { children: "Standard(s)" }) }),
|
|
43679
|
+
o && /* @__PURE__ */ F(i$, { children: /* @__PURE__ */ F(j$, { children: "Description" }) }),
|
|
43593
43680
|
e.map((n, i) => {
|
|
43594
43681
|
let a = f - 216 * i + r - 128, o = e.length - i - 1, s, l;
|
|
43595
43682
|
try {
|
|
@@ -43597,7 +43684,7 @@ var v$ = _$(ie, "InlineMenu") || _$(x$.InlineMenu, "InlineMenu"), y$ = ge, b$ =
|
|
|
43597
43684
|
} catch {
|
|
43598
43685
|
s = "";
|
|
43599
43686
|
}
|
|
43600
|
-
return /* @__PURE__ */ I(
|
|
43687
|
+
return /* @__PURE__ */ I(i$, { children: [/* @__PURE__ */ F(f$, {
|
|
43601
43688
|
scorePointsValue: n,
|
|
43602
43689
|
error: l,
|
|
43603
43690
|
scoreDescriptor: s,
|
|
@@ -43612,14 +43699,14 @@ var v$ = _$(ie, "InlineMenu") || _$(x$.InlineMenu, "InlineMenu"), y$ = ge, b$ =
|
|
|
43612
43699
|
uploadSoundSupport: h,
|
|
43613
43700
|
mathMlOptions: _,
|
|
43614
43701
|
imageSupport: x
|
|
43615
|
-
}), l && /* @__PURE__ */ F(
|
|
43702
|
+
}), l && /* @__PURE__ */ F(P$, { children: l })] }, `secondary-block-part-${i}`);
|
|
43616
43703
|
})
|
|
43617
43704
|
]
|
|
43618
43705
|
})]
|
|
43619
43706
|
});
|
|
43620
43707
|
}
|
|
43621
43708
|
};
|
|
43622
|
-
|
|
43709
|
+
F$.propTypes = {
|
|
43623
43710
|
onTraitLabelChange: L.default.func,
|
|
43624
43711
|
onScaleChange: L.default.func,
|
|
43625
43712
|
scorePointsValues: L.default.arrayOf(L.default.number),
|
|
@@ -43646,30 +43733,30 @@ E$.propTypes = {
|
|
|
43646
43733
|
};
|
|
43647
43734
|
//#endregion
|
|
43648
43735
|
//#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/DragIndicator.js
|
|
43649
|
-
var
|
|
43736
|
+
var I$ = g(/*#__PURE__*/ F("path", { d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2" }), "DragIndicator");
|
|
43650
43737
|
//#endregion
|
|
43651
43738
|
//#region src/author/trait.tsx
|
|
43652
43739
|
(0, sc.default)("@pie-element:placement-ordering:configure:trait-tile");
|
|
43653
|
-
var
|
|
43740
|
+
var L$ = j(I$)({ color: A.text() }), R$ = j(r$)(({ theme: e }) => ({
|
|
43654
43741
|
display: "flex",
|
|
43655
43742
|
flexDirection: "column",
|
|
43656
43743
|
justifyContent: "space-between",
|
|
43657
43744
|
marginBottom: e.spacing(5),
|
|
43658
43745
|
touchAction: "none"
|
|
43659
|
-
})),
|
|
43746
|
+
})), z$ = j("div")({
|
|
43660
43747
|
display: "flex",
|
|
43661
43748
|
alignItems: "center",
|
|
43662
43749
|
width: "100%",
|
|
43663
43750
|
cursor: "pointer"
|
|
43664
|
-
}),
|
|
43751
|
+
}), B$ = j(Ut)({ marginLeft: "auto" }), V$ = j("div")({
|
|
43665
43752
|
display: "flex",
|
|
43666
43753
|
whiteSpace: "break-spaces"
|
|
43667
|
-
}),
|
|
43754
|
+
}), H$ = j("div")(({ theme: e }) => ({
|
|
43668
43755
|
fontSize: e.typography.fontSize - 2,
|
|
43669
43756
|
color: e.palette.error.main,
|
|
43670
43757
|
paddingBottom: e.spacing(1)
|
|
43671
43758
|
}));
|
|
43672
|
-
function
|
|
43759
|
+
function U$({ error: e, trait: { name: t, standards: n, description: r, scorePointsDescriptors: i }, traitLabel: a, scorePointsValues: o, showStandards: s, showDescription: c, enableDragAndDrop: l, currentPosition: u, secondaryBlockWidth: d, spellCheck: f, maxPoints: p, uploadSoundSupport: m, mathMlOptions: h = {}, expandedPluginProps: g = {}, labelPluginProps: _ = {}, imageSupport: v = {}, index: y, onTraitChanged: b, onTraitRemoved: x, onTraitDropped: S }) {
|
|
43673
43760
|
let [C, w] = N.useState(null), ee = N.useRef(null), { attributes: te, listeners: T, setNodeRef: E, transform: D, isDragging: ne } = tN({
|
|
43674
43761
|
id: `trait-${y}`,
|
|
43675
43762
|
data: {
|
|
@@ -43708,15 +43795,15 @@ function P$({ error: e, trait: { name: t, standards: n, description: r, scorePoi
|
|
|
43708
43795
|
transform: `translate3d(${D.x}px, ${D.y}px, 0)`,
|
|
43709
43796
|
opacity: ne ? .5 : 1
|
|
43710
43797
|
} : {},
|
|
43711
|
-
children: /* @__PURE__ */ I(
|
|
43712
|
-
/* @__PURE__ */ I(
|
|
43798
|
+
children: /* @__PURE__ */ I(s$, { children: [/* @__PURE__ */ I(R$, { children: [
|
|
43799
|
+
/* @__PURE__ */ I(z$, { children: [
|
|
43713
43800
|
l && /* @__PURE__ */ F("span", {
|
|
43714
43801
|
ref: E,
|
|
43715
43802
|
...te,
|
|
43716
43803
|
...T,
|
|
43717
|
-
children: /* @__PURE__ */ F(
|
|
43804
|
+
children: /* @__PURE__ */ F(L$, {})
|
|
43718
43805
|
}),
|
|
43719
|
-
/* @__PURE__ */ F(
|
|
43806
|
+
/* @__PURE__ */ F(B$, {
|
|
43720
43807
|
"aria-label": "more",
|
|
43721
43808
|
"aria-controls": "long-menu",
|
|
43722
43809
|
"aria-haspopup": "true",
|
|
@@ -43736,11 +43823,11 @@ function P$({ error: e, trait: { name: t, standards: n, description: r, scorePoi
|
|
|
43736
43823
|
},
|
|
43737
43824
|
children: /* @__PURE__ */ F(Qo, {
|
|
43738
43825
|
onClick: ce,
|
|
43739
|
-
children: /* @__PURE__ */ F(
|
|
43826
|
+
children: /* @__PURE__ */ F(V$, { dangerouslySetInnerHTML: { __html: `Remove ${t || a}` } })
|
|
43740
43827
|
})
|
|
43741
43828
|
})
|
|
43742
43829
|
] }),
|
|
43743
|
-
/* @__PURE__ */ F(
|
|
43830
|
+
/* @__PURE__ */ F(y$, {
|
|
43744
43831
|
markup: t,
|
|
43745
43832
|
error: e?.name || "",
|
|
43746
43833
|
onChange: (e) => O({ name: e }),
|
|
@@ -43751,14 +43838,14 @@ function P$({ error: e, trait: { name: t, standards: n, description: r, scorePoi
|
|
|
43751
43838
|
mathMlOptions: h,
|
|
43752
43839
|
imageSupport: v
|
|
43753
43840
|
}),
|
|
43754
|
-
e && /* @__PURE__ */ F(
|
|
43755
|
-
] }), /* @__PURE__ */ I(
|
|
43841
|
+
e && /* @__PURE__ */ F(H$, { children: e.name || "" })
|
|
43842
|
+
] }), /* @__PURE__ */ I(o$, {
|
|
43756
43843
|
setRef: (e) => {
|
|
43757
43844
|
ee.current = e;
|
|
43758
43845
|
},
|
|
43759
43846
|
width: `${d}px`,
|
|
43760
43847
|
children: [
|
|
43761
|
-
s && n && /* @__PURE__ */ F(
|
|
43848
|
+
s && n && /* @__PURE__ */ F(i$, { children: /* @__PURE__ */ F(b$, {
|
|
43762
43849
|
placeholder: "Standards",
|
|
43763
43850
|
markup: n.join(","),
|
|
43764
43851
|
onChange: (e) => O({ standards: e.split(",") }),
|
|
@@ -43768,7 +43855,7 @@ function P$({ error: e, trait: { name: t, standards: n, description: r, scorePoi
|
|
|
43768
43855
|
mathMlOptions: h,
|
|
43769
43856
|
imageSupport: v
|
|
43770
43857
|
}) }),
|
|
43771
|
-
c && /* @__PURE__ */ I(
|
|
43858
|
+
c && /* @__PURE__ */ I(i$, { children: [/* @__PURE__ */ F(b$, {
|
|
43772
43859
|
placeholder: "Enter Description",
|
|
43773
43860
|
markup: r,
|
|
43774
43861
|
error: e?.description || "",
|
|
@@ -43778,7 +43865,7 @@ function P$({ error: e, trait: { name: t, standards: n, description: r, scorePoi
|
|
|
43778
43865
|
uploadSoundSupport: m,
|
|
43779
43866
|
mathMlOptions: h,
|
|
43780
43867
|
imageSupport: v
|
|
43781
|
-
}), e && /* @__PURE__ */ F(
|
|
43868
|
+
}), e && /* @__PURE__ */ F(H$, { children: e.description || "" })] }),
|
|
43782
43869
|
(o || []).map((e, t) => {
|
|
43783
43870
|
let n = d - 216 * t + u - 98, r = o.length - t - 1, a;
|
|
43784
43871
|
try {
|
|
@@ -43786,7 +43873,7 @@ function P$({ error: e, trait: { name: t, standards: n, description: r, scorePoi
|
|
|
43786
43873
|
} catch {
|
|
43787
43874
|
a = "";
|
|
43788
43875
|
}
|
|
43789
|
-
return /* @__PURE__ */ F(
|
|
43876
|
+
return /* @__PURE__ */ F(i$, { children: /* @__PURE__ */ F(b$, {
|
|
43790
43877
|
placeholder: "Enter Descriptor",
|
|
43791
43878
|
markup: a,
|
|
43792
43879
|
onChange: (e) => ae({
|
|
@@ -43805,7 +43892,7 @@ function P$({ error: e, trait: { name: t, standards: n, description: r, scorePoi
|
|
|
43805
43892
|
})] })
|
|
43806
43893
|
});
|
|
43807
43894
|
}
|
|
43808
|
-
|
|
43895
|
+
U$.propTypes = {
|
|
43809
43896
|
error: L.default.object,
|
|
43810
43897
|
index: L.default.number.isRequired,
|
|
43811
43898
|
onTraitChanged: L.default.func.isRequired,
|
|
@@ -43837,13 +43924,13 @@ P$.propTypes = {
|
|
|
43837
43924
|
};
|
|
43838
43925
|
//#endregion
|
|
43839
43926
|
//#region src/author/scale.tsx
|
|
43840
|
-
var
|
|
43927
|
+
var W$ = 216, G$ = j("div")(({ theme: e }) => ({
|
|
43841
43928
|
display: "flex",
|
|
43842
43929
|
flexDirection: "column",
|
|
43843
43930
|
wordBreak: "break-word",
|
|
43844
43931
|
position: "relative",
|
|
43845
43932
|
marginBottom: e.spacing(2.5)
|
|
43846
|
-
})),
|
|
43933
|
+
})), K$ = class extends N.Component {
|
|
43847
43934
|
state = {
|
|
43848
43935
|
showDecreaseMaxPointsDialog: !1,
|
|
43849
43936
|
showDeleteScaleDialog: !1,
|
|
@@ -43945,7 +44032,7 @@ var F$ = 216, I$ = j("div")(({ theme: e }) => ({
|
|
|
43945
44032
|
}
|
|
43946
44033
|
};
|
|
43947
44034
|
decreasePosition = () => {
|
|
43948
|
-
let { currentPosition: e } = this.state, t = Math.max(e -
|
|
44035
|
+
let { currentPosition: e } = this.state, t = Math.max(e - W$, 0), n = this.getMaxScroll();
|
|
43949
44036
|
this.setState({
|
|
43950
44037
|
currentPosition: t,
|
|
43951
44038
|
showRight: t < n,
|
|
@@ -43962,7 +44049,7 @@ var F$ = 216, I$ = j("div")(({ theme: e }) => ({
|
|
|
43962
44049
|
return +!!t + +!!n + a;
|
|
43963
44050
|
};
|
|
43964
44051
|
increasePosition = () => {
|
|
43965
|
-
let { currentPosition: e } = this.state, t = this.getMaxScroll(), n = Math.min(e +
|
|
44052
|
+
let { currentPosition: e } = this.state, t = this.getMaxScroll(), n = Math.min(e + W$, t);
|
|
43966
44053
|
this.setState({
|
|
43967
44054
|
currentPosition: n,
|
|
43968
44055
|
showRight: n < t,
|
|
@@ -43972,14 +44059,14 @@ var F$ = 216, I$ = j("div")(({ theme: e }) => ({
|
|
|
43972
44059
|
render() {
|
|
43973
44060
|
let { errors: e, scale: t, scaleIndex: n, showStandards: r, onScaleChanged: i, excludeZero: a, showDescription: o, showLevelTagInput: s, showScorePointLabels: c, enableDragAndDrop: l, spellCheck: u, width: d, uploadSoundSupport: f, maxPointsEnabled: p, mathMlOptions: m = {}, maxMaxPoints: h, expandedPluginProps: g = {}, labelPluginProps: _ = {}, imageSupport: v = {} } = this.props || {}, { maxPoints: y, scorePointsLabels: b, traitLabel: x, traits: S } = t || {}, { showDecreaseMaxPointsDialog: C, showDeleteScaleDialog: w, showDeleteTraitDialog: ee, currentPosition: te, showRight: T, showLeft: E, showInfoDialog: D, infoDialogText: ne } = this.state, { traitsErrors: re, scorePointsErrors: O } = e || {}, ie = re && re[n] || {}, ae = O && O[n] || {}, oe = [], se = parseInt(d) - 32 - 200 || 320;
|
|
43974
44061
|
for (let e = y; +(e >= a); --e) oe.push(e);
|
|
43975
|
-
return /* @__PURE__ */ F(
|
|
44062
|
+
return /* @__PURE__ */ F(CQ, {
|
|
43976
44063
|
onDragEnd: this.onTraitDropped,
|
|
43977
|
-
children: /* @__PURE__ */ I(
|
|
44064
|
+
children: /* @__PURE__ */ I(G$, {
|
|
43978
44065
|
ref: (e) => {
|
|
43979
44066
|
this.scaleWrapper = e;
|
|
43980
44067
|
},
|
|
43981
44068
|
children: [
|
|
43982
|
-
/* @__PURE__ */ F(
|
|
44069
|
+
/* @__PURE__ */ F(F$, {
|
|
43983
44070
|
setSecondaryBlockRef: (e) => {
|
|
43984
44071
|
e && (this.secondaryBlockRef = e);
|
|
43985
44072
|
},
|
|
@@ -44008,7 +44095,7 @@ var F$ = 216, I$ = j("div")(({ theme: e }) => ({
|
|
|
44008
44095
|
labelPluginProps: _,
|
|
44009
44096
|
imageSupport: v
|
|
44010
44097
|
}, "header-key"),
|
|
44011
|
-
S.map((e, t) => /* @__PURE__ */ F(
|
|
44098
|
+
S.map((e, t) => /* @__PURE__ */ F(U$, {
|
|
44012
44099
|
index: t,
|
|
44013
44100
|
error: ie && ie[t],
|
|
44014
44101
|
trait: e,
|
|
@@ -44030,43 +44117,43 @@ var F$ = 216, I$ = j("div")(({ theme: e }) => ({
|
|
|
44030
44117
|
labelPluginProps: _,
|
|
44031
44118
|
imageSupport: v
|
|
44032
44119
|
}, t)),
|
|
44033
|
-
/* @__PURE__ */ F(
|
|
44034
|
-
width: `${
|
|
44120
|
+
/* @__PURE__ */ F(w$, {
|
|
44121
|
+
width: `${W$ / 2}px`,
|
|
44035
44122
|
show: E,
|
|
44036
44123
|
onClick: this.decreasePosition,
|
|
44037
44124
|
left: "200px",
|
|
44038
44125
|
showLevelTagInput: s,
|
|
44039
44126
|
children: /* @__PURE__ */ F(Ae, {})
|
|
44040
44127
|
}),
|
|
44041
|
-
/* @__PURE__ */ F(
|
|
44042
|
-
width: `${
|
|
44128
|
+
/* @__PURE__ */ F(w$, {
|
|
44129
|
+
width: `${W$ / 2}px`,
|
|
44043
44130
|
show: T,
|
|
44044
44131
|
onClick: this.increasePosition,
|
|
44045
44132
|
showLevelTagInput: s,
|
|
44046
44133
|
children: /* @__PURE__ */ F(we, {})
|
|
44047
44134
|
}),
|
|
44048
|
-
/* @__PURE__ */ F(
|
|
44135
|
+
/* @__PURE__ */ F(n$, {
|
|
44049
44136
|
onClick: this.onTraitAdded,
|
|
44050
44137
|
children: /* @__PURE__ */ F("div", { dangerouslySetInnerHTML: { __html: `Add ${x || " Trait"}` } })
|
|
44051
44138
|
}),
|
|
44052
|
-
/* @__PURE__ */ F(
|
|
44139
|
+
/* @__PURE__ */ F(LQ, {
|
|
44053
44140
|
open: !!C,
|
|
44054
44141
|
deleteScorePoints: this.changeMaxPoints,
|
|
44055
44142
|
cancel: this.hideDecreaseMaxPointsModal
|
|
44056
44143
|
}),
|
|
44057
|
-
/* @__PURE__ */ F(
|
|
44144
|
+
/* @__PURE__ */ F(RQ, {
|
|
44058
44145
|
open: !!w,
|
|
44059
44146
|
scaleIndex: n,
|
|
44060
44147
|
deleteScale: this.deleteScale,
|
|
44061
44148
|
cancel: this.hideDeleteScaleModal
|
|
44062
44149
|
}),
|
|
44063
|
-
/* @__PURE__ */ F(
|
|
44150
|
+
/* @__PURE__ */ F(zQ, {
|
|
44064
44151
|
open: !!ee,
|
|
44065
44152
|
deleteTrait: this.onTraitRemoved,
|
|
44066
44153
|
cancel: this.hideDeleteTraitModal,
|
|
44067
44154
|
traitLabel: x.toLowerCase()
|
|
44068
44155
|
}),
|
|
44069
|
-
/* @__PURE__ */ F(
|
|
44156
|
+
/* @__PURE__ */ F(BQ, {
|
|
44070
44157
|
open: D,
|
|
44071
44158
|
text: ne,
|
|
44072
44159
|
onClose: () => this.set({ showInfoDialog: !1 })
|
|
@@ -44076,7 +44163,7 @@ var F$ = 216, I$ = j("div")(({ theme: e }) => ({
|
|
|
44076
44163
|
});
|
|
44077
44164
|
}
|
|
44078
44165
|
};
|
|
44079
|
-
|
|
44166
|
+
K$.propTypes = {
|
|
44080
44167
|
errors: L.default.object,
|
|
44081
44168
|
scale: L.default.shape({
|
|
44082
44169
|
maxPoints: L.default.number,
|
|
@@ -44105,26 +44192,26 @@ L$.propTypes = {
|
|
|
44105
44192
|
};
|
|
44106
44193
|
//#endregion
|
|
44107
44194
|
//#region src/author/main.tsx
|
|
44108
|
-
var { Panel:
|
|
44195
|
+
var { Panel: q$, toggle: J$ } = pQ, Y$ = "650px", X$ = j("div")(({ theme: e }) => ({
|
|
44109
44196
|
fontFamily: "Cerebri Sans",
|
|
44110
44197
|
fontSize: e.typography.fontSize + 2,
|
|
44111
44198
|
padding: "16px 0"
|
|
44112
|
-
})),
|
|
44199
|
+
})), Z$ = ({ showExcludeZeroDialog: e, excludeZero: t, changeExcludeZero: n, cancel: r }) => e && !t ? /* @__PURE__ */ F(FQ, {
|
|
44113
44200
|
open: e && !t,
|
|
44114
44201
|
changeExcludeZero: n,
|
|
44115
44202
|
cancel: r
|
|
44116
|
-
}) : e && t ? /* @__PURE__ */ F(
|
|
44203
|
+
}) : e && t ? /* @__PURE__ */ F(IQ, {
|
|
44117
44204
|
open: e && t,
|
|
44118
44205
|
changeExcludeZero: n,
|
|
44119
44206
|
cancel: r
|
|
44120
44207
|
}) : null;
|
|
44121
|
-
|
|
44208
|
+
Z$.propTypes = {
|
|
44122
44209
|
showExcludeZeroDialog: L.default.bool,
|
|
44123
44210
|
excludeZero: L.default.bool,
|
|
44124
44211
|
changeExcludeZero: L.default.func,
|
|
44125
44212
|
cancel: L.default.func
|
|
44126
44213
|
};
|
|
44127
|
-
var
|
|
44214
|
+
var Q$ = class extends N.Component {
|
|
44128
44215
|
constructor(e) {
|
|
44129
44216
|
super(e), this.divRef = N.createRef(), this.updateDivWidth = this.updateDivWidth.bind(this);
|
|
44130
44217
|
}
|
|
@@ -44135,7 +44222,7 @@ var U$ = class extends N.Component {
|
|
|
44135
44222
|
showExcludeZeroDialog: !1,
|
|
44136
44223
|
showInfoDialog: !1,
|
|
44137
44224
|
infoDialogText: "",
|
|
44138
|
-
adjustedWidth:
|
|
44225
|
+
adjustedWidth: Y$,
|
|
44139
44226
|
initialUpdateCompleted: !1
|
|
44140
44227
|
};
|
|
44141
44228
|
componentDidMount() {
|
|
@@ -44175,7 +44262,7 @@ var U$ = class extends N.Component {
|
|
|
44175
44262
|
if (e < 0 || e >= i.length || At(t)) return !1;
|
|
44176
44263
|
Object.keys(t).forEach((n) => {
|
|
44177
44264
|
i[e][n] = t[n];
|
|
44178
|
-
}), n.excludeZero && t.maxPoints === 1 && (n.excludeZero = !1, i =
|
|
44265
|
+
}), n.excludeZero && t.maxPoints === 1 && (n.excludeZero = !1, i = HQ(i, kQ.add0)), r({
|
|
44179
44266
|
...n,
|
|
44180
44267
|
scales: i
|
|
44181
44268
|
});
|
|
@@ -44237,7 +44324,7 @@ var U$ = class extends N.Component {
|
|
|
44237
44324
|
let { model: t, onModelChanged: n } = this.props || {}, { scales: r } = t || {}, { excludeZero: i } = t || {};
|
|
44238
44325
|
if (!r || !r.length) return;
|
|
44239
44326
|
i = !i;
|
|
44240
|
-
let a =
|
|
44327
|
+
let a = HQ(r, e);
|
|
44241
44328
|
n({
|
|
44242
44329
|
...t,
|
|
44243
44330
|
scales: a,
|
|
@@ -44250,24 +44337,24 @@ var U$ = class extends N.Component {
|
|
|
44250
44337
|
};
|
|
44251
44338
|
render() {
|
|
44252
44339
|
let { model: e, configuration: t, onConfigurationChanged: n, uploadSoundSupport: r, imageSupport: i } = this.props || {}, { addScale: a, baseInputConfiguration: o = {}, dragAndDrop: s, contentDimensions: c = {}, showDescription: l, showExcludeZero: u, showLevelTagInput: d, showStandards: f, showHalfScoring: p, showMaxPoint: m, showScorePointLabels: h, showVisibleToStudent: g, spellCheck: _ = {}, settingsPanelDisabled: v, maxNoOfTraits: y, minNoOfTraits: b, width: x, mathMlOptions: S = {}, maxMaxPoints: C, expandedInput: w = {}, labelInput: ee = {} } = t || {}, { errors: te, extraCSSRules: T, scales: E, excludeZero: D, description: ne, pointLabels: re, standards: O, spellCheckEnabled: ie, maxPointsEnabled: ae, addScaleEnabled: oe } = e || {}, { showExcludeZeroDialog: se, showInfoDialog: ce, infoDialogText: le, adjustedWidth: ue } = this.state || {}, de = E?.some((e) => e.maxPoints === 1), fe = {
|
|
44253
|
-
standards: f.settings &&
|
|
44254
|
-
"showLevelTagInput.enabled": d.settings &&
|
|
44255
|
-
visibleToStudent: g.settings &&
|
|
44256
|
-
excludeZero: u.settings &&
|
|
44257
|
-
halfScoring: p.settings &&
|
|
44258
|
-
"dragAndDrop.enabled": s.settings &&
|
|
44340
|
+
standards: f.settings && J$(f.label),
|
|
44341
|
+
"showLevelTagInput.enabled": d.settings && J$(d.label, !0),
|
|
44342
|
+
visibleToStudent: g.settings && J$(g.label),
|
|
44343
|
+
excludeZero: u.settings && J$(u.label, !1, de),
|
|
44344
|
+
halfScoring: p.settings && J$(p.label),
|
|
44345
|
+
"dragAndDrop.enabled": s.settings && J$(s.label, !0)
|
|
44259
44346
|
}, k = {
|
|
44260
|
-
description: l.settings &&
|
|
44261
|
-
pointLabels: h.settings &&
|
|
44262
|
-
spellCheckEnabled: _.settings &&
|
|
44263
|
-
maxPointsEnabled: m.settings &&
|
|
44264
|
-
addScaleEnabled: a.settings &&
|
|
44347
|
+
description: l.settings && J$(l.label),
|
|
44348
|
+
pointLabels: h.settings && J$(h.label),
|
|
44349
|
+
spellCheckEnabled: _.settings && J$(_.label),
|
|
44350
|
+
maxPointsEnabled: m.settings && J$(m.label),
|
|
44351
|
+
addScaleEnabled: a.settings && J$(a.label)
|
|
44265
44352
|
}, pe = (e) => Object.assign({ ...o }, e || {});
|
|
44266
|
-
return /* @__PURE__ */ I(
|
|
44353
|
+
return /* @__PURE__ */ I(RZ.ConfigLayout, {
|
|
44267
44354
|
extraCSSRules: T,
|
|
44268
44355
|
dimensions: c,
|
|
44269
44356
|
hideSettings: v,
|
|
44270
|
-
settings: /* @__PURE__ */ F(
|
|
44357
|
+
settings: /* @__PURE__ */ F(q$, {
|
|
44271
44358
|
model: e,
|
|
44272
44359
|
onChangeModel: this.onModelChanged,
|
|
44273
44360
|
configuration: t,
|
|
@@ -44276,7 +44363,7 @@ var U$ = class extends N.Component {
|
|
|
44276
44363
|
Settings: fe,
|
|
44277
44364
|
Properties: k
|
|
44278
44365
|
},
|
|
44279
|
-
modal: /* @__PURE__ */ F(
|
|
44366
|
+
modal: /* @__PURE__ */ F(Z$, {
|
|
44280
44367
|
showExcludeZeroDialog: se,
|
|
44281
44368
|
excludeZero: D,
|
|
44282
44369
|
changeExcludeZero: this.changeExcludeZero,
|
|
@@ -44288,9 +44375,9 @@ var U$ = class extends N.Component {
|
|
|
44288
44375
|
style: { width: "100%" },
|
|
44289
44376
|
ref: this.divRef
|
|
44290
44377
|
}),
|
|
44291
|
-
/* @__PURE__ */ I(
|
|
44378
|
+
/* @__PURE__ */ I(X$, {
|
|
44292
44379
|
style: { width: x || ue },
|
|
44293
|
-
children: [(E || []).map((e, t) => /* @__PURE__ */ F(
|
|
44380
|
+
children: [(E || []).map((e, t) => /* @__PURE__ */ F(K$, {
|
|
44294
44381
|
scale: e,
|
|
44295
44382
|
scaleIndex: t,
|
|
44296
44383
|
errors: te,
|
|
@@ -44314,12 +44401,12 @@ var U$ = class extends N.Component {
|
|
|
44314
44401
|
maxMaxPoints: C,
|
|
44315
44402
|
expandedPluginProps: pe(w?.inputConfiguration),
|
|
44316
44403
|
labelPluginProps: pe(ee?.inputConfiguration)
|
|
44317
|
-
}, `scale-${t}`)), oe && /* @__PURE__ */ F(
|
|
44404
|
+
}, `scale-${t}`)), oe && /* @__PURE__ */ F(n$, {
|
|
44318
44405
|
onClick: this.onScaleAdded,
|
|
44319
44406
|
children: "Add Scale"
|
|
44320
44407
|
})]
|
|
44321
44408
|
}),
|
|
44322
|
-
/* @__PURE__ */ F(
|
|
44409
|
+
/* @__PURE__ */ F(BQ, {
|
|
44323
44410
|
open: ce,
|
|
44324
44411
|
text: le,
|
|
44325
44412
|
onClose: () => this.set({ showInfoDialog: !1 })
|
|
@@ -44328,7 +44415,7 @@ var U$ = class extends N.Component {
|
|
|
44328
44415
|
});
|
|
44329
44416
|
}
|
|
44330
44417
|
};
|
|
44331
|
-
|
|
44418
|
+
Q$.propTypes = {
|
|
44332
44419
|
model: L.default.object,
|
|
44333
44420
|
uploadSoundSupport: L.default.object,
|
|
44334
44421
|
configuration: L.default.object,
|
|
@@ -44341,15 +44428,15 @@ U$.propTypes = {
|
|
|
44341
44428
|
};
|
|
44342
44429
|
//#endregion
|
|
44343
44430
|
//#region src/author/index.ts
|
|
44344
|
-
var
|
|
44345
|
-
...
|
|
44431
|
+
var $$ = (e) => ({
|
|
44432
|
+
...wQ.model,
|
|
44346
44433
|
...e
|
|
44347
|
-
}),
|
|
44348
|
-
...
|
|
44434
|
+
}), e1 = (e) => ({
|
|
44435
|
+
...wQ.configuration,
|
|
44349
44436
|
...e
|
|
44350
|
-
}),
|
|
44437
|
+
}), t1 = class extends HTMLElement {
|
|
44351
44438
|
constructor() {
|
|
44352
|
-
super(), this._root = null, this._model =
|
|
44439
|
+
super(), this._root = null, this._model = $$(), this._configuration = e1();
|
|
44353
44440
|
}
|
|
44354
44441
|
updateModelAccordingToReceivedProps = (e) => {
|
|
44355
44442
|
let t = { ...this._model };
|
|
@@ -44371,19 +44458,19 @@ var W$ = (e) => ({
|
|
|
44371
44458
|
if (t !== n) if (t < n) for (let r = 0; r < n - t; r++) e.scorePointsDescriptors.push("");
|
|
44372
44459
|
else e.scorePointsDescriptors = e.scorePointsDescriptors.slice(0, n);
|
|
44373
44460
|
});
|
|
44374
|
-
}), n.excludeZero && n.scales.some((e) => e.maxPoints === 1) && (n.excludeZero = !1, n.scales =
|
|
44461
|
+
}), n.excludeZero && n.scales.some((e) => e.maxPoints === 1) && (n.excludeZero = !1, n.scales = HQ(r, kQ.add0)), n;
|
|
44375
44462
|
};
|
|
44376
44463
|
set model(e) {
|
|
44377
|
-
this._model = this.updateModelAccordingToReceivedProps(
|
|
44464
|
+
this._model = this.updateModelAccordingToReceivedProps($$(e)), this._render();
|
|
44378
44465
|
}
|
|
44379
44466
|
set configuration(e) {
|
|
44380
|
-
this._configuration =
|
|
44467
|
+
this._configuration = e1(e), this._render();
|
|
44381
44468
|
}
|
|
44382
44469
|
onModelChanged = (e) => {
|
|
44383
|
-
this._model = this.updateModelAccordingToReceivedProps(
|
|
44470
|
+
this._model = this.updateModelAccordingToReceivedProps($$(e)), this._render(), this.dispatchEvent(new _t(this._model, !1));
|
|
44384
44471
|
};
|
|
44385
44472
|
onConfigurationChanged = (e) => {
|
|
44386
|
-
this._configuration =
|
|
44473
|
+
this._configuration = e1(e), this._render();
|
|
44387
44474
|
};
|
|
44388
44475
|
insertSound(e) {
|
|
44389
44476
|
this.dispatchEvent(new xt(e));
|
|
@@ -44399,7 +44486,7 @@ var W$ = (e) => ({
|
|
|
44399
44486
|
}
|
|
44400
44487
|
_render() {
|
|
44401
44488
|
if (this._model) {
|
|
44402
|
-
let e = N.createElement(
|
|
44489
|
+
let e = N.createElement(Q$, {
|
|
44403
44490
|
model: this._model,
|
|
44404
44491
|
configuration: this._configuration,
|
|
44405
44492
|
onModelChanged: this.onModelChanged,
|
|
@@ -44424,6 +44511,6 @@ var W$ = (e) => ({
|
|
|
44424
44511
|
}
|
|
44425
44512
|
};
|
|
44426
44513
|
//#endregion
|
|
44427
|
-
export {
|
|
44514
|
+
export { t1 as default };
|
|
44428
44515
|
|
|
44429
44516
|
//# sourceMappingURL=index.js.map
|