@pie-element/multiple-choice 13.3.5-next.2 → 13.3.5-next.4
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/{Radio-IHruwm6F.js → Radio-xWBQ-YBe.js} +1722 -1720
- package/dist/browser/Radio-xWBQ-YBe.js.map +1 -0
- package/dist/browser/author/index.js +827 -719
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{main-CjNrr_6E.js → main-wyY_k9tD.js} +2 -2
- package/dist/browser/{main-CjNrr_6E.js.map → main-wyY_k9tD.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/index.iife.js +21 -21
- package/module/print.js +17954 -0
- package/module/print.js.map +1 -0
- package/package.json +6 -6
- package/dist/browser/Radio-IHruwm6F.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, Ft as f, G as p, H as m, I as h, It as g, J as _, K as v, L as y, Lt as b, M as x, Mt as S, N as C, Nt as w, O as ee, Ot as T, P as te, Pt as ne, Q as E, R as re, Rt as ie, S as ae, St as oe, T as D, Tt as se, U as O, V as ce, Vt as le, W as ue, X as k, Y as de, Z as fe, _ as pe, a as me, at as he, b as ge, bt as _e, c as ve, ct as ye, d as be, dt as xe, et as Se, f as Ce, ft as we, i as Te, it as Ee, jt as A, k as De, kt as Oe, l as ke, lt as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, wt as Je, x as Ye, xt as Xe, y as Ze, yt as j, z as Qe, zt as $e } from "../Radio-
|
|
1
|
+
import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, Ft as f, G as p, H as m, I as h, It as g, J as _, K as v, L as y, Lt as b, M as x, Mt as S, N as C, Nt as w, O as ee, Ot as T, P as te, Pt as ne, Q as E, R as re, Rt as ie, S as ae, St as oe, T as D, Tt as se, U as O, V as ce, Vt as le, W as ue, X as k, Y as de, Z as fe, _ as pe, a as me, at as he, b as ge, bt as _e, c as ve, ct as ye, d as be, dt as xe, et as Se, f as Ce, ft as we, i as Te, it as Ee, jt as A, k as De, kt as Oe, l as ke, lt as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, wt as Je, x as Ye, xt as Xe, y as Ze, yt as j, z as Qe, zt as $e } from "../Radio-xWBQ-YBe.js";
|
|
2
2
|
import { a as et, c as tt, d as nt, f as rt, h as it, i as at, m as ot, n as st, o as ct, p as lt, r as ut, s as dt, t as ft, u as pt } from "../dist-CHbLnyuX.js";
|
|
3
3
|
import * as M from "react";
|
|
4
4
|
import mt, { Component as ht, createContext as gt, createElement as _t, createRef as vt, forwardRef as yt, memo as bt, useCallback as xt, useContext as St, useDebugValue as Ct, useEffect as wt, useLayoutEffect as Tt, useMemo as Et, useRef as Dt, useState as Ot, version as kt } from "react";
|
|
@@ -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 {
|
|
@@ -39272,34 +39339,55 @@ var Mq = zm.create({
|
|
|
39272
39339
|
},
|
|
39273
39340
|
addNodeView() {
|
|
39274
39341
|
if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
|
|
39275
|
-
let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize
|
|
39276
|
-
|
|
39277
|
-
|
|
39278
|
-
|
|
39342
|
+
let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
|
|
39343
|
+
"src",
|
|
39344
|
+
"width",
|
|
39345
|
+
"height"
|
|
39346
|
+
]);
|
|
39347
|
+
return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
|
|
39348
|
+
let l = document.createElement("img");
|
|
39349
|
+
l.draggable = !1;
|
|
39350
|
+
let u = Dp(this.options.HTMLAttributes, s);
|
|
39351
|
+
Object.entries(u).forEach(([e, t]) => {
|
|
39279
39352
|
if (t != null) switch (e) {
|
|
39353
|
+
case "src":
|
|
39280
39354
|
case "width":
|
|
39281
39355
|
case "height": break;
|
|
39282
|
-
default:
|
|
39283
|
-
c.setAttribute(e, t);
|
|
39284
|
-
break;
|
|
39356
|
+
default: l.setAttribute(e, t);
|
|
39285
39357
|
}
|
|
39286
|
-
}),
|
|
39287
|
-
let
|
|
39288
|
-
|
|
39289
|
-
|
|
39290
|
-
|
|
39291
|
-
|
|
39358
|
+
}), u.src !== null && (l.src = u.src);
|
|
39359
|
+
let d = { ...s }, f = (e) => {
|
|
39360
|
+
if (typeof e == "string" && e !== "") {
|
|
39361
|
+
l.getAttribute("src") !== e && (l.src = e);
|
|
39362
|
+
return;
|
|
39363
|
+
}
|
|
39364
|
+
l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
|
|
39365
|
+
};
|
|
39366
|
+
f(s.src);
|
|
39367
|
+
let p = new fh({
|
|
39368
|
+
element: l,
|
|
39369
|
+
editor: c,
|
|
39370
|
+
node: a,
|
|
39371
|
+
getPos: o,
|
|
39292
39372
|
onResize: (e, t) => {
|
|
39293
|
-
|
|
39373
|
+
l.style.width = `${e}px`, l.style.height = `${t}px`;
|
|
39294
39374
|
},
|
|
39295
39375
|
onCommit: (e, t) => {
|
|
39296
|
-
let n =
|
|
39376
|
+
let n = o();
|
|
39297
39377
|
n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
|
|
39298
39378
|
width: e,
|
|
39299
39379
|
height: t
|
|
39300
39380
|
}).run();
|
|
39301
39381
|
},
|
|
39302
|
-
onUpdate: (e
|
|
39382
|
+
onUpdate: (e) => {
|
|
39383
|
+
if (e.type !== a.type) return !1;
|
|
39384
|
+
let t = Op(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
|
|
39385
|
+
return Object.keys(d).forEach((e) => {
|
|
39386
|
+
!i.has(e) && !(e in t) && l.removeAttribute(e);
|
|
39387
|
+
}), Object.entries(t).forEach(([e, t]) => {
|
|
39388
|
+
i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
|
|
39389
|
+
}), f(t.src), d = t, !0;
|
|
39390
|
+
},
|
|
39303
39391
|
options: {
|
|
39304
39392
|
directions: e,
|
|
39305
39393
|
min: {
|
|
@@ -39308,10 +39396,10 @@ var Mq = zm.create({
|
|
|
39308
39396
|
},
|
|
39309
39397
|
preserveAspectRatio: r === !0
|
|
39310
39398
|
}
|
|
39311
|
-
}),
|
|
39312
|
-
|
|
39313
|
-
|
|
39314
|
-
|
|
39399
|
+
}), m = p.dom, h = () => {
|
|
39400
|
+
m.style.visibility = "", m.style.pointerEvents = "";
|
|
39401
|
+
};
|
|
39402
|
+
return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
|
|
39315
39403
|
};
|
|
39316
39404
|
},
|
|
39317
39405
|
addCommands() {
|
|
@@ -39322,7 +39410,7 @@ var Mq = zm.create({
|
|
|
39322
39410
|
},
|
|
39323
39411
|
addInputRules() {
|
|
39324
39412
|
return [lh({
|
|
39325
|
-
find:
|
|
39413
|
+
find: Uq,
|
|
39326
39414
|
type: this.type,
|
|
39327
39415
|
getAttributes: (e) => {
|
|
39328
39416
|
let [, , t, n, r] = e;
|
|
@@ -39334,17 +39422,17 @@ var Mq = zm.create({
|
|
|
39334
39422
|
}
|
|
39335
39423
|
})];
|
|
39336
39424
|
}
|
|
39337
|
-
}),
|
|
39425
|
+
}), Gq = Pq, Kq = {
|
|
39338
39426
|
position: "bottom",
|
|
39339
39427
|
alignment: "left",
|
|
39340
39428
|
alwaysVisible: !1,
|
|
39341
39429
|
showDone: !0,
|
|
39342
39430
|
doneOn: "blur"
|
|
39343
|
-
},
|
|
39431
|
+
}, qq = {
|
|
39344
39432
|
options: {},
|
|
39345
39433
|
respAreaToolbar: () => {},
|
|
39346
39434
|
onHandleAreaChange: () => {}
|
|
39347
|
-
},
|
|
39435
|
+
}, Jq = [
|
|
39348
39436
|
"bold",
|
|
39349
39437
|
"italic",
|
|
39350
39438
|
"underline",
|
|
@@ -39366,7 +39454,7 @@ var Mq = zm.create({
|
|
|
39366
39454
|
"h3",
|
|
39367
39455
|
"undo",
|
|
39368
39456
|
"redo"
|
|
39369
|
-
],
|
|
39457
|
+
], Yq = {
|
|
39370
39458
|
"--white": "#fff",
|
|
39371
39459
|
"--black": "#2e2b29",
|
|
39372
39460
|
"--black-contrast": "#110f0e",
|
|
@@ -39385,14 +39473,18 @@ var Mq = zm.create({
|
|
|
39385
39473
|
"--red": "#ff5c33",
|
|
39386
39474
|
"--red-light": "#ffebe5",
|
|
39387
39475
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
39388
|
-
},
|
|
39476
|
+
}, Xq = (e) => ({
|
|
39477
|
+
spellcheck: e ? "true" : "false",
|
|
39478
|
+
autocorrect: e ? "on" : "off",
|
|
39479
|
+
autocapitalize: e ? "on" : "off"
|
|
39480
|
+
}), Zq = (e) => {
|
|
39389
39481
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Ot([]), [a, o] = Ot(!1), { toolbarOpts: s } = e, c = xt((e) => {
|
|
39390
39482
|
i((t) => {
|
|
39391
39483
|
let n = t.filter((t) => t.pos !== e);
|
|
39392
39484
|
return n.length === 0 && o(!1), n;
|
|
39393
39485
|
});
|
|
39394
39486
|
}, [i]), l = {
|
|
39395
|
-
...
|
|
39487
|
+
...Kq,
|
|
39396
39488
|
...s
|
|
39397
39489
|
}, u = xt((t) => {
|
|
39398
39490
|
let n = t.getHTML();
|
|
@@ -39403,13 +39495,13 @@ var Mq = zm.create({
|
|
|
39403
39495
|
e.onDone,
|
|
39404
39496
|
l.doneOn
|
|
39405
39497
|
]), d = Et(() => ({
|
|
39406
|
-
...
|
|
39498
|
+
...qq,
|
|
39407
39499
|
...e.responseAreaProps,
|
|
39408
39500
|
onInlineDropdownToolbarClose: u
|
|
39409
39501
|
}), [e.responseAreaProps, u]), f = Et(() => {
|
|
39410
39502
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
39411
39503
|
t ||= [];
|
|
39412
|
-
let r = (e.activePlugins ||
|
|
39504
|
+
let r = (e.activePlugins || Jq)?.filter((e) => {
|
|
39413
39505
|
let t = Ht[e] || e, r = n[t] || {};
|
|
39414
39506
|
return !r || !r.disabled;
|
|
39415
39507
|
});
|
|
@@ -39427,103 +39519,112 @@ var Mq = zm.create({
|
|
|
39427
39519
|
setKeypadInteraction: {},
|
|
39428
39520
|
media: {}
|
|
39429
39521
|
});
|
|
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
|
-
|
|
39522
|
+
}, [e, d.type]), p = [
|
|
39523
|
+
Hq.configure({
|
|
39524
|
+
types: [
|
|
39525
|
+
"heading",
|
|
39526
|
+
"paragraph",
|
|
39527
|
+
"div",
|
|
39528
|
+
"headingParagraph",
|
|
39529
|
+
"h1",
|
|
39530
|
+
"h2",
|
|
39531
|
+
"h3",
|
|
39532
|
+
"h4",
|
|
39533
|
+
"h5",
|
|
39534
|
+
"h6",
|
|
39535
|
+
"td",
|
|
39536
|
+
"th"
|
|
39537
|
+
],
|
|
39538
|
+
alignments: [
|
|
39539
|
+
"left",
|
|
39540
|
+
"right",
|
|
39541
|
+
"center",
|
|
39542
|
+
"justify"
|
|
39543
|
+
]
|
|
39544
|
+
}),
|
|
39545
|
+
hq,
|
|
39546
|
+
gq.configure({ limit: e.charactersLimit || 1e6 }),
|
|
39547
|
+
aq.configure({
|
|
39548
|
+
trailingNode: {
|
|
39457
39549
|
node: "paragraph",
|
|
39458
39550
|
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
|
-
|
|
39551
|
+
},
|
|
39552
|
+
link: {
|
|
39553
|
+
autolink: !1,
|
|
39554
|
+
linkOnPaste: !1
|
|
39555
|
+
}
|
|
39556
|
+
}),
|
|
39557
|
+
oI,
|
|
39558
|
+
tS,
|
|
39559
|
+
sI,
|
|
39560
|
+
nS,
|
|
39561
|
+
rS,
|
|
39562
|
+
Gq.configure({
|
|
39563
|
+
placeholder: e.placeholder,
|
|
39564
|
+
showOnlyWhenEditable: !0,
|
|
39565
|
+
showOnlyCurrent: !1,
|
|
39566
|
+
includeChildren: !0
|
|
39567
|
+
}),
|
|
39568
|
+
Zx,
|
|
39569
|
+
Fx,
|
|
39570
|
+
eS,
|
|
39571
|
+
$x,
|
|
39572
|
+
FA.configure(d),
|
|
39573
|
+
IA.configure(d),
|
|
39574
|
+
RA.configure(d),
|
|
39575
|
+
zA.configure(d),
|
|
39576
|
+
LA.configure(d),
|
|
39577
|
+
qM.configure({
|
|
39578
|
+
toolbarOpts: l,
|
|
39579
|
+
math: e.pluginProps?.math || {}
|
|
39580
|
+
}),
|
|
39581
|
+
Vq,
|
|
39582
|
+
Bq,
|
|
39583
|
+
Wq,
|
|
39584
|
+
aP.configure({
|
|
39585
|
+
toolbarOpts: l,
|
|
39586
|
+
imageHandling: {
|
|
39587
|
+
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
39588
|
+
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
39589
|
+
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
39590
|
+
let { src: n } = t.attrs;
|
|
39591
|
+
e.imageSupport.delete(n, (e) => {
|
|
39592
|
+
c(t.pos);
|
|
39593
|
+
});
|
|
39594
|
+
}),
|
|
39595
|
+
insertImageRequested: e.imageSupport && ((t, n, r) => {
|
|
39596
|
+
let [o, s] = n, l = (n) => {
|
|
39597
|
+
let r;
|
|
39598
|
+
a && n && (r = e.onChange), c(s), r?.(t.getHTML());
|
|
39599
|
+
};
|
|
39600
|
+
t._insertingImage = !0, i((e) => [...e, o]), (() => {
|
|
39601
|
+
let n = r(l), i = tt(() => {
|
|
39602
|
+
let e = () => window.removeEventListener("focus", i);
|
|
39603
|
+
if (!t._insertingImage) {
|
|
39604
|
+
e();
|
|
39605
|
+
return;
|
|
39606
|
+
}
|
|
39607
|
+
c(s), t._insertingImage = !1, e();
|
|
39608
|
+
}, 500);
|
|
39609
|
+
window.addEventListener("focus", i), e.imageSupport.add(n);
|
|
39610
|
+
})();
|
|
39611
|
+
}),
|
|
39612
|
+
maxImageWidth: e.maxImageWidth,
|
|
39613
|
+
maxImageHeight: e.maxImageHeight
|
|
39614
|
+
},
|
|
39615
|
+
limit: 3
|
|
39616
|
+
}),
|
|
39617
|
+
cF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
39618
|
+
TF.configure({ extraCSSRules: e.extraCSSRules })
|
|
39619
|
+
], m = e.spellCheck !== !1, h = FC({
|
|
39620
|
+
extensions: p,
|
|
39523
39621
|
immediatelyRender: !1,
|
|
39524
|
-
editorProps: {
|
|
39525
|
-
|
|
39526
|
-
|
|
39622
|
+
editorProps: {
|
|
39623
|
+
attributes: Xq(m),
|
|
39624
|
+
handleKeyDown(t, n) {
|
|
39625
|
+
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
39626
|
+
}
|
|
39627
|
+
},
|
|
39527
39628
|
editable: !e.disabled,
|
|
39528
39629
|
content: qt(e.markup),
|
|
39529
39630
|
onUpdate: ({ editor: t, transaction: n }) => {
|
|
@@ -39534,22 +39635,29 @@ var Mq = zm.create({
|
|
|
39534
39635
|
}
|
|
39535
39636
|
}, [e.charactersLimit]);
|
|
39536
39637
|
wt(() => {
|
|
39537
|
-
e.editorRef && e.editorRef(
|
|
39538
|
-
}, [e.editorRef,
|
|
39539
|
-
|
|
39540
|
-
}, [e.disabled,
|
|
39541
|
-
if (!
|
|
39638
|
+
e.editorRef && e.editorRef(h);
|
|
39639
|
+
}, [e.editorRef, h]), wt(() => {
|
|
39640
|
+
h?.setEditable(!e.disabled);
|
|
39641
|
+
}, [e.disabled, h]), wt(() => {
|
|
39642
|
+
if (!h) return;
|
|
39643
|
+
let e = h.options?.editorProps, t = Xq(m);
|
|
39644
|
+
e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
|
|
39645
|
+
...e,
|
|
39646
|
+
attributes: t
|
|
39647
|
+
} });
|
|
39648
|
+
}, [m, h]), wt(() => {
|
|
39649
|
+
if (!h) return;
|
|
39542
39650
|
let t = qt(e.markup);
|
|
39543
|
-
t !==
|
|
39544
|
-
}, [e.markup,
|
|
39545
|
-
Object.entries(
|
|
39651
|
+
t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
|
|
39652
|
+
}, [e.markup, h]), wt(() => {
|
|
39653
|
+
Object.entries(Yq).forEach(([e, t]) => {
|
|
39546
39654
|
document.documentElement.style.setProperty(e, t);
|
|
39547
39655
|
});
|
|
39548
39656
|
}, []);
|
|
39549
|
-
let
|
|
39550
|
-
editor:
|
|
39657
|
+
let g = jC({
|
|
39658
|
+
editor: h,
|
|
39551
39659
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
39552
|
-
}),
|
|
39660
|
+
}), _ = Et(() => {
|
|
39553
39661
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
39554
39662
|
return {
|
|
39555
39663
|
width: cI(n),
|
|
@@ -39564,20 +39672,20 @@ var Mq = zm.create({
|
|
|
39564
39672
|
...e,
|
|
39565
39673
|
activePlugins: f,
|
|
39566
39674
|
toolbarOpts: l,
|
|
39567
|
-
editorState:
|
|
39568
|
-
editor:
|
|
39569
|
-
children:
|
|
39675
|
+
editorState: g,
|
|
39676
|
+
editor: h,
|
|
39677
|
+
children: h && /* @__PURE__ */ N(Qq, {
|
|
39570
39678
|
style: {
|
|
39571
|
-
minHeight:
|
|
39572
|
-
height:
|
|
39573
|
-
maxHeight:
|
|
39679
|
+
minHeight: _.minHeight,
|
|
39680
|
+
height: _.height,
|
|
39681
|
+
maxHeight: _.maxHeight
|
|
39574
39682
|
},
|
|
39575
39683
|
showParagraph: t && !t.disabled,
|
|
39576
39684
|
separateParagraph: n && !n.disabled,
|
|
39577
|
-
editor:
|
|
39685
|
+
editor: h
|
|
39578
39686
|
})
|
|
39579
39687
|
});
|
|
39580
|
-
},
|
|
39688
|
+
}, Qq = j(OC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
39581
39689
|
display: "flex",
|
|
39582
39690
|
outline: "none !important",
|
|
39583
39691
|
"& .ProseMirror": {
|
|
@@ -39605,13 +39713,13 @@ var Mq = zm.create({
|
|
|
39605
39713
|
} },
|
|
39606
39714
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
39607
39715
|
}
|
|
39608
|
-
})),
|
|
39716
|
+
})), $q = Zq;
|
|
39609
39717
|
//#endregion
|
|
39610
39718
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
|
|
39611
|
-
function
|
|
39719
|
+
function eJ(e) {
|
|
39612
39720
|
return Oe("MuiInputAdornment", e);
|
|
39613
39721
|
}
|
|
39614
|
-
var
|
|
39722
|
+
var tJ = T("MuiInputAdornment", [
|
|
39615
39723
|
"root",
|
|
39616
39724
|
"filled",
|
|
39617
39725
|
"standard",
|
|
@@ -39621,7 +39729,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39621
39729
|
"disablePointerEvents",
|
|
39622
39730
|
"hiddenLabel",
|
|
39623
39731
|
"sizeSmall"
|
|
39624
|
-
]),
|
|
39732
|
+
]), nJ, rJ = (e, t) => {
|
|
39625
39733
|
let { ownerState: n } = e;
|
|
39626
39734
|
return [
|
|
39627
39735
|
t.root,
|
|
@@ -39629,7 +39737,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39629
39737
|
n.disablePointerEvents === !0 && t.disablePointerEvents,
|
|
39630
39738
|
t[n.variant]
|
|
39631
39739
|
];
|
|
39632
|
-
},
|
|
39740
|
+
}, iJ = (e) => {
|
|
39633
39741
|
let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
|
|
39634
39742
|
return Je({ root: [
|
|
39635
39743
|
"root",
|
|
@@ -39638,11 +39746,11 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39638
39746
|
o,
|
|
39639
39747
|
r && "hiddenLabel",
|
|
39640
39748
|
a && `size${O(a)}`
|
|
39641
|
-
] },
|
|
39642
|
-
},
|
|
39749
|
+
] }, eJ, t);
|
|
39750
|
+
}, aJ = j("div", {
|
|
39643
39751
|
name: "MuiInputAdornment",
|
|
39644
39752
|
slot: "Root",
|
|
39645
|
-
overridesResolver:
|
|
39753
|
+
overridesResolver: rJ
|
|
39646
39754
|
})(k(({ theme: e }) => ({
|
|
39647
39755
|
display: "flex",
|
|
39648
39756
|
maxHeight: "2em",
|
|
@@ -39652,7 +39760,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39652
39760
|
variants: [
|
|
39653
39761
|
{
|
|
39654
39762
|
props: { variant: "filled" },
|
|
39655
|
-
style: { [`&.${
|
|
39763
|
+
style: { [`&.${tJ.positionStart}&:not(.${tJ.hiddenLabel})`]: { marginTop: 16 } }
|
|
39656
39764
|
},
|
|
39657
39765
|
{
|
|
39658
39766
|
props: { position: "start" },
|
|
@@ -39667,7 +39775,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39667
39775
|
style: { pointerEvents: "none" }
|
|
39668
39776
|
}
|
|
39669
39777
|
]
|
|
39670
|
-
}))),
|
|
39778
|
+
}))), oJ = /*#__PURE__*/ M.forwardRef(function(e, t) {
|
|
39671
39779
|
let r = we({
|
|
39672
39780
|
props: e,
|
|
39673
39781
|
name: "MuiInputAdornment"
|
|
@@ -39680,10 +39788,10 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39680
39788
|
disablePointerEvents: s,
|
|
39681
39789
|
position: l,
|
|
39682
39790
|
variant: p
|
|
39683
|
-
}, h =
|
|
39791
|
+
}, h = iJ(m);
|
|
39684
39792
|
return /*#__PURE__*/ N(ae.Provider, {
|
|
39685
39793
|
value: null,
|
|
39686
|
-
children: /*#__PURE__*/ N(
|
|
39794
|
+
children: /*#__PURE__*/ N(aJ, {
|
|
39687
39795
|
as: o,
|
|
39688
39796
|
ownerState: m,
|
|
39689
39797
|
className: n(h.root, a),
|
|
@@ -39692,7 +39800,7 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39692
39800
|
children: typeof i == "string" && !c ? /*#__PURE__*/ N(me, {
|
|
39693
39801
|
color: "textSecondary",
|
|
39694
39802
|
children: i
|
|
39695
|
-
}) : /*#__PURE__*/ P(M.Fragment, { children: [l === "start" ?
|
|
39803
|
+
}) : /*#__PURE__*/ P(M.Fragment, { children: [l === "start" ? nJ ||= /*#__PURE__*/ N("span", {
|
|
39696
39804
|
className: "notranslate",
|
|
39697
39805
|
"aria-hidden": !0,
|
|
39698
39806
|
children: ""
|
|
@@ -39702,10 +39810,10 @@ var Kq = T("MuiInputAdornment", [
|
|
|
39702
39810
|
});
|
|
39703
39811
|
//#endregion
|
|
39704
39812
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
|
|
39705
|
-
function
|
|
39813
|
+
function sJ(e) {
|
|
39706
39814
|
return Oe("MuiTooltip", e);
|
|
39707
39815
|
}
|
|
39708
|
-
var
|
|
39816
|
+
var cJ = T("MuiTooltip", [
|
|
39709
39817
|
"popper",
|
|
39710
39818
|
"popperInteractive",
|
|
39711
39819
|
"popperArrow",
|
|
@@ -39721,10 +39829,10 @@ var $q = T("MuiTooltip", [
|
|
|
39721
39829
|
]);
|
|
39722
39830
|
//#endregion
|
|
39723
39831
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
|
|
39724
|
-
function
|
|
39832
|
+
function lJ(e) {
|
|
39725
39833
|
return Math.round(e * 1e5) / 1e5;
|
|
39726
39834
|
}
|
|
39727
|
-
var
|
|
39835
|
+
var uJ = (e) => {
|
|
39728
39836
|
let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
|
|
39729
39837
|
return Je({
|
|
39730
39838
|
popper: [
|
|
@@ -39739,8 +39847,8 @@ var tJ = (e) => {
|
|
|
39739
39847
|
`tooltipPlacement${O(a.split("-")[0])}`
|
|
39740
39848
|
],
|
|
39741
39849
|
arrow: ["arrow"]
|
|
39742
|
-
},
|
|
39743
|
-
},
|
|
39850
|
+
}, sJ, t);
|
|
39851
|
+
}, dJ = j(kR, {
|
|
39744
39852
|
name: "MuiTooltip",
|
|
39745
39853
|
slot: "Popper",
|
|
39746
39854
|
overridesResolver: (e, t) => {
|
|
@@ -39767,22 +39875,22 @@ var tJ = (e) => {
|
|
|
39767
39875
|
{
|
|
39768
39876
|
props: ({ ownerState: e }) => e.arrow,
|
|
39769
39877
|
style: {
|
|
39770
|
-
[`&[data-popper-placement*="bottom"] .${
|
|
39878
|
+
[`&[data-popper-placement*="bottom"] .${cJ.arrow}`]: {
|
|
39771
39879
|
top: 0,
|
|
39772
39880
|
marginTop: "-0.71em",
|
|
39773
39881
|
"&::before": { transformOrigin: "0 100%" }
|
|
39774
39882
|
},
|
|
39775
|
-
[`&[data-popper-placement*="top"] .${
|
|
39883
|
+
[`&[data-popper-placement*="top"] .${cJ.arrow}`]: {
|
|
39776
39884
|
bottom: 0,
|
|
39777
39885
|
marginBottom: "-0.71em",
|
|
39778
39886
|
"&::before": { transformOrigin: "100% 0" }
|
|
39779
39887
|
},
|
|
39780
|
-
[`&[data-popper-placement*="right"] .${
|
|
39888
|
+
[`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
|
|
39781
39889
|
height: "1em",
|
|
39782
39890
|
width: "0.71em",
|
|
39783
39891
|
"&::before": { transformOrigin: "100% 100%" }
|
|
39784
39892
|
},
|
|
39785
|
-
[`&[data-popper-placement*="left"] .${
|
|
39893
|
+
[`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
|
|
39786
39894
|
height: "1em",
|
|
39787
39895
|
width: "0.71em",
|
|
39788
39896
|
"&::before": { transformOrigin: "0 0" }
|
|
@@ -39791,34 +39899,34 @@ var tJ = (e) => {
|
|
|
39791
39899
|
},
|
|
39792
39900
|
{
|
|
39793
39901
|
props: ({ ownerState: e }) => e.arrow && !e.isRtl,
|
|
39794
|
-
style: { [`&[data-popper-placement*="right"] .${
|
|
39902
|
+
style: { [`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
|
|
39795
39903
|
left: 0,
|
|
39796
39904
|
marginLeft: "-0.71em"
|
|
39797
39905
|
} }
|
|
39798
39906
|
},
|
|
39799
39907
|
{
|
|
39800
39908
|
props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
|
|
39801
|
-
style: { [`&[data-popper-placement*="right"] .${
|
|
39909
|
+
style: { [`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
|
|
39802
39910
|
right: 0,
|
|
39803
39911
|
marginRight: "-0.71em"
|
|
39804
39912
|
} }
|
|
39805
39913
|
},
|
|
39806
39914
|
{
|
|
39807
39915
|
props: ({ ownerState: e }) => e.arrow && !e.isRtl,
|
|
39808
|
-
style: { [`&[data-popper-placement*="left"] .${
|
|
39916
|
+
style: { [`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
|
|
39809
39917
|
right: 0,
|
|
39810
39918
|
marginRight: "-0.71em"
|
|
39811
39919
|
} }
|
|
39812
39920
|
},
|
|
39813
39921
|
{
|
|
39814
39922
|
props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
|
|
39815
|
-
style: { [`&[data-popper-placement*="left"] .${
|
|
39923
|
+
style: { [`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
|
|
39816
39924
|
left: 0,
|
|
39817
39925
|
marginLeft: "-0.71em"
|
|
39818
39926
|
} }
|
|
39819
39927
|
}
|
|
39820
39928
|
]
|
|
39821
|
-
}))),
|
|
39929
|
+
}))), fJ = j("div", {
|
|
39822
39930
|
name: "MuiTooltip",
|
|
39823
39931
|
slot: "Tooltip",
|
|
39824
39932
|
overridesResolver: (e, t) => {
|
|
@@ -39841,13 +39949,13 @@ var tJ = (e) => {
|
|
|
39841
39949
|
margin: 2,
|
|
39842
39950
|
wordWrap: "break-word",
|
|
39843
39951
|
fontWeight: e.typography.fontWeightMedium,
|
|
39844
|
-
[`.${
|
|
39845
|
-
[`.${
|
|
39846
|
-
[`.${
|
|
39952
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
|
|
39953
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
|
|
39954
|
+
[`.${cJ.popper}[data-popper-placement*="top"] &`]: {
|
|
39847
39955
|
transformOrigin: "center bottom",
|
|
39848
39956
|
marginBottom: "14px"
|
|
39849
39957
|
},
|
|
39850
|
-
[`.${
|
|
39958
|
+
[`.${cJ.popper}[data-popper-placement*="bottom"] &`]: {
|
|
39851
39959
|
transformOrigin: "center top",
|
|
39852
39960
|
marginTop: "14px"
|
|
39853
39961
|
},
|
|
@@ -39864,48 +39972,48 @@ var tJ = (e) => {
|
|
|
39864
39972
|
style: {
|
|
39865
39973
|
padding: "8px 16px",
|
|
39866
39974
|
fontSize: e.typography.pxToRem(14),
|
|
39867
|
-
lineHeight: `${
|
|
39975
|
+
lineHeight: `${lJ(16 / 14)}em`,
|
|
39868
39976
|
fontWeight: e.typography.fontWeightRegular
|
|
39869
39977
|
}
|
|
39870
39978
|
},
|
|
39871
39979
|
{
|
|
39872
39980
|
props: ({ ownerState: e }) => !e.isRtl,
|
|
39873
39981
|
style: {
|
|
39874
|
-
[`.${
|
|
39875
|
-
[`.${
|
|
39982
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
|
|
39983
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
|
|
39876
39984
|
}
|
|
39877
39985
|
},
|
|
39878
39986
|
{
|
|
39879
39987
|
props: ({ ownerState: e }) => !e.isRtl && e.touch,
|
|
39880
39988
|
style: {
|
|
39881
|
-
[`.${
|
|
39882
|
-
[`.${
|
|
39989
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
|
|
39990
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
|
|
39883
39991
|
}
|
|
39884
39992
|
},
|
|
39885
39993
|
{
|
|
39886
39994
|
props: ({ ownerState: e }) => !!e.isRtl,
|
|
39887
39995
|
style: {
|
|
39888
|
-
[`.${
|
|
39889
|
-
[`.${
|
|
39996
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
|
|
39997
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
|
|
39890
39998
|
}
|
|
39891
39999
|
},
|
|
39892
40000
|
{
|
|
39893
40001
|
props: ({ ownerState: e }) => !!e.isRtl && e.touch,
|
|
39894
40002
|
style: {
|
|
39895
|
-
[`.${
|
|
39896
|
-
[`.${
|
|
40003
|
+
[`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
|
|
40004
|
+
[`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
|
|
39897
40005
|
}
|
|
39898
40006
|
},
|
|
39899
40007
|
{
|
|
39900
40008
|
props: ({ ownerState: e }) => e.touch,
|
|
39901
|
-
style: { [`.${
|
|
40009
|
+
style: { [`.${cJ.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
|
|
39902
40010
|
},
|
|
39903
40011
|
{
|
|
39904
40012
|
props: ({ ownerState: e }) => e.touch,
|
|
39905
|
-
style: { [`.${
|
|
40013
|
+
style: { [`.${cJ.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
|
|
39906
40014
|
}
|
|
39907
40015
|
]
|
|
39908
|
-
}))),
|
|
40016
|
+
}))), pJ = j("span", {
|
|
39909
40017
|
name: "MuiTooltip",
|
|
39910
40018
|
slot: "Arrow"
|
|
39911
40019
|
})(k(({ theme: e }) => ({
|
|
@@ -39924,16 +40032,16 @@ var tJ = (e) => {
|
|
|
39924
40032
|
backgroundColor: "currentColor",
|
|
39925
40033
|
transform: "rotate(45deg)"
|
|
39926
40034
|
}
|
|
39927
|
-
}))),
|
|
40035
|
+
}))), mJ = !1, hJ = new Ee(), gJ = {
|
|
39928
40036
|
x: 0,
|
|
39929
40037
|
y: 0
|
|
39930
40038
|
};
|
|
39931
|
-
function
|
|
40039
|
+
function _J(e, t) {
|
|
39932
40040
|
return (n, ...r) => {
|
|
39933
40041
|
t && t(n, ...r), e(n, ...r);
|
|
39934
40042
|
};
|
|
39935
40043
|
}
|
|
39936
|
-
var
|
|
40044
|
+
var vJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
39937
40045
|
let i = we({
|
|
39938
40046
|
props: e,
|
|
39939
40047
|
name: "MuiTooltip"
|
|
@@ -39947,15 +40055,15 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
39947
40055
|
});
|
|
39948
40056
|
M.useEffect(() => ke, [ke]);
|
|
39949
40057
|
let Ae = (e) => {
|
|
39950
|
-
|
|
40058
|
+
hJ.clear(), mJ = !0, Ee(!0), ee && !A && ee(e);
|
|
39951
40059
|
}, je = y((e) => {
|
|
39952
|
-
|
|
39953
|
-
|
|
40060
|
+
hJ.start(800 + S, () => {
|
|
40061
|
+
mJ = !1;
|
|
39954
40062
|
}), Ee(!1), w && A && w(e), ye.start(ue.transitions.duration.shortest, () => {
|
|
39955
40063
|
_e.current = !1;
|
|
39956
40064
|
});
|
|
39957
40065
|
}), Me = (e) => {
|
|
39958
|
-
_e.current && e.type !== "touchstart" || (fe && fe.removeAttribute("title"), be.clear(), xe.clear(), g ||
|
|
40066
|
+
_e.current && e.type !== "touchstart" || (fe && fe.removeAttribute("title"), be.clear(), xe.clear(), g || mJ && _ ? be.start(mJ ? _ : g, () => {
|
|
39959
40067
|
Ae(e);
|
|
39960
40068
|
}) : Ae(e));
|
|
39961
40069
|
}, Ne = (e) => {
|
|
@@ -39997,7 +40105,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
39997
40105
|
!D && D !== 0 && (A = !1);
|
|
39998
40106
|
let He = M.useRef(), We = (e) => {
|
|
39999
40107
|
let t = le.props;
|
|
40000
|
-
t.onMouseMove && t.onMouseMove(e),
|
|
40108
|
+
t.onMouseMove && t.onMouseMove(e), gJ = {
|
|
40001
40109
|
x: e.clientX,
|
|
40002
40110
|
y: e.clientY
|
|
40003
40111
|
}, He.current && He.current.update();
|
|
@@ -40012,7 +40120,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40012
40120
|
ref: Ve,
|
|
40013
40121
|
...b ? { onMouseMove: We } : {}
|
|
40014
40122
|
}, Je = {};
|
|
40015
|
-
h || (qe.onTouchStart = Re, qe.onTouchEnd = Be), p || (qe.onMouseOver =
|
|
40123
|
+
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
40124
|
let Ye = {
|
|
40017
40125
|
...i,
|
|
40018
40126
|
isRtl: k,
|
|
@@ -40039,7 +40147,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40039
40147
|
me,
|
|
40040
40148
|
E.popperOptions,
|
|
40041
40149
|
Xe?.popperOptions
|
|
40042
|
-
]), j =
|
|
40150
|
+
]), j = uJ(Ye), $e = typeof ie.transition == "function" ? ie.transition(Ye) : ie.transition, et = {
|
|
40043
40151
|
slots: {
|
|
40044
40152
|
popper: c.Popper,
|
|
40045
40153
|
transition: c.Transition ?? se,
|
|
@@ -40060,7 +40168,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40060
40168
|
}
|
|
40061
40169
|
}
|
|
40062
40170
|
}, [tt, nt] = de("popper", {
|
|
40063
|
-
elementType:
|
|
40171
|
+
elementType: dJ,
|
|
40064
40172
|
externalForwardedProps: et,
|
|
40065
40173
|
ownerState: Ye,
|
|
40066
40174
|
className: n(j.popper, E?.className)
|
|
@@ -40069,12 +40177,12 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40069
40177
|
externalForwardedProps: et,
|
|
40070
40178
|
ownerState: Ye
|
|
40071
40179
|
}), [at, ot] = de("tooltip", {
|
|
40072
|
-
elementType:
|
|
40180
|
+
elementType: fJ,
|
|
40073
40181
|
className: j.tooltip,
|
|
40074
40182
|
externalForwardedProps: et,
|
|
40075
40183
|
ownerState: Ye
|
|
40076
40184
|
}), [st, ct] = de("arrow", {
|
|
40077
|
-
elementType:
|
|
40185
|
+
elementType: pJ,
|
|
40078
40186
|
className: j.arrow,
|
|
40079
40187
|
externalForwardedProps: et,
|
|
40080
40188
|
ownerState: Ye,
|
|
@@ -40084,10 +40192,10 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40084
40192
|
as: ne ?? kR,
|
|
40085
40193
|
placement: te,
|
|
40086
40194
|
anchorEl: b ? { getBoundingClientRect: () => ({
|
|
40087
|
-
top:
|
|
40088
|
-
left:
|
|
40089
|
-
right:
|
|
40090
|
-
bottom:
|
|
40195
|
+
top: gJ.y,
|
|
40196
|
+
left: gJ.x,
|
|
40197
|
+
right: gJ.x,
|
|
40198
|
+
bottom: gJ.y,
|
|
40091
40199
|
width: 0,
|
|
40092
40200
|
height: 0
|
|
40093
40201
|
}) } : fe,
|
|
@@ -40111,10 +40219,10 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
|
|
|
40111
40219
|
});
|
|
40112
40220
|
//#endregion
|
|
40113
40221
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
|
|
40114
|
-
function
|
|
40222
|
+
function yJ(e) {
|
|
40115
40223
|
return Oe("MuiSwitch", e);
|
|
40116
40224
|
}
|
|
40117
|
-
var
|
|
40225
|
+
var bJ = T("MuiSwitch", [
|
|
40118
40226
|
"root",
|
|
40119
40227
|
"edgeStart",
|
|
40120
40228
|
"edgeEnd",
|
|
@@ -40128,7 +40236,7 @@ var dJ = T("MuiSwitch", [
|
|
|
40128
40236
|
"input",
|
|
40129
40237
|
"thumb",
|
|
40130
40238
|
"track"
|
|
40131
|
-
]),
|
|
40239
|
+
]), xJ = (e) => {
|
|
40132
40240
|
let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = Je({
|
|
40133
40241
|
root: [
|
|
40134
40242
|
"root",
|
|
@@ -40144,12 +40252,12 @@ var dJ = T("MuiSwitch", [
|
|
|
40144
40252
|
thumb: ["thumb"],
|
|
40145
40253
|
track: ["track"],
|
|
40146
40254
|
input: ["input"]
|
|
40147
|
-
},
|
|
40255
|
+
}, yJ, t);
|
|
40148
40256
|
return {
|
|
40149
40257
|
...t,
|
|
40150
40258
|
...s
|
|
40151
40259
|
};
|
|
40152
|
-
},
|
|
40260
|
+
}, SJ = j("span", {
|
|
40153
40261
|
name: "MuiSwitch",
|
|
40154
40262
|
slot: "Root",
|
|
40155
40263
|
overridesResolver: (e, t) => {
|
|
@@ -40187,25 +40295,25 @@ var dJ = T("MuiSwitch", [
|
|
|
40187
40295
|
width: 40,
|
|
40188
40296
|
height: 24,
|
|
40189
40297
|
padding: 7,
|
|
40190
|
-
[`& .${
|
|
40298
|
+
[`& .${bJ.thumb}`]: {
|
|
40191
40299
|
width: 16,
|
|
40192
40300
|
height: 16
|
|
40193
40301
|
},
|
|
40194
|
-
[`& .${
|
|
40302
|
+
[`& .${bJ.switchBase}`]: {
|
|
40195
40303
|
padding: 4,
|
|
40196
|
-
[`&.${
|
|
40304
|
+
[`&.${bJ.checked}`]: { transform: "translateX(16px)" }
|
|
40197
40305
|
}
|
|
40198
40306
|
}
|
|
40199
40307
|
}
|
|
40200
40308
|
]
|
|
40201
|
-
}),
|
|
40309
|
+
}), CJ = j(Re, {
|
|
40202
40310
|
name: "MuiSwitch",
|
|
40203
40311
|
slot: "SwitchBase",
|
|
40204
40312
|
overridesResolver: (e, t) => {
|
|
40205
40313
|
let { ownerState: n } = e;
|
|
40206
40314
|
return [
|
|
40207
40315
|
t.switchBase,
|
|
40208
|
-
{ [`& .${
|
|
40316
|
+
{ [`& .${bJ.input}`]: t.input },
|
|
40209
40317
|
n.color !== "default" && t[`color${O(n.color)}`]
|
|
40210
40318
|
];
|
|
40211
40319
|
}
|
|
@@ -40216,11 +40324,11 @@ var dJ = T("MuiSwitch", [
|
|
|
40216
40324
|
zIndex: 1,
|
|
40217
40325
|
color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
|
|
40218
40326
|
transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
|
|
40219
|
-
[`&.${
|
|
40220
|
-
[`&.${
|
|
40221
|
-
[`&.${
|
|
40222
|
-
[`&.${
|
|
40223
|
-
[`& .${
|
|
40327
|
+
[`&.${bJ.checked}`]: { transform: "translateX(20px)" },
|
|
40328
|
+
[`&.${bJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
|
|
40329
|
+
[`&.${bJ.checked} + .${bJ.track}`]: { opacity: .5 },
|
|
40330
|
+
[`&.${bJ.disabled} + .${bJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
|
|
40331
|
+
[`& .${bJ.input}`]: {
|
|
40224
40332
|
left: "-100%",
|
|
40225
40333
|
width: "300%"
|
|
40226
40334
|
}
|
|
@@ -40232,18 +40340,18 @@ var dJ = T("MuiSwitch", [
|
|
|
40232
40340
|
variants: [...Object.entries(e.palette).filter(ee(["light"])).map(([t]) => ({
|
|
40233
40341
|
props: { color: t },
|
|
40234
40342
|
style: {
|
|
40235
|
-
[`&.${
|
|
40343
|
+
[`&.${bJ.checked}`]: {
|
|
40236
40344
|
color: (e.vars || e).palette[t].main,
|
|
40237
40345
|
"&:hover": {
|
|
40238
40346
|
backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
|
|
40239
40347
|
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
40240
40348
|
},
|
|
40241
|
-
[`&.${
|
|
40349
|
+
[`&.${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
40350
|
},
|
|
40243
|
-
[`&.${
|
|
40351
|
+
[`&.${bJ.checked} + .${bJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
|
|
40244
40352
|
}
|
|
40245
40353
|
}))]
|
|
40246
|
-
}))),
|
|
40354
|
+
}))), wJ = j("span", {
|
|
40247
40355
|
name: "MuiSwitch",
|
|
40248
40356
|
slot: "Track"
|
|
40249
40357
|
})(k(({ theme: e }) => ({
|
|
@@ -40256,7 +40364,7 @@ var dJ = T("MuiSwitch", [
|
|
|
40256
40364
|
transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
|
|
40257
40365
|
backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
|
|
40258
40366
|
opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
|
|
40259
|
-
}))),
|
|
40367
|
+
}))), TJ = j("span", {
|
|
40260
40368
|
name: "MuiSwitch",
|
|
40261
40369
|
slot: "Thumb"
|
|
40262
40370
|
})(k(({ theme: e }) => ({
|
|
@@ -40267,7 +40375,7 @@ var dJ = T("MuiSwitch", [
|
|
|
40267
40375
|
width: 20,
|
|
40268
40376
|
height: 20,
|
|
40269
40377
|
borderRadius: "50%"
|
|
40270
|
-
}))),
|
|
40378
|
+
}))), EJ = /*#__PURE__*/ M.forwardRef(function(e, t) {
|
|
40271
40379
|
let r = we({
|
|
40272
40380
|
props: e,
|
|
40273
40381
|
name: "MuiSwitch"
|
|
@@ -40276,29 +40384,29 @@ var dJ = T("MuiSwitch", [
|
|
|
40276
40384
|
color: a,
|
|
40277
40385
|
edge: o,
|
|
40278
40386
|
size: s
|
|
40279
|
-
}, p =
|
|
40387
|
+
}, p = xJ(f), m = u.input, g = {
|
|
40280
40388
|
slots: l,
|
|
40281
40389
|
slotProps: u
|
|
40282
40390
|
}, [_, v] = de("root", {
|
|
40283
40391
|
className: n(p.root, i),
|
|
40284
|
-
elementType:
|
|
40392
|
+
elementType: SJ,
|
|
40285
40393
|
externalForwardedProps: g,
|
|
40286
40394
|
ownerState: f,
|
|
40287
40395
|
additionalProps: { sx: c }
|
|
40288
40396
|
}), [y, b] = de("thumb", {
|
|
40289
40397
|
className: p.thumb,
|
|
40290
|
-
elementType:
|
|
40398
|
+
elementType: TJ,
|
|
40291
40399
|
externalForwardedProps: g,
|
|
40292
40400
|
ownerState: f
|
|
40293
40401
|
}), x = /*#__PURE__*/ N(y, { ...b }), [S, C] = de("track", {
|
|
40294
40402
|
className: p.track,
|
|
40295
|
-
elementType:
|
|
40403
|
+
elementType: wJ,
|
|
40296
40404
|
externalForwardedProps: g,
|
|
40297
40405
|
ownerState: f
|
|
40298
40406
|
});
|
|
40299
40407
|
return /*#__PURE__*/ P(_, {
|
|
40300
40408
|
...v,
|
|
40301
|
-
children: [/*#__PURE__*/ N(
|
|
40409
|
+
children: [/*#__PURE__*/ N(CJ, {
|
|
40302
40410
|
type: "checkbox",
|
|
40303
40411
|
icon: x,
|
|
40304
40412
|
checkedIcon: x,
|
|
@@ -40319,15 +40427,15 @@ var dJ = T("MuiSwitch", [
|
|
|
40319
40427
|
}
|
|
40320
40428
|
}), /*#__PURE__*/ N(S, { ...C })]
|
|
40321
40429
|
});
|
|
40322
|
-
}),
|
|
40430
|
+
}), 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
40431
|
open: i,
|
|
40324
40432
|
disableAutoFocus: s,
|
|
40325
40433
|
disableEnforceFocus: c,
|
|
40326
40434
|
disableRestoreFocus: u,
|
|
40327
40435
|
onClose: n,
|
|
40328
40436
|
children: [
|
|
40329
|
-
t && /* @__PURE__ */ N(
|
|
40330
|
-
e && /* @__PURE__ */ N(nN, { children: /* @__PURE__ */ N(
|
|
40437
|
+
t && /* @__PURE__ */ N(DJ, { children: t }),
|
|
40438
|
+
e && /* @__PURE__ */ N(nN, { children: /* @__PURE__ */ N(OJ, { children: e }) }),
|
|
40331
40439
|
/* @__PURE__ */ P(vN, { children: [n && /* @__PURE__ */ N(l, {
|
|
40332
40440
|
onClick: n,
|
|
40333
40441
|
color: "primary",
|
|
@@ -40340,13 +40448,13 @@ var dJ = T("MuiSwitch", [
|
|
|
40340
40448
|
})] })
|
|
40341
40449
|
]
|
|
40342
40450
|
});
|
|
40343
|
-
|
|
40451
|
+
kJ.defaultProps = {
|
|
40344
40452
|
onCloseText: "CANCEL",
|
|
40345
40453
|
onConfirmText: "OK",
|
|
40346
40454
|
disableAutoFocus: !1,
|
|
40347
40455
|
disableEnforceFocus: !1,
|
|
40348
40456
|
disableRestoreFocus: !1
|
|
40349
|
-
},
|
|
40457
|
+
}, kJ.propTypes = {
|
|
40350
40458
|
text: H.default.oneOfType([H.default.string, H.default.object]),
|
|
40351
40459
|
title: H.default.string,
|
|
40352
40460
|
onClose: H.default.func,
|
|
@@ -40360,18 +40468,18 @@ bJ.defaultProps = {
|
|
|
40360
40468
|
};
|
|
40361
40469
|
//#endregion
|
|
40362
40470
|
//#region ../../lib-react/config-ui/dist/radio-with-label.js
|
|
40363
|
-
var
|
|
40471
|
+
var AJ = j(Te)(() => ({ "& .MuiFormControlLabel-label": {
|
|
40364
40472
|
left: "-5px",
|
|
40365
40473
|
position: "relative"
|
|
40366
|
-
} })),
|
|
40474
|
+
} })), jJ = j(He)(() => ({ color: `${g.tertiary()} !important` })), MJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ N(AJ, {
|
|
40367
40475
|
value: t,
|
|
40368
|
-
control: /* @__PURE__ */ N(
|
|
40476
|
+
control: /* @__PURE__ */ N(jJ, {
|
|
40369
40477
|
checked: n,
|
|
40370
40478
|
onChange: r
|
|
40371
40479
|
}),
|
|
40372
40480
|
label: e
|
|
40373
40481
|
});
|
|
40374
|
-
|
|
40482
|
+
MJ.propTypes = {
|
|
40375
40483
|
label: H.default.string,
|
|
40376
40484
|
value: H.default.string,
|
|
40377
40485
|
checked: H.default.bool,
|
|
@@ -40379,40 +40487,40 @@ CJ.propTypes = {
|
|
|
40379
40487
|
};
|
|
40380
40488
|
//#endregion
|
|
40381
40489
|
//#region ../../lib-react/config-ui/dist/inputs.js
|
|
40382
|
-
function
|
|
40490
|
+
function NJ(e) {
|
|
40383
40491
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40384
40492
|
}
|
|
40385
|
-
function
|
|
40386
|
-
return !e ||
|
|
40493
|
+
function PJ(e, t) {
|
|
40494
|
+
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
40495
|
}
|
|
40388
|
-
var
|
|
40496
|
+
var FJ = PJ(pe, "InputContainer") || PJ(RJ.InputContainer, "InputContainer"), IJ = Be, LJ = IJ.default, RJ = LJ && typeof LJ == "object" ? LJ : IJ, zJ = {
|
|
40389
40497
|
className: H.default.string,
|
|
40390
40498
|
label: H.default.string,
|
|
40391
40499
|
checked: H.default.bool,
|
|
40392
40500
|
onChange: H.default.func,
|
|
40393
40501
|
disabled: H.default.bool,
|
|
40394
40502
|
error: H.default.string
|
|
40395
|
-
},
|
|
40503
|
+
}, BJ = j(EJ)(() => ({
|
|
40396
40504
|
justifyContent: "inherit",
|
|
40397
40505
|
transform: "translate(-20%, 20%)"
|
|
40398
|
-
})),
|
|
40506
|
+
})), VJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ N(FJ, {
|
|
40399
40507
|
className: e,
|
|
40400
40508
|
label: t,
|
|
40401
|
-
children: /* @__PURE__ */ N(
|
|
40509
|
+
children: /* @__PURE__ */ N(BJ, {
|
|
40402
40510
|
checked: n,
|
|
40403
40511
|
onChange: r,
|
|
40404
40512
|
"aria-label": t
|
|
40405
40513
|
})
|
|
40406
40514
|
});
|
|
40407
|
-
|
|
40408
|
-
var
|
|
40515
|
+
VJ.propTypes = { ...zJ };
|
|
40516
|
+
var HJ = j(Me)(({ theme: e, error: t }) => ({
|
|
40409
40517
|
transform: "translate(-25%, 20%)",
|
|
40410
40518
|
color: `${g.tertiary()} !important`,
|
|
40411
40519
|
...t && { color: `${e.palette.error.main} !important` }
|
|
40412
|
-
})),
|
|
40520
|
+
})), UJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ N(FJ, {
|
|
40413
40521
|
className: e,
|
|
40414
40522
|
label: t,
|
|
40415
|
-
children: /* @__PURE__ */ N(
|
|
40523
|
+
children: /* @__PURE__ */ N(HJ, {
|
|
40416
40524
|
disabled: i,
|
|
40417
40525
|
checked: n,
|
|
40418
40526
|
onChange: r,
|
|
@@ -40420,15 +40528,15 @@ var NJ = j(Me)(({ theme: e, error: t }) => ({
|
|
|
40420
40528
|
error: a
|
|
40421
40529
|
})
|
|
40422
40530
|
});
|
|
40423
|
-
|
|
40424
|
-
var
|
|
40531
|
+
UJ.propTypes = { ...zJ };
|
|
40532
|
+
var WJ = j(He)(({ theme: e, error: t }) => ({
|
|
40425
40533
|
transform: "translate(-20%, 20%)",
|
|
40426
40534
|
color: `${g.tertiary()} !important`,
|
|
40427
40535
|
...t && { color: `${e.palette.error.main} !important` }
|
|
40428
|
-
})),
|
|
40536
|
+
})), GJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ N(FJ, {
|
|
40429
40537
|
className: e,
|
|
40430
40538
|
label: t,
|
|
40431
|
-
children: /* @__PURE__ */ N(
|
|
40539
|
+
children: /* @__PURE__ */ N(WJ, {
|
|
40432
40540
|
disabled: i,
|
|
40433
40541
|
checked: n,
|
|
40434
40542
|
onChange: r,
|
|
@@ -40436,10 +40544,10 @@ var FJ = j(He)(({ theme: e, error: t }) => ({
|
|
|
40436
40544
|
error: a
|
|
40437
40545
|
})
|
|
40438
40546
|
});
|
|
40439
|
-
|
|
40547
|
+
GJ.propTypes = { ...zJ };
|
|
40440
40548
|
//#endregion
|
|
40441
40549
|
//#region ../../lib-react/config-ui/dist/tabs/index.js
|
|
40442
|
-
var
|
|
40550
|
+
var KJ = j(PP)(() => ({})), qJ = class extends mt.Component {
|
|
40443
40551
|
static propTypes = {
|
|
40444
40552
|
className: H.default.string,
|
|
40445
40553
|
contentClassName: H.default.string,
|
|
@@ -40460,7 +40568,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40460
40568
|
indicatorColor: "primary",
|
|
40461
40569
|
value: e,
|
|
40462
40570
|
onChange: this.handleChange,
|
|
40463
|
-
children: mt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ N(
|
|
40571
|
+
children: mt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ N(KJ, { label: e.props.title }, t) : null)
|
|
40464
40572
|
}), /* @__PURE__ */ N("div", {
|
|
40465
40573
|
className: r,
|
|
40466
40574
|
style: i,
|
|
@@ -40468,7 +40576,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40468
40576
|
})]
|
|
40469
40577
|
});
|
|
40470
40578
|
}
|
|
40471
|
-
},
|
|
40579
|
+
}, JJ = j(Te)(({ theme: e, mini: t }) => ({
|
|
40472
40580
|
margin: 0,
|
|
40473
40581
|
marginLeft: 0,
|
|
40474
40582
|
padding: 0,
|
|
@@ -40482,7 +40590,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40482
40590
|
fontSize: e.typography.fontSize - 3
|
|
40483
40591
|
}
|
|
40484
40592
|
}
|
|
40485
|
-
})),
|
|
40593
|
+
})), YJ = j(Me)(({ theme: e, mini: t, error: n }) => ({
|
|
40486
40594
|
color: `${g.tertiary()} !important`,
|
|
40487
40595
|
...t && {
|
|
40488
40596
|
margin: 0,
|
|
@@ -40491,9 +40599,9 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40491
40599
|
height: e.spacing(3)
|
|
40492
40600
|
},
|
|
40493
40601
|
...n && { color: `${e.palette.error.main} !important` }
|
|
40494
|
-
})),
|
|
40602
|
+
})), XJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ N(JJ, {
|
|
40495
40603
|
mini: e,
|
|
40496
|
-
control: /* @__PURE__ */ N(
|
|
40604
|
+
control: /* @__PURE__ */ N(YJ, {
|
|
40497
40605
|
checked: t,
|
|
40498
40606
|
onChange: n,
|
|
40499
40607
|
value: r,
|
|
@@ -40502,21 +40610,21 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
|
|
|
40502
40610
|
}),
|
|
40503
40611
|
label: i
|
|
40504
40612
|
});
|
|
40505
|
-
|
|
40613
|
+
XJ.propTypes = {
|
|
40506
40614
|
mini: H.default.bool,
|
|
40507
40615
|
checked: H.default.bool.isRequired,
|
|
40508
40616
|
onChange: H.default.func.isRequired,
|
|
40509
40617
|
value: H.default.string,
|
|
40510
40618
|
label: H.default.string.isRequired,
|
|
40511
40619
|
error: H.default.bool
|
|
40512
|
-
},
|
|
40620
|
+
}, XJ.defaultProps = {
|
|
40513
40621
|
value: "",
|
|
40514
40622
|
mini: !1,
|
|
40515
40623
|
error: !1
|
|
40516
40624
|
};
|
|
40517
40625
|
//#endregion
|
|
40518
40626
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
40519
|
-
var
|
|
40627
|
+
var ZJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), QJ = j(mN)(({ theme: e }) => ({
|
|
40520
40628
|
marginRight: e.spacing(1),
|
|
40521
40629
|
"& .MuiInputLabel-root": {
|
|
40522
40630
|
width: "auto",
|
|
@@ -40538,11 +40646,11 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40538
40646
|
minHeight: "auto",
|
|
40539
40647
|
padding: "6px 0 7px"
|
|
40540
40648
|
}
|
|
40541
|
-
})),
|
|
40649
|
+
})), $J = (e, t) => {
|
|
40542
40650
|
if (!at(e) && !at(t)) return 0;
|
|
40543
40651
|
if (!at(e) && at(t)) return t;
|
|
40544
40652
|
if (at(e)) return e;
|
|
40545
|
-
},
|
|
40653
|
+
}, eY = class extends mt.Component {
|
|
40546
40654
|
static propTypes = {
|
|
40547
40655
|
disabled: H.default.bool,
|
|
40548
40656
|
className: H.default.string,
|
|
@@ -40568,13 +40676,13 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40568
40676
|
this.setState({ value: t });
|
|
40569
40677
|
}
|
|
40570
40678
|
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) :
|
|
40679
|
+
return at(e) ? (at(n) && (e = Math.min(e, n)), at(t) && (e = Math.max(e, t)), e) : $J(t, n);
|
|
40572
40680
|
}
|
|
40573
40681
|
onBlur = (e) => {
|
|
40574
40682
|
let t = e.target.value, n = parseFloat(t);
|
|
40575
|
-
|
|
40683
|
+
ZJ("rawNumber: ", n);
|
|
40576
40684
|
let r = this.clamp(n);
|
|
40577
|
-
|
|
40685
|
+
ZJ("number: ", r), r !== this.state.value && (ZJ("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
40578
40686
|
this.props.onChange(e, r);
|
|
40579
40687
|
}));
|
|
40580
40688
|
};
|
|
@@ -40594,7 +40702,7 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40594
40702
|
};
|
|
40595
40703
|
render() {
|
|
40596
40704
|
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(
|
|
40705
|
+
return /* @__PURE__ */ N(QJ, {
|
|
40598
40706
|
variant: s ? "filled" : l || "standard",
|
|
40599
40707
|
inputRef: (e) => {
|
|
40600
40708
|
this.inputRef = e;
|
|
@@ -40613,7 +40721,7 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40613
40721
|
type: "number",
|
|
40614
40722
|
className: e,
|
|
40615
40723
|
slotProps: { input: {
|
|
40616
|
-
endAdornment: r && /* @__PURE__ */ N(
|
|
40724
|
+
endAdornment: r && /* @__PURE__ */ N(oJ, {
|
|
40617
40725
|
position: "end",
|
|
40618
40726
|
children: r
|
|
40619
40727
|
}),
|
|
@@ -40629,19 +40737,19 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
|
|
|
40629
40737
|
};
|
|
40630
40738
|
//#endregion
|
|
40631
40739
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
40632
|
-
function
|
|
40740
|
+
function tY(e) {
|
|
40633
40741
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40634
40742
|
}
|
|
40635
|
-
function
|
|
40636
|
-
return !e ||
|
|
40743
|
+
function nY(e, t) {
|
|
40744
|
+
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
40745
|
}
|
|
40638
|
-
var
|
|
40746
|
+
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
40747
|
display: "flex",
|
|
40640
40748
|
flexWrap: "wrap",
|
|
40641
40749
|
paddingLeft: 0,
|
|
40642
40750
|
marginTop: e.spacing(1),
|
|
40643
40751
|
...t === "vertical" && { flexDirection: "column" }
|
|
40644
|
-
})),
|
|
40752
|
+
})), cY = class extends mt.Component {
|
|
40645
40753
|
static propTypes = {
|
|
40646
40754
|
header: H.default.string.isRequired,
|
|
40647
40755
|
className: H.default.string,
|
|
@@ -40658,11 +40766,11 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
|
|
|
40658
40766
|
let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
|
|
40659
40767
|
label: e,
|
|
40660
40768
|
value: e
|
|
40661
|
-
} : e), s = n ||
|
|
40662
|
-
return /* @__PURE__ */ N(
|
|
40769
|
+
} : e), s = n || MJ;
|
|
40770
|
+
return /* @__PURE__ */ N(rY, {
|
|
40663
40771
|
label: e,
|
|
40664
40772
|
className: t,
|
|
40665
|
-
children: /* @__PURE__ */ N(
|
|
40773
|
+
children: /* @__PURE__ */ N(sY, {
|
|
40666
40774
|
direction: a,
|
|
40667
40775
|
children: o.map((e, t) => /* @__PURE__ */ N(s, {
|
|
40668
40776
|
value: e.value,
|
|
@@ -40673,7 +40781,7 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
|
|
|
40673
40781
|
})
|
|
40674
40782
|
});
|
|
40675
40783
|
}
|
|
40676
|
-
},
|
|
40784
|
+
}, lY = H.default.shape({
|
|
40677
40785
|
label: H.default.string,
|
|
40678
40786
|
value: H.default.string
|
|
40679
40787
|
});
|
|
@@ -40682,14 +40790,14 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
|
|
|
40682
40790
|
header: H.default.string.isRequired,
|
|
40683
40791
|
value: H.default.string.isRequired,
|
|
40684
40792
|
onChange: H.default.func.isRequired,
|
|
40685
|
-
one: H.default.oneOfType([
|
|
40686
|
-
two: H.default.oneOfType([
|
|
40793
|
+
one: H.default.oneOfType([lY, H.default.string]),
|
|
40794
|
+
two: H.default.oneOfType([lY, H.default.string]),
|
|
40687
40795
|
className: H.default.string,
|
|
40688
40796
|
customLabel: H.default.func
|
|
40689
40797
|
};
|
|
40690
40798
|
render() {
|
|
40691
40799
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
40692
|
-
return /* @__PURE__ */ N(
|
|
40800
|
+
return /* @__PURE__ */ N(cY, {
|
|
40693
40801
|
customLabel: i,
|
|
40694
40802
|
header: n,
|
|
40695
40803
|
className: r,
|
|
@@ -40701,16 +40809,16 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
|
|
|
40701
40809
|
});
|
|
40702
40810
|
//#endregion
|
|
40703
40811
|
//#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Feedback.js
|
|
40704
|
-
var
|
|
40812
|
+
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
40813
|
//#endregion
|
|
40706
40814
|
//#region ../../lib-react/config-ui/dist/choice-configuration/feedback-menu.js
|
|
40707
|
-
function
|
|
40815
|
+
function dY(e) {
|
|
40708
40816
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40709
40817
|
}
|
|
40710
|
-
function
|
|
40711
|
-
return !e ||
|
|
40818
|
+
function fY(e, t) {
|
|
40819
|
+
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
40820
|
}
|
|
40713
|
-
var
|
|
40821
|
+
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
40822
|
static propTypes = {
|
|
40715
40823
|
opts: H.default.object,
|
|
40716
40824
|
onClick: H.default.func.isRequired,
|
|
@@ -40738,7 +40846,7 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
|
|
|
40738
40846
|
return /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("div", {
|
|
40739
40847
|
onClick: this.handleClick,
|
|
40740
40848
|
children: this.props.iconButtonElement
|
|
40741
|
-
}), /* @__PURE__ */ N(
|
|
40849
|
+
}), /* @__PURE__ */ N(pY, {
|
|
40742
40850
|
id: "simple-menu",
|
|
40743
40851
|
anchorEl: this.state.anchorEl,
|
|
40744
40852
|
open: this.state.open,
|
|
@@ -40753,7 +40861,7 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
|
|
|
40753
40861
|
}, n))
|
|
40754
40862
|
})] });
|
|
40755
40863
|
}
|
|
40756
|
-
},
|
|
40864
|
+
}, vY = class extends mt.Component {
|
|
40757
40865
|
static propTypes = {
|
|
40758
40866
|
value: H.default.object,
|
|
40759
40867
|
onChange: H.default.func.isRequired,
|
|
@@ -40762,12 +40870,12 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
|
|
|
40762
40870
|
static defaultProps = { classes: {} };
|
|
40763
40871
|
render() {
|
|
40764
40872
|
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(
|
|
40873
|
+
return /* @__PURE__ */ N(_Y, {
|
|
40766
40874
|
iconButtonElement: /* @__PURE__ */ N(uS, {
|
|
40767
40875
|
className: n.icon,
|
|
40768
40876
|
"aria-label": a,
|
|
40769
40877
|
size: "large",
|
|
40770
|
-
children: /* @__PURE__ */ N(
|
|
40878
|
+
children: /* @__PURE__ */ N(uY, { color: i })
|
|
40771
40879
|
}),
|
|
40772
40880
|
onClick: (e) => t(e),
|
|
40773
40881
|
opts: {
|
|
@@ -40777,19 +40885,19 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
|
|
|
40777
40885
|
}
|
|
40778
40886
|
});
|
|
40779
40887
|
}
|
|
40780
|
-
},
|
|
40888
|
+
}, yY = m(/*#__PURE__*/ N("path", { d: "m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z" }), "SubdirectoryArrowRight");
|
|
40781
40889
|
//#endregion
|
|
40782
40890
|
//#region ../../lib-react/config-ui/dist/choice-configuration/index.js
|
|
40783
|
-
function
|
|
40891
|
+
function bY(e) {
|
|
40784
40892
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40785
40893
|
}
|
|
40786
|
-
function
|
|
40787
|
-
return !e ||
|
|
40894
|
+
function xY(e, t) {
|
|
40895
|
+
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
40896
|
}
|
|
40789
|
-
var
|
|
40897
|
+
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
40898
|
label: e,
|
|
40791
40899
|
className: r,
|
|
40792
|
-
children: /* @__PURE__ */ N(
|
|
40900
|
+
children: /* @__PURE__ */ N(EY, { children: /* @__PURE__ */ N($q, {
|
|
40793
40901
|
markup: n || "",
|
|
40794
40902
|
disabled: o,
|
|
40795
40903
|
spellCheck: s,
|
|
@@ -40806,65 +40914,65 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
40806
40914
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
40807
40915
|
mathMlOptions: h
|
|
40808
40916
|
}) })
|
|
40809
|
-
}),
|
|
40917
|
+
}), OY = j("div")(() => ({ position: "relative" })), kY = j(yY)(() => ({
|
|
40810
40918
|
fill: g.border(),
|
|
40811
40919
|
left: -56,
|
|
40812
40920
|
position: "absolute",
|
|
40813
40921
|
top: 40
|
|
40814
|
-
})),
|
|
40922
|
+
})), AY = j(mN)(({ theme: e }) => ({
|
|
40815
40923
|
width: "100%",
|
|
40816
40924
|
marginTop: e.spacing(2)
|
|
40817
|
-
})),
|
|
40925
|
+
})), jY = j(DY)(({ theme: e }) => ({
|
|
40818
40926
|
width: "100%",
|
|
40819
40927
|
marginTop: e.spacing(2)
|
|
40820
|
-
})),
|
|
40928
|
+
})), 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
40929
|
label: "Feedback Text",
|
|
40822
40930
|
value: r ? i.correct : i.incorrect,
|
|
40823
40931
|
variant: "standard"
|
|
40824
|
-
})] }) : /* @__PURE__ */ P(
|
|
40932
|
+
})] }) : /* @__PURE__ */ P(OY, { children: [/* @__PURE__ */ N(kY, {}), /* @__PURE__ */ N(jY, {
|
|
40825
40933
|
label: "Feedback Text",
|
|
40826
40934
|
value: e,
|
|
40827
40935
|
onChange: t,
|
|
40828
40936
|
toolbarOpts: a,
|
|
40829
40937
|
mathMlOptions: o
|
|
40830
|
-
})] }),
|
|
40938
|
+
})] }), NY = j("span")(({ theme: e }) => ({
|
|
40831
40939
|
paddingRight: e.spacing(1),
|
|
40832
40940
|
paddingTop: e.spacing(3)
|
|
40833
|
-
})),
|
|
40941
|
+
})), PY = j("div")(() => ({
|
|
40834
40942
|
display: "flex",
|
|
40835
40943
|
alignItems: "center"
|
|
40836
|
-
})),
|
|
40944
|
+
})), FY = j("div")(({ theme: e }) => ({
|
|
40837
40945
|
flex: "0 1 auto",
|
|
40838
40946
|
paddingTop: e.spacing(.5),
|
|
40839
40947
|
paddingBottom: 0,
|
|
40840
40948
|
marginRight: 0,
|
|
40841
40949
|
marginLeft: e.spacing(1)
|
|
40842
|
-
})),
|
|
40950
|
+
})), IY = j("div")(({ theme: e }) => ({
|
|
40843
40951
|
flex: "0 1 auto",
|
|
40844
40952
|
paddingTop: e.spacing(2),
|
|
40845
40953
|
paddingLeft: 0,
|
|
40846
40954
|
marginLeft: 0,
|
|
40847
40955
|
marginRight: e.spacing(1)
|
|
40848
|
-
})),
|
|
40956
|
+
})), LY = j("div")(() => ({
|
|
40849
40957
|
margin: 0,
|
|
40850
40958
|
width: "inherit"
|
|
40851
|
-
})),
|
|
40959
|
+
})), RY = j("div")(() => ({
|
|
40852
40960
|
margin: 0,
|
|
40853
40961
|
width: "inherit"
|
|
40854
|
-
})),
|
|
40962
|
+
})), zY = j("div")(({ theme: e }) => ({
|
|
40855
40963
|
flex: "0 1 auto",
|
|
40856
40964
|
paddingTop: e.spacing(2),
|
|
40857
40965
|
paddingLeft: 0,
|
|
40858
40966
|
marginLeft: 0
|
|
40859
|
-
})),
|
|
40967
|
+
})), BY = j("div")(({ theme: e }) => ({
|
|
40860
40968
|
display: "flex",
|
|
40861
40969
|
flex: 1,
|
|
40862
40970
|
flexDirection: "column",
|
|
40863
40971
|
marginRight: e.spacing(1)
|
|
40864
|
-
})),
|
|
40972
|
+
})), VY = j("div")(({ theme: e }) => ({
|
|
40865
40973
|
fontSize: e.typography.fontSize - 2,
|
|
40866
40974
|
color: e.palette.error.main
|
|
40867
|
-
})),
|
|
40975
|
+
})), HY = class extends mt.Component {
|
|
40868
40976
|
static propTypes = {
|
|
40869
40977
|
noLabels: H.default.bool,
|
|
40870
40978
|
useLetterOrdering: H.default.bool,
|
|
@@ -40946,20 +41054,20 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
40946
41054
|
});
|
|
40947
41055
|
};
|
|
40948
41056
|
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(
|
|
41057
|
+
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;
|
|
41058
|
+
return /* @__PURE__ */ P(PY, { children: [
|
|
41059
|
+
i > 0 && /* @__PURE__ */ N(NY, {
|
|
40952
41060
|
type: "title",
|
|
40953
41061
|
children: s ? String.fromCharCode(96 + i).toUpperCase() : i
|
|
40954
41062
|
}),
|
|
40955
|
-
/* @__PURE__ */ N(
|
|
41063
|
+
/* @__PURE__ */ N(FY, { children: /* @__PURE__ */ N(C, {
|
|
40956
41064
|
onChange: this.onCheckedChange,
|
|
40957
41065
|
label: o ? "" : "Correct",
|
|
40958
41066
|
checked: !!e.correct,
|
|
40959
41067
|
error: v
|
|
40960
41068
|
}) }),
|
|
40961
|
-
/* @__PURE__ */ P(
|
|
40962
|
-
/* @__PURE__ */ N(
|
|
41069
|
+
/* @__PURE__ */ P(BY, { children: [
|
|
41070
|
+
/* @__PURE__ */ N(DY, {
|
|
40963
41071
|
label: o ? "" : "Label",
|
|
40964
41072
|
value: e.label,
|
|
40965
41073
|
onChange: this.onLabelChange,
|
|
@@ -40976,8 +41084,8 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
40976
41084
|
maxImageWidth: b,
|
|
40977
41085
|
maxImageHeight: x
|
|
40978
41086
|
}),
|
|
40979
|
-
_ && /* @__PURE__ */ N(
|
|
40980
|
-
p && /* @__PURE__ */ N(
|
|
41087
|
+
_ && /* @__PURE__ */ N(VY, { children: _ }),
|
|
41088
|
+
p && /* @__PURE__ */ N(MY, {
|
|
40981
41089
|
...e.feedback,
|
|
40982
41090
|
correct: e.correct,
|
|
40983
41091
|
defaults: r,
|
|
@@ -40985,16 +41093,16 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
40985
41093
|
toolbarOpts: g
|
|
40986
41094
|
})
|
|
40987
41095
|
] }),
|
|
40988
|
-
p && /* @__PURE__ */ N(
|
|
41096
|
+
p && /* @__PURE__ */ N(IY, { children: /* @__PURE__ */ N(SY, {
|
|
40989
41097
|
label: o ? "" : "Feedback",
|
|
40990
|
-
children: /* @__PURE__ */ N(
|
|
41098
|
+
children: /* @__PURE__ */ N(LY, { children: /* @__PURE__ */ N(vY, {
|
|
40991
41099
|
onChange: this.onFeedbackTypeChange,
|
|
40992
41100
|
value: e.feedback
|
|
40993
41101
|
}) })
|
|
40994
41102
|
}) }),
|
|
40995
|
-
m && /* @__PURE__ */ N(
|
|
41103
|
+
m && /* @__PURE__ */ N(zY, { children: /* @__PURE__ */ N(SY, {
|
|
40996
41104
|
label: o ? "" : "Delete",
|
|
40997
|
-
children: /* @__PURE__ */ N(
|
|
41105
|
+
children: /* @__PURE__ */ N(RY, { children: /* @__PURE__ */ N(uS, {
|
|
40998
41106
|
"aria-label": "delete",
|
|
40999
41107
|
onClick: n,
|
|
41000
41108
|
size: "large",
|
|
@@ -41003,21 +41111,21 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
41003
41111
|
}) })
|
|
41004
41112
|
] });
|
|
41005
41113
|
}
|
|
41006
|
-
},
|
|
41114
|
+
}, UY = Object.defineProperty, WY = (e, t) => {
|
|
41007
41115
|
let n = {};
|
|
41008
|
-
for (var r in e)
|
|
41116
|
+
for (var r in e) UY(n, r, {
|
|
41009
41117
|
get: e[r],
|
|
41010
41118
|
enumerable: !0
|
|
41011
41119
|
});
|
|
41012
|
-
return t ||
|
|
41013
|
-
},
|
|
41120
|
+
return t || UY(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
41121
|
+
}, GY = j("div")(() => ({
|
|
41014
41122
|
display: "flex",
|
|
41015
41123
|
flexDirection: "column",
|
|
41016
41124
|
position: "relative"
|
|
41017
|
-
})),
|
|
41125
|
+
})), KY = j("div")(() => ({
|
|
41018
41126
|
display: "flex",
|
|
41019
41127
|
justifyContent: "space-between"
|
|
41020
|
-
})),
|
|
41128
|
+
})), 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
41129
|
static propTypes = {
|
|
41022
41130
|
mode: H.default.oneOf(["tabbed", "inline"]),
|
|
41023
41131
|
secondary: H.default.oneOfType([H.default.arrayOf(H.default.node), H.default.node]),
|
|
@@ -41035,7 +41143,7 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
41035
41143
|
} catch (e) {
|
|
41036
41144
|
console.log(e.toString());
|
|
41037
41145
|
}
|
|
41038
|
-
return /* @__PURE__ */ P(
|
|
41146
|
+
return /* @__PURE__ */ P(GY, {
|
|
41039
41147
|
style: {
|
|
41040
41148
|
minHeight: i,
|
|
41041
41149
|
minWidth: a,
|
|
@@ -41043,28 +41151,28 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
41043
41151
|
maxWidth: s
|
|
41044
41152
|
},
|
|
41045
41153
|
children: [
|
|
41046
|
-
e === "inline" && /* @__PURE__ */ P(
|
|
41154
|
+
e === "inline" && /* @__PURE__ */ P(KY, { children: [/* @__PURE__ */ N(JY, {
|
|
41047
41155
|
className: "design-container",
|
|
41048
41156
|
children: n
|
|
41049
|
-
}), l && /* @__PURE__ */ N(
|
|
41157
|
+
}), l && /* @__PURE__ */ N(YY, {
|
|
41050
41158
|
className: "settings-container",
|
|
41051
41159
|
children: t
|
|
41052
41160
|
})] }),
|
|
41053
|
-
e === "tabbed" && l && /* @__PURE__ */ P(
|
|
41161
|
+
e === "tabbed" && l && /* @__PURE__ */ P(qJ, {
|
|
41054
41162
|
onChange: this.onTabsChange,
|
|
41055
41163
|
contentClassName: "content-container",
|
|
41056
41164
|
indicatorColor: "primary",
|
|
41057
|
-
children: [/* @__PURE__ */ N(
|
|
41165
|
+
children: [/* @__PURE__ */ N(qY, {
|
|
41058
41166
|
title: "Design",
|
|
41059
41167
|
className: "design-container",
|
|
41060
41168
|
children: n
|
|
41061
|
-
}), /* @__PURE__ */ N(
|
|
41169
|
+
}), /* @__PURE__ */ N(qY, {
|
|
41062
41170
|
title: "Settings",
|
|
41063
41171
|
className: "settings-container",
|
|
41064
41172
|
children: t
|
|
41065
41173
|
})]
|
|
41066
41174
|
}),
|
|
41067
|
-
e === "tabbed" && !l && /* @__PURE__ */ N(
|
|
41175
|
+
e === "tabbed" && !l && /* @__PURE__ */ N(qY, {
|
|
41068
41176
|
className: "design-container",
|
|
41069
41177
|
children: n
|
|
41070
41178
|
})
|
|
@@ -41074,18 +41182,18 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
|
|
|
41074
41182
|
};
|
|
41075
41183
|
//#endregion
|
|
41076
41184
|
//#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
|
|
41185
|
+
function ZY() {
|
|
41186
|
+
return ZY = Object.assign ? Object.assign.bind() : function(e) {
|
|
41079
41187
|
for (var t = 1; t < arguments.length; t++) {
|
|
41080
41188
|
var n = arguments[t];
|
|
41081
41189
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
41082
41190
|
}
|
|
41083
41191
|
return e;
|
|
41084
|
-
},
|
|
41192
|
+
}, ZY.apply(null, arguments);
|
|
41085
41193
|
}
|
|
41086
41194
|
//#endregion
|
|
41087
41195
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
41088
|
-
function
|
|
41196
|
+
function QY(e, t) {
|
|
41089
41197
|
if (e == null) return {};
|
|
41090
41198
|
var n = {};
|
|
41091
41199
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -41096,19 +41204,19 @@ function UY(e, t) {
|
|
|
41096
41204
|
}
|
|
41097
41205
|
//#endregion
|
|
41098
41206
|
//#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
|
|
41207
|
+
function $Y(e, t) {
|
|
41208
|
+
return $Y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
41101
41209
|
return e.__proto__ = t, e;
|
|
41102
|
-
},
|
|
41210
|
+
}, $Y(e, t);
|
|
41103
41211
|
}
|
|
41104
41212
|
//#endregion
|
|
41105
41213
|
//#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,
|
|
41214
|
+
function eX(e, t) {
|
|
41215
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, $Y(e, t);
|
|
41108
41216
|
}
|
|
41109
41217
|
//#endregion
|
|
41110
41218
|
//#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
|
|
41219
|
+
var tX = (function() {
|
|
41112
41220
|
if (typeof Map < "u") return Map;
|
|
41113
41221
|
function e(e, t) {
|
|
41114
41222
|
var n = -1;
|
|
@@ -41147,34 +41255,34 @@ var KY = (function() {
|
|
|
41147
41255
|
}
|
|
41148
41256
|
}, t;
|
|
41149
41257
|
}();
|
|
41150
|
-
})(),
|
|
41258
|
+
})(), nX = typeof window < "u" && typeof document < "u" && window.document === document, rX = (function() {
|
|
41151
41259
|
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(
|
|
41260
|
+
})(), iX = (function() {
|
|
41261
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(rX) : function(e) {
|
|
41154
41262
|
return setTimeout(function() {
|
|
41155
41263
|
return e(Date.now());
|
|
41156
41264
|
}, 1e3 / 60);
|
|
41157
41265
|
};
|
|
41158
|
-
})(),
|
|
41159
|
-
function
|
|
41266
|
+
})(), aX = 2;
|
|
41267
|
+
function oX(e, t) {
|
|
41160
41268
|
var n = !1, r = !1, i = 0;
|
|
41161
41269
|
function a() {
|
|
41162
41270
|
n && (n = !1, e()), r && s();
|
|
41163
41271
|
}
|
|
41164
41272
|
function o() {
|
|
41165
|
-
|
|
41273
|
+
iX(a);
|
|
41166
41274
|
}
|
|
41167
41275
|
function s() {
|
|
41168
41276
|
var e = Date.now();
|
|
41169
41277
|
if (n) {
|
|
41170
|
-
if (e - i <
|
|
41278
|
+
if (e - i < aX) return;
|
|
41171
41279
|
r = !0;
|
|
41172
41280
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
41173
41281
|
i = e;
|
|
41174
41282
|
}
|
|
41175
41283
|
return s;
|
|
41176
41284
|
}
|
|
41177
|
-
var
|
|
41285
|
+
var sX = 20, cX = [
|
|
41178
41286
|
"top",
|
|
41179
41287
|
"right",
|
|
41180
41288
|
"bottom",
|
|
@@ -41183,9 +41291,9 @@ var QY = 20, $Y = [
|
|
|
41183
41291
|
"height",
|
|
41184
41292
|
"size",
|
|
41185
41293
|
"weight"
|
|
41186
|
-
],
|
|
41294
|
+
], lX = typeof MutationObserver < "u", uX = function() {
|
|
41187
41295
|
function e() {
|
|
41188
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
41296
|
+
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
41297
|
}
|
|
41190
41298
|
return e.prototype.addObserver = function(e) {
|
|
41191
41299
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -41202,23 +41310,23 @@ var QY = 20, $Y = [
|
|
|
41202
41310
|
return e.broadcastActive();
|
|
41203
41311
|
}), e.length > 0;
|
|
41204
41312
|
}, e.prototype.connect_ = function() {
|
|
41205
|
-
!
|
|
41313
|
+
!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
41314
|
attributes: !0,
|
|
41207
41315
|
childList: !0,
|
|
41208
41316
|
characterData: !0,
|
|
41209
41317
|
subtree: !0
|
|
41210
41318
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
41211
41319
|
}, e.prototype.disconnect_ = function() {
|
|
41212
|
-
!
|
|
41320
|
+
!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
41321
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
41214
41322
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
41215
|
-
|
|
41323
|
+
cX.some(function(e) {
|
|
41216
41324
|
return !!~n.indexOf(e);
|
|
41217
41325
|
}) && this.refresh();
|
|
41218
41326
|
}, e.getInstance = function() {
|
|
41219
41327
|
return this.instance_ ||= new e(), this.instance_;
|
|
41220
41328
|
}, e.instance_ = null, e;
|
|
41221
|
-
}(),
|
|
41329
|
+
}(), dX = (function(e, t) {
|
|
41222
41330
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
41223
41331
|
var i = r[n];
|
|
41224
41332
|
Object.defineProperty(e, i, {
|
|
@@ -41229,19 +41337,19 @@ var QY = 20, $Y = [
|
|
|
41229
41337
|
});
|
|
41230
41338
|
}
|
|
41231
41339
|
return e;
|
|
41232
|
-
}),
|
|
41233
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
41234
|
-
}),
|
|
41235
|
-
function
|
|
41340
|
+
}), fX = (function(e) {
|
|
41341
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || rX;
|
|
41342
|
+
}), pX = CX(0, 0, 0, 0);
|
|
41343
|
+
function mX(e) {
|
|
41236
41344
|
return parseFloat(e) || 0;
|
|
41237
41345
|
}
|
|
41238
|
-
function
|
|
41346
|
+
function hX(e) {
|
|
41239
41347
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
41240
41348
|
var r = e["border-" + n + "-width"];
|
|
41241
|
-
return t +
|
|
41349
|
+
return t + mX(r);
|
|
41242
41350
|
}, 0);
|
|
41243
41351
|
}
|
|
41244
|
-
function
|
|
41352
|
+
function gX(e) {
|
|
41245
41353
|
for (var t = [
|
|
41246
41354
|
"top",
|
|
41247
41355
|
"right",
|
|
@@ -41249,40 +41357,40 @@ function sX(e) {
|
|
|
41249
41357
|
"left"
|
|
41250
41358
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
41251
41359
|
var a = i[r], o = e["padding-" + a];
|
|
41252
|
-
n[a] =
|
|
41360
|
+
n[a] = mX(o);
|
|
41253
41361
|
}
|
|
41254
41362
|
return n;
|
|
41255
41363
|
}
|
|
41256
|
-
function
|
|
41364
|
+
function _X(e) {
|
|
41257
41365
|
var t = e.getBBox();
|
|
41258
|
-
return
|
|
41366
|
+
return CX(0, 0, t.width, t.height);
|
|
41259
41367
|
}
|
|
41260
|
-
function
|
|
41368
|
+
function vX(e) {
|
|
41261
41369
|
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 -=
|
|
41370
|
+
if (!t && !n) return pX;
|
|
41371
|
+
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);
|
|
41372
|
+
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
41373
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
41266
41374
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
41267
41375
|
}
|
|
41268
|
-
return
|
|
41376
|
+
return CX(i.left, i.top, s, c);
|
|
41269
41377
|
}
|
|
41270
|
-
var
|
|
41378
|
+
var yX = (function() {
|
|
41271
41379
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
41272
|
-
return e instanceof
|
|
41380
|
+
return e instanceof fX(e).SVGGraphicsElement;
|
|
41273
41381
|
} : function(e) {
|
|
41274
|
-
return e instanceof
|
|
41382
|
+
return e instanceof fX(e).SVGElement && typeof e.getBBox == "function";
|
|
41275
41383
|
};
|
|
41276
41384
|
})();
|
|
41277
|
-
function
|
|
41278
|
-
return e ===
|
|
41385
|
+
function bX(e) {
|
|
41386
|
+
return e === fX(e).document.documentElement;
|
|
41279
41387
|
}
|
|
41280
|
-
function
|
|
41281
|
-
return
|
|
41388
|
+
function xX(e) {
|
|
41389
|
+
return nX ? yX(e) ? _X(e) : vX(e) : pX;
|
|
41282
41390
|
}
|
|
41283
|
-
function
|
|
41391
|
+
function SX(e) {
|
|
41284
41392
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
41285
|
-
return
|
|
41393
|
+
return dX(a, {
|
|
41286
41394
|
x: t,
|
|
41287
41395
|
y: n,
|
|
41288
41396
|
width: r,
|
|
@@ -41293,7 +41401,7 @@ function pX(e) {
|
|
|
41293
41401
|
left: t
|
|
41294
41402
|
}), a;
|
|
41295
41403
|
}
|
|
41296
|
-
function
|
|
41404
|
+
function CX(e, t, n, r) {
|
|
41297
41405
|
return {
|
|
41298
41406
|
x: e,
|
|
41299
41407
|
y: t,
|
|
@@ -41301,42 +41409,42 @@ function mX(e, t, n, r) {
|
|
|
41301
41409
|
height: r
|
|
41302
41410
|
};
|
|
41303
41411
|
}
|
|
41304
|
-
var
|
|
41412
|
+
var wX = function() {
|
|
41305
41413
|
function e(e) {
|
|
41306
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
41414
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = CX(0, 0, 0, 0), this.target = e;
|
|
41307
41415
|
}
|
|
41308
41416
|
return e.prototype.isActive = function() {
|
|
41309
|
-
var e =
|
|
41417
|
+
var e = xX(this.target);
|
|
41310
41418
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
41311
41419
|
}, e.prototype.broadcastRect = function() {
|
|
41312
41420
|
var e = this.contentRect_;
|
|
41313
41421
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
41314
41422
|
}, e;
|
|
41315
|
-
}(),
|
|
41423
|
+
}(), TX = function() {
|
|
41316
41424
|
function e(e, t) {
|
|
41317
|
-
var n =
|
|
41318
|
-
|
|
41425
|
+
var n = SX(t);
|
|
41426
|
+
dX(this, {
|
|
41319
41427
|
target: e,
|
|
41320
41428
|
contentRect: n
|
|
41321
41429
|
});
|
|
41322
41430
|
}
|
|
41323
41431
|
return e;
|
|
41324
|
-
}(),
|
|
41432
|
+
}(), EX = function() {
|
|
41325
41433
|
function e(e, t, n) {
|
|
41326
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
41434
|
+
if (this.activeObservations_ = [], this.observations_ = new tX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
41327
41435
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
41328
41436
|
}
|
|
41329
41437
|
return e.prototype.observe = function(e) {
|
|
41330
41438
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41331
41439
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
41332
|
-
if (!(e instanceof
|
|
41440
|
+
if (!(e instanceof fX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
41333
41441
|
var t = this.observations_;
|
|
41334
|
-
t.has(e) || (t.set(e, new
|
|
41442
|
+
t.has(e) || (t.set(e, new wX(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
41335
41443
|
}
|
|
41336
41444
|
}, e.prototype.unobserve = function(e) {
|
|
41337
41445
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41338
41446
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
41339
|
-
if (!(e instanceof
|
|
41447
|
+
if (!(e instanceof fX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
41340
41448
|
var t = this.observations_;
|
|
41341
41449
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
41342
41450
|
}
|
|
@@ -41350,7 +41458,7 @@ var hX = function() {
|
|
|
41350
41458
|
}, e.prototype.broadcastActive = function() {
|
|
41351
41459
|
if (this.hasActive()) {
|
|
41352
41460
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
41353
|
-
return new
|
|
41461
|
+
return new TX(e.target, e.broadcastRect());
|
|
41354
41462
|
});
|
|
41355
41463
|
this.callback_.call(e, t, e), this.clearActive();
|
|
41356
41464
|
}
|
|
@@ -41359,12 +41467,12 @@ var hX = function() {
|
|
|
41359
41467
|
}, e.prototype.hasActive = function() {
|
|
41360
41468
|
return this.activeObservations_.length > 0;
|
|
41361
41469
|
}, e;
|
|
41362
|
-
}(),
|
|
41470
|
+
}(), DX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new tX(), OX = function() {
|
|
41363
41471
|
function e(t) {
|
|
41364
41472
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
41365
41473
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41366
|
-
var n = new
|
|
41367
|
-
|
|
41474
|
+
var n = new EX(t, uX.getInstance(), this);
|
|
41475
|
+
DX.set(this, n);
|
|
41368
41476
|
}
|
|
41369
41477
|
return e;
|
|
41370
41478
|
}();
|
|
@@ -41373,27 +41481,27 @@ var hX = function() {
|
|
|
41373
41481
|
"unobserve",
|
|
41374
41482
|
"disconnect"
|
|
41375
41483
|
].forEach(function(e) {
|
|
41376
|
-
|
|
41484
|
+
OX.prototype[e] = function() {
|
|
41377
41485
|
var t;
|
|
41378
|
-
return (t =
|
|
41486
|
+
return (t = DX.get(this))[e].apply(t, arguments);
|
|
41379
41487
|
};
|
|
41380
41488
|
});
|
|
41381
|
-
var
|
|
41382
|
-
return
|
|
41383
|
-
})(),
|
|
41489
|
+
var kX = (function() {
|
|
41490
|
+
return rX.ResizeObserver === void 0 ? OX : rX.ResizeObserver;
|
|
41491
|
+
})(), AX = [
|
|
41384
41492
|
"client",
|
|
41385
41493
|
"offset",
|
|
41386
41494
|
"scroll",
|
|
41387
41495
|
"bounds",
|
|
41388
41496
|
"margin"
|
|
41389
41497
|
];
|
|
41390
|
-
function
|
|
41498
|
+
function jX(e) {
|
|
41391
41499
|
var t = [];
|
|
41392
|
-
return
|
|
41500
|
+
return AX.forEach(function(n) {
|
|
41393
41501
|
e[n] && t.push(n);
|
|
41394
41502
|
}), t;
|
|
41395
41503
|
}
|
|
41396
|
-
function
|
|
41504
|
+
function MX(e, t) {
|
|
41397
41505
|
var n = {};
|
|
41398
41506
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
41399
41507
|
top: e.clientTop,
|
|
@@ -41432,14 +41540,14 @@ function CX(e, t) {
|
|
|
41432
41540
|
}
|
|
41433
41541
|
return n;
|
|
41434
41542
|
}
|
|
41435
|
-
function
|
|
41543
|
+
function NX(e) {
|
|
41436
41544
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
41437
41545
|
}
|
|
41438
|
-
function
|
|
41546
|
+
function PX(e) {
|
|
41439
41547
|
return function(t) {
|
|
41440
41548
|
var n, r;
|
|
41441
41549
|
return r = n = /*#__PURE__*/ function(n) {
|
|
41442
|
-
|
|
41550
|
+
eX(r, n);
|
|
41443
41551
|
function r() {
|
|
41444
41552
|
var t, r = [...arguments];
|
|
41445
41553
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -41450,24 +41558,24 @@ function TX(e) {
|
|
|
41450
41558
|
bounds: {},
|
|
41451
41559
|
margin: {}
|
|
41452
41560
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
41453
|
-
var r =
|
|
41561
|
+
var r = MX(t._node, e || jX(t.props));
|
|
41454
41562
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
41455
41563
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
41456
41564
|
});
|
|
41457
41565
|
}, t._handleRef = function(e) {
|
|
41458
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
41566
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = NX(t._node);
|
|
41459
41567
|
var n = t.props.innerRef;
|
|
41460
41568
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
41461
41569
|
}, t;
|
|
41462
41570
|
}
|
|
41463
41571
|
var i = r.prototype;
|
|
41464
41572
|
return i.componentDidMount = function() {
|
|
41465
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
41573
|
+
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
41574
|
}, i.componentWillUnmount = function() {
|
|
41467
41575
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
41468
41576
|
}, i.render = function() {
|
|
41469
41577
|
var e = this.props;
|
|
41470
|
-
return e.innerRef, e.onResize, _t(t,
|
|
41578
|
+
return e.innerRef, e.onResize, _t(t, ZY({}, QY(e, ["innerRef", "onResize"]), {
|
|
41471
41579
|
measureRef: this._handleRef,
|
|
41472
41580
|
measure: this.measure,
|
|
41473
41581
|
contentRect: this.state.contentRect
|
|
@@ -41484,7 +41592,7 @@ function TX(e) {
|
|
|
41484
41592
|
}, r;
|
|
41485
41593
|
};
|
|
41486
41594
|
}
|
|
41487
|
-
var
|
|
41595
|
+
var FX = PX()(function(e) {
|
|
41488
41596
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
41489
41597
|
return i({
|
|
41490
41598
|
measure: t,
|
|
@@ -41492,10 +41600,10 @@ var EX = TX()(function(e) {
|
|
|
41492
41600
|
contentRect: r
|
|
41493
41601
|
});
|
|
41494
41602
|
});
|
|
41495
|
-
|
|
41603
|
+
FX.displayName = "Measure", FX.propTypes.children = H.default.func;
|
|
41496
41604
|
//#endregion
|
|
41497
41605
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
41498
|
-
var
|
|
41606
|
+
var IX = j("div")(() => ({
|
|
41499
41607
|
backgroundColor: g.white(),
|
|
41500
41608
|
border: `2px solid ${g.border()}`,
|
|
41501
41609
|
display: "flex",
|
|
@@ -41505,7 +41613,7 @@ var DX = j("div")(() => ({
|
|
|
41505
41613
|
maxWidth: "300px",
|
|
41506
41614
|
padding: "20px 4px 4px 20px",
|
|
41507
41615
|
zIndex: 99
|
|
41508
|
-
})),
|
|
41616
|
+
})), LX = class extends mt.Component {
|
|
41509
41617
|
static propTypes = {
|
|
41510
41618
|
className: H.default.string,
|
|
41511
41619
|
children: H.default.oneOfType([H.default.arrayOf(H.default.node), H.default.node]).isRequired
|
|
@@ -41513,19 +41621,19 @@ var DX = j("div")(() => ({
|
|
|
41513
41621
|
static defaultProps = {};
|
|
41514
41622
|
render() {
|
|
41515
41623
|
let { className: e, children: t } = this.props;
|
|
41516
|
-
return /* @__PURE__ */ N(
|
|
41624
|
+
return /* @__PURE__ */ N(IX, {
|
|
41517
41625
|
className: e,
|
|
41518
41626
|
children: t
|
|
41519
41627
|
});
|
|
41520
41628
|
}
|
|
41521
|
-
},
|
|
41629
|
+
}, RX = o({
|
|
41522
41630
|
typography: { fontFamily: "inherit" },
|
|
41523
41631
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
41524
41632
|
backgroundColor: "#e0e0e0",
|
|
41525
41633
|
color: "#000000",
|
|
41526
41634
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
41527
41635
|
} } } }
|
|
41528
|
-
}),
|
|
41636
|
+
}), zX = class extends mt.Component {
|
|
41529
41637
|
static propTypes = {
|
|
41530
41638
|
children: H.default.oneOfType([
|
|
41531
41639
|
H.default.string,
|
|
@@ -41558,19 +41666,19 @@ var DX = j("div")(() => ({
|
|
|
41558
41666
|
return /* @__PURE__ */ N(S, {
|
|
41559
41667
|
injectFirst: !0,
|
|
41560
41668
|
children: /* @__PURE__ */ N(qe, {
|
|
41561
|
-
theme:
|
|
41562
|
-
children: /* @__PURE__ */ N(
|
|
41669
|
+
theme: RX,
|
|
41670
|
+
children: /* @__PURE__ */ N(FX, {
|
|
41563
41671
|
bounds: !0,
|
|
41564
41672
|
onResize: this.onResize,
|
|
41565
41673
|
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(
|
|
41674
|
+
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
41675
|
className: "settings-box",
|
|
41568
41676
|
children: n
|
|
41569
41677
|
}) : n;
|
|
41570
41678
|
return /* @__PURE__ */ P("div", {
|
|
41571
41679
|
ref: e,
|
|
41572
41680
|
className: "main-container extraCSSRules",
|
|
41573
|
-
children: [a?.rules ? /* @__PURE__ */ N("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ N(
|
|
41681
|
+
children: [a?.rules ? /* @__PURE__ */ N("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ N(XY, {
|
|
41574
41682
|
mode: o,
|
|
41575
41683
|
secondary: s,
|
|
41576
41684
|
dimensions: i,
|
|
@@ -41582,36 +41690,36 @@ var DX = j("div")(() => ({
|
|
|
41582
41690
|
})
|
|
41583
41691
|
});
|
|
41584
41692
|
}
|
|
41585
|
-
},
|
|
41586
|
-
ConfigLayout: () =>
|
|
41587
|
-
LayoutContents: () =>
|
|
41588
|
-
}),
|
|
41589
|
-
firstAvailableIndex: () =>
|
|
41590
|
-
normalizeChoices: () =>
|
|
41591
|
-
}),
|
|
41693
|
+
}, BX = PX("bounds")(zX), VX = /* @__PURE__ */ WY({
|
|
41694
|
+
ConfigLayout: () => BX,
|
|
41695
|
+
LayoutContents: () => XY
|
|
41696
|
+
}), HX = /* @__PURE__ */ WY({
|
|
41697
|
+
firstAvailableIndex: () => WX,
|
|
41698
|
+
normalizeChoices: () => UX
|
|
41699
|
+
}), UX = (e) => {
|
|
41592
41700
|
let t = e.choices.map((e, t) => (e.value ||= `${t}`, e));
|
|
41593
41701
|
return {
|
|
41594
41702
|
...e,
|
|
41595
41703
|
choices: t
|
|
41596
41704
|
};
|
|
41597
|
-
},
|
|
41705
|
+
}, WX = (e, t) => ct(e, `${t}`) ? WX(e, t + 1) : `${t}`, GX = j("div")(() => ({
|
|
41598
41706
|
display: "flex",
|
|
41599
41707
|
width: "100%",
|
|
41600
41708
|
justifyContent: "space-between"
|
|
41601
|
-
})),
|
|
41709
|
+
})), KX = j(ge)(({ theme: e }) => ({
|
|
41602
41710
|
color: "rgba(0, 0, 0, 0.89)",
|
|
41603
41711
|
fontSize: e.typography.fontSize,
|
|
41604
41712
|
paddingTop: e.spacing(2)
|
|
41605
|
-
})),
|
|
41713
|
+
})), qX = j(EJ)(({ checked: e }) => ({
|
|
41606
41714
|
"&.Mui-checked .MuiSwitch-thumb": { color: `${g.tertiary()} !important` },
|
|
41607
41715
|
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${g.tertiaryLight()} !important` },
|
|
41608
41716
|
"& .MuiSwitch-track": { backgroundColor: e ? `${g.tertiaryLight()} !important` : void 0 }
|
|
41609
|
-
})),
|
|
41717
|
+
})), JX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ P(GX, { children: [/* @__PURE__ */ N(KX, { children: n }), /* @__PURE__ */ N(qX, {
|
|
41610
41718
|
checked: e,
|
|
41611
41719
|
disabled: t,
|
|
41612
41720
|
onChange: (e) => r(e.target.checked)
|
|
41613
41721
|
})] });
|
|
41614
|
-
|
|
41722
|
+
JX.propTypes = {
|
|
41615
41723
|
checked: H.default.bool,
|
|
41616
41724
|
disabled: H.default.bool,
|
|
41617
41725
|
label: H.default.string.isRequired,
|
|
@@ -41619,20 +41727,20 @@ zX.propTypes = {
|
|
|
41619
41727
|
};
|
|
41620
41728
|
//#endregion
|
|
41621
41729
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
41622
|
-
var
|
|
41730
|
+
var YX = j(Te)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
41623
41731
|
color: "rgba(0, 0, 0, 0.89)",
|
|
41624
41732
|
fontSize: e.typography.fontSize - 2,
|
|
41625
41733
|
left: "-5px",
|
|
41626
41734
|
position: "relative"
|
|
41627
|
-
} })),
|
|
41735
|
+
} })), XX = j(He)(() => ({ color: `${g.tertiary()} !important` })), ZX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ N(YX, {
|
|
41628
41736
|
value: t,
|
|
41629
|
-
control: /* @__PURE__ */ N(
|
|
41737
|
+
control: /* @__PURE__ */ N(XX, {
|
|
41630
41738
|
checked: n,
|
|
41631
41739
|
onChange: r
|
|
41632
41740
|
}),
|
|
41633
41741
|
label: e
|
|
41634
41742
|
});
|
|
41635
|
-
|
|
41743
|
+
ZX.propTypes = {
|
|
41636
41744
|
label: H.default.string,
|
|
41637
41745
|
value: H.default.string,
|
|
41638
41746
|
checked: H.default.bool,
|
|
@@ -41640,26 +41748,26 @@ HX.propTypes = {
|
|
|
41640
41748
|
};
|
|
41641
41749
|
//#endregion
|
|
41642
41750
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
41643
|
-
var
|
|
41751
|
+
var QX = (0, Pt.default)("pie-lib:config-ui:settings:panel"), $X = {
|
|
41644
41752
|
label: H.default.string,
|
|
41645
41753
|
value: H.default.string
|
|
41646
|
-
},
|
|
41754
|
+
}, eZ = {
|
|
41647
41755
|
label: H.default.string,
|
|
41648
41756
|
value: H.default.string,
|
|
41649
41757
|
onChange: H.default.func
|
|
41650
|
-
},
|
|
41758
|
+
}, tZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ N(XJ, {
|
|
41651
41759
|
checked: t,
|
|
41652
41760
|
label: e,
|
|
41653
41761
|
onChange: (e) => {
|
|
41654
41762
|
n(e.target.checked);
|
|
41655
41763
|
}
|
|
41656
41764
|
});
|
|
41657
|
-
|
|
41765
|
+
tZ.propTypes = {
|
|
41658
41766
|
label: H.default.string,
|
|
41659
41767
|
value: H.default.bool,
|
|
41660
41768
|
onChange: H.default.func
|
|
41661
41769
|
};
|
|
41662
|
-
var
|
|
41770
|
+
var nZ = j(cY)(({ theme: e }) => ({
|
|
41663
41771
|
marginTop: e.spacing(.5),
|
|
41664
41772
|
paddingBottom: e.spacing(.5),
|
|
41665
41773
|
width: "100%",
|
|
@@ -41670,29 +41778,29 @@ var qX = j($J)(({ theme: e }) => ({
|
|
|
41670
41778
|
marginTop: e.spacing(2.5)
|
|
41671
41779
|
},
|
|
41672
41780
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
41673
|
-
})),
|
|
41781
|
+
})), rZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ N(nZ, {
|
|
41674
41782
|
direction: "horizontal",
|
|
41675
|
-
customLabel:
|
|
41783
|
+
customLabel: ZX,
|
|
41676
41784
|
value: t,
|
|
41677
41785
|
header: e,
|
|
41678
41786
|
opts: r,
|
|
41679
41787
|
onChange: n
|
|
41680
41788
|
});
|
|
41681
|
-
|
|
41682
|
-
...
|
|
41683
|
-
choices: H.default.arrayOf(H.default.shape(
|
|
41789
|
+
rZ.propTypes = {
|
|
41790
|
+
...eZ,
|
|
41791
|
+
choices: H.default.arrayOf(H.default.shape($X))
|
|
41684
41792
|
};
|
|
41685
|
-
var
|
|
41793
|
+
var iZ = rZ, aZ = j("p")(({ theme: e }) => ({
|
|
41686
41794
|
margin: 0,
|
|
41687
41795
|
fontSize: e.typography.fontSize
|
|
41688
|
-
})),
|
|
41796
|
+
})), oZ = j(oM)(({ theme: e }) => ({
|
|
41689
41797
|
marginTop: e.spacing(.5),
|
|
41690
41798
|
border: "2px solid lightgrey",
|
|
41691
41799
|
padding: `0 ${e.spacing(1)}`,
|
|
41692
41800
|
borderRadius: "4px"
|
|
41693
|
-
})),
|
|
41801
|
+
})), sZ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
41694
41802
|
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(
|
|
41803
|
+
return /* @__PURE__ */ P("div", { children: [e && /* @__PURE__ */ N(aZ, { children: e }), /* @__PURE__ */ N(oZ, {
|
|
41696
41804
|
value: t || r && r[0],
|
|
41697
41805
|
onChange: ({ target: e }) => n(e.value),
|
|
41698
41806
|
input: /* @__PURE__ */ N(Lj, { id: `dropdown-${e}` }),
|
|
@@ -41707,14 +41815,14 @@ var YX = JX, XX = j("p")(({ theme: e }) => ({
|
|
|
41707
41815
|
}, t))
|
|
41708
41816
|
})] });
|
|
41709
41817
|
};
|
|
41710
|
-
|
|
41711
|
-
...
|
|
41818
|
+
sZ.propTypes = {
|
|
41819
|
+
...eZ,
|
|
41712
41820
|
choices: H.default.arrayOf(H.default.string)
|
|
41713
41821
|
};
|
|
41714
|
-
var
|
|
41822
|
+
var cZ = j(me)(({ theme: e }) => ({
|
|
41715
41823
|
marginRight: e.spacing(3),
|
|
41716
41824
|
marginTop: e.spacing(1)
|
|
41717
|
-
})),
|
|
41825
|
+
})), lZ = ({ label: e }) => /* @__PURE__ */ N(cZ, { children: e }), uZ = j(eY)(({ theme: e }) => ({
|
|
41718
41826
|
width: "35%",
|
|
41719
41827
|
marginRight: e.spacing(3),
|
|
41720
41828
|
marginTop: e.spacing(1),
|
|
@@ -41725,7 +41833,7 @@ var $X = j(me)(({ theme: e }) => ({
|
|
|
41725
41833
|
padding: `0 ${e.spacing(1)}`,
|
|
41726
41834
|
backgroundColor: "transparent"
|
|
41727
41835
|
}
|
|
41728
|
-
})),
|
|
41836
|
+
})), dZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ N(uZ, {
|
|
41729
41837
|
variant: "standard",
|
|
41730
41838
|
label: e || "Label",
|
|
41731
41839
|
value: t,
|
|
@@ -41736,45 +41844,45 @@ var $X = j(me)(({ theme: e }) => ({
|
|
|
41736
41844
|
showErrorWhenOutsideRange: !0,
|
|
41737
41845
|
disableUnderline: !0
|
|
41738
41846
|
});
|
|
41739
|
-
|
|
41740
|
-
...
|
|
41847
|
+
dZ.propTypes = {
|
|
41848
|
+
...eZ,
|
|
41741
41849
|
suffix: H.default.string,
|
|
41742
41850
|
min: H.default.number,
|
|
41743
41851
|
max: H.default.number,
|
|
41744
41852
|
value: H.default.number
|
|
41745
|
-
},
|
|
41746
|
-
var
|
|
41853
|
+
}, lZ.propTypes = { ...eZ };
|
|
41854
|
+
var fZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ N(JX, {
|
|
41747
41855
|
label: t,
|
|
41748
41856
|
checked: !!n,
|
|
41749
41857
|
disabled: !!e,
|
|
41750
41858
|
toggle: r
|
|
41751
41859
|
});
|
|
41752
|
-
|
|
41753
|
-
...
|
|
41860
|
+
fZ.propTypes = {
|
|
41861
|
+
...eZ,
|
|
41754
41862
|
value: H.default.bool
|
|
41755
41863
|
};
|
|
41756
|
-
var
|
|
41757
|
-
toggle:
|
|
41758
|
-
radio:
|
|
41759
|
-
dropdown:
|
|
41760
|
-
numberField:
|
|
41761
|
-
checkbox:
|
|
41762
|
-
textField:
|
|
41763
|
-
},
|
|
41864
|
+
var pZ = {
|
|
41865
|
+
toggle: fZ,
|
|
41866
|
+
radio: iZ,
|
|
41867
|
+
dropdown: sZ,
|
|
41868
|
+
numberField: dZ,
|
|
41869
|
+
checkbox: tZ,
|
|
41870
|
+
textField: lZ
|
|
41871
|
+
}, mZ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), hZ = j("div")(({ theme: e }) => ({
|
|
41764
41872
|
color: "#495B8F",
|
|
41765
41873
|
fontSize: e.typography.fontSize + 2,
|
|
41766
41874
|
fontWeight: 600,
|
|
41767
41875
|
marginBottom: e.spacing(1)
|
|
41768
|
-
})),
|
|
41876
|
+
})), gZ = j("p")(({ theme: e }) => ({
|
|
41769
41877
|
fontSize: e.typography.fontSize,
|
|
41770
41878
|
marginBottom: 0
|
|
41771
|
-
})),
|
|
41879
|
+
})), _Z = (e) => {
|
|
41772
41880
|
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
41773
41881
|
let { isConfigProperty: o, ...s } = ot(e, r || n), c = ot(o ? i : t, n), l = {
|
|
41774
41882
|
...s,
|
|
41775
41883
|
key: n,
|
|
41776
41884
|
value: c
|
|
41777
|
-
}, u =
|
|
41885
|
+
}, u = pZ[l.type];
|
|
41778
41886
|
return /* @__PURE__ */ N(u, {
|
|
41779
41887
|
...l,
|
|
41780
41888
|
onChange: (e) => a(n, e, o)
|
|
@@ -41783,18 +41891,18 @@ var iZ = {
|
|
|
41783
41891
|
let n = e[t];
|
|
41784
41892
|
if (!n) return null;
|
|
41785
41893
|
let { type: r, label: i, fields: a, choices: s } = n;
|
|
41786
|
-
return r === "numberFields" ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(
|
|
41894
|
+
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
41895
|
};
|
|
41788
|
-
return /* @__PURE__ */ P(
|
|
41896
|
+
return /* @__PURE__ */ P(mZ, { children: [/* @__PURE__ */ N(hZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
41789
41897
|
};
|
|
41790
|
-
|
|
41898
|
+
_Z.propTypes = {
|
|
41791
41899
|
model: H.default.object,
|
|
41792
41900
|
label: H.default.string,
|
|
41793
41901
|
group: H.default.object,
|
|
41794
41902
|
configuration: H.default.object,
|
|
41795
41903
|
onChange: H.default.func
|
|
41796
41904
|
};
|
|
41797
|
-
var
|
|
41905
|
+
var vZ = class extends mt.Component {
|
|
41798
41906
|
static propTypes = {
|
|
41799
41907
|
model: H.default.object,
|
|
41800
41908
|
configuration: H.default.object,
|
|
@@ -41808,13 +41916,13 @@ var lZ = class extends mt.Component {
|
|
|
41808
41916
|
onChangeConfiguration: () => {}
|
|
41809
41917
|
};
|
|
41810
41918
|
change = (e, t, n = !1) => {
|
|
41811
|
-
|
|
41919
|
+
QX("[changeModel]", e, t);
|
|
41812
41920
|
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
|
|
41813
41921
|
n ? (ut(o, e, t), i(o, e)) : (ut(a, e, t), r(a, e));
|
|
41814
41922
|
};
|
|
41815
41923
|
render() {
|
|
41816
41924
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
41817
|
-
return
|
|
41925
|
+
return QX("render:", t), /* @__PURE__ */ P("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ N(_Z, {
|
|
41818
41926
|
label: r,
|
|
41819
41927
|
model: t,
|
|
41820
41928
|
configuration: n,
|
|
@@ -41822,59 +41930,59 @@ var lZ = class extends mt.Component {
|
|
|
41822
41930
|
onChange: this.change
|
|
41823
41931
|
}, r) : null), r] });
|
|
41824
41932
|
}
|
|
41825
|
-
},
|
|
41826
|
-
Panel: () =>
|
|
41827
|
-
checkbox: () =>
|
|
41828
|
-
checkboxes: () =>
|
|
41829
|
-
dropdown: () =>
|
|
41830
|
-
numberField: () =>
|
|
41831
|
-
numberFields: () =>
|
|
41832
|
-
radio: () =>
|
|
41833
|
-
textField: () =>
|
|
41834
|
-
toggle: () =>
|
|
41835
|
-
}),
|
|
41933
|
+
}, yZ = /* @__PURE__ */ WY({
|
|
41934
|
+
Panel: () => vZ,
|
|
41935
|
+
checkbox: () => DZ,
|
|
41936
|
+
checkboxes: () => OZ,
|
|
41937
|
+
dropdown: () => wZ,
|
|
41938
|
+
numberField: () => TZ,
|
|
41939
|
+
numberFields: () => EZ,
|
|
41940
|
+
radio: () => CZ,
|
|
41941
|
+
textField: () => bZ,
|
|
41942
|
+
toggle: () => xZ
|
|
41943
|
+
}), bZ = (e, t = !0) => ({
|
|
41836
41944
|
label: e,
|
|
41837
41945
|
type: "textField",
|
|
41838
41946
|
isConfigProperty: t
|
|
41839
|
-
}),
|
|
41947
|
+
}), xZ = (e, t = !1, n = !1) => ({
|
|
41840
41948
|
type: "toggle",
|
|
41841
41949
|
label: e,
|
|
41842
41950
|
isConfigProperty: t,
|
|
41843
41951
|
disabled: n
|
|
41844
|
-
}),
|
|
41952
|
+
}), SZ = (e) => typeof e == "string" ? {
|
|
41845
41953
|
label: e,
|
|
41846
41954
|
value: e
|
|
41847
|
-
} : e,
|
|
41955
|
+
} : e, CZ = function() {
|
|
41848
41956
|
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
41849
41957
|
return {
|
|
41850
41958
|
type: "radio",
|
|
41851
41959
|
label: e,
|
|
41852
|
-
choices: t && t.map((e) =>
|
|
41960
|
+
choices: t && t.map((e) => SZ(e)),
|
|
41853
41961
|
isConfigProperty: n
|
|
41854
41962
|
};
|
|
41855
|
-
},
|
|
41963
|
+
}, wZ = (e, t, n = !1) => ({
|
|
41856
41964
|
type: "dropdown",
|
|
41857
41965
|
label: e,
|
|
41858
41966
|
choices: t,
|
|
41859
41967
|
isConfigProperty: n
|
|
41860
|
-
}),
|
|
41968
|
+
}), TZ = (e, t, n = !1) => ({
|
|
41861
41969
|
...t,
|
|
41862
41970
|
label: e,
|
|
41863
41971
|
type: "numberField",
|
|
41864
41972
|
isConfigProperty: n
|
|
41865
|
-
}),
|
|
41866
|
-
t[e] =
|
|
41973
|
+
}), EZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
41974
|
+
t[e] = TZ(t[e].label, t[e], n);
|
|
41867
41975
|
}), {
|
|
41868
41976
|
type: "numberFields",
|
|
41869
41977
|
label: e,
|
|
41870
41978
|
fields: t
|
|
41871
|
-
}),
|
|
41979
|
+
}), DZ = (e, t, n = !1) => ({
|
|
41872
41980
|
...t,
|
|
41873
41981
|
label: e,
|
|
41874
41982
|
type: "checkbox",
|
|
41875
41983
|
isConfigProperty: n
|
|
41876
|
-
}),
|
|
41877
|
-
t[e] =
|
|
41984
|
+
}), OZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
41985
|
+
t[e] = DZ(t[e].label, t[e], n);
|
|
41878
41986
|
}), {
|
|
41879
41987
|
type: "checkboxes",
|
|
41880
41988
|
label: e,
|
|
@@ -41882,88 +41990,88 @@ var lZ = class extends mt.Component {
|
|
|
41882
41990
|
});
|
|
41883
41991
|
//#endregion
|
|
41884
41992
|
//#region ../../lib-react/config-ui/dist/index.js
|
|
41885
|
-
function
|
|
41993
|
+
function kZ(e) {
|
|
41886
41994
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
41887
41995
|
}
|
|
41888
|
-
function
|
|
41889
|
-
return !e ||
|
|
41996
|
+
function AZ(e, t) {
|
|
41997
|
+
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
41998
|
}
|
|
41891
|
-
var
|
|
41999
|
+
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
42000
|
let { minAnswerChoices: t, maxAnswerChoices: n } = e;
|
|
41893
42001
|
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:
|
|
42002
|
+
}, { Panel: LZ, toggle: RZ, radio: zZ, dropdown: BZ } = yZ, VZ = 9, HZ = j(jZ)(({ theme: e }) => ({
|
|
41895
42003
|
width: "100%",
|
|
41896
42004
|
paddingTop: e.spacing(2),
|
|
41897
42005
|
marginBottom: e.spacing(2)
|
|
41898
|
-
})),
|
|
42006
|
+
})), UZ = j(jZ)(({ theme: e }) => ({
|
|
41899
42007
|
flex: 1,
|
|
41900
42008
|
marginTop: e.spacing(1.5),
|
|
41901
42009
|
paddingTop: e.spacing(2),
|
|
41902
42010
|
marginLeft: e.spacing(3.5)
|
|
41903
|
-
})),
|
|
42011
|
+
})), WZ = j(jZ)(({ theme: e }) => ({
|
|
41904
42012
|
display: "flex",
|
|
41905
42013
|
flexDirection: "column",
|
|
41906
42014
|
marginBottom: e.spacing(1),
|
|
41907
42015
|
width: "100%"
|
|
41908
|
-
})),
|
|
42016
|
+
})), GZ = j(l)(({ theme: e }) => ({
|
|
41909
42017
|
marginTop: e.spacing(1),
|
|
41910
42018
|
float: "right"
|
|
41911
|
-
})),
|
|
42019
|
+
})), KZ = j(GZ)({
|
|
41912
42020
|
cursor: "not-allowed",
|
|
41913
42021
|
pointerEvents: "all",
|
|
41914
42022
|
backgroundColor: g.disabled(),
|
|
41915
42023
|
"&:hover": { backgroundColor: g.disabled() },
|
|
41916
42024
|
"&:focus": { backgroundColor: g.disabled() }
|
|
41917
|
-
}),
|
|
42025
|
+
}), qZ = j(Pe)({
|
|
41918
42026
|
display: "flex",
|
|
41919
42027
|
alignItems: "center"
|
|
41920
|
-
}),
|
|
42028
|
+
}), JZ = j(me)(({ theme: e }) => ({
|
|
41921
42029
|
fontSize: e.typography.fontSize + 2,
|
|
41922
42030
|
marginRight: e.spacing(1)
|
|
41923
|
-
})),
|
|
42031
|
+
})), YZ = j(vJ)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
41924
42032
|
fontSize: e.typography.fontSize - 2,
|
|
41925
42033
|
whiteSpace: "pre",
|
|
41926
42034
|
maxWidth: "500px"
|
|
41927
|
-
} })),
|
|
42035
|
+
} })), XZ = j("div")(({ theme: e }) => ({
|
|
41928
42036
|
fontSize: e.typography.fontSize - 2,
|
|
41929
42037
|
color: e.palette.error.main,
|
|
41930
42038
|
paddingTop: e.spacing(1)
|
|
41931
|
-
})),
|
|
42039
|
+
})), ZZ = (e) => {
|
|
41932
42040
|
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 =
|
|
42041
|
+
ce && (O = VZ);
|
|
41934
42042
|
let Ee = (e = {}) => ({
|
|
41935
42043
|
...we,
|
|
41936
42044
|
...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 &&
|
|
42045
|
+
}), A = IZ(n), De = E && E.prompt, Oe = re && re.prompt, ke = O && pe?.length >= O ? `Only ${O} allowed maximum` : "", Ae = {
|
|
42046
|
+
choiceMode: g.settings && zZ(g.label, ["checkbox", "radio"]),
|
|
42047
|
+
"sequentialChoiceLabels.enabled": w.settings && RZ(w.label, !0),
|
|
42048
|
+
choicePrefix: _.settings && zZ(_.label, ["numbers", "letters"]),
|
|
42049
|
+
partialScoring: v.settings && RZ(v.label),
|
|
42050
|
+
lockChoiceOrder: y.settings && RZ(y.label),
|
|
42051
|
+
feedbackEnabled: m.settings && RZ(m.label),
|
|
42052
|
+
choicesLayout: T.settings && BZ(T.label, [
|
|
41945
42053
|
"vertical",
|
|
41946
42054
|
"grid",
|
|
41947
42055
|
"horizontal"
|
|
41948
42056
|
]),
|
|
41949
|
-
gridColumns: T.settings && t.choicesLayout === "grid" && Ce.length > 0 &&
|
|
41950
|
-
"language.enabled": D.settings &&
|
|
41951
|
-
language: D.settings && D.enabled &&
|
|
42057
|
+
gridColumns: T.settings && t.choicesLayout === "grid" && Ce.length > 0 && BZ(ne.label, Ce),
|
|
42058
|
+
"language.enabled": D.settings && RZ(D.label, !0),
|
|
42059
|
+
language: D.settings && D.enabled && BZ(se.label, se.options)
|
|
41952
42060
|
}, 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(
|
|
42061
|
+
teacherInstructionsEnabled: b.settings && RZ(b.label),
|
|
42062
|
+
studentInstructionsEnabled: x.settings && RZ(x.label),
|
|
42063
|
+
promptEnabled: ie.settings && RZ(ie.label),
|
|
42064
|
+
rationaleEnabled: S.settings && RZ(S.label),
|
|
42065
|
+
spellCheckEnabled: te.settings && RZ(te.label),
|
|
42066
|
+
scoringType: C.settings && zZ(C.label, ["auto", "rubric"]),
|
|
42067
|
+
rubricEnabled: ae?.settings && RZ(ae?.label)
|
|
42068
|
+
};
|
|
42069
|
+
return /* @__PURE__ */ P(VX.ConfigLayout, {
|
|
41962
42070
|
dimensions: p,
|
|
41963
42071
|
hideSettings: ee,
|
|
41964
42072
|
extraCSSRules: ge,
|
|
41965
42073
|
classes: {},
|
|
41966
|
-
settings: /* @__PURE__ */ N(
|
|
42074
|
+
settings: /* @__PURE__ */ N(LZ, {
|
|
41967
42075
|
model: t,
|
|
41968
42076
|
onChangeModel: l,
|
|
41969
42077
|
configuration: n,
|
|
@@ -41974,9 +42082,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
41974
42082
|
}
|
|
41975
42083
|
}),
|
|
41976
42084
|
children: [
|
|
41977
|
-
le && /* @__PURE__ */ P(
|
|
42085
|
+
le && /* @__PURE__ */ P(HZ, {
|
|
41978
42086
|
label: b.label,
|
|
41979
|
-
children: [/* @__PURE__ */ N(
|
|
42087
|
+
children: [/* @__PURE__ */ N($q, {
|
|
41980
42088
|
markup: t.teacherInstructions || "",
|
|
41981
42089
|
onChange: d,
|
|
41982
42090
|
imageSupport: s,
|
|
@@ -41991,11 +42099,11 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
41991
42099
|
uploadSoundSupport: c,
|
|
41992
42100
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
41993
42101
|
mathMlOptions: oe
|
|
41994
|
-
}), Se && /* @__PURE__ */ N(
|
|
42102
|
+
}), Se && /* @__PURE__ */ N(XZ, { children: Se })]
|
|
41995
42103
|
}),
|
|
41996
|
-
de && /* @__PURE__ */ P(
|
|
42104
|
+
de && /* @__PURE__ */ P(HZ, {
|
|
41997
42105
|
label: ie.label,
|
|
41998
|
-
children: [/* @__PURE__ */ N(
|
|
42106
|
+
children: [/* @__PURE__ */ N($q, {
|
|
41999
42107
|
markup: t.prompt,
|
|
42000
42108
|
onChange: r,
|
|
42001
42109
|
imageSupport: s,
|
|
@@ -42010,22 +42118,22 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42010
42118
|
uploadSoundSupport: c,
|
|
42011
42119
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42012
42120
|
mathMlOptions: oe
|
|
42013
|
-
}), be && /* @__PURE__ */ N(
|
|
42121
|
+
}), be && /* @__PURE__ */ N(XZ, { children: be })]
|
|
42014
42122
|
}),
|
|
42015
|
-
/* @__PURE__ */ P(
|
|
42123
|
+
/* @__PURE__ */ P(qZ, { children: [/* @__PURE__ */ N(JZ, {
|
|
42016
42124
|
component: "div",
|
|
42017
42125
|
children: "Choices"
|
|
42018
|
-
}), /* @__PURE__ */ N(
|
|
42126
|
+
}), /* @__PURE__ */ N(YZ, {
|
|
42019
42127
|
disableFocusListener: !0,
|
|
42020
42128
|
disableTouchListener: !0,
|
|
42021
42129
|
placement: "right",
|
|
42022
42130
|
title: A,
|
|
42023
|
-
children: /* @__PURE__ */ N(
|
|
42131
|
+
children: /* @__PURE__ */ N(FZ, {
|
|
42024
42132
|
fontSize: "small",
|
|
42025
42133
|
color: "primary"
|
|
42026
42134
|
})
|
|
42027
42135
|
})] }),
|
|
42028
|
-
pe.map((e, r) => /* @__PURE__ */ P(
|
|
42136
|
+
pe.map((e, r) => /* @__PURE__ */ P(WZ, { children: [/* @__PURE__ */ N(HY, {
|
|
42029
42137
|
index: r + 1,
|
|
42030
42138
|
useLetterOrdering: t.choicePrefix === "letters",
|
|
42031
42139
|
mode: t.choiceMode,
|
|
@@ -42047,9 +42155,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42047
42155
|
maxImageHeight: re && re.choices || Oe,
|
|
42048
42156
|
uploadSoundSupport: c,
|
|
42049
42157
|
mathMlOptions: oe
|
|
42050
|
-
}, r), ue && /* @__PURE__ */ P(
|
|
42158
|
+
}, r), ue && /* @__PURE__ */ P(UZ, {
|
|
42051
42159
|
label: S.label,
|
|
42052
|
-
children: [/* @__PURE__ */ N(
|
|
42160
|
+
children: [/* @__PURE__ */ N($q, {
|
|
42053
42161
|
markup: e.rationale || "",
|
|
42054
42162
|
onChange: (t) => i(r, {
|
|
42055
42163
|
...e,
|
|
@@ -42065,19 +42173,19 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42065
42173
|
uploadSoundSupport: c,
|
|
42066
42174
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42067
42175
|
mathMlOptions: oe
|
|
42068
|
-
}), xe?.[e.value] && /* @__PURE__ */ N(
|
|
42176
|
+
}), xe?.[e.value] && /* @__PURE__ */ N(XZ, { children: xe?.[e.value] })]
|
|
42069
42177
|
}, `rationale-${r}`)] }, `choice-${r}`)),
|
|
42070
|
-
ye && /* @__PURE__ */ N(
|
|
42071
|
-
_e && /* @__PURE__ */ N(
|
|
42072
|
-
f.settings && /* @__PURE__ */ N(
|
|
42178
|
+
ye && /* @__PURE__ */ N(XZ, { children: ye }),
|
|
42179
|
+
_e && /* @__PURE__ */ N(XZ, { children: _e }),
|
|
42180
|
+
f.settings && /* @__PURE__ */ N(YZ, {
|
|
42073
42181
|
title: ke,
|
|
42074
|
-
children: O && pe?.length >= O ? /* @__PURE__ */ N(
|
|
42182
|
+
children: O && pe?.length >= O ? /* @__PURE__ */ N(KZ, {
|
|
42075
42183
|
variant: "contained",
|
|
42076
42184
|
color: "primary",
|
|
42077
42185
|
onClick: o,
|
|
42078
42186
|
disabled: !0,
|
|
42079
42187
|
children: f.label
|
|
42080
|
-
}) : /* @__PURE__ */ N(
|
|
42188
|
+
}) : /* @__PURE__ */ N(GZ, {
|
|
42081
42189
|
variant: "contained",
|
|
42082
42190
|
color: "primary",
|
|
42083
42191
|
onClick: o,
|
|
@@ -42086,7 +42194,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42086
42194
|
})
|
|
42087
42195
|
]
|
|
42088
42196
|
});
|
|
42089
|
-
},
|
|
42197
|
+
}, QZ = class extends mt.Component {
|
|
42090
42198
|
static propTypes = {
|
|
42091
42199
|
model: H.default.object.isRequired,
|
|
42092
42200
|
configuration: H.default.object.isRequired,
|
|
@@ -42109,9 +42217,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42109
42217
|
};
|
|
42110
42218
|
onAddChoice = () => {
|
|
42111
42219
|
let { model: e, configuration: t, onModelChanged: n } = this.props, { maxAnswerChoices: r } = t || {}, { limitChoicesNumber: i } = e || {};
|
|
42112
|
-
i && (r =
|
|
42220
|
+
i && (r = VZ), !(r && e.choices.length >= r) && (e.choices.push({
|
|
42113
42221
|
label: "",
|
|
42114
|
-
value:
|
|
42222
|
+
value: HX.firstAvailableIndex(e.choices.map((e) => e.value), 0),
|
|
42115
42223
|
feedback: { type: "none" }
|
|
42116
42224
|
}), n({ choices: e.choices }));
|
|
42117
42225
|
};
|
|
@@ -42145,12 +42253,12 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42145
42253
|
};
|
|
42146
42254
|
render() {
|
|
42147
42255
|
let { configuration: { minAnswerChoices: e } = {} } = this.props, { showWarning: t } = this.state;
|
|
42148
|
-
return /* @__PURE__ */ P(mt.Fragment, { children: [/* @__PURE__ */ N(
|
|
42256
|
+
return /* @__PURE__ */ P(mt.Fragment, { children: [/* @__PURE__ */ N(kJ, {
|
|
42149
42257
|
open: t,
|
|
42150
42258
|
title: "Warning",
|
|
42151
42259
|
text: `There can't be less than ${e || 0} choices.`,
|
|
42152
42260
|
onConfirm: () => this.setState({ showWarning: !1 })
|
|
42153
|
-
}), /* @__PURE__ */ N(
|
|
42261
|
+
}), /* @__PURE__ */ N(ZZ, {
|
|
42154
42262
|
...this.props,
|
|
42155
42263
|
onChangeModel: this.onModelChanged,
|
|
42156
42264
|
onRemoveChoice: this.onRemoveChoice,
|
|
@@ -42160,7 +42268,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42160
42268
|
onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
|
|
42161
42269
|
})] });
|
|
42162
42270
|
}
|
|
42163
|
-
},
|
|
42271
|
+
}, $Z = {
|
|
42164
42272
|
model: {
|
|
42165
42273
|
choiceMode: "checkbox",
|
|
42166
42274
|
choicePrefix: "letters",
|
|
@@ -42307,7 +42415,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42307
42415
|
options: []
|
|
42308
42416
|
}
|
|
42309
42417
|
}
|
|
42310
|
-
},
|
|
42418
|
+
}, eQ = (0, Pt.default)("multiple-choice:configure"), tQ = (e, t = 0) => {
|
|
42311
42419
|
if (!e || e.length === 0) {
|
|
42312
42420
|
let e = [];
|
|
42313
42421
|
for (let n = 0; n < t; n++) e.push({
|
|
@@ -42321,35 +42429,35 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42321
42429
|
return e;
|
|
42322
42430
|
}
|
|
42323
42431
|
return e;
|
|
42324
|
-
},
|
|
42325
|
-
let n = rt(e,
|
|
42432
|
+
}, nQ = (e, t) => {
|
|
42433
|
+
let n = rt(e, $Z.configuration);
|
|
42326
42434
|
return {
|
|
42327
42435
|
configuration: n,
|
|
42328
42436
|
model: {
|
|
42329
42437
|
...t,
|
|
42330
|
-
choices:
|
|
42438
|
+
choices: tQ(t && t.choices || [], n && n.answerChoiceCount)
|
|
42331
42439
|
}
|
|
42332
42440
|
};
|
|
42333
|
-
},
|
|
42441
|
+
}, rQ = class e extends HTMLElement {
|
|
42334
42442
|
static createDefaultModel = (e = {}) => {
|
|
42335
|
-
let t =
|
|
42336
|
-
|
|
42443
|
+
let t = HX.normalizeChoices({
|
|
42444
|
+
...$Z.model,
|
|
42337
42445
|
...e,
|
|
42338
|
-
choices:
|
|
42446
|
+
choices: tQ(e && e.choices || [])
|
|
42339
42447
|
});
|
|
42340
|
-
return t.choicesLayout = e.choicesLayout || e.verticalMode === !1 && "horizontal" ||
|
|
42448
|
+
return t.choicesLayout = e.choicesLayout || e.verticalMode === !1 && "horizontal" || $Z.model.choicesLayout, t;
|
|
42341
42449
|
};
|
|
42342
42450
|
constructor() {
|
|
42343
|
-
super(), this._root = null, this._reactContainer = null, this._model = e.createDefaultModel(), this._configuration =
|
|
42451
|
+
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
42452
|
}
|
|
42345
42453
|
set model(t) {
|
|
42346
42454
|
this._model = e.createDefaultModel(t), this._render();
|
|
42347
42455
|
}
|
|
42348
42456
|
set configuration(e) {
|
|
42349
|
-
let t =
|
|
42457
|
+
let t = nQ(e, this._model);
|
|
42350
42458
|
this.onModelChanged(t.model);
|
|
42351
42459
|
let n = {
|
|
42352
|
-
|
|
42460
|
+
...$Z.configuration,
|
|
42353
42461
|
...t.configuration
|
|
42354
42462
|
};
|
|
42355
42463
|
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 +42479,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42371
42479
|
}, this._render(), this.dispatchModelUpdated(t);
|
|
42372
42480
|
}
|
|
42373
42481
|
onConfigurationChanged(e) {
|
|
42374
|
-
this._configuration =
|
|
42482
|
+
this._configuration = nQ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
|
|
42375
42483
|
}
|
|
42376
42484
|
insertImage(e) {
|
|
42377
42485
|
this.dispatchEvent(new Lt(e));
|
|
@@ -42386,9 +42494,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42386
42494
|
this.dispatchEvent(new Rt(e, t));
|
|
42387
42495
|
}
|
|
42388
42496
|
_render() {
|
|
42389
|
-
|
|
42497
|
+
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
42498
|
try {
|
|
42391
|
-
let e = mt.createElement(
|
|
42499
|
+
let e = mt.createElement(QZ, {
|
|
42392
42500
|
model: this._model,
|
|
42393
42501
|
configuration: this._configuration,
|
|
42394
42502
|
onModelChanged: this.onModelChanged,
|
|
@@ -42403,19 +42511,19 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
|
|
|
42403
42511
|
delete: this.onDeleteSound.bind(this)
|
|
42404
42512
|
}
|
|
42405
42513
|
});
|
|
42406
|
-
this._root || (
|
|
42514
|
+
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
42515
|
} catch (e) {
|
|
42408
42516
|
throw console.error("❌ [multiple-choice-configure] Render error:", e), console.error("Error stack:", e.stack), e;
|
|
42409
42517
|
}
|
|
42410
42518
|
}
|
|
42411
42519
|
connectedCallback() {
|
|
42412
|
-
|
|
42520
|
+
eQ("connectedCallback - Component connected to DOM"), eQ("connectedCallback - Model:", this._model ? "present" : "missing"), eQ("connectedCallback - Configuration:", this._configuration ? "present" : "missing"), this._render();
|
|
42413
42521
|
}
|
|
42414
42522
|
disconnectedCallback() {
|
|
42415
|
-
|
|
42523
|
+
eQ("disconnectedCallback - Component disconnected from DOM"), this._root &&= (eQ("disconnectedCallback - Unmounting React root"), this._root.unmount(), null), this._reactContainer &&= null;
|
|
42416
42524
|
}
|
|
42417
42525
|
};
|
|
42418
42526
|
//#endregion
|
|
42419
|
-
export {
|
|
42527
|
+
export { rQ as default };
|
|
42420
42528
|
|
|
42421
42529
|
//# sourceMappingURL=index.js.map
|