@pie-element/math-templated 7.1.1-next.16 → 7.1.1-next.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/author/index.js +757 -670
- package/dist/browser/author/index.js.map +1 -1
- package/package.json +7 -5
|
@@ -33586,8 +33586,8 @@ eg.create({
|
|
|
33586
33586
|
})) ?? null };
|
|
33587
33587
|
}
|
|
33588
33588
|
});
|
|
33589
|
-
var uB = "placeholder", dB = new q("tiptap__placeholder")
|
|
33590
|
-
function
|
|
33589
|
+
var uB = "placeholder", dB = new q("tiptap__placeholder");
|
|
33590
|
+
function fB(e) {
|
|
33591
33591
|
let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
|
|
33592
33592
|
return o && u.push(l), nf.node(i, i + a.nodeSize, {
|
|
33593
33593
|
class: u.join(" "),
|
|
@@ -33599,156 +33599,198 @@ function pB(e) {
|
|
|
33599
33599
|
}) : n
|
|
33600
33600
|
});
|
|
33601
33601
|
}
|
|
33602
|
-
function
|
|
33602
|
+
function pB(e, t) {
|
|
33603
|
+
return typeof e == "function" ? e(t) : e;
|
|
33604
|
+
}
|
|
33605
|
+
function mB({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
|
|
33606
|
+
let { anchor: s } = i, c = [], l = e.isEmpty;
|
|
33607
|
+
return r.nodesBetween(a, o, (r, i) => {
|
|
33608
|
+
let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && ch(r);
|
|
33609
|
+
return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(fB({
|
|
33610
|
+
editor: e,
|
|
33611
|
+
isEmptyDoc: l,
|
|
33612
|
+
dataAttribute: n,
|
|
33613
|
+
hasAnchor: a,
|
|
33614
|
+
placeholder: t.placeholder,
|
|
33615
|
+
classes: {
|
|
33616
|
+
emptyEditor: t.emptyEditorClass,
|
|
33617
|
+
emptyNode: pB(t.emptyNodeClass, {
|
|
33618
|
+
editor: e,
|
|
33619
|
+
node: r,
|
|
33620
|
+
pos: i,
|
|
33621
|
+
hasAnchor: a
|
|
33622
|
+
})
|
|
33623
|
+
},
|
|
33624
|
+
node: r,
|
|
33625
|
+
pos: i
|
|
33626
|
+
})), t.includeChildren;
|
|
33627
|
+
}), c;
|
|
33628
|
+
}
|
|
33629
|
+
function hB({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
|
|
33603
33630
|
if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
|
|
33604
|
-
let { anchor: a } = i, o = [], s = e.isEmpty
|
|
33605
|
-
emptyEditor: t.emptyEditorClass,
|
|
33606
|
-
emptyNode: t.emptyNodeClass
|
|
33607
|
-
};
|
|
33631
|
+
let { anchor: a } = i, o = [], s = e.isEmpty;
|
|
33608
33632
|
if (t.showOnlyCurrent && !t.includeChildren) {
|
|
33609
|
-
let i = r.resolve(a),
|
|
33610
|
-
if (
|
|
33611
|
-
let r = a >=
|
|
33612
|
-
o.push(
|
|
33633
|
+
let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
|
|
33634
|
+
if (c && c.type.isTextblock && ch(c)) {
|
|
33635
|
+
let r = a >= l && a <= l + c.nodeSize;
|
|
33636
|
+
o.push(fB({
|
|
33613
33637
|
editor: e,
|
|
33614
33638
|
isEmptyDoc: s,
|
|
33615
33639
|
dataAttribute: n,
|
|
33616
33640
|
hasAnchor: r,
|
|
33617
33641
|
placeholder: t.placeholder,
|
|
33618
|
-
classes:
|
|
33619
|
-
|
|
33620
|
-
|
|
33642
|
+
classes: {
|
|
33643
|
+
emptyEditor: t.emptyEditorClass,
|
|
33644
|
+
emptyNode: pB(t.emptyNodeClass, {
|
|
33645
|
+
editor: e,
|
|
33646
|
+
node: c,
|
|
33647
|
+
pos: l,
|
|
33648
|
+
hasAnchor: r
|
|
33649
|
+
})
|
|
33650
|
+
},
|
|
33651
|
+
node: c,
|
|
33652
|
+
pos: l
|
|
33621
33653
|
}));
|
|
33622
33654
|
}
|
|
33623
|
-
} else {
|
|
33624
|
-
|
|
33625
|
-
|
|
33626
|
-
|
|
33627
|
-
|
|
33628
|
-
|
|
33629
|
-
|
|
33630
|
-
|
|
33631
|
-
|
|
33632
|
-
placeholder: t.placeholder,
|
|
33633
|
-
classes: c,
|
|
33634
|
-
node: r,
|
|
33635
|
-
pos: i
|
|
33636
|
-
})), t.includeChildren;
|
|
33637
|
-
});
|
|
33638
|
-
}
|
|
33655
|
+
} else o.push(...mB({
|
|
33656
|
+
editor: e,
|
|
33657
|
+
options: t,
|
|
33658
|
+
dataAttribute: n,
|
|
33659
|
+
doc: r,
|
|
33660
|
+
selection: i,
|
|
33661
|
+
from: 0,
|
|
33662
|
+
to: r.content.size
|
|
33663
|
+
}));
|
|
33639
33664
|
return of.create(r, o);
|
|
33640
33665
|
}
|
|
33641
|
-
function
|
|
33642
|
-
|
|
33666
|
+
function gB(e, t) {
|
|
33667
|
+
let n = e.resolve(t);
|
|
33668
|
+
if (n.depth === 0) {
|
|
33669
|
+
let e = n.nodeAfter ?? n.nodeBefore;
|
|
33670
|
+
if (!e) return {
|
|
33671
|
+
from: t,
|
|
33672
|
+
to: t
|
|
33673
|
+
};
|
|
33674
|
+
let r = n.nodeAfter ? t : t - e.nodeSize;
|
|
33675
|
+
return {
|
|
33676
|
+
from: r,
|
|
33677
|
+
to: r + e.nodeSize
|
|
33678
|
+
};
|
|
33679
|
+
}
|
|
33680
|
+
let r = n.before(1);
|
|
33681
|
+
return {
|
|
33682
|
+
from: r,
|
|
33683
|
+
to: r + n.node(1).nodeSize
|
|
33684
|
+
};
|
|
33643
33685
|
}
|
|
33644
|
-
function
|
|
33645
|
-
|
|
33646
|
-
|
|
33686
|
+
function _B(e, t) {
|
|
33687
|
+
return {
|
|
33688
|
+
from: Math.max(0, t.from - 1),
|
|
33689
|
+
to: Math.min(e.content.size, t.to - 1)
|
|
33690
|
+
};
|
|
33647
33691
|
}
|
|
33648
|
-
function
|
|
33649
|
-
let
|
|
33650
|
-
|
|
33651
|
-
|
|
33652
|
-
|
|
33653
|
-
|
|
33654
|
-
|
|
33655
|
-
|
|
33656
|
-
|
|
33657
|
-
|
|
33658
|
-
|
|
33659
|
-
|
|
33660
|
-
|
|
33661
|
-
|
|
33692
|
+
function vB(e, t, n) {
|
|
33693
|
+
let r = [];
|
|
33694
|
+
return e.forEach((e, i) => {
|
|
33695
|
+
let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
|
|
33696
|
+
s < n && c > t && r.push({
|
|
33697
|
+
from: a,
|
|
33698
|
+
to: o
|
|
33699
|
+
});
|
|
33700
|
+
}), r;
|
|
33701
|
+
}
|
|
33702
|
+
function yB(e) {
|
|
33703
|
+
if (e.length === 0) return [];
|
|
33704
|
+
let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
|
|
33705
|
+
for (let e = 1; e < t.length; e += 1) {
|
|
33706
|
+
let r = n[n.length - 1], i = t[e];
|
|
33707
|
+
i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
|
|
33662
33708
|
}
|
|
33663
|
-
return
|
|
33709
|
+
return n;
|
|
33664
33710
|
}
|
|
33665
|
-
function
|
|
33666
|
-
|
|
33667
|
-
|
|
33668
|
-
bottom: window.innerHeight
|
|
33669
|
-
} : e.getBoundingClientRect();
|
|
33711
|
+
function bB(e, t) {
|
|
33712
|
+
let n = vB(e, t.from, t.to);
|
|
33713
|
+
return n.push(_B(e, gB(e, t.from))), t.to > t.from ? n.push(_B(e, gB(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(_B(e, gB(e, Math.min(t.from + 1, e.content.size)))), n;
|
|
33670
33714
|
}
|
|
33671
|
-
function
|
|
33672
|
-
let r =
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33676
|
-
|
|
33677
|
-
|
|
33678
|
-
bottom: e.content.size
|
|
33679
|
-
};
|
|
33680
|
-
let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
|
|
33681
|
-
left: s,
|
|
33682
|
-
top: a + 2
|
|
33683
|
-
}), l = t.posAtCoords({
|
|
33684
|
-
left: s,
|
|
33685
|
-
top: o - 2
|
|
33686
|
-
});
|
|
33687
|
-
return {
|
|
33688
|
-
top: c ? c.pos : 0,
|
|
33689
|
-
bottom: l ? l.pos : e.content.size
|
|
33690
|
-
};
|
|
33715
|
+
function xB(e, t, n) {
|
|
33716
|
+
let r = [];
|
|
33717
|
+
if (e.docChanged) {
|
|
33718
|
+
let t = Zm(e);
|
|
33719
|
+
for (let e of t) r.push(...bB(n.doc, e.newRange));
|
|
33720
|
+
}
|
|
33721
|
+
return e.selectionSet && (r.push(_B(n.doc, gB(n.doc, e.mapping.map(t.selection.anchor)))), r.push(_B(n.doc, gB(n.doc, n.selection.anchor)))), yB(r);
|
|
33691
33722
|
}
|
|
33692
|
-
|
|
33693
|
-
|
|
33694
|
-
|
|
33695
|
-
|
|
33696
|
-
|
|
33697
|
-
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
33723
|
+
function SB(e, t, n) {
|
|
33724
|
+
let r = Math.max(0, Math.min(e, n.content.size));
|
|
33725
|
+
return {
|
|
33726
|
+
from: r,
|
|
33727
|
+
to: Math.max(r, Math.min(t, n.content.size))
|
|
33728
|
+
};
|
|
33729
|
+
}
|
|
33730
|
+
function CB({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
|
|
33731
|
+
let s = e;
|
|
33732
|
+
for (let e of t) {
|
|
33733
|
+
let { from: t, to: c } = SB(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
|
|
33734
|
+
l.length && (s = s.remove(l));
|
|
33735
|
+
let u = mB({
|
|
33736
|
+
editor: n,
|
|
33737
|
+
options: r,
|
|
33738
|
+
dataAttribute: i,
|
|
33739
|
+
doc: a,
|
|
33740
|
+
selection: o,
|
|
33741
|
+
from: t,
|
|
33742
|
+
to: c
|
|
33743
|
+
});
|
|
33744
|
+
u.length && (s = s.add(a, u));
|
|
33708
33745
|
}
|
|
33709
|
-
|
|
33710
|
-
|
|
33711
|
-
|
|
33712
|
-
|
|
33713
|
-
|
|
33714
|
-
|
|
33715
|
-
|
|
33716
|
-
|
|
33717
|
-
|
|
33718
|
-
|
|
33719
|
-
|
|
33720
|
-
|
|
33721
|
-
r === null && (r = requestAnimationFrame(() => {
|
|
33722
|
-
r = null;
|
|
33723
|
-
let e = performance.now();
|
|
33724
|
-
e - i >= 150 ? (i = e, n()) : a();
|
|
33725
|
-
}));
|
|
33726
|
-
};
|
|
33727
|
-
return t.addEventListener("scroll", a, { passive: !0 }), n(), {
|
|
33728
|
-
update(t, n) {
|
|
33729
|
-
e.state.doc.content.size !== n.doc.content.size && a();
|
|
33746
|
+
return s;
|
|
33747
|
+
}
|
|
33748
|
+
function wB({ editor: e, options: t, dataAttribute: n }) {
|
|
33749
|
+
return {
|
|
33750
|
+
init(r, i) {
|
|
33751
|
+
return hB({
|
|
33752
|
+
editor: e,
|
|
33753
|
+
options: t,
|
|
33754
|
+
dataAttribute: n,
|
|
33755
|
+
doc: i.doc,
|
|
33756
|
+
selection: i.selection
|
|
33757
|
+
}) ?? of.empty;
|
|
33730
33758
|
},
|
|
33731
|
-
|
|
33732
|
-
r
|
|
33759
|
+
apply(r, i, a, o) {
|
|
33760
|
+
return !r.docChanged && !r.selectionSet ? i : CB({
|
|
33761
|
+
decorations: i.map(r.mapping, r.doc),
|
|
33762
|
+
ranges: xB(r, a, o),
|
|
33763
|
+
editor: e,
|
|
33764
|
+
options: t,
|
|
33765
|
+
dataAttribute: n,
|
|
33766
|
+
doc: o.doc,
|
|
33767
|
+
selection: o.selection
|
|
33768
|
+
});
|
|
33733
33769
|
}
|
|
33734
33770
|
};
|
|
33735
33771
|
}
|
|
33736
|
-
function
|
|
33737
|
-
|
|
33772
|
+
function TB(e) {
|
|
33773
|
+
return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
33774
|
+
}
|
|
33775
|
+
function EB({ editor: e, options: t }) {
|
|
33776
|
+
let n = t.dataAttribute ? `data-${TB(t.dataAttribute)}` : `data-${uB}`, r = t.showOnlyCurrent && !t.includeChildren;
|
|
33738
33777
|
return new K({
|
|
33739
33778
|
key: dB,
|
|
33740
|
-
state:
|
|
33741
|
-
|
|
33742
|
-
|
|
33779
|
+
...r ? {} : { state: wB({
|
|
33780
|
+
editor: e,
|
|
33781
|
+
options: t,
|
|
33782
|
+
dataAttribute: n
|
|
33783
|
+
}) },
|
|
33784
|
+
props: { decorations: r ? ({ doc: r, selection: i }) => hB({
|
|
33743
33785
|
editor: e,
|
|
33744
33786
|
options: t,
|
|
33745
33787
|
dataAttribute: n,
|
|
33746
33788
|
doc: r,
|
|
33747
33789
|
selection: i
|
|
33748
|
-
}) }
|
|
33790
|
+
}) : (n) => t.showOnlyWhenEditable && !e.isEditable ? of.empty : dB.getState(n) ?? of.empty }
|
|
33749
33791
|
});
|
|
33750
33792
|
}
|
|
33751
|
-
var
|
|
33793
|
+
var DB = eg.create({
|
|
33752
33794
|
name: "placeholder",
|
|
33753
33795
|
addOptions() {
|
|
33754
33796
|
return {
|
|
@@ -33762,12 +33804,25 @@ var CB = eg.create({
|
|
|
33762
33804
|
};
|
|
33763
33805
|
},
|
|
33764
33806
|
addProseMirrorPlugins() {
|
|
33765
|
-
return [
|
|
33807
|
+
return [EB({
|
|
33766
33808
|
editor: this.editor,
|
|
33767
33809
|
options: this.options
|
|
33768
33810
|
})];
|
|
33769
33811
|
}
|
|
33770
33812
|
});
|
|
33813
|
+
function OB(e, t) {
|
|
33814
|
+
return !e.selection.empty && !lh(e.selection) && t.isEditable;
|
|
33815
|
+
}
|
|
33816
|
+
function kB(e, t) {
|
|
33817
|
+
return OB(e, t) && !t.isFocused && !t.view.dragging;
|
|
33818
|
+
}
|
|
33819
|
+
function AB() {
|
|
33820
|
+
var e;
|
|
33821
|
+
(e = window.getSelection()) == null || e.removeAllRanges();
|
|
33822
|
+
}
|
|
33823
|
+
function jB(e) {
|
|
33824
|
+
e.focus();
|
|
33825
|
+
}
|
|
33771
33826
|
eg.create({
|
|
33772
33827
|
name: "selection",
|
|
33773
33828
|
addOptions() {
|
|
@@ -33777,13 +33832,25 @@ eg.create({
|
|
|
33777
33832
|
let { editor: e, options: t } = this;
|
|
33778
33833
|
return [new K({
|
|
33779
33834
|
key: new q("selection"),
|
|
33780
|
-
props: {
|
|
33781
|
-
|
|
33782
|
-
|
|
33835
|
+
props: {
|
|
33836
|
+
decorations(n) {
|
|
33837
|
+
return kB(n, e) ? of.create(n.doc, [nf.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
|
|
33838
|
+
},
|
|
33839
|
+
handleDOMEvents: {
|
|
33840
|
+
blur(t) {
|
|
33841
|
+
return OB(t.state, e) && AB(), !1;
|
|
33842
|
+
},
|
|
33843
|
+
focus(t) {
|
|
33844
|
+
return OB(t.state, e) && requestAnimationFrame(() => {
|
|
33845
|
+
!e.isDestroyed && t.hasFocus() && jB(t);
|
|
33846
|
+
}), !1;
|
|
33847
|
+
}
|
|
33848
|
+
}
|
|
33849
|
+
}
|
|
33783
33850
|
})];
|
|
33784
33851
|
}
|
|
33785
33852
|
});
|
|
33786
|
-
function
|
|
33853
|
+
function MB({ types: e, node: t }) {
|
|
33787
33854
|
return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
|
|
33788
33855
|
}
|
|
33789
33856
|
eg.create({
|
|
@@ -33805,7 +33872,7 @@ eg.create({
|
|
|
33805
33872
|
state: {
|
|
33806
33873
|
init: (e, t) => {
|
|
33807
33874
|
let r = t.tr.doc.lastChild;
|
|
33808
|
-
return !
|
|
33875
|
+
return !MB({
|
|
33809
33876
|
node: r,
|
|
33810
33877
|
types: n
|
|
33811
33878
|
});
|
|
@@ -33813,7 +33880,7 @@ eg.create({
|
|
|
33813
33880
|
apply: (e, t) => {
|
|
33814
33881
|
if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
|
|
33815
33882
|
let r = e.doc.lastChild;
|
|
33816
|
-
return !
|
|
33883
|
+
return !MB({
|
|
33817
33884
|
node: r,
|
|
33818
33885
|
types: n
|
|
33819
33886
|
});
|
|
@@ -33848,7 +33915,7 @@ eg.create({
|
|
|
33848
33915
|
};
|
|
33849
33916
|
}
|
|
33850
33917
|
});
|
|
33851
|
-
var
|
|
33918
|
+
var NB = Kh.create({
|
|
33852
33919
|
name: "superscript",
|
|
33853
33920
|
addOptions() {
|
|
33854
33921
|
return { HTMLAttributes: {} };
|
|
@@ -33878,7 +33945,7 @@ var TB = Kh.create({
|
|
|
33878
33945
|
addKeyboardShortcuts() {
|
|
33879
33946
|
return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
|
|
33880
33947
|
}
|
|
33881
|
-
}),
|
|
33948
|
+
}), PB = Kh.create({
|
|
33882
33949
|
name: "subscript",
|
|
33883
33950
|
addOptions() {
|
|
33884
33951
|
return { HTMLAttributes: {} };
|
|
@@ -33908,7 +33975,7 @@ var TB = Kh.create({
|
|
|
33908
33975
|
addKeyboardShortcuts() {
|
|
33909
33976
|
return { "Mod-,": () => this.editor.commands.toggleSubscript() };
|
|
33910
33977
|
}
|
|
33911
|
-
}),
|
|
33978
|
+
}), FB = eg.create({
|
|
33912
33979
|
name: "textAlign",
|
|
33913
33980
|
addOptions() {
|
|
33914
33981
|
return {
|
|
@@ -33950,7 +34017,7 @@ var TB = Kh.create({
|
|
|
33950
34017
|
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
33951
34018
|
};
|
|
33952
34019
|
}
|
|
33953
|
-
}),
|
|
34020
|
+
}), IB = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, LB = Ag.create({
|
|
33954
34021
|
name: "image",
|
|
33955
34022
|
addOptions() {
|
|
33956
34023
|
return {
|
|
@@ -34043,7 +34110,7 @@ var TB = Kh.create({
|
|
|
34043
34110
|
},
|
|
34044
34111
|
addInputRules() {
|
|
34045
34112
|
return [gg({
|
|
34046
|
-
find:
|
|
34113
|
+
find: IB,
|
|
34047
34114
|
type: this.type,
|
|
34048
34115
|
getAttributes: (e) => {
|
|
34049
34116
|
let [, , t, n, r] = e;
|
|
@@ -34055,17 +34122,17 @@ var TB = Kh.create({
|
|
|
34055
34122
|
}
|
|
34056
34123
|
})];
|
|
34057
34124
|
}
|
|
34058
|
-
}),
|
|
34125
|
+
}), RB = DB, zB = {
|
|
34059
34126
|
position: "bottom",
|
|
34060
34127
|
alignment: "left",
|
|
34061
34128
|
alwaysVisible: !1,
|
|
34062
34129
|
showDone: !0,
|
|
34063
34130
|
doneOn: "blur"
|
|
34064
|
-
},
|
|
34131
|
+
}, BB = {
|
|
34065
34132
|
options: {},
|
|
34066
34133
|
respAreaToolbar: () => {},
|
|
34067
34134
|
onHandleAreaChange: () => {}
|
|
34068
|
-
},
|
|
34135
|
+
}, VB = [
|
|
34069
34136
|
"bold",
|
|
34070
34137
|
"italic",
|
|
34071
34138
|
"underline",
|
|
@@ -34087,7 +34154,7 @@ var TB = Kh.create({
|
|
|
34087
34154
|
"h3",
|
|
34088
34155
|
"undo",
|
|
34089
34156
|
"redo"
|
|
34090
|
-
],
|
|
34157
|
+
], HB = {
|
|
34091
34158
|
"--white": "#fff",
|
|
34092
34159
|
"--black": "#2e2b29",
|
|
34093
34160
|
"--black-contrast": "#110f0e",
|
|
@@ -34106,14 +34173,18 @@ var TB = Kh.create({
|
|
|
34106
34173
|
"--red": "#ff5c33",
|
|
34107
34174
|
"--red-light": "#ffebe5",
|
|
34108
34175
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
34109
|
-
},
|
|
34176
|
+
}, UB = (e) => ({
|
|
34177
|
+
spellcheck: e ? "true" : "false",
|
|
34178
|
+
autocorrect: e ? "on" : "off",
|
|
34179
|
+
autocapitalize: e ? "on" : "off"
|
|
34180
|
+
}), WB = (e) => {
|
|
34110
34181
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = _t([]), [a, o] = _t(!1), { toolbarOpts: s } = e, c = dt((e) => {
|
|
34111
34182
|
i((t) => {
|
|
34112
34183
|
let n = t.filter((t) => t.pos !== e);
|
|
34113
34184
|
return n.length === 0 && o(!1), n;
|
|
34114
34185
|
});
|
|
34115
34186
|
}, [i]), l = {
|
|
34116
|
-
...
|
|
34187
|
+
...zB,
|
|
34117
34188
|
...s
|
|
34118
34189
|
}, u = dt((t) => {
|
|
34119
34190
|
let n = t.getHTML();
|
|
@@ -34124,13 +34195,13 @@ var TB = Kh.create({
|
|
|
34124
34195
|
e.onDone,
|
|
34125
34196
|
l.doneOn
|
|
34126
34197
|
]), d = ht(() => ({
|
|
34127
|
-
...
|
|
34198
|
+
...BB,
|
|
34128
34199
|
...e.responseAreaProps,
|
|
34129
34200
|
onInlineDropdownToolbarClose: u
|
|
34130
34201
|
}), [e.responseAreaProps, u]), f = ht(() => {
|
|
34131
34202
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
34132
34203
|
t ||= [];
|
|
34133
|
-
let r = (e.activePlugins ||
|
|
34204
|
+
let r = (e.activePlugins || VB)?.filter((e) => {
|
|
34134
34205
|
let t = Qn[e] || e, r = n[t] || {};
|
|
34135
34206
|
return !r || !r.disabled;
|
|
34136
34207
|
});
|
|
@@ -34148,103 +34219,112 @@ var TB = Kh.create({
|
|
|
34148
34219
|
setKeypadInteraction: {},
|
|
34149
34220
|
media: {}
|
|
34150
34221
|
});
|
|
34151
|
-
}, [e, d.type]), p =
|
|
34152
|
-
|
|
34153
|
-
|
|
34154
|
-
|
|
34155
|
-
|
|
34156
|
-
|
|
34157
|
-
|
|
34158
|
-
|
|
34159
|
-
|
|
34160
|
-
|
|
34161
|
-
|
|
34162
|
-
|
|
34163
|
-
|
|
34164
|
-
|
|
34165
|
-
|
|
34166
|
-
|
|
34167
|
-
|
|
34168
|
-
|
|
34169
|
-
|
|
34170
|
-
|
|
34171
|
-
|
|
34172
|
-
|
|
34173
|
-
|
|
34174
|
-
|
|
34175
|
-
|
|
34176
|
-
|
|
34177
|
-
|
|
34222
|
+
}, [e, d.type]), p = [
|
|
34223
|
+
FB.configure({
|
|
34224
|
+
types: [
|
|
34225
|
+
"heading",
|
|
34226
|
+
"paragraph",
|
|
34227
|
+
"div",
|
|
34228
|
+
"headingParagraph",
|
|
34229
|
+
"h1",
|
|
34230
|
+
"h2",
|
|
34231
|
+
"h3",
|
|
34232
|
+
"h4",
|
|
34233
|
+
"h5",
|
|
34234
|
+
"h6",
|
|
34235
|
+
"td",
|
|
34236
|
+
"th"
|
|
34237
|
+
],
|
|
34238
|
+
alignments: [
|
|
34239
|
+
"left",
|
|
34240
|
+
"right",
|
|
34241
|
+
"center",
|
|
34242
|
+
"justify"
|
|
34243
|
+
]
|
|
34244
|
+
}),
|
|
34245
|
+
cB,
|
|
34246
|
+
lB.configure({ limit: e.charactersLimit || 1e6 }),
|
|
34247
|
+
Qz.configure({
|
|
34248
|
+
trailingNode: {
|
|
34178
34249
|
node: "paragraph",
|
|
34179
34250
|
notAfter: ["paragraph", "div"]
|
|
34180
|
-
}
|
|
34181
|
-
|
|
34182
|
-
|
|
34183
|
-
|
|
34184
|
-
|
|
34185
|
-
|
|
34186
|
-
|
|
34187
|
-
|
|
34188
|
-
|
|
34189
|
-
|
|
34190
|
-
|
|
34191
|
-
|
|
34192
|
-
|
|
34193
|
-
|
|
34194
|
-
|
|
34195
|
-
|
|
34196
|
-
|
|
34197
|
-
|
|
34198
|
-
|
|
34199
|
-
|
|
34200
|
-
|
|
34201
|
-
|
|
34202
|
-
|
|
34203
|
-
|
|
34204
|
-
|
|
34205
|
-
|
|
34206
|
-
|
|
34207
|
-
|
|
34208
|
-
|
|
34209
|
-
|
|
34210
|
-
|
|
34211
|
-
|
|
34212
|
-
|
|
34213
|
-
|
|
34214
|
-
|
|
34215
|
-
|
|
34216
|
-
|
|
34217
|
-
|
|
34218
|
-
|
|
34219
|
-
|
|
34220
|
-
|
|
34221
|
-
|
|
34222
|
-
|
|
34223
|
-
|
|
34224
|
-
|
|
34225
|
-
|
|
34226
|
-
|
|
34227
|
-
|
|
34228
|
-
|
|
34229
|
-
|
|
34230
|
-
|
|
34231
|
-
|
|
34232
|
-
|
|
34233
|
-
|
|
34234
|
-
|
|
34235
|
-
|
|
34236
|
-
|
|
34237
|
-
|
|
34238
|
-
|
|
34239
|
-
|
|
34240
|
-
|
|
34241
|
-
|
|
34242
|
-
|
|
34243
|
-
|
|
34251
|
+
},
|
|
34252
|
+
link: {
|
|
34253
|
+
autolink: !1,
|
|
34254
|
+
linkOnPaste: !1
|
|
34255
|
+
}
|
|
34256
|
+
}),
|
|
34257
|
+
rj,
|
|
34258
|
+
cC,
|
|
34259
|
+
ij,
|
|
34260
|
+
lC,
|
|
34261
|
+
uC,
|
|
34262
|
+
RB.configure({
|
|
34263
|
+
placeholder: e.placeholder,
|
|
34264
|
+
showOnlyWhenEditable: !0,
|
|
34265
|
+
showOnlyCurrent: !1,
|
|
34266
|
+
includeChildren: !0
|
|
34267
|
+
}),
|
|
34268
|
+
iC,
|
|
34269
|
+
HS,
|
|
34270
|
+
sC,
|
|
34271
|
+
oC,
|
|
34272
|
+
TT.configure(d),
|
|
34273
|
+
ET.configure(d),
|
|
34274
|
+
OT.configure(d),
|
|
34275
|
+
kT.configure(d),
|
|
34276
|
+
DT.configure(d),
|
|
34277
|
+
WD.configure({
|
|
34278
|
+
toolbarOpts: l,
|
|
34279
|
+
math: e.pluginProps?.math || {}
|
|
34280
|
+
}),
|
|
34281
|
+
PB,
|
|
34282
|
+
NB,
|
|
34283
|
+
LB,
|
|
34284
|
+
nk.configure({
|
|
34285
|
+
toolbarOpts: l,
|
|
34286
|
+
imageHandling: {
|
|
34287
|
+
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
34288
|
+
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
34289
|
+
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
34290
|
+
let { src: n } = t.attrs;
|
|
34291
|
+
e.imageSupport.delete(n, (e) => {
|
|
34292
|
+
c(t.pos);
|
|
34293
|
+
});
|
|
34294
|
+
}),
|
|
34295
|
+
insertImageRequested: e.imageSupport && ((t, n, r) => {
|
|
34296
|
+
let [o, s] = n, l = (n) => {
|
|
34297
|
+
let r;
|
|
34298
|
+
a && n && (r = e.onChange), c(s), r?.(t.getHTML());
|
|
34299
|
+
};
|
|
34300
|
+
t._insertingImage = !0, i((e) => [...e, o]), (() => {
|
|
34301
|
+
let n = r(l), i = m(() => {
|
|
34302
|
+
let e = () => window.removeEventListener("focus", i);
|
|
34303
|
+
if (!t._insertingImage) {
|
|
34304
|
+
e();
|
|
34305
|
+
return;
|
|
34306
|
+
}
|
|
34307
|
+
c(s), t._insertingImage = !1, e();
|
|
34308
|
+
}, 500);
|
|
34309
|
+
window.addEventListener("focus", i), e.imageSupport.add(n);
|
|
34310
|
+
})();
|
|
34311
|
+
}),
|
|
34312
|
+
maxImageWidth: e.maxImageWidth,
|
|
34313
|
+
maxImageHeight: e.maxImageHeight
|
|
34314
|
+
},
|
|
34315
|
+
limit: 3
|
|
34316
|
+
}),
|
|
34317
|
+
aA.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
34318
|
+
SA.configure({ extraCSSRules: e.extraCSSRules })
|
|
34319
|
+
], h = e.spellCheck !== !1, g = Iw({
|
|
34320
|
+
extensions: p,
|
|
34244
34321
|
immediatelyRender: !1,
|
|
34245
|
-
editorProps: {
|
|
34246
|
-
|
|
34247
|
-
|
|
34322
|
+
editorProps: {
|
|
34323
|
+
attributes: UB(h),
|
|
34324
|
+
handleKeyDown(t, n) {
|
|
34325
|
+
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
34326
|
+
}
|
|
34327
|
+
},
|
|
34248
34328
|
editable: !e.disabled,
|
|
34249
34329
|
content: rr(e.markup),
|
|
34250
34330
|
onUpdate: ({ editor: t, transaction: n }) => {
|
|
@@ -34255,22 +34335,29 @@ var TB = Kh.create({
|
|
|
34255
34335
|
}
|
|
34256
34336
|
}, [e.charactersLimit]);
|
|
34257
34337
|
R(() => {
|
|
34258
|
-
e.editorRef && e.editorRef(
|
|
34259
|
-
}, [e.editorRef,
|
|
34260
|
-
|
|
34261
|
-
}, [e.disabled,
|
|
34262
|
-
if (!
|
|
34338
|
+
e.editorRef && e.editorRef(g);
|
|
34339
|
+
}, [e.editorRef, g]), R(() => {
|
|
34340
|
+
g?.setEditable(!e.disabled);
|
|
34341
|
+
}, [e.disabled, g]), R(() => {
|
|
34342
|
+
if (!g) return;
|
|
34343
|
+
let e = g.options?.editorProps, t = UB(h);
|
|
34344
|
+
e?.attributes?.spellcheck !== t.spellcheck && g.setOptions({ editorProps: {
|
|
34345
|
+
...e,
|
|
34346
|
+
attributes: t
|
|
34347
|
+
} });
|
|
34348
|
+
}, [h, g]), R(() => {
|
|
34349
|
+
if (!g) return;
|
|
34263
34350
|
let t = rr(e.markup);
|
|
34264
|
-
t !==
|
|
34265
|
-
}, [e.markup,
|
|
34266
|
-
Object.entries(
|
|
34351
|
+
t !== g.getHTML() && g.commands.setContent(t, { emitUpdate: !1 });
|
|
34352
|
+
}, [e.markup, g]), R(() => {
|
|
34353
|
+
Object.entries(HB).forEach(([e, t]) => {
|
|
34267
34354
|
document.documentElement.style.setProperty(e, t);
|
|
34268
34355
|
});
|
|
34269
34356
|
}, []);
|
|
34270
|
-
let
|
|
34271
|
-
editor:
|
|
34357
|
+
let _ = Mw({
|
|
34358
|
+
editor: g,
|
|
34272
34359
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
34273
|
-
}),
|
|
34360
|
+
}), v = ht(() => {
|
|
34274
34361
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
34275
34362
|
return {
|
|
34276
34363
|
width: aj(n),
|
|
@@ -34285,20 +34372,20 @@ var TB = Kh.create({
|
|
|
34285
34372
|
...e,
|
|
34286
34373
|
activePlugins: f,
|
|
34287
34374
|
toolbarOpts: l,
|
|
34288
|
-
editorState:
|
|
34289
|
-
editor:
|
|
34290
|
-
children:
|
|
34375
|
+
editorState: _,
|
|
34376
|
+
editor: g,
|
|
34377
|
+
children: g && /* @__PURE__ */ z(GB, {
|
|
34291
34378
|
style: {
|
|
34292
|
-
minHeight:
|
|
34293
|
-
height:
|
|
34294
|
-
maxHeight:
|
|
34379
|
+
minHeight: v.minHeight,
|
|
34380
|
+
height: v.height,
|
|
34381
|
+
maxHeight: v.maxHeight
|
|
34295
34382
|
},
|
|
34296
34383
|
showParagraph: t && !t.disabled,
|
|
34297
34384
|
separateParagraph: n && !n.disabled,
|
|
34298
|
-
editor:
|
|
34385
|
+
editor: g
|
|
34299
34386
|
})
|
|
34300
34387
|
});
|
|
34301
|
-
},
|
|
34388
|
+
}, GB = F(kw, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
34302
34389
|
display: "flex",
|
|
34303
34390
|
outline: "none !important",
|
|
34304
34391
|
"& .ProseMirror": {
|
|
@@ -34326,7 +34413,7 @@ var TB = Kh.create({
|
|
|
34326
34413
|
} },
|
|
34327
34414
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
34328
34415
|
}
|
|
34329
|
-
})),
|
|
34416
|
+
})), KB = WB, qB = class e extends CustomEvent {
|
|
34330
34417
|
static {
|
|
34331
34418
|
this.TYPE = "model.updated";
|
|
34332
34419
|
}
|
|
@@ -34339,7 +34426,7 @@ var TB = Kh.create({
|
|
|
34339
34426
|
}
|
|
34340
34427
|
}), this.update = t, this.reset = n;
|
|
34341
34428
|
}
|
|
34342
|
-
},
|
|
34429
|
+
}, JB = class e extends CustomEvent {
|
|
34343
34430
|
static {
|
|
34344
34431
|
this.TYPE = "delete.image";
|
|
34345
34432
|
}
|
|
@@ -34352,7 +34439,7 @@ var TB = Kh.create({
|
|
|
34352
34439
|
}
|
|
34353
34440
|
}), this.src = t, this.done = n;
|
|
34354
34441
|
}
|
|
34355
|
-
},
|
|
34442
|
+
}, YB = class e extends CustomEvent {
|
|
34356
34443
|
static {
|
|
34357
34444
|
this.TYPE = "insert.image";
|
|
34358
34445
|
}
|
|
@@ -34362,7 +34449,7 @@ var TB = Kh.create({
|
|
|
34362
34449
|
detail: t
|
|
34363
34450
|
}), this.handler = t;
|
|
34364
34451
|
}
|
|
34365
|
-
},
|
|
34452
|
+
}, XB = class e extends CustomEvent {
|
|
34366
34453
|
static {
|
|
34367
34454
|
this.TYPE = "delete.sound";
|
|
34368
34455
|
}
|
|
@@ -34375,7 +34462,7 @@ var TB = Kh.create({
|
|
|
34375
34462
|
}
|
|
34376
34463
|
}), this.src = t, this.done = n;
|
|
34377
34464
|
}
|
|
34378
|
-
},
|
|
34465
|
+
}, ZB = class e extends CustomEvent {
|
|
34379
34466
|
static {
|
|
34380
34467
|
this.TYPE = "insert.sound";
|
|
34381
34468
|
}
|
|
@@ -34385,22 +34472,22 @@ var TB = Kh.create({
|
|
|
34385
34472
|
detail: t
|
|
34386
34473
|
}), this.handler = t;
|
|
34387
34474
|
}
|
|
34388
|
-
},
|
|
34475
|
+
}, QB = E(/*#__PURE__*/ z("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");
|
|
34389
34476
|
//#endregion
|
|
34390
34477
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Card/cardClasses.js
|
|
34391
|
-
function
|
|
34478
|
+
function $B(e) {
|
|
34392
34479
|
return k("MuiCard", e);
|
|
34393
34480
|
}
|
|
34394
34481
|
I("MuiCard", ["root"]);
|
|
34395
34482
|
//#endregion
|
|
34396
34483
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Card/Card.js
|
|
34397
|
-
var
|
|
34484
|
+
var eV = (e) => {
|
|
34398
34485
|
let { classes: t } = e;
|
|
34399
|
-
return j({ root: ["root"] },
|
|
34400
|
-
},
|
|
34486
|
+
return j({ root: ["root"] }, $B, t);
|
|
34487
|
+
}, tV = F(x, {
|
|
34401
34488
|
name: "MuiCard",
|
|
34402
34489
|
slot: "Root"
|
|
34403
|
-
})({ overflow: "hidden" }),
|
|
34490
|
+
})({ overflow: "hidden" }), nV = /*#__PURE__*/ L.forwardRef(function(e, t) {
|
|
34404
34491
|
let n = He({
|
|
34405
34492
|
props: e,
|
|
34406
34493
|
name: "MuiCard"
|
|
@@ -34408,8 +34495,8 @@ var GB = (e) => {
|
|
|
34408
34495
|
...n,
|
|
34409
34496
|
raised: i
|
|
34410
34497
|
};
|
|
34411
|
-
return /*#__PURE__*/ z(
|
|
34412
|
-
className: S(
|
|
34498
|
+
return /*#__PURE__*/ z(tV, {
|
|
34499
|
+
className: S(eV(o).root, r),
|
|
34413
34500
|
elevation: i ? 8 : void 0,
|
|
34414
34501
|
ref: t,
|
|
34415
34502
|
ownerState: o,
|
|
@@ -34418,22 +34505,22 @@ var GB = (e) => {
|
|
|
34418
34505
|
});
|
|
34419
34506
|
//#endregion
|
|
34420
34507
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/CardContent/cardContentClasses.js
|
|
34421
|
-
function
|
|
34508
|
+
function rV(e) {
|
|
34422
34509
|
return k("MuiCardContent", e);
|
|
34423
34510
|
}
|
|
34424
34511
|
I("MuiCardContent", ["root"]);
|
|
34425
34512
|
//#endregion
|
|
34426
34513
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/CardContent/CardContent.js
|
|
34427
|
-
var
|
|
34514
|
+
var iV = (e) => {
|
|
34428
34515
|
let { classes: t } = e;
|
|
34429
|
-
return j({ root: ["root"] },
|
|
34430
|
-
},
|
|
34516
|
+
return j({ root: ["root"] }, rV, t);
|
|
34517
|
+
}, aV = F("div", {
|
|
34431
34518
|
name: "MuiCardContent",
|
|
34432
34519
|
slot: "Root"
|
|
34433
34520
|
})({
|
|
34434
34521
|
padding: 16,
|
|
34435
34522
|
"&:last-child": { paddingBottom: 24 }
|
|
34436
|
-
}),
|
|
34523
|
+
}), oV = /*#__PURE__*/ L.forwardRef(function(e, t) {
|
|
34437
34524
|
let n = He({
|
|
34438
34525
|
props: e,
|
|
34439
34526
|
name: "MuiCardContent"
|
|
@@ -34441,9 +34528,9 @@ var YB = (e) => {
|
|
|
34441
34528
|
...n,
|
|
34442
34529
|
component: i
|
|
34443
34530
|
};
|
|
34444
|
-
return /*#__PURE__*/ z(
|
|
34531
|
+
return /*#__PURE__*/ z(aV, {
|
|
34445
34532
|
as: i,
|
|
34446
|
-
className: S(
|
|
34533
|
+
className: S(iV(o).root, r),
|
|
34447
34534
|
ownerState: o,
|
|
34448
34535
|
ref: t,
|
|
34449
34536
|
...a
|
|
@@ -34451,7 +34538,7 @@ var YB = (e) => {
|
|
|
34451
34538
|
});
|
|
34452
34539
|
//#endregion
|
|
34453
34540
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/switchBaseClasses.js
|
|
34454
|
-
function
|
|
34541
|
+
function sV(e) {
|
|
34455
34542
|
return k("PrivateSwitchBase", e);
|
|
34456
34543
|
}
|
|
34457
34544
|
I("PrivateSwitchBase", [
|
|
@@ -34464,7 +34551,7 @@ I("PrivateSwitchBase", [
|
|
|
34464
34551
|
]);
|
|
34465
34552
|
//#endregion
|
|
34466
34553
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/SwitchBase.js
|
|
34467
|
-
var
|
|
34554
|
+
var cV = (e) => {
|
|
34468
34555
|
let { classes: t, checked: n, disabled: r, edge: i } = e;
|
|
34469
34556
|
return j({
|
|
34470
34557
|
root: [
|
|
@@ -34474,8 +34561,8 @@ var $B = (e) => {
|
|
|
34474
34561
|
i && `edge${M(i)}`
|
|
34475
34562
|
],
|
|
34476
34563
|
input: ["input"]
|
|
34477
|
-
},
|
|
34478
|
-
},
|
|
34564
|
+
}, sV, t);
|
|
34565
|
+
}, lV = F(oe, { name: "MuiSwitchBase" })({
|
|
34479
34566
|
padding: 9,
|
|
34480
34567
|
borderRadius: "50%",
|
|
34481
34568
|
variants: [
|
|
@@ -34502,7 +34589,7 @@ var $B = (e) => {
|
|
|
34502
34589
|
style: { marginRight: -12 }
|
|
34503
34590
|
}
|
|
34504
34591
|
]
|
|
34505
|
-
}),
|
|
34592
|
+
}), uV = F("input", {
|
|
34506
34593
|
name: "MuiSwitchBase",
|
|
34507
34594
|
shouldForwardProp: Te
|
|
34508
34595
|
})({
|
|
@@ -34516,7 +34603,7 @@ var $B = (e) => {
|
|
|
34516
34603
|
margin: 0,
|
|
34517
34604
|
padding: 0,
|
|
34518
34605
|
zIndex: 1
|
|
34519
|
-
}),
|
|
34606
|
+
}), dV = /*#__PURE__*/ L.forwardRef(function(e, t) {
|
|
34520
34607
|
let { autoFocus: n, checked: r, checkedIcon: i, defaultChecked: a, disabled: o, disableFocusRipple: s = !1, edge: c = !1, icon: l, id: u, inputProps: d, inputRef: f, name: p, onBlur: m, onChange: h, onFocus: g, readOnly: _, required: v = !1, tabIndex: y, type: b, value: x, slots: S = {}, slotProps: C = {}, ...w } = e, [ee, T] = ve({
|
|
34521
34608
|
controlled: r,
|
|
34522
34609
|
default: !!a,
|
|
@@ -34538,7 +34625,7 @@ var $B = (e) => {
|
|
|
34538
34625
|
disabled: ie,
|
|
34539
34626
|
disableFocusRipple: s,
|
|
34540
34627
|
edge: c
|
|
34541
|
-
}, oe =
|
|
34628
|
+
}, oe = cV(ae), se = {
|
|
34542
34629
|
slots: S,
|
|
34543
34630
|
slotProps: {
|
|
34544
34631
|
input: d,
|
|
@@ -34546,7 +34633,7 @@ var $B = (e) => {
|
|
|
34546
34633
|
}
|
|
34547
34634
|
}, [ce, le] = A("root", {
|
|
34548
34635
|
ref: t,
|
|
34549
|
-
elementType:
|
|
34636
|
+
elementType: lV,
|
|
34550
34637
|
className: oe.root,
|
|
34551
34638
|
shouldForwardComponentProp: !0,
|
|
34552
34639
|
externalForwardedProps: {
|
|
@@ -34572,7 +34659,7 @@ var $B = (e) => {
|
|
|
34572
34659
|
}
|
|
34573
34660
|
}), [O, ue] = A("input", {
|
|
34574
34661
|
ref: f,
|
|
34575
|
-
elementType:
|
|
34662
|
+
elementType: uV,
|
|
34576
34663
|
className: oe.input,
|
|
34577
34664
|
externalForwardedProps: se,
|
|
34578
34665
|
getSlotProps: (e) => ({
|
|
@@ -34600,13 +34687,13 @@ var $B = (e) => {
|
|
|
34600
34687
|
...le,
|
|
34601
34688
|
children: [/*#__PURE__*/ z(O, { ...ue }), ee ? i : l]
|
|
34602
34689
|
});
|
|
34603
|
-
}),
|
|
34690
|
+
}), fV = E(/*#__PURE__*/ z("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), pV = E(/*#__PURE__*/ z("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), mV = E(/*#__PURE__*/ z("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
|
|
34604
34691
|
//#endregion
|
|
34605
34692
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
|
|
34606
|
-
function
|
|
34693
|
+
function hV(e) {
|
|
34607
34694
|
return k("MuiCheckbox", e);
|
|
34608
34695
|
}
|
|
34609
|
-
var
|
|
34696
|
+
var gV = I("MuiCheckbox", [
|
|
34610
34697
|
"root",
|
|
34611
34698
|
"checked",
|
|
34612
34699
|
"disabled",
|
|
@@ -34615,18 +34702,18 @@ var sV = I("MuiCheckbox", [
|
|
|
34615
34702
|
"colorSecondary",
|
|
34616
34703
|
"sizeSmall",
|
|
34617
34704
|
"sizeMedium"
|
|
34618
|
-
]),
|
|
34705
|
+
]), _V = (e) => {
|
|
34619
34706
|
let { classes: t, indeterminate: n, color: r, size: i } = e, a = j({ root: [
|
|
34620
34707
|
"root",
|
|
34621
34708
|
n && "indeterminate",
|
|
34622
34709
|
`color${M(r)}`,
|
|
34623
34710
|
`size${M(i)}`
|
|
34624
|
-
] },
|
|
34711
|
+
] }, hV, t);
|
|
34625
34712
|
return {
|
|
34626
34713
|
...t,
|
|
34627
34714
|
...a
|
|
34628
34715
|
};
|
|
34629
|
-
},
|
|
34716
|
+
}, vV = F(dV, {
|
|
34630
34717
|
shouldForwardProp: (e) => Te(e) || e === "classes",
|
|
34631
34718
|
name: "MuiCheckbox",
|
|
34632
34719
|
slot: "Root",
|
|
@@ -34659,8 +34746,8 @@ var sV = I("MuiCheckbox", [
|
|
|
34659
34746
|
...Object.entries(e.palette).filter(D()).map(([t]) => ({
|
|
34660
34747
|
props: { color: t },
|
|
34661
34748
|
style: {
|
|
34662
|
-
[`&.${
|
|
34663
|
-
[`&.${
|
|
34749
|
+
[`&.${gV.checked}, &.${gV.indeterminate}`]: { color: (e.vars || e).palette[t].main },
|
|
34750
|
+
[`&.${gV.disabled}`]: { color: (e.vars || e).palette.action.disabled }
|
|
34664
34751
|
}
|
|
34665
34752
|
})),
|
|
34666
34753
|
{
|
|
@@ -34668,19 +34755,19 @@ var sV = I("MuiCheckbox", [
|
|
|
34668
34755
|
style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
|
|
34669
34756
|
}
|
|
34670
34757
|
]
|
|
34671
|
-
}))),
|
|
34758
|
+
}))), yV = /*#__PURE__*/ z(pV, {}), bV = /*#__PURE__*/ z(fV, {}), xV = /*#__PURE__*/ z(mV, {}), SV = /*#__PURE__*/ L.forwardRef(function(e, t) {
|
|
34672
34759
|
let n = He({
|
|
34673
34760
|
props: e,
|
|
34674
34761
|
name: "MuiCheckbox"
|
|
34675
|
-
}), { checkedIcon: r =
|
|
34762
|
+
}), { checkedIcon: r = yV, color: i = "primary", icon: a = bV, indeterminate: o = !1, indeterminateIcon: s = xV, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: f = {}, slotProps: p = {}, ...m } = n, h = o ? s : a, g = o ? s : r, _ = {
|
|
34676
34763
|
...n,
|
|
34677
34764
|
disableRipple: u,
|
|
34678
34765
|
color: i,
|
|
34679
34766
|
indeterminate: o,
|
|
34680
34767
|
size: l
|
|
34681
|
-
}, v =
|
|
34768
|
+
}, v = _V(_), y = p.input ?? c, [b, x] = A("root", {
|
|
34682
34769
|
ref: t,
|
|
34683
|
-
elementType:
|
|
34770
|
+
elementType: vV,
|
|
34684
34771
|
className: S(v.root, d),
|
|
34685
34772
|
shouldForwardComponentProp: !0,
|
|
34686
34773
|
externalForwardedProps: {
|
|
@@ -34708,10 +34795,10 @@ var sV = I("MuiCheckbox", [
|
|
|
34708
34795
|
});
|
|
34709
34796
|
//#endregion
|
|
34710
34797
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
|
|
34711
|
-
function
|
|
34798
|
+
function CV(e) {
|
|
34712
34799
|
return k("MuiFormControlLabel", e);
|
|
34713
34800
|
}
|
|
34714
|
-
var
|
|
34801
|
+
var wV = I("MuiFormControlLabel", [
|
|
34715
34802
|
"root",
|
|
34716
34803
|
"labelPlacementStart",
|
|
34717
34804
|
"labelPlacementTop",
|
|
@@ -34721,7 +34808,7 @@ var hV = I("MuiFormControlLabel", [
|
|
|
34721
34808
|
"error",
|
|
34722
34809
|
"required",
|
|
34723
34810
|
"asterisk"
|
|
34724
|
-
]),
|
|
34811
|
+
]), TV = (e) => {
|
|
34725
34812
|
let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
|
|
34726
34813
|
return j({
|
|
34727
34814
|
root: [
|
|
@@ -34733,14 +34820,14 @@ var hV = I("MuiFormControlLabel", [
|
|
|
34733
34820
|
],
|
|
34734
34821
|
label: ["label", n && "disabled"],
|
|
34735
34822
|
asterisk: ["asterisk", i && "error"]
|
|
34736
|
-
},
|
|
34737
|
-
},
|
|
34823
|
+
}, CV, t);
|
|
34824
|
+
}, EV = F("label", {
|
|
34738
34825
|
name: "MuiFormControlLabel",
|
|
34739
34826
|
slot: "Root",
|
|
34740
34827
|
overridesResolver: (e, t) => {
|
|
34741
34828
|
let { ownerState: n } = e;
|
|
34742
34829
|
return [
|
|
34743
|
-
{ [`& .${
|
|
34830
|
+
{ [`& .${wV.label}`]: t.label },
|
|
34744
34831
|
t.root,
|
|
34745
34832
|
t[`labelPlacement${M(n.labelPlacement)}`]
|
|
34746
34833
|
];
|
|
@@ -34753,8 +34840,8 @@ var hV = I("MuiFormControlLabel", [
|
|
|
34753
34840
|
WebkitTapHighlightColor: "transparent",
|
|
34754
34841
|
marginLeft: -11,
|
|
34755
34842
|
marginRight: 16,
|
|
34756
|
-
[`&.${
|
|
34757
|
-
[`& .${
|
|
34843
|
+
[`&.${wV.disabled}`]: { cursor: "default" },
|
|
34844
|
+
[`& .${wV.label}`]: { [`&.${wV.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
|
|
34758
34845
|
variants: [
|
|
34759
34846
|
{
|
|
34760
34847
|
props: { labelPlacement: "start" },
|
|
@@ -34776,10 +34863,10 @@ var hV = I("MuiFormControlLabel", [
|
|
|
34776
34863
|
style: { marginLeft: 16 }
|
|
34777
34864
|
}
|
|
34778
34865
|
]
|
|
34779
|
-
}))),
|
|
34866
|
+
}))), DV = F("span", {
|
|
34780
34867
|
name: "MuiFormControlLabel",
|
|
34781
34868
|
slot: "Asterisk"
|
|
34782
|
-
})(P(({ theme: e }) => ({ [`&.${
|
|
34869
|
+
})(P(({ theme: e }) => ({ [`&.${wV.error}`]: { color: (e.vars || e).palette.error.main } }))), OV = /*#__PURE__*/ L.forwardRef(function(e, t) {
|
|
34783
34870
|
let n = He({
|
|
34784
34871
|
props: e,
|
|
34785
34872
|
name: "MuiFormControlLabel"
|
|
@@ -34806,7 +34893,7 @@ var hV = I("MuiFormControlLabel", [
|
|
|
34806
34893
|
labelPlacement: d,
|
|
34807
34894
|
required: x,
|
|
34808
34895
|
error: w.error
|
|
34809
|
-
}, T =
|
|
34896
|
+
}, T = TV(ee), [te, E] = A("typography", {
|
|
34810
34897
|
elementType: zT,
|
|
34811
34898
|
externalForwardedProps: {
|
|
34812
34899
|
slots: h,
|
|
@@ -34822,12 +34909,12 @@ var hV = I("MuiFormControlLabel", [
|
|
|
34822
34909
|
...E,
|
|
34823
34910
|
className: S(T.label, E?.className),
|
|
34824
34911
|
children: ne
|
|
34825
|
-
})), /*#__PURE__*/ B(
|
|
34912
|
+
})), /*#__PURE__*/ B(EV, {
|
|
34826
34913
|
className: S(T.root, i),
|
|
34827
34914
|
ownerState: ee,
|
|
34828
34915
|
ref: t,
|
|
34829
34916
|
...v,
|
|
34830
|
-
children: [/*#__PURE__*/ L.cloneElement(o, C), x ? /*#__PURE__*/ B("div", { children: [ne, /*#__PURE__*/ B(
|
|
34917
|
+
children: [/*#__PURE__*/ L.cloneElement(o, C), x ? /*#__PURE__*/ B("div", { children: [ne, /*#__PURE__*/ B(DV, {
|
|
34831
34918
|
ownerState: ee,
|
|
34832
34919
|
"aria-hidden": !0,
|
|
34833
34920
|
className: T.asterisk,
|
|
@@ -34837,10 +34924,10 @@ var hV = I("MuiFormControlLabel", [
|
|
|
34837
34924
|
});
|
|
34838
34925
|
//#endregion
|
|
34839
34926
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
|
|
34840
|
-
function
|
|
34927
|
+
function kV(e) {
|
|
34841
34928
|
return k("MuiInputAdornment", e);
|
|
34842
34929
|
}
|
|
34843
|
-
var
|
|
34930
|
+
var AV = I("MuiInputAdornment", [
|
|
34844
34931
|
"root",
|
|
34845
34932
|
"filled",
|
|
34846
34933
|
"standard",
|
|
@@ -34850,7 +34937,7 @@ var xV = I("MuiInputAdornment", [
|
|
|
34850
34937
|
"disablePointerEvents",
|
|
34851
34938
|
"hiddenLabel",
|
|
34852
34939
|
"sizeSmall"
|
|
34853
|
-
]),
|
|
34940
|
+
]), jV, MV = (e, t) => {
|
|
34854
34941
|
let { ownerState: n } = e;
|
|
34855
34942
|
return [
|
|
34856
34943
|
t.root,
|
|
@@ -34858,7 +34945,7 @@ var xV = I("MuiInputAdornment", [
|
|
|
34858
34945
|
n.disablePointerEvents === !0 && t.disablePointerEvents,
|
|
34859
34946
|
t[n.variant]
|
|
34860
34947
|
];
|
|
34861
|
-
},
|
|
34948
|
+
}, NV = (e) => {
|
|
34862
34949
|
let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
|
|
34863
34950
|
return j({ root: [
|
|
34864
34951
|
"root",
|
|
@@ -34867,11 +34954,11 @@ var xV = I("MuiInputAdornment", [
|
|
|
34867
34954
|
o,
|
|
34868
34955
|
r && "hiddenLabel",
|
|
34869
34956
|
a && `size${M(a)}`
|
|
34870
|
-
] },
|
|
34871
|
-
},
|
|
34957
|
+
] }, kV, t);
|
|
34958
|
+
}, PV = F("div", {
|
|
34872
34959
|
name: "MuiInputAdornment",
|
|
34873
34960
|
slot: "Root",
|
|
34874
|
-
overridesResolver:
|
|
34961
|
+
overridesResolver: MV
|
|
34875
34962
|
})(P(({ theme: e }) => ({
|
|
34876
34963
|
display: "flex",
|
|
34877
34964
|
maxHeight: "2em",
|
|
@@ -34881,7 +34968,7 @@ var xV = I("MuiInputAdornment", [
|
|
|
34881
34968
|
variants: [
|
|
34882
34969
|
{
|
|
34883
34970
|
props: { variant: "filled" },
|
|
34884
|
-
style: { [`&.${
|
|
34971
|
+
style: { [`&.${AV.positionStart}&:not(.${AV.hiddenLabel})`]: { marginTop: 16 } }
|
|
34885
34972
|
},
|
|
34886
34973
|
{
|
|
34887
34974
|
props: { position: "start" },
|
|
@@ -34896,7 +34983,7 @@ var xV = I("MuiInputAdornment", [
|
|
|
34896
34983
|
style: { pointerEvents: "none" }
|
|
34897
34984
|
}
|
|
34898
34985
|
]
|
|
34899
|
-
}))),
|
|
34986
|
+
}))), FV = /*#__PURE__*/ L.forwardRef(function(e, t) {
|
|
34900
34987
|
let n = He({
|
|
34901
34988
|
props: e,
|
|
34902
34989
|
name: "MuiInputAdornment"
|
|
@@ -34909,10 +34996,10 @@ var xV = I("MuiInputAdornment", [
|
|
|
34909
34996
|
disablePointerEvents: o,
|
|
34910
34997
|
position: c,
|
|
34911
34998
|
variant: f
|
|
34912
|
-
}, m =
|
|
34999
|
+
}, m = NV(p);
|
|
34913
35000
|
return /*#__PURE__*/ z(je.Provider, {
|
|
34914
35001
|
value: null,
|
|
34915
|
-
children: /*#__PURE__*/ z(
|
|
35002
|
+
children: /*#__PURE__*/ z(PV, {
|
|
34916
35003
|
as: a,
|
|
34917
35004
|
ownerState: p,
|
|
34918
35005
|
className: S(m.root, i),
|
|
@@ -34921,20 +35008,20 @@ var xV = I("MuiInputAdornment", [
|
|
|
34921
35008
|
children: typeof r == "string" && !s ? /*#__PURE__*/ z(zT, {
|
|
34922
35009
|
color: "textSecondary",
|
|
34923
35010
|
children: r
|
|
34924
|
-
}) : /*#__PURE__*/ B(L.Fragment, { children: [c === "start" ?
|
|
35011
|
+
}) : /*#__PURE__*/ B(L.Fragment, { children: [c === "start" ? jV ||= /*#__PURE__*/ z("span", {
|
|
34925
35012
|
className: "notranslate",
|
|
34926
35013
|
"aria-hidden": !0,
|
|
34927
35014
|
children: ""
|
|
34928
35015
|
}) : null, r] })
|
|
34929
35016
|
})
|
|
34930
35017
|
});
|
|
34931
|
-
}),
|
|
35018
|
+
}), IV = E(/*#__PURE__*/ z("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), LV = E(/*#__PURE__*/ z("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), RV = F("span", {
|
|
34932
35019
|
name: "MuiRadioButtonIcon",
|
|
34933
35020
|
shouldForwardProp: Te
|
|
34934
35021
|
})({
|
|
34935
35022
|
position: "relative",
|
|
34936
35023
|
display: "flex"
|
|
34937
|
-
}),
|
|
35024
|
+
}), zV = F(IV, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), BV = F(LV, { name: "MuiRadioButtonIcon" })(P(({ theme: e }) => ({
|
|
34938
35025
|
left: 0,
|
|
34939
35026
|
position: "absolute",
|
|
34940
35027
|
transform: "scale(0)",
|
|
@@ -34953,19 +35040,19 @@ var xV = I("MuiInputAdornment", [
|
|
|
34953
35040
|
}
|
|
34954
35041
|
}]
|
|
34955
35042
|
})));
|
|
34956
|
-
function
|
|
35043
|
+
function VV(e) {
|
|
34957
35044
|
let { checked: t = !1, classes: n = {}, fontSize: r } = e, i = {
|
|
34958
35045
|
...e,
|
|
34959
35046
|
checked: t
|
|
34960
35047
|
};
|
|
34961
|
-
return /*#__PURE__*/ B(
|
|
35048
|
+
return /*#__PURE__*/ B(RV, {
|
|
34962
35049
|
className: n.root,
|
|
34963
35050
|
ownerState: i,
|
|
34964
|
-
children: [/*#__PURE__*/ z(
|
|
35051
|
+
children: [/*#__PURE__*/ z(zV, {
|
|
34965
35052
|
fontSize: r,
|
|
34966
35053
|
className: n.background,
|
|
34967
35054
|
ownerState: i
|
|
34968
|
-
}), /*#__PURE__*/ z(
|
|
35055
|
+
}), /*#__PURE__*/ z(BV, {
|
|
34969
35056
|
fontSize: r,
|
|
34970
35057
|
className: n.dot,
|
|
34971
35058
|
ownerState: i
|
|
@@ -34974,25 +35061,25 @@ function MV(e) {
|
|
|
34974
35061
|
}
|
|
34975
35062
|
//#endregion
|
|
34976
35063
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroupContext.js
|
|
34977
|
-
var
|
|
35064
|
+
var HV = /*#__PURE__*/ L.createContext(void 0);
|
|
34978
35065
|
//#endregion
|
|
34979
35066
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/useRadioGroup.js
|
|
34980
|
-
function
|
|
34981
|
-
return L.useContext(
|
|
35067
|
+
function UV() {
|
|
35068
|
+
return L.useContext(HV);
|
|
34982
35069
|
}
|
|
34983
35070
|
//#endregion
|
|
34984
35071
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Radio/radioClasses.js
|
|
34985
|
-
function
|
|
35072
|
+
function WV(e) {
|
|
34986
35073
|
return k("MuiRadio", e);
|
|
34987
35074
|
}
|
|
34988
|
-
var
|
|
35075
|
+
var GV = I("MuiRadio", [
|
|
34989
35076
|
"root",
|
|
34990
35077
|
"checked",
|
|
34991
35078
|
"disabled",
|
|
34992
35079
|
"colorPrimary",
|
|
34993
35080
|
"colorSecondary",
|
|
34994
35081
|
"sizeSmall"
|
|
34995
|
-
]),
|
|
35082
|
+
]), KV = (e) => {
|
|
34996
35083
|
let { classes: t, color: n, size: r } = e, i = { root: [
|
|
34997
35084
|
"root",
|
|
34998
35085
|
`color${M(n)}`,
|
|
@@ -35000,9 +35087,9 @@ var IV = I("MuiRadio", [
|
|
|
35000
35087
|
] };
|
|
35001
35088
|
return {
|
|
35002
35089
|
...t,
|
|
35003
|
-
...j(i,
|
|
35090
|
+
...j(i, WV, t)
|
|
35004
35091
|
};
|
|
35005
|
-
},
|
|
35092
|
+
}, qV = F(dV, {
|
|
35006
35093
|
shouldForwardProp: (e) => Te(e) || e === "classes",
|
|
35007
35094
|
name: "MuiRadio",
|
|
35008
35095
|
slot: "Root",
|
|
@@ -35016,7 +35103,7 @@ var IV = I("MuiRadio", [
|
|
|
35016
35103
|
}
|
|
35017
35104
|
})(P(({ theme: e }) => ({
|
|
35018
35105
|
color: (e.vars || e).palette.text.secondary,
|
|
35019
|
-
[`&.${
|
|
35106
|
+
[`&.${GV.disabled}`]: { color: (e.vars || e).palette.action.disabled },
|
|
35020
35107
|
variants: [
|
|
35021
35108
|
{
|
|
35022
35109
|
props: {
|
|
@@ -35039,7 +35126,7 @@ var IV = I("MuiRadio", [
|
|
|
35039
35126
|
color: t,
|
|
35040
35127
|
disabled: !1
|
|
35041
35128
|
},
|
|
35042
|
-
style: { [`&.${
|
|
35129
|
+
style: { [`&.${GV.checked}`]: { color: (e.vars || e).palette[t].main } }
|
|
35043
35130
|
})),
|
|
35044
35131
|
{
|
|
35045
35132
|
props: { disableRipple: !1 },
|
|
@@ -35047,14 +35134,14 @@ var IV = I("MuiRadio", [
|
|
|
35047
35134
|
}
|
|
35048
35135
|
]
|
|
35049
35136
|
})));
|
|
35050
|
-
function
|
|
35137
|
+
function JV(e, t) {
|
|
35051
35138
|
return typeof t == "object" && t ? e === t : String(e) === String(t);
|
|
35052
35139
|
}
|
|
35053
|
-
var
|
|
35140
|
+
var YV = /*#__PURE__*/ z(VV, { checked: !0 }), XV = /*#__PURE__*/ z(VV, {}), ZV = /*#__PURE__*/ L.forwardRef(function(e, t) {
|
|
35054
35141
|
let n = He({
|
|
35055
35142
|
props: e,
|
|
35056
35143
|
name: "MuiRadio"
|
|
35057
|
-
}), { checked: r, checkedIcon: i =
|
|
35144
|
+
}), { checked: r, checkedIcon: i = YV, color: a = "primary", icon: o = XV, name: s, onChange: c, size: l = "medium", className: u, disabled: d, disableRipple: f = !1, slots: p = {}, slotProps: m = {}, inputProps: h, ...g } = n, _ = Re(), v = d;
|
|
35058
35145
|
_ && v === void 0 && (v = _.disabled), v ??= !1;
|
|
35059
35146
|
let y = {
|
|
35060
35147
|
...n,
|
|
@@ -35062,11 +35149,11 @@ var BV = /*#__PURE__*/ z(MV, { checked: !0 }), VV = /*#__PURE__*/ z(MV, {}), HV
|
|
|
35062
35149
|
disableRipple: f,
|
|
35063
35150
|
color: a,
|
|
35064
35151
|
size: l
|
|
35065
|
-
}, b =
|
|
35066
|
-
x && (C === void 0 && (C =
|
|
35152
|
+
}, b = KV(y), x = UV(), C = r, w = Ot(c, x && x.onChange), ee = s;
|
|
35153
|
+
x && (C === void 0 && (C = JV(x.value, n.value)), ee === void 0 && (ee = x.name));
|
|
35067
35154
|
let T = m.input ?? h, [te, E] = A("root", {
|
|
35068
35155
|
ref: t,
|
|
35069
|
-
elementType:
|
|
35156
|
+
elementType: qV,
|
|
35070
35157
|
className: S(b.root, u),
|
|
35071
35158
|
shouldForwardComponentProp: !0,
|
|
35072
35159
|
externalForwardedProps: {
|
|
@@ -35099,10 +35186,10 @@ var BV = /*#__PURE__*/ z(MV, { checked: !0 }), VV = /*#__PURE__*/ z(MV, {}), HV
|
|
|
35099
35186
|
});
|
|
35100
35187
|
//#endregion
|
|
35101
35188
|
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
|
|
35102
|
-
function
|
|
35189
|
+
function QV(e) {
|
|
35103
35190
|
return k("MuiSwitch", e);
|
|
35104
35191
|
}
|
|
35105
|
-
var
|
|
35192
|
+
var $V = I("MuiSwitch", [
|
|
35106
35193
|
"root",
|
|
35107
35194
|
"edgeStart",
|
|
35108
35195
|
"edgeEnd",
|
|
@@ -35116,7 +35203,7 @@ var WV = I("MuiSwitch", [
|
|
|
35116
35203
|
"input",
|
|
35117
35204
|
"thumb",
|
|
35118
35205
|
"track"
|
|
35119
|
-
]),
|
|
35206
|
+
]), eH = (e) => {
|
|
35120
35207
|
let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = j({
|
|
35121
35208
|
root: [
|
|
35122
35209
|
"root",
|
|
@@ -35132,12 +35219,12 @@ var WV = I("MuiSwitch", [
|
|
|
35132
35219
|
thumb: ["thumb"],
|
|
35133
35220
|
track: ["track"],
|
|
35134
35221
|
input: ["input"]
|
|
35135
|
-
},
|
|
35222
|
+
}, QV, t);
|
|
35136
35223
|
return {
|
|
35137
35224
|
...t,
|
|
35138
35225
|
...s
|
|
35139
35226
|
};
|
|
35140
|
-
},
|
|
35227
|
+
}, tH = F("span", {
|
|
35141
35228
|
name: "MuiSwitch",
|
|
35142
35229
|
slot: "Root",
|
|
35143
35230
|
overridesResolver: (e, t) => {
|
|
@@ -35175,25 +35262,25 @@ var WV = I("MuiSwitch", [
|
|
|
35175
35262
|
width: 40,
|
|
35176
35263
|
height: 24,
|
|
35177
35264
|
padding: 7,
|
|
35178
|
-
[`& .${
|
|
35265
|
+
[`& .${$V.thumb}`]: {
|
|
35179
35266
|
width: 16,
|
|
35180
35267
|
height: 16
|
|
35181
35268
|
},
|
|
35182
|
-
[`& .${
|
|
35269
|
+
[`& .${$V.switchBase}`]: {
|
|
35183
35270
|
padding: 4,
|
|
35184
|
-
[`&.${
|
|
35271
|
+
[`&.${$V.checked}`]: { transform: "translateX(16px)" }
|
|
35185
35272
|
}
|
|
35186
35273
|
}
|
|
35187
35274
|
}
|
|
35188
35275
|
]
|
|
35189
|
-
}),
|
|
35276
|
+
}), nH = F(dV, {
|
|
35190
35277
|
name: "MuiSwitch",
|
|
35191
35278
|
slot: "SwitchBase",
|
|
35192
35279
|
overridesResolver: (e, t) => {
|
|
35193
35280
|
let { ownerState: n } = e;
|
|
35194
35281
|
return [
|
|
35195
35282
|
t.switchBase,
|
|
35196
|
-
{ [`& .${
|
|
35283
|
+
{ [`& .${$V.input}`]: t.input },
|
|
35197
35284
|
n.color !== "default" && t[`color${M(n.color)}`]
|
|
35198
35285
|
];
|
|
35199
35286
|
}
|
|
@@ -35204,11 +35291,11 @@ var WV = I("MuiSwitch", [
|
|
|
35204
35291
|
zIndex: 1,
|
|
35205
35292
|
color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
|
|
35206
35293
|
transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
|
|
35207
|
-
[`&.${
|
|
35208
|
-
[`&.${
|
|
35209
|
-
[`&.${
|
|
35210
|
-
[`&.${
|
|
35211
|
-
[`& .${
|
|
35294
|
+
[`&.${$V.checked}`]: { transform: "translateX(20px)" },
|
|
35295
|
+
[`&.${$V.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
|
|
35296
|
+
[`&.${$V.checked} + .${$V.track}`]: { opacity: .5 },
|
|
35297
|
+
[`&.${$V.disabled} + .${$V.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
|
|
35298
|
+
[`& .${$V.input}`]: {
|
|
35212
35299
|
left: "-100%",
|
|
35213
35300
|
width: "300%"
|
|
35214
35301
|
}
|
|
@@ -35220,18 +35307,18 @@ var WV = I("MuiSwitch", [
|
|
|
35220
35307
|
variants: [...Object.entries(e.palette).filter(D(["light"])).map(([t]) => ({
|
|
35221
35308
|
props: { color: t },
|
|
35222
35309
|
style: {
|
|
35223
|
-
[`&.${
|
|
35310
|
+
[`&.${$V.checked}`]: {
|
|
35224
35311
|
color: (e.vars || e).palette[t].main,
|
|
35225
35312
|
"&:hover": {
|
|
35226
35313
|
backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
|
|
35227
35314
|
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
35228
35315
|
},
|
|
35229
|
-
[`&.${
|
|
35316
|
+
[`&.${$V.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)}` }
|
|
35230
35317
|
},
|
|
35231
|
-
[`&.${
|
|
35318
|
+
[`&.${$V.checked} + .${$V.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
|
|
35232
35319
|
}
|
|
35233
35320
|
}))]
|
|
35234
|
-
}))),
|
|
35321
|
+
}))), rH = F("span", {
|
|
35235
35322
|
name: "MuiSwitch",
|
|
35236
35323
|
slot: "Track"
|
|
35237
35324
|
})(P(({ theme: e }) => ({
|
|
@@ -35244,7 +35331,7 @@ var WV = I("MuiSwitch", [
|
|
|
35244
35331
|
transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
|
|
35245
35332
|
backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
|
|
35246
35333
|
opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
|
|
35247
|
-
}))),
|
|
35334
|
+
}))), iH = F("span", {
|
|
35248
35335
|
name: "MuiSwitch",
|
|
35249
35336
|
slot: "Thumb"
|
|
35250
35337
|
})(P(({ theme: e }) => ({
|
|
@@ -35255,7 +35342,7 @@ var WV = I("MuiSwitch", [
|
|
|
35255
35342
|
width: 20,
|
|
35256
35343
|
height: 20,
|
|
35257
35344
|
borderRadius: "50%"
|
|
35258
|
-
}))),
|
|
35345
|
+
}))), aH = /*#__PURE__*/ L.forwardRef(function(e, t) {
|
|
35259
35346
|
let n = He({
|
|
35260
35347
|
props: e,
|
|
35261
35348
|
name: "MuiSwitch"
|
|
@@ -35264,29 +35351,29 @@ var WV = I("MuiSwitch", [
|
|
|
35264
35351
|
color: i,
|
|
35265
35352
|
edge: a,
|
|
35266
35353
|
size: o
|
|
35267
|
-
}, f =
|
|
35354
|
+
}, f = eH(d), p = l.input, m = {
|
|
35268
35355
|
slots: c,
|
|
35269
35356
|
slotProps: l
|
|
35270
35357
|
}, [h, g] = A("root", {
|
|
35271
35358
|
className: S(f.root, r),
|
|
35272
|
-
elementType:
|
|
35359
|
+
elementType: tH,
|
|
35273
35360
|
externalForwardedProps: m,
|
|
35274
35361
|
ownerState: d,
|
|
35275
35362
|
additionalProps: { sx: s }
|
|
35276
35363
|
}), [_, v] = A("thumb", {
|
|
35277
35364
|
className: f.thumb,
|
|
35278
|
-
elementType:
|
|
35365
|
+
elementType: iH,
|
|
35279
35366
|
externalForwardedProps: m,
|
|
35280
35367
|
ownerState: d
|
|
35281
35368
|
}), y = /*#__PURE__*/ z(_, { ...v }), [b, x] = A("track", {
|
|
35282
35369
|
className: f.track,
|
|
35283
|
-
elementType:
|
|
35370
|
+
elementType: rH,
|
|
35284
35371
|
externalForwardedProps: m,
|
|
35285
35372
|
ownerState: d
|
|
35286
35373
|
});
|
|
35287
35374
|
return /*#__PURE__*/ B(h, {
|
|
35288
35375
|
...g,
|
|
35289
|
-
children: [/*#__PURE__*/ z(
|
|
35376
|
+
children: [/*#__PURE__*/ z(nH, {
|
|
35290
35377
|
type: "checkbox",
|
|
35291
35378
|
icon: y,
|
|
35292
35379
|
checkedIcon: y,
|
|
@@ -35307,18 +35394,18 @@ var WV = I("MuiSwitch", [
|
|
|
35307
35394
|
}
|
|
35308
35395
|
}), /*#__PURE__*/ z(b, { ...x })]
|
|
35309
35396
|
});
|
|
35310
|
-
}),
|
|
35397
|
+
}), oH = F(OV)(() => ({ "& .MuiFormControlLabel-label": {
|
|
35311
35398
|
left: "-5px",
|
|
35312
35399
|
position: "relative"
|
|
35313
|
-
} })),
|
|
35400
|
+
} })), sH = F(ZV)(() => ({ color: `${N.tertiary()} !important` })), cH = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ z(oH, {
|
|
35314
35401
|
value: t,
|
|
35315
|
-
control: /* @__PURE__ */ z(
|
|
35402
|
+
control: /* @__PURE__ */ z(sH, {
|
|
35316
35403
|
checked: n,
|
|
35317
35404
|
onChange: r
|
|
35318
35405
|
}),
|
|
35319
35406
|
label: e
|
|
35320
35407
|
});
|
|
35321
|
-
|
|
35408
|
+
cH.propTypes = {
|
|
35322
35409
|
label: X.default.string,
|
|
35323
35410
|
value: X.default.string,
|
|
35324
35411
|
checked: X.default.bool,
|
|
@@ -35326,7 +35413,7 @@ $V.propTypes = {
|
|
|
35326
35413
|
};
|
|
35327
35414
|
//#endregion
|
|
35328
35415
|
//#region ../../lib-react/config-ui/dist/tabs/index.js
|
|
35329
|
-
var
|
|
35416
|
+
var lH = F(jk)(() => ({})), uH = class extends it.Component {
|
|
35330
35417
|
static propTypes = {
|
|
35331
35418
|
className: X.default.string,
|
|
35332
35419
|
contentClassName: X.default.string,
|
|
@@ -35347,7 +35434,7 @@ var eH = F(jk)(() => ({})), tH = class extends it.Component {
|
|
|
35347
35434
|
indicatorColor: "primary",
|
|
35348
35435
|
value: e,
|
|
35349
35436
|
onChange: this.handleChange,
|
|
35350
|
-
children: it.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ z(
|
|
35437
|
+
children: it.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ z(lH, { label: e.props.title }, t) : null)
|
|
35351
35438
|
}), /* @__PURE__ */ z("div", {
|
|
35352
35439
|
className: r,
|
|
35353
35440
|
style: i,
|
|
@@ -35355,7 +35442,7 @@ var eH = F(jk)(() => ({})), tH = class extends it.Component {
|
|
|
35355
35442
|
})]
|
|
35356
35443
|
});
|
|
35357
35444
|
}
|
|
35358
|
-
},
|
|
35445
|
+
}, dH = F(OV)(({ theme: e, mini: t }) => ({
|
|
35359
35446
|
margin: 0,
|
|
35360
35447
|
marginLeft: 0,
|
|
35361
35448
|
padding: 0,
|
|
@@ -35369,7 +35456,7 @@ var eH = F(jk)(() => ({})), tH = class extends it.Component {
|
|
|
35369
35456
|
fontSize: e.typography.fontSize - 3
|
|
35370
35457
|
}
|
|
35371
35458
|
}
|
|
35372
|
-
})),
|
|
35459
|
+
})), fH = F(SV)(({ theme: e, mini: t, error: n }) => ({
|
|
35373
35460
|
color: `${N.tertiary()} !important`,
|
|
35374
35461
|
...t && {
|
|
35375
35462
|
margin: 0,
|
|
@@ -35378,9 +35465,9 @@ var eH = F(jk)(() => ({})), tH = class extends it.Component {
|
|
|
35378
35465
|
height: e.spacing(3)
|
|
35379
35466
|
},
|
|
35380
35467
|
...n && { color: `${e.palette.error.main} !important` }
|
|
35381
|
-
})),
|
|
35468
|
+
})), pH = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ z(dH, {
|
|
35382
35469
|
mini: e,
|
|
35383
|
-
control: /* @__PURE__ */ z(
|
|
35470
|
+
control: /* @__PURE__ */ z(fH, {
|
|
35384
35471
|
checked: t,
|
|
35385
35472
|
onChange: n,
|
|
35386
35473
|
value: r,
|
|
@@ -35389,21 +35476,21 @@ var eH = F(jk)(() => ({})), tH = class extends it.Component {
|
|
|
35389
35476
|
}),
|
|
35390
35477
|
label: i
|
|
35391
35478
|
});
|
|
35392
|
-
|
|
35479
|
+
pH.propTypes = {
|
|
35393
35480
|
mini: X.default.bool,
|
|
35394
35481
|
checked: X.default.bool.isRequired,
|
|
35395
35482
|
onChange: X.default.func.isRequired,
|
|
35396
35483
|
value: X.default.string,
|
|
35397
35484
|
label: X.default.string.isRequired,
|
|
35398
35485
|
error: X.default.bool
|
|
35399
|
-
},
|
|
35486
|
+
}, pH.defaultProps = {
|
|
35400
35487
|
value: "",
|
|
35401
35488
|
mini: !1,
|
|
35402
35489
|
error: !1
|
|
35403
35490
|
};
|
|
35404
35491
|
//#endregion
|
|
35405
35492
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
35406
|
-
var
|
|
35493
|
+
var mH = (0, kt.default)("@pie-lib:config-ui:number-text-field"), hH = F(dO)(({ theme: e }) => ({
|
|
35407
35494
|
marginRight: e.spacing(1),
|
|
35408
35495
|
"& .MuiInputLabel-root": {
|
|
35409
35496
|
width: "auto",
|
|
@@ -35425,11 +35512,11 @@ var aH = (0, kt.default)("@pie-lib:config-ui:number-text-field"), oH = F(dO)(({
|
|
|
35425
35512
|
minHeight: "auto",
|
|
35426
35513
|
padding: "6px 0 7px"
|
|
35427
35514
|
}
|
|
35428
|
-
})),
|
|
35515
|
+
})), gH = (e, n) => {
|
|
35429
35516
|
if (!t(e) && !t(n)) return 0;
|
|
35430
35517
|
if (!t(e) && t(n)) return n;
|
|
35431
35518
|
if (t(e)) return e;
|
|
35432
|
-
},
|
|
35519
|
+
}, _H = class extends it.Component {
|
|
35433
35520
|
static propTypes = {
|
|
35434
35521
|
disabled: X.default.bool,
|
|
35435
35522
|
className: X.default.string,
|
|
@@ -35455,13 +35542,13 @@ var aH = (0, kt.default)("@pie-lib:config-ui:number-text-field"), oH = F(dO)(({
|
|
|
35455
35542
|
this.setState({ value: t });
|
|
35456
35543
|
}
|
|
35457
35544
|
clamp(e, n = this.props.min, r = this.props.max) {
|
|
35458
|
-
return t(e) ? (t(r) && (e = Math.min(e, r)), t(n) && (e = Math.max(e, n)), e) :
|
|
35545
|
+
return t(e) ? (t(r) && (e = Math.min(e, r)), t(n) && (e = Math.max(e, n)), e) : gH(n, r);
|
|
35459
35546
|
}
|
|
35460
35547
|
onBlur = (e) => {
|
|
35461
35548
|
let t = e.target.value, n = parseFloat(t);
|
|
35462
|
-
|
|
35549
|
+
mH("rawNumber: ", n);
|
|
35463
35550
|
let r = this.clamp(n);
|
|
35464
|
-
|
|
35551
|
+
mH("number: ", r), r !== this.state.value && (mH("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
35465
35552
|
this.props.onChange(e, r);
|
|
35466
35553
|
}));
|
|
35467
35554
|
};
|
|
@@ -35481,7 +35568,7 @@ var aH = (0, kt.default)("@pie-lib:config-ui:number-text-field"), oH = F(dO)(({
|
|
|
35481
35568
|
};
|
|
35482
35569
|
render() {
|
|
35483
35570
|
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();
|
|
35484
|
-
return /* @__PURE__ */ z(
|
|
35571
|
+
return /* @__PURE__ */ z(hH, {
|
|
35485
35572
|
variant: s ? "filled" : l || "standard",
|
|
35486
35573
|
inputRef: (e) => {
|
|
35487
35574
|
this.inputRef = e;
|
|
@@ -35500,7 +35587,7 @@ var aH = (0, kt.default)("@pie-lib:config-ui:number-text-field"), oH = F(dO)(({
|
|
|
35500
35587
|
type: "number",
|
|
35501
35588
|
className: e,
|
|
35502
35589
|
slotProps: { input: {
|
|
35503
|
-
endAdornment: r && /* @__PURE__ */ z(
|
|
35590
|
+
endAdornment: r && /* @__PURE__ */ z(FV, {
|
|
35504
35591
|
position: "end",
|
|
35505
35592
|
children: r
|
|
35506
35593
|
}),
|
|
@@ -35516,19 +35603,19 @@ var aH = (0, kt.default)("@pie-lib:config-ui:number-text-field"), oH = F(dO)(({
|
|
|
35516
35603
|
};
|
|
35517
35604
|
//#endregion
|
|
35518
35605
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
35519
|
-
function
|
|
35606
|
+
function vH(e) {
|
|
35520
35607
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
35521
35608
|
}
|
|
35522
|
-
function
|
|
35523
|
-
return !e ||
|
|
35609
|
+
function yH(e, t) {
|
|
35610
|
+
return !e || vH(e) ? e : vH(e.default) ? e.default : t && vH(e[t]) ? e[t] : t && vH(e[t]?.default) ? e[t].default : e;
|
|
35524
35611
|
}
|
|
35525
|
-
var
|
|
35612
|
+
var bH = yH(Xe, "InputContainer") || yH(CH.InputContainer, "InputContainer"), xH = Be, SH = xH.default, CH = SH && typeof SH == "object" ? SH : xH, wH = F("div")(({ theme: e, direction: t }) => ({
|
|
35526
35613
|
display: "flex",
|
|
35527
35614
|
flexWrap: "wrap",
|
|
35528
35615
|
paddingLeft: 0,
|
|
35529
35616
|
marginTop: e.spacing(1),
|
|
35530
35617
|
...t === "vertical" && { flexDirection: "column" }
|
|
35531
|
-
})),
|
|
35618
|
+
})), TH = class extends it.Component {
|
|
35532
35619
|
static propTypes = {
|
|
35533
35620
|
header: X.default.string.isRequired,
|
|
35534
35621
|
className: X.default.string,
|
|
@@ -35545,11 +35632,11 @@ var dH = uH(Xe, "InputContainer") || uH(mH.InputContainer, "InputContainer"), fH
|
|
|
35545
35632
|
let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
|
|
35546
35633
|
label: e,
|
|
35547
35634
|
value: e
|
|
35548
|
-
} : e), s = n ||
|
|
35549
|
-
return /* @__PURE__ */ z(
|
|
35635
|
+
} : e), s = n || cH;
|
|
35636
|
+
return /* @__PURE__ */ z(bH, {
|
|
35550
35637
|
label: e,
|
|
35551
35638
|
className: t,
|
|
35552
|
-
children: /* @__PURE__ */ z(
|
|
35639
|
+
children: /* @__PURE__ */ z(wH, {
|
|
35553
35640
|
direction: a,
|
|
35554
35641
|
children: o.map((e, t) => /* @__PURE__ */ z(s, {
|
|
35555
35642
|
value: e.value,
|
|
@@ -35560,7 +35647,7 @@ var dH = uH(Xe, "InputContainer") || uH(mH.InputContainer, "InputContainer"), fH
|
|
|
35560
35647
|
})
|
|
35561
35648
|
});
|
|
35562
35649
|
}
|
|
35563
|
-
},
|
|
35650
|
+
}, EH = X.default.shape({
|
|
35564
35651
|
label: X.default.string,
|
|
35565
35652
|
value: X.default.string
|
|
35566
35653
|
});
|
|
@@ -35569,14 +35656,14 @@ var dH = uH(Xe, "InputContainer") || uH(mH.InputContainer, "InputContainer"), fH
|
|
|
35569
35656
|
header: X.default.string.isRequired,
|
|
35570
35657
|
value: X.default.string.isRequired,
|
|
35571
35658
|
onChange: X.default.func.isRequired,
|
|
35572
|
-
one: X.default.oneOfType([
|
|
35573
|
-
two: X.default.oneOfType([
|
|
35659
|
+
one: X.default.oneOfType([EH, X.default.string]),
|
|
35660
|
+
two: X.default.oneOfType([EH, X.default.string]),
|
|
35574
35661
|
className: X.default.string,
|
|
35575
35662
|
customLabel: X.default.func
|
|
35576
35663
|
};
|
|
35577
35664
|
render() {
|
|
35578
35665
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
35579
|
-
return /* @__PURE__ */ z(
|
|
35666
|
+
return /* @__PURE__ */ z(TH, {
|
|
35580
35667
|
customLabel: i,
|
|
35581
35668
|
header: n,
|
|
35582
35669
|
className: r,
|
|
@@ -35588,21 +35675,21 @@ var dH = uH(Xe, "InputContainer") || uH(mH.InputContainer, "InputContainer"), fH
|
|
|
35588
35675
|
});
|
|
35589
35676
|
//#endregion
|
|
35590
35677
|
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
35591
|
-
var
|
|
35678
|
+
var DH = Object.defineProperty, OH = (e, t) => {
|
|
35592
35679
|
let n = {};
|
|
35593
|
-
for (var r in e)
|
|
35680
|
+
for (var r in e) DH(n, r, {
|
|
35594
35681
|
get: e[r],
|
|
35595
35682
|
enumerable: !0
|
|
35596
35683
|
});
|
|
35597
|
-
return t ||
|
|
35598
|
-
},
|
|
35684
|
+
return t || DH(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
35685
|
+
}, kH = F("div")(() => ({
|
|
35599
35686
|
display: "flex",
|
|
35600
35687
|
flexDirection: "column",
|
|
35601
35688
|
position: "relative"
|
|
35602
|
-
})),
|
|
35689
|
+
})), AH = F("div")(() => ({
|
|
35603
35690
|
display: "flex",
|
|
35604
35691
|
justifyContent: "space-between"
|
|
35605
|
-
})),
|
|
35692
|
+
})), jH = F("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), MH = F("div")(() => ({ flex: "1" })), NH = F("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), PH = class extends it.Component {
|
|
35606
35693
|
static propTypes = {
|
|
35607
35694
|
mode: X.default.oneOf(["tabbed", "inline"]),
|
|
35608
35695
|
secondary: X.default.oneOfType([X.default.arrayOf(X.default.node), X.default.node]),
|
|
@@ -35620,7 +35707,7 @@ var vH = Object.defineProperty, yH = (e, t) => {
|
|
|
35620
35707
|
} catch (e) {
|
|
35621
35708
|
console.log(e.toString());
|
|
35622
35709
|
}
|
|
35623
|
-
return /* @__PURE__ */ B(
|
|
35710
|
+
return /* @__PURE__ */ B(kH, {
|
|
35624
35711
|
style: {
|
|
35625
35712
|
minHeight: i,
|
|
35626
35713
|
minWidth: a,
|
|
@@ -35628,28 +35715,28 @@ var vH = Object.defineProperty, yH = (e, t) => {
|
|
|
35628
35715
|
maxWidth: s
|
|
35629
35716
|
},
|
|
35630
35717
|
children: [
|
|
35631
|
-
e === "inline" && /* @__PURE__ */ B(
|
|
35718
|
+
e === "inline" && /* @__PURE__ */ B(AH, { children: [/* @__PURE__ */ z(MH, {
|
|
35632
35719
|
className: "design-container",
|
|
35633
35720
|
children: n
|
|
35634
|
-
}), l && /* @__PURE__ */ z(
|
|
35721
|
+
}), l && /* @__PURE__ */ z(NH, {
|
|
35635
35722
|
className: "settings-container",
|
|
35636
35723
|
children: t
|
|
35637
35724
|
})] }),
|
|
35638
|
-
e === "tabbed" && l && /* @__PURE__ */ B(
|
|
35725
|
+
e === "tabbed" && l && /* @__PURE__ */ B(uH, {
|
|
35639
35726
|
onChange: this.onTabsChange,
|
|
35640
35727
|
contentClassName: "content-container",
|
|
35641
35728
|
indicatorColor: "primary",
|
|
35642
|
-
children: [/* @__PURE__ */ z(
|
|
35729
|
+
children: [/* @__PURE__ */ z(jH, {
|
|
35643
35730
|
title: "Design",
|
|
35644
35731
|
className: "design-container",
|
|
35645
35732
|
children: n
|
|
35646
|
-
}), /* @__PURE__ */ z(
|
|
35733
|
+
}), /* @__PURE__ */ z(jH, {
|
|
35647
35734
|
title: "Settings",
|
|
35648
35735
|
className: "settings-container",
|
|
35649
35736
|
children: t
|
|
35650
35737
|
})]
|
|
35651
35738
|
}),
|
|
35652
|
-
e === "tabbed" && !l && /* @__PURE__ */ z(
|
|
35739
|
+
e === "tabbed" && !l && /* @__PURE__ */ z(jH, {
|
|
35653
35740
|
className: "design-container",
|
|
35654
35741
|
children: n
|
|
35655
35742
|
})
|
|
@@ -35659,18 +35746,18 @@ var vH = Object.defineProperty, yH = (e, t) => {
|
|
|
35659
35746
|
};
|
|
35660
35747
|
//#endregion
|
|
35661
35748
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
35662
|
-
function
|
|
35663
|
-
return
|
|
35749
|
+
function FH() {
|
|
35750
|
+
return FH = Object.assign ? Object.assign.bind() : function(e) {
|
|
35664
35751
|
for (var t = 1; t < arguments.length; t++) {
|
|
35665
35752
|
var n = arguments[t];
|
|
35666
35753
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
35667
35754
|
}
|
|
35668
35755
|
return e;
|
|
35669
|
-
},
|
|
35756
|
+
}, FH.apply(null, arguments);
|
|
35670
35757
|
}
|
|
35671
35758
|
//#endregion
|
|
35672
35759
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
35673
|
-
function
|
|
35760
|
+
function IH(e, t) {
|
|
35674
35761
|
if (e == null) return {};
|
|
35675
35762
|
var n = {};
|
|
35676
35763
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -35681,19 +35768,19 @@ function DH(e, t) {
|
|
|
35681
35768
|
}
|
|
35682
35769
|
//#endregion
|
|
35683
35770
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
35684
|
-
function
|
|
35685
|
-
return
|
|
35771
|
+
function LH(e, t) {
|
|
35772
|
+
return LH = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
35686
35773
|
return e.__proto__ = t, e;
|
|
35687
|
-
},
|
|
35774
|
+
}, LH(e, t);
|
|
35688
35775
|
}
|
|
35689
35776
|
//#endregion
|
|
35690
35777
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
35691
|
-
function
|
|
35692
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
35778
|
+
function RH(e, t) {
|
|
35779
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, LH(e, t);
|
|
35693
35780
|
}
|
|
35694
35781
|
//#endregion
|
|
35695
35782
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
35696
|
-
var
|
|
35783
|
+
var zH = (function() {
|
|
35697
35784
|
if (typeof Map < "u") return Map;
|
|
35698
35785
|
function e(e, t) {
|
|
35699
35786
|
var n = -1;
|
|
@@ -35732,34 +35819,34 @@ var AH = (function() {
|
|
|
35732
35819
|
}
|
|
35733
35820
|
}, t;
|
|
35734
35821
|
}();
|
|
35735
|
-
})(),
|
|
35822
|
+
})(), BH = typeof window < "u" && typeof document < "u" && window.document === document, VH = (function() {
|
|
35736
35823
|
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")();
|
|
35737
|
-
})(),
|
|
35738
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
35824
|
+
})(), HH = (function() {
|
|
35825
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(VH) : function(e) {
|
|
35739
35826
|
return setTimeout(function() {
|
|
35740
35827
|
return e(Date.now());
|
|
35741
35828
|
}, 1e3 / 60);
|
|
35742
35829
|
};
|
|
35743
|
-
})(),
|
|
35744
|
-
function
|
|
35830
|
+
})(), UH = 2;
|
|
35831
|
+
function WH(e, t) {
|
|
35745
35832
|
var n = !1, r = !1, i = 0;
|
|
35746
35833
|
function a() {
|
|
35747
35834
|
n && (n = !1, e()), r && s();
|
|
35748
35835
|
}
|
|
35749
35836
|
function o() {
|
|
35750
|
-
|
|
35837
|
+
HH(a);
|
|
35751
35838
|
}
|
|
35752
35839
|
function s() {
|
|
35753
35840
|
var e = Date.now();
|
|
35754
35841
|
if (n) {
|
|
35755
|
-
if (e - i <
|
|
35842
|
+
if (e - i < UH) return;
|
|
35756
35843
|
r = !0;
|
|
35757
35844
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
35758
35845
|
i = e;
|
|
35759
35846
|
}
|
|
35760
35847
|
return s;
|
|
35761
35848
|
}
|
|
35762
|
-
var
|
|
35849
|
+
var GH = 20, KH = [
|
|
35763
35850
|
"top",
|
|
35764
35851
|
"right",
|
|
35765
35852
|
"bottom",
|
|
@@ -35768,9 +35855,9 @@ var IH = 20, LH = [
|
|
|
35768
35855
|
"height",
|
|
35769
35856
|
"size",
|
|
35770
35857
|
"weight"
|
|
35771
|
-
],
|
|
35858
|
+
], qH = typeof MutationObserver < "u", JH = function() {
|
|
35772
35859
|
function e() {
|
|
35773
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
35860
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = WH(this.refresh.bind(this), GH);
|
|
35774
35861
|
}
|
|
35775
35862
|
return e.prototype.addObserver = function(e) {
|
|
35776
35863
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -35787,23 +35874,23 @@ var IH = 20, LH = [
|
|
|
35787
35874
|
return e.broadcastActive();
|
|
35788
35875
|
}), e.length > 0;
|
|
35789
35876
|
}, e.prototype.connect_ = function() {
|
|
35790
|
-
!
|
|
35877
|
+
!BH || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), qH ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
35791
35878
|
attributes: !0,
|
|
35792
35879
|
childList: !0,
|
|
35793
35880
|
characterData: !0,
|
|
35794
35881
|
subtree: !0
|
|
35795
35882
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
35796
35883
|
}, e.prototype.disconnect_ = function() {
|
|
35797
|
-
!
|
|
35884
|
+
!BH || !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);
|
|
35798
35885
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
35799
35886
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
35800
|
-
|
|
35887
|
+
KH.some(function(e) {
|
|
35801
35888
|
return !!~n.indexOf(e);
|
|
35802
35889
|
}) && this.refresh();
|
|
35803
35890
|
}, e.getInstance = function() {
|
|
35804
35891
|
return this.instance_ ||= new e(), this.instance_;
|
|
35805
35892
|
}, e.instance_ = null, e;
|
|
35806
|
-
}(),
|
|
35893
|
+
}(), YH = (function(e, t) {
|
|
35807
35894
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
35808
35895
|
var i = r[n];
|
|
35809
35896
|
Object.defineProperty(e, i, {
|
|
@@ -35814,19 +35901,19 @@ var IH = 20, LH = [
|
|
|
35814
35901
|
});
|
|
35815
35902
|
}
|
|
35816
35903
|
return e;
|
|
35817
|
-
}),
|
|
35818
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
35819
|
-
}),
|
|
35820
|
-
function
|
|
35904
|
+
}), XH = (function(e) {
|
|
35905
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || VH;
|
|
35906
|
+
}), ZH = sU(0, 0, 0, 0);
|
|
35907
|
+
function QH(e) {
|
|
35821
35908
|
return parseFloat(e) || 0;
|
|
35822
35909
|
}
|
|
35823
|
-
function
|
|
35910
|
+
function $H(e) {
|
|
35824
35911
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
35825
35912
|
var r = e["border-" + n + "-width"];
|
|
35826
|
-
return t +
|
|
35913
|
+
return t + QH(r);
|
|
35827
35914
|
}, 0);
|
|
35828
35915
|
}
|
|
35829
|
-
function
|
|
35916
|
+
function eU(e) {
|
|
35830
35917
|
for (var t = [
|
|
35831
35918
|
"top",
|
|
35832
35919
|
"right",
|
|
@@ -35834,40 +35921,40 @@ function GH(e) {
|
|
|
35834
35921
|
"left"
|
|
35835
35922
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
35836
35923
|
var a = i[r], o = e["padding-" + a];
|
|
35837
|
-
n[a] =
|
|
35924
|
+
n[a] = QH(o);
|
|
35838
35925
|
}
|
|
35839
35926
|
return n;
|
|
35840
35927
|
}
|
|
35841
|
-
function
|
|
35928
|
+
function tU(e) {
|
|
35842
35929
|
var t = e.getBBox();
|
|
35843
|
-
return
|
|
35930
|
+
return sU(0, 0, t.width, t.height);
|
|
35844
35931
|
}
|
|
35845
|
-
function
|
|
35932
|
+
function nU(e) {
|
|
35846
35933
|
var t = e.clientWidth, n = e.clientHeight;
|
|
35847
|
-
if (!t && !n) return
|
|
35848
|
-
var r =
|
|
35849
|
-
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -=
|
|
35934
|
+
if (!t && !n) return ZH;
|
|
35935
|
+
var r = XH(e).getComputedStyle(e), i = eU(r), a = i.left + i.right, o = i.top + i.bottom, s = QH(r.width), c = QH(r.height);
|
|
35936
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= $H(r, "left", "right") + a), Math.round(c + o) !== n && (c -= $H(r, "top", "bottom") + o)), !iU(e)) {
|
|
35850
35937
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
35851
35938
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
35852
35939
|
}
|
|
35853
|
-
return
|
|
35940
|
+
return sU(i.left, i.top, s, c);
|
|
35854
35941
|
}
|
|
35855
|
-
var
|
|
35942
|
+
var rU = (function() {
|
|
35856
35943
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
35857
|
-
return e instanceof
|
|
35944
|
+
return e instanceof XH(e).SVGGraphicsElement;
|
|
35858
35945
|
} : function(e) {
|
|
35859
|
-
return e instanceof
|
|
35946
|
+
return e instanceof XH(e).SVGElement && typeof e.getBBox == "function";
|
|
35860
35947
|
};
|
|
35861
35948
|
})();
|
|
35862
|
-
function
|
|
35863
|
-
return e ===
|
|
35949
|
+
function iU(e) {
|
|
35950
|
+
return e === XH(e).document.documentElement;
|
|
35864
35951
|
}
|
|
35865
|
-
function
|
|
35866
|
-
return
|
|
35952
|
+
function aU(e) {
|
|
35953
|
+
return BH ? rU(e) ? tU(e) : nU(e) : ZH;
|
|
35867
35954
|
}
|
|
35868
|
-
function
|
|
35955
|
+
function oU(e) {
|
|
35869
35956
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
35870
|
-
return
|
|
35957
|
+
return YH(a, {
|
|
35871
35958
|
x: t,
|
|
35872
35959
|
y: n,
|
|
35873
35960
|
width: r,
|
|
@@ -35878,7 +35965,7 @@ function ZH(e) {
|
|
|
35878
35965
|
left: t
|
|
35879
35966
|
}), a;
|
|
35880
35967
|
}
|
|
35881
|
-
function
|
|
35968
|
+
function sU(e, t, n, r) {
|
|
35882
35969
|
return {
|
|
35883
35970
|
x: e,
|
|
35884
35971
|
y: t,
|
|
@@ -35886,42 +35973,42 @@ function QH(e, t, n, r) {
|
|
|
35886
35973
|
height: r
|
|
35887
35974
|
};
|
|
35888
35975
|
}
|
|
35889
|
-
var
|
|
35976
|
+
var cU = function() {
|
|
35890
35977
|
function e(e) {
|
|
35891
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
35978
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = sU(0, 0, 0, 0), this.target = e;
|
|
35892
35979
|
}
|
|
35893
35980
|
return e.prototype.isActive = function() {
|
|
35894
|
-
var e =
|
|
35981
|
+
var e = aU(this.target);
|
|
35895
35982
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
35896
35983
|
}, e.prototype.broadcastRect = function() {
|
|
35897
35984
|
var e = this.contentRect_;
|
|
35898
35985
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
35899
35986
|
}, e;
|
|
35900
|
-
}(),
|
|
35987
|
+
}(), lU = function() {
|
|
35901
35988
|
function e(e, t) {
|
|
35902
|
-
var n =
|
|
35903
|
-
|
|
35989
|
+
var n = oU(t);
|
|
35990
|
+
YH(this, {
|
|
35904
35991
|
target: e,
|
|
35905
35992
|
contentRect: n
|
|
35906
35993
|
});
|
|
35907
35994
|
}
|
|
35908
35995
|
return e;
|
|
35909
|
-
}(),
|
|
35996
|
+
}(), uU = function() {
|
|
35910
35997
|
function e(e, t, n) {
|
|
35911
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
35998
|
+
if (this.activeObservations_ = [], this.observations_ = new zH(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
35912
35999
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
35913
36000
|
}
|
|
35914
36001
|
return e.prototype.observe = function(e) {
|
|
35915
36002
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
35916
36003
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
35917
|
-
if (!(e instanceof
|
|
36004
|
+
if (!(e instanceof XH(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
35918
36005
|
var t = this.observations_;
|
|
35919
|
-
t.has(e) || (t.set(e, new
|
|
36006
|
+
t.has(e) || (t.set(e, new cU(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
35920
36007
|
}
|
|
35921
36008
|
}, e.prototype.unobserve = function(e) {
|
|
35922
36009
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
35923
36010
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
35924
|
-
if (!(e instanceof
|
|
36011
|
+
if (!(e instanceof XH(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
35925
36012
|
var t = this.observations_;
|
|
35926
36013
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
35927
36014
|
}
|
|
@@ -35935,7 +36022,7 @@ var $H = function() {
|
|
|
35935
36022
|
}, e.prototype.broadcastActive = function() {
|
|
35936
36023
|
if (this.hasActive()) {
|
|
35937
36024
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
35938
|
-
return new
|
|
36025
|
+
return new lU(e.target, e.broadcastRect());
|
|
35939
36026
|
});
|
|
35940
36027
|
this.callback_.call(e, t, e), this.clearActive();
|
|
35941
36028
|
}
|
|
@@ -35944,12 +36031,12 @@ var $H = function() {
|
|
|
35944
36031
|
}, e.prototype.hasActive = function() {
|
|
35945
36032
|
return this.activeObservations_.length > 0;
|
|
35946
36033
|
}, e;
|
|
35947
|
-
}(),
|
|
36034
|
+
}(), dU = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new zH(), fU = function() {
|
|
35948
36035
|
function e(t) {
|
|
35949
36036
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
35950
36037
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
35951
|
-
var n = new
|
|
35952
|
-
|
|
36038
|
+
var n = new uU(t, JH.getInstance(), this);
|
|
36039
|
+
dU.set(this, n);
|
|
35953
36040
|
}
|
|
35954
36041
|
return e;
|
|
35955
36042
|
}();
|
|
@@ -35958,27 +36045,27 @@ var $H = function() {
|
|
|
35958
36045
|
"unobserve",
|
|
35959
36046
|
"disconnect"
|
|
35960
36047
|
].forEach(function(e) {
|
|
35961
|
-
|
|
36048
|
+
fU.prototype[e] = function() {
|
|
35962
36049
|
var t;
|
|
35963
|
-
return (t =
|
|
36050
|
+
return (t = dU.get(this))[e].apply(t, arguments);
|
|
35964
36051
|
};
|
|
35965
36052
|
});
|
|
35966
|
-
var
|
|
35967
|
-
return
|
|
35968
|
-
})(),
|
|
36053
|
+
var pU = (function() {
|
|
36054
|
+
return VH.ResizeObserver === void 0 ? fU : VH.ResizeObserver;
|
|
36055
|
+
})(), mU = [
|
|
35969
36056
|
"client",
|
|
35970
36057
|
"offset",
|
|
35971
36058
|
"scroll",
|
|
35972
36059
|
"bounds",
|
|
35973
36060
|
"margin"
|
|
35974
36061
|
];
|
|
35975
|
-
function
|
|
36062
|
+
function hU(e) {
|
|
35976
36063
|
var t = [];
|
|
35977
|
-
return
|
|
36064
|
+
return mU.forEach(function(n) {
|
|
35978
36065
|
e[n] && t.push(n);
|
|
35979
36066
|
}), t;
|
|
35980
36067
|
}
|
|
35981
|
-
function
|
|
36068
|
+
function gU(e, t) {
|
|
35982
36069
|
var n = {};
|
|
35983
36070
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
35984
36071
|
top: e.clientTop,
|
|
@@ -36017,14 +36104,14 @@ function sU(e, t) {
|
|
|
36017
36104
|
}
|
|
36018
36105
|
return n;
|
|
36019
36106
|
}
|
|
36020
|
-
function
|
|
36107
|
+
function _U(e) {
|
|
36021
36108
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
36022
36109
|
}
|
|
36023
|
-
function
|
|
36110
|
+
function vU(e) {
|
|
36024
36111
|
return function(t) {
|
|
36025
36112
|
var n, r;
|
|
36026
36113
|
return r = n = /*#__PURE__*/ function(n) {
|
|
36027
|
-
|
|
36114
|
+
RH(r, n);
|
|
36028
36115
|
function r() {
|
|
36029
36116
|
var t, r = [...arguments];
|
|
36030
36117
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -36035,24 +36122,24 @@ function lU(e) {
|
|
|
36035
36122
|
bounds: {},
|
|
36036
36123
|
margin: {}
|
|
36037
36124
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
36038
|
-
var r =
|
|
36125
|
+
var r = gU(t._node, e || hU(t.props));
|
|
36039
36126
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
36040
36127
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
36041
36128
|
});
|
|
36042
36129
|
}, t._handleRef = function(e) {
|
|
36043
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
36130
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = _U(t._node);
|
|
36044
36131
|
var n = t.props.innerRef;
|
|
36045
36132
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
36046
36133
|
}, t;
|
|
36047
36134
|
}
|
|
36048
36135
|
var i = r.prototype;
|
|
36049
36136
|
return i.componentDidMount = function() {
|
|
36050
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
36137
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new pU(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(gU(this._node, e || hU(this.props))));
|
|
36051
36138
|
}, i.componentWillUnmount = function() {
|
|
36052
36139
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
36053
36140
|
}, i.render = function() {
|
|
36054
36141
|
var e = this.props;
|
|
36055
|
-
return e.innerRef, e.onResize, st(t,
|
|
36142
|
+
return e.innerRef, e.onResize, st(t, FH({}, IH(e, ["innerRef", "onResize"]), {
|
|
36056
36143
|
measureRef: this._handleRef,
|
|
36057
36144
|
measure: this.measure,
|
|
36058
36145
|
contentRect: this.state.contentRect
|
|
@@ -36069,7 +36156,7 @@ function lU(e) {
|
|
|
36069
36156
|
}, r;
|
|
36070
36157
|
};
|
|
36071
36158
|
}
|
|
36072
|
-
var
|
|
36159
|
+
var yU = vU()(function(e) {
|
|
36073
36160
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
36074
36161
|
return i({
|
|
36075
36162
|
measure: t,
|
|
@@ -36077,10 +36164,10 @@ var uU = lU()(function(e) {
|
|
|
36077
36164
|
contentRect: r
|
|
36078
36165
|
});
|
|
36079
36166
|
});
|
|
36080
|
-
|
|
36167
|
+
yU.displayName = "Measure", yU.propTypes.children = X.default.func;
|
|
36081
36168
|
//#endregion
|
|
36082
36169
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
36083
|
-
var
|
|
36170
|
+
var bU = F("div")(() => ({
|
|
36084
36171
|
backgroundColor: N.white(),
|
|
36085
36172
|
border: `2px solid ${N.border()}`,
|
|
36086
36173
|
display: "flex",
|
|
@@ -36090,7 +36177,7 @@ var dU = F("div")(() => ({
|
|
|
36090
36177
|
maxWidth: "300px",
|
|
36091
36178
|
padding: "20px 4px 4px 20px",
|
|
36092
36179
|
zIndex: 99
|
|
36093
|
-
})),
|
|
36180
|
+
})), xU = class extends it.Component {
|
|
36094
36181
|
static propTypes = {
|
|
36095
36182
|
className: X.default.string,
|
|
36096
36183
|
children: X.default.oneOfType([X.default.arrayOf(X.default.node), X.default.node]).isRequired
|
|
@@ -36098,19 +36185,19 @@ var dU = F("div")(() => ({
|
|
|
36098
36185
|
static defaultProps = {};
|
|
36099
36186
|
render() {
|
|
36100
36187
|
let { className: e, children: t } = this.props;
|
|
36101
|
-
return /* @__PURE__ */ z(
|
|
36188
|
+
return /* @__PURE__ */ z(bU, {
|
|
36102
36189
|
className: e,
|
|
36103
36190
|
children: t
|
|
36104
36191
|
});
|
|
36105
36192
|
}
|
|
36106
|
-
},
|
|
36193
|
+
}, SU = Me({
|
|
36107
36194
|
typography: { fontFamily: "inherit" },
|
|
36108
36195
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
36109
36196
|
backgroundColor: "#e0e0e0",
|
|
36110
36197
|
color: "#000000",
|
|
36111
36198
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
36112
36199
|
} } } }
|
|
36113
|
-
}),
|
|
36200
|
+
}), CU = class extends it.Component {
|
|
36114
36201
|
static propTypes = {
|
|
36115
36202
|
children: X.default.oneOfType([
|
|
36116
36203
|
X.default.string,
|
|
@@ -36143,19 +36230,19 @@ var dU = F("div")(() => ({
|
|
|
36143
36230
|
return /* @__PURE__ */ z(le, {
|
|
36144
36231
|
injectFirst: !0,
|
|
36145
36232
|
children: /* @__PURE__ */ z(Le, {
|
|
36146
|
-
theme:
|
|
36147
|
-
children: /* @__PURE__ */ z(
|
|
36233
|
+
theme: SU,
|
|
36234
|
+
children: /* @__PURE__ */ z(yU, {
|
|
36148
36235
|
bounds: !0,
|
|
36149
36236
|
onResize: this.onResize,
|
|
36150
36237
|
children: ({ measureRef: e }) => {
|
|
36151
|
-
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ z(
|
|
36238
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ z(xU, {
|
|
36152
36239
|
className: "settings-box",
|
|
36153
36240
|
children: n
|
|
36154
36241
|
}) : n;
|
|
36155
36242
|
return /* @__PURE__ */ B("div", {
|
|
36156
36243
|
ref: e,
|
|
36157
36244
|
className: "main-container extraCSSRules",
|
|
36158
|
-
children: [a?.rules ? /* @__PURE__ */ z("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ z(
|
|
36245
|
+
children: [a?.rules ? /* @__PURE__ */ z("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ z(PH, {
|
|
36159
36246
|
mode: o,
|
|
36160
36247
|
secondary: s,
|
|
36161
36248
|
dimensions: i,
|
|
@@ -36167,27 +36254,27 @@ var dU = F("div")(() => ({
|
|
|
36167
36254
|
})
|
|
36168
36255
|
});
|
|
36169
36256
|
}
|
|
36170
|
-
},
|
|
36171
|
-
ConfigLayout: () =>
|
|
36172
|
-
LayoutContents: () =>
|
|
36173
|
-
}),
|
|
36257
|
+
}, wU = vU("bounds")(CU), TU = /* @__PURE__ */ OH({
|
|
36258
|
+
ConfigLayout: () => wU,
|
|
36259
|
+
LayoutContents: () => PH
|
|
36260
|
+
}), EU = F("div")(() => ({
|
|
36174
36261
|
display: "flex",
|
|
36175
36262
|
width: "100%",
|
|
36176
36263
|
justifyContent: "space-between"
|
|
36177
|
-
})),
|
|
36264
|
+
})), DU = F(Ue)(({ theme: e }) => ({
|
|
36178
36265
|
color: "rgba(0, 0, 0, 0.89)",
|
|
36179
36266
|
fontSize: e.typography.fontSize,
|
|
36180
36267
|
paddingTop: e.spacing(2)
|
|
36181
|
-
})),
|
|
36268
|
+
})), OU = F(aH)(({ checked: e }) => ({
|
|
36182
36269
|
"&.Mui-checked .MuiSwitch-thumb": { color: `${N.tertiary()} !important` },
|
|
36183
36270
|
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${N.tertiaryLight()} !important` },
|
|
36184
36271
|
"& .MuiSwitch-track": { backgroundColor: e ? `${N.tertiaryLight()} !important` : void 0 }
|
|
36185
|
-
})),
|
|
36272
|
+
})), kU = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ B(EU, { children: [/* @__PURE__ */ z(DU, { children: n }), /* @__PURE__ */ z(OU, {
|
|
36186
36273
|
checked: e,
|
|
36187
36274
|
disabled: t,
|
|
36188
36275
|
onChange: (e) => r(e.target.checked)
|
|
36189
36276
|
})] });
|
|
36190
|
-
|
|
36277
|
+
kU.propTypes = {
|
|
36191
36278
|
checked: X.default.bool,
|
|
36192
36279
|
disabled: X.default.bool,
|
|
36193
36280
|
label: X.default.string.isRequired,
|
|
@@ -36195,20 +36282,20 @@ bU.propTypes = {
|
|
|
36195
36282
|
};
|
|
36196
36283
|
//#endregion
|
|
36197
36284
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
36198
|
-
var
|
|
36285
|
+
var AU = F(OV)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
36199
36286
|
color: "rgba(0, 0, 0, 0.89)",
|
|
36200
36287
|
fontSize: e.typography.fontSize - 2,
|
|
36201
36288
|
left: "-5px",
|
|
36202
36289
|
position: "relative"
|
|
36203
|
-
} })),
|
|
36290
|
+
} })), jU = F(ZV)(() => ({ color: `${N.tertiary()} !important` })), MU = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ z(AU, {
|
|
36204
36291
|
value: t,
|
|
36205
|
-
control: /* @__PURE__ */ z(
|
|
36292
|
+
control: /* @__PURE__ */ z(jU, {
|
|
36206
36293
|
checked: n,
|
|
36207
36294
|
onChange: r
|
|
36208
36295
|
}),
|
|
36209
36296
|
label: e
|
|
36210
36297
|
});
|
|
36211
|
-
|
|
36298
|
+
MU.propTypes = {
|
|
36212
36299
|
label: X.default.string,
|
|
36213
36300
|
value: X.default.string,
|
|
36214
36301
|
checked: X.default.bool,
|
|
@@ -36216,26 +36303,26 @@ CU.propTypes = {
|
|
|
36216
36303
|
};
|
|
36217
36304
|
//#endregion
|
|
36218
36305
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
36219
|
-
var
|
|
36306
|
+
var NU = (0, kt.default)("pie-lib:config-ui:settings:panel"), PU = {
|
|
36220
36307
|
label: X.default.string,
|
|
36221
36308
|
value: X.default.string
|
|
36222
|
-
},
|
|
36309
|
+
}, FU = {
|
|
36223
36310
|
label: X.default.string,
|
|
36224
36311
|
value: X.default.string,
|
|
36225
36312
|
onChange: X.default.func
|
|
36226
|
-
},
|
|
36313
|
+
}, IU = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ z(pH, {
|
|
36227
36314
|
checked: t,
|
|
36228
36315
|
label: e,
|
|
36229
36316
|
onChange: (e) => {
|
|
36230
36317
|
n(e.target.checked);
|
|
36231
36318
|
}
|
|
36232
36319
|
});
|
|
36233
|
-
|
|
36320
|
+
IU.propTypes = {
|
|
36234
36321
|
label: X.default.string,
|
|
36235
36322
|
value: X.default.bool,
|
|
36236
36323
|
onChange: X.default.func
|
|
36237
36324
|
};
|
|
36238
|
-
var
|
|
36325
|
+
var LU = F(TH)(({ theme: e }) => ({
|
|
36239
36326
|
marginTop: e.spacing(.5),
|
|
36240
36327
|
paddingBottom: e.spacing(.5),
|
|
36241
36328
|
width: "100%",
|
|
@@ -36246,29 +36333,29 @@ var OU = F(gH)(({ theme: e }) => ({
|
|
|
36246
36333
|
marginTop: e.spacing(2.5)
|
|
36247
36334
|
},
|
|
36248
36335
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
36249
|
-
})),
|
|
36336
|
+
})), RU = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ z(LU, {
|
|
36250
36337
|
direction: "horizontal",
|
|
36251
|
-
customLabel:
|
|
36338
|
+
customLabel: MU,
|
|
36252
36339
|
value: t,
|
|
36253
36340
|
header: e,
|
|
36254
36341
|
opts: r,
|
|
36255
36342
|
onChange: n
|
|
36256
36343
|
});
|
|
36257
|
-
|
|
36258
|
-
...
|
|
36259
|
-
choices: X.default.arrayOf(X.default.shape(
|
|
36344
|
+
RU.propTypes = {
|
|
36345
|
+
...FU,
|
|
36346
|
+
choices: X.default.arrayOf(X.default.shape(PU))
|
|
36260
36347
|
};
|
|
36261
|
-
var
|
|
36348
|
+
var zU = RU, BU = F("p")(({ theme: e }) => ({
|
|
36262
36349
|
margin: 0,
|
|
36263
36350
|
fontSize: e.typography.fontSize
|
|
36264
|
-
})),
|
|
36351
|
+
})), VU = F(rD)(({ theme: e }) => ({
|
|
36265
36352
|
marginTop: e.spacing(.5),
|
|
36266
36353
|
border: "2px solid lightgrey",
|
|
36267
36354
|
padding: `0 ${e.spacing(1)}`,
|
|
36268
36355
|
borderRadius: "4px"
|
|
36269
|
-
})),
|
|
36356
|
+
})), HU = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
36270
36357
|
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
36271
|
-
return /* @__PURE__ */ B("div", { children: [e && /* @__PURE__ */ z(
|
|
36358
|
+
return /* @__PURE__ */ B("div", { children: [e && /* @__PURE__ */ z(BU, { children: e }), /* @__PURE__ */ z(VU, {
|
|
36272
36359
|
value: t || r && r[0],
|
|
36273
36360
|
onChange: ({ target: e }) => n(e.value),
|
|
36274
36361
|
input: /* @__PURE__ */ z(PE, { id: `dropdown-${e}` }),
|
|
@@ -36283,14 +36370,14 @@ var AU = kU, jU = F("p")(({ theme: e }) => ({
|
|
|
36283
36370
|
}, t))
|
|
36284
36371
|
})] });
|
|
36285
36372
|
};
|
|
36286
|
-
|
|
36287
|
-
...
|
|
36373
|
+
HU.propTypes = {
|
|
36374
|
+
...FU,
|
|
36288
36375
|
choices: X.default.arrayOf(X.default.string)
|
|
36289
36376
|
};
|
|
36290
|
-
var
|
|
36377
|
+
var UU = F(zT)(({ theme: e }) => ({
|
|
36291
36378
|
marginRight: e.spacing(3),
|
|
36292
36379
|
marginTop: e.spacing(1)
|
|
36293
|
-
})),
|
|
36380
|
+
})), WU = ({ label: e }) => /* @__PURE__ */ z(UU, { children: e }), GU = F(_H)(({ theme: e }) => ({
|
|
36294
36381
|
width: "35%",
|
|
36295
36382
|
marginRight: e.spacing(3),
|
|
36296
36383
|
marginTop: e.spacing(1),
|
|
@@ -36301,7 +36388,7 @@ var PU = F(zT)(({ theme: e }) => ({
|
|
|
36301
36388
|
padding: `0 ${e.spacing(1)}`,
|
|
36302
36389
|
backgroundColor: "transparent"
|
|
36303
36390
|
}
|
|
36304
|
-
})),
|
|
36391
|
+
})), KU = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ z(GU, {
|
|
36305
36392
|
variant: "standard",
|
|
36306
36393
|
label: e || "Label",
|
|
36307
36394
|
value: t,
|
|
@@ -36312,45 +36399,45 @@ var PU = F(zT)(({ theme: e }) => ({
|
|
|
36312
36399
|
showErrorWhenOutsideRange: !0,
|
|
36313
36400
|
disableUnderline: !0
|
|
36314
36401
|
});
|
|
36315
|
-
|
|
36316
|
-
...
|
|
36402
|
+
KU.propTypes = {
|
|
36403
|
+
...FU,
|
|
36317
36404
|
suffix: X.default.string,
|
|
36318
36405
|
min: X.default.number,
|
|
36319
36406
|
max: X.default.number,
|
|
36320
36407
|
value: X.default.number
|
|
36321
|
-
},
|
|
36322
|
-
var
|
|
36408
|
+
}, WU.propTypes = { ...FU };
|
|
36409
|
+
var qU = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ z(kU, {
|
|
36323
36410
|
label: t,
|
|
36324
36411
|
checked: !!n,
|
|
36325
36412
|
disabled: !!e,
|
|
36326
36413
|
toggle: r
|
|
36327
36414
|
});
|
|
36328
|
-
|
|
36329
|
-
...
|
|
36415
|
+
qU.propTypes = {
|
|
36416
|
+
...FU,
|
|
36330
36417
|
value: X.default.bool
|
|
36331
36418
|
};
|
|
36332
|
-
var
|
|
36333
|
-
toggle:
|
|
36334
|
-
radio:
|
|
36335
|
-
dropdown:
|
|
36336
|
-
numberField:
|
|
36337
|
-
checkbox:
|
|
36338
|
-
textField:
|
|
36339
|
-
},
|
|
36419
|
+
var JU = {
|
|
36420
|
+
toggle: qU,
|
|
36421
|
+
radio: zU,
|
|
36422
|
+
dropdown: HU,
|
|
36423
|
+
numberField: KU,
|
|
36424
|
+
checkbox: IU,
|
|
36425
|
+
textField: WU
|
|
36426
|
+
}, YU = F("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), XU = F("div")(({ theme: e }) => ({
|
|
36340
36427
|
color: "#495B8F",
|
|
36341
36428
|
fontSize: e.typography.fontSize + 2,
|
|
36342
36429
|
fontWeight: 600,
|
|
36343
36430
|
marginBottom: e.spacing(1)
|
|
36344
|
-
})),
|
|
36431
|
+
})), ZU = F("p")(({ theme: e }) => ({
|
|
36345
36432
|
fontSize: e.typography.fontSize,
|
|
36346
36433
|
marginBottom: 0
|
|
36347
|
-
})),
|
|
36434
|
+
})), QU = (e) => {
|
|
36348
36435
|
let { model: t, label: n, group: r, configuration: a, onChange: o } = e, s = (e, n, r) => {
|
|
36349
36436
|
let { isConfigProperty: s, ...c } = i(e, r || n), l = i(s ? a : t, n), u = {
|
|
36350
36437
|
...c,
|
|
36351
36438
|
key: n,
|
|
36352
36439
|
value: l
|
|
36353
|
-
}, d =
|
|
36440
|
+
}, d = JU[u.type];
|
|
36354
36441
|
return /* @__PURE__ */ z(d, {
|
|
36355
36442
|
...u,
|
|
36356
36443
|
onChange: (e) => o(n, e, s)
|
|
@@ -36359,18 +36446,18 @@ var zU = {
|
|
|
36359
36446
|
let n = e[t];
|
|
36360
36447
|
if (!n) return null;
|
|
36361
36448
|
let { type: r, label: i, fields: a, choices: o } = n;
|
|
36362
|
-
return r === "numberFields" ? /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z(
|
|
36449
|
+
return r === "numberFields" ? /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z(ZU, { children: i }), Object.keys(a).map((n) => s(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("p", { children: i }), Object.keys(o).map((n) => s(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : s(e, t);
|
|
36363
36450
|
};
|
|
36364
|
-
return /* @__PURE__ */ B(
|
|
36451
|
+
return /* @__PURE__ */ B(YU, { children: [/* @__PURE__ */ z(XU, { children: n }), Object.keys(r).map((e) => c(r, e))] });
|
|
36365
36452
|
};
|
|
36366
|
-
|
|
36453
|
+
QU.propTypes = {
|
|
36367
36454
|
model: X.default.object,
|
|
36368
36455
|
label: X.default.string,
|
|
36369
36456
|
group: X.default.object,
|
|
36370
36457
|
configuration: X.default.object,
|
|
36371
36458
|
onChange: X.default.func
|
|
36372
36459
|
};
|
|
36373
|
-
var
|
|
36460
|
+
var $U = class extends it.Component {
|
|
36374
36461
|
static propTypes = {
|
|
36375
36462
|
model: X.default.object,
|
|
36376
36463
|
configuration: X.default.object,
|
|
@@ -36384,13 +36471,13 @@ var WU = class extends it.Component {
|
|
|
36384
36471
|
onChangeConfiguration: () => {}
|
|
36385
36472
|
};
|
|
36386
36473
|
change = (e, t, n = !1) => {
|
|
36387
|
-
|
|
36474
|
+
NU("[changeModel]", e, t);
|
|
36388
36475
|
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, s = { ...this.props.configuration };
|
|
36389
36476
|
n ? (o(s, e, t), i(s, e)) : (o(a, e, t), r(a, e));
|
|
36390
36477
|
};
|
|
36391
36478
|
render() {
|
|
36392
36479
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
36393
|
-
return
|
|
36480
|
+
return NU("render:", t), /* @__PURE__ */ B("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ z(QU, {
|
|
36394
36481
|
label: r,
|
|
36395
36482
|
model: t,
|
|
36396
36483
|
configuration: n,
|
|
@@ -36398,59 +36485,59 @@ var WU = class extends it.Component {
|
|
|
36398
36485
|
onChange: this.change
|
|
36399
36486
|
}, r) : null), r] });
|
|
36400
36487
|
}
|
|
36401
|
-
},
|
|
36402
|
-
Panel: () =>
|
|
36403
|
-
checkbox: () =>
|
|
36404
|
-
checkboxes: () =>
|
|
36405
|
-
dropdown: () =>
|
|
36406
|
-
numberField: () =>
|
|
36407
|
-
numberFields: () =>
|
|
36408
|
-
radio: () =>
|
|
36409
|
-
textField: () =>
|
|
36410
|
-
toggle: () =>
|
|
36411
|
-
}),
|
|
36488
|
+
}, eW = /* @__PURE__ */ OH({
|
|
36489
|
+
Panel: () => $U,
|
|
36490
|
+
checkbox: () => cW,
|
|
36491
|
+
checkboxes: () => lW,
|
|
36492
|
+
dropdown: () => aW,
|
|
36493
|
+
numberField: () => oW,
|
|
36494
|
+
numberFields: () => sW,
|
|
36495
|
+
radio: () => iW,
|
|
36496
|
+
textField: () => tW,
|
|
36497
|
+
toggle: () => nW
|
|
36498
|
+
}), tW = (e, t = !0) => ({
|
|
36412
36499
|
label: e,
|
|
36413
36500
|
type: "textField",
|
|
36414
36501
|
isConfigProperty: t
|
|
36415
|
-
}),
|
|
36502
|
+
}), nW = (e, t = !1, n = !1) => ({
|
|
36416
36503
|
type: "toggle",
|
|
36417
36504
|
label: e,
|
|
36418
36505
|
isConfigProperty: t,
|
|
36419
36506
|
disabled: n
|
|
36420
|
-
}),
|
|
36507
|
+
}), rW = (e) => typeof e == "string" ? {
|
|
36421
36508
|
label: e,
|
|
36422
36509
|
value: e
|
|
36423
|
-
} : e,
|
|
36510
|
+
} : e, iW = function() {
|
|
36424
36511
|
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
36425
36512
|
return {
|
|
36426
36513
|
type: "radio",
|
|
36427
36514
|
label: e,
|
|
36428
|
-
choices: t && t.map((e) =>
|
|
36515
|
+
choices: t && t.map((e) => rW(e)),
|
|
36429
36516
|
isConfigProperty: n
|
|
36430
36517
|
};
|
|
36431
|
-
},
|
|
36518
|
+
}, aW = (e, t, n = !1) => ({
|
|
36432
36519
|
type: "dropdown",
|
|
36433
36520
|
label: e,
|
|
36434
36521
|
choices: t,
|
|
36435
36522
|
isConfigProperty: n
|
|
36436
|
-
}),
|
|
36523
|
+
}), oW = (e, t, n = !1) => ({
|
|
36437
36524
|
...t,
|
|
36438
36525
|
label: e,
|
|
36439
36526
|
type: "numberField",
|
|
36440
36527
|
isConfigProperty: n
|
|
36441
|
-
}),
|
|
36442
|
-
t[e] =
|
|
36528
|
+
}), sW = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
36529
|
+
t[e] = oW(t[e].label, t[e], n);
|
|
36443
36530
|
}), {
|
|
36444
36531
|
type: "numberFields",
|
|
36445
36532
|
label: e,
|
|
36446
36533
|
fields: t
|
|
36447
|
-
}),
|
|
36534
|
+
}), cW = (e, t, n = !1) => ({
|
|
36448
36535
|
...t,
|
|
36449
36536
|
label: e,
|
|
36450
36537
|
type: "checkbox",
|
|
36451
36538
|
isConfigProperty: n
|
|
36452
|
-
}),
|
|
36453
|
-
t[e] =
|
|
36539
|
+
}), lW = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
36540
|
+
t[e] = cW(t[e].label, t[e], n);
|
|
36454
36541
|
}), {
|
|
36455
36542
|
type: "checkboxes",
|
|
36456
36543
|
label: e,
|
|
@@ -36458,13 +36545,13 @@ var WU = class extends it.Component {
|
|
|
36458
36545
|
});
|
|
36459
36546
|
//#endregion
|
|
36460
36547
|
//#region ../../lib-react/config-ui/dist/index.js
|
|
36461
|
-
function
|
|
36548
|
+
function uW(e) {
|
|
36462
36549
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
36463
36550
|
}
|
|
36464
|
-
function
|
|
36465
|
-
return !e ||
|
|
36551
|
+
function dW(e, t) {
|
|
36552
|
+
return !e || uW(e) ? e : uW(e.default) ? e.default : t && uW(e[t]) ? e[t] : t && uW(e[t]?.default) ? e[t].default : e;
|
|
36466
36553
|
}
|
|
36467
|
-
var
|
|
36554
|
+
var fW = dW(Xe, "InputContainer") || dW(hW.InputContainer, "InputContainer"), pW = Be, mW = pW.default, hW = mW && typeof mW == "object" ? mW : pW, gW = F(nV)(({ theme: e }) => ({
|
|
36468
36555
|
marginBottom: e.spacing(2.5),
|
|
36469
36556
|
width: "100%",
|
|
36470
36557
|
minWidth: "548px",
|
|
@@ -36472,36 +36559,36 @@ var rW = nW(Xe, "InputContainer") || nW(oW.InputContainer, "InputContainer"), iW
|
|
|
36472
36559
|
display: "flex",
|
|
36473
36560
|
flexDirection: "column",
|
|
36474
36561
|
justifyContent: "space-between"
|
|
36475
|
-
})),
|
|
36562
|
+
})), _W = F(oV)(({ theme: e }) => ({ paddingBottom: `${e.spacing(2)} !important` })), vW = F(zT)({
|
|
36476
36563
|
fontWeight: 700,
|
|
36477
36564
|
fontSize: "1.2rem",
|
|
36478
36565
|
flex: 3
|
|
36479
|
-
}),
|
|
36566
|
+
}), yW = F(fW)(({ theme: e }) => ({
|
|
36480
36567
|
flex: 2,
|
|
36481
36568
|
"& > *:not(label)": { marginTop: e.spacing(1) }
|
|
36482
|
-
})),
|
|
36569
|
+
})), bW = F("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), xW = F("div")({
|
|
36483
36570
|
display: "flex",
|
|
36484
36571
|
alignItems: "center",
|
|
36485
36572
|
justifyContent: "space-between"
|
|
36486
|
-
}),
|
|
36573
|
+
}), SW = F("div")({ display: "flex" }), CW = F(Pe)(() => ({
|
|
36487
36574
|
border: `1px solid ${N.border()}`,
|
|
36488
36575
|
color: N.text()
|
|
36489
|
-
})),
|
|
36576
|
+
})), wW = F(v)(({ theme: e }) => ({ marginLeft: e.spacing(1) })), TW = F("div")(({ theme: e }) => ({
|
|
36490
36577
|
fontSize: e.typography.fontSize - 2,
|
|
36491
36578
|
color: e.palette.error.main,
|
|
36492
36579
|
paddingTop: e.spacing(1)
|
|
36493
|
-
})),
|
|
36580
|
+
})), EW = F("div")(() => ({
|
|
36494
36581
|
background: N.backgroundDark(),
|
|
36495
36582
|
color: N.text(),
|
|
36496
36583
|
display: "inline",
|
|
36497
36584
|
minWidth: "50px",
|
|
36498
36585
|
padding: "8px",
|
|
36499
36586
|
border: `1px solid ${N.border()}`
|
|
36500
|
-
})),
|
|
36587
|
+
})), DW = F("div")({
|
|
36501
36588
|
display: "flex",
|
|
36502
36589
|
justifyContent: "space-between",
|
|
36503
36590
|
alignItems: "center"
|
|
36504
|
-
}),
|
|
36591
|
+
}), OW = F(SV)({ color: `${N.tertiary()} !important` });
|
|
36505
36592
|
if (typeof document < "u") {
|
|
36506
36593
|
let e = "math-templated-response-styles";
|
|
36507
36594
|
if (!document.getElementById(e)) {
|
|
@@ -36509,7 +36596,7 @@ if (typeof document < "u") {
|
|
|
36509
36596
|
t.id = e, t.textContent = "\n .response-editor {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-width: 500px;\n max-width: 900px;\n height: auto;\n min-height: 40px;\n }\n .math-toolbar {\n width: 100%;\n }\n ", document.head.appendChild(t);
|
|
36510
36597
|
}
|
|
36511
36598
|
}
|
|
36512
|
-
var
|
|
36599
|
+
var kW = class extends L.Component {
|
|
36513
36600
|
static propTypes = {
|
|
36514
36601
|
defaultResponse: X.default.bool,
|
|
36515
36602
|
error: X.default.object,
|
|
@@ -36601,13 +36688,13 @@ var bW = class extends L.Component {
|
|
|
36601
36688
|
editor: "response-editor",
|
|
36602
36689
|
mathToolbar: "math-toolbar"
|
|
36603
36690
|
};
|
|
36604
|
-
return /* @__PURE__ */ z(
|
|
36691
|
+
return /* @__PURE__ */ z(gW, {
|
|
36605
36692
|
style: { minHeight: `${o.openCount > 0 ? 430 : 230}px` },
|
|
36606
|
-
children: /* @__PURE__ */ B(
|
|
36607
|
-
/* @__PURE__ */ B(
|
|
36693
|
+
children: /* @__PURE__ */ B(_W, { children: [
|
|
36694
|
+
/* @__PURE__ */ B(xW, { children: [/* @__PURE__ */ B(vW, {
|
|
36608
36695
|
component: "div",
|
|
36609
|
-
children: ["Response for ", /* @__PURE__ */ z(
|
|
36610
|
-
}), /* @__PURE__ */ z(
|
|
36696
|
+
children: ["Response for ", /* @__PURE__ */ z(EW, { children: `R ${parseInt(t) + 1}` })]
|
|
36697
|
+
}), /* @__PURE__ */ z(yW, {
|
|
36611
36698
|
label: "Validation",
|
|
36612
36699
|
children: /* @__PURE__ */ B(rD, {
|
|
36613
36700
|
onChange: this.onChange("validation"),
|
|
@@ -36625,20 +36712,20 @@ var bW = class extends L.Component {
|
|
|
36625
36712
|
})]
|
|
36626
36713
|
})
|
|
36627
36714
|
})] }),
|
|
36628
|
-
s === "literal" && /* @__PURE__ */ B(
|
|
36715
|
+
s === "literal" && /* @__PURE__ */ B(SW, { children: [r.enabled && /* @__PURE__ */ z(OV, {
|
|
36629
36716
|
label: r.label,
|
|
36630
|
-
control: /* @__PURE__ */ z(
|
|
36717
|
+
control: /* @__PURE__ */ z(OW, {
|
|
36631
36718
|
checked: d,
|
|
36632
36719
|
onChange: this.onLiteralOptionsChange("allowTrailingZeros")
|
|
36633
36720
|
})
|
|
36634
|
-
}), i.enabled && /* @__PURE__ */ z(
|
|
36721
|
+
}), i.enabled && /* @__PURE__ */ z(OV, {
|
|
36635
36722
|
label: i.label,
|
|
36636
|
-
control: /* @__PURE__ */ z(
|
|
36723
|
+
control: /* @__PURE__ */ z(OW, {
|
|
36637
36724
|
checked: u,
|
|
36638
36725
|
onChange: this.onLiteralOptionsChange("ignoreOrder")
|
|
36639
36726
|
})
|
|
36640
36727
|
})] }),
|
|
36641
|
-
/* @__PURE__ */ B(
|
|
36728
|
+
/* @__PURE__ */ B(bW, { children: [
|
|
36642
36729
|
/* @__PURE__ */ z(Ue, { children: "Correct Answer" }),
|
|
36643
36730
|
/* @__PURE__ */ z(LD, {
|
|
36644
36731
|
keypadMode: e,
|
|
@@ -36651,11 +36738,11 @@ var bW = class extends L.Component {
|
|
|
36651
36738
|
onDone: this.onDone,
|
|
36652
36739
|
error: a && a.answer
|
|
36653
36740
|
}),
|
|
36654
|
-
a && a.answer ? /* @__PURE__ */ z(
|
|
36741
|
+
a && a.answer ? /* @__PURE__ */ z(TW, { children: a.answer }) : null
|
|
36655
36742
|
] }),
|
|
36656
|
-
f && Object.keys(l).map((t, n) => /* @__PURE__ */ B(
|
|
36743
|
+
f && Object.keys(l).map((t, n) => /* @__PURE__ */ B(bW, { children: [
|
|
36657
36744
|
/* @__PURE__ */ B(Ue, { children: ["Alternate", Object.keys(l).length > 1 ? ` ${n + 1}` : ""] }),
|
|
36658
|
-
/* @__PURE__ */ B(
|
|
36745
|
+
/* @__PURE__ */ B(DW, { children: [/* @__PURE__ */ z(LD, {
|
|
36659
36746
|
classNames: p,
|
|
36660
36747
|
controlledKeypad: !0,
|
|
36661
36748
|
keypadMode: e,
|
|
@@ -36665,14 +36752,14 @@ var bW = class extends L.Component {
|
|
|
36665
36752
|
onFocus: this.onAlternateFocus(t),
|
|
36666
36753
|
onDone: this.onAlternateDone(t),
|
|
36667
36754
|
error: a && a[t]
|
|
36668
|
-
}), /* @__PURE__ */ z(
|
|
36755
|
+
}), /* @__PURE__ */ z(wW, {
|
|
36669
36756
|
onClick: this.onRemoveAlternate(t),
|
|
36670
36757
|
size: "large",
|
|
36671
36758
|
children: /* @__PURE__ */ z(gC, {})
|
|
36672
36759
|
})] }),
|
|
36673
|
-
a && a[t] ? /* @__PURE__ */ z(
|
|
36760
|
+
a && a[t] ? /* @__PURE__ */ z(TW, { children: a[t] }) : null
|
|
36674
36761
|
] }, t)),
|
|
36675
|
-
/* @__PURE__ */ z(
|
|
36762
|
+
/* @__PURE__ */ z(CW, {
|
|
36676
36763
|
type: "primary",
|
|
36677
36764
|
onClick: this.onAddAlternate,
|
|
36678
36765
|
children: "ADD ALTERNATE"
|
|
@@ -36680,51 +36767,51 @@ var bW = class extends L.Component {
|
|
|
36680
36767
|
] })
|
|
36681
36768
|
});
|
|
36682
36769
|
}
|
|
36683
|
-
},
|
|
36770
|
+
}, AW = "imes|riangle|an|heta|herefore", jW = "throot|parallel|cong|approx|eq|e|sim", MW = RegExp(`(\\t(?!${AW}))|(\\n(?!${jW}))|(\\\\t(?!${AW}))|(\\\\n(?!${jW}))`, "g"), NW = (e) => e.replace(MW, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), PW = (e = "") => {
|
|
36684
36771
|
let t = document.createElement("div");
|
|
36685
36772
|
return t.innerHTML = e.trim(), t;
|
|
36686
|
-
},
|
|
36687
|
-
let t =
|
|
36773
|
+
}, FW = (e) => {
|
|
36774
|
+
let t = PW(NW(e || "") || "");
|
|
36688
36775
|
return t.querySelectorAll("[data-type=\"math_templated\"]").forEach((e) => e.replaceWith(`{{${e.dataset.index}}}`)), t.innerHTML;
|
|
36689
|
-
},
|
|
36776
|
+
}, IW = /\{\{(\d+)\}\}/g, LW = (e, t) => e ? NW(e).replace(IW, (e, n) => `<span data-type="math_templated" data-index="${n}" data-value="${t[n]?.answer || ""}"></span>`) : "", RW = (e) => {
|
|
36690
36777
|
let { maxResponseAreas: t } = e;
|
|
36691
36778
|
return "Validation requirements:" + ("\nCorrect answers should not be blank.\nEach answer defined for a response area should be unique.\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + " defined.");
|
|
36692
|
-
}, { dropdown:
|
|
36779
|
+
}, { dropdown: zW } = eW, { Panel: BW, toggle: VW } = eW, HW = F(fW)(({ theme: e }) => ({
|
|
36693
36780
|
width: "100%",
|
|
36694
36781
|
paddingTop: e.spacing(2),
|
|
36695
36782
|
marginBottom: e.spacing(2)
|
|
36696
|
-
})),
|
|
36783
|
+
})), UW = F(KB)({ width: "100%" }), WW = F("div")(({ theme: e }) => ({
|
|
36697
36784
|
color: e.palette.error.main,
|
|
36698
36785
|
fontSize: "0.75rem",
|
|
36699
36786
|
marginTop: e.spacing(1)
|
|
36700
|
-
})),
|
|
36787
|
+
})), GW = F("div")(({ theme: e }) => ({
|
|
36701
36788
|
color: e.palette.error.main,
|
|
36702
36789
|
fontSize: "0.75rem",
|
|
36703
36790
|
marginBottom: e.spacing(1)
|
|
36704
|
-
})),
|
|
36791
|
+
})), KW = F(KB)(({ theme: e }) => ({
|
|
36705
36792
|
width: "100%",
|
|
36706
36793
|
marginTop: e.spacing(2),
|
|
36707
36794
|
marginBottom: e.spacing(3)
|
|
36708
|
-
})),
|
|
36795
|
+
})), qW = F(fW)(({ theme: e }) => ({
|
|
36709
36796
|
width: "100%",
|
|
36710
36797
|
marginTop: e.spacing(2),
|
|
36711
36798
|
"& > *:not(label)": { marginTop: e.spacing(1) },
|
|
36712
36799
|
marginBottom: e.spacing(2)
|
|
36713
|
-
})),
|
|
36800
|
+
})), JW = F(rD)({ width: "100%" }), YW = F(zT)(({ theme: e }) => ({
|
|
36714
36801
|
fontSize: e.typography.fontSize * 1.25,
|
|
36715
36802
|
fontWeight: "bold"
|
|
36716
|
-
})),
|
|
36803
|
+
})), XW = F("div")({
|
|
36717
36804
|
display: "flex",
|
|
36718
36805
|
alignItems: "center",
|
|
36719
36806
|
gap: "8px"
|
|
36720
|
-
}),
|
|
36807
|
+
}), ZW = F(re)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
36721
36808
|
fontSize: e.typography.fontSize - 2,
|
|
36722
36809
|
whiteSpace: "pre",
|
|
36723
36810
|
maxWidth: "500px"
|
|
36724
|
-
} })),
|
|
36811
|
+
} })), QW = (e) => {
|
|
36725
36812
|
let t = document.createElement("div");
|
|
36726
36813
|
return t.innerHTML = e.trim(), t;
|
|
36727
|
-
},
|
|
36814
|
+
}, $W = class extends it.Component {
|
|
36728
36815
|
static propTypes = {
|
|
36729
36816
|
model: X.default.object.isRequired,
|
|
36730
36817
|
configuration: X.default.object.isRequired,
|
|
@@ -36753,7 +36840,7 @@ var bW = class extends L.Component {
|
|
|
36753
36840
|
let { model: e, onModelChanged: t } = this.props;
|
|
36754
36841
|
t({
|
|
36755
36842
|
...e,
|
|
36756
|
-
slateMarkup:
|
|
36843
|
+
slateMarkup: LW(e.markup, e.responses)
|
|
36757
36844
|
});
|
|
36758
36845
|
};
|
|
36759
36846
|
onChangeResponse = (e, t) => {
|
|
@@ -36774,7 +36861,7 @@ var bW = class extends L.Component {
|
|
|
36774
36861
|
});
|
|
36775
36862
|
};
|
|
36776
36863
|
onChange = (e) => {
|
|
36777
|
-
let { model: { responses: t, validationDefault: n, allowTrailingZerosDefault: r, ignoreOrderDefault: i }, onModelChanged: a } = this.props, o = {}, s =
|
|
36864
|
+
let { model: { responses: t, validationDefault: n, allowTrailingZerosDefault: r, ignoreOrderDefault: i }, onModelChanged: a } = this.props, o = {}, s = QW(e);
|
|
36778
36865
|
s.querySelectorAll("[data-type=\"math_templated\"]").forEach((e, a) => {
|
|
36779
36866
|
let { value: s, index: c } = e.dataset;
|
|
36780
36867
|
s || (e.dataset.value = ""), o[a] = t[c] || {
|
|
@@ -36786,7 +36873,7 @@ var bW = class extends L.Component {
|
|
|
36786
36873
|
alternates: {}
|
|
36787
36874
|
}, e.dataset.index = a.toString();
|
|
36788
36875
|
});
|
|
36789
|
-
let c =
|
|
36876
|
+
let c = FW(e);
|
|
36790
36877
|
this.setState({ cachedResponses: void 0 }, () => a({
|
|
36791
36878
|
...this.props.model,
|
|
36792
36879
|
slateMarkup: s.innerHTML,
|
|
@@ -36825,26 +36912,26 @@ var bW = class extends L.Component {
|
|
|
36825
36912
|
(!t || !n || !o?.attributes["data-keypad"]) && this.setState({ activeAnswerBlock: "" });
|
|
36826
36913
|
};
|
|
36827
36914
|
render() {
|
|
36828
|
-
let { configuration: e, imageSupport: t, model: n, onConfigurationChanged: r, onModelChanged: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: o = {}, contentDimensions: s = {}, prompt: c = {}, rationale: l = {}, settingsPanelDisabled: u, teacherInstructions: d = {}, language: f = {}, languageChoices: p = {}, spellCheck: m = {}, playerSpellCheck: h = {}, maxImageWidth: g = {}, maxImageHeight: _ = {}, mathMlOptions: v = {}, template: y = {}, editSource: b = {}, ignoreOrder: x = {}, allowTrailingZeros: S = {}, partialScoring: C = {}, maxResponseAreas: w } = e || {}, { errors: ee, extraCSSRules: T, promptEnabled: te, rationaleEnabled: E, spellCheckEnabled: ne, teacherInstructionsEnabled: re, toolbarEditorPosition: ie, responses: D, equationEditor: ae } = n || {}, { prompt: oe, rationale: se, responseAreas: ce, teacherInstructions: le, responses: O = {} } = ee || {}, ue =
|
|
36829
|
-
"language.enabled": f.settings &&
|
|
36830
|
-
language: f.settings && f.enabled &&
|
|
36915
|
+
let { configuration: e, imageSupport: t, model: n, onConfigurationChanged: r, onModelChanged: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: o = {}, contentDimensions: s = {}, prompt: c = {}, rationale: l = {}, settingsPanelDisabled: u, teacherInstructions: d = {}, language: f = {}, languageChoices: p = {}, spellCheck: m = {}, playerSpellCheck: h = {}, maxImageWidth: g = {}, maxImageHeight: _ = {}, mathMlOptions: v = {}, template: y = {}, editSource: b = {}, ignoreOrder: x = {}, allowTrailingZeros: S = {}, partialScoring: C = {}, maxResponseAreas: w } = e || {}, { errors: ee, extraCSSRules: T, promptEnabled: te, rationaleEnabled: E, spellCheckEnabled: ne, teacherInstructionsEnabled: re, toolbarEditorPosition: ie, responses: D, equationEditor: ae } = n || {}, { prompt: oe, rationale: se, responseAreas: ce, teacherInstructions: le, responses: O = {} } = ee || {}, ue = RW(e), de = {
|
|
36916
|
+
"language.enabled": f.settings && VW(f.label, !0),
|
|
36917
|
+
language: f.settings && f.enabled && zW(p.label, p.options)
|
|
36831
36918
|
}, fe = {
|
|
36832
|
-
teacherInstructionsEnabled: d.settings &&
|
|
36833
|
-
rationaleEnabled: l.settings &&
|
|
36834
|
-
promptEnabled: c.settings &&
|
|
36835
|
-
spellCheckEnabled: m.settings &&
|
|
36836
|
-
playerSpellCheckEnabled: h.settings &&
|
|
36837
|
-
"editSource.enabled": b?.settings &&
|
|
36838
|
-
partialScoring: C.settings &&
|
|
36919
|
+
teacherInstructionsEnabled: d.settings && VW(d.label),
|
|
36920
|
+
rationaleEnabled: l.settings && VW(l.label),
|
|
36921
|
+
promptEnabled: c.settings && VW(c.label),
|
|
36922
|
+
spellCheckEnabled: m.settings && VW(m.label),
|
|
36923
|
+
playerSpellCheckEnabled: h.settings && VW(h.label),
|
|
36924
|
+
"editSource.enabled": b?.settings && VW(b.label, !0),
|
|
36925
|
+
partialScoring: C.settings && VW(C.label)
|
|
36839
36926
|
}, k = g && g.prompt, pe = _ && _.prompt, me = { position: ie === "top" ? "top" : "bottom" }, he = (e = {}, t = {}) => ({
|
|
36840
36927
|
...t,
|
|
36841
36928
|
...e
|
|
36842
36929
|
});
|
|
36843
|
-
return /* @__PURE__ */ B(
|
|
36930
|
+
return /* @__PURE__ */ B(TU.ConfigLayout, {
|
|
36844
36931
|
extraCSSRules: T,
|
|
36845
36932
|
dimensions: s,
|
|
36846
36933
|
hideSettings: u,
|
|
36847
|
-
settings: /* @__PURE__ */ z(
|
|
36934
|
+
settings: /* @__PURE__ */ z(BW, {
|
|
36848
36935
|
model: n,
|
|
36849
36936
|
configuration: e,
|
|
36850
36937
|
onChangeModel: (e) => i(e),
|
|
@@ -36855,9 +36942,9 @@ var bW = class extends L.Component {
|
|
|
36855
36942
|
}
|
|
36856
36943
|
}),
|
|
36857
36944
|
children: [
|
|
36858
|
-
re && /* @__PURE__ */ B(
|
|
36945
|
+
re && /* @__PURE__ */ B(HW, {
|
|
36859
36946
|
label: d.label,
|
|
36860
|
-
children: [/* @__PURE__ */ z(
|
|
36947
|
+
children: [/* @__PURE__ */ z(UW, {
|
|
36861
36948
|
markup: n.teacherInstructions || "",
|
|
36862
36949
|
onChange: (e) => this.handleChange("teacherInstructions", e),
|
|
36863
36950
|
imageSupport: t,
|
|
@@ -36871,11 +36958,11 @@ var bW = class extends L.Component {
|
|
|
36871
36958
|
uploadSoundSupport: a,
|
|
36872
36959
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
36873
36960
|
mathMlOptions: v
|
|
36874
|
-
}), le && /* @__PURE__ */ z(
|
|
36961
|
+
}), le && /* @__PURE__ */ z(WW, { children: le })]
|
|
36875
36962
|
}),
|
|
36876
|
-
te && /* @__PURE__ */ B(
|
|
36963
|
+
te && /* @__PURE__ */ B(HW, {
|
|
36877
36964
|
label: c.label,
|
|
36878
|
-
children: [/* @__PURE__ */ z(
|
|
36965
|
+
children: [/* @__PURE__ */ z(UW, {
|
|
36879
36966
|
markup: n.prompt,
|
|
36880
36967
|
onChange: (e) => this.handleChange("prompt", e),
|
|
36881
36968
|
imageSupport: t,
|
|
@@ -36890,22 +36977,22 @@ var bW = class extends L.Component {
|
|
|
36890
36977
|
uploadSoundSupport: a,
|
|
36891
36978
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
36892
36979
|
mathMlOptions: v
|
|
36893
|
-
}), oe && /* @__PURE__ */ z(
|
|
36980
|
+
}), oe && /* @__PURE__ */ z(WW, { children: oe })]
|
|
36894
36981
|
}),
|
|
36895
|
-
/* @__PURE__ */ B(
|
|
36982
|
+
/* @__PURE__ */ B(XW, { children: [/* @__PURE__ */ z(YW, {
|
|
36896
36983
|
component: "div",
|
|
36897
36984
|
children: "Response Template"
|
|
36898
|
-
}), /* @__PURE__ */ z(
|
|
36985
|
+
}), /* @__PURE__ */ z(ZW, {
|
|
36899
36986
|
disableFocusListener: !0,
|
|
36900
36987
|
disableTouchListener: !0,
|
|
36901
36988
|
placement: "right",
|
|
36902
36989
|
title: ue,
|
|
36903
|
-
children: /* @__PURE__ */ z(
|
|
36990
|
+
children: /* @__PURE__ */ z(QB, {
|
|
36904
36991
|
fontSize: "small",
|
|
36905
36992
|
color: "primary"
|
|
36906
36993
|
})
|
|
36907
36994
|
})] }),
|
|
36908
|
-
/* @__PURE__ */ z(
|
|
36995
|
+
/* @__PURE__ */ z(KW, {
|
|
36909
36996
|
activePlugins: Zn,
|
|
36910
36997
|
toolbarOpts: { position: "top" },
|
|
36911
36998
|
spellCheck: ne,
|
|
@@ -36929,11 +37016,11 @@ var bW = class extends L.Component {
|
|
|
36929
37016
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
36930
37017
|
mathMlOptions: v
|
|
36931
37018
|
}),
|
|
36932
|
-
ce && /* @__PURE__ */ z(
|
|
36933
|
-
/* @__PURE__ */ z(
|
|
36934
|
-
/* @__PURE__ */ z(
|
|
37019
|
+
ce && /* @__PURE__ */ z(GW, { children: ce }),
|
|
37020
|
+
/* @__PURE__ */ z(YW, { children: "Define Response" }),
|
|
37021
|
+
/* @__PURE__ */ z(qW, {
|
|
36935
37022
|
label: "Response Template Equation Editor",
|
|
36936
|
-
children: /* @__PURE__ */ B(
|
|
37023
|
+
children: /* @__PURE__ */ B(JW, {
|
|
36937
37024
|
MenuProps: { transitionDuration: {
|
|
36938
37025
|
enter: 225,
|
|
36939
37026
|
exit: 195
|
|
@@ -36994,7 +37081,7 @@ var bW = class extends L.Component {
|
|
|
36994
37081
|
}),
|
|
36995
37082
|
Object.keys(D || {}).map((e, t) => {
|
|
36996
37083
|
let n = D[t];
|
|
36997
|
-
return n ? /* @__PURE__ */ z(
|
|
37084
|
+
return n ? /* @__PURE__ */ z(kW, {
|
|
36998
37085
|
responseKey: t,
|
|
36999
37086
|
mode: ae,
|
|
37000
37087
|
response: n,
|
|
@@ -37006,9 +37093,9 @@ var bW = class extends L.Component {
|
|
|
37006
37093
|
error: O && O[t]
|
|
37007
37094
|
}, t) : null;
|
|
37008
37095
|
}),
|
|
37009
|
-
E && /* @__PURE__ */ B(
|
|
37096
|
+
E && /* @__PURE__ */ B(HW, {
|
|
37010
37097
|
label: l.label,
|
|
37011
|
-
children: [/* @__PURE__ */ z(
|
|
37098
|
+
children: [/* @__PURE__ */ z(UW, {
|
|
37012
37099
|
markup: n.rationale || "",
|
|
37013
37100
|
onChange: (e) => this.handleChange("rationale", e),
|
|
37014
37101
|
imageSupport: t,
|
|
@@ -37025,12 +37112,12 @@ var bW = class extends L.Component {
|
|
|
37025
37112
|
uploadSoundSupport: a,
|
|
37026
37113
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
37027
37114
|
mathMlOptions: v
|
|
37028
|
-
}), se && /* @__PURE__ */ z(
|
|
37115
|
+
}), se && /* @__PURE__ */ z(WW, { children: se })]
|
|
37029
37116
|
})
|
|
37030
37117
|
]
|
|
37031
37118
|
});
|
|
37032
37119
|
}
|
|
37033
|
-
},
|
|
37120
|
+
}, eG = {
|
|
37034
37121
|
model: {
|
|
37035
37122
|
allowTrailingZerosDefault: !1,
|
|
37036
37123
|
equationEditor: "8",
|
|
@@ -37149,7 +37236,7 @@ var bW = class extends L.Component {
|
|
|
37149
37236
|
},
|
|
37150
37237
|
maxResponseAreas: 10
|
|
37151
37238
|
}
|
|
37152
|
-
},
|
|
37239
|
+
}, tG = (0, kt.default)("math-templated:configure"), nG = class e extends HTMLElement {
|
|
37153
37240
|
static prepareModel = (e = {}) => {
|
|
37154
37241
|
let { validationDefault: t, allowTrailingZerosDefault: n, ignoreOrderDefault: r, responses: i = {} } = e, a = Object.keys(i).reduce((e, a) => {
|
|
37155
37242
|
let o = i[a];
|
|
@@ -37160,12 +37247,12 @@ var bW = class extends L.Component {
|
|
|
37160
37247
|
ignoreOrder: o.ignoreOrder || r
|
|
37161
37248
|
}, e;
|
|
37162
37249
|
}, {}), o = {
|
|
37163
|
-
...
|
|
37250
|
+
...eG.model,
|
|
37164
37251
|
...e,
|
|
37165
37252
|
responses: a
|
|
37166
|
-
}, s = o.slateMarkup ||
|
|
37253
|
+
}, s = o.slateMarkup || LW(o.markup, o.responses), c = FW(s);
|
|
37167
37254
|
return o.responses && Object.keys(o.responses).forEach((e) => {
|
|
37168
|
-
d(o.responses[e]) && (o.responses[e] = (o.responses[e] || []).map((e, t) => e.answer ? e : (
|
|
37255
|
+
d(o.responses[e]) && (o.responses[e] = (o.responses[e] || []).map((e, t) => e.answer ? e : (tG("Choice does not contain \"answer\" property, which is required.", e), {
|
|
37169
37256
|
answer: `${t}`,
|
|
37170
37257
|
...e
|
|
37171
37258
|
})));
|
|
@@ -37176,13 +37263,13 @@ var bW = class extends L.Component {
|
|
|
37176
37263
|
};
|
|
37177
37264
|
};
|
|
37178
37265
|
constructor() {
|
|
37179
|
-
super(), this._root = null, this._model = e.prepareModel(), this._configuration =
|
|
37266
|
+
super(), this._root = null, this._model = e.prepareModel(), this._configuration = eG.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
|
|
37180
37267
|
}
|
|
37181
37268
|
set model(t) {
|
|
37182
37269
|
this._model = e.prepareModel(t), this._render();
|
|
37183
37270
|
}
|
|
37184
37271
|
set configuration(e) {
|
|
37185
|
-
this._configuration = c(e,
|
|
37272
|
+
this._configuration = c(e, eG.configuration), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.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({
|
|
37186
37273
|
value: this._model.language,
|
|
37187
37274
|
label: this._model.language
|
|
37188
37275
|
})) : delete this._model.language, this._render();
|
|
@@ -37192,7 +37279,7 @@ var bW = class extends L.Component {
|
|
|
37192
37279
|
}
|
|
37193
37280
|
dispatchModelUpdated(e) {
|
|
37194
37281
|
let t = !!e;
|
|
37195
|
-
this.dispatchEvent(new
|
|
37282
|
+
this.dispatchEvent(new qB(this._model, t));
|
|
37196
37283
|
}
|
|
37197
37284
|
onModelChanged(t, n) {
|
|
37198
37285
|
this._model = e.prepareModel(t), this._render(), this.dispatchModelUpdated(n);
|
|
@@ -37201,20 +37288,20 @@ var bW = class extends L.Component {
|
|
|
37201
37288
|
this._configuration = e, this._render();
|
|
37202
37289
|
}
|
|
37203
37290
|
insertImage(e) {
|
|
37204
|
-
this.dispatchEvent(new
|
|
37291
|
+
this.dispatchEvent(new YB(e));
|
|
37205
37292
|
}
|
|
37206
37293
|
onDeleteImage(e, t) {
|
|
37207
|
-
this.dispatchEvent(new
|
|
37294
|
+
this.dispatchEvent(new JB(e, t));
|
|
37208
37295
|
}
|
|
37209
37296
|
insertSound(e) {
|
|
37210
|
-
this.dispatchEvent(new
|
|
37297
|
+
this.dispatchEvent(new ZB(e));
|
|
37211
37298
|
}
|
|
37212
37299
|
onDeleteSound(e, t) {
|
|
37213
|
-
this.dispatchEvent(new
|
|
37300
|
+
this.dispatchEvent(new XB(e, t));
|
|
37214
37301
|
}
|
|
37215
37302
|
_render() {
|
|
37216
|
-
|
|
37217
|
-
let e = it.createElement(
|
|
37303
|
+
tG("_render");
|
|
37304
|
+
let e = it.createElement($W, {
|
|
37218
37305
|
model: this._model,
|
|
37219
37306
|
configuration: this._configuration,
|
|
37220
37307
|
onModelChanged: this.onModelChanged,
|
|
@@ -37239,6 +37326,6 @@ var bW = class extends L.Component {
|
|
|
37239
37326
|
}
|
|
37240
37327
|
};
|
|
37241
37328
|
//#endregion
|
|
37242
|
-
export {
|
|
37329
|
+
export { nG as default };
|
|
37243
37330
|
|
|
37244
37331
|
//# sourceMappingURL=index.js.map
|