@pie-element/multiple-choice 13.3.5-next.2 → 13.3.5-next.3
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 +785 -698
- package/dist/browser/author/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -38865,8 +38865,8 @@ qm.create({
|
|
|
38865
38865
|
})) ?? null };
|
|
38866
38866
|
}
|
|
38867
38867
|
});
|
|
38868
|
-
var _q = "placeholder", vq = new Qi("tiptap__placeholder")
|
|
38869
|
-
function
|
|
38868
|
+
var _q = "placeholder", vq = new Qi("tiptap__placeholder");
|
|
38869
|
+
function yq(e) {
|
|
38870
38870
|
let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
|
|
38871
38871
|
return o && u.push(l), Yu.node(i, i + a.nodeSize, {
|
|
38872
38872
|
class: u.join(" "),
|
|
@@ -38878,156 +38878,198 @@ function bq(e) {
|
|
|
38878
38878
|
}) : n
|
|
38879
38879
|
});
|
|
38880
38880
|
}
|
|
38881
|
-
function
|
|
38881
|
+
function bq(e, t) {
|
|
38882
|
+
return typeof e == "function" ? e(t) : e;
|
|
38883
|
+
}
|
|
38884
|
+
function xq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
|
|
38885
|
+
let { anchor: s } = i, c = [], l = e.isEmpty;
|
|
38886
|
+
return r.nodesBetween(a, o, (r, i) => {
|
|
38887
|
+
let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && tm(r);
|
|
38888
|
+
return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(yq({
|
|
38889
|
+
editor: e,
|
|
38890
|
+
isEmptyDoc: l,
|
|
38891
|
+
dataAttribute: n,
|
|
38892
|
+
hasAnchor: a,
|
|
38893
|
+
placeholder: t.placeholder,
|
|
38894
|
+
classes: {
|
|
38895
|
+
emptyEditor: t.emptyEditorClass,
|
|
38896
|
+
emptyNode: bq(t.emptyNodeClass, {
|
|
38897
|
+
editor: e,
|
|
38898
|
+
node: r,
|
|
38899
|
+
pos: i,
|
|
38900
|
+
hasAnchor: a
|
|
38901
|
+
})
|
|
38902
|
+
},
|
|
38903
|
+
node: r,
|
|
38904
|
+
pos: i
|
|
38905
|
+
})), t.includeChildren;
|
|
38906
|
+
}), c;
|
|
38907
|
+
}
|
|
38908
|
+
function Sq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
|
|
38882
38909
|
if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
|
|
38883
|
-
let { anchor: a } = i, o = [], s = e.isEmpty
|
|
38884
|
-
emptyEditor: t.emptyEditorClass,
|
|
38885
|
-
emptyNode: t.emptyNodeClass
|
|
38886
|
-
};
|
|
38910
|
+
let { anchor: a } = i, o = [], s = e.isEmpty;
|
|
38887
38911
|
if (t.showOnlyCurrent && !t.includeChildren) {
|
|
38888
|
-
let i = r.resolve(a),
|
|
38889
|
-
if (
|
|
38890
|
-
let r = a >=
|
|
38891
|
-
o.push(
|
|
38912
|
+
let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
|
|
38913
|
+
if (c && c.type.isTextblock && tm(c)) {
|
|
38914
|
+
let r = a >= l && a <= l + c.nodeSize;
|
|
38915
|
+
o.push(yq({
|
|
38892
38916
|
editor: e,
|
|
38893
38917
|
isEmptyDoc: s,
|
|
38894
38918
|
dataAttribute: n,
|
|
38895
38919
|
hasAnchor: r,
|
|
38896
38920
|
placeholder: t.placeholder,
|
|
38897
|
-
classes:
|
|
38898
|
-
|
|
38899
|
-
|
|
38921
|
+
classes: {
|
|
38922
|
+
emptyEditor: t.emptyEditorClass,
|
|
38923
|
+
emptyNode: bq(t.emptyNodeClass, {
|
|
38924
|
+
editor: e,
|
|
38925
|
+
node: c,
|
|
38926
|
+
pos: l,
|
|
38927
|
+
hasAnchor: r
|
|
38928
|
+
})
|
|
38929
|
+
},
|
|
38930
|
+
node: c,
|
|
38931
|
+
pos: l
|
|
38900
38932
|
}));
|
|
38901
38933
|
}
|
|
38902
|
-
} else {
|
|
38903
|
-
|
|
38904
|
-
|
|
38905
|
-
|
|
38906
|
-
|
|
38907
|
-
|
|
38908
|
-
|
|
38909
|
-
|
|
38910
|
-
|
|
38911
|
-
placeholder: t.placeholder,
|
|
38912
|
-
classes: c,
|
|
38913
|
-
node: r,
|
|
38914
|
-
pos: i
|
|
38915
|
-
})), t.includeChildren;
|
|
38916
|
-
});
|
|
38917
|
-
}
|
|
38934
|
+
} else o.push(...xq({
|
|
38935
|
+
editor: e,
|
|
38936
|
+
options: t,
|
|
38937
|
+
dataAttribute: n,
|
|
38938
|
+
doc: r,
|
|
38939
|
+
selection: i,
|
|
38940
|
+
from: 0,
|
|
38941
|
+
to: r.content.size
|
|
38942
|
+
}));
|
|
38918
38943
|
return Qu.create(r, o);
|
|
38919
38944
|
}
|
|
38920
|
-
function
|
|
38921
|
-
|
|
38945
|
+
function Cq(e, t) {
|
|
38946
|
+
let n = e.resolve(t);
|
|
38947
|
+
if (n.depth === 0) {
|
|
38948
|
+
let e = n.nodeAfter ?? n.nodeBefore;
|
|
38949
|
+
if (!e) return {
|
|
38950
|
+
from: t,
|
|
38951
|
+
to: t
|
|
38952
|
+
};
|
|
38953
|
+
let r = n.nodeAfter ? t : t - e.nodeSize;
|
|
38954
|
+
return {
|
|
38955
|
+
from: r,
|
|
38956
|
+
to: r + e.nodeSize
|
|
38957
|
+
};
|
|
38958
|
+
}
|
|
38959
|
+
let r = n.before(1);
|
|
38960
|
+
return {
|
|
38961
|
+
from: r,
|
|
38962
|
+
to: r + n.node(1).nodeSize
|
|
38963
|
+
};
|
|
38922
38964
|
}
|
|
38923
|
-
function
|
|
38924
|
-
|
|
38925
|
-
|
|
38965
|
+
function wq(e, t) {
|
|
38966
|
+
return {
|
|
38967
|
+
from: Math.max(0, t.from - 1),
|
|
38968
|
+
to: Math.min(e.content.size, t.to - 1)
|
|
38969
|
+
};
|
|
38926
38970
|
}
|
|
38927
|
-
function
|
|
38928
|
-
let
|
|
38929
|
-
|
|
38930
|
-
|
|
38931
|
-
|
|
38932
|
-
|
|
38933
|
-
|
|
38934
|
-
|
|
38935
|
-
|
|
38936
|
-
|
|
38937
|
-
|
|
38938
|
-
|
|
38939
|
-
|
|
38940
|
-
|
|
38971
|
+
function Tq(e, t, n) {
|
|
38972
|
+
let r = [];
|
|
38973
|
+
return e.forEach((e, i) => {
|
|
38974
|
+
let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
|
|
38975
|
+
s < n && c > t && r.push({
|
|
38976
|
+
from: a,
|
|
38977
|
+
to: o
|
|
38978
|
+
});
|
|
38979
|
+
}), r;
|
|
38980
|
+
}
|
|
38981
|
+
function Eq(e) {
|
|
38982
|
+
if (e.length === 0) return [];
|
|
38983
|
+
let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
|
|
38984
|
+
for (let e = 1; e < t.length; e += 1) {
|
|
38985
|
+
let r = n[n.length - 1], i = t[e];
|
|
38986
|
+
i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
|
|
38941
38987
|
}
|
|
38942
|
-
return
|
|
38988
|
+
return n;
|
|
38943
38989
|
}
|
|
38944
|
-
function
|
|
38945
|
-
|
|
38946
|
-
|
|
38947
|
-
bottom: window.innerHeight
|
|
38948
|
-
} : e.getBoundingClientRect();
|
|
38990
|
+
function Dq(e, t) {
|
|
38991
|
+
let n = Tq(e, t.from, t.to);
|
|
38992
|
+
return n.push(wq(e, Cq(e, t.from))), t.to > t.from ? n.push(wq(e, Cq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(wq(e, Cq(e, Math.min(t.from + 1, e.content.size)))), n;
|
|
38949
38993
|
}
|
|
38950
|
-
function
|
|
38951
|
-
let r =
|
|
38952
|
-
|
|
38953
|
-
|
|
38954
|
-
|
|
38955
|
-
|
|
38956
|
-
|
|
38957
|
-
bottom: e.content.size
|
|
38958
|
-
};
|
|
38959
|
-
let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
|
|
38960
|
-
left: s,
|
|
38961
|
-
top: a + 2
|
|
38962
|
-
}), l = t.posAtCoords({
|
|
38963
|
-
left: s,
|
|
38964
|
-
top: o - 2
|
|
38965
|
-
});
|
|
38966
|
-
return {
|
|
38967
|
-
top: c ? c.pos : 0,
|
|
38968
|
-
bottom: l ? l.pos : e.content.size
|
|
38969
|
-
};
|
|
38994
|
+
function Oq(e, t, n) {
|
|
38995
|
+
let r = [];
|
|
38996
|
+
if (e.docChanged) {
|
|
38997
|
+
let t = Wp(e);
|
|
38998
|
+
for (let e of t) r.push(...Dq(n.doc, e.newRange));
|
|
38999
|
+
}
|
|
39000
|
+
return e.selectionSet && (r.push(wq(n.doc, Cq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(wq(n.doc, Cq(n.doc, n.selection.anchor)))), Eq(r);
|
|
38970
39001
|
}
|
|
38971
|
-
|
|
38972
|
-
|
|
38973
|
-
|
|
38974
|
-
|
|
38975
|
-
|
|
38976
|
-
|
|
38977
|
-
|
|
38978
|
-
|
|
38979
|
-
|
|
38980
|
-
|
|
38981
|
-
|
|
38982
|
-
|
|
38983
|
-
|
|
38984
|
-
|
|
38985
|
-
|
|
38986
|
-
|
|
39002
|
+
function kq(e, t, n) {
|
|
39003
|
+
let r = Math.max(0, Math.min(e, n.content.size));
|
|
39004
|
+
return {
|
|
39005
|
+
from: r,
|
|
39006
|
+
to: Math.max(r, Math.min(t, n.content.size))
|
|
39007
|
+
};
|
|
39008
|
+
}
|
|
39009
|
+
function Aq({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
|
|
39010
|
+
let s = e;
|
|
39011
|
+
for (let e of t) {
|
|
39012
|
+
let { from: t, to: c } = kq(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
|
|
39013
|
+
l.length && (s = s.remove(l));
|
|
39014
|
+
let u = xq({
|
|
39015
|
+
editor: n,
|
|
39016
|
+
options: r,
|
|
39017
|
+
dataAttribute: i,
|
|
39018
|
+
doc: a,
|
|
39019
|
+
selection: o,
|
|
39020
|
+
from: t,
|
|
39021
|
+
to: c
|
|
39022
|
+
});
|
|
39023
|
+
u.length && (s = s.add(a, u));
|
|
38987
39024
|
}
|
|
38988
|
-
|
|
38989
|
-
|
|
38990
|
-
|
|
38991
|
-
|
|
38992
|
-
|
|
38993
|
-
|
|
38994
|
-
|
|
38995
|
-
|
|
38996
|
-
|
|
38997
|
-
|
|
38998
|
-
|
|
38999
|
-
|
|
39000
|
-
r === null && (r = requestAnimationFrame(() => {
|
|
39001
|
-
r = null;
|
|
39002
|
-
let e = performance.now();
|
|
39003
|
-
e - i >= 150 ? (i = e, n()) : a();
|
|
39004
|
-
}));
|
|
39005
|
-
};
|
|
39006
|
-
return t.addEventListener("scroll", a, { passive: !0 }), n(), {
|
|
39007
|
-
update(t, n) {
|
|
39008
|
-
e.state.doc.content.size !== n.doc.content.size && a();
|
|
39025
|
+
return s;
|
|
39026
|
+
}
|
|
39027
|
+
function jq({ editor: e, options: t, dataAttribute: n }) {
|
|
39028
|
+
return {
|
|
39029
|
+
init(r, i) {
|
|
39030
|
+
return Sq({
|
|
39031
|
+
editor: e,
|
|
39032
|
+
options: t,
|
|
39033
|
+
dataAttribute: n,
|
|
39034
|
+
doc: i.doc,
|
|
39035
|
+
selection: i.selection
|
|
39036
|
+
}) ?? Qu.empty;
|
|
39009
39037
|
},
|
|
39010
|
-
|
|
39011
|
-
r
|
|
39038
|
+
apply(r, i, a, o) {
|
|
39039
|
+
return !r.docChanged && !r.selectionSet ? i : Aq({
|
|
39040
|
+
decorations: i.map(r.mapping, r.doc),
|
|
39041
|
+
ranges: Oq(r, a, o),
|
|
39042
|
+
editor: e,
|
|
39043
|
+
options: t,
|
|
39044
|
+
dataAttribute: n,
|
|
39045
|
+
doc: o.doc,
|
|
39046
|
+
selection: o.selection
|
|
39047
|
+
});
|
|
39012
39048
|
}
|
|
39013
39049
|
};
|
|
39014
39050
|
}
|
|
39015
|
-
function
|
|
39016
|
-
|
|
39051
|
+
function Mq(e) {
|
|
39052
|
+
return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
39053
|
+
}
|
|
39054
|
+
function Nq({ editor: e, options: t }) {
|
|
39055
|
+
let n = t.dataAttribute ? `data-${Mq(t.dataAttribute)}` : `data-${_q}`, r = t.showOnlyCurrent && !t.includeChildren;
|
|
39017
39056
|
return new B({
|
|
39018
39057
|
key: vq,
|
|
39019
|
-
state:
|
|
39020
|
-
|
|
39021
|
-
|
|
39058
|
+
...r ? {} : { state: jq({
|
|
39059
|
+
editor: e,
|
|
39060
|
+
options: t,
|
|
39061
|
+
dataAttribute: n
|
|
39062
|
+
}) },
|
|
39063
|
+
props: { decorations: r ? ({ doc: r, selection: i }) => Sq({
|
|
39022
39064
|
editor: e,
|
|
39023
39065
|
options: t,
|
|
39024
39066
|
dataAttribute: n,
|
|
39025
39067
|
doc: r,
|
|
39026
39068
|
selection: i
|
|
39027
|
-
}) }
|
|
39069
|
+
}) : (n) => t.showOnlyWhenEditable && !e.isEditable ? Qu.empty : vq.getState(n) ?? Qu.empty }
|
|
39028
39070
|
});
|
|
39029
39071
|
}
|
|
39030
|
-
var
|
|
39072
|
+
var Pq = qm.create({
|
|
39031
39073
|
name: "placeholder",
|
|
39032
39074
|
addOptions() {
|
|
39033
39075
|
return {
|
|
@@ -39041,12 +39083,25 @@ var Aq = qm.create({
|
|
|
39041
39083
|
};
|
|
39042
39084
|
},
|
|
39043
39085
|
addProseMirrorPlugins() {
|
|
39044
|
-
return [
|
|
39086
|
+
return [Nq({
|
|
39045
39087
|
editor: this.editor,
|
|
39046
39088
|
options: this.options
|
|
39047
39089
|
})];
|
|
39048
39090
|
}
|
|
39049
39091
|
});
|
|
39092
|
+
function Fq(e, t) {
|
|
39093
|
+
return !e.selection.empty && !nm(e.selection) && t.isEditable;
|
|
39094
|
+
}
|
|
39095
|
+
function Iq(e, t) {
|
|
39096
|
+
return Fq(e, t) && !t.isFocused && !t.view.dragging;
|
|
39097
|
+
}
|
|
39098
|
+
function Lq() {
|
|
39099
|
+
var e;
|
|
39100
|
+
(e = window.getSelection()) == null || e.removeAllRanges();
|
|
39101
|
+
}
|
|
39102
|
+
function Rq(e) {
|
|
39103
|
+
e.focus();
|
|
39104
|
+
}
|
|
39050
39105
|
qm.create({
|
|
39051
39106
|
name: "selection",
|
|
39052
39107
|
addOptions() {
|
|
@@ -39056,13 +39111,25 @@ qm.create({
|
|
|
39056
39111
|
let { editor: e, options: t } = this;
|
|
39057
39112
|
return [new B({
|
|
39058
39113
|
key: new Qi("selection"),
|
|
39059
|
-
props: {
|
|
39060
|
-
|
|
39061
|
-
|
|
39114
|
+
props: {
|
|
39115
|
+
decorations(n) {
|
|
39116
|
+
return Iq(n, e) ? Qu.create(n.doc, [Yu.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
|
|
39117
|
+
},
|
|
39118
|
+
handleDOMEvents: {
|
|
39119
|
+
blur(t) {
|
|
39120
|
+
return Fq(t.state, e) && Lq(), !1;
|
|
39121
|
+
},
|
|
39122
|
+
focus(t) {
|
|
39123
|
+
return Fq(t.state, e) && requestAnimationFrame(() => {
|
|
39124
|
+
!e.isDestroyed && t.hasFocus() && Rq(t);
|
|
39125
|
+
}), !1;
|
|
39126
|
+
}
|
|
39127
|
+
}
|
|
39128
|
+
}
|
|
39062
39129
|
})];
|
|
39063
39130
|
}
|
|
39064
39131
|
});
|
|
39065
|
-
function
|
|
39132
|
+
function zq({ types: e, node: t }) {
|
|
39066
39133
|
return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
|
|
39067
39134
|
}
|
|
39068
39135
|
qm.create({
|
|
@@ -39084,7 +39151,7 @@ qm.create({
|
|
|
39084
39151
|
state: {
|
|
39085
39152
|
init: (e, t) => {
|
|
39086
39153
|
let r = t.tr.doc.lastChild;
|
|
39087
|
-
return !
|
|
39154
|
+
return !zq({
|
|
39088
39155
|
node: r,
|
|
39089
39156
|
types: n
|
|
39090
39157
|
});
|
|
@@ -39092,7 +39159,7 @@ qm.create({
|
|
|
39092
39159
|
apply: (e, t) => {
|
|
39093
39160
|
if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
|
|
39094
39161
|
let r = e.doc.lastChild;
|
|
39095
|
-
return !
|
|
39162
|
+
return !zq({
|
|
39096
39163
|
node: r,
|
|
39097
39164
|
types: n
|
|
39098
39165
|
});
|
|
@@ -39127,7 +39194,7 @@ qm.create({
|
|
|
39127
39194
|
};
|
|
39128
39195
|
}
|
|
39129
39196
|
});
|
|
39130
|
-
var
|
|
39197
|
+
var Bq = zm.create({
|
|
39131
39198
|
name: "superscript",
|
|
39132
39199
|
addOptions() {
|
|
39133
39200
|
return { HTMLAttributes: {} };
|
|
@@ -39157,7 +39224,7 @@ var Mq = zm.create({
|
|
|
39157
39224
|
addKeyboardShortcuts() {
|
|
39158
39225
|
return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
|
|
39159
39226
|
}
|
|
39160
|
-
}),
|
|
39227
|
+
}), Vq = zm.create({
|
|
39161
39228
|
name: "subscript",
|
|
39162
39229
|
addOptions() {
|
|
39163
39230
|
return { HTMLAttributes: {} };
|
|
@@ -39187,7 +39254,7 @@ var Mq = zm.create({
|
|
|
39187
39254
|
addKeyboardShortcuts() {
|
|
39188
39255
|
return { "Mod-,": () => this.editor.commands.toggleSubscript() };
|
|
39189
39256
|
}
|
|
39190
|
-
}),
|
|
39257
|
+
}), Hq = qm.create({
|
|
39191
39258
|
name: "textAlign",
|
|
39192
39259
|
addOptions() {
|
|
39193
39260
|
return {
|
|
@@ -39229,7 +39296,7 @@ var Mq = zm.create({
|
|
|
39229
39296
|
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
39230
39297
|
};
|
|
39231
39298
|
}
|
|
39232
|
-
}),
|
|
39299
|
+
}), Uq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Wq = Ch.create({
|
|
39233
39300
|
name: "image",
|
|
39234
39301
|
addOptions() {
|
|
39235
39302
|
return {
|
|
@@ -39322,7 +39389,7 @@ var Mq = zm.create({
|
|
|
39322
39389
|
},
|
|
39323
39390
|
addInputRules() {
|
|
39324
39391
|
return [lh({
|
|
39325
|
-
find:
|
|
39392
|
+
find: Uq,
|
|
39326
39393
|
type: this.type,
|
|
39327
39394
|
getAttributes: (e) => {
|
|
39328
39395
|
let [, , t, n, r] = e;
|
|
@@ -39334,17 +39401,17 @@ var Mq = zm.create({
|
|
|
39334
39401
|
}
|
|
39335
39402
|
})];
|
|
39336
39403
|
}
|
|
39337
|
-
}),
|
|
39404
|
+
}), Gq = Pq, Kq = {
|
|
39338
39405
|
position: "bottom",
|
|
39339
39406
|
alignment: "left",
|
|
39340
39407
|
alwaysVisible: !1,
|
|
39341
39408
|
showDone: !0,
|
|
39342
39409
|
doneOn: "blur"
|
|
39343
|
-
},
|
|
39410
|
+
}, qq = {
|
|
39344
39411
|
options: {},
|
|
39345
39412
|
respAreaToolbar: () => {},
|
|
39346
39413
|
onHandleAreaChange: () => {}
|
|
39347
|
-
},
|
|
39414
|
+
}, Jq = [
|
|
39348
39415
|
"bold",
|
|
39349
39416
|
"italic",
|
|
39350
39417
|
"underline",
|
|
@@ -39366,7 +39433,7 @@ var Mq = zm.create({
|
|
|
39366
39433
|
"h3",
|
|
39367
39434
|
"undo",
|
|
39368
39435
|
"redo"
|
|
39369
|
-
],
|
|
39436
|
+
], Yq = {
|
|
39370
39437
|
"--white": "#fff",
|
|
39371
39438
|
"--black": "#2e2b29",
|
|
39372
39439
|
"--black-contrast": "#110f0e",
|
|
@@ -39385,14 +39452,18 @@ var Mq = zm.create({
|
|
|
39385
39452
|
"--red": "#ff5c33",
|
|
39386
39453
|
"--red-light": "#ffebe5",
|
|
39387
39454
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
39388
|
-
},
|
|
39455
|
+
}, Xq = (e) => ({
|
|
39456
|
+
spellcheck: e ? "true" : "false",
|
|
39457
|
+
autocorrect: e ? "on" : "off",
|
|
39458
|
+
autocapitalize: e ? "on" : "off"
|
|
39459
|
+
}), Zq = (e) => {
|
|
39389
39460
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Ot([]), [a, o] = Ot(!1), { toolbarOpts: s } = e, c = xt((e) => {
|
|
39390
39461
|
i((t) => {
|
|
39391
39462
|
let n = t.filter((t) => t.pos !== e);
|
|
39392
39463
|
return n.length === 0 && o(!1), n;
|
|
39393
39464
|
});
|
|
39394
39465
|
}, [i]), l = {
|
|
39395
|
-
...
|
|
39466
|
+
...Kq,
|
|
39396
39467
|
...s
|
|
39397
39468
|
}, u = xt((t) => {
|
|
39398
39469
|
let n = t.getHTML();
|
|
@@ -39403,13 +39474,13 @@ var Mq = zm.create({
|
|
|
39403
39474
|
e.onDone,
|
|
39404
39475
|
l.doneOn
|
|
39405
39476
|
]), d = Et(() => ({
|
|
39406
|
-
...
|
|
39477
|
+
...qq,
|
|
39407
39478
|
...e.responseAreaProps,
|
|
39408
39479
|
onInlineDropdownToolbarClose: u
|
|
39409
39480
|
}), [e.responseAreaProps, u]), f = Et(() => {
|
|
39410
39481
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
39411
39482
|
t ||= [];
|
|
39412
|
-
let r = (e.activePlugins ||
|
|
39483
|
+
let r = (e.activePlugins || Jq)?.filter((e) => {
|
|
39413
39484
|
let t = Ht[e] || e, r = n[t] || {};
|
|
39414
39485
|
return !r || !r.disabled;
|
|
39415
39486
|
});
|
|
@@ -39427,103 +39498,112 @@ var Mq = zm.create({
|
|
|
39427
39498
|
setKeypadInteraction: {},
|
|
39428
39499
|
media: {}
|
|
39429
39500
|
});
|
|
39430
|
-
}, [e, d.type]), p =
|
|
39431
|
-
|
|
39432
|
-
|
|
39433
|
-
|
|
39434
|
-
|
|
39435
|
-
|
|
39436
|
-
|
|
39437
|
-
|
|
39438
|
-
|
|
39439
|
-
|
|
39440
|
-
|
|
39441
|
-
|
|
39442
|
-
|
|
39443
|
-
|
|
39444
|
-
|
|
39445
|
-
|
|
39446
|
-
|
|
39447
|
-
|
|
39448
|
-
|
|
39449
|
-
|
|
39450
|
-
|
|
39451
|
-
|
|
39452
|
-
|
|
39453
|
-
|
|
39454
|
-
|
|
39455
|
-
|
|
39456
|
-
|
|
39501
|
+
}, [e, d.type]), p = [
|
|
39502
|
+
Hq.configure({
|
|
39503
|
+
types: [
|
|
39504
|
+
"heading",
|
|
39505
|
+
"paragraph",
|
|
39506
|
+
"div",
|
|
39507
|
+
"headingParagraph",
|
|
39508
|
+
"h1",
|
|
39509
|
+
"h2",
|
|
39510
|
+
"h3",
|
|
39511
|
+
"h4",
|
|
39512
|
+
"h5",
|
|
39513
|
+
"h6",
|
|
39514
|
+
"td",
|
|
39515
|
+
"th"
|
|
39516
|
+
],
|
|
39517
|
+
alignments: [
|
|
39518
|
+
"left",
|
|
39519
|
+
"right",
|
|
39520
|
+
"center",
|
|
39521
|
+
"justify"
|
|
39522
|
+
]
|
|
39523
|
+
}),
|
|
39524
|
+
hq,
|
|
39525
|
+
gq.configure({ limit: e.charactersLimit || 1e6 }),
|
|
39526
|
+
aq.configure({
|
|
39527
|
+
trailingNode: {
|
|
39457
39528
|
node: "paragraph",
|
|
39458
39529
|
notAfter: ["paragraph", "div"]
|
|
39459
|
-
}
|
|
39460
|
-
|
|
39461
|
-
|
|
39462
|
-
|
|
39463
|
-
|
|
39464
|
-
|
|
39465
|
-
|
|
39466
|
-
|
|
39467
|
-
|
|
39468
|
-
|
|
39469
|
-
|
|
39470
|
-
|
|
39471
|
-
|
|
39472
|
-
|
|
39473
|
-
|
|
39474
|
-
|
|
39475
|
-
|
|
39476
|
-
|
|
39477
|
-
|
|
39478
|
-
|
|
39479
|
-
|
|
39480
|
-
|
|
39481
|
-
|
|
39482
|
-
|
|
39483
|
-
|
|
39484
|
-
|
|
39485
|
-
|
|
39486
|
-
|
|
39487
|
-
|
|
39488
|
-
|
|
39489
|
-
|
|
39490
|
-
|
|
39491
|
-
|
|
39492
|
-
|
|
39493
|
-
|
|
39494
|
-
|
|
39495
|
-
|
|
39496
|
-
|
|
39497
|
-
|
|
39498
|
-
|
|
39499
|
-
|
|
39500
|
-
|
|
39501
|
-
|
|
39502
|
-
|
|
39503
|
-
|
|
39504
|
-
|
|
39505
|
-
|
|
39506
|
-
|
|
39507
|
-
|
|
39508
|
-
|
|
39509
|
-
|
|
39510
|
-
|
|
39511
|
-
|
|
39512
|
-
|
|
39513
|
-
|
|
39514
|
-
|
|
39515
|
-
|
|
39516
|
-
|
|
39517
|
-
|
|
39518
|
-
|
|
39519
|
-
|
|
39520
|
-
|
|
39521
|
-
|
|
39522
|
-
|
|
39530
|
+
},
|
|
39531
|
+
link: {
|
|
39532
|
+
autolink: !1,
|
|
39533
|
+
linkOnPaste: !1
|
|
39534
|
+
}
|
|
39535
|
+
}),
|
|
39536
|
+
oI,
|
|
39537
|
+
tS,
|
|
39538
|
+
sI,
|
|
39539
|
+
nS,
|
|
39540
|
+
rS,
|
|
39541
|
+
Gq.configure({
|
|
39542
|
+
placeholder: e.placeholder,
|
|
39543
|
+
showOnlyWhenEditable: !0,
|
|
39544
|
+
showOnlyCurrent: !1,
|
|
39545
|
+
includeChildren: !0
|
|
39546
|
+
}),
|
|
39547
|
+
Zx,
|
|
39548
|
+
Fx,
|
|
39549
|
+
eS,
|
|
39550
|
+
$x,
|
|
39551
|
+
FA.configure(d),
|
|
39552
|
+
IA.configure(d),
|
|
39553
|
+
RA.configure(d),
|
|
39554
|
+
zA.configure(d),
|
|
39555
|
+
LA.configure(d),
|
|
39556
|
+
qM.configure({
|
|
39557
|
+
toolbarOpts: l,
|
|
39558
|
+
math: e.pluginProps?.math || {}
|
|
39559
|
+
}),
|
|
39560
|
+
Vq,
|
|
39561
|
+
Bq,
|
|
39562
|
+
Wq,
|
|
39563
|
+
aP.configure({
|
|
39564
|
+
toolbarOpts: l,
|
|
39565
|
+
imageHandling: {
|
|
39566
|
+
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
39567
|
+
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
39568
|
+
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
39569
|
+
let { src: n } = t.attrs;
|
|
39570
|
+
e.imageSupport.delete(n, (e) => {
|
|
39571
|
+
c(t.pos);
|
|
39572
|
+
});
|
|
39573
|
+
}),
|
|
39574
|
+
insertImageRequested: e.imageSupport && ((t, n, r) => {
|
|
39575
|
+
let [o, s] = n, l = (n) => {
|
|
39576
|
+
let r;
|
|
39577
|
+
a && n && (r = e.onChange), c(s), r?.(t.getHTML());
|
|
39578
|
+
};
|
|
39579
|
+
t._insertingImage = !0, i((e) => [...e, o]), (() => {
|
|
39580
|
+
let n = r(l), i = tt(() => {
|
|
39581
|
+
let e = () => window.removeEventListener("focus", i);
|
|
39582
|
+
if (!t._insertingImage) {
|
|
39583
|
+
e();
|
|
39584
|
+
return;
|
|
39585
|
+
}
|
|
39586
|
+
c(s), t._insertingImage = !1, e();
|
|
39587
|
+
}, 500);
|
|
39588
|
+
window.addEventListener("focus", i), e.imageSupport.add(n);
|
|
39589
|
+
})();
|
|
39590
|
+
}),
|
|
39591
|
+
maxImageWidth: e.maxImageWidth,
|
|
39592
|
+
maxImageHeight: e.maxImageHeight
|
|
39593
|
+
},
|
|
39594
|
+
limit: 3
|
|
39595
|
+
}),
|
|
39596
|
+
cF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
39597
|
+
TF.configure({ extraCSSRules: e.extraCSSRules })
|
|
39598
|
+
], m = e.spellCheck !== !1, h = FC({
|
|
39599
|
+
extensions: p,
|
|
39523
39600
|
immediatelyRender: !1,
|
|
39524
|
-
editorProps: {
|
|
39525
|
-
|
|
39526
|
-
|
|
39601
|
+
editorProps: {
|
|
39602
|
+
attributes: Xq(m),
|
|
39603
|
+
handleKeyDown(t, n) {
|
|
39604
|
+
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
39605
|
+
}
|
|
39606
|
+
},
|
|
39527
39607
|
editable: !e.disabled,
|
|
39528
39608
|
content: qt(e.markup),
|
|
39529
39609
|
onUpdate: ({ editor: t, transaction: n }) => {
|
|
@@ -39534,22 +39614,29 @@ var Mq = zm.create({
|
|
|
39534
39614
|
}
|
|
39535
39615
|
}, [e.charactersLimit]);
|
|
39536
39616
|
wt(() => {
|
|
39537
|
-
e.editorRef && e.editorRef(
|
|
39538
|
-
}, [e.editorRef,
|
|
39539
|
-
|
|
39540
|
-
}, [e.disabled,
|
|
39541
|
-
if (!
|
|
39617
|
+
e.editorRef && e.editorRef(h);
|
|
39618
|
+
}, [e.editorRef, h]), wt(() => {
|
|
39619
|
+
h?.setEditable(!e.disabled);
|
|
39620
|
+
}, [e.disabled, h]), wt(() => {
|
|
39621
|
+
if (!h) return;
|
|
39622
|
+
let e = h.options?.editorProps, t = Xq(m);
|
|
39623
|
+
e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
|
|
39624
|
+
...e,
|
|
39625
|
+
attributes: t
|
|
39626
|
+
} });
|
|
39627
|
+
}, [m, h]), wt(() => {
|
|
39628
|
+
if (!h) return;
|
|
39542
39629
|
let t = qt(e.markup);
|
|
39543
|
-
t !==
|
|
39544
|
-
}, [e.markup,
|
|
39545
|
-
Object.entries(
|
|
39630
|
+
t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
|
|
39631
|
+
}, [e.markup, h]), wt(() => {
|
|
39632
|
+
Object.entries(Yq).forEach(([e, t]) => {
|
|
39546
39633
|
document.documentElement.style.setProperty(e, t);
|
|
39547
39634
|
});
|
|
39548
39635
|
}, []);
|
|
39549
|
-
let
|
|
39550
|
-
editor:
|
|
39636
|
+
let g = jC({
|
|
39637
|
+
editor: h,
|
|
39551
39638
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
39552
|
-
}),
|
|
39639
|
+
}), _ = Et(() => {
|
|
39553
39640
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
39554
39641
|
return {
|
|
39555
39642
|
width: cI(n),
|
|
@@ -39564,20 +39651,20 @@ var Mq = zm.create({
|
|
|
39564
39651
|
...e,
|
|
39565
39652
|
activePlugins: f,
|
|
39566
39653
|
toolbarOpts: l,
|
|
39567
|
-
editorState:
|
|
39568
|
-
editor:
|
|
39569
|
-
children:
|
|
39654
|
+
editorState: g,
|
|
39655
|
+
editor: h,
|
|
39656
|
+
children: h && /* @__PURE__ */ N(Qq, {
|
|
39570
39657
|
style: {
|
|
39571
|
-
minHeight:
|
|
39572
|
-
height:
|
|
39573
|
-
maxHeight:
|
|
39658
|
+
minHeight: _.minHeight,
|
|
39659
|
+
height: _.height,
|
|
39660
|
+
maxHeight: _.maxHeight
|
|
39574
39661
|
},
|
|
39575
39662
|
showParagraph: t && !t.disabled,
|
|
39576
39663
|
separateParagraph: n && !n.disabled,
|
|
39577
|
-
editor:
|
|
39664
|
+
editor: h
|
|
39578
39665
|
})
|
|
39579
39666
|
});
|
|
39580
|
-
},
|
|
39667
|
+
}, Qq = j(OC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
39581
39668
|
display: "flex",
|
|
39582
39669
|
outline: "none !important",
|
|
39583
39670
|
"& .ProseMirror": {
|
|
@@ -39605,13 +39692,13 @@ var Mq = zm.create({
|
|
|
39605
39692
|
} },
|
|
39606
39693
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
39607
39694
|
}
|
|
39608
|
-
})),
|
|
39695
|
+
})), $q = Zq;
|
|
39609
39696
|
//#endregion
|
|
39610
39697
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
|
|
39611
|
-
function
|
|
39698
|
+
function eJ(e) {
|
|
39612
39699
|
return Oe("MuiInputAdornment", e);
|
|
39613
39700
|
}
|
|
39614
|
-
var
|
|
39701
|
+
var tJ = T("MuiInputAdornment", [
|
|
39615
39702
|
"root",
|
|
39616
39703
|
"filled",
|
|
39617
39704
|
"standard",
|
|
@@ -39621,7 +39708,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39621
39708
|
"disablePointerEvents",
|
|
39622
39709
|
"hiddenLabel",
|
|
39623
39710
|
"sizeSmall"
|
|
39624
|
-
]),
|
|
39711
|
+
]), nJ, rJ = (e, t) => {
|
|
39625
39712
|
let { ownerState: n } = e;
|
|
39626
39713
|
return [
|
|
39627
39714
|
t.root,
|
|
@@ -39629,7 +39716,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39629
39716
|
n.disablePointerEvents === !0 && t.disablePointerEvents,
|
|
39630
39717
|
t[n.variant]
|
|
39631
39718
|
];
|
|
39632
|
-
},
|
|
39719
|
+
}, iJ = (e) => {
|
|
39633
39720
|
let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
|
|
39634
39721
|
return Je({ root: [
|
|
39635
39722
|
"root",
|
|
@@ -39638,11 +39725,11 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39638
39725
|
o,
|
|
39639
39726
|
r && "hiddenLabel",
|
|
39640
39727
|
a && `size${O(a)}`
|
|
39641
|
-
] },
|
|
39642
|
-
},
|
|
39728
|
+
] }, eJ, t);
|
|
39729
|
+
}, aJ = j("div", {
|
|
39643
39730
|
name: "MuiInputAdornment",
|
|
39644
39731
|
slot: "Root",
|
|
39645
|
-
overridesResolver:
|
|
39732
|
+
overridesResolver: rJ
|
|
39646
39733
|
})(k(({ theme: e }) => ({
|
|
39647
39734
|
display: "flex",
|
|
39648
39735
|
maxHeight: "2em",
|
|
@@ -39652,7 +39739,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39652
39739
|
variants: [
|
|
39653
39740
|
{
|
|
39654
39741
|
props: { variant: "filled" },
|
|
39655
|
-
style: { [`&.${
|
|
39742
|
+
style: { [`&.${tJ.positionStart}&:not(.${tJ.hiddenLabel})`]: { marginTop: 16 } }
|
|
39656
39743
|
},
|
|
39657
39744
|
{
|
|
39658
39745
|
props: { position: "start" },
|
|
@@ -39667,7 +39754,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39667
39754
|
style: { pointerEvents: "none" }
|
|
39668
39755
|
}
|
|
39669
39756
|
]
|
|
39670
|
-
}))),
|
|
39757
|
+
}))), oJ = /*#__PURE__*/ M.forwardRef(function(e, t) {
|
|
39671
39758
|
let r = we({
|
|
39672
39759
|
props: e,
|
|
39673
39760
|
name: "MuiInputAdornment"
|
|
@@ -39680,10 +39767,10 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39680
39767
|
disablePointerEvents: s,
|
|
39681
39768
|
position: l,
|
|
39682
39769
|
variant: p
|
|
39683
|
-
}, h =
|
|
39770
|
+
}, h = iJ(m);
|
|
39684
39771
|
return /*#__PURE__*/ N(ae.Provider, {
|
|
39685
39772
|
value: null,
|
|
39686
|
-
children: /*#__PURE__*/ N(
|
|
39773
|
+
children: /*#__PURE__*/ N(aJ, {
|
|
39687
39774
|
as: o,
|
|
39688
39775
|
ownerState: m,
|
|
39689
39776
|
className: n(h.root, a),
|
|
@@ -39692,7 +39779,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39692
39779
|
children: typeof i == "string" && !c ? /*#__PURE__*/ N(me, {
|
|
39693
39780
|
color: "textSecondary",
|
|
39694
39781
|
children: i
|
|
39695
|
-
}) : /*#__PURE__*/ P(M.Fragment, { children: [l === "start" ?
|
|
39782
|
+
}) : /*#__PURE__*/ P(M.Fragment, { children: [l === "start" ? nJ ||= /*#__PURE__*/ N("span", {
|
|
39696
39783
|
className: "notranslate",
|
|
39697
39784
|
"aria-hidden": !0,
|
|
39698
39785
|
children: ""
|
|
@@ -39702,10 +39789,10 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39702
39789
|
});
|
|
39703
39790
|
//#endregion
|
|
39704
39791
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
|
|
39705
|
-
function
|
|
39792
|
+
function sJ(e) {
|
|
39706
39793
|
return Oe("MuiTooltip", e);
|
|
39707
39794
|
}
|
|
39708
|
-
var
|
|
39795
|
+
var cJ = T("MuiTooltip", [
|
|
39709
39796
|
"popper",
|
|
39710
39797
|
"popperInteractive",
|
|
39711
39798
|
"popperArrow",
|
|
@@ -39721,10 +39808,10 @@ var $q = T("MuiTooltip", [
|
|
|
39721
39808
|
]);
|
|
39722
39809
|
//#endregion
|
|
39723
39810
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
|
|
39724
|
-
function
|
|
39811
|
+
function lJ(e) {
|
|
39725
39812
|
return Math.round(e * 1e5) / 1e5;
|
|
39726
39813
|
}
|
|
39727
|
-
var
|
|
39814
|
+
var uJ = (e) => {
|
|
39728
39815
|
let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
|
|
39729
39816
|
return Je({
|
|
39730
39817
|
popper: [
|
|
@@ -39739,8 +39826,8 @@ var tJ = (e) => {
|
|
|
39739
39826
|
`tooltipPlacement${O(a.split("-")[0])}`
|
|
39740
39827
|
],
|
|
39741
39828
|
arrow: ["arrow"]
|
|
39742
|
-
},
|
|
39743
|
-
},
|
|
39829
|
+
}, sJ, t);
|
|
39830
|
+
}, dJ = j(kR, {
|
|
39744
39831
|
name: "MuiTooltip",
|
|
39745
39832
|
slot: "Popper",
|
|
39746
39833
|
overridesResolver: (e, t) => {
|
|
@@ -39767,22 +39854,22 @@ var tJ = (e) => {
|
|
|
39767
39854
|
{
|
|
39768
39855
|
props: ({ ownerState: e }) => e.arrow,
|
|
39769
39856
|
style: {
|
|
39770
|
-
[`&[data-popper-placement*="bottom"] .${
|
|
39857
|
+
[`&[data-popper-placement*="bottom"] .${cJ.arrow}`]: {
|
|
39771
39858
|
top: 0,
|
|
39772
39859
|
marginTop: "-0.71em",
|
|
39773
39860
|
"&::before": { transformOrigin: "0 100%" }
|
|
39774
39861
|
},
|
|
39775
|
-
[`&[data-popper-placement*="top"] .${
|
|
39862
|
+
[`&[data-popper-placement*="top"] .${cJ.arrow}`]: {
|
|
39776
39863
|
bottom: 0,
|
|
39777
39864
|
marginBottom: "-0.71em",
|
|
39778
39865
|
"&::before": { transformOrigin: "100% 0" }
|
|
39779
39866
|
},
|
|
39780
|
-
[`&[data-popper-placement*="right"] .${
|
|
39867
|
+
[`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
|
|
39781
39868
|
height: "1em",
|
|
39782
39869
|
width: "0.71em",
|
|
39783
39870
|
"&::before": { transformOrigin: "100% 100%" }
|
|
39784
39871
|
},
|
|
39785
|
-
[`&[data-popper-placement*="left"] .${
|
|
39872
|
+
[`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
|
|
39786
39873
|
height: "1em",
|
|
39787
39874
|
width: "0.71em",
|
|
39788
39875
|
"&::before": { transformOrigin: "0 0" }
|
|
@@ -39791,34 +39878,34 @@ var tJ = (e) => {
|
|
|
39791
39878
|
},
|
|
39792
39879
|
{
|
|
39793
39880
|
props: ({ ownerState: e }) => e.arrow && !e.isRtl,
|
|
39794
|
-
style: { [`&[data-popper-placement*="right"] .${
|
|
39881
|
+
style: { [`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
|
|
39795
39882
|
left: 0,
|
|
39796
39883
|
marginLeft: "-0.71em"
|
|
39797
39884
|
} }
|
|
39798
39885
|
},
|
|
39799
39886
|
{
|
|
39800
39887
|
props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
|
|
39801
|
-
style: { [`&[data-popper-placement*="right"] .${
|
|
39888
|
+
style: { [`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
|
|
39802
39889
|
right: 0,
|
|
39803
39890
|
marginRight: "-0.71em"
|
|
39804
39891
|
} }
|
|
39805
39892
|
},
|
|
39806
39893
|
{
|
|
39807
39894
|
props: ({ ownerState: e }) => e.arrow && !e.isRtl,
|
|
39808
|
-
style: { [`&[data-popper-placement*="left"] .${
|
|
39895
|
+
style: { [`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
|
|
39809
39896
|
right: 0,
|
|
39810
39897
|
marginRight: "-0.71em"
|
|
39811
39898
|
} }
|
|
39812
39899
|
},
|
|
39813
39900
|
{
|
|
39814
39901
|
props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
|
|
39815
|
-
style: { [`&[data-popper-placement*="left"] .${
|
|
39902
|
+
style: { [`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
|
|
39816
39903
|
left: 0,
|
|
39817
39904
|
marginLeft: "-0.71em"
|
|
39818
39905
|
} }
|
|
39819
39906
|
}
|
|
39820
39907
|
]
|
|
39821
|
-
}))),
|
|
39908
|
+
}))), fJ = j("div", {
|
|
39822
39909
|
name: "MuiTooltip",
|
|
39823
39910
|
slot: "Tooltip",
|
|
39824
39911
|
overridesResolver: (e, t) => {
|
|
@@ -39841,13 +39928,13 @@ var tJ = (e) => {
|
|
|
39841
39928
|
margin: 2,
|
|
39842
39929
|
wordWrap: "break-word",
|
|
39843
39930
|
fontWeight: e.typography.fontWeightMedium,
|
|
39844
|
-
[`.${
|
|
39845
|
-
[`.${
|
|
39846
|
-
[`.${
|
|
39931
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
|
|
39932
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
|
|
39933
|
+
[`.${cJ.popper}[data-popper-placement*="top"] &`]: {
|
|
39847
39934
|
transformOrigin: "center bottom",
|
|
39848
39935
|
marginBottom: "14px"
|
|
39849
39936
|
},
|
|
39850
|
-
[`.${
|
|
39937
|
+
[`.${cJ.popper}[data-popper-placement*="bottom"] &`]: {
|
|
39851
39938
|
transformOrigin: "center top",
|
|
39852
39939
|
marginTop: "14px"
|
|
39853
39940
|
},
|
|
@@ -39864,48 +39951,48 @@ var tJ = (e) => {
|
|
|
39864
39951
|
style: {
|
|
39865
39952
|
padding: "8px 16px",
|
|
39866
39953
|
fontSize: e.typography.pxToRem(14),
|
|
39867
|
-
lineHeight: `${
|
|
39954
|
+
lineHeight: `${lJ(16 / 14)}em`,
|
|
39868
39955
|
fontWeight: e.typography.fontWeightRegular
|
|
39869
39956
|
}
|
|
39870
39957
|
},
|
|
39871
39958
|
{
|
|
39872
39959
|
props: ({ ownerState: e }) => !e.isRtl,
|
|
39873
39960
|
style: {
|
|
39874
|
-
[`.${
|
|
39875
|
-
[`.${
|
|
39961
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
|
|
39962
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
|
|
39876
39963
|
}
|
|
39877
39964
|
},
|
|
39878
39965
|
{
|
|
39879
39966
|
props: ({ ownerState: e }) => !e.isRtl && e.touch,
|
|
39880
39967
|
style: {
|
|
39881
|
-
[`.${
|
|
39882
|
-
[`.${
|
|
39968
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
|
|
39969
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
|
|
39883
39970
|
}
|
|
39884
39971
|
},
|
|
39885
39972
|
{
|
|
39886
39973
|
props: ({ ownerState: e }) => !!e.isRtl,
|
|
39887
39974
|
style: {
|
|
39888
|
-
[`.${
|
|
39889
|
-
[`.${
|
|
39975
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
|
|
39976
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
|
|
39890
39977
|
}
|
|
39891
39978
|
},
|
|
39892
39979
|
{
|
|
39893
39980
|
props: ({ ownerState: e }) => !!e.isRtl && e.touch,
|
|
39894
39981
|
style: {
|
|
39895
|
-
[`.${
|
|
39896
|
-
[`.${
|
|
39982
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
|
|
39983
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
|
|
39897
39984
|
}
|
|
39898
39985
|
},
|
|
39899
39986
|
{
|
|
39900
39987
|
props: ({ ownerState: e }) => e.touch,
|
|
39901
|
-
style: { [`.${
|
|
39988
|
+
style: { [`.${cJ.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
|
|
39902
39989
|
},
|
|
39903
39990
|
{
|
|
39904
39991
|
props: ({ ownerState: e }) => e.touch,
|
|
39905
|
-
style: { [`.${
|
|
39992
|
+
style: { [`.${cJ.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
|
|
39906
39993
|
}
|
|
39907
39994
|
]
|
|
39908
|
-
}))),
|
|
39995
|
+
}))), pJ = j("span", {
|
|
39909
39996
|
name: "MuiTooltip",
|
|
39910
39997
|
slot: "Arrow"
|
|
39911
39998
|
})(k(({ theme: e }) => ({
|
|
@@ -39924,16 +40011,16 @@ var tJ = (e) => {
|
|
|
39924
40011
|
backgroundColor: "currentColor",
|
|
39925
40012
|
transform: "rotate(45deg)"
|
|
39926
40013
|
}
|
|
39927
|
-
}))),
|
|
40014
|
+
}))), mJ = !1, hJ = new Ee(), gJ = {
|
|
39928
40015
|
x: 0,
|
|
39929
40016
|
y: 0
|
|
39930
40017
|
};
|
|
39931
|
-
function
|
|
40018
|
+
function _J(e, t) {
|
|
39932
40019
|
return (n, ...r) => {
|
|
39933
40020
|
t && t(n, ...r), e(n, ...r);
|
|
39934
40021
|
};
|
|
39935
40022
|
}
|
|
39936
|
-
var
|
|
40023
|
+
var vJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
39937
40024
|
let i = we({
|
|
39938
40025
|
props: e,
|
|
39939
40026
|
name: "MuiTooltip"
|
|
@@ -39947,15 +40034,15 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
39947
40034
|
});
|
|
39948
40035
|
M.useEffect(() => ke, [ke]);
|
|
39949
40036
|
let Ae = (e) => {
|
|
39950
|
-
|
|
40037
|
+
hJ.clear(), mJ = !0, Ee(!0), ee && !A && ee(e);
|
|
39951
40038
|
}, je = y((e) => {
|
|
39952
|
-
|
|
39953
|
-
|
|
40039
|
+
hJ.start(800 + S, () => {
|
|
40040
|
+
mJ = !1;
|
|
39954
40041
|
}), Ee(!1), w && A && w(e), ye.start(ue.transitions.duration.shortest, () => {
|
|
39955
40042
|
_e.current = !1;
|
|
39956
40043
|
});
|
|
39957
40044
|
}), Me = (e) => {
|
|
39958
|
-
_e.current && e.type !== "touchstart" || (fe && fe.removeAttribute("title"), be.clear(), xe.clear(), g ||
|
|
40045
|
+
_e.current && e.type !== "touchstart" || (fe && fe.removeAttribute("title"), be.clear(), xe.clear(), g || mJ && _ ? be.start(mJ ? _ : g, () => {
|
|
39959
40046
|
Ae(e);
|
|
39960
40047
|
}) : Ae(e));
|
|
39961
40048
|
}, Ne = (e) => {
|
|
@@ -39997,7 +40084,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
39997
40084
|
!D && D !== 0 && (A = !1);
|
|
39998
40085
|
let He = M.useRef(), We = (e) => {
|
|
39999
40086
|
let t = le.props;
|
|
40000
|
-
t.onMouseMove && t.onMouseMove(e),
|
|
40087
|
+
t.onMouseMove && t.onMouseMove(e), gJ = {
|
|
40001
40088
|
x: e.clientX,
|
|
40002
40089
|
y: e.clientY
|
|
40003
40090
|
}, He.current && He.current.update();
|
|
@@ -40012,7 +40099,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40012
40099
|
ref: Ve,
|
|
40013
40100
|
...b ? { onMouseMove: We } : {}
|
|
40014
40101
|
}, Je = {};
|
|
40015
|
-
h || (qe.onTouchStart = Re, qe.onTouchEnd = Be), p || (qe.onMouseOver =
|
|
40102
|
+
h || (qe.onTouchStart = Re, qe.onTouchEnd = Be), p || (qe.onMouseOver = _J(Me, qe.onMouseOver), qe.onMouseLeave = _J(Ne, qe.onMouseLeave), ve || (Je.onMouseOver = Me, Je.onMouseLeave = Ne)), f || (qe.onFocus = _J(Ie, qe.onFocus), qe.onBlur = _J(Fe, qe.onBlur), ve || (Je.onFocus = Ie, Je.onBlur = Fe));
|
|
40016
40103
|
let Ye = {
|
|
40017
40104
|
...i,
|
|
40018
40105
|
isRtl: k,
|
|
@@ -40039,7 +40126,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40039
40126
|
me,
|
|
40040
40127
|
E.popperOptions,
|
|
40041
40128
|
Xe?.popperOptions
|
|
40042
|
-
]), j =
|
|
40129
|
+
]), j = uJ(Ye), $e = typeof ie.transition == "function" ? ie.transition(Ye) : ie.transition, et = {
|
|
40043
40130
|
slots: {
|
|
40044
40131
|
popper: c.Popper,
|
|
40045
40132
|
transition: c.Transition ?? se,
|
|
@@ -40060,7 +40147,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40060
40147
|
}
|
|
40061
40148
|
}
|
|
40062
40149
|
}, [tt, nt] = de("popper", {
|
|
40063
|
-
elementType:
|
|
40150
|
+
elementType: dJ,
|
|
40064
40151
|
externalForwardedProps: et,
|
|
40065
40152
|
ownerState: Ye,
|
|
40066
40153
|
className: n(j.popper, E?.className)
|
|
@@ -40069,12 +40156,12 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40069
40156
|
externalForwardedProps: et,
|
|
40070
40157
|
ownerState: Ye
|
|
40071
40158
|
}), [at, ot] = de("tooltip", {
|
|
40072
|
-
elementType:
|
|
40159
|
+
elementType: fJ,
|
|
40073
40160
|
className: j.tooltip,
|
|
40074
40161
|
externalForwardedProps: et,
|
|
40075
40162
|
ownerState: Ye
|
|
40076
40163
|
}), [st, ct] = de("arrow", {
|
|
40077
|
-
elementType:
|
|
40164
|
+
elementType: pJ,
|
|
40078
40165
|
className: j.arrow,
|
|
40079
40166
|
externalForwardedProps: et,
|
|
40080
40167
|
ownerState: Ye,
|
|
@@ -40084,10 +40171,10 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40084
40171
|
as: ne ?? kR,
|
|
40085
40172
|
placement: te,
|
|
40086
40173
|
anchorEl: b ? { getBoundingClientRect: () => ({
|
|
40087
|
-
top:
|
|
40088
|
-
left:
|
|
40089
|
-
right:
|
|
40090
|
-
bottom:
|
|
40174
|
+
top: gJ.y,
|
|
40175
|
+
left: gJ.x,
|
|
40176
|
+
right: gJ.x,
|
|
40177
|
+
bottom: gJ.y,
|
|
40091
40178
|
width: 0,
|
|
40092
40179
|
height: 0
|
|
40093
40180
|
}) } : fe,
|
|
@@ -40111,10 +40198,10 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40111
40198
|
});
|
|
40112
40199
|
//#endregion
|
|
40113
40200
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
|
|
40114
|
-
function
|
|
40201
|
+
function yJ(e) {
|
|
40115
40202
|
return Oe("MuiSwitch", e);
|
|
40116
40203
|
}
|
|
40117
|
-
var
|
|
40204
|
+
var bJ = T("MuiSwitch", [
|
|
40118
40205
|
"root",
|
|
40119
40206
|
"edgeStart",
|
|
40120
40207
|
"edgeEnd",
|
|
@@ -40128,7 +40215,7 @@ var dJ = T("MuiSwitch", [
|
|
|
40128
40215
|
"input",
|
|
40129
40216
|
"thumb",
|
|
40130
40217
|
"track"
|
|
40131
|
-
]),
|
|
40218
|
+
]), xJ = (e) => {
|
|
40132
40219
|
let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = Je({
|
|
40133
40220
|
root: [
|
|
40134
40221
|
"root",
|
|
@@ -40144,12 +40231,12 @@ var dJ = T("MuiSwitch", [
|
|
|
40144
40231
|
thumb: ["thumb"],
|
|
40145
40232
|
track: ["track"],
|
|
40146
40233
|
input: ["input"]
|
|
40147
|
-
},
|
|
40234
|
+
}, yJ, t);
|
|
40148
40235
|
return {
|
|
40149
40236
|
...t,
|
|
40150
40237
|
...s
|
|
40151
40238
|
};
|
|
40152
|
-
},
|
|
40239
|
+
}, SJ = j("span", {
|
|
40153
40240
|
name: "MuiSwitch",
|
|
40154
40241
|
slot: "Root",
|
|
40155
40242
|
overridesResolver: (e, t) => {
|
|
@@ -40187,25 +40274,25 @@ var dJ = T("MuiSwitch", [
|
|
|
40187
40274
|
width: 40,
|
|
40188
40275
|
height: 24,
|
|
40189
40276
|
padding: 7,
|
|
40190
|
-
[`& .${
|
|
40277
|
+
[`& .${bJ.thumb}`]: {
|
|
40191
40278
|
width: 16,
|
|
40192
40279
|
height: 16
|
|
40193
40280
|
},
|
|
40194
|
-
[`& .${
|
|
40281
|
+
[`& .${bJ.switchBase}`]: {
|
|
40195
40282
|
padding: 4,
|
|
40196
|
-
[`&.${
|
|
40283
|
+
[`&.${bJ.checked}`]: { transform: "translateX(16px)" }
|
|
40197
40284
|
}
|
|
40198
40285
|
}
|
|
40199
40286
|
}
|
|
40200
40287
|
]
|
|
40201
|
-
}),
|
|
40288
|
+
}), CJ = j(Re, {
|
|
40202
40289
|
name: "MuiSwitch",
|
|
40203
40290
|
slot: "SwitchBase",
|
|
40204
40291
|
overridesResolver: (e, t) => {
|
|
40205
40292
|
let { ownerState: n } = e;
|
|
40206
40293
|
return [
|
|
40207
40294
|
t.switchBase,
|
|
40208
|
-
{ [`& .${
|
|
40295
|
+
{ [`& .${bJ.input}`]: t.input },
|
|
40209
40296
|
n.color !== "default" && t[`color${O(n.color)}`]
|
|
40210
40297
|
];
|
|
40211
40298
|
}
|
|
@@ -40216,11 +40303,11 @@ var dJ = T("MuiSwitch", [
|
|
|
40216
40303
|
zIndex: 1,
|
|
40217
40304
|
color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
|
|
40218
40305
|
transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
|
|
40219
|
-
[`&.${
|
|
40220
|
-
[`&.${
|
|
40221
|
-
[`&.${
|
|
40222
|
-
[`&.${
|
|
40223
|
-
[`& .${
|
|
40306
|
+
[`&.${bJ.checked}`]: { transform: "translateX(20px)" },
|
|
40307
|
+
[`&.${bJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
|
|
40308
|
+
[`&.${bJ.checked} + .${bJ.track}`]: { opacity: .5 },
|
|
40309
|
+
[`&.${bJ.disabled} + .${bJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
|
|
40310
|
+
[`& .${bJ.input}`]: {
|
|
40224
40311
|
left: "-100%",
|
|
40225
40312
|
width: "300%"
|
|
40226
40313
|
}
|
|
@@ -40232,18 +40319,18 @@ var dJ = T("MuiSwitch", [
|
|
|
40232
40319
|
variants: [...Object.entries(e.palette).filter(ee(["light"])).map(([t]) => ({
|
|
40233
40320
|
props: { color: t },
|
|
40234
40321
|
style: {
|
|
40235
|
-
[`&.${
|
|
40322
|
+
[`&.${bJ.checked}`]: {
|
|
40236
40323
|
color: (e.vars || e).palette[t].main,
|
|
40237
40324
|
"&:hover": {
|
|
40238
40325
|
backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
|
|
40239
40326
|
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
40240
40327
|
},
|
|
40241
|
-
[`&.${
|
|
40328
|
+
[`&.${bJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
|
|
40242
40329
|
},
|
|
40243
|
-
[`&.${
|
|
40330
|
+
[`&.${bJ.checked} + .${bJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
|
|
40244
40331
|
}
|
|
40245
40332
|
}))]
|
|
40246
|
-
}))),
|
|
40333
|
+
}))), wJ = j("span", {
|
|
40247
40334
|
name: "MuiSwitch",
|
|
40248
40335
|
slot: "Track"
|
|
40249
40336
|
})(k(({ theme: e }) => ({
|
|
@@ -40256,7 +40343,7 @@ var dJ = T("MuiSwitch", [
|
|
|
40256
40343
|
transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
|
|
40257
40344
|
backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
|
|
40258
40345
|
opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
|
|
40259
|
-
}))),
|
|
40346
|
+
}))), TJ = j("span", {
|
|
40260
40347
|
name: "MuiSwitch",
|
|
40261
40348
|
slot: "Thumb"
|
|
40262
40349
|
})(k(({ theme: e }) => ({
|
|
@@ -40267,7 +40354,7 @@ var dJ = T("MuiSwitch", [
|
|
|
40267
40354
|
width: 20,
|
|
40268
40355
|
height: 20,
|
|
40269
40356
|
borderRadius: "50%"
|
|
40270
|
-
}))),
|
|
40357
|
+
}))), EJ = /*#__PURE__*/ M.forwardRef(function(e, t) {
|
|
40271
40358
|
let r = we({
|
|
40272
40359
|
props: e,
|
|
40273
40360
|
name: "MuiSwitch"
|
|
@@ -40276,29 +40363,29 @@ var dJ = T("MuiSwitch", [
|
|
|
40276
40363
|
color: a,
|
|
40277
40364
|
edge: o,
|
|
40278
40365
|
size: s
|
|
40279
|
-
}, p =
|
|
40366
|
+
}, p = xJ(f), m = u.input, g = {
|
|
40280
40367
|
slots: l,
|
|
40281
40368
|
slotProps: u
|
|
40282
40369
|
}, [_, v] = de("root", {
|
|
40283
40370
|
className: n(p.root, i),
|
|
40284
|
-
elementType:
|
|
40371
|
+
elementType: SJ,
|
|
40285
40372
|
externalForwardedProps: g,
|
|
40286
40373
|
ownerState: f,
|
|
40287
40374
|
additionalProps: { sx: c }
|
|
40288
40375
|
}), [y, b] = de("thumb", {
|
|
40289
40376
|
className: p.thumb,
|
|
40290
|
-
elementType:
|
|
40377
|
+
elementType: TJ,
|
|
40291
40378
|
externalForwardedProps: g,
|
|
40292
40379
|
ownerState: f
|
|
40293
40380
|
}), x = /*#__PURE__*/ N(y, { ...b }), [S, C] = de("track", {
|
|
40294
40381
|
className: p.track,
|
|
40295
|
-
elementType:
|
|
40382
|
+
elementType: wJ,
|
|
40296
40383
|
externalForwardedProps: g,
|
|
40297
40384
|
ownerState: f
|
|
40298
40385
|
});
|
|
40299
40386
|
return /*#__PURE__*/ P(_, {
|
|
40300
40387
|
...v,
|
|
40301
|
-
children: [/*#__PURE__*/ N(
|
|
40388
|
+
children: [/*#__PURE__*/ N(CJ, {
|
|
40302
40389
|
type: "checkbox",
|
|
40303
40390
|
icon: x,
|
|
40304
40391
|
checkedIcon: x,
|
|
@@ -40319,15 +40406,15 @@ var dJ = T("MuiSwitch", [
|
|
|
40319
40406
|
}
|
|
40320
40407
|
}), /*#__PURE__*/ N(S, { ...C })]
|
|
40321
40408
|
});
|
|
40322
|
-
}),
|
|
40409
|
+
}), DJ = j(LP)(() => ({ fontSize: "max(1.25rem, 18px)" })), OJ = j(VP)(() => ({ fontSize: "max(1rem, 14px)" })), kJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: u }) => /* @__PURE__ */ P(DN, {
|
|
40323
40410
|
open: i,
|
|
40324
40411
|
disableAutoFocus: s,
|
|
40325
40412
|
disableEnforceFocus: c,
|
|
40326
40413
|
disableRestoreFocus: u,
|
|
40327
40414
|
onClose: n,
|
|
40328
40415
|
children: [
|
|
40329
|
-
t && /* @__PURE__ */ N(
|
|
40330
|
-
e && /* @__PURE__ */ N(nN, { children: /* @__PURE__ */ N(
|
|
40416
|
+
t && /* @__PURE__ */ N(DJ, { children: t }),
|
|
40417
|
+
e && /* @__PURE__ */ N(nN, { children: /* @__PURE__ */ N(OJ, { children: e }) }),
|
|
40331
40418
|
/* @__PURE__ */ P(vN, { children: [n && /* @__PURE__ */ N(l, {
|
|
40332
40419
|
onClick: n,
|
|
40333
40420
|
color: "primary",
|
|
@@ -40340,13 +40427,13 @@ var dJ = T("MuiSwitch", [
|
|
|
40340
40427
|
})] })
|
|
40341
40428
|
]
|
|
40342
40429
|
});
|
|
40343
|
-
|
|
40430
|
+
kJ.defaultProps = {
|
|
40344
40431
|
onCloseText: "CANCEL",
|
|
40345
40432
|
onConfirmText: "OK",
|
|
40346
40433
|
disableAutoFocus: !1,
|
|
40347
40434
|
disableEnforceFocus: !1,
|
|
40348
40435
|
disableRestoreFocus: !1
|
|
40349
|
-
},
|
|
40436
|
+
}, kJ.propTypes = {
|
|
40350
40437
|
text: H.default.oneOfType([H.default.string, H.default.object]),
|
|
40351
40438
|
title: H.default.string,
|
|
40352
40439
|
onClose: H.default.func,
|
|
@@ -40360,18 +40447,18 @@ bJ.defaultProps = {
|
|
|
40360
40447
|
};
|
|
40361
40448
|
//#endregion
|
|
40362
40449
|
//#region ../../lib-react/config-ui/dist/radio-with-label.js
|
|
40363
|
-
var
|
|
40450
|
+
var AJ = j(Te)(() => ({ "& .MuiFormControlLabel-label": {
|
|
40364
40451
|
left: "-5px",
|
|
40365
40452
|
position: "relative"
|
|
40366
|
-
} })),
|
|
40453
|
+
} })), jJ = j(He)(() => ({ color: `${g.tertiary()} !important` })), MJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ N(AJ, {
|
|
40367
40454
|
value: t,
|
|
40368
|
-
control: /* @__PURE__ */ N(
|
|
40455
|
+
control: /* @__PURE__ */ N(jJ, {
|
|
40369
40456
|
checked: n,
|
|
40370
40457
|
onChange: r
|
|
40371
40458
|
}),
|
|
40372
40459
|
label: e
|
|
40373
40460
|
});
|
|
40374
|
-
|
|
40461
|
+
MJ.propTypes = {
|
|
40375
40462
|
label: H.default.string,
|
|
40376
40463
|
value: H.default.string,
|
|
40377
40464
|
checked: H.default.bool,
|
|
@@ -40379,40 +40466,40 @@ CJ.propTypes = {
|
|
|
40379
40466
|
};
|
|
40380
40467
|
//#endregion
|
|
40381
40468
|
//#region ../../lib-react/config-ui/dist/inputs.js
|
|
40382
|
-
function
|
|
40469
|
+
function NJ(e) {
|
|
40383
40470
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40384
40471
|
}
|
|
40385
|
-
function
|
|
40386
|
-
return !e ||
|
|
40472
|
+
function PJ(e, t) {
|
|
40473
|
+
return !e || NJ(e) ? e : NJ(e.default) ? e.default : t && NJ(e[t]) ? e[t] : t && NJ(e[t]?.default) ? e[t].default : e;
|
|
40387
40474
|
}
|
|
40388
|
-
var
|
|
40475
|
+
var FJ = PJ(pe, "InputContainer") || PJ(RJ.InputContainer, "InputContainer"), IJ = Be, LJ = IJ.default, RJ = LJ && typeof LJ == "object" ? LJ : IJ, zJ = {
|
|
40389
40476
|
className: H.default.string,
|
|
40390
40477
|
label: H.default.string,
|
|
40391
40478
|
checked: H.default.bool,
|
|
40392
40479
|
onChange: H.default.func,
|
|
40393
40480
|
disabled: H.default.bool,
|
|
40394
40481
|
error: H.default.string
|
|
40395
|
-
},
|
|
40482
|
+
}, BJ = j(EJ)(() => ({
|
|
40396
40483
|
justifyContent: "inherit",
|
|
40397
40484
|
transform: "translate(-20%, 20%)"
|
|
40398
|
-
})),
|
|
40485
|
+
})), VJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ N(FJ, {
|
|
40399
40486
|
className: e,
|
|
40400
40487
|
label: t,
|
|
40401
|
-
children: /* @__PURE__ */ N(
|
|
40488
|
+
children: /* @__PURE__ */ N(BJ, {
|
|
40402
40489
|
checked: n,
|
|
40403
40490
|
onChange: r,
|
|
40404
40491
|
"aria-label": t
|
|
40405
40492
|
})
|
|
40406
40493
|
});
|
|
40407
|
-
|
|
40408
|
-
var
|
|
40494
|
+
VJ.propTypes = { ...zJ };
|
|
40495
|
+
var HJ = j(Me)(({ theme: e, error: t }) => ({
|
|
40409
40496
|
transform: "translate(-25%, 20%)",
|
|
40410
40497
|
color: `${g.tertiary()} !important`,
|
|
40411
40498
|
...t && { color: `${e.palette.error.main} !important` }
|
|
40412
|
-
})),
|
|
40499
|
+
})), UJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ N(FJ, {
|
|
40413
40500
|
className: e,
|
|
40414
40501
|
label: t,
|
|
40415
|
-
children: /* @__PURE__ */ N(
|
|
40502
|
+
children: /* @__PURE__ */ N(HJ, {
|
|
40416
40503
|
disabled: i,
|
|
40417
40504
|
checked: n,
|
|
40418
40505
|
onChange: r,
|
|
@@ -40420,15 +40507,15 @@ var NJ = j(Me)(({ theme: e, error: t }) => ({
|
|
|
40420
40507
|
error: a
|
|
40421
40508
|
})
|
|
40422
40509
|
});
|
|
40423
|
-
|
|
40424
|
-
var
|
|
40510
|
+
UJ.propTypes = { ...zJ };
|
|
40511
|
+
var WJ = j(He)(({ theme: e, error: t }) => ({
|
|
40425
40512
|
transform: "translate(-20%, 20%)",
|
|
40426
40513
|
color: `${g.tertiary()} !important`,
|
|
40427
40514
|
...t && { color: `${e.palette.error.main} !important` }
|
|
40428
|
-
})),
|
|
40515
|
+
})), GJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ N(FJ, {
|
|
40429
40516
|
className: e,
|
|
40430
40517
|
label: t,
|
|
40431
|
-
children: /* @__PURE__ */ N(
|
|
40518
|
+
children: /* @__PURE__ */ N(WJ, {
|
|
40432
40519
|
disabled: i,
|
|
40433
40520
|
checked: n,
|
|
40434
40521
|
onChange: r,
|
|
@@ -40436,10 +40523,10 @@ var FJ = j(He)(({ theme: e, error: t }) => ({
|
|
|
40436
40523
|
error: a
|
|
40437
40524
|
})
|
|
40438
40525
|
});
|
|
40439
|
-
|
|
40526
|
+
GJ.propTypes = { ...zJ };
|
|
40440
40527
|
//#endregion
|
|
40441
40528
|
//#region ../../lib-react/config-ui/dist/tabs/index.js
|
|
40442
|
-
var
|
|
40529
|
+
var KJ = j(PP)(() => ({})), qJ = class extends mt.Component {
|
|
40443
40530
|
static propTypes = {
|
|
40444
40531
|
className: H.default.string,
|
|
40445
40532
|
contentClassName: H.default.string,
|
|
@@ -40460,7 +40547,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40460
40547
|
indicatorColor: "primary",
|
|
40461
40548
|
value: e,
|
|
40462
40549
|
onChange: this.handleChange,
|
|
40463
|
-
children: mt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ N(
|
|
40550
|
+
children: mt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ N(KJ, { label: e.props.title }, t) : null)
|
|
40464
40551
|
}), /* @__PURE__ */ N("div", {
|
|
40465
40552
|
className: r,
|
|
40466
40553
|
style: i,
|
|
@@ -40468,7 +40555,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40468
40555
|
})]
|
|
40469
40556
|
});
|
|
40470
40557
|
}
|
|
40471
|
-
},
|
|
40558
|
+
}, JJ = j(Te)(({ theme: e, mini: t }) => ({
|
|
40472
40559
|
margin: 0,
|
|
40473
40560
|
marginLeft: 0,
|
|
40474
40561
|
padding: 0,
|
|
@@ -40482,7 +40569,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40482
40569
|
fontSize: e.typography.fontSize - 3
|
|
40483
40570
|
}
|
|
40484
40571
|
}
|
|
40485
|
-
})),
|
|
40572
|
+
})), YJ = j(Me)(({ theme: e, mini: t, error: n }) => ({
|
|
40486
40573
|
color: `${g.tertiary()} !important`,
|
|
40487
40574
|
...t && {
|
|
40488
40575
|
margin: 0,
|
|
@@ -40491,9 +40578,9 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40491
40578
|
height: e.spacing(3)
|
|
40492
40579
|
},
|
|
40493
40580
|
...n && { color: `${e.palette.error.main} !important` }
|
|
40494
|
-
})),
|
|
40581
|
+
})), XJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ N(JJ, {
|
|
40495
40582
|
mini: e,
|
|
40496
|
-
control: /* @__PURE__ */ N(
|
|
40583
|
+
control: /* @__PURE__ */ N(YJ, {
|
|
40497
40584
|
checked: t,
|
|
40498
40585
|
onChange: n,
|
|
40499
40586
|
value: r,
|
|
@@ -40502,21 +40589,21 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40502
40589
|
}),
|
|
40503
40590
|
label: i
|
|
40504
40591
|
});
|
|
40505
|
-
|
|
40592
|
+
XJ.propTypes = {
|
|
40506
40593
|
mini: H.default.bool,
|
|
40507
40594
|
checked: H.default.bool.isRequired,
|
|
40508
40595
|
onChange: H.default.func.isRequired,
|
|
40509
40596
|
value: H.default.string,
|
|
40510
40597
|
label: H.default.string.isRequired,
|
|
40511
40598
|
error: H.default.bool
|
|
40512
|
-
},
|
|
40599
|
+
}, XJ.defaultProps = {
|
|
40513
40600
|
value: "",
|
|
40514
40601
|
mini: !1,
|
|
40515
40602
|
error: !1
|
|
40516
40603
|
};
|
|
40517
40604
|
//#endregion
|
|
40518
40605
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
40519
|
-
var
|
|
40606
|
+
var ZJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), QJ = j(mN)(({ theme: e }) => ({
|
|
40520
40607
|
marginRight: e.spacing(1),
|
|
40521
40608
|
"& .MuiInputLabel-root": {
|
|
40522
40609
|
width: "auto",
|
|
@@ -40538,11 +40625,11 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40538
40625
|
minHeight: "auto",
|
|
40539
40626
|
padding: "6px 0 7px"
|
|
40540
40627
|
}
|
|
40541
|
-
})),
|
|
40628
|
+
})), $J = (e, t) => {
|
|
40542
40629
|
if (!at(e) && !at(t)) return 0;
|
|
40543
40630
|
if (!at(e) && at(t)) return t;
|
|
40544
40631
|
if (at(e)) return e;
|
|
40545
|
-
},
|
|
40632
|
+
}, eY = class extends mt.Component {
|
|
40546
40633
|
static propTypes = {
|
|
40547
40634
|
disabled: H.default.bool,
|
|
40548
40635
|
className: H.default.string,
|
|
@@ -40568,13 +40655,13 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40568
40655
|
this.setState({ value: t });
|
|
40569
40656
|
}
|
|
40570
40657
|
clamp(e, t = this.props.min, n = this.props.max) {
|
|
40571
|
-
return at(e) ? (at(n) && (e = Math.min(e, n)), at(t) && (e = Math.max(e, t)), e) :
|
|
40658
|
+
return at(e) ? (at(n) && (e = Math.min(e, n)), at(t) && (e = Math.max(e, t)), e) : $J(t, n);
|
|
40572
40659
|
}
|
|
40573
40660
|
onBlur = (e) => {
|
|
40574
40661
|
let t = e.target.value, n = parseFloat(t);
|
|
40575
|
-
|
|
40662
|
+
ZJ("rawNumber: ", n);
|
|
40576
40663
|
let r = this.clamp(n);
|
|
40577
|
-
|
|
40664
|
+
ZJ("number: ", r), r !== this.state.value && (ZJ("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
40578
40665
|
this.props.onChange(e, r);
|
|
40579
40666
|
}));
|
|
40580
40667
|
};
|
|
@@ -40594,7 +40681,7 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40594
40681
|
};
|
|
40595
40682
|
render() {
|
|
40596
40683
|
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();
|
|
40597
|
-
return /* @__PURE__ */ N(
|
|
40684
|
+
return /* @__PURE__ */ N(QJ, {
|
|
40598
40685
|
variant: s ? "filled" : l || "standard",
|
|
40599
40686
|
inputRef: (e) => {
|
|
40600
40687
|
this.inputRef = e;
|
|
@@ -40613,7 +40700,7 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40613
40700
|
type: "number",
|
|
40614
40701
|
className: e,
|
|
40615
40702
|
slotProps: { input: {
|
|
40616
|
-
endAdornment: r && /* @__PURE__ */ N(
|
|
40703
|
+
endAdornment: r && /* @__PURE__ */ N(oJ, {
|
|
40617
40704
|
position: "end",
|
|
40618
40705
|
children: r
|
|
40619
40706
|
}),
|
|
@@ -40629,19 +40716,19 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40629
40716
|
};
|
|
40630
40717
|
//#endregion
|
|
40631
40718
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
40632
|
-
function
|
|
40719
|
+
function tY(e) {
|
|
40633
40720
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40634
40721
|
}
|
|
40635
|
-
function
|
|
40636
|
-
return !e ||
|
|
40722
|
+
function nY(e, t) {
|
|
40723
|
+
return !e || tY(e) ? e : tY(e.default) ? e.default : t && tY(e[t]) ? e[t] : t && tY(e[t]?.default) ? e[t].default : e;
|
|
40637
40724
|
}
|
|
40638
|
-
var
|
|
40725
|
+
var rY = nY(pe, "InputContainer") || nY(oY.InputContainer, "InputContainer"), iY = Be, aY = iY.default, oY = aY && typeof aY == "object" ? aY : iY, sY = j("div")(({ theme: e, direction: t }) => ({
|
|
40639
40726
|
display: "flex",
|
|
40640
40727
|
flexWrap: "wrap",
|
|
40641
40728
|
paddingLeft: 0,
|
|
40642
40729
|
marginTop: e.spacing(1),
|
|
40643
40730
|
...t === "vertical" && { flexDirection: "column" }
|
|
40644
|
-
})),
|
|
40731
|
+
})), cY = class extends mt.Component {
|
|
40645
40732
|
static propTypes = {
|
|
40646
40733
|
header: H.default.string.isRequired,
|
|
40647
40734
|
className: H.default.string,
|
|
@@ -40658,11 +40745,11 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
|
|
|
40658
40745
|
let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
|
|
40659
40746
|
label: e,
|
|
40660
40747
|
value: e
|
|
40661
|
-
} : e), s = n ||
|
|
40662
|
-
return /* @__PURE__ */ N(
|
|
40748
|
+
} : e), s = n || MJ;
|
|
40749
|
+
return /* @__PURE__ */ N(rY, {
|
|
40663
40750
|
label: e,
|
|
40664
40751
|
className: t,
|
|
40665
|
-
children: /* @__PURE__ */ N(
|
|
40752
|
+
children: /* @__PURE__ */ N(sY, {
|
|
40666
40753
|
direction: a,
|
|
40667
40754
|
children: o.map((e, t) => /* @__PURE__ */ N(s, {
|
|
40668
40755
|
value: e.value,
|
|
@@ -40673,7 +40760,7 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
|
|
|
40673
40760
|
})
|
|
40674
40761
|
});
|
|
40675
40762
|
}
|
|
40676
|
-
},
|
|
40763
|
+
}, lY = H.default.shape({
|
|
40677
40764
|
label: H.default.string,
|
|
40678
40765
|
value: H.default.string
|
|
40679
40766
|
});
|
|
@@ -40682,14 +40769,14 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
|
|
|
40682
40769
|
header: H.default.string.isRequired,
|
|
40683
40770
|
value: H.default.string.isRequired,
|
|
40684
40771
|
onChange: H.default.func.isRequired,
|
|
40685
|
-
one: H.default.oneOfType([
|
|
40686
|
-
two: H.default.oneOfType([
|
|
40772
|
+
one: H.default.oneOfType([lY, H.default.string]),
|
|
40773
|
+
two: H.default.oneOfType([lY, H.default.string]),
|
|
40687
40774
|
className: H.default.string,
|
|
40688
40775
|
customLabel: H.default.func
|
|
40689
40776
|
};
|
|
40690
40777
|
render() {
|
|
40691
40778
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
40692
|
-
return /* @__PURE__ */ N(
|
|
40779
|
+
return /* @__PURE__ */ N(cY, {
|
|
40693
40780
|
customLabel: i,
|
|
40694
40781
|
header: n,
|
|
40695
40782
|
className: r,
|
|
@@ -40701,16 +40788,16 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
|
|
|
40701
40788
|
});
|
|
40702
40789
|
//#endregion
|
|
40703
40790
|
//#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Feedback.js
|
|
40704
|
-
var
|
|
40791
|
+
var uY = m(/*#__PURE__*/ N("path", { d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 12h-2v-2h2zm0-4h-2V6h2z" }), "Feedback");
|
|
40705
40792
|
//#endregion
|
|
40706
40793
|
//#region ../../lib-react/config-ui/dist/choice-configuration/feedback-menu.js
|
|
40707
|
-
function
|
|
40794
|
+
function dY(e) {
|
|
40708
40795
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40709
40796
|
}
|
|
40710
|
-
function
|
|
40711
|
-
return !e ||
|
|
40797
|
+
function fY(e, t) {
|
|
40798
|
+
return !e || dY(e) ? e : dY(e.default) ? e.default : t && dY(e[t]) ? e[t] : t && dY(e[t]?.default) ? e[t].default : e;
|
|
40712
40799
|
}
|
|
40713
|
-
var
|
|
40800
|
+
var pY = fY(ve, "InlineMenu") || fY(gY.InlineMenu, "InlineMenu"), mY = Be, hY = mY.default, gY = hY && typeof hY == "object" ? hY : mY, _Y = class extends mt.Component {
|
|
40714
40801
|
static propTypes = {
|
|
40715
40802
|
opts: H.default.object,
|
|
40716
40803
|
onClick: H.default.func.isRequired,
|
|
@@ -40738,7 +40825,7 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
|
|
|
40738
40825
|
return /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("div", {
|
|
40739
40826
|
onClick: this.handleClick,
|
|
40740
40827
|
children: this.props.iconButtonElement
|
|
40741
|
-
}), /* @__PURE__ */ N(
|
|
40828
|
+
}), /* @__PURE__ */ N(pY, {
|
|
40742
40829
|
id: "simple-menu",
|
|
40743
40830
|
anchorEl: this.state.anchorEl,
|
|
40744
40831
|
open: this.state.open,
|
|
@@ -40753,7 +40840,7 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
|
|
|
40753
40840
|
}, n))
|
|
40754
40841
|
})] });
|
|
40755
40842
|
}
|
|
40756
|
-
},
|
|
40843
|
+
}, vY = class extends mt.Component {
|
|
40757
40844
|
static propTypes = {
|
|
40758
40845
|
value: H.default.object,
|
|
40759
40846
|
onChange: H.default.func.isRequired,
|
|
@@ -40762,12 +40849,12 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
|
|
|
40762
40849
|
static defaultProps = { classes: {} };
|
|
40763
40850
|
render() {
|
|
40764
40851
|
let { value: e, onChange: t, classes: n } = this.props, r = e && e.type, i = r === "custom" || r === "default" ? "primary" : "disabled", a = r === "custom" ? "Custom Feedback" : r === "default" ? "Default Feedback" : "Feedback disabled";
|
|
40765
|
-
return /* @__PURE__ */ N(
|
|
40852
|
+
return /* @__PURE__ */ N(_Y, {
|
|
40766
40853
|
iconButtonElement: /* @__PURE__ */ N(uS, {
|
|
40767
40854
|
className: n.icon,
|
|
40768
40855
|
"aria-label": a,
|
|
40769
40856
|
size: "large",
|
|
40770
|
-
children: /* @__PURE__ */ N(
|
|
40857
|
+
children: /* @__PURE__ */ N(uY, { color: i })
|
|
40771
40858
|
}),
|
|
40772
40859
|
onClick: (e) => t(e),
|
|
40773
40860
|
opts: {
|
|
@@ -40777,19 +40864,19 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
|
|
|
40777
40864
|
}
|
|
40778
40865
|
});
|
|
40779
40866
|
}
|
|
40780
|
-
},
|
|
40867
|
+
}, yY = m(/*#__PURE__*/ N("path", { d: "m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z" }), "SubdirectoryArrowRight");
|
|
40781
40868
|
//#endregion
|
|
40782
40869
|
//#region ../../lib-react/config-ui/dist/choice-configuration/index.js
|
|
40783
|
-
function
|
|
40870
|
+
function bY(e) {
|
|
40784
40871
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40785
40872
|
}
|
|
40786
|
-
function
|
|
40787
|
-
return !e ||
|
|
40873
|
+
function xY(e, t) {
|
|
40874
|
+
return !e || bY(e) ? e : bY(e.default) ? e.default : t && bY(e[t]) ? e[t] : t && bY(e[t]?.default) ? e[t].default : e;
|
|
40788
40875
|
}
|
|
40789
|
-
var
|
|
40876
|
+
var SY = xY(pe, "InputContainer") || xY(TY.InputContainer, "InputContainer"), CY = Be, wY = CY.default, TY = wY && typeof wY == "object" ? wY : CY, EY = j("div")(({ theme: e }) => ({ marginTop: e.spacing(2) })), DY = ({ label: e, onChange: t, value: n, className: r, imageSupport: i, disableImageAlignmentButtons: a, disabled: o, spellCheck: s, nonEmpty: c, pluginOpts: l, toolbarOpts: u, error: d, maxImageWidth: f, maxImageHeight: p, uploadSoundSupport: m, mathMlOptions: h = {} }) => /* @__PURE__ */ N(SY, {
|
|
40790
40877
|
label: e,
|
|
40791
40878
|
className: r,
|
|
40792
|
-
children: /* @__PURE__ */ N(
|
|
40879
|
+
children: /* @__PURE__ */ N(EY, { children: /* @__PURE__ */ N($q, {
|
|
40793
40880
|
markup: n || "",
|
|
40794
40881
|
disabled: o,
|
|
40795
40882
|
spellCheck: s,
|
|
@@ -40806,65 +40893,65 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
40806
40893
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
40807
40894
|
mathMlOptions: h
|
|
40808
40895
|
}) })
|
|
40809
|
-
}),
|
|
40896
|
+
}), OY = j("div")(() => ({ position: "relative" })), kY = j(yY)(() => ({
|
|
40810
40897
|
fill: g.border(),
|
|
40811
40898
|
left: -56,
|
|
40812
40899
|
position: "absolute",
|
|
40813
40900
|
top: 40
|
|
40814
|
-
})),
|
|
40901
|
+
})), AY = j(mN)(({ theme: e }) => ({
|
|
40815
40902
|
width: "100%",
|
|
40816
40903
|
marginTop: e.spacing(2)
|
|
40817
|
-
})),
|
|
40904
|
+
})), jY = j(DY)(({ theme: e }) => ({
|
|
40818
40905
|
width: "100%",
|
|
40819
40906
|
marginTop: e.spacing(2)
|
|
40820
|
-
})),
|
|
40907
|
+
})), MY = ({ value: e, onChange: t, type: n, correct: r, defaults: i, toolbarOpts: a, mathMlOptions: o = {} }) => !n || n === "none" ? null : n === "default" ? /* @__PURE__ */ P(OY, { children: [/* @__PURE__ */ N(kY, {}), /* @__PURE__ */ N(AY, {
|
|
40821
40908
|
label: "Feedback Text",
|
|
40822
40909
|
value: r ? i.correct : i.incorrect,
|
|
40823
40910
|
variant: "standard"
|
|
40824
|
-
})] }) : /* @__PURE__ */ P(
|
|
40911
|
+
})] }) : /* @__PURE__ */ P(OY, { children: [/* @__PURE__ */ N(kY, {}), /* @__PURE__ */ N(jY, {
|
|
40825
40912
|
label: "Feedback Text",
|
|
40826
40913
|
value: e,
|
|
40827
40914
|
onChange: t,
|
|
40828
40915
|
toolbarOpts: a,
|
|
40829
40916
|
mathMlOptions: o
|
|
40830
|
-
})] }),
|
|
40917
|
+
})] }), NY = j("span")(({ theme: e }) => ({
|
|
40831
40918
|
paddingRight: e.spacing(1),
|
|
40832
40919
|
paddingTop: e.spacing(3)
|
|
40833
|
-
})),
|
|
40920
|
+
})), PY = j("div")(() => ({
|
|
40834
40921
|
display: "flex",
|
|
40835
40922
|
alignItems: "center"
|
|
40836
|
-
})),
|
|
40923
|
+
})), FY = j("div")(({ theme: e }) => ({
|
|
40837
40924
|
flex: "0 1 auto",
|
|
40838
40925
|
paddingTop: e.spacing(.5),
|
|
40839
40926
|
paddingBottom: 0,
|
|
40840
40927
|
marginRight: 0,
|
|
40841
40928
|
marginLeft: e.spacing(1)
|
|
40842
|
-
})),
|
|
40929
|
+
})), IY = j("div")(({ theme: e }) => ({
|
|
40843
40930
|
flex: "0 1 auto",
|
|
40844
40931
|
paddingTop: e.spacing(2),
|
|
40845
40932
|
paddingLeft: 0,
|
|
40846
40933
|
marginLeft: 0,
|
|
40847
40934
|
marginRight: e.spacing(1)
|
|
40848
|
-
})),
|
|
40935
|
+
})), LY = j("div")(() => ({
|
|
40849
40936
|
margin: 0,
|
|
40850
40937
|
width: "inherit"
|
|
40851
|
-
})),
|
|
40938
|
+
})), RY = j("div")(() => ({
|
|
40852
40939
|
margin: 0,
|
|
40853
40940
|
width: "inherit"
|
|
40854
|
-
})),
|
|
40941
|
+
})), zY = j("div")(({ theme: e }) => ({
|
|
40855
40942
|
flex: "0 1 auto",
|
|
40856
40943
|
paddingTop: e.spacing(2),
|
|
40857
40944
|
paddingLeft: 0,
|
|
40858
40945
|
marginLeft: 0
|
|
40859
|
-
})),
|
|
40946
|
+
})), BY = j("div")(({ theme: e }) => ({
|
|
40860
40947
|
display: "flex",
|
|
40861
40948
|
flex: 1,
|
|
40862
40949
|
flexDirection: "column",
|
|
40863
40950
|
marginRight: e.spacing(1)
|
|
40864
|
-
})),
|
|
40951
|
+
})), VY = j("div")(({ theme: e }) => ({
|
|
40865
40952
|
fontSize: e.typography.fontSize - 2,
|
|
40866
40953
|
color: e.palette.error.main
|
|
40867
|
-
})),
|
|
40954
|
+
})), HY = class extends mt.Component {
|
|
40868
40955
|
static propTypes = {
|
|
40869
40956
|
noLabels: H.default.bool,
|
|
40870
40957
|
useLetterOrdering: H.default.bool,
|
|
@@ -40946,20 +41033,20 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
40946
41033
|
});
|
|
40947
41034
|
};
|
|
40948
41035
|
render() {
|
|
40949
|
-
let { data: e, mode: t, onDelete: n, defaultFeedback: r, index: i, className: a, noLabels: o, useLetterOrdering: s, imageSupport: c, disableImageAlignmentButtons: l, disabled: u, spellCheck: d, nonEmpty: f, allowFeedBack: p, allowDelete: m, pluginOpts: h, toolbarOpts: g, error: _, noCorrectAnswerError: v, uploadSoundSupport: y, maxImageWidth: b, maxImageHeight: x, mathMlOptions: S = {} } = this.props, C = t === "checkbox" ?
|
|
40950
|
-
return /* @__PURE__ */ P(
|
|
40951
|
-
i > 0 && /* @__PURE__ */ N(
|
|
41036
|
+
let { data: e, mode: t, onDelete: n, defaultFeedback: r, index: i, className: a, noLabels: o, useLetterOrdering: s, imageSupport: c, disableImageAlignmentButtons: l, disabled: u, spellCheck: d, nonEmpty: f, allowFeedBack: p, allowDelete: m, pluginOpts: h, toolbarOpts: g, error: _, noCorrectAnswerError: v, uploadSoundSupport: y, maxImageWidth: b, maxImageHeight: x, mathMlOptions: S = {} } = this.props, C = t === "checkbox" ? UJ : GJ;
|
|
41037
|
+
return /* @__PURE__ */ P(PY, { children: [
|
|
41038
|
+
i > 0 && /* @__PURE__ */ N(NY, {
|
|
40952
41039
|
type: "title",
|
|
40953
41040
|
children: s ? String.fromCharCode(96 + i).toUpperCase() : i
|
|
40954
41041
|
}),
|
|
40955
|
-
/* @__PURE__ */ N(
|
|
41042
|
+
/* @__PURE__ */ N(FY, { children: /* @__PURE__ */ N(C, {
|
|
40956
41043
|
onChange: this.onCheckedChange,
|
|
40957
41044
|
label: o ? "" : "Correct",
|
|
40958
41045
|
checked: !!e.correct,
|
|
40959
41046
|
error: v
|
|
40960
41047
|
}) }),
|
|
40961
|
-
/* @__PURE__ */ P(
|
|
40962
|
-
/* @__PURE__ */ N(
|
|
41048
|
+
/* @__PURE__ */ P(BY, { children: [
|
|
41049
|
+
/* @__PURE__ */ N(DY, {
|
|
40963
41050
|
label: o ? "" : "Label",
|
|
40964
41051
|
value: e.label,
|
|
40965
41052
|
onChange: this.onLabelChange,
|
|
@@ -40976,8 +41063,8 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
40976
41063
|
maxImageWidth: b,
|
|
40977
41064
|
maxImageHeight: x
|
|
40978
41065
|
}),
|
|
40979
|
-
_ && /* @__PURE__ */ N(
|
|
40980
|
-
p && /* @__PURE__ */ N(
|
|
41066
|
+
_ && /* @__PURE__ */ N(VY, { children: _ }),
|
|
41067
|
+
p && /* @__PURE__ */ N(MY, {
|
|
40981
41068
|
...e.feedback,
|
|
40982
41069
|
correct: e.correct,
|
|
40983
41070
|
defaults: r,
|
|
@@ -40985,16 +41072,16 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
40985
41072
|
toolbarOpts: g
|
|
40986
41073
|
})
|
|
40987
41074
|
] }),
|
|
40988
|
-
p && /* @__PURE__ */ N(
|
|
41075
|
+
p && /* @__PURE__ */ N(IY, { children: /* @__PURE__ */ N(SY, {
|
|
40989
41076
|
label: o ? "" : "Feedback",
|
|
40990
|
-
children: /* @__PURE__ */ N(
|
|
41077
|
+
children: /* @__PURE__ */ N(LY, { children: /* @__PURE__ */ N(vY, {
|
|
40991
41078
|
onChange: this.onFeedbackTypeChange,
|
|
40992
41079
|
value: e.feedback
|
|
40993
41080
|
}) })
|
|
40994
41081
|
}) }),
|
|
40995
|
-
m && /* @__PURE__ */ N(
|
|
41082
|
+
m && /* @__PURE__ */ N(zY, { children: /* @__PURE__ */ N(SY, {
|
|
40996
41083
|
label: o ? "" : "Delete",
|
|
40997
|
-
children: /* @__PURE__ */ N(
|
|
41084
|
+
children: /* @__PURE__ */ N(RY, { children: /* @__PURE__ */ N(uS, {
|
|
40998
41085
|
"aria-label": "delete",
|
|
40999
41086
|
onClick: n,
|
|
41000
41087
|
size: "large",
|
|
@@ -41003,21 +41090,21 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
41003
41090
|
}) })
|
|
41004
41091
|
] });
|
|
41005
41092
|
}
|
|
41006
|
-
},
|
|
41093
|
+
}, UY = Object.defineProperty, WY = (e, t) => {
|
|
41007
41094
|
let n = {};
|
|
41008
|
-
for (var r in e)
|
|
41095
|
+
for (var r in e) UY(n, r, {
|
|
41009
41096
|
get: e[r],
|
|
41010
41097
|
enumerable: !0
|
|
41011
41098
|
});
|
|
41012
|
-
return t ||
|
|
41013
|
-
},
|
|
41099
|
+
return t || UY(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
41100
|
+
}, GY = j("div")(() => ({
|
|
41014
41101
|
display: "flex",
|
|
41015
41102
|
flexDirection: "column",
|
|
41016
41103
|
position: "relative"
|
|
41017
|
-
})),
|
|
41104
|
+
})), KY = j("div")(() => ({
|
|
41018
41105
|
display: "flex",
|
|
41019
41106
|
justifyContent: "space-between"
|
|
41020
|
-
})),
|
|
41107
|
+
})), qY = j("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), JY = j("div")(() => ({ flex: "1" })), YY = j("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), XY = class extends mt.Component {
|
|
41021
41108
|
static propTypes = {
|
|
41022
41109
|
mode: H.default.oneOf(["tabbed", "inline"]),
|
|
41023
41110
|
secondary: H.default.oneOfType([H.default.arrayOf(H.default.node), H.default.node]),
|
|
@@ -41035,7 +41122,7 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
41035
41122
|
} catch (e) {
|
|
41036
41123
|
console.log(e.toString());
|
|
41037
41124
|
}
|
|
41038
|
-
return /* @__PURE__ */ P(
|
|
41125
|
+
return /* @__PURE__ */ P(GY, {
|
|
41039
41126
|
style: {
|
|
41040
41127
|
minHeight: i,
|
|
41041
41128
|
minWidth: a,
|
|
@@ -41043,28 +41130,28 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
41043
41130
|
maxWidth: s
|
|
41044
41131
|
},
|
|
41045
41132
|
children: [
|
|
41046
|
-
e === "inline" && /* @__PURE__ */ P(
|
|
41133
|
+
e === "inline" && /* @__PURE__ */ P(KY, { children: [/* @__PURE__ */ N(JY, {
|
|
41047
41134
|
className: "design-container",
|
|
41048
41135
|
children: n
|
|
41049
|
-
}), l && /* @__PURE__ */ N(
|
|
41136
|
+
}), l && /* @__PURE__ */ N(YY, {
|
|
41050
41137
|
className: "settings-container",
|
|
41051
41138
|
children: t
|
|
41052
41139
|
})] }),
|
|
41053
|
-
e === "tabbed" && l && /* @__PURE__ */ P(
|
|
41140
|
+
e === "tabbed" && l && /* @__PURE__ */ P(qJ, {
|
|
41054
41141
|
onChange: this.onTabsChange,
|
|
41055
41142
|
contentClassName: "content-container",
|
|
41056
41143
|
indicatorColor: "primary",
|
|
41057
|
-
children: [/* @__PURE__ */ N(
|
|
41144
|
+
children: [/* @__PURE__ */ N(qY, {
|
|
41058
41145
|
title: "Design",
|
|
41059
41146
|
className: "design-container",
|
|
41060
41147
|
children: n
|
|
41061
|
-
}), /* @__PURE__ */ N(
|
|
41148
|
+
}), /* @__PURE__ */ N(qY, {
|
|
41062
41149
|
title: "Settings",
|
|
41063
41150
|
className: "settings-container",
|
|
41064
41151
|
children: t
|
|
41065
41152
|
})]
|
|
41066
41153
|
}),
|
|
41067
|
-
e === "tabbed" && !l && /* @__PURE__ */ N(
|
|
41154
|
+
e === "tabbed" && !l && /* @__PURE__ */ N(qY, {
|
|
41068
41155
|
className: "design-container",
|
|
41069
41156
|
children: n
|
|
41070
41157
|
})
|
|
@@ -41074,18 +41161,18 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
41074
41161
|
};
|
|
41075
41162
|
//#endregion
|
|
41076
41163
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
41077
|
-
function
|
|
41078
|
-
return
|
|
41164
|
+
function ZY() {
|
|
41165
|
+
return ZY = Object.assign ? Object.assign.bind() : function(e) {
|
|
41079
41166
|
for (var t = 1; t < arguments.length; t++) {
|
|
41080
41167
|
var n = arguments[t];
|
|
41081
41168
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
41082
41169
|
}
|
|
41083
41170
|
return e;
|
|
41084
|
-
},
|
|
41171
|
+
}, ZY.apply(null, arguments);
|
|
41085
41172
|
}
|
|
41086
41173
|
//#endregion
|
|
41087
41174
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
41088
|
-
function
|
|
41175
|
+
function QY(e, t) {
|
|
41089
41176
|
if (e == null) return {};
|
|
41090
41177
|
var n = {};
|
|
41091
41178
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -41096,19 +41183,19 @@ function UY(e, t) {
|
|
|
41096
41183
|
}
|
|
41097
41184
|
//#endregion
|
|
41098
41185
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
41099
|
-
function
|
|
41100
|
-
return
|
|
41186
|
+
function $Y(e, t) {
|
|
41187
|
+
return $Y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
41101
41188
|
return e.__proto__ = t, e;
|
|
41102
|
-
},
|
|
41189
|
+
}, $Y(e, t);
|
|
41103
41190
|
}
|
|
41104
41191
|
//#endregion
|
|
41105
41192
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
41106
|
-
function
|
|
41107
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
41193
|
+
function eX(e, t) {
|
|
41194
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, $Y(e, t);
|
|
41108
41195
|
}
|
|
41109
41196
|
//#endregion
|
|
41110
41197
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
41111
|
-
var
|
|
41198
|
+
var tX = (function() {
|
|
41112
41199
|
if (typeof Map < "u") return Map;
|
|
41113
41200
|
function e(e, t) {
|
|
41114
41201
|
var n = -1;
|
|
@@ -41147,34 +41234,34 @@ var KY = (function() {
|
|
|
41147
41234
|
}
|
|
41148
41235
|
}, t;
|
|
41149
41236
|
}();
|
|
41150
|
-
})(),
|
|
41237
|
+
})(), nX = typeof window < "u" && typeof document < "u" && window.document === document, rX = (function() {
|
|
41151
41238
|
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")();
|
|
41152
|
-
})(),
|
|
41153
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
41239
|
+
})(), iX = (function() {
|
|
41240
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(rX) : function(e) {
|
|
41154
41241
|
return setTimeout(function() {
|
|
41155
41242
|
return e(Date.now());
|
|
41156
41243
|
}, 1e3 / 60);
|
|
41157
41244
|
};
|
|
41158
|
-
})(),
|
|
41159
|
-
function
|
|
41245
|
+
})(), aX = 2;
|
|
41246
|
+
function oX(e, t) {
|
|
41160
41247
|
var n = !1, r = !1, i = 0;
|
|
41161
41248
|
function a() {
|
|
41162
41249
|
n && (n = !1, e()), r && s();
|
|
41163
41250
|
}
|
|
41164
41251
|
function o() {
|
|
41165
|
-
|
|
41252
|
+
iX(a);
|
|
41166
41253
|
}
|
|
41167
41254
|
function s() {
|
|
41168
41255
|
var e = Date.now();
|
|
41169
41256
|
if (n) {
|
|
41170
|
-
if (e - i <
|
|
41257
|
+
if (e - i < aX) return;
|
|
41171
41258
|
r = !0;
|
|
41172
41259
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
41173
41260
|
i = e;
|
|
41174
41261
|
}
|
|
41175
41262
|
return s;
|
|
41176
41263
|
}
|
|
41177
|
-
var
|
|
41264
|
+
var sX = 20, cX = [
|
|
41178
41265
|
"top",
|
|
41179
41266
|
"right",
|
|
41180
41267
|
"bottom",
|
|
@@ -41183,9 +41270,9 @@ var QY = 20, $Y = [
|
|
|
41183
41270
|
"height",
|
|
41184
41271
|
"size",
|
|
41185
41272
|
"weight"
|
|
41186
|
-
],
|
|
41273
|
+
], lX = typeof MutationObserver < "u", uX = function() {
|
|
41187
41274
|
function e() {
|
|
41188
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
41275
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = oX(this.refresh.bind(this), sX);
|
|
41189
41276
|
}
|
|
41190
41277
|
return e.prototype.addObserver = function(e) {
|
|
41191
41278
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -41202,23 +41289,23 @@ var QY = 20, $Y = [
|
|
|
41202
41289
|
return e.broadcastActive();
|
|
41203
41290
|
}), e.length > 0;
|
|
41204
41291
|
}, e.prototype.connect_ = function() {
|
|
41205
|
-
!
|
|
41292
|
+
!nX || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), lX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
41206
41293
|
attributes: !0,
|
|
41207
41294
|
childList: !0,
|
|
41208
41295
|
characterData: !0,
|
|
41209
41296
|
subtree: !0
|
|
41210
41297
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
41211
41298
|
}, e.prototype.disconnect_ = function() {
|
|
41212
|
-
!
|
|
41299
|
+
!nX || !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);
|
|
41213
41300
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
41214
41301
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
41215
|
-
|
|
41302
|
+
cX.some(function(e) {
|
|
41216
41303
|
return !!~n.indexOf(e);
|
|
41217
41304
|
}) && this.refresh();
|
|
41218
41305
|
}, e.getInstance = function() {
|
|
41219
41306
|
return this.instance_ ||= new e(), this.instance_;
|
|
41220
41307
|
}, e.instance_ = null, e;
|
|
41221
|
-
}(),
|
|
41308
|
+
}(), dX = (function(e, t) {
|
|
41222
41309
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
41223
41310
|
var i = r[n];
|
|
41224
41311
|
Object.defineProperty(e, i, {
|
|
@@ -41229,19 +41316,19 @@ var QY = 20, $Y = [
|
|
|
41229
41316
|
});
|
|
41230
41317
|
}
|
|
41231
41318
|
return e;
|
|
41232
|
-
}),
|
|
41233
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
41234
|
-
}),
|
|
41235
|
-
function
|
|
41319
|
+
}), fX = (function(e) {
|
|
41320
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || rX;
|
|
41321
|
+
}), pX = CX(0, 0, 0, 0);
|
|
41322
|
+
function mX(e) {
|
|
41236
41323
|
return parseFloat(e) || 0;
|
|
41237
41324
|
}
|
|
41238
|
-
function
|
|
41325
|
+
function hX(e) {
|
|
41239
41326
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
41240
41327
|
var r = e["border-" + n + "-width"];
|
|
41241
|
-
return t +
|
|
41328
|
+
return t + mX(r);
|
|
41242
41329
|
}, 0);
|
|
41243
41330
|
}
|
|
41244
|
-
function
|
|
41331
|
+
function gX(e) {
|
|
41245
41332
|
for (var t = [
|
|
41246
41333
|
"top",
|
|
41247
41334
|
"right",
|
|
@@ -41249,40 +41336,40 @@ function sX(e) {
|
|
|
41249
41336
|
"left"
|
|
41250
41337
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
41251
41338
|
var a = i[r], o = e["padding-" + a];
|
|
41252
|
-
n[a] =
|
|
41339
|
+
n[a] = mX(o);
|
|
41253
41340
|
}
|
|
41254
41341
|
return n;
|
|
41255
41342
|
}
|
|
41256
|
-
function
|
|
41343
|
+
function _X(e) {
|
|
41257
41344
|
var t = e.getBBox();
|
|
41258
|
-
return
|
|
41345
|
+
return CX(0, 0, t.width, t.height);
|
|
41259
41346
|
}
|
|
41260
|
-
function
|
|
41347
|
+
function vX(e) {
|
|
41261
41348
|
var t = e.clientWidth, n = e.clientHeight;
|
|
41262
|
-
if (!t && !n) return
|
|
41263
|
-
var r =
|
|
41264
|
-
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -=
|
|
41349
|
+
if (!t && !n) return pX;
|
|
41350
|
+
var r = fX(e).getComputedStyle(e), i = gX(r), a = i.left + i.right, o = i.top + i.bottom, s = mX(r.width), c = mX(r.height);
|
|
41351
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= hX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= hX(r, "top", "bottom") + o)), !bX(e)) {
|
|
41265
41352
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
41266
41353
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
41267
41354
|
}
|
|
41268
|
-
return
|
|
41355
|
+
return CX(i.left, i.top, s, c);
|
|
41269
41356
|
}
|
|
41270
|
-
var
|
|
41357
|
+
var yX = (function() {
|
|
41271
41358
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
41272
|
-
return e instanceof
|
|
41359
|
+
return e instanceof fX(e).SVGGraphicsElement;
|
|
41273
41360
|
} : function(e) {
|
|
41274
|
-
return e instanceof
|
|
41361
|
+
return e instanceof fX(e).SVGElement && typeof e.getBBox == "function";
|
|
41275
41362
|
};
|
|
41276
41363
|
})();
|
|
41277
|
-
function
|
|
41278
|
-
return e ===
|
|
41364
|
+
function bX(e) {
|
|
41365
|
+
return e === fX(e).document.documentElement;
|
|
41279
41366
|
}
|
|
41280
|
-
function
|
|
41281
|
-
return
|
|
41367
|
+
function xX(e) {
|
|
41368
|
+
return nX ? yX(e) ? _X(e) : vX(e) : pX;
|
|
41282
41369
|
}
|
|
41283
|
-
function
|
|
41370
|
+
function SX(e) {
|
|
41284
41371
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
41285
|
-
return
|
|
41372
|
+
return dX(a, {
|
|
41286
41373
|
x: t,
|
|
41287
41374
|
y: n,
|
|
41288
41375
|
width: r,
|
|
@@ -41293,7 +41380,7 @@ function pX(e) {
|
|
|
41293
41380
|
left: t
|
|
41294
41381
|
}), a;
|
|
41295
41382
|
}
|
|
41296
|
-
function
|
|
41383
|
+
function CX(e, t, n, r) {
|
|
41297
41384
|
return {
|
|
41298
41385
|
x: e,
|
|
41299
41386
|
y: t,
|
|
@@ -41301,42 +41388,42 @@ function mX(e, t, n, r) {
|
|
|
41301
41388
|
height: r
|
|
41302
41389
|
};
|
|
41303
41390
|
}
|
|
41304
|
-
var
|
|
41391
|
+
var wX = function() {
|
|
41305
41392
|
function e(e) {
|
|
41306
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
41393
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = CX(0, 0, 0, 0), this.target = e;
|
|
41307
41394
|
}
|
|
41308
41395
|
return e.prototype.isActive = function() {
|
|
41309
|
-
var e =
|
|
41396
|
+
var e = xX(this.target);
|
|
41310
41397
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
41311
41398
|
}, e.prototype.broadcastRect = function() {
|
|
41312
41399
|
var e = this.contentRect_;
|
|
41313
41400
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
41314
41401
|
}, e;
|
|
41315
|
-
}(),
|
|
41402
|
+
}(), TX = function() {
|
|
41316
41403
|
function e(e, t) {
|
|
41317
|
-
var n =
|
|
41318
|
-
|
|
41404
|
+
var n = SX(t);
|
|
41405
|
+
dX(this, {
|
|
41319
41406
|
target: e,
|
|
41320
41407
|
contentRect: n
|
|
41321
41408
|
});
|
|
41322
41409
|
}
|
|
41323
41410
|
return e;
|
|
41324
|
-
}(),
|
|
41411
|
+
}(), EX = function() {
|
|
41325
41412
|
function e(e, t, n) {
|
|
41326
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
41413
|
+
if (this.activeObservations_ = [], this.observations_ = new tX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
41327
41414
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
41328
41415
|
}
|
|
41329
41416
|
return e.prototype.observe = function(e) {
|
|
41330
41417
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41331
41418
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
41332
|
-
if (!(e instanceof
|
|
41419
|
+
if (!(e instanceof fX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
41333
41420
|
var t = this.observations_;
|
|
41334
|
-
t.has(e) || (t.set(e, new
|
|
41421
|
+
t.has(e) || (t.set(e, new wX(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
41335
41422
|
}
|
|
41336
41423
|
}, e.prototype.unobserve = function(e) {
|
|
41337
41424
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41338
41425
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
41339
|
-
if (!(e instanceof
|
|
41426
|
+
if (!(e instanceof fX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
41340
41427
|
var t = this.observations_;
|
|
41341
41428
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
41342
41429
|
}
|
|
@@ -41350,7 +41437,7 @@ var hX = function() {
|
|
|
41350
41437
|
}, e.prototype.broadcastActive = function() {
|
|
41351
41438
|
if (this.hasActive()) {
|
|
41352
41439
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
41353
|
-
return new
|
|
41440
|
+
return new TX(e.target, e.broadcastRect());
|
|
41354
41441
|
});
|
|
41355
41442
|
this.callback_.call(e, t, e), this.clearActive();
|
|
41356
41443
|
}
|
|
@@ -41359,12 +41446,12 @@ var hX = function() {
|
|
|
41359
41446
|
}, e.prototype.hasActive = function() {
|
|
41360
41447
|
return this.activeObservations_.length > 0;
|
|
41361
41448
|
}, e;
|
|
41362
|
-
}(),
|
|
41449
|
+
}(), DX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new tX(), OX = function() {
|
|
41363
41450
|
function e(t) {
|
|
41364
41451
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
41365
41452
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41366
|
-
var n = new
|
|
41367
|
-
|
|
41453
|
+
var n = new EX(t, uX.getInstance(), this);
|
|
41454
|
+
DX.set(this, n);
|
|
41368
41455
|
}
|
|
41369
41456
|
return e;
|
|
41370
41457
|
}();
|
|
@@ -41373,27 +41460,27 @@ var hX = function() {
|
|
|
41373
41460
|
"unobserve",
|
|
41374
41461
|
"disconnect"
|
|
41375
41462
|
].forEach(function(e) {
|
|
41376
|
-
|
|
41463
|
+
OX.prototype[e] = function() {
|
|
41377
41464
|
var t;
|
|
41378
|
-
return (t =
|
|
41465
|
+
return (t = DX.get(this))[e].apply(t, arguments);
|
|
41379
41466
|
};
|
|
41380
41467
|
});
|
|
41381
|
-
var
|
|
41382
|
-
return
|
|
41383
|
-
})(),
|
|
41468
|
+
var kX = (function() {
|
|
41469
|
+
return rX.ResizeObserver === void 0 ? OX : rX.ResizeObserver;
|
|
41470
|
+
})(), AX = [
|
|
41384
41471
|
"client",
|
|
41385
41472
|
"offset",
|
|
41386
41473
|
"scroll",
|
|
41387
41474
|
"bounds",
|
|
41388
41475
|
"margin"
|
|
41389
41476
|
];
|
|
41390
|
-
function
|
|
41477
|
+
function jX(e) {
|
|
41391
41478
|
var t = [];
|
|
41392
|
-
return
|
|
41479
|
+
return AX.forEach(function(n) {
|
|
41393
41480
|
e[n] && t.push(n);
|
|
41394
41481
|
}), t;
|
|
41395
41482
|
}
|
|
41396
|
-
function
|
|
41483
|
+
function MX(e, t) {
|
|
41397
41484
|
var n = {};
|
|
41398
41485
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
41399
41486
|
top: e.clientTop,
|
|
@@ -41432,14 +41519,14 @@ function CX(e, t) {
|
|
|
41432
41519
|
}
|
|
41433
41520
|
return n;
|
|
41434
41521
|
}
|
|
41435
|
-
function
|
|
41522
|
+
function NX(e) {
|
|
41436
41523
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
41437
41524
|
}
|
|
41438
|
-
function
|
|
41525
|
+
function PX(e) {
|
|
41439
41526
|
return function(t) {
|
|
41440
41527
|
var n, r;
|
|
41441
41528
|
return r = n = /*#__PURE__*/ function(n) {
|
|
41442
|
-
|
|
41529
|
+
eX(r, n);
|
|
41443
41530
|
function r() {
|
|
41444
41531
|
var t, r = [...arguments];
|
|
41445
41532
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -41450,24 +41537,24 @@ function TX(e) {
|
|
|
41450
41537
|
bounds: {},
|
|
41451
41538
|
margin: {}
|
|
41452
41539
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
41453
|
-
var r =
|
|
41540
|
+
var r = MX(t._node, e || jX(t.props));
|
|
41454
41541
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
41455
41542
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
41456
41543
|
});
|
|
41457
41544
|
}, t._handleRef = function(e) {
|
|
41458
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
41545
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = NX(t._node);
|
|
41459
41546
|
var n = t.props.innerRef;
|
|
41460
41547
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
41461
41548
|
}, t;
|
|
41462
41549
|
}
|
|
41463
41550
|
var i = r.prototype;
|
|
41464
41551
|
return i.componentDidMount = function() {
|
|
41465
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
41552
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new kX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(MX(this._node, e || jX(this.props))));
|
|
41466
41553
|
}, i.componentWillUnmount = function() {
|
|
41467
41554
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
41468
41555
|
}, i.render = function() {
|
|
41469
41556
|
var e = this.props;
|
|
41470
|
-
return e.innerRef, e.onResize, _t(t,
|
|
41557
|
+
return e.innerRef, e.onResize, _t(t, ZY({}, QY(e, ["innerRef", "onResize"]), {
|
|
41471
41558
|
measureRef: this._handleRef,
|
|
41472
41559
|
measure: this.measure,
|
|
41473
41560
|
contentRect: this.state.contentRect
|
|
@@ -41484,7 +41571,7 @@ function TX(e) {
|
|
|
41484
41571
|
}, r;
|
|
41485
41572
|
};
|
|
41486
41573
|
}
|
|
41487
|
-
var
|
|
41574
|
+
var FX = PX()(function(e) {
|
|
41488
41575
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
41489
41576
|
return i({
|
|
41490
41577
|
measure: t,
|
|
@@ -41492,10 +41579,10 @@ var EX = TX()(function(e) {
|
|
|
41492
41579
|
contentRect: r
|
|
41493
41580
|
});
|
|
41494
41581
|
});
|
|
41495
|
-
|
|
41582
|
+
FX.displayName = "Measure", FX.propTypes.children = H.default.func;
|
|
41496
41583
|
//#endregion
|
|
41497
41584
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
41498
|
-
var
|
|
41585
|
+
var IX = j("div")(() => ({
|
|
41499
41586
|
backgroundColor: g.white(),
|
|
41500
41587
|
border: `2px solid ${g.border()}`,
|
|
41501
41588
|
display: "flex",
|
|
@@ -41505,7 +41592,7 @@ var DX = j("div")(() => ({
|
|
|
41505
41592
|
maxWidth: "300px",
|
|
41506
41593
|
padding: "20px 4px 4px 20px",
|
|
41507
41594
|
zIndex: 99
|
|
41508
|
-
})),
|
|
41595
|
+
})), LX = class extends mt.Component {
|
|
41509
41596
|
static propTypes = {
|
|
41510
41597
|
className: H.default.string,
|
|
41511
41598
|
children: H.default.oneOfType([H.default.arrayOf(H.default.node), H.default.node]).isRequired
|
|
@@ -41513,19 +41600,19 @@ var DX = j("div")(() => ({
|
|
|
41513
41600
|
static defaultProps = {};
|
|
41514
41601
|
render() {
|
|
41515
41602
|
let { className: e, children: t } = this.props;
|
|
41516
|
-
return /* @__PURE__ */ N(
|
|
41603
|
+
return /* @__PURE__ */ N(IX, {
|
|
41517
41604
|
className: e,
|
|
41518
41605
|
children: t
|
|
41519
41606
|
});
|
|
41520
41607
|
}
|
|
41521
|
-
},
|
|
41608
|
+
}, RX = o({
|
|
41522
41609
|
typography: { fontFamily: "inherit" },
|
|
41523
41610
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
41524
41611
|
backgroundColor: "#e0e0e0",
|
|
41525
41612
|
color: "#000000",
|
|
41526
41613
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
41527
41614
|
} } } }
|
|
41528
|
-
}),
|
|
41615
|
+
}), zX = class extends mt.Component {
|
|
41529
41616
|
static propTypes = {
|
|
41530
41617
|
children: H.default.oneOfType([
|
|
41531
41618
|
H.default.string,
|
|
@@ -41558,19 +41645,19 @@ var DX = j("div")(() => ({
|
|
|
41558
41645
|
return /* @__PURE__ */ N(S, {
|
|
41559
41646
|
injectFirst: !0,
|
|
41560
41647
|
children: /* @__PURE__ */ N(qe, {
|
|
41561
|
-
theme:
|
|
41562
|
-
children: /* @__PURE__ */ N(
|
|
41648
|
+
theme: RX,
|
|
41649
|
+
children: /* @__PURE__ */ N(FX, {
|
|
41563
41650
|
bounds: !0,
|
|
41564
41651
|
onResize: this.onResize,
|
|
41565
41652
|
children: ({ measureRef: e }) => {
|
|
41566
|
-
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ N(
|
|
41653
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ N(LX, {
|
|
41567
41654
|
className: "settings-box",
|
|
41568
41655
|
children: n
|
|
41569
41656
|
}) : n;
|
|
41570
41657
|
return /* @__PURE__ */ P("div", {
|
|
41571
41658
|
ref: e,
|
|
41572
41659
|
className: "main-container extraCSSRules",
|
|
41573
|
-
children: [a?.rules ? /* @__PURE__ */ N("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ N(
|
|
41660
|
+
children: [a?.rules ? /* @__PURE__ */ N("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ N(XY, {
|
|
41574
41661
|
mode: o,
|
|
41575
41662
|
secondary: s,
|
|
41576
41663
|
dimensions: i,
|
|
@@ -41582,36 +41669,36 @@ var DX = j("div")(() => ({
|
|
|
41582
41669
|
})
|
|
41583
41670
|
});
|
|
41584
41671
|
}
|
|
41585
|
-
},
|
|
41586
|
-
ConfigLayout: () =>
|
|
41587
|
-
LayoutContents: () =>
|
|
41588
|
-
}),
|
|
41589
|
-
firstAvailableIndex: () =>
|
|
41590
|
-
normalizeChoices: () =>
|
|
41591
|
-
}),
|
|
41672
|
+
}, BX = PX("bounds")(zX), VX = /* @__PURE__ */ WY({
|
|
41673
|
+
ConfigLayout: () => BX,
|
|
41674
|
+
LayoutContents: () => XY
|
|
41675
|
+
}), HX = /* @__PURE__ */ WY({
|
|
41676
|
+
firstAvailableIndex: () => WX,
|
|
41677
|
+
normalizeChoices: () => UX
|
|
41678
|
+
}), UX = (e) => {
|
|
41592
41679
|
let t = e.choices.map((e, t) => (e.value ||= `${t}`, e));
|
|
41593
41680
|
return {
|
|
41594
41681
|
...e,
|
|
41595
41682
|
choices: t
|
|
41596
41683
|
};
|
|
41597
|
-
},
|
|
41684
|
+
}, WX = (e, t) => ct(e, `${t}`) ? WX(e, t + 1) : `${t}`, GX = j("div")(() => ({
|
|
41598
41685
|
display: "flex",
|
|
41599
41686
|
width: "100%",
|
|
41600
41687
|
justifyContent: "space-between"
|
|
41601
|
-
})),
|
|
41688
|
+
})), KX = j(ge)(({ theme: e }) => ({
|
|
41602
41689
|
color: "rgba(0, 0, 0, 0.89)",
|
|
41603
41690
|
fontSize: e.typography.fontSize,
|
|
41604
41691
|
paddingTop: e.spacing(2)
|
|
41605
|
-
})),
|
|
41692
|
+
})), qX = j(EJ)(({ checked: e }) => ({
|
|
41606
41693
|
"&.Mui-checked .MuiSwitch-thumb": { color: `${g.tertiary()} !important` },
|
|
41607
41694
|
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${g.tertiaryLight()} !important` },
|
|
41608
41695
|
"& .MuiSwitch-track": { backgroundColor: e ? `${g.tertiaryLight()} !important` : void 0 }
|
|
41609
|
-
})),
|
|
41696
|
+
})), JX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ P(GX, { children: [/* @__PURE__ */ N(KX, { children: n }), /* @__PURE__ */ N(qX, {
|
|
41610
41697
|
checked: e,
|
|
41611
41698
|
disabled: t,
|
|
41612
41699
|
onChange: (e) => r(e.target.checked)
|
|
41613
41700
|
})] });
|
|
41614
|
-
|
|
41701
|
+
JX.propTypes = {
|
|
41615
41702
|
checked: H.default.bool,
|
|
41616
41703
|
disabled: H.default.bool,
|
|
41617
41704
|
label: H.default.string.isRequired,
|
|
@@ -41619,20 +41706,20 @@ zX.propTypes = {
|
|
|
41619
41706
|
};
|
|
41620
41707
|
//#endregion
|
|
41621
41708
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
41622
|
-
var
|
|
41709
|
+
var YX = j(Te)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
41623
41710
|
color: "rgba(0, 0, 0, 0.89)",
|
|
41624
41711
|
fontSize: e.typography.fontSize - 2,
|
|
41625
41712
|
left: "-5px",
|
|
41626
41713
|
position: "relative"
|
|
41627
|
-
} })),
|
|
41714
|
+
} })), XX = j(He)(() => ({ color: `${g.tertiary()} !important` })), ZX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ N(YX, {
|
|
41628
41715
|
value: t,
|
|
41629
|
-
control: /* @__PURE__ */ N(
|
|
41716
|
+
control: /* @__PURE__ */ N(XX, {
|
|
41630
41717
|
checked: n,
|
|
41631
41718
|
onChange: r
|
|
41632
41719
|
}),
|
|
41633
41720
|
label: e
|
|
41634
41721
|
});
|
|
41635
|
-
|
|
41722
|
+
ZX.propTypes = {
|
|
41636
41723
|
label: H.default.string,
|
|
41637
41724
|
value: H.default.string,
|
|
41638
41725
|
checked: H.default.bool,
|
|
@@ -41640,26 +41727,26 @@ HX.propTypes = {
|
|
|
41640
41727
|
};
|
|
41641
41728
|
//#endregion
|
|
41642
41729
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
41643
|
-
var
|
|
41730
|
+
var QX = (0, Pt.default)("pie-lib:config-ui:settings:panel"), $X = {
|
|
41644
41731
|
label: H.default.string,
|
|
41645
41732
|
value: H.default.string
|
|
41646
|
-
},
|
|
41733
|
+
}, eZ = {
|
|
41647
41734
|
label: H.default.string,
|
|
41648
41735
|
value: H.default.string,
|
|
41649
41736
|
onChange: H.default.func
|
|
41650
|
-
},
|
|
41737
|
+
}, tZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ N(XJ, {
|
|
41651
41738
|
checked: t,
|
|
41652
41739
|
label: e,
|
|
41653
41740
|
onChange: (e) => {
|
|
41654
41741
|
n(e.target.checked);
|
|
41655
41742
|
}
|
|
41656
41743
|
});
|
|
41657
|
-
|
|
41744
|
+
tZ.propTypes = {
|
|
41658
41745
|
label: H.default.string,
|
|
41659
41746
|
value: H.default.bool,
|
|
41660
41747
|
onChange: H.default.func
|
|
41661
41748
|
};
|
|
41662
|
-
var
|
|
41749
|
+
var nZ = j(cY)(({ theme: e }) => ({
|
|
41663
41750
|
marginTop: e.spacing(.5),
|
|
41664
41751
|
paddingBottom: e.spacing(.5),
|
|
41665
41752
|
width: "100%",
|
|
@@ -41670,29 +41757,29 @@ var qX = j($J)(({ theme: e }) => ({
|
|
|
41670
41757
|
marginTop: e.spacing(2.5)
|
|
41671
41758
|
},
|
|
41672
41759
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
41673
|
-
})),
|
|
41760
|
+
})), rZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ N(nZ, {
|
|
41674
41761
|
direction: "horizontal",
|
|
41675
|
-
customLabel:
|
|
41762
|
+
customLabel: ZX,
|
|
41676
41763
|
value: t,
|
|
41677
41764
|
header: e,
|
|
41678
41765
|
opts: r,
|
|
41679
41766
|
onChange: n
|
|
41680
41767
|
});
|
|
41681
|
-
|
|
41682
|
-
...
|
|
41683
|
-
choices: H.default.arrayOf(H.default.shape(
|
|
41768
|
+
rZ.propTypes = {
|
|
41769
|
+
...eZ,
|
|
41770
|
+
choices: H.default.arrayOf(H.default.shape($X))
|
|
41684
41771
|
};
|
|
41685
|
-
var
|
|
41772
|
+
var iZ = rZ, aZ = j("p")(({ theme: e }) => ({
|
|
41686
41773
|
margin: 0,
|
|
41687
41774
|
fontSize: e.typography.fontSize
|
|
41688
|
-
})),
|
|
41775
|
+
})), oZ = j(oM)(({ theme: e }) => ({
|
|
41689
41776
|
marginTop: e.spacing(.5),
|
|
41690
41777
|
border: "2px solid lightgrey",
|
|
41691
41778
|
padding: `0 ${e.spacing(1)}`,
|
|
41692
41779
|
borderRadius: "4px"
|
|
41693
|
-
})),
|
|
41780
|
+
})), sZ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
41694
41781
|
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
41695
|
-
return /* @__PURE__ */ P("div", { children: [e && /* @__PURE__ */ N(
|
|
41782
|
+
return /* @__PURE__ */ P("div", { children: [e && /* @__PURE__ */ N(aZ, { children: e }), /* @__PURE__ */ N(oZ, {
|
|
41696
41783
|
value: t || r && r[0],
|
|
41697
41784
|
onChange: ({ target: e }) => n(e.value),
|
|
41698
41785
|
input: /* @__PURE__ */ N(Lj, { id: `dropdown-${e}` }),
|
|
@@ -41707,14 +41794,14 @@ var YX = JX, XX = j("p")(({ theme: e }) => ({
|
|
|
41707
41794
|
}, t))
|
|
41708
41795
|
})] });
|
|
41709
41796
|
};
|
|
41710
|
-
|
|
41711
|
-
...
|
|
41797
|
+
sZ.propTypes = {
|
|
41798
|
+
...eZ,
|
|
41712
41799
|
choices: H.default.arrayOf(H.default.string)
|
|
41713
41800
|
};
|
|
41714
|
-
var
|
|
41801
|
+
var cZ = j(me)(({ theme: e }) => ({
|
|
41715
41802
|
marginRight: e.spacing(3),
|
|
41716
41803
|
marginTop: e.spacing(1)
|
|
41717
|
-
})),
|
|
41804
|
+
})), lZ = ({ label: e }) => /* @__PURE__ */ N(cZ, { children: e }), uZ = j(eY)(({ theme: e }) => ({
|
|
41718
41805
|
width: "35%",
|
|
41719
41806
|
marginRight: e.spacing(3),
|
|
41720
41807
|
marginTop: e.spacing(1),
|
|
@@ -41725,7 +41812,7 @@ var $X = j(me)(({ theme: e }) => ({
|
|
|
41725
41812
|
padding: `0 ${e.spacing(1)}`,
|
|
41726
41813
|
backgroundColor: "transparent"
|
|
41727
41814
|
}
|
|
41728
|
-
})),
|
|
41815
|
+
})), dZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ N(uZ, {
|
|
41729
41816
|
variant: "standard",
|
|
41730
41817
|
label: e || "Label",
|
|
41731
41818
|
value: t,
|
|
@@ -41736,45 +41823,45 @@ var $X = j(me)(({ theme: e }) => ({
|
|
|
41736
41823
|
showErrorWhenOutsideRange: !0,
|
|
41737
41824
|
disableUnderline: !0
|
|
41738
41825
|
});
|
|
41739
|
-
|
|
41740
|
-
...
|
|
41826
|
+
dZ.propTypes = {
|
|
41827
|
+
...eZ,
|
|
41741
41828
|
suffix: H.default.string,
|
|
41742
41829
|
min: H.default.number,
|
|
41743
41830
|
max: H.default.number,
|
|
41744
41831
|
value: H.default.number
|
|
41745
|
-
},
|
|
41746
|
-
var
|
|
41832
|
+
}, lZ.propTypes = { ...eZ };
|
|
41833
|
+
var fZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ N(JX, {
|
|
41747
41834
|
label: t,
|
|
41748
41835
|
checked: !!n,
|
|
41749
41836
|
disabled: !!e,
|
|
41750
41837
|
toggle: r
|
|
41751
41838
|
});
|
|
41752
|
-
|
|
41753
|
-
...
|
|
41839
|
+
fZ.propTypes = {
|
|
41840
|
+
...eZ,
|
|
41754
41841
|
value: H.default.bool
|
|
41755
41842
|
};
|
|
41756
|
-
var
|
|
41757
|
-
toggle:
|
|
41758
|
-
radio:
|
|
41759
|
-
dropdown:
|
|
41760
|
-
numberField:
|
|
41761
|
-
checkbox:
|
|
41762
|
-
textField:
|
|
41763
|
-
},
|
|
41843
|
+
var pZ = {
|
|
41844
|
+
toggle: fZ,
|
|
41845
|
+
radio: iZ,
|
|
41846
|
+
dropdown: sZ,
|
|
41847
|
+
numberField: dZ,
|
|
41848
|
+
checkbox: tZ,
|
|
41849
|
+
textField: lZ
|
|
41850
|
+
}, mZ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), hZ = j("div")(({ theme: e }) => ({
|
|
41764
41851
|
color: "#495B8F",
|
|
41765
41852
|
fontSize: e.typography.fontSize + 2,
|
|
41766
41853
|
fontWeight: 600,
|
|
41767
41854
|
marginBottom: e.spacing(1)
|
|
41768
|
-
})),
|
|
41855
|
+
})), gZ = j("p")(({ theme: e }) => ({
|
|
41769
41856
|
fontSize: e.typography.fontSize,
|
|
41770
41857
|
marginBottom: 0
|
|
41771
|
-
})),
|
|
41858
|
+
})), _Z = (e) => {
|
|
41772
41859
|
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
41773
41860
|
let { isConfigProperty: o, ...s } = ot(e, r || n), c = ot(o ? i : t, n), l = {
|
|
41774
41861
|
...s,
|
|
41775
41862
|
key: n,
|
|
41776
41863
|
value: c
|
|
41777
|
-
}, u =
|
|
41864
|
+
}, u = pZ[l.type];
|
|
41778
41865
|
return /* @__PURE__ */ N(u, {
|
|
41779
41866
|
...l,
|
|
41780
41867
|
onChange: (e) => a(n, e, o)
|
|
@@ -41783,18 +41870,18 @@ var iZ = {
|
|
|
41783
41870
|
let n = e[t];
|
|
41784
41871
|
if (!n) return null;
|
|
41785
41872
|
let { type: r, label: i, fields: a, choices: s } = n;
|
|
41786
|
-
return r === "numberFields" ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
41873
|
+
return r === "numberFields" ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(gZ, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
|
|
41787
41874
|
};
|
|
41788
|
-
return /* @__PURE__ */ P(
|
|
41875
|
+
return /* @__PURE__ */ P(mZ, { children: [/* @__PURE__ */ N(hZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
41789
41876
|
};
|
|
41790
|
-
|
|
41877
|
+
_Z.propTypes = {
|
|
41791
41878
|
model: H.default.object,
|
|
41792
41879
|
label: H.default.string,
|
|
41793
41880
|
group: H.default.object,
|
|
41794
41881
|
configuration: H.default.object,
|
|
41795
41882
|
onChange: H.default.func
|
|
41796
41883
|
};
|
|
41797
|
-
var
|
|
41884
|
+
var vZ = class extends mt.Component {
|
|
41798
41885
|
static propTypes = {
|
|
41799
41886
|
model: H.default.object,
|
|
41800
41887
|
configuration: H.default.object,
|
|
@@ -41808,13 +41895,13 @@ var lZ = class extends mt.Component {
|
|
|
41808
41895
|
onChangeConfiguration: () => {}
|
|
41809
41896
|
};
|
|
41810
41897
|
change = (e, t, n = !1) => {
|
|
41811
|
-
|
|
41898
|
+
QX("[changeModel]", e, t);
|
|
41812
41899
|
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
|
|
41813
41900
|
n ? (ut(o, e, t), i(o, e)) : (ut(a, e, t), r(a, e));
|
|
41814
41901
|
};
|
|
41815
41902
|
render() {
|
|
41816
41903
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
41817
|
-
return
|
|
41904
|
+
return QX("render:", t), /* @__PURE__ */ P("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ N(_Z, {
|
|
41818
41905
|
label: r,
|
|
41819
41906
|
model: t,
|
|
41820
41907
|
configuration: n,
|
|
@@ -41822,59 +41909,59 @@ var lZ = class extends mt.Component {
|
|
|
41822
41909
|
onChange: this.change
|
|
41823
41910
|
}, r) : null), r] });
|
|
41824
41911
|
}
|
|
41825
|
-
},
|
|
41826
|
-
Panel: () =>
|
|
41827
|
-
checkbox: () =>
|
|
41828
|
-
checkboxes: () =>
|
|
41829
|
-
dropdown: () =>
|
|
41830
|
-
numberField: () =>
|
|
41831
|
-
numberFields: () =>
|
|
41832
|
-
radio: () =>
|
|
41833
|
-
textField: () =>
|
|
41834
|
-
toggle: () =>
|
|
41835
|
-
}),
|
|
41912
|
+
}, yZ = /* @__PURE__ */ WY({
|
|
41913
|
+
Panel: () => vZ,
|
|
41914
|
+
checkbox: () => DZ,
|
|
41915
|
+
checkboxes: () => OZ,
|
|
41916
|
+
dropdown: () => wZ,
|
|
41917
|
+
numberField: () => TZ,
|
|
41918
|
+
numberFields: () => EZ,
|
|
41919
|
+
radio: () => CZ,
|
|
41920
|
+
textField: () => bZ,
|
|
41921
|
+
toggle: () => xZ
|
|
41922
|
+
}), bZ = (e, t = !0) => ({
|
|
41836
41923
|
label: e,
|
|
41837
41924
|
type: "textField",
|
|
41838
41925
|
isConfigProperty: t
|
|
41839
|
-
}),
|
|
41926
|
+
}), xZ = (e, t = !1, n = !1) => ({
|
|
41840
41927
|
type: "toggle",
|
|
41841
41928
|
label: e,
|
|
41842
41929
|
isConfigProperty: t,
|
|
41843
41930
|
disabled: n
|
|
41844
|
-
}),
|
|
41931
|
+
}), SZ = (e) => typeof e == "string" ? {
|
|
41845
41932
|
label: e,
|
|
41846
41933
|
value: e
|
|
41847
|
-
} : e,
|
|
41934
|
+
} : e, CZ = function() {
|
|
41848
41935
|
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
41849
41936
|
return {
|
|
41850
41937
|
type: "radio",
|
|
41851
41938
|
label: e,
|
|
41852
|
-
choices: t && t.map((e) =>
|
|
41939
|
+
choices: t && t.map((e) => SZ(e)),
|
|
41853
41940
|
isConfigProperty: n
|
|
41854
41941
|
};
|
|
41855
|
-
},
|
|
41942
|
+
}, wZ = (e, t, n = !1) => ({
|
|
41856
41943
|
type: "dropdown",
|
|
41857
41944
|
label: e,
|
|
41858
41945
|
choices: t,
|
|
41859
41946
|
isConfigProperty: n
|
|
41860
|
-
}),
|
|
41947
|
+
}), TZ = (e, t, n = !1) => ({
|
|
41861
41948
|
...t,
|
|
41862
41949
|
label: e,
|
|
41863
41950
|
type: "numberField",
|
|
41864
41951
|
isConfigProperty: n
|
|
41865
|
-
}),
|
|
41866
|
-
t[e] =
|
|
41952
|
+
}), EZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
41953
|
+
t[e] = TZ(t[e].label, t[e], n);
|
|
41867
41954
|
}), {
|
|
41868
41955
|
type: "numberFields",
|
|
41869
41956
|
label: e,
|
|
41870
41957
|
fields: t
|
|
41871
|
-
}),
|
|
41958
|
+
}), DZ = (e, t, n = !1) => ({
|
|
41872
41959
|
...t,
|
|
41873
41960
|
label: e,
|
|
41874
41961
|
type: "checkbox",
|
|
41875
41962
|
isConfigProperty: n
|
|
41876
|
-
}),
|
|
41877
|
-
t[e] =
|
|
41963
|
+
}), OZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
41964
|
+
t[e] = DZ(t[e].label, t[e], n);
|
|
41878
41965
|
}), {
|
|
41879
41966
|
type: "checkboxes",
|
|
41880
41967
|
label: e,
|
|
@@ -41882,88 +41969,88 @@ var lZ = class extends mt.Component {
|
|
|
41882
41969
|
});
|
|
41883
41970
|
//#endregion
|
|
41884
41971
|
//#region ../../lib-react/config-ui/dist/index.js
|
|
41885
|
-
function
|
|
41972
|
+
function kZ(e) {
|
|
41886
41973
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
41887
41974
|
}
|
|
41888
|
-
function
|
|
41889
|
-
return !e ||
|
|
41975
|
+
function AZ(e, t) {
|
|
41976
|
+
return !e || kZ(e) ? e : kZ(e.default) ? e.default : t && kZ(e[t]) ? e[t] : t && kZ(e[t]?.default) ? e[t].default : e;
|
|
41890
41977
|
}
|
|
41891
|
-
var
|
|
41978
|
+
var jZ = AZ(pe, "InputContainer") || AZ(PZ.InputContainer, "InputContainer"), MZ = Be, NZ = MZ.default, PZ = NZ && typeof NZ == "object" ? NZ : MZ, FZ = m(/*#__PURE__*/ N("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), IZ = (e) => {
|
|
41892
41979
|
let { minAnswerChoices: t, maxAnswerChoices: n } = e;
|
|
41893
41980
|
return "Validation requirements:" + (`\nThere should be at least ${t} ` + (n ? `and at most ${n} ` : "") + "answer choices defined.\nEvery answer choice should be non-blank and unique.") + "\nA correct answer must be defined.";
|
|
41894
|
-
}, { Panel:
|
|
41981
|
+
}, { Panel: LZ, toggle: RZ, radio: zZ, dropdown: BZ } = yZ, VZ = 9, HZ = j(jZ)(({ theme: e }) => ({
|
|
41895
41982
|
width: "100%",
|
|
41896
41983
|
paddingTop: e.spacing(2),
|
|
41897
41984
|
marginBottom: e.spacing(2)
|
|
41898
|
-
})),
|
|
41985
|
+
})), UZ = j(jZ)(({ theme: e }) => ({
|
|
41899
41986
|
flex: 1,
|
|
41900
41987
|
marginTop: e.spacing(1.5),
|
|
41901
41988
|
paddingTop: e.spacing(2),
|
|
41902
41989
|
marginLeft: e.spacing(3.5)
|
|
41903
|
-
})),
|
|
41990
|
+
})), WZ = j(jZ)(({ theme: e }) => ({
|
|
41904
41991
|
display: "flex",
|
|
41905
41992
|
flexDirection: "column",
|
|
41906
41993
|
marginBottom: e.spacing(1),
|
|
41907
41994
|
width: "100%"
|
|
41908
|
-
})),
|
|
41995
|
+
})), GZ = j(l)(({ theme: e }) => ({
|
|
41909
41996
|
marginTop: e.spacing(1),
|
|
41910
41997
|
float: "right"
|
|
41911
|
-
})),
|
|
41998
|
+
})), KZ = j(GZ)({
|
|
41912
41999
|
cursor: "not-allowed",
|
|
41913
42000
|
pointerEvents: "all",
|
|
41914
42001
|
backgroundColor: g.disabled(),
|
|
41915
42002
|
"&:hover": { backgroundColor: g.disabled() },
|
|
41916
42003
|
"&:focus": { backgroundColor: g.disabled() }
|
|
41917
|
-
}),
|
|
42004
|
+
}), qZ = j(Pe)({
|
|
41918
42005
|
display: "flex",
|
|
41919
42006
|
alignItems: "center"
|
|
41920
|
-
}),
|
|
42007
|
+
}), JZ = j(me)(({ theme: e }) => ({
|
|
41921
42008
|
fontSize: e.typography.fontSize + 2,
|
|
41922
42009
|
marginRight: e.spacing(1)
|
|
41923
|
-
})),
|
|
42010
|
+
})), YZ = j(vJ)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
41924
42011
|
fontSize: e.typography.fontSize - 2,
|
|
41925
42012
|
whiteSpace: "pre",
|
|
41926
42013
|
maxWidth: "500px"
|
|
41927
|
-
} })),
|
|
42014
|
+
} })), XZ = j("div")(({ theme: e }) => ({
|
|
41928
42015
|
fontSize: e.typography.fontSize - 2,
|
|
41929
42016
|
color: e.palette.error.main,
|
|
41930
42017
|
paddingTop: e.spacing(1)
|
|
41931
|
-
})),
|
|
42018
|
+
})), ZZ = (e) => {
|
|
41932
42019
|
let { model: t, configuration: n, onPromptChanged: r, onChoiceChanged: i, onRemoveChoice: a, onAddChoice: o, imageSupport: s, uploadSoundSupport: c, onChangeModel: l, onConfigurationChanged: u, onTeacherInstructionsChanged: d } = e, { addChoiceButton: f = {}, contentDimensions: p = {}, feedback: m = {}, deleteChoice: h = {}, choiceMode: g = {}, choicePrefix: _ = {}, partialScoring: v = {}, lockChoiceOrder: y = {}, teacherInstructions: b = {}, studentInstructions: x = {}, rationale: S = {}, scoringType: C = {}, sequentialChoiceLabels: w = {}, settingsPanelDisabled: ee, choicesLayout: T, spellCheck: te = {}, gridColumns: ne, maxImageWidth: E = {}, maxImageHeight: re = {}, prompt: ie = {}, withRubric: ae = {}, mathMlOptions: oe = {}, language: D = {}, languageChoices: se = {} } = n || {}, { maxAnswerChoices: O } = n || {}, { limitChoicesNumber: ce, teacherInstructionsEnabled: le, rationaleEnabled: ue, feedbackEnabled: k, promptEnabled: de, spellCheckEnabled: fe, choices: pe, errors: me, toolbarEditorPosition: he, extraCSSRules: ge } = t || {}, { answerChoices: _e, choices: ve, correctResponse: ye, prompt: be, rationale: xe, teacherInstructions: Se } = me || {}, Ce = pe?.length ? Array.from({ length: pe.length }, (e, t) => `${t + 1}`) : [], { baseInputConfiguration: we = {} } = n, Te = { position: he === "top" ? "top" : "bottom" };
|
|
41933
|
-
ce && (O =
|
|
42020
|
+
ce && (O = VZ);
|
|
41934
42021
|
let Ee = (e = {}) => ({
|
|
41935
42022
|
...we,
|
|
41936
42023
|
...e
|
|
41937
|
-
}), A =
|
|
41938
|
-
choiceMode: g.settings &&
|
|
41939
|
-
"sequentialChoiceLabels.enabled": w.settings &&
|
|
41940
|
-
choicePrefix: _.settings &&
|
|
41941
|
-
partialScoring: v.settings &&
|
|
41942
|
-
lockChoiceOrder: y.settings &&
|
|
41943
|
-
feedbackEnabled: m.settings &&
|
|
41944
|
-
choicesLayout: T.settings &&
|
|
42024
|
+
}), A = IZ(n), De = E && E.prompt, Oe = re && re.prompt, ke = O && pe?.length >= O ? `Only ${O} allowed maximum` : "", Ae = {
|
|
42025
|
+
choiceMode: g.settings && zZ(g.label, ["checkbox", "radio"]),
|
|
42026
|
+
"sequentialChoiceLabels.enabled": w.settings && RZ(w.label, !0),
|
|
42027
|
+
choicePrefix: _.settings && zZ(_.label, ["numbers", "letters"]),
|
|
42028
|
+
partialScoring: v.settings && RZ(v.label),
|
|
42029
|
+
lockChoiceOrder: y.settings && RZ(y.label),
|
|
42030
|
+
feedbackEnabled: m.settings && RZ(m.label),
|
|
42031
|
+
choicesLayout: T.settings && BZ(T.label, [
|
|
41945
42032
|
"vertical",
|
|
41946
42033
|
"grid",
|
|
41947
42034
|
"horizontal"
|
|
41948
42035
|
]),
|
|
41949
|
-
gridColumns: T.settings && t.choicesLayout === "grid" && Ce.length > 0 &&
|
|
41950
|
-
"language.enabled": D.settings &&
|
|
41951
|
-
language: D.settings && D.enabled &&
|
|
42036
|
+
gridColumns: T.settings && t.choicesLayout === "grid" && Ce.length > 0 && BZ(ne.label, Ce),
|
|
42037
|
+
"language.enabled": D.settings && RZ(D.label, !0),
|
|
42038
|
+
language: D.settings && D.enabled && BZ(se.label, se.options)
|
|
41952
42039
|
}, je = {
|
|
41953
|
-
teacherInstructionsEnabled: b.settings &&
|
|
41954
|
-
studentInstructionsEnabled: x.settings &&
|
|
41955
|
-
promptEnabled: ie.settings &&
|
|
41956
|
-
rationaleEnabled: S.settings &&
|
|
41957
|
-
spellCheckEnabled: te.settings &&
|
|
41958
|
-
scoringType: C.settings &&
|
|
41959
|
-
rubricEnabled: ae?.settings &&
|
|
41960
|
-
};
|
|
41961
|
-
return /* @__PURE__ */ P(
|
|
42040
|
+
teacherInstructionsEnabled: b.settings && RZ(b.label),
|
|
42041
|
+
studentInstructionsEnabled: x.settings && RZ(x.label),
|
|
42042
|
+
promptEnabled: ie.settings && RZ(ie.label),
|
|
42043
|
+
rationaleEnabled: S.settings && RZ(S.label),
|
|
42044
|
+
spellCheckEnabled: te.settings && RZ(te.label),
|
|
42045
|
+
scoringType: C.settings && zZ(C.label, ["auto", "rubric"]),
|
|
42046
|
+
rubricEnabled: ae?.settings && RZ(ae?.label)
|
|
42047
|
+
};
|
|
42048
|
+
return /* @__PURE__ */ P(VX.ConfigLayout, {
|
|
41962
42049
|
dimensions: p,
|
|
41963
42050
|
hideSettings: ee,
|
|
41964
42051
|
extraCSSRules: ge,
|
|
41965
42052
|
classes: {},
|
|
41966
|
-
settings: /* @__PURE__ */ N(
|
|
42053
|
+
settings: /* @__PURE__ */ N(LZ, {
|
|
41967
42054
|
model: t,
|
|
41968
42055
|
onChangeModel: l,
|
|
41969
42056
|
configuration: n,
|
|
@@ -41974,9 +42061,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
41974
42061
|
}
|
|
41975
42062
|
}),
|
|
41976
42063
|
children: [
|
|
41977
|
-
le && /* @__PURE__ */ P(
|
|
42064
|
+
le && /* @__PURE__ */ P(HZ, {
|
|
41978
42065
|
label: b.label,
|
|
41979
|
-
children: [/* @__PURE__ */ N(
|
|
42066
|
+
children: [/* @__PURE__ */ N($q, {
|
|
41980
42067
|
markup: t.teacherInstructions || "",
|
|
41981
42068
|
onChange: d,
|
|
41982
42069
|
imageSupport: s,
|
|
@@ -41991,11 +42078,11 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
41991
42078
|
uploadSoundSupport: c,
|
|
41992
42079
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
41993
42080
|
mathMlOptions: oe
|
|
41994
|
-
}), Se && /* @__PURE__ */ N(
|
|
42081
|
+
}), Se && /* @__PURE__ */ N(XZ, { children: Se })]
|
|
41995
42082
|
}),
|
|
41996
|
-
de && /* @__PURE__ */ P(
|
|
42083
|
+
de && /* @__PURE__ */ P(HZ, {
|
|
41997
42084
|
label: ie.label,
|
|
41998
|
-
children: [/* @__PURE__ */ N(
|
|
42085
|
+
children: [/* @__PURE__ */ N($q, {
|
|
41999
42086
|
markup: t.prompt,
|
|
42000
42087
|
onChange: r,
|
|
42001
42088
|
imageSupport: s,
|
|
@@ -42010,22 +42097,22 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42010
42097
|
uploadSoundSupport: c,
|
|
42011
42098
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42012
42099
|
mathMlOptions: oe
|
|
42013
|
-
}), be && /* @__PURE__ */ N(
|
|
42100
|
+
}), be && /* @__PURE__ */ N(XZ, { children: be })]
|
|
42014
42101
|
}),
|
|
42015
|
-
/* @__PURE__ */ P(
|
|
42102
|
+
/* @__PURE__ */ P(qZ, { children: [/* @__PURE__ */ N(JZ, {
|
|
42016
42103
|
component: "div",
|
|
42017
42104
|
children: "Choices"
|
|
42018
|
-
}), /* @__PURE__ */ N(
|
|
42105
|
+
}), /* @__PURE__ */ N(YZ, {
|
|
42019
42106
|
disableFocusListener: !0,
|
|
42020
42107
|
disableTouchListener: !0,
|
|
42021
42108
|
placement: "right",
|
|
42022
42109
|
title: A,
|
|
42023
|
-
children: /* @__PURE__ */ N(
|
|
42110
|
+
children: /* @__PURE__ */ N(FZ, {
|
|
42024
42111
|
fontSize: "small",
|
|
42025
42112
|
color: "primary"
|
|
42026
42113
|
})
|
|
42027
42114
|
})] }),
|
|
42028
|
-
pe.map((e, r) => /* @__PURE__ */ P(
|
|
42115
|
+
pe.map((e, r) => /* @__PURE__ */ P(WZ, { children: [/* @__PURE__ */ N(HY, {
|
|
42029
42116
|
index: r + 1,
|
|
42030
42117
|
useLetterOrdering: t.choicePrefix === "letters",
|
|
42031
42118
|
mode: t.choiceMode,
|
|
@@ -42047,9 +42134,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42047
42134
|
maxImageHeight: re && re.choices || Oe,
|
|
42048
42135
|
uploadSoundSupport: c,
|
|
42049
42136
|
mathMlOptions: oe
|
|
42050
|
-
}, r), ue && /* @__PURE__ */ P(
|
|
42137
|
+
}, r), ue && /* @__PURE__ */ P(UZ, {
|
|
42051
42138
|
label: S.label,
|
|
42052
|
-
children: [/* @__PURE__ */ N(
|
|
42139
|
+
children: [/* @__PURE__ */ N($q, {
|
|
42053
42140
|
markup: e.rationale || "",
|
|
42054
42141
|
onChange: (t) => i(r, {
|
|
42055
42142
|
...e,
|
|
@@ -42065,19 +42152,19 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42065
42152
|
uploadSoundSupport: c,
|
|
42066
42153
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42067
42154
|
mathMlOptions: oe
|
|
42068
|
-
}), xe?.[e.value] && /* @__PURE__ */ N(
|
|
42155
|
+
}), xe?.[e.value] && /* @__PURE__ */ N(XZ, { children: xe?.[e.value] })]
|
|
42069
42156
|
}, `rationale-${r}`)] }, `choice-${r}`)),
|
|
42070
|
-
ye && /* @__PURE__ */ N(
|
|
42071
|
-
_e && /* @__PURE__ */ N(
|
|
42072
|
-
f.settings && /* @__PURE__ */ N(
|
|
42157
|
+
ye && /* @__PURE__ */ N(XZ, { children: ye }),
|
|
42158
|
+
_e && /* @__PURE__ */ N(XZ, { children: _e }),
|
|
42159
|
+
f.settings && /* @__PURE__ */ N(YZ, {
|
|
42073
42160
|
title: ke,
|
|
42074
|
-
children: O && pe?.length >= O ? /* @__PURE__ */ N(
|
|
42161
|
+
children: O && pe?.length >= O ? /* @__PURE__ */ N(KZ, {
|
|
42075
42162
|
variant: "contained",
|
|
42076
42163
|
color: "primary",
|
|
42077
42164
|
onClick: o,
|
|
42078
42165
|
disabled: !0,
|
|
42079
42166
|
children: f.label
|
|
42080
|
-
}) : /* @__PURE__ */ N(
|
|
42167
|
+
}) : /* @__PURE__ */ N(GZ, {
|
|
42081
42168
|
variant: "contained",
|
|
42082
42169
|
color: "primary",
|
|
42083
42170
|
onClick: o,
|
|
@@ -42086,7 +42173,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42086
42173
|
})
|
|
42087
42174
|
]
|
|
42088
42175
|
});
|
|
42089
|
-
},
|
|
42176
|
+
}, QZ = class extends mt.Component {
|
|
42090
42177
|
static propTypes = {
|
|
42091
42178
|
model: H.default.object.isRequired,
|
|
42092
42179
|
configuration: H.default.object.isRequired,
|
|
@@ -42109,9 +42196,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42109
42196
|
};
|
|
42110
42197
|
onAddChoice = () => {
|
|
42111
42198
|
let { model: e, configuration: t, onModelChanged: n } = this.props, { maxAnswerChoices: r } = t || {}, { limitChoicesNumber: i } = e || {};
|
|
42112
|
-
i && (r =
|
|
42199
|
+
i && (r = VZ), !(r && e.choices.length >= r) && (e.choices.push({
|
|
42113
42200
|
label: "",
|
|
42114
|
-
value:
|
|
42201
|
+
value: HX.firstAvailableIndex(e.choices.map((e) => e.value), 0),
|
|
42115
42202
|
feedback: { type: "none" }
|
|
42116
42203
|
}), n({ choices: e.choices }));
|
|
42117
42204
|
};
|
|
@@ -42145,12 +42232,12 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42145
42232
|
};
|
|
42146
42233
|
render() {
|
|
42147
42234
|
let { configuration: { minAnswerChoices: e } = {} } = this.props, { showWarning: t } = this.state;
|
|
42148
|
-
return /* @__PURE__ */ P(mt.Fragment, { children: [/* @__PURE__ */ N(
|
|
42235
|
+
return /* @__PURE__ */ P(mt.Fragment, { children: [/* @__PURE__ */ N(kJ, {
|
|
42149
42236
|
open: t,
|
|
42150
42237
|
title: "Warning",
|
|
42151
42238
|
text: `There can't be less than ${e || 0} choices.`,
|
|
42152
42239
|
onConfirm: () => this.setState({ showWarning: !1 })
|
|
42153
|
-
}), /* @__PURE__ */ N(
|
|
42240
|
+
}), /* @__PURE__ */ N(ZZ, {
|
|
42154
42241
|
...this.props,
|
|
42155
42242
|
onChangeModel: this.onModelChanged,
|
|
42156
42243
|
onRemoveChoice: this.onRemoveChoice,
|
|
@@ -42160,7 +42247,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42160
42247
|
onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
|
|
42161
42248
|
})] });
|
|
42162
42249
|
}
|
|
42163
|
-
},
|
|
42250
|
+
}, $Z = {
|
|
42164
42251
|
model: {
|
|
42165
42252
|
choiceMode: "checkbox",
|
|
42166
42253
|
choicePrefix: "letters",
|
|
@@ -42307,7 +42394,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42307
42394
|
options: []
|
|
42308
42395
|
}
|
|
42309
42396
|
}
|
|
42310
|
-
},
|
|
42397
|
+
}, eQ = (0, Pt.default)("multiple-choice:configure"), tQ = (e, t = 0) => {
|
|
42311
42398
|
if (!e || e.length === 0) {
|
|
42312
42399
|
let e = [];
|
|
42313
42400
|
for (let n = 0; n < t; n++) e.push({
|
|
@@ -42321,35 +42408,35 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42321
42408
|
return e;
|
|
42322
42409
|
}
|
|
42323
42410
|
return e;
|
|
42324
|
-
},
|
|
42325
|
-
let n = rt(e,
|
|
42411
|
+
}, nQ = (e, t) => {
|
|
42412
|
+
let n = rt(e, $Z.configuration);
|
|
42326
42413
|
return {
|
|
42327
42414
|
configuration: n,
|
|
42328
42415
|
model: {
|
|
42329
42416
|
...t,
|
|
42330
|
-
choices:
|
|
42417
|
+
choices: tQ(t && t.choices || [], n && n.answerChoiceCount)
|
|
42331
42418
|
}
|
|
42332
42419
|
};
|
|
42333
|
-
},
|
|
42420
|
+
}, rQ = class e extends HTMLElement {
|
|
42334
42421
|
static createDefaultModel = (e = {}) => {
|
|
42335
|
-
let t =
|
|
42336
|
-
|
|
42422
|
+
let t = HX.normalizeChoices({
|
|
42423
|
+
...$Z.model,
|
|
42337
42424
|
...e,
|
|
42338
|
-
choices:
|
|
42425
|
+
choices: tQ(e && e.choices || [])
|
|
42339
42426
|
});
|
|
42340
|
-
return t.choicesLayout = e.choicesLayout || e.verticalMode === !1 && "horizontal" ||
|
|
42427
|
+
return t.choicesLayout = e.choicesLayout || e.verticalMode === !1 && "horizontal" || $Z.model.choicesLayout, t;
|
|
42341
42428
|
};
|
|
42342
42429
|
constructor() {
|
|
42343
|
-
super(), this._root = null, this._reactContainer = null, this._model = e.createDefaultModel(), this._configuration =
|
|
42430
|
+
super(), this._root = null, this._reactContainer = null, this._model = e.createDefaultModel(), this._configuration = $Z.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
42344
42431
|
}
|
|
42345
42432
|
set model(t) {
|
|
42346
42433
|
this._model = e.createDefaultModel(t), this._render();
|
|
42347
42434
|
}
|
|
42348
42435
|
set configuration(e) {
|
|
42349
|
-
let t =
|
|
42436
|
+
let t = nQ(e, this._model);
|
|
42350
42437
|
this.onModelChanged(t.model);
|
|
42351
42438
|
let n = {
|
|
42352
|
-
|
|
42439
|
+
...$Z.configuration,
|
|
42353
42440
|
...t.configuration
|
|
42354
42441
|
};
|
|
42355
42442
|
this._configuration = n, n?.language?.enabled ? n?.languageChoices?.options?.length && (this._model.language = n?.languageChoices.options[0].value) : n.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
|
|
@@ -42371,7 +42458,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42371
42458
|
}, this._render(), this.dispatchModelUpdated(t);
|
|
42372
42459
|
}
|
|
42373
42460
|
onConfigurationChanged(e) {
|
|
42374
|
-
this._configuration =
|
|
42461
|
+
this._configuration = nQ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
|
|
42375
42462
|
}
|
|
42376
42463
|
insertImage(e) {
|
|
42377
42464
|
this.dispatchEvent(new Lt(e));
|
|
@@ -42386,9 +42473,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42386
42473
|
this.dispatchEvent(new Rt(e, t));
|
|
42387
42474
|
}
|
|
42388
42475
|
_render() {
|
|
42389
|
-
|
|
42476
|
+
eQ("_render - Starting render"), eQ("_render - Model:", this._model ? "present" : "missing"), eQ("_render - Configuration:", this._configuration ? "present" : "missing"), eQ("_render - Root exists:", !!this._root);
|
|
42390
42477
|
try {
|
|
42391
|
-
let e = mt.createElement(
|
|
42478
|
+
let e = mt.createElement(QZ, {
|
|
42392
42479
|
model: this._model,
|
|
42393
42480
|
configuration: this._configuration,
|
|
42394
42481
|
onModelChanged: this.onModelChanged,
|
|
@@ -42403,19 +42490,19 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42403
42490
|
delete: this.onDeleteSound.bind(this)
|
|
42404
42491
|
}
|
|
42405
42492
|
});
|
|
42406
|
-
this._root || (
|
|
42493
|
+
this._root || (eQ("_render - Creating React container"), this._reactContainer = document.createElement("div"), this._reactContainer.className = "pie-configure-wrapper", this.appendChild(this._reactContainer), eQ("_render - Creating new React root"), this._root = Nt(this._reactContainer), eQ("_render - React root created successfully")), eQ("_render - Calling root.render()"), this._root.render(e), eQ("_render - Render completed successfully");
|
|
42407
42494
|
} catch (e) {
|
|
42408
42495
|
throw console.error("❌ [multiple-choice-configure] Render error:", e), console.error("Error stack:", e.stack), e;
|
|
42409
42496
|
}
|
|
42410
42497
|
}
|
|
42411
42498
|
connectedCallback() {
|
|
42412
|
-
|
|
42499
|
+
eQ("connectedCallback - Component connected to DOM"), eQ("connectedCallback - Model:", this._model ? "present" : "missing"), eQ("connectedCallback - Configuration:", this._configuration ? "present" : "missing"), this._render();
|
|
42413
42500
|
}
|
|
42414
42501
|
disconnectedCallback() {
|
|
42415
|
-
|
|
42502
|
+
eQ("disconnectedCallback - Component disconnected from DOM"), this._root &&= (eQ("disconnectedCallback - Unmounting React root"), this._root.unmount(), null), this._reactContainer &&= null;
|
|
42416
42503
|
}
|
|
42417
42504
|
};
|
|
42418
42505
|
//#endregion
|
|
42419
|
-
export {
|
|
42506
|
+
export { rQ as default };
|
|
42420
42507
|
|
|
42421
42508
|
//# sourceMappingURL=index.js.map
|