@pie-element/number-line 13.1.2-next.7 → 13.1.2-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/author/index.js +798 -711
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +109 -109
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{delivery-CO2qrOqk.js → delivery-CZfH4Rjb.js} +390 -390
- package/dist/browser/delivery-CZfH4Rjb.js.map +1 -0
- package/dist/browser/{dist-DkCincUw.js → dist-clbS3pcd.js} +3732 -4332
- package/dist/browser/dist-clbS3pcd.js.map +1 -0
- package/dist/browser/{impureFunctionsAny.generated-DlzbJQpQ.js → impureFunctionsAny.generated-DOBSXSdK.js} +1709 -2087
- package/dist/browser/impureFunctionsAny.generated-DOBSXSdK.js.map +1 -0
- package/dist/controller/tickUtils.d.ts +1 -1
- package/dist/controller/tickUtils.js +2 -2
- package/dist/delivery/number-line/graph/tick-utils.d.ts +2 -2
- package/dist/delivery/number-line/graph/tick-utils.js +2 -2
- package/dist/delivery/number-line/graph/ticks.js +14 -14
- package/dist/index.iife.js +59 -59
- package/package.json +4 -4
- package/dist/browser/delivery-CO2qrOqk.js.map +0 -1
- package/dist/browser/dist-DkCincUw.js.map +0 -1
- package/dist/browser/impureFunctionsAny.generated-DlzbJQpQ.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as y, A as b, At as x, B as S, C, Ct as w, D as T, Dt as E, E as ee, Et as D, F as O, Ft as te, G as ne, H as re, I as ie, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, Nt as pe, O as me, Ot as he, P as k, Pt as ge, Q as _e, R as ve, Rt as ye, S as be, St as xe, T as Se, Tt as A, U as j, V as Ce, W as we, X as Te, Y as Ee, Z as De, _ as Oe, _t as ke, a as Ae, at as je, b as Me, bt as Ne, c as Pe, ct as Fe, d as Ie, dt as Le, et as Re, f as ze, ft as M, g as Be, gt as Ve, h as He, ht as Ue, i as We, it as Ge, j as Ke, jt as qe, k as Je, kt as Ye, l as Xe, lt as Ze, m as Qe, mt as N, n as $e, nt as et, o as tt, ot as nt, p as rt, pt as it, q as at, rt as ot, s as st, st as ct, tt as lt, u as ut, ut as dt, v as ft, vt as pt, w as mt, wt as ht, x as gt, xt as _t, y as vt, yt } from "../delivery-
|
|
3
|
-
import { t as bt } from "../impureFunctionsAny.generated-
|
|
1
|
+
import { Ds as e, Es as t, Et as n, Ln as r, Pn as i, _ as a, b as o, c as s, g as c, h as l, ni as u, o as d, p as f, s as p, t as m, u as h, v as g, ws as _, y as v } from "../dist-clbS3pcd.js";
|
|
2
|
+
import { $ as y, A as b, At as x, B as S, C, Ct as w, D as T, Dt as E, E as ee, Et as D, F as O, Ft as te, G as ne, H as re, I as ie, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, Nt as pe, O as me, Ot as he, P as k, Pt as ge, Q as _e, R as ve, Rt as ye, S as be, St as xe, T as Se, Tt as A, U as j, V as Ce, W as we, X as Te, Y as Ee, Z as De, _ as Oe, _t as ke, a as Ae, at as je, b as Me, bt as Ne, c as Pe, ct as Fe, d as Ie, dt as Le, et as Re, f as ze, ft as M, g as Be, gt as Ve, h as He, ht as Ue, i as We, it as Ge, j as Ke, jt as qe, k as Je, kt as Ye, l as Xe, lt as Ze, m as Qe, mt as N, n as $e, nt as et, o as tt, ot as nt, p as rt, pt as it, q as at, rt as ot, s as st, st as ct, tt as lt, u as ut, ut as dt, v as ft, vt as pt, w as mt, wt as ht, x as gt, xt as _t, y as vt, yt } from "../delivery-CZfH4Rjb.js";
|
|
3
|
+
import { t as bt } from "../impureFunctionsAny.generated-DOBSXSdK.js";
|
|
4
4
|
import * as P from "react";
|
|
5
5
|
import xt, { Component as St, createContext as Ct, createElement as wt, createRef as Tt, forwardRef as Et, memo as Dt, useCallback as Ot, useContext as kt, useDebugValue as At, useEffect as jt, useLayoutEffect as Mt, useMemo as Nt, useRef as Pt, useState as Ft, version as It } from "react";
|
|
6
6
|
import { Fragment as Lt, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
@@ -6644,7 +6644,7 @@ var Lc = {
|
|
|
6644
6644
|
})
|
|
6645
6645
|
]
|
|
6646
6646
|
});
|
|
6647
|
-
}), L = /* @__PURE__ */
|
|
6647
|
+
}), L = /* @__PURE__ */ e(pe(), 1), Vc = N(Ca)(() => ({ fontSize: "max(1.25rem, 18px)" })), Hc = N(ba)(() => ({ fontSize: "max(1rem, 14px)" })), Uc = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ I(oa, {
|
|
6648
6648
|
open: i,
|
|
6649
6649
|
disableAutoFocus: s,
|
|
6650
6650
|
disableEnforceFocus: c,
|
|
@@ -6685,7 +6685,7 @@ Uc.defaultProps = {
|
|
|
6685
6685
|
};
|
|
6686
6686
|
//#endregion
|
|
6687
6687
|
//#region ../../lib-react/config-ui/dist/radio-with-label.js
|
|
6688
|
-
var Wc = /* @__PURE__ */
|
|
6688
|
+
var Wc = /* @__PURE__ */ e(be(), 1), Gc = N(Pa)(() => ({ "& .MuiFormControlLabel-label": {
|
|
6689
6689
|
left: "-5px",
|
|
6690
6690
|
position: "relative"
|
|
6691
6691
|
} })), Kc = N(Ls)(() => ({ color: `${k.tertiary()} !important` })), qc = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(Gc, {
|
|
@@ -24003,12 +24003,12 @@ function yk(e) {
|
|
|
24003
24003
|
var bk = (e, t) => {
|
|
24004
24004
|
let n = !!t;
|
|
24005
24005
|
e._toolbarOpened !== n && (e._toolbarOpened = n, e?.view && e?.state?.tr && e.view.dispatch(e.state.tr.setMeta("toolbarOpenedChanged", !0)));
|
|
24006
|
-
}, xk = /* @__PURE__ */
|
|
24007
|
-
var
|
|
24008
|
-
function
|
|
24006
|
+
}, xk = /* @__PURE__ */ _(((e) => {
|
|
24007
|
+
var n = t("react");
|
|
24008
|
+
function r(e, t) {
|
|
24009
24009
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
24010
24010
|
}
|
|
24011
|
-
var i = typeof Object.is == "function" ? Object.is :
|
|
24011
|
+
var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
|
|
24012
24012
|
function l(e, t) {
|
|
24013
24013
|
var n = t(), r = a({ inst: {
|
|
24014
24014
|
value: n,
|
|
@@ -24040,8 +24040,8 @@ var bk = (e, t) => {
|
|
|
24040
24040
|
return t();
|
|
24041
24041
|
}
|
|
24042
24042
|
var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
|
|
24043
|
-
e.useSyncExternalStore =
|
|
24044
|
-
})), Sk = /* @__PURE__ */
|
|
24043
|
+
e.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
|
|
24044
|
+
})), Sk = /* @__PURE__ */ _(((e, t) => {
|
|
24045
24045
|
t.exports = xk();
|
|
24046
24046
|
})), Ck = Sk(), { getOwnPropertyNames: wk, getOwnPropertySymbols: Tk } = Object, { hasOwnProperty: Ek } = Object.prototype;
|
|
24047
24047
|
function Dk(e, t) {
|
|
@@ -24307,12 +24307,12 @@ function bA(e = {}) {
|
|
|
24307
24307
|
}
|
|
24308
24308
|
//#endregion
|
|
24309
24309
|
//#region ../../../node_modules/.bun/use-sync-external-store@1.6.0+f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
|
|
24310
|
-
var xA = /* @__PURE__ */
|
|
24311
|
-
var
|
|
24310
|
+
var xA = /* @__PURE__ */ _(((e) => {
|
|
24311
|
+
var n = t("react"), r = Sk();
|
|
24312
24312
|
function i(e, t) {
|
|
24313
24313
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
24314
24314
|
}
|
|
24315
|
-
var a = typeof Object.is == "function" ? Object.is : i, o =
|
|
24315
|
+
var a = typeof Object.is == "function" ? Object.is : i, o = r.useSyncExternalStore, s = n.useRef, c = n.useEffect, l = n.useMemo, u = n.useDebugValue;
|
|
24316
24316
|
e.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
|
|
24317
24317
|
var d = s(null);
|
|
24318
24318
|
if (d.current === null) {
|
|
@@ -24352,7 +24352,7 @@ var xA = /* @__PURE__ */ t(((e) => {
|
|
|
24352
24352
|
f.hasValue = !0, f.value = p;
|
|
24353
24353
|
}, [p]), u(p), p;
|
|
24354
24354
|
};
|
|
24355
|
-
})), SA = (/* @__PURE__ */
|
|
24355
|
+
})), SA = (/* @__PURE__ */ _(((e, t) => {
|
|
24356
24356
|
t.exports = xA();
|
|
24357
24357
|
})))(), CA = (...e) => (t) => {
|
|
24358
24358
|
e.forEach((e) => {
|
|
@@ -33163,9 +33163,9 @@ function iz({ editor: e, opts: t, onClose: n }) {
|
|
|
33163
33163
|
hideDoneButtonBackground: !0,
|
|
33164
33164
|
layoutForKeyPad: u,
|
|
33165
33165
|
additionalKeys: l.characters.reduce((e, t) => (e = [...e, ...t.map((e) => ({
|
|
33166
|
-
name:
|
|
33167
|
-
write:
|
|
33168
|
-
label:
|
|
33166
|
+
name: v(e, "name") || e,
|
|
33167
|
+
write: v(e, "write") || e,
|
|
33168
|
+
label: v(e, "label") || e,
|
|
33169
33169
|
category: "character",
|
|
33170
33170
|
extraClass: "character",
|
|
33171
33171
|
extraProps: {
|
|
@@ -39747,8 +39747,8 @@ $x.create({
|
|
|
39747
39747
|
})) ?? null };
|
|
39748
39748
|
}
|
|
39749
39749
|
});
|
|
39750
|
-
var Vq = "placeholder", Hq = new sf("tiptap__placeholder")
|
|
39751
|
-
function
|
|
39750
|
+
var Vq = "placeholder", Hq = new sf("tiptap__placeholder");
|
|
39751
|
+
function Uq(e) {
|
|
39752
39752
|
let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
|
|
39753
39753
|
return o && u.push(l), nv.node(i, i + a.nodeSize, {
|
|
39754
39754
|
class: u.join(" "),
|
|
@@ -39760,156 +39760,198 @@ function Wq(e) {
|
|
|
39760
39760
|
}) : n
|
|
39761
39761
|
});
|
|
39762
39762
|
}
|
|
39763
|
-
function
|
|
39763
|
+
function Wq(e, t) {
|
|
39764
|
+
return typeof e == "function" ? e(t) : e;
|
|
39765
|
+
}
|
|
39766
|
+
function Gq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
|
|
39767
|
+
let { anchor: s } = i, c = [], l = e.isEmpty;
|
|
39768
|
+
return r.nodesBetween(a, o, (r, i) => {
|
|
39769
|
+
let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && sx(r);
|
|
39770
|
+
return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(Uq({
|
|
39771
|
+
editor: e,
|
|
39772
|
+
isEmptyDoc: l,
|
|
39773
|
+
dataAttribute: n,
|
|
39774
|
+
hasAnchor: a,
|
|
39775
|
+
placeholder: t.placeholder,
|
|
39776
|
+
classes: {
|
|
39777
|
+
emptyEditor: t.emptyEditorClass,
|
|
39778
|
+
emptyNode: Wq(t.emptyNodeClass, {
|
|
39779
|
+
editor: e,
|
|
39780
|
+
node: r,
|
|
39781
|
+
pos: i,
|
|
39782
|
+
hasAnchor: a
|
|
39783
|
+
})
|
|
39784
|
+
},
|
|
39785
|
+
node: r,
|
|
39786
|
+
pos: i
|
|
39787
|
+
})), t.includeChildren;
|
|
39788
|
+
}), c;
|
|
39789
|
+
}
|
|
39790
|
+
function Kq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
|
|
39764
39791
|
if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
|
|
39765
|
-
let { anchor: a } = i, o = [], s = e.isEmpty
|
|
39766
|
-
emptyEditor: t.emptyEditorClass,
|
|
39767
|
-
emptyNode: t.emptyNodeClass
|
|
39768
|
-
};
|
|
39792
|
+
let { anchor: a } = i, o = [], s = e.isEmpty;
|
|
39769
39793
|
if (t.showOnlyCurrent && !t.includeChildren) {
|
|
39770
|
-
let i = r.resolve(a),
|
|
39771
|
-
if (
|
|
39772
|
-
let r = a >=
|
|
39773
|
-
o.push(
|
|
39794
|
+
let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
|
|
39795
|
+
if (c && c.type.isTextblock && sx(c)) {
|
|
39796
|
+
let r = a >= l && a <= l + c.nodeSize;
|
|
39797
|
+
o.push(Uq({
|
|
39774
39798
|
editor: e,
|
|
39775
39799
|
isEmptyDoc: s,
|
|
39776
39800
|
dataAttribute: n,
|
|
39777
39801
|
hasAnchor: r,
|
|
39778
39802
|
placeholder: t.placeholder,
|
|
39779
|
-
classes:
|
|
39780
|
-
|
|
39781
|
-
|
|
39803
|
+
classes: {
|
|
39804
|
+
emptyEditor: t.emptyEditorClass,
|
|
39805
|
+
emptyNode: Wq(t.emptyNodeClass, {
|
|
39806
|
+
editor: e,
|
|
39807
|
+
node: c,
|
|
39808
|
+
pos: l,
|
|
39809
|
+
hasAnchor: r
|
|
39810
|
+
})
|
|
39811
|
+
},
|
|
39812
|
+
node: c,
|
|
39813
|
+
pos: l
|
|
39782
39814
|
}));
|
|
39783
39815
|
}
|
|
39784
|
-
} else {
|
|
39785
|
-
|
|
39786
|
-
|
|
39787
|
-
|
|
39788
|
-
|
|
39789
|
-
|
|
39790
|
-
|
|
39791
|
-
|
|
39792
|
-
|
|
39793
|
-
placeholder: t.placeholder,
|
|
39794
|
-
classes: c,
|
|
39795
|
-
node: r,
|
|
39796
|
-
pos: i
|
|
39797
|
-
})), t.includeChildren;
|
|
39798
|
-
});
|
|
39799
|
-
}
|
|
39816
|
+
} else o.push(...Gq({
|
|
39817
|
+
editor: e,
|
|
39818
|
+
options: t,
|
|
39819
|
+
dataAttribute: n,
|
|
39820
|
+
doc: r,
|
|
39821
|
+
selection: i,
|
|
39822
|
+
from: 0,
|
|
39823
|
+
to: r.content.size
|
|
39824
|
+
}));
|
|
39800
39825
|
return av.create(r, o);
|
|
39801
39826
|
}
|
|
39802
|
-
function
|
|
39803
|
-
|
|
39827
|
+
function qq(e, t) {
|
|
39828
|
+
let n = e.resolve(t);
|
|
39829
|
+
if (n.depth === 0) {
|
|
39830
|
+
let e = n.nodeAfter ?? n.nodeBefore;
|
|
39831
|
+
if (!e) return {
|
|
39832
|
+
from: t,
|
|
39833
|
+
to: t
|
|
39834
|
+
};
|
|
39835
|
+
let r = n.nodeAfter ? t : t - e.nodeSize;
|
|
39836
|
+
return {
|
|
39837
|
+
from: r,
|
|
39838
|
+
to: r + e.nodeSize
|
|
39839
|
+
};
|
|
39840
|
+
}
|
|
39841
|
+
let r = n.before(1);
|
|
39842
|
+
return {
|
|
39843
|
+
from: r,
|
|
39844
|
+
to: r + n.node(1).nodeSize
|
|
39845
|
+
};
|
|
39804
39846
|
}
|
|
39805
|
-
function
|
|
39806
|
-
|
|
39807
|
-
|
|
39847
|
+
function Jq(e, t) {
|
|
39848
|
+
return {
|
|
39849
|
+
from: Math.max(0, t.from - 1),
|
|
39850
|
+
to: Math.min(e.content.size, t.to - 1)
|
|
39851
|
+
};
|
|
39808
39852
|
}
|
|
39809
|
-
function
|
|
39810
|
-
let
|
|
39811
|
-
|
|
39812
|
-
|
|
39813
|
-
|
|
39814
|
-
|
|
39815
|
-
|
|
39816
|
-
|
|
39817
|
-
|
|
39818
|
-
|
|
39819
|
-
|
|
39820
|
-
|
|
39821
|
-
|
|
39822
|
-
|
|
39853
|
+
function Yq(e, t, n) {
|
|
39854
|
+
let r = [];
|
|
39855
|
+
return e.forEach((e, i) => {
|
|
39856
|
+
let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
|
|
39857
|
+
s < n && c > t && r.push({
|
|
39858
|
+
from: a,
|
|
39859
|
+
to: o
|
|
39860
|
+
});
|
|
39861
|
+
}), r;
|
|
39862
|
+
}
|
|
39863
|
+
function Xq(e) {
|
|
39864
|
+
if (e.length === 0) return [];
|
|
39865
|
+
let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
|
|
39866
|
+
for (let e = 1; e < t.length; e += 1) {
|
|
39867
|
+
let r = n[n.length - 1], i = t[e];
|
|
39868
|
+
i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
|
|
39823
39869
|
}
|
|
39824
|
-
return
|
|
39870
|
+
return n;
|
|
39825
39871
|
}
|
|
39826
|
-
function
|
|
39827
|
-
|
|
39828
|
-
|
|
39829
|
-
bottom: window.innerHeight
|
|
39830
|
-
} : e.getBoundingClientRect();
|
|
39872
|
+
function Zq(e, t) {
|
|
39873
|
+
let n = Yq(e, t.from, t.to);
|
|
39874
|
+
return n.push(Jq(e, qq(e, t.from))), t.to > t.from ? n.push(Jq(e, qq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(Jq(e, qq(e, Math.min(t.from + 1, e.content.size)))), n;
|
|
39831
39875
|
}
|
|
39832
|
-
function
|
|
39833
|
-
let r =
|
|
39834
|
-
|
|
39835
|
-
|
|
39836
|
-
|
|
39837
|
-
|
|
39838
|
-
|
|
39839
|
-
bottom: e.content.size
|
|
39840
|
-
};
|
|
39841
|
-
let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
|
|
39842
|
-
left: s,
|
|
39843
|
-
top: a + 2
|
|
39844
|
-
}), l = t.posAtCoords({
|
|
39845
|
-
left: s,
|
|
39846
|
-
top: o - 2
|
|
39847
|
-
});
|
|
39848
|
-
return {
|
|
39849
|
-
top: c ? c.pos : 0,
|
|
39850
|
-
bottom: l ? l.pos : e.content.size
|
|
39851
|
-
};
|
|
39876
|
+
function Qq(e, t, n) {
|
|
39877
|
+
let r = [];
|
|
39878
|
+
if (e.docChanged) {
|
|
39879
|
+
let t = Xb(e);
|
|
39880
|
+
for (let e of t) r.push(...Zq(n.doc, e.newRange));
|
|
39881
|
+
}
|
|
39882
|
+
return e.selectionSet && (r.push(Jq(n.doc, qq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(Jq(n.doc, qq(n.doc, n.selection.anchor)))), Xq(r);
|
|
39852
39883
|
}
|
|
39853
|
-
|
|
39854
|
-
|
|
39855
|
-
|
|
39856
|
-
|
|
39857
|
-
|
|
39858
|
-
|
|
39859
|
-
|
|
39860
|
-
|
|
39861
|
-
|
|
39862
|
-
|
|
39863
|
-
|
|
39864
|
-
|
|
39865
|
-
|
|
39866
|
-
|
|
39867
|
-
|
|
39868
|
-
|
|
39884
|
+
function $q(e, t, n) {
|
|
39885
|
+
let r = Math.max(0, Math.min(e, n.content.size));
|
|
39886
|
+
return {
|
|
39887
|
+
from: r,
|
|
39888
|
+
to: Math.max(r, Math.min(t, n.content.size))
|
|
39889
|
+
};
|
|
39890
|
+
}
|
|
39891
|
+
function eJ({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
|
|
39892
|
+
let s = e;
|
|
39893
|
+
for (let e of t) {
|
|
39894
|
+
let { from: t, to: c } = $q(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
|
|
39895
|
+
l.length && (s = s.remove(l));
|
|
39896
|
+
let u = Gq({
|
|
39897
|
+
editor: n,
|
|
39898
|
+
options: r,
|
|
39899
|
+
dataAttribute: i,
|
|
39900
|
+
doc: a,
|
|
39901
|
+
selection: o,
|
|
39902
|
+
from: t,
|
|
39903
|
+
to: c
|
|
39904
|
+
});
|
|
39905
|
+
u.length && (s = s.add(a, u));
|
|
39869
39906
|
}
|
|
39870
|
-
|
|
39871
|
-
|
|
39872
|
-
|
|
39873
|
-
|
|
39874
|
-
|
|
39875
|
-
|
|
39876
|
-
|
|
39877
|
-
|
|
39878
|
-
|
|
39879
|
-
|
|
39880
|
-
|
|
39881
|
-
|
|
39882
|
-
r === null && (r = requestAnimationFrame(() => {
|
|
39883
|
-
r = null;
|
|
39884
|
-
let e = performance.now();
|
|
39885
|
-
e - i >= 150 ? (i = e, n()) : a();
|
|
39886
|
-
}));
|
|
39887
|
-
};
|
|
39888
|
-
return t.addEventListener("scroll", a, { passive: !0 }), n(), {
|
|
39889
|
-
update(t, n) {
|
|
39890
|
-
e.state.doc.content.size !== n.doc.content.size && a();
|
|
39907
|
+
return s;
|
|
39908
|
+
}
|
|
39909
|
+
function tJ({ editor: e, options: t, dataAttribute: n }) {
|
|
39910
|
+
return {
|
|
39911
|
+
init(r, i) {
|
|
39912
|
+
return Kq({
|
|
39913
|
+
editor: e,
|
|
39914
|
+
options: t,
|
|
39915
|
+
dataAttribute: n,
|
|
39916
|
+
doc: i.doc,
|
|
39917
|
+
selection: i.selection
|
|
39918
|
+
}) ?? av.empty;
|
|
39891
39919
|
},
|
|
39892
|
-
|
|
39893
|
-
r
|
|
39920
|
+
apply(r, i, a, o) {
|
|
39921
|
+
return !r.docChanged && !r.selectionSet ? i : eJ({
|
|
39922
|
+
decorations: i.map(r.mapping, r.doc),
|
|
39923
|
+
ranges: Qq(r, a, o),
|
|
39924
|
+
editor: e,
|
|
39925
|
+
options: t,
|
|
39926
|
+
dataAttribute: n,
|
|
39927
|
+
doc: o.doc,
|
|
39928
|
+
selection: o.selection
|
|
39929
|
+
});
|
|
39894
39930
|
}
|
|
39895
39931
|
};
|
|
39896
39932
|
}
|
|
39897
|
-
function
|
|
39898
|
-
|
|
39933
|
+
function nJ(e) {
|
|
39934
|
+
return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
39935
|
+
}
|
|
39936
|
+
function rJ({ editor: e, options: t }) {
|
|
39937
|
+
let n = t.dataAttribute ? `data-${nJ(t.dataAttribute)}` : `data-${Vq}`, r = t.showOnlyCurrent && !t.includeChildren;
|
|
39899
39938
|
return new rf({
|
|
39900
39939
|
key: Hq,
|
|
39901
|
-
state:
|
|
39902
|
-
|
|
39903
|
-
|
|
39940
|
+
...r ? {} : { state: tJ({
|
|
39941
|
+
editor: e,
|
|
39942
|
+
options: t,
|
|
39943
|
+
dataAttribute: n
|
|
39944
|
+
}) },
|
|
39945
|
+
props: { decorations: r ? ({ doc: r, selection: i }) => Kq({
|
|
39904
39946
|
editor: e,
|
|
39905
39947
|
options: t,
|
|
39906
39948
|
dataAttribute: n,
|
|
39907
39949
|
doc: r,
|
|
39908
39950
|
selection: i
|
|
39909
|
-
}) }
|
|
39951
|
+
}) : (n) => t.showOnlyWhenEditable && !e.isEditable ? av.empty : Hq.getState(n) ?? av.empty }
|
|
39910
39952
|
});
|
|
39911
39953
|
}
|
|
39912
|
-
var
|
|
39954
|
+
var iJ = $x.create({
|
|
39913
39955
|
name: "placeholder",
|
|
39914
39956
|
addOptions() {
|
|
39915
39957
|
return {
|
|
@@ -39923,12 +39965,25 @@ var eJ = $x.create({
|
|
|
39923
39965
|
};
|
|
39924
39966
|
},
|
|
39925
39967
|
addProseMirrorPlugins() {
|
|
39926
|
-
return [
|
|
39968
|
+
return [rJ({
|
|
39927
39969
|
editor: this.editor,
|
|
39928
39970
|
options: this.options
|
|
39929
39971
|
})];
|
|
39930
39972
|
}
|
|
39931
39973
|
});
|
|
39974
|
+
function aJ(e, t) {
|
|
39975
|
+
return !e.selection.empty && !cx(e.selection) && t.isEditable;
|
|
39976
|
+
}
|
|
39977
|
+
function oJ(e, t) {
|
|
39978
|
+
return aJ(e, t) && !t.isFocused && !t.view.dragging;
|
|
39979
|
+
}
|
|
39980
|
+
function sJ() {
|
|
39981
|
+
var e;
|
|
39982
|
+
(e = window.getSelection()) == null || e.removeAllRanges();
|
|
39983
|
+
}
|
|
39984
|
+
function cJ(e) {
|
|
39985
|
+
e.focus();
|
|
39986
|
+
}
|
|
39932
39987
|
$x.create({
|
|
39933
39988
|
name: "selection",
|
|
39934
39989
|
addOptions() {
|
|
@@ -39938,13 +39993,25 @@ $x.create({
|
|
|
39938
39993
|
let { editor: e, options: t } = this;
|
|
39939
39994
|
return [new rf({
|
|
39940
39995
|
key: new sf("selection"),
|
|
39941
|
-
props: {
|
|
39942
|
-
|
|
39943
|
-
|
|
39996
|
+
props: {
|
|
39997
|
+
decorations(n) {
|
|
39998
|
+
return oJ(n, e) ? av.create(n.doc, [nv.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
|
|
39999
|
+
},
|
|
40000
|
+
handleDOMEvents: {
|
|
40001
|
+
blur(t) {
|
|
40002
|
+
return aJ(t.state, e) && sJ(), !1;
|
|
40003
|
+
},
|
|
40004
|
+
focus(t) {
|
|
40005
|
+
return aJ(t.state, e) && requestAnimationFrame(() => {
|
|
40006
|
+
!e.isDestroyed && t.hasFocus() && cJ(t);
|
|
40007
|
+
}), !1;
|
|
40008
|
+
}
|
|
40009
|
+
}
|
|
40010
|
+
}
|
|
39944
40011
|
})];
|
|
39945
40012
|
}
|
|
39946
40013
|
});
|
|
39947
|
-
function
|
|
40014
|
+
function lJ({ types: e, node: t }) {
|
|
39948
40015
|
return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
|
|
39949
40016
|
}
|
|
39950
40017
|
$x.create({
|
|
@@ -39966,7 +40033,7 @@ $x.create({
|
|
|
39966
40033
|
state: {
|
|
39967
40034
|
init: (e, t) => {
|
|
39968
40035
|
let r = t.tr.doc.lastChild;
|
|
39969
|
-
return !
|
|
40036
|
+
return !lJ({
|
|
39970
40037
|
node: r,
|
|
39971
40038
|
types: n
|
|
39972
40039
|
});
|
|
@@ -39974,7 +40041,7 @@ $x.create({
|
|
|
39974
40041
|
apply: (e, t) => {
|
|
39975
40042
|
if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
|
|
39976
40043
|
let r = e.doc.lastChild;
|
|
39977
|
-
return !
|
|
40044
|
+
return !lJ({
|
|
39978
40045
|
node: r,
|
|
39979
40046
|
types: n
|
|
39980
40047
|
});
|
|
@@ -40009,7 +40076,7 @@ $x.create({
|
|
|
40009
40076
|
};
|
|
40010
40077
|
}
|
|
40011
40078
|
});
|
|
40012
|
-
var
|
|
40079
|
+
var uJ = Gx.create({
|
|
40013
40080
|
name: "superscript",
|
|
40014
40081
|
addOptions() {
|
|
40015
40082
|
return { HTMLAttributes: {} };
|
|
@@ -40039,7 +40106,7 @@ var nJ = Gx.create({
|
|
|
40039
40106
|
addKeyboardShortcuts() {
|
|
40040
40107
|
return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
|
|
40041
40108
|
}
|
|
40042
|
-
}),
|
|
40109
|
+
}), dJ = Gx.create({
|
|
40043
40110
|
name: "subscript",
|
|
40044
40111
|
addOptions() {
|
|
40045
40112
|
return { HTMLAttributes: {} };
|
|
@@ -40069,7 +40136,7 @@ var nJ = Gx.create({
|
|
|
40069
40136
|
addKeyboardShortcuts() {
|
|
40070
40137
|
return { "Mod-,": () => this.editor.commands.toggleSubscript() };
|
|
40071
40138
|
}
|
|
40072
|
-
}),
|
|
40139
|
+
}), fJ = $x.create({
|
|
40073
40140
|
name: "textAlign",
|
|
40074
40141
|
addOptions() {
|
|
40075
40142
|
return {
|
|
@@ -40111,7 +40178,7 @@ var nJ = Gx.create({
|
|
|
40111
40178
|
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
40112
40179
|
};
|
|
40113
40180
|
}
|
|
40114
|
-
}),
|
|
40181
|
+
}), pJ = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mJ = kS.create({
|
|
40115
40182
|
name: "image",
|
|
40116
40183
|
addOptions() {
|
|
40117
40184
|
return {
|
|
@@ -40204,7 +40271,7 @@ var nJ = Gx.create({
|
|
|
40204
40271
|
},
|
|
40205
40272
|
addInputRules() {
|
|
40206
40273
|
return [hS({
|
|
40207
|
-
find:
|
|
40274
|
+
find: pJ,
|
|
40208
40275
|
type: this.type,
|
|
40209
40276
|
getAttributes: (e) => {
|
|
40210
40277
|
let [, , t, n, r] = e;
|
|
@@ -40216,17 +40283,17 @@ var nJ = Gx.create({
|
|
|
40216
40283
|
}
|
|
40217
40284
|
})];
|
|
40218
40285
|
}
|
|
40219
|
-
}),
|
|
40286
|
+
}), hJ = iJ, gJ = {
|
|
40220
40287
|
position: "bottom",
|
|
40221
40288
|
alignment: "left",
|
|
40222
40289
|
alwaysVisible: !1,
|
|
40223
40290
|
showDone: !0,
|
|
40224
40291
|
doneOn: "blur"
|
|
40225
|
-
},
|
|
40292
|
+
}, _J = {
|
|
40226
40293
|
options: {},
|
|
40227
40294
|
respAreaToolbar: () => {},
|
|
40228
40295
|
onHandleAreaChange: () => {}
|
|
40229
|
-
},
|
|
40296
|
+
}, vJ = [
|
|
40230
40297
|
"bold",
|
|
40231
40298
|
"italic",
|
|
40232
40299
|
"underline",
|
|
@@ -40248,7 +40315,7 @@ var nJ = Gx.create({
|
|
|
40248
40315
|
"h3",
|
|
40249
40316
|
"undo",
|
|
40250
40317
|
"redo"
|
|
40251
|
-
],
|
|
40318
|
+
], yJ = {
|
|
40252
40319
|
"--white": "#fff",
|
|
40253
40320
|
"--black": "#2e2b29",
|
|
40254
40321
|
"--black-contrast": "#110f0e",
|
|
@@ -40267,14 +40334,18 @@ var nJ = Gx.create({
|
|
|
40267
40334
|
"--red": "#ff5c33",
|
|
40268
40335
|
"--red-light": "#ffebe5",
|
|
40269
40336
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
40270
|
-
},
|
|
40337
|
+
}, bJ = (e) => ({
|
|
40338
|
+
spellcheck: e ? "true" : "false",
|
|
40339
|
+
autocorrect: e ? "on" : "off",
|
|
40340
|
+
autocapitalize: e ? "on" : "off"
|
|
40341
|
+
}), xJ = (e) => {
|
|
40271
40342
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Ft([]), [a, o] = Ft(!1), { toolbarOpts: s } = e, c = Ot((e) => {
|
|
40272
40343
|
i((t) => {
|
|
40273
40344
|
let n = t.filter((t) => t.pos !== e);
|
|
40274
40345
|
return n.length === 0 && o(!1), n;
|
|
40275
40346
|
});
|
|
40276
40347
|
}, [i]), l = {
|
|
40277
|
-
...
|
|
40348
|
+
...gJ,
|
|
40278
40349
|
...s
|
|
40279
40350
|
}, u = Ot((t) => {
|
|
40280
40351
|
let n = t.getHTML();
|
|
@@ -40285,13 +40356,13 @@ var nJ = Gx.create({
|
|
|
40285
40356
|
e.onDone,
|
|
40286
40357
|
l.doneOn
|
|
40287
40358
|
]), d = Nt(() => ({
|
|
40288
|
-
...
|
|
40359
|
+
..._J,
|
|
40289
40360
|
...e.responseAreaProps,
|
|
40290
40361
|
onInlineDropdownToolbarClose: u
|
|
40291
40362
|
}), [e.responseAreaProps, u]), p = Nt(() => {
|
|
40292
40363
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
40293
40364
|
t ||= [];
|
|
40294
|
-
let r = (e.activePlugins ||
|
|
40365
|
+
let r = (e.activePlugins || vJ)?.filter((e) => {
|
|
40295
40366
|
let t = Xc[e] || e, r = n[t] || {};
|
|
40296
40367
|
return !r || !r.disabled;
|
|
40297
40368
|
});
|
|
@@ -40309,103 +40380,112 @@ var nJ = Gx.create({
|
|
|
40309
40380
|
setKeypadInteraction: {},
|
|
40310
40381
|
media: {}
|
|
40311
40382
|
});
|
|
40312
|
-
}, [e, d.type]), m =
|
|
40313
|
-
|
|
40314
|
-
|
|
40315
|
-
|
|
40316
|
-
|
|
40317
|
-
|
|
40318
|
-
|
|
40319
|
-
|
|
40320
|
-
|
|
40321
|
-
|
|
40322
|
-
|
|
40323
|
-
|
|
40324
|
-
|
|
40325
|
-
|
|
40326
|
-
|
|
40327
|
-
|
|
40328
|
-
|
|
40329
|
-
|
|
40330
|
-
|
|
40331
|
-
|
|
40332
|
-
|
|
40333
|
-
|
|
40334
|
-
|
|
40335
|
-
|
|
40336
|
-
|
|
40337
|
-
|
|
40338
|
-
|
|
40383
|
+
}, [e, d.type]), m = [
|
|
40384
|
+
fJ.configure({
|
|
40385
|
+
types: [
|
|
40386
|
+
"heading",
|
|
40387
|
+
"paragraph",
|
|
40388
|
+
"div",
|
|
40389
|
+
"headingParagraph",
|
|
40390
|
+
"h1",
|
|
40391
|
+
"h2",
|
|
40392
|
+
"h3",
|
|
40393
|
+
"h4",
|
|
40394
|
+
"h5",
|
|
40395
|
+
"h6",
|
|
40396
|
+
"td",
|
|
40397
|
+
"th"
|
|
40398
|
+
],
|
|
40399
|
+
alignments: [
|
|
40400
|
+
"left",
|
|
40401
|
+
"right",
|
|
40402
|
+
"center",
|
|
40403
|
+
"justify"
|
|
40404
|
+
]
|
|
40405
|
+
}),
|
|
40406
|
+
zq,
|
|
40407
|
+
Bq.configure({ limit: e.charactersLimit || 1e6 }),
|
|
40408
|
+
kq.configure({
|
|
40409
|
+
trailingNode: {
|
|
40339
40410
|
node: "paragraph",
|
|
40340
40411
|
notAfter: ["paragraph", "div"]
|
|
40341
|
-
}
|
|
40342
|
-
|
|
40343
|
-
|
|
40344
|
-
|
|
40345
|
-
|
|
40346
|
-
|
|
40347
|
-
|
|
40348
|
-
|
|
40349
|
-
|
|
40350
|
-
|
|
40351
|
-
|
|
40352
|
-
|
|
40353
|
-
|
|
40354
|
-
|
|
40355
|
-
|
|
40356
|
-
|
|
40357
|
-
|
|
40358
|
-
|
|
40359
|
-
|
|
40360
|
-
|
|
40361
|
-
|
|
40362
|
-
|
|
40363
|
-
|
|
40364
|
-
|
|
40365
|
-
|
|
40366
|
-
|
|
40367
|
-
|
|
40368
|
-
|
|
40369
|
-
|
|
40370
|
-
|
|
40371
|
-
|
|
40372
|
-
|
|
40373
|
-
|
|
40374
|
-
|
|
40375
|
-
|
|
40376
|
-
|
|
40377
|
-
|
|
40378
|
-
|
|
40379
|
-
|
|
40380
|
-
|
|
40381
|
-
|
|
40382
|
-
|
|
40383
|
-
|
|
40384
|
-
|
|
40385
|
-
|
|
40386
|
-
|
|
40387
|
-
|
|
40388
|
-
|
|
40389
|
-
|
|
40390
|
-
|
|
40391
|
-
|
|
40392
|
-
|
|
40393
|
-
|
|
40394
|
-
|
|
40395
|
-
|
|
40396
|
-
|
|
40397
|
-
|
|
40398
|
-
|
|
40399
|
-
|
|
40400
|
-
|
|
40401
|
-
|
|
40402
|
-
|
|
40403
|
-
|
|
40404
|
-
|
|
40412
|
+
},
|
|
40413
|
+
link: {
|
|
40414
|
+
autolink: !1,
|
|
40415
|
+
linkOnPaste: !1
|
|
40416
|
+
}
|
|
40417
|
+
}),
|
|
40418
|
+
NR,
|
|
40419
|
+
sk,
|
|
40420
|
+
PR,
|
|
40421
|
+
ck,
|
|
40422
|
+
lk,
|
|
40423
|
+
hJ.configure({
|
|
40424
|
+
placeholder: e.placeholder,
|
|
40425
|
+
showOnlyWhenEditable: !0,
|
|
40426
|
+
showOnlyCurrent: !1,
|
|
40427
|
+
includeChildren: !0
|
|
40428
|
+
}),
|
|
40429
|
+
rk,
|
|
40430
|
+
VO,
|
|
40431
|
+
ok,
|
|
40432
|
+
ak,
|
|
40433
|
+
_I.configure(d),
|
|
40434
|
+
vI.configure(d),
|
|
40435
|
+
bI.configure(d),
|
|
40436
|
+
xI.configure(d),
|
|
40437
|
+
yI.configure(d),
|
|
40438
|
+
iL.configure({
|
|
40439
|
+
toolbarOpts: l,
|
|
40440
|
+
math: e.pluginProps?.math || {}
|
|
40441
|
+
}),
|
|
40442
|
+
dJ,
|
|
40443
|
+
uJ,
|
|
40444
|
+
mJ,
|
|
40445
|
+
TL.configure({
|
|
40446
|
+
toolbarOpts: l,
|
|
40447
|
+
imageHandling: {
|
|
40448
|
+
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
40449
|
+
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
40450
|
+
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
40451
|
+
let { src: n } = t.attrs;
|
|
40452
|
+
e.imageSupport.delete(n, (e) => {
|
|
40453
|
+
c(t.pos);
|
|
40454
|
+
});
|
|
40455
|
+
}),
|
|
40456
|
+
insertImageRequested: e.imageSupport && ((t, n, r) => {
|
|
40457
|
+
let [o, s] = n, l = (n) => {
|
|
40458
|
+
let r;
|
|
40459
|
+
a && n && (r = e.onChange), c(s), r?.(t.getHTML());
|
|
40460
|
+
};
|
|
40461
|
+
t._insertingImage = !0, i((e) => [...e, o]), (() => {
|
|
40462
|
+
let n = r(l), i = f(() => {
|
|
40463
|
+
let e = () => window.removeEventListener("focus", i);
|
|
40464
|
+
if (!t._insertingImage) {
|
|
40465
|
+
e();
|
|
40466
|
+
return;
|
|
40467
|
+
}
|
|
40468
|
+
c(s), t._insertingImage = !1, e();
|
|
40469
|
+
}, 500);
|
|
40470
|
+
window.addEventListener("focus", i), e.imageSupport.add(n);
|
|
40471
|
+
})();
|
|
40472
|
+
}),
|
|
40473
|
+
maxImageWidth: e.maxImageWidth,
|
|
40474
|
+
maxImageHeight: e.maxImageHeight
|
|
40475
|
+
},
|
|
40476
|
+
limit: 3
|
|
40477
|
+
}),
|
|
40478
|
+
KL.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
40479
|
+
QL.configure({ extraCSSRules: e.extraCSSRules })
|
|
40480
|
+
], h = e.spellCheck !== !1, g = FA({
|
|
40481
|
+
extensions: m,
|
|
40405
40482
|
immediatelyRender: !1,
|
|
40406
|
-
editorProps: {
|
|
40407
|
-
|
|
40408
|
-
|
|
40483
|
+
editorProps: {
|
|
40484
|
+
attributes: bJ(h),
|
|
40485
|
+
handleKeyDown(t, n) {
|
|
40486
|
+
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
40487
|
+
}
|
|
40488
|
+
},
|
|
40409
40489
|
editable: !e.disabled,
|
|
40410
40490
|
content: tl(e.markup),
|
|
40411
40491
|
onUpdate: ({ editor: t, transaction: n }) => {
|
|
@@ -40416,22 +40496,29 @@ var nJ = Gx.create({
|
|
|
40416
40496
|
}
|
|
40417
40497
|
}, [e.charactersLimit]);
|
|
40418
40498
|
jt(() => {
|
|
40419
|
-
e.editorRef && e.editorRef(
|
|
40420
|
-
}, [e.editorRef,
|
|
40421
|
-
|
|
40422
|
-
}, [e.disabled,
|
|
40423
|
-
if (!
|
|
40499
|
+
e.editorRef && e.editorRef(g);
|
|
40500
|
+
}, [e.editorRef, g]), jt(() => {
|
|
40501
|
+
g?.setEditable(!e.disabled);
|
|
40502
|
+
}, [e.disabled, g]), jt(() => {
|
|
40503
|
+
if (!g) return;
|
|
40504
|
+
let e = g.options?.editorProps, t = bJ(h);
|
|
40505
|
+
e?.attributes?.spellcheck !== t.spellcheck && g.setOptions({ editorProps: {
|
|
40506
|
+
...e,
|
|
40507
|
+
attributes: t
|
|
40508
|
+
} });
|
|
40509
|
+
}, [h, g]), jt(() => {
|
|
40510
|
+
if (!g) return;
|
|
40424
40511
|
let t = tl(e.markup);
|
|
40425
|
-
t !==
|
|
40426
|
-
}, [e.markup,
|
|
40427
|
-
Object.entries(
|
|
40512
|
+
t !== g.getHTML() && g.commands.setContent(t, { emitUpdate: !1 });
|
|
40513
|
+
}, [e.markup, g]), jt(() => {
|
|
40514
|
+
Object.entries(yJ).forEach(([e, t]) => {
|
|
40428
40515
|
document.documentElement.style.setProperty(e, t);
|
|
40429
40516
|
});
|
|
40430
40517
|
}, []);
|
|
40431
|
-
let
|
|
40432
|
-
editor:
|
|
40518
|
+
let _ = jA({
|
|
40519
|
+
editor: g,
|
|
40433
40520
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
40434
|
-
}),
|
|
40521
|
+
}), v = Nt(() => {
|
|
40435
40522
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
40436
40523
|
return {
|
|
40437
40524
|
width: FR(n),
|
|
@@ -40446,20 +40533,20 @@ var nJ = Gx.create({
|
|
|
40446
40533
|
...e,
|
|
40447
40534
|
activePlugins: p,
|
|
40448
40535
|
toolbarOpts: l,
|
|
40449
|
-
editorState:
|
|
40450
|
-
editor:
|
|
40451
|
-
children:
|
|
40536
|
+
editorState: _,
|
|
40537
|
+
editor: g,
|
|
40538
|
+
children: g && /* @__PURE__ */ F(SJ, {
|
|
40452
40539
|
style: {
|
|
40453
|
-
minHeight:
|
|
40454
|
-
height:
|
|
40455
|
-
maxHeight:
|
|
40540
|
+
minHeight: v.minHeight,
|
|
40541
|
+
height: v.height,
|
|
40542
|
+
maxHeight: v.maxHeight
|
|
40456
40543
|
},
|
|
40457
40544
|
showParagraph: t && !t.disabled,
|
|
40458
40545
|
separateParagraph: n && !n.disabled,
|
|
40459
|
-
editor:
|
|
40546
|
+
editor: g
|
|
40460
40547
|
})
|
|
40461
40548
|
});
|
|
40462
|
-
},
|
|
40549
|
+
}, SJ = N(OA, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
40463
40550
|
display: "flex",
|
|
40464
40551
|
outline: "none !important",
|
|
40465
40552
|
"& .ProseMirror": {
|
|
@@ -40487,43 +40574,43 @@ var nJ = Gx.create({
|
|
|
40487
40574
|
} },
|
|
40488
40575
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
40489
40576
|
}
|
|
40490
|
-
})),
|
|
40577
|
+
})), CJ = xJ;
|
|
40491
40578
|
//#endregion
|
|
40492
40579
|
//#region ../../lib-react/config-ui/dist/inputs.js
|
|
40493
|
-
function
|
|
40580
|
+
function wJ(e) {
|
|
40494
40581
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40495
40582
|
}
|
|
40496
|
-
function
|
|
40497
|
-
return !e ||
|
|
40583
|
+
function TJ(e, t) {
|
|
40584
|
+
return !e || wJ(e) ? e : wJ(e.default) ? e.default : t && wJ(e[t]) ? e[t] : t && wJ(e[t]?.default) ? e[t].default : e;
|
|
40498
40585
|
}
|
|
40499
|
-
var
|
|
40586
|
+
var EJ = TJ(Ie, "InputContainer") || TJ(kJ.InputContainer, "InputContainer"), DJ = tt, OJ = DJ.default, kJ = OJ && typeof OJ == "object" ? OJ : DJ, AJ = {
|
|
40500
40587
|
className: L.default.string,
|
|
40501
40588
|
label: L.default.string,
|
|
40502
40589
|
checked: L.default.bool,
|
|
40503
40590
|
onChange: L.default.func,
|
|
40504
40591
|
disabled: L.default.bool,
|
|
40505
40592
|
error: L.default.string
|
|
40506
|
-
},
|
|
40593
|
+
}, jJ = N(oc)(() => ({
|
|
40507
40594
|
justifyContent: "inherit",
|
|
40508
40595
|
transform: "translate(-20%, 20%)"
|
|
40509
|
-
})),
|
|
40596
|
+
})), MJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ F(EJ, {
|
|
40510
40597
|
className: e,
|
|
40511
40598
|
label: t,
|
|
40512
|
-
children: /* @__PURE__ */ F(
|
|
40599
|
+
children: /* @__PURE__ */ F(jJ, {
|
|
40513
40600
|
checked: n,
|
|
40514
40601
|
onChange: r,
|
|
40515
40602
|
"aria-label": t
|
|
40516
40603
|
})
|
|
40517
40604
|
});
|
|
40518
|
-
|
|
40519
|
-
var
|
|
40605
|
+
MJ.propTypes = { ...AJ };
|
|
40606
|
+
var NJ = N(Zi)(({ theme: e, error: t }) => ({
|
|
40520
40607
|
transform: "translate(-25%, 20%)",
|
|
40521
40608
|
color: `${k.tertiary()} !important`,
|
|
40522
40609
|
...t && { color: `${e.palette.error.main} !important` }
|
|
40523
|
-
})),
|
|
40610
|
+
})), PJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(EJ, {
|
|
40524
40611
|
className: e,
|
|
40525
40612
|
label: t,
|
|
40526
|
-
children: /* @__PURE__ */ F(
|
|
40613
|
+
children: /* @__PURE__ */ F(NJ, {
|
|
40527
40614
|
disabled: i,
|
|
40528
40615
|
checked: n,
|
|
40529
40616
|
onChange: r,
|
|
@@ -40531,15 +40618,15 @@ var wJ = N(Zi)(({ theme: e, error: t }) => ({
|
|
|
40531
40618
|
error: a
|
|
40532
40619
|
})
|
|
40533
40620
|
});
|
|
40534
|
-
|
|
40535
|
-
var
|
|
40621
|
+
PJ.propTypes = { ...AJ };
|
|
40622
|
+
var FJ = N(Ls)(({ theme: e, error: t }) => ({
|
|
40536
40623
|
transform: "translate(-20%, 20%)",
|
|
40537
40624
|
color: `${k.tertiary()} !important`,
|
|
40538
40625
|
...t && { color: `${e.palette.error.main} !important` }
|
|
40539
|
-
})),
|
|
40626
|
+
})), IJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(EJ, {
|
|
40540
40627
|
className: e,
|
|
40541
40628
|
label: t,
|
|
40542
|
-
children: /* @__PURE__ */ F(
|
|
40629
|
+
children: /* @__PURE__ */ F(FJ, {
|
|
40543
40630
|
disabled: i,
|
|
40544
40631
|
checked: n,
|
|
40545
40632
|
onChange: r,
|
|
@@ -40547,10 +40634,10 @@ var EJ = N(Ls)(({ theme: e, error: t }) => ({
|
|
|
40547
40634
|
error: a
|
|
40548
40635
|
})
|
|
40549
40636
|
});
|
|
40550
|
-
|
|
40637
|
+
IJ.propTypes = { ...AJ };
|
|
40551
40638
|
//#endregion
|
|
40552
40639
|
//#region ../../lib-react/config-ui/dist/tabs/index.js
|
|
40553
|
-
var
|
|
40640
|
+
var LJ = N(dc)(() => ({})), RJ = class extends xt.Component {
|
|
40554
40641
|
static propTypes = {
|
|
40555
40642
|
className: L.default.string,
|
|
40556
40643
|
contentClassName: L.default.string,
|
|
@@ -40571,7 +40658,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
|
|
|
40571
40658
|
indicatorColor: "primary",
|
|
40572
40659
|
value: e,
|
|
40573
40660
|
onChange: this.handleChange,
|
|
40574
|
-
children: xt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(
|
|
40661
|
+
children: xt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(LJ, { label: e.props.title }, t) : null)
|
|
40575
40662
|
}), /* @__PURE__ */ F("div", {
|
|
40576
40663
|
className: r,
|
|
40577
40664
|
style: i,
|
|
@@ -40579,7 +40666,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
|
|
|
40579
40666
|
})]
|
|
40580
40667
|
});
|
|
40581
40668
|
}
|
|
40582
|
-
},
|
|
40669
|
+
}, zJ = N(Pa)(({ theme: e, mini: t }) => ({
|
|
40583
40670
|
margin: 0,
|
|
40584
40671
|
marginLeft: 0,
|
|
40585
40672
|
padding: 0,
|
|
@@ -40593,7 +40680,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
|
|
|
40593
40680
|
fontSize: e.typography.fontSize - 3
|
|
40594
40681
|
}
|
|
40595
40682
|
}
|
|
40596
|
-
})),
|
|
40683
|
+
})), BJ = N(Zi)(({ theme: e, mini: t, error: n }) => ({
|
|
40597
40684
|
color: `${k.tertiary()} !important`,
|
|
40598
40685
|
...t && {
|
|
40599
40686
|
margin: 0,
|
|
@@ -40602,9 +40689,9 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
|
|
|
40602
40689
|
height: e.spacing(3)
|
|
40603
40690
|
},
|
|
40604
40691
|
...n && { color: `${e.palette.error.main} !important` }
|
|
40605
|
-
})),
|
|
40692
|
+
})), VJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(zJ, {
|
|
40606
40693
|
mini: e,
|
|
40607
|
-
control: /* @__PURE__ */ F(
|
|
40694
|
+
control: /* @__PURE__ */ F(BJ, {
|
|
40608
40695
|
checked: t,
|
|
40609
40696
|
onChange: n,
|
|
40610
40697
|
value: r,
|
|
@@ -40613,32 +40700,32 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
|
|
|
40613
40700
|
}),
|
|
40614
40701
|
label: i
|
|
40615
40702
|
});
|
|
40616
|
-
|
|
40703
|
+
VJ.propTypes = {
|
|
40617
40704
|
mini: L.default.bool,
|
|
40618
40705
|
checked: L.default.bool.isRequired,
|
|
40619
40706
|
onChange: L.default.func.isRequired,
|
|
40620
40707
|
value: L.default.string,
|
|
40621
40708
|
label: L.default.string.isRequired,
|
|
40622
40709
|
error: L.default.bool
|
|
40623
|
-
},
|
|
40710
|
+
}, VJ.defaultProps = {
|
|
40624
40711
|
value: "",
|
|
40625
40712
|
mini: !1,
|
|
40626
40713
|
error: !1
|
|
40627
40714
|
};
|
|
40628
40715
|
//#endregion
|
|
40629
40716
|
//#region ../../lib-react/config-ui/dist/form-section.js
|
|
40630
|
-
var
|
|
40717
|
+
var HJ = N("div")(({ theme: e }) => ({
|
|
40631
40718
|
marginTop: e.spacing(2),
|
|
40632
40719
|
marginBottom: e.spacing(2)
|
|
40633
|
-
})),
|
|
40720
|
+
})), UJ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(1) })), WJ = ({ className: e, label: t, children: n, labelExtraStyle: r }) => /* @__PURE__ */ I(HJ, {
|
|
40634
40721
|
className: e,
|
|
40635
|
-
children: [/* @__PURE__ */ F(
|
|
40722
|
+
children: [/* @__PURE__ */ F(UJ, {
|
|
40636
40723
|
variant: "subtitle1",
|
|
40637
40724
|
style: r,
|
|
40638
40725
|
children: t
|
|
40639
40726
|
}), n]
|
|
40640
40727
|
});
|
|
40641
|
-
|
|
40728
|
+
WJ.propTypes = {
|
|
40642
40729
|
className: L.default.string,
|
|
40643
40730
|
label: L.default.string,
|
|
40644
40731
|
children: L.default.node,
|
|
@@ -40646,7 +40733,7 @@ FJ.propTypes = {
|
|
|
40646
40733
|
};
|
|
40647
40734
|
//#endregion
|
|
40648
40735
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
40649
|
-
var
|
|
40736
|
+
var GJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), KJ = N(Bc)(({ theme: e }) => ({
|
|
40650
40737
|
marginRight: e.spacing(1),
|
|
40651
40738
|
"& .MuiInputLabel-root": {
|
|
40652
40739
|
width: "auto",
|
|
@@ -40668,11 +40755,11 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40668
40755
|
minHeight: "auto",
|
|
40669
40756
|
padding: "6px 0 7px"
|
|
40670
40757
|
}
|
|
40671
|
-
})),
|
|
40758
|
+
})), qJ = (e, t) => {
|
|
40672
40759
|
if (!p(e) && !p(t)) return 0;
|
|
40673
40760
|
if (!p(e) && p(t)) return t;
|
|
40674
40761
|
if (p(e)) return e;
|
|
40675
|
-
},
|
|
40762
|
+
}, JJ = class extends xt.Component {
|
|
40676
40763
|
static propTypes = {
|
|
40677
40764
|
disabled: L.default.bool,
|
|
40678
40765
|
className: L.default.string,
|
|
@@ -40698,13 +40785,13 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40698
40785
|
this.setState({ value: t });
|
|
40699
40786
|
}
|
|
40700
40787
|
clamp(e, t = this.props.min, n = this.props.max) {
|
|
40701
|
-
return p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) :
|
|
40788
|
+
return p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) : qJ(t, n);
|
|
40702
40789
|
}
|
|
40703
40790
|
onBlur = (e) => {
|
|
40704
40791
|
let t = e.target.value, n = parseFloat(t);
|
|
40705
|
-
|
|
40792
|
+
GJ("rawNumber: ", n);
|
|
40706
40793
|
let r = this.clamp(n);
|
|
40707
|
-
|
|
40794
|
+
GJ("number: ", r), r !== this.state.value && (GJ("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
40708
40795
|
this.props.onChange(e, r);
|
|
40709
40796
|
}));
|
|
40710
40797
|
};
|
|
@@ -40724,7 +40811,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40724
40811
|
};
|
|
40725
40812
|
render() {
|
|
40726
40813
|
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();
|
|
40727
|
-
return /* @__PURE__ */ F(
|
|
40814
|
+
return /* @__PURE__ */ F(KJ, {
|
|
40728
40815
|
variant: s ? "filled" : l || "standard",
|
|
40729
40816
|
inputRef: (e) => {
|
|
40730
40817
|
this.inputRef = e;
|
|
@@ -40756,12 +40843,12 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40756
40843
|
margin: "normal"
|
|
40757
40844
|
});
|
|
40758
40845
|
}
|
|
40759
|
-
},
|
|
40846
|
+
}, YJ = (e) => typeof e == "object" && !!e && typeof e.n == "number" && typeof e.d == "number", XJ = (e) => {
|
|
40760
40847
|
if (typeof e == "number") return e;
|
|
40761
|
-
if (
|
|
40848
|
+
if (YJ(e)) return (e.s ?? 1) * e.n / e.d;
|
|
40762
40849
|
let t = String(e).trim(), n = t.match(/^([+-]?\d+)\s*\/\s*([+-]?\d+)$/);
|
|
40763
40850
|
return n ? Number.parseInt(n[1] ?? "0", 10) / Number.parseInt(n[2] ?? "1", 10) : Number(t);
|
|
40764
|
-
},
|
|
40851
|
+
}, ZJ = Fe(/*#__PURE__*/ F("path", { d: "M19 13H5v-2h14z" }), "Remove"), QJ = Fe(/*#__PURE__*/ F("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add"), $J = N(Bc)(() => ({
|
|
40765
40852
|
"& input[type=number]": { MozAppearance: "textfield" },
|
|
40766
40853
|
"& input[type=number]::-webkit-outer-spin-button": {
|
|
40767
40854
|
WebkitAppearance: "none",
|
|
@@ -40771,11 +40858,11 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40771
40858
|
WebkitAppearance: "none",
|
|
40772
40859
|
margin: 0
|
|
40773
40860
|
}
|
|
40774
|
-
})),
|
|
40861
|
+
})), eY = N(en)(() => ({ padding: "2px" })), tY = (e, t) => {
|
|
40775
40862
|
if (!p(e) && !p(t)) return 0;
|
|
40776
40863
|
if (!p(e) && p(t)) return t;
|
|
40777
40864
|
if (p(e)) return e;
|
|
40778
|
-
},
|
|
40865
|
+
}, nY = class extends xt.Component {
|
|
40779
40866
|
static propTypes = {
|
|
40780
40867
|
className: L.default.string,
|
|
40781
40868
|
customValues: L.default.array,
|
|
@@ -40819,7 +40906,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40819
40906
|
}
|
|
40820
40907
|
clamp(e, t = this.props.min, n = this.props.max) {
|
|
40821
40908
|
let { customValues: r } = this.props;
|
|
40822
|
-
return (r || []).length > 0 ? e : p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) :
|
|
40909
|
+
return (r || []).length > 0 ? e : p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) : tY(t, n);
|
|
40823
40910
|
}
|
|
40824
40911
|
normalizeValueAndIndex = (e, t, n, r) => {
|
|
40825
40912
|
let { type: i } = this.props, a = this.clamp(t, n, r), o = (e || []).findIndex((e) => e === a);
|
|
@@ -40842,7 +40929,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40842
40929
|
value: e[0],
|
|
40843
40930
|
index: 0
|
|
40844
40931
|
});
|
|
40845
|
-
getClosestFractionValue = (e, t) => e.reduce((e, n, r) => Math.abs(
|
|
40932
|
+
getClosestFractionValue = (e, t) => e.reduce((e, n, r) => Math.abs(XJ(n) - XJ(t)) < Math.abs(XJ(e.value) - XJ(t)) ? {
|
|
40846
40933
|
value: n,
|
|
40847
40934
|
index: r
|
|
40848
40935
|
} : e, {
|
|
@@ -40890,7 +40977,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40890
40977
|
}
|
|
40891
40978
|
render() {
|
|
40892
40979
|
let { className: e, label: t, disabled: n, error: r, min: i, max: a, customValues: o, inputClassName: s, disableUnderline: c, helperText: l, variant: u, textAlign: d, type: f = "number" } = this.props, { value: m } = this.state, h = e, g = !1, _ = !1;
|
|
40893
|
-
return o.length > 0 ? (g = m === o[0], _ = m === o[o.length - 1]) : p(i) && p(a) && (g = m === i, _ = m === a), /* @__PURE__ */ F(
|
|
40980
|
+
return o.length > 0 ? (g = m === o[0], _ = m === o[o.length - 1]) : p(i) && p(a) && (g = m === i, _ = m === a), /* @__PURE__ */ F($J, {
|
|
40894
40981
|
variant: u,
|
|
40895
40982
|
inputRef: (e) => this.inputRef = e,
|
|
40896
40983
|
disabled: n,
|
|
@@ -40914,20 +41001,20 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40914
41001
|
disableUnderline: c,
|
|
40915
41002
|
startAdornment: /* @__PURE__ */ F(to, {
|
|
40916
41003
|
position: "start",
|
|
40917
|
-
children: /* @__PURE__ */ F(
|
|
41004
|
+
children: /* @__PURE__ */ F(eY, {
|
|
40918
41005
|
disabled: n || g,
|
|
40919
41006
|
onClick: (e) => this.changeValue(e, -1, !0),
|
|
40920
41007
|
size: "large",
|
|
40921
|
-
children: /* @__PURE__ */ F(
|
|
41008
|
+
children: /* @__PURE__ */ F(ZJ, { fontSize: "small" })
|
|
40922
41009
|
})
|
|
40923
41010
|
}),
|
|
40924
41011
|
endAdornment: /* @__PURE__ */ F(to, {
|
|
40925
41012
|
position: "end",
|
|
40926
|
-
children: /* @__PURE__ */ F(
|
|
41013
|
+
children: /* @__PURE__ */ F(eY, {
|
|
40927
41014
|
disabled: n || _,
|
|
40928
41015
|
onClick: (e) => this.changeValue(e, 1, !0),
|
|
40929
41016
|
size: "large",
|
|
40930
|
-
children: /* @__PURE__ */ F(
|
|
41017
|
+
children: /* @__PURE__ */ F(QJ, { fontSize: "small" })
|
|
40931
41018
|
})
|
|
40932
41019
|
})
|
|
40933
41020
|
},
|
|
@@ -40941,19 +41028,19 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
|
|
|
40941
41028
|
};
|
|
40942
41029
|
//#endregion
|
|
40943
41030
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
40944
|
-
function
|
|
41031
|
+
function rY(e) {
|
|
40945
41032
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
40946
41033
|
}
|
|
40947
|
-
function
|
|
40948
|
-
return !e ||
|
|
41034
|
+
function iY(e, t) {
|
|
41035
|
+
return !e || rY(e) ? e : rY(e.default) ? e.default : t && rY(e[t]) ? e[t] : t && rY(e[t]?.default) ? e[t].default : e;
|
|
40949
41036
|
}
|
|
40950
|
-
var
|
|
41037
|
+
var aY = iY(Ie, "InputContainer") || iY(cY.InputContainer, "InputContainer"), oY = tt, sY = oY.default, cY = sY && typeof sY == "object" ? sY : oY, lY = N("div")(({ theme: e, direction: t }) => ({
|
|
40951
41038
|
display: "flex",
|
|
40952
41039
|
flexWrap: "wrap",
|
|
40953
41040
|
paddingLeft: 0,
|
|
40954
41041
|
marginTop: e.spacing(1),
|
|
40955
41042
|
...t === "vertical" && { flexDirection: "column" }
|
|
40956
|
-
})),
|
|
41043
|
+
})), uY = class extends xt.Component {
|
|
40957
41044
|
static propTypes = {
|
|
40958
41045
|
header: L.default.string.isRequired,
|
|
40959
41046
|
className: L.default.string,
|
|
@@ -40971,10 +41058,10 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
|
|
|
40971
41058
|
label: e,
|
|
40972
41059
|
value: e
|
|
40973
41060
|
} : e), s = n || qc;
|
|
40974
|
-
return /* @__PURE__ */ F(
|
|
41061
|
+
return /* @__PURE__ */ F(aY, {
|
|
40975
41062
|
label: e,
|
|
40976
41063
|
className: t,
|
|
40977
|
-
children: /* @__PURE__ */ F(
|
|
41064
|
+
children: /* @__PURE__ */ F(lY, {
|
|
40978
41065
|
direction: a,
|
|
40979
41066
|
children: o.map((e, t) => /* @__PURE__ */ F(s, {
|
|
40980
41067
|
value: e.value,
|
|
@@ -40985,7 +41072,7 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
|
|
|
40985
41072
|
})
|
|
40986
41073
|
});
|
|
40987
41074
|
}
|
|
40988
|
-
},
|
|
41075
|
+
}, dY = L.default.shape({
|
|
40989
41076
|
label: L.default.string,
|
|
40990
41077
|
value: L.default.string
|
|
40991
41078
|
});
|
|
@@ -40994,14 +41081,14 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
|
|
|
40994
41081
|
header: L.default.string.isRequired,
|
|
40995
41082
|
value: L.default.string.isRequired,
|
|
40996
41083
|
onChange: L.default.func.isRequired,
|
|
40997
|
-
one: L.default.oneOfType([
|
|
40998
|
-
two: L.default.oneOfType([
|
|
41084
|
+
one: L.default.oneOfType([dY, L.default.string]),
|
|
41085
|
+
two: L.default.oneOfType([dY, L.default.string]),
|
|
40999
41086
|
className: L.default.string,
|
|
41000
41087
|
customLabel: L.default.func
|
|
41001
41088
|
};
|
|
41002
41089
|
render() {
|
|
41003
41090
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
41004
|
-
return /* @__PURE__ */ F(
|
|
41091
|
+
return /* @__PURE__ */ F(uY, {
|
|
41005
41092
|
customLabel: i,
|
|
41006
41093
|
header: n,
|
|
41007
41094
|
className: r,
|
|
@@ -41013,21 +41100,21 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
|
|
|
41013
41100
|
});
|
|
41014
41101
|
//#endregion
|
|
41015
41102
|
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
41016
|
-
var
|
|
41103
|
+
var fY = Object.defineProperty, pY = (e, t) => {
|
|
41017
41104
|
let n = {};
|
|
41018
|
-
for (var r in e)
|
|
41105
|
+
for (var r in e) fY(n, r, {
|
|
41019
41106
|
get: e[r],
|
|
41020
41107
|
enumerable: !0
|
|
41021
41108
|
});
|
|
41022
|
-
return t ||
|
|
41023
|
-
},
|
|
41109
|
+
return t || fY(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
41110
|
+
}, mY = N("div")(() => ({
|
|
41024
41111
|
display: "flex",
|
|
41025
41112
|
flexDirection: "column",
|
|
41026
41113
|
position: "relative"
|
|
41027
|
-
})),
|
|
41114
|
+
})), hY = N("div")(() => ({
|
|
41028
41115
|
display: "flex",
|
|
41029
41116
|
justifyContent: "space-between"
|
|
41030
|
-
})),
|
|
41117
|
+
})), gY = N("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), _Y = N("div")(() => ({ flex: "1" })), vY = N("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), yY = class extends xt.Component {
|
|
41031
41118
|
static propTypes = {
|
|
41032
41119
|
mode: L.default.oneOf(["tabbed", "inline"]),
|
|
41033
41120
|
secondary: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]),
|
|
@@ -41045,7 +41132,7 @@ var rY = Object.defineProperty, iY = (e, t) => {
|
|
|
41045
41132
|
} catch (e) {
|
|
41046
41133
|
console.log(e.toString());
|
|
41047
41134
|
}
|
|
41048
|
-
return /* @__PURE__ */ I(
|
|
41135
|
+
return /* @__PURE__ */ I(mY, {
|
|
41049
41136
|
style: {
|
|
41050
41137
|
minHeight: i,
|
|
41051
41138
|
minWidth: a,
|
|
@@ -41053,28 +41140,28 @@ var rY = Object.defineProperty, iY = (e, t) => {
|
|
|
41053
41140
|
maxWidth: s
|
|
41054
41141
|
},
|
|
41055
41142
|
children: [
|
|
41056
|
-
e === "inline" && /* @__PURE__ */ I(
|
|
41143
|
+
e === "inline" && /* @__PURE__ */ I(hY, { children: [/* @__PURE__ */ F(_Y, {
|
|
41057
41144
|
className: "design-container",
|
|
41058
41145
|
children: n
|
|
41059
|
-
}), l && /* @__PURE__ */ F(
|
|
41146
|
+
}), l && /* @__PURE__ */ F(vY, {
|
|
41060
41147
|
className: "settings-container",
|
|
41061
41148
|
children: t
|
|
41062
41149
|
})] }),
|
|
41063
|
-
e === "tabbed" && l && /* @__PURE__ */ I(
|
|
41150
|
+
e === "tabbed" && l && /* @__PURE__ */ I(RJ, {
|
|
41064
41151
|
onChange: this.onTabsChange,
|
|
41065
41152
|
contentClassName: "content-container",
|
|
41066
41153
|
indicatorColor: "primary",
|
|
41067
|
-
children: [/* @__PURE__ */ F(
|
|
41154
|
+
children: [/* @__PURE__ */ F(gY, {
|
|
41068
41155
|
title: "Design",
|
|
41069
41156
|
className: "design-container",
|
|
41070
41157
|
children: n
|
|
41071
|
-
}), /* @__PURE__ */ F(
|
|
41158
|
+
}), /* @__PURE__ */ F(gY, {
|
|
41072
41159
|
title: "Settings",
|
|
41073
41160
|
className: "settings-container",
|
|
41074
41161
|
children: t
|
|
41075
41162
|
})]
|
|
41076
41163
|
}),
|
|
41077
|
-
e === "tabbed" && !l && /* @__PURE__ */ F(
|
|
41164
|
+
e === "tabbed" && !l && /* @__PURE__ */ F(gY, {
|
|
41078
41165
|
className: "design-container",
|
|
41079
41166
|
children: n
|
|
41080
41167
|
})
|
|
@@ -41084,18 +41171,18 @@ var rY = Object.defineProperty, iY = (e, t) => {
|
|
|
41084
41171
|
};
|
|
41085
41172
|
//#endregion
|
|
41086
41173
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
41087
|
-
function
|
|
41088
|
-
return
|
|
41174
|
+
function bY() {
|
|
41175
|
+
return bY = Object.assign ? Object.assign.bind() : function(e) {
|
|
41089
41176
|
for (var t = 1; t < arguments.length; t++) {
|
|
41090
41177
|
var n = arguments[t];
|
|
41091
41178
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
41092
41179
|
}
|
|
41093
41180
|
return e;
|
|
41094
|
-
},
|
|
41181
|
+
}, bY.apply(null, arguments);
|
|
41095
41182
|
}
|
|
41096
41183
|
//#endregion
|
|
41097
41184
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
41098
|
-
function
|
|
41185
|
+
function xY(e, t) {
|
|
41099
41186
|
if (e == null) return {};
|
|
41100
41187
|
var n = {};
|
|
41101
41188
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -41106,19 +41193,19 @@ function fY(e, t) {
|
|
|
41106
41193
|
}
|
|
41107
41194
|
//#endregion
|
|
41108
41195
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
41109
|
-
function
|
|
41110
|
-
return
|
|
41196
|
+
function SY(e, t) {
|
|
41197
|
+
return SY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
41111
41198
|
return e.__proto__ = t, e;
|
|
41112
|
-
},
|
|
41199
|
+
}, SY(e, t);
|
|
41113
41200
|
}
|
|
41114
41201
|
//#endregion
|
|
41115
41202
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
41116
|
-
function
|
|
41117
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
41203
|
+
function CY(e, t) {
|
|
41204
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, SY(e, t);
|
|
41118
41205
|
}
|
|
41119
41206
|
//#endregion
|
|
41120
41207
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
41121
|
-
var
|
|
41208
|
+
var wY = (function() {
|
|
41122
41209
|
if (typeof Map < "u") return Map;
|
|
41123
41210
|
function e(e, t) {
|
|
41124
41211
|
var n = -1;
|
|
@@ -41157,34 +41244,34 @@ var hY = (function() {
|
|
|
41157
41244
|
}
|
|
41158
41245
|
}, t;
|
|
41159
41246
|
}();
|
|
41160
|
-
})(),
|
|
41247
|
+
})(), TY = typeof window < "u" && typeof document < "u" && window.document === document, EY = (function() {
|
|
41161
41248
|
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")();
|
|
41162
|
-
})(),
|
|
41163
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
41249
|
+
})(), DY = (function() {
|
|
41250
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(EY) : function(e) {
|
|
41164
41251
|
return setTimeout(function() {
|
|
41165
41252
|
return e(Date.now());
|
|
41166
41253
|
}, 1e3 / 60);
|
|
41167
41254
|
};
|
|
41168
|
-
})(),
|
|
41169
|
-
function
|
|
41255
|
+
})(), OY = 2;
|
|
41256
|
+
function kY(e, t) {
|
|
41170
41257
|
var n = !1, r = !1, i = 0;
|
|
41171
41258
|
function a() {
|
|
41172
41259
|
n && (n = !1, e()), r && s();
|
|
41173
41260
|
}
|
|
41174
41261
|
function o() {
|
|
41175
|
-
|
|
41262
|
+
DY(a);
|
|
41176
41263
|
}
|
|
41177
41264
|
function s() {
|
|
41178
41265
|
var e = Date.now();
|
|
41179
41266
|
if (n) {
|
|
41180
|
-
if (e - i <
|
|
41267
|
+
if (e - i < OY) return;
|
|
41181
41268
|
r = !0;
|
|
41182
41269
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
41183
41270
|
i = e;
|
|
41184
41271
|
}
|
|
41185
41272
|
return s;
|
|
41186
41273
|
}
|
|
41187
|
-
var
|
|
41274
|
+
var AY = 20, jY = [
|
|
41188
41275
|
"top",
|
|
41189
41276
|
"right",
|
|
41190
41277
|
"bottom",
|
|
@@ -41193,9 +41280,9 @@ var xY = 20, SY = [
|
|
|
41193
41280
|
"height",
|
|
41194
41281
|
"size",
|
|
41195
41282
|
"weight"
|
|
41196
|
-
],
|
|
41283
|
+
], MY = typeof MutationObserver < "u", NY = function() {
|
|
41197
41284
|
function e() {
|
|
41198
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
41285
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = kY(this.refresh.bind(this), AY);
|
|
41199
41286
|
}
|
|
41200
41287
|
return e.prototype.addObserver = function(e) {
|
|
41201
41288
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -41212,23 +41299,23 @@ var xY = 20, SY = [
|
|
|
41212
41299
|
return e.broadcastActive();
|
|
41213
41300
|
}), e.length > 0;
|
|
41214
41301
|
}, e.prototype.connect_ = function() {
|
|
41215
|
-
!
|
|
41302
|
+
!TY || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), MY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
41216
41303
|
attributes: !0,
|
|
41217
41304
|
childList: !0,
|
|
41218
41305
|
characterData: !0,
|
|
41219
41306
|
subtree: !0
|
|
41220
41307
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
41221
41308
|
}, e.prototype.disconnect_ = function() {
|
|
41222
|
-
!
|
|
41309
|
+
!TY || !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);
|
|
41223
41310
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
41224
41311
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
41225
|
-
|
|
41312
|
+
jY.some(function(e) {
|
|
41226
41313
|
return !!~n.indexOf(e);
|
|
41227
41314
|
}) && this.refresh();
|
|
41228
41315
|
}, e.getInstance = function() {
|
|
41229
41316
|
return this.instance_ ||= new e(), this.instance_;
|
|
41230
41317
|
}, e.instance_ = null, e;
|
|
41231
|
-
}(),
|
|
41318
|
+
}(), PY = (function(e, t) {
|
|
41232
41319
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
41233
41320
|
var i = r[n];
|
|
41234
41321
|
Object.defineProperty(e, i, {
|
|
@@ -41239,19 +41326,19 @@ var xY = 20, SY = [
|
|
|
41239
41326
|
});
|
|
41240
41327
|
}
|
|
41241
41328
|
return e;
|
|
41242
|
-
}),
|
|
41243
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
41244
|
-
}),
|
|
41245
|
-
function
|
|
41329
|
+
}), FY = (function(e) {
|
|
41330
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || EY;
|
|
41331
|
+
}), IY = KY(0, 0, 0, 0);
|
|
41332
|
+
function LY(e) {
|
|
41246
41333
|
return parseFloat(e) || 0;
|
|
41247
41334
|
}
|
|
41248
|
-
function
|
|
41335
|
+
function RY(e) {
|
|
41249
41336
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
41250
41337
|
var r = e["border-" + n + "-width"];
|
|
41251
|
-
return t +
|
|
41338
|
+
return t + LY(r);
|
|
41252
41339
|
}, 0);
|
|
41253
41340
|
}
|
|
41254
|
-
function
|
|
41341
|
+
function zY(e) {
|
|
41255
41342
|
for (var t = [
|
|
41256
41343
|
"top",
|
|
41257
41344
|
"right",
|
|
@@ -41259,40 +41346,40 @@ function AY(e) {
|
|
|
41259
41346
|
"left"
|
|
41260
41347
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
41261
41348
|
var a = i[r], o = e["padding-" + a];
|
|
41262
|
-
n[a] =
|
|
41349
|
+
n[a] = LY(o);
|
|
41263
41350
|
}
|
|
41264
41351
|
return n;
|
|
41265
41352
|
}
|
|
41266
|
-
function
|
|
41353
|
+
function BY(e) {
|
|
41267
41354
|
var t = e.getBBox();
|
|
41268
|
-
return
|
|
41355
|
+
return KY(0, 0, t.width, t.height);
|
|
41269
41356
|
}
|
|
41270
|
-
function
|
|
41357
|
+
function VY(e) {
|
|
41271
41358
|
var t = e.clientWidth, n = e.clientHeight;
|
|
41272
|
-
if (!t && !n) return
|
|
41273
|
-
var r =
|
|
41274
|
-
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -=
|
|
41359
|
+
if (!t && !n) return IY;
|
|
41360
|
+
var r = FY(e).getComputedStyle(e), i = zY(r), a = i.left + i.right, o = i.top + i.bottom, s = LY(r.width), c = LY(r.height);
|
|
41361
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= RY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= RY(r, "top", "bottom") + o)), !UY(e)) {
|
|
41275
41362
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
41276
41363
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
41277
41364
|
}
|
|
41278
|
-
return
|
|
41365
|
+
return KY(i.left, i.top, s, c);
|
|
41279
41366
|
}
|
|
41280
|
-
var
|
|
41367
|
+
var HY = (function() {
|
|
41281
41368
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
41282
|
-
return e instanceof
|
|
41369
|
+
return e instanceof FY(e).SVGGraphicsElement;
|
|
41283
41370
|
} : function(e) {
|
|
41284
|
-
return e instanceof
|
|
41371
|
+
return e instanceof FY(e).SVGElement && typeof e.getBBox == "function";
|
|
41285
41372
|
};
|
|
41286
41373
|
})();
|
|
41287
|
-
function
|
|
41288
|
-
return e ===
|
|
41374
|
+
function UY(e) {
|
|
41375
|
+
return e === FY(e).document.documentElement;
|
|
41289
41376
|
}
|
|
41290
|
-
function
|
|
41291
|
-
return
|
|
41377
|
+
function WY(e) {
|
|
41378
|
+
return TY ? HY(e) ? BY(e) : VY(e) : IY;
|
|
41292
41379
|
}
|
|
41293
|
-
function
|
|
41380
|
+
function GY(e) {
|
|
41294
41381
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
41295
|
-
return
|
|
41382
|
+
return PY(a, {
|
|
41296
41383
|
x: t,
|
|
41297
41384
|
y: n,
|
|
41298
41385
|
width: r,
|
|
@@ -41303,7 +41390,7 @@ function IY(e) {
|
|
|
41303
41390
|
left: t
|
|
41304
41391
|
}), a;
|
|
41305
41392
|
}
|
|
41306
|
-
function
|
|
41393
|
+
function KY(e, t, n, r) {
|
|
41307
41394
|
return {
|
|
41308
41395
|
x: e,
|
|
41309
41396
|
y: t,
|
|
@@ -41311,42 +41398,42 @@ function LY(e, t, n, r) {
|
|
|
41311
41398
|
height: r
|
|
41312
41399
|
};
|
|
41313
41400
|
}
|
|
41314
|
-
var
|
|
41401
|
+
var qY = function() {
|
|
41315
41402
|
function e(e) {
|
|
41316
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
41403
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = KY(0, 0, 0, 0), this.target = e;
|
|
41317
41404
|
}
|
|
41318
41405
|
return e.prototype.isActive = function() {
|
|
41319
|
-
var e =
|
|
41406
|
+
var e = WY(this.target);
|
|
41320
41407
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
41321
41408
|
}, e.prototype.broadcastRect = function() {
|
|
41322
41409
|
var e = this.contentRect_;
|
|
41323
41410
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
41324
41411
|
}, e;
|
|
41325
|
-
}(),
|
|
41412
|
+
}(), JY = function() {
|
|
41326
41413
|
function e(e, t) {
|
|
41327
|
-
var n =
|
|
41328
|
-
|
|
41414
|
+
var n = GY(t);
|
|
41415
|
+
PY(this, {
|
|
41329
41416
|
target: e,
|
|
41330
41417
|
contentRect: n
|
|
41331
41418
|
});
|
|
41332
41419
|
}
|
|
41333
41420
|
return e;
|
|
41334
|
-
}(),
|
|
41421
|
+
}(), YY = function() {
|
|
41335
41422
|
function e(e, t, n) {
|
|
41336
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
41423
|
+
if (this.activeObservations_ = [], this.observations_ = new wY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
41337
41424
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
41338
41425
|
}
|
|
41339
41426
|
return e.prototype.observe = function(e) {
|
|
41340
41427
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41341
41428
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
41342
|
-
if (!(e instanceof
|
|
41429
|
+
if (!(e instanceof FY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
41343
41430
|
var t = this.observations_;
|
|
41344
|
-
t.has(e) || (t.set(e, new
|
|
41431
|
+
t.has(e) || (t.set(e, new qY(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
41345
41432
|
}
|
|
41346
41433
|
}, e.prototype.unobserve = function(e) {
|
|
41347
41434
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41348
41435
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
41349
|
-
if (!(e instanceof
|
|
41436
|
+
if (!(e instanceof FY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
41350
41437
|
var t = this.observations_;
|
|
41351
41438
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
41352
41439
|
}
|
|
@@ -41360,7 +41447,7 @@ var RY = function() {
|
|
|
41360
41447
|
}, e.prototype.broadcastActive = function() {
|
|
41361
41448
|
if (this.hasActive()) {
|
|
41362
41449
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
41363
|
-
return new
|
|
41450
|
+
return new JY(e.target, e.broadcastRect());
|
|
41364
41451
|
});
|
|
41365
41452
|
this.callback_.call(e, t, e), this.clearActive();
|
|
41366
41453
|
}
|
|
@@ -41369,12 +41456,12 @@ var RY = function() {
|
|
|
41369
41456
|
}, e.prototype.hasActive = function() {
|
|
41370
41457
|
return this.activeObservations_.length > 0;
|
|
41371
41458
|
}, e;
|
|
41372
|
-
}(),
|
|
41459
|
+
}(), XY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new wY(), ZY = function() {
|
|
41373
41460
|
function e(t) {
|
|
41374
41461
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
41375
41462
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
41376
|
-
var n = new
|
|
41377
|
-
|
|
41463
|
+
var n = new YY(t, NY.getInstance(), this);
|
|
41464
|
+
XY.set(this, n);
|
|
41378
41465
|
}
|
|
41379
41466
|
return e;
|
|
41380
41467
|
}();
|
|
@@ -41383,27 +41470,27 @@ var RY = function() {
|
|
|
41383
41470
|
"unobserve",
|
|
41384
41471
|
"disconnect"
|
|
41385
41472
|
].forEach(function(e) {
|
|
41386
|
-
|
|
41473
|
+
ZY.prototype[e] = function() {
|
|
41387
41474
|
var t;
|
|
41388
|
-
return (t =
|
|
41475
|
+
return (t = XY.get(this))[e].apply(t, arguments);
|
|
41389
41476
|
};
|
|
41390
41477
|
});
|
|
41391
|
-
var
|
|
41392
|
-
return
|
|
41393
|
-
})(),
|
|
41478
|
+
var QY = (function() {
|
|
41479
|
+
return EY.ResizeObserver === void 0 ? ZY : EY.ResizeObserver;
|
|
41480
|
+
})(), $Y = [
|
|
41394
41481
|
"client",
|
|
41395
41482
|
"offset",
|
|
41396
41483
|
"scroll",
|
|
41397
41484
|
"bounds",
|
|
41398
41485
|
"margin"
|
|
41399
41486
|
];
|
|
41400
|
-
function
|
|
41487
|
+
function eX(e) {
|
|
41401
41488
|
var t = [];
|
|
41402
|
-
return
|
|
41489
|
+
return $Y.forEach(function(n) {
|
|
41403
41490
|
e[n] && t.push(n);
|
|
41404
41491
|
}), t;
|
|
41405
41492
|
}
|
|
41406
|
-
function
|
|
41493
|
+
function tX(e, t) {
|
|
41407
41494
|
var n = {};
|
|
41408
41495
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
41409
41496
|
top: e.clientTop,
|
|
@@ -41442,14 +41529,14 @@ function KY(e, t) {
|
|
|
41442
41529
|
}
|
|
41443
41530
|
return n;
|
|
41444
41531
|
}
|
|
41445
|
-
function
|
|
41532
|
+
function nX(e) {
|
|
41446
41533
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
41447
41534
|
}
|
|
41448
|
-
function
|
|
41535
|
+
function rX(e) {
|
|
41449
41536
|
return function(t) {
|
|
41450
41537
|
var n, r;
|
|
41451
41538
|
return r = n = /*#__PURE__*/ function(n) {
|
|
41452
|
-
|
|
41539
|
+
CY(r, n);
|
|
41453
41540
|
function r() {
|
|
41454
41541
|
var t, r = [...arguments];
|
|
41455
41542
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -41460,24 +41547,24 @@ function JY(e) {
|
|
|
41460
41547
|
bounds: {},
|
|
41461
41548
|
margin: {}
|
|
41462
41549
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
41463
|
-
var r =
|
|
41550
|
+
var r = tX(t._node, e || eX(t.props));
|
|
41464
41551
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
41465
41552
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
41466
41553
|
});
|
|
41467
41554
|
}, t._handleRef = function(e) {
|
|
41468
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
41555
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = nX(t._node);
|
|
41469
41556
|
var n = t.props.innerRef;
|
|
41470
41557
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
41471
41558
|
}, t;
|
|
41472
41559
|
}
|
|
41473
41560
|
var i = r.prototype;
|
|
41474
41561
|
return i.componentDidMount = function() {
|
|
41475
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
41562
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new QY(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(tX(this._node, e || eX(this.props))));
|
|
41476
41563
|
}, i.componentWillUnmount = function() {
|
|
41477
41564
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
41478
41565
|
}, i.render = function() {
|
|
41479
41566
|
var e = this.props;
|
|
41480
|
-
return e.innerRef, e.onResize, wt(t,
|
|
41567
|
+
return e.innerRef, e.onResize, wt(t, bY({}, xY(e, ["innerRef", "onResize"]), {
|
|
41481
41568
|
measureRef: this._handleRef,
|
|
41482
41569
|
measure: this.measure,
|
|
41483
41570
|
contentRect: this.state.contentRect
|
|
@@ -41494,7 +41581,7 @@ function JY(e) {
|
|
|
41494
41581
|
}, r;
|
|
41495
41582
|
};
|
|
41496
41583
|
}
|
|
41497
|
-
var
|
|
41584
|
+
var iX = rX()(function(e) {
|
|
41498
41585
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
41499
41586
|
return i({
|
|
41500
41587
|
measure: t,
|
|
@@ -41502,10 +41589,10 @@ var YY = JY()(function(e) {
|
|
|
41502
41589
|
contentRect: r
|
|
41503
41590
|
});
|
|
41504
41591
|
});
|
|
41505
|
-
|
|
41592
|
+
iX.displayName = "Measure", iX.propTypes.children = L.default.func;
|
|
41506
41593
|
//#endregion
|
|
41507
41594
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
41508
|
-
var
|
|
41595
|
+
var aX = N("div")(() => ({
|
|
41509
41596
|
backgroundColor: k.white(),
|
|
41510
41597
|
border: `2px solid ${k.border()}`,
|
|
41511
41598
|
display: "flex",
|
|
@@ -41515,7 +41602,7 @@ var XY = N("div")(() => ({
|
|
|
41515
41602
|
maxWidth: "300px",
|
|
41516
41603
|
padding: "20px 4px 4px 20px",
|
|
41517
41604
|
zIndex: 99
|
|
41518
|
-
})),
|
|
41605
|
+
})), oX = class extends xt.Component {
|
|
41519
41606
|
static propTypes = {
|
|
41520
41607
|
className: L.default.string,
|
|
41521
41608
|
children: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]).isRequired
|
|
@@ -41523,19 +41610,19 @@ var XY = N("div")(() => ({
|
|
|
41523
41610
|
static defaultProps = {};
|
|
41524
41611
|
render() {
|
|
41525
41612
|
let { className: e, children: t } = this.props;
|
|
41526
|
-
return /* @__PURE__ */ F(
|
|
41613
|
+
return /* @__PURE__ */ F(aX, {
|
|
41527
41614
|
className: e,
|
|
41528
41615
|
children: t
|
|
41529
41616
|
});
|
|
41530
41617
|
}
|
|
41531
|
-
},
|
|
41618
|
+
}, sX = yt({
|
|
41532
41619
|
typography: { fontFamily: "inherit" },
|
|
41533
41620
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
41534
41621
|
backgroundColor: "#e0e0e0",
|
|
41535
41622
|
color: "#000000",
|
|
41536
41623
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
41537
41624
|
} } } }
|
|
41538
|
-
}),
|
|
41625
|
+
}), cX = class extends xt.Component {
|
|
41539
41626
|
static propTypes = {
|
|
41540
41627
|
children: L.default.oneOfType([
|
|
41541
41628
|
L.default.string,
|
|
@@ -41568,19 +41655,19 @@ var XY = N("div")(() => ({
|
|
|
41568
41655
|
return /* @__PURE__ */ F(de, {
|
|
41569
41656
|
injectFirst: !0,
|
|
41570
41657
|
children: /* @__PURE__ */ F(it, {
|
|
41571
|
-
theme:
|
|
41572
|
-
children: /* @__PURE__ */ F(
|
|
41658
|
+
theme: sX,
|
|
41659
|
+
children: /* @__PURE__ */ F(iX, {
|
|
41573
41660
|
bounds: !0,
|
|
41574
41661
|
onResize: this.onResize,
|
|
41575
41662
|
children: ({ measureRef: e }) => {
|
|
41576
|
-
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(
|
|
41663
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(oX, {
|
|
41577
41664
|
className: "settings-box",
|
|
41578
41665
|
children: n
|
|
41579
41666
|
}) : n;
|
|
41580
41667
|
return /* @__PURE__ */ I("div", {
|
|
41581
41668
|
ref: e,
|
|
41582
41669
|
className: "main-container extraCSSRules",
|
|
41583
|
-
children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(
|
|
41670
|
+
children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(yY, {
|
|
41584
41671
|
mode: o,
|
|
41585
41672
|
secondary: s,
|
|
41586
41673
|
dimensions: i,
|
|
@@ -41592,27 +41679,27 @@ var XY = N("div")(() => ({
|
|
|
41592
41679
|
})
|
|
41593
41680
|
});
|
|
41594
41681
|
}
|
|
41595
|
-
},
|
|
41596
|
-
ConfigLayout: () =>
|
|
41597
|
-
LayoutContents: () =>
|
|
41598
|
-
}),
|
|
41682
|
+
}, lX = rX("bounds")(cX), uX = /* @__PURE__ */ pY({
|
|
41683
|
+
ConfigLayout: () => lX,
|
|
41684
|
+
LayoutContents: () => yY
|
|
41685
|
+
}), dX = N("div")(() => ({
|
|
41599
41686
|
display: "flex",
|
|
41600
41687
|
width: "100%",
|
|
41601
41688
|
justifyContent: "space-between"
|
|
41602
|
-
})),
|
|
41689
|
+
})), fX = N(Qe)(({ theme: e }) => ({
|
|
41603
41690
|
color: "rgba(0, 0, 0, 0.89)",
|
|
41604
41691
|
fontSize: e.typography.fontSize,
|
|
41605
41692
|
paddingTop: e.spacing(2)
|
|
41606
|
-
})),
|
|
41693
|
+
})), pX = N(oc)(({ checked: e }) => ({
|
|
41607
41694
|
"&.Mui-checked .MuiSwitch-thumb": { color: `${k.tertiary()} !important` },
|
|
41608
41695
|
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${k.tertiaryLight()} !important` },
|
|
41609
41696
|
"& .MuiSwitch-track": { backgroundColor: e ? `${k.tertiaryLight()} !important` : void 0 }
|
|
41610
|
-
})),
|
|
41697
|
+
})), mX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I(dX, { children: [/* @__PURE__ */ F(fX, { children: n }), /* @__PURE__ */ F(pX, {
|
|
41611
41698
|
checked: e,
|
|
41612
41699
|
disabled: t,
|
|
41613
41700
|
onChange: (e) => r(e.target.checked)
|
|
41614
41701
|
})] });
|
|
41615
|
-
|
|
41702
|
+
mX.propTypes = {
|
|
41616
41703
|
checked: L.default.bool,
|
|
41617
41704
|
disabled: L.default.bool,
|
|
41618
41705
|
label: L.default.string.isRequired,
|
|
@@ -41620,20 +41707,20 @@ aX.propTypes = {
|
|
|
41620
41707
|
};
|
|
41621
41708
|
//#endregion
|
|
41622
41709
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
41623
|
-
var
|
|
41710
|
+
var hX = N(Pa)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
41624
41711
|
color: "rgba(0, 0, 0, 0.89)",
|
|
41625
41712
|
fontSize: e.typography.fontSize - 2,
|
|
41626
41713
|
left: "-5px",
|
|
41627
41714
|
position: "relative"
|
|
41628
|
-
} })),
|
|
41715
|
+
} })), gX = N(Ls)(() => ({ color: `${k.tertiary()} !important` })), _X = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(hX, {
|
|
41629
41716
|
value: t,
|
|
41630
|
-
control: /* @__PURE__ */ F(
|
|
41717
|
+
control: /* @__PURE__ */ F(gX, {
|
|
41631
41718
|
checked: n,
|
|
41632
41719
|
onChange: r
|
|
41633
41720
|
}),
|
|
41634
41721
|
label: e
|
|
41635
41722
|
});
|
|
41636
|
-
|
|
41723
|
+
_X.propTypes = {
|
|
41637
41724
|
label: L.default.string,
|
|
41638
41725
|
value: L.default.string,
|
|
41639
41726
|
checked: L.default.bool,
|
|
@@ -41641,26 +41728,26 @@ cX.propTypes = {
|
|
|
41641
41728
|
};
|
|
41642
41729
|
//#endregion
|
|
41643
41730
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
41644
|
-
var
|
|
41731
|
+
var vX = (0, Wc.default)("pie-lib:config-ui:settings:panel"), yX = {
|
|
41645
41732
|
label: L.default.string,
|
|
41646
41733
|
value: L.default.string
|
|
41647
|
-
},
|
|
41734
|
+
}, bX = {
|
|
41648
41735
|
label: L.default.string,
|
|
41649
41736
|
value: L.default.string,
|
|
41650
41737
|
onChange: L.default.func
|
|
41651
|
-
},
|
|
41738
|
+
}, xX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(VJ, {
|
|
41652
41739
|
checked: t,
|
|
41653
41740
|
label: e,
|
|
41654
41741
|
onChange: (e) => {
|
|
41655
41742
|
n(e.target.checked);
|
|
41656
41743
|
}
|
|
41657
41744
|
});
|
|
41658
|
-
|
|
41745
|
+
xX.propTypes = {
|
|
41659
41746
|
label: L.default.string,
|
|
41660
41747
|
value: L.default.bool,
|
|
41661
41748
|
onChange: L.default.func
|
|
41662
41749
|
};
|
|
41663
|
-
var
|
|
41750
|
+
var SX = N(uY)(({ theme: e }) => ({
|
|
41664
41751
|
marginTop: e.spacing(.5),
|
|
41665
41752
|
paddingBottom: e.spacing(.5),
|
|
41666
41753
|
width: "100%",
|
|
@@ -41671,29 +41758,29 @@ var pX = N(tY)(({ theme: e }) => ({
|
|
|
41671
41758
|
marginTop: e.spacing(2.5)
|
|
41672
41759
|
},
|
|
41673
41760
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
41674
|
-
})),
|
|
41761
|
+
})), CX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(SX, {
|
|
41675
41762
|
direction: "horizontal",
|
|
41676
|
-
customLabel:
|
|
41763
|
+
customLabel: _X,
|
|
41677
41764
|
value: t,
|
|
41678
41765
|
header: e,
|
|
41679
41766
|
opts: r,
|
|
41680
41767
|
onChange: n
|
|
41681
41768
|
});
|
|
41682
|
-
|
|
41683
|
-
...
|
|
41684
|
-
choices: L.default.arrayOf(L.default.shape(
|
|
41769
|
+
CX.propTypes = {
|
|
41770
|
+
...bX,
|
|
41771
|
+
choices: L.default.arrayOf(L.default.shape(yX))
|
|
41685
41772
|
};
|
|
41686
|
-
var
|
|
41773
|
+
var wX = CX, TX = N("p")(({ theme: e }) => ({
|
|
41687
41774
|
margin: 0,
|
|
41688
41775
|
fontSize: e.typography.fontSize
|
|
41689
|
-
})),
|
|
41776
|
+
})), EX = N(gs)(({ theme: e }) => ({
|
|
41690
41777
|
marginTop: e.spacing(.5),
|
|
41691
41778
|
border: "2px solid lightgrey",
|
|
41692
41779
|
padding: `0 ${e.spacing(1)}`,
|
|
41693
41780
|
borderRadius: "4px"
|
|
41694
|
-
})),
|
|
41781
|
+
})), DX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
41695
41782
|
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
41696
|
-
return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(
|
|
41783
|
+
return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(TX, { children: e }), /* @__PURE__ */ F(EX, {
|
|
41697
41784
|
value: t || r && r[0],
|
|
41698
41785
|
onChange: ({ target: e }) => n(e.value),
|
|
41699
41786
|
input: /* @__PURE__ */ F(Ja, { id: `dropdown-${e}` }),
|
|
@@ -41708,14 +41795,14 @@ var hX = mX, gX = N("p")(({ theme: e }) => ({
|
|
|
41708
41795
|
}, t))
|
|
41709
41796
|
})] });
|
|
41710
41797
|
};
|
|
41711
|
-
|
|
41712
|
-
...
|
|
41798
|
+
DX.propTypes = {
|
|
41799
|
+
...bX,
|
|
41713
41800
|
choices: L.default.arrayOf(L.default.string)
|
|
41714
41801
|
};
|
|
41715
|
-
var
|
|
41802
|
+
var OX = N(cn)(({ theme: e }) => ({
|
|
41716
41803
|
marginRight: e.spacing(3),
|
|
41717
41804
|
marginTop: e.spacing(1)
|
|
41718
|
-
})),
|
|
41805
|
+
})), kX = ({ label: e }) => /* @__PURE__ */ F(OX, { children: e }), AX = N(JJ)(({ theme: e }) => ({
|
|
41719
41806
|
width: "35%",
|
|
41720
41807
|
marginRight: e.spacing(3),
|
|
41721
41808
|
marginTop: e.spacing(1),
|
|
@@ -41726,7 +41813,7 @@ var yX = N(cn)(({ theme: e }) => ({
|
|
|
41726
41813
|
padding: `0 ${e.spacing(1)}`,
|
|
41727
41814
|
backgroundColor: "transparent"
|
|
41728
41815
|
}
|
|
41729
|
-
})),
|
|
41816
|
+
})), jX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(AX, {
|
|
41730
41817
|
variant: "standard",
|
|
41731
41818
|
label: e || "Label",
|
|
41732
41819
|
value: t,
|
|
@@ -41737,45 +41824,45 @@ var yX = N(cn)(({ theme: e }) => ({
|
|
|
41737
41824
|
showErrorWhenOutsideRange: !0,
|
|
41738
41825
|
disableUnderline: !0
|
|
41739
41826
|
});
|
|
41740
|
-
|
|
41741
|
-
...
|
|
41827
|
+
jX.propTypes = {
|
|
41828
|
+
...bX,
|
|
41742
41829
|
suffix: L.default.string,
|
|
41743
41830
|
min: L.default.number,
|
|
41744
41831
|
max: L.default.number,
|
|
41745
41832
|
value: L.default.number
|
|
41746
|
-
},
|
|
41747
|
-
var
|
|
41833
|
+
}, kX.propTypes = { ...bX };
|
|
41834
|
+
var MX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(mX, {
|
|
41748
41835
|
label: t,
|
|
41749
41836
|
checked: !!n,
|
|
41750
41837
|
disabled: !!e,
|
|
41751
41838
|
toggle: r
|
|
41752
41839
|
});
|
|
41753
|
-
|
|
41754
|
-
...
|
|
41840
|
+
MX.propTypes = {
|
|
41841
|
+
...bX,
|
|
41755
41842
|
value: L.default.bool
|
|
41756
41843
|
};
|
|
41757
|
-
var
|
|
41758
|
-
toggle:
|
|
41759
|
-
radio:
|
|
41760
|
-
dropdown:
|
|
41761
|
-
numberField:
|
|
41762
|
-
checkbox:
|
|
41763
|
-
textField:
|
|
41764
|
-
},
|
|
41844
|
+
var NX = {
|
|
41845
|
+
toggle: MX,
|
|
41846
|
+
radio: wX,
|
|
41847
|
+
dropdown: DX,
|
|
41848
|
+
numberField: jX,
|
|
41849
|
+
checkbox: xX,
|
|
41850
|
+
textField: kX
|
|
41851
|
+
}, PX = N("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), FX = N("div")(({ theme: e }) => ({
|
|
41765
41852
|
color: "#495B8F",
|
|
41766
41853
|
fontSize: e.typography.fontSize + 2,
|
|
41767
41854
|
fontWeight: 600,
|
|
41768
41855
|
marginBottom: e.spacing(1)
|
|
41769
|
-
})),
|
|
41856
|
+
})), IX = N("p")(({ theme: e }) => ({
|
|
41770
41857
|
fontSize: e.typography.fontSize,
|
|
41771
41858
|
marginBottom: 0
|
|
41772
|
-
})),
|
|
41859
|
+
})), LX = (e) => {
|
|
41773
41860
|
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
41774
|
-
let { isConfigProperty: o, ...s } =
|
|
41861
|
+
let { isConfigProperty: o, ...s } = v(e, r || n), c = v(o ? i : t, n), l = {
|
|
41775
41862
|
...s,
|
|
41776
41863
|
key: n,
|
|
41777
41864
|
value: c
|
|
41778
|
-
}, u =
|
|
41865
|
+
}, u = NX[l.type];
|
|
41779
41866
|
return /* @__PURE__ */ F(u, {
|
|
41780
41867
|
...l,
|
|
41781
41868
|
onChange: (e) => a(n, e, o)
|
|
@@ -41784,18 +41871,18 @@ var wX = {
|
|
|
41784
41871
|
let n = e[t];
|
|
41785
41872
|
if (!n) return null;
|
|
41786
41873
|
let { type: r, label: i, fields: a, choices: s } = n;
|
|
41787
|
-
return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(
|
|
41874
|
+
return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(IX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
|
|
41788
41875
|
};
|
|
41789
|
-
return /* @__PURE__ */ I(
|
|
41876
|
+
return /* @__PURE__ */ I(PX, { children: [/* @__PURE__ */ F(FX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
41790
41877
|
};
|
|
41791
|
-
|
|
41878
|
+
LX.propTypes = {
|
|
41792
41879
|
model: L.default.object,
|
|
41793
41880
|
label: L.default.string,
|
|
41794
41881
|
group: L.default.object,
|
|
41795
41882
|
configuration: L.default.object,
|
|
41796
41883
|
onChange: L.default.func
|
|
41797
41884
|
};
|
|
41798
|
-
var
|
|
41885
|
+
var RX = class extends xt.Component {
|
|
41799
41886
|
static propTypes = {
|
|
41800
41887
|
model: L.default.object,
|
|
41801
41888
|
configuration: L.default.object,
|
|
@@ -41809,13 +41896,13 @@ var kX = class extends xt.Component {
|
|
|
41809
41896
|
onChangeConfiguration: () => {}
|
|
41810
41897
|
};
|
|
41811
41898
|
change = (e, t, n = !1) => {
|
|
41812
|
-
|
|
41899
|
+
vX("[changeModel]", e, t);
|
|
41813
41900
|
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
|
|
41814
41901
|
n ? (d(o, e, t), i(o, e)) : (d(a, e, t), r(a, e));
|
|
41815
41902
|
};
|
|
41816
41903
|
render() {
|
|
41817
41904
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
41818
|
-
return
|
|
41905
|
+
return vX("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(LX, {
|
|
41819
41906
|
label: r,
|
|
41820
41907
|
model: t,
|
|
41821
41908
|
configuration: n,
|
|
@@ -41823,59 +41910,59 @@ var kX = class extends xt.Component {
|
|
|
41823
41910
|
onChange: this.change
|
|
41824
41911
|
}, r) : null), r] });
|
|
41825
41912
|
}
|
|
41826
|
-
},
|
|
41827
|
-
Panel: () =>
|
|
41828
|
-
checkbox: () =>
|
|
41829
|
-
checkboxes: () =>
|
|
41830
|
-
dropdown: () =>
|
|
41831
|
-
numberField: () =>
|
|
41832
|
-
numberFields: () =>
|
|
41833
|
-
radio: () =>
|
|
41834
|
-
textField: () =>
|
|
41835
|
-
toggle: () =>
|
|
41836
|
-
}),
|
|
41913
|
+
}, zX = /* @__PURE__ */ pY({
|
|
41914
|
+
Panel: () => RX,
|
|
41915
|
+
checkbox: () => qX,
|
|
41916
|
+
checkboxes: () => JX,
|
|
41917
|
+
dropdown: () => WX,
|
|
41918
|
+
numberField: () => GX,
|
|
41919
|
+
numberFields: () => KX,
|
|
41920
|
+
radio: () => UX,
|
|
41921
|
+
textField: () => BX,
|
|
41922
|
+
toggle: () => VX
|
|
41923
|
+
}), BX = (e, t = !0) => ({
|
|
41837
41924
|
label: e,
|
|
41838
41925
|
type: "textField",
|
|
41839
41926
|
isConfigProperty: t
|
|
41840
|
-
}),
|
|
41927
|
+
}), VX = (e, t = !1, n = !1) => ({
|
|
41841
41928
|
type: "toggle",
|
|
41842
41929
|
label: e,
|
|
41843
41930
|
isConfigProperty: t,
|
|
41844
41931
|
disabled: n
|
|
41845
|
-
}),
|
|
41932
|
+
}), HX = (e) => typeof e == "string" ? {
|
|
41846
41933
|
label: e,
|
|
41847
41934
|
value: e
|
|
41848
|
-
} : e,
|
|
41935
|
+
} : e, UX = function() {
|
|
41849
41936
|
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
41850
41937
|
return {
|
|
41851
41938
|
type: "radio",
|
|
41852
41939
|
label: e,
|
|
41853
|
-
choices: t && t.map((e) =>
|
|
41940
|
+
choices: t && t.map((e) => HX(e)),
|
|
41854
41941
|
isConfigProperty: n
|
|
41855
41942
|
};
|
|
41856
|
-
},
|
|
41943
|
+
}, WX = (e, t, n = !1) => ({
|
|
41857
41944
|
type: "dropdown",
|
|
41858
41945
|
label: e,
|
|
41859
41946
|
choices: t,
|
|
41860
41947
|
isConfigProperty: n
|
|
41861
|
-
}),
|
|
41948
|
+
}), GX = (e, t, n = !1) => ({
|
|
41862
41949
|
...t,
|
|
41863
41950
|
label: e,
|
|
41864
41951
|
type: "numberField",
|
|
41865
41952
|
isConfigProperty: n
|
|
41866
|
-
}),
|
|
41867
|
-
t[e] =
|
|
41953
|
+
}), KX = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
41954
|
+
t[e] = GX(t[e].label, t[e], n);
|
|
41868
41955
|
}), {
|
|
41869
41956
|
type: "numberFields",
|
|
41870
41957
|
label: e,
|
|
41871
41958
|
fields: t
|
|
41872
|
-
}),
|
|
41959
|
+
}), qX = (e, t, n = !1) => ({
|
|
41873
41960
|
...t,
|
|
41874
41961
|
label: e,
|
|
41875
41962
|
type: "checkbox",
|
|
41876
41963
|
isConfigProperty: n
|
|
41877
|
-
}),
|
|
41878
|
-
t[e] =
|
|
41964
|
+
}), JX = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
41965
|
+
t[e] = qX(t[e].label, t[e], n);
|
|
41879
41966
|
}), {
|
|
41880
41967
|
type: "checkboxes",
|
|
41881
41968
|
label: e,
|
|
@@ -41883,42 +41970,42 @@ var kX = class extends xt.Component {
|
|
|
41883
41970
|
});
|
|
41884
41971
|
//#endregion
|
|
41885
41972
|
//#region ../../lib-react/config-ui/dist/index.js
|
|
41886
|
-
function
|
|
41973
|
+
function YX(e) {
|
|
41887
41974
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
41888
41975
|
}
|
|
41889
|
-
function
|
|
41890
|
-
return !e ||
|
|
41976
|
+
function XX(e, t) {
|
|
41977
|
+
return !e || YX(e) ? e : YX(e.default) ? e.default : t && YX(e[t]) ? e[t] : t && YX(e[t]?.default) ? e[t].default : e;
|
|
41891
41978
|
}
|
|
41892
|
-
var
|
|
41893
|
-
N(
|
|
41894
|
-
var
|
|
41979
|
+
var ZX = XX(Ie, "InputContainer") || XX(eZ.InputContainer, "InputContainer"), QX = tt, $X = QX.default, eZ = $X && typeof $X == "object" ? $X : QX, tZ = N(JJ)(({ theme: e }) => ({ marginLeft: e.spacing(1) }));
|
|
41980
|
+
N(JJ)({ maxWidth: "100px" });
|
|
41981
|
+
var nZ = (e) => /* @__PURE__ */ F(tZ, {
|
|
41895
41982
|
...e,
|
|
41896
41983
|
variant: "outlined"
|
|
41897
|
-
}),
|
|
41984
|
+
}), rZ = Fe(/*#__PURE__*/ F("path", { d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4" }), "HelpOutline"), iZ = N("div")({
|
|
41898
41985
|
display: "flex",
|
|
41899
41986
|
justifyContent: "space-between"
|
|
41900
|
-
}),
|
|
41987
|
+
}), aZ = N("div")({
|
|
41901
41988
|
display: "flex",
|
|
41902
41989
|
alignItems: "center"
|
|
41903
|
-
}),
|
|
41990
|
+
}), oZ = N(en)({
|
|
41904
41991
|
margin: 0,
|
|
41905
41992
|
padding: 0
|
|
41906
|
-
}),
|
|
41993
|
+
}), sZ = (e) => {
|
|
41907
41994
|
let { header: t, children: n, mini: r, info: i } = e;
|
|
41908
|
-
return /* @__PURE__ */ I(
|
|
41995
|
+
return /* @__PURE__ */ I(iZ, { children: [/* @__PURE__ */ I(aZ, { children: [/* @__PURE__ */ F(cn, {
|
|
41909
41996
|
variant: r ? "subheading" : "h5",
|
|
41910
41997
|
children: t
|
|
41911
41998
|
}), i] }), n && /* @__PURE__ */ F(Qs, {
|
|
41912
41999
|
title: n,
|
|
41913
42000
|
slotProps: { tooltip: { sx: (e) => ({ fontSize: e.typography.fontSize - 2 }) } },
|
|
41914
|
-
children: /* @__PURE__ */ F(
|
|
42001
|
+
children: /* @__PURE__ */ F(oZ, {
|
|
41915
42002
|
"aria-label": "Delete",
|
|
41916
42003
|
size: "large",
|
|
41917
|
-
children: /* @__PURE__ */ F(
|
|
42004
|
+
children: /* @__PURE__ */ F(rZ, {})
|
|
41918
42005
|
})
|
|
41919
42006
|
})] });
|
|
41920
42007
|
};
|
|
41921
|
-
|
|
42008
|
+
sZ.propTypes = {
|
|
41922
42009
|
mini: L.default.bool,
|
|
41923
42010
|
header: L.default.string,
|
|
41924
42011
|
children: L.default.node,
|
|
@@ -41926,24 +42013,24 @@ QX.propTypes = {
|
|
|
41926
42013
|
};
|
|
41927
42014
|
//#endregion
|
|
41928
42015
|
//#region src/author/size.tsx
|
|
41929
|
-
var
|
|
42016
|
+
var cZ = N("div")({
|
|
41930
42017
|
display: "flex",
|
|
41931
42018
|
alignItems: "center",
|
|
41932
42019
|
gap: "10px"
|
|
41933
|
-
}),
|
|
42020
|
+
}), lZ = N("div")({
|
|
41934
42021
|
display: "flex",
|
|
41935
42022
|
flexFlow: "column"
|
|
41936
|
-
}),
|
|
42023
|
+
}), uZ = N("label")({
|
|
41937
42024
|
fontSize: "small",
|
|
41938
42025
|
color: "gray"
|
|
41939
|
-
}),
|
|
42026
|
+
}), dZ = N(nY)({ "& input": { cursor: "default" } }), fZ = (e) => {
|
|
41940
42027
|
let { size: t = { width: 500 }, min: n = 150, max: r = 800, step: i = 20, onChange: a } = e;
|
|
41941
|
-
return /* @__PURE__ */ I(
|
|
42028
|
+
return /* @__PURE__ */ I(cZ, { children: [/* @__PURE__ */ I(lZ, { children: [/* @__PURE__ */ F("label", { children: "Width (px)" }), /* @__PURE__ */ I(uZ, { children: [
|
|
41942
42029
|
"Min ",
|
|
41943
42030
|
n,
|
|
41944
42031
|
", Max ",
|
|
41945
42032
|
r
|
|
41946
|
-
] })] }), /* @__PURE__ */ F(
|
|
42033
|
+
] })] }), /* @__PURE__ */ F(dZ, {
|
|
41947
42034
|
value: t.width,
|
|
41948
42035
|
min: n,
|
|
41949
42036
|
max: r,
|
|
@@ -41956,7 +42043,7 @@ var $X = N("div")({
|
|
|
41956
42043
|
variant: "outlined"
|
|
41957
42044
|
})] });
|
|
41958
42045
|
};
|
|
41959
|
-
|
|
42046
|
+
fZ.propTypes = {
|
|
41960
42047
|
size: L.default.shape({
|
|
41961
42048
|
width: L.default.number,
|
|
41962
42049
|
height: L.default.number
|
|
@@ -41968,18 +42055,18 @@ rZ.propTypes = {
|
|
|
41968
42055
|
};
|
|
41969
42056
|
//#endregion
|
|
41970
42057
|
//#region src/author/domain.tsx
|
|
41971
|
-
var
|
|
42058
|
+
var pZ = "domainBegin", mZ = "domainEnd", hZ = N("div")({
|
|
41972
42059
|
display: "flex",
|
|
41973
42060
|
gap: "20px"
|
|
41974
|
-
}),
|
|
42061
|
+
}), gZ = N("div")({
|
|
41975
42062
|
display: "flex",
|
|
41976
42063
|
alignItems: "center",
|
|
41977
42064
|
gap: "10px",
|
|
41978
42065
|
".MuiInputBase-input": { padding: "16.5px 14px !important" }
|
|
41979
|
-
}),
|
|
42066
|
+
}), _Z = (e) => e.min <= e.max ? e : {
|
|
41980
42067
|
min: e.max,
|
|
41981
42068
|
max: e.min
|
|
41982
|
-
},
|
|
42069
|
+
}, vZ = class extends xt.Component {
|
|
41983
42070
|
constructor(e) {
|
|
41984
42071
|
super(e), this.changeMin = this.change.bind(this, "min"), this.changeMax = this.change.bind(this, "max");
|
|
41985
42072
|
}
|
|
@@ -41988,26 +42075,26 @@ var iZ = "domainBegin", aZ = "domainEnd", oZ = N("div")({
|
|
|
41988
42075
|
i = e === "min" && n === this.props.domain.max || e === "max" && n === this.props.domain.min ? { ...this.props.domain } : {
|
|
41989
42076
|
...this.props.domain,
|
|
41990
42077
|
[e]: n
|
|
41991
|
-
}, r(
|
|
42078
|
+
}, r(_Z(i));
|
|
41992
42079
|
}
|
|
41993
42080
|
render() {
|
|
41994
42081
|
let { domain: e } = this.props;
|
|
41995
|
-
return /* @__PURE__ */ I(
|
|
42082
|
+
return /* @__PURE__ */ I(hZ, { children: [/* @__PURE__ */ I(gZ, { children: [/* @__PURE__ */ F("label", { children: "Min Value" }), /* @__PURE__ */ F(nZ, {
|
|
41996
42083
|
min: -1e5,
|
|
41997
42084
|
max: 99999,
|
|
41998
42085
|
value: e.min,
|
|
41999
|
-
name:
|
|
42086
|
+
name: pZ,
|
|
42000
42087
|
onChange: this.changeMin
|
|
42001
|
-
})] }), /* @__PURE__ */ I(
|
|
42088
|
+
})] }), /* @__PURE__ */ I(gZ, { children: [/* @__PURE__ */ F("label", { children: "Max Value" }), /* @__PURE__ */ F(nZ, {
|
|
42002
42089
|
min: -99999,
|
|
42003
42090
|
max: 1e5,
|
|
42004
42091
|
value: e.max,
|
|
42005
|
-
name:
|
|
42092
|
+
name: mZ,
|
|
42006
42093
|
onChange: this.changeMax
|
|
42007
42094
|
})] })] });
|
|
42008
42095
|
}
|
|
42009
42096
|
};
|
|
42010
|
-
|
|
42097
|
+
vZ.propTypes = {
|
|
42011
42098
|
domain: L.default.shape({
|
|
42012
42099
|
min: L.default.number,
|
|
42013
42100
|
max: L.default.number
|
|
@@ -42016,11 +42103,11 @@ lZ.propTypes = {
|
|
|
42016
42103
|
};
|
|
42017
42104
|
//#endregion
|
|
42018
42105
|
//#region src/author/arrows.tsx
|
|
42019
|
-
var
|
|
42106
|
+
var yZ = N("div")({
|
|
42020
42107
|
display: "flex",
|
|
42021
42108
|
alignItems: "center",
|
|
42022
42109
|
gap: "10px"
|
|
42023
|
-
}),
|
|
42110
|
+
}), bZ = N("div")(({ theme: e }) => ({
|
|
42024
42111
|
paddingTop: e.spacing(2),
|
|
42025
42112
|
display: "flex",
|
|
42026
42113
|
gap: e.spacing(2),
|
|
@@ -42043,7 +42130,7 @@ var uZ = N("div")({
|
|
|
42043
42130
|
width: "auto",
|
|
42044
42131
|
flexShrink: 0
|
|
42045
42132
|
}
|
|
42046
|
-
})),
|
|
42133
|
+
})), xZ = class extends xt.Component {
|
|
42047
42134
|
static propTypes = {
|
|
42048
42135
|
arrows: L.default.shape({
|
|
42049
42136
|
left: L.default.bool,
|
|
@@ -42066,20 +42153,20 @@ var uZ = N("div")({
|
|
|
42066
42153
|
}
|
|
42067
42154
|
render() {
|
|
42068
42155
|
let { arrows: e } = this.props;
|
|
42069
|
-
return /* @__PURE__ */ I(
|
|
42156
|
+
return /* @__PURE__ */ I(yZ, { children: [/* @__PURE__ */ F("label", { children: "Arrows" }), /* @__PURE__ */ I(bZ, { children: [/* @__PURE__ */ F(PJ, {
|
|
42070
42157
|
label: "Left",
|
|
42071
42158
|
checked: e.left,
|
|
42072
42159
|
onChange: this.changeLeft
|
|
42073
|
-
}), /* @__PURE__ */ F(
|
|
42160
|
+
}), /* @__PURE__ */ F(PJ, {
|
|
42074
42161
|
label: "Right",
|
|
42075
42162
|
checked: e.right,
|
|
42076
42163
|
onChange: this.changeRight
|
|
42077
42164
|
})] })] });
|
|
42078
42165
|
}
|
|
42079
|
-
}, { Point:
|
|
42166
|
+
}, { Point: SZ } = S, CZ = N("div")(({ theme: e }) => ({
|
|
42080
42167
|
paddingTop: e.spacing(2.5),
|
|
42081
42168
|
"& > :first-child": { marginRight: e.spacing(1) }
|
|
42082
|
-
})),
|
|
42169
|
+
})), wZ = class e extends xt.Component {
|
|
42083
42170
|
static propTypes = {
|
|
42084
42171
|
onSelectionChange: L.default.func,
|
|
42085
42172
|
selection: L.default.object,
|
|
@@ -42105,11 +42192,11 @@ var uZ = N("div")({
|
|
|
42105
42192
|
}
|
|
42106
42193
|
render() {
|
|
42107
42194
|
let { availableTools: e, hideButtons: t = !1 } = this.props;
|
|
42108
|
-
return /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", { children: (e || []).map((e) => /* @__PURE__ */ F(
|
|
42195
|
+
return /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", { children: (e || []).map((e) => /* @__PURE__ */ F(SZ, {
|
|
42109
42196
|
iconKey: e.toLowerCase(),
|
|
42110
42197
|
onClick: this.toggle.bind(this, e),
|
|
42111
42198
|
active: this.active(e)
|
|
42112
|
-
}, e.toLowerCase())) }), /* @__PURE__ */ I(
|
|
42199
|
+
}, e.toLowerCase())) }), /* @__PURE__ */ I(CZ, {
|
|
42113
42200
|
hidden: t,
|
|
42114
42201
|
children: [/* @__PURE__ */ F(Ce, {
|
|
42115
42202
|
variant: "outlined",
|
|
@@ -42125,7 +42212,7 @@ var uZ = N("div")({
|
|
|
42125
42212
|
})] });
|
|
42126
42213
|
}
|
|
42127
42214
|
};
|
|
42128
|
-
|
|
42215
|
+
wZ.types = [
|
|
42129
42216
|
"PF",
|
|
42130
42217
|
"LFF",
|
|
42131
42218
|
"LEF",
|
|
@@ -42138,102 +42225,102 @@ hZ.types = [
|
|
|
42138
42225
|
];
|
|
42139
42226
|
//#endregion
|
|
42140
42227
|
//#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Info.js
|
|
42141
|
-
var
|
|
42228
|
+
var TZ = Fe(/*#__PURE__*/ F("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"), EZ = N("div")({ display: "flex" }), DZ = N("div")({
|
|
42142
42229
|
display: "flex",
|
|
42143
42230
|
flexFlow: "column",
|
|
42144
42231
|
gap: "10px",
|
|
42145
42232
|
width: "65%"
|
|
42146
|
-
}),
|
|
42233
|
+
}), OZ = N("div")({
|
|
42147
42234
|
display: "flex",
|
|
42148
42235
|
flexFlow: "column",
|
|
42149
42236
|
gap: "10px"
|
|
42150
|
-
}),
|
|
42237
|
+
}), kZ = N("tr")({
|
|
42151
42238
|
display: "flex",
|
|
42152
42239
|
alignItems: "center",
|
|
42153
42240
|
paddingTop: "5px",
|
|
42154
42241
|
paddingBottom: "5px"
|
|
42155
|
-
}),
|
|
42242
|
+
}), AZ = N("table")({
|
|
42156
42243
|
tableLayout: "fixed",
|
|
42157
42244
|
width: "100%"
|
|
42158
|
-
}),
|
|
42245
|
+
}), jZ = N("td")({ width: "35%" }), MZ = N(Ls)({ color: `${k.tertiary()} !important` }), NZ = N(nY)({ "& input": {
|
|
42159
42246
|
maxWidth: "145px",
|
|
42160
42247
|
cursor: "default"
|
|
42161
|
-
} }),
|
|
42248
|
+
} }), PZ = [
|
|
42162
42249
|
"Integer",
|
|
42163
42250
|
"Fraction",
|
|
42164
42251
|
"Decimal"
|
|
42165
|
-
],
|
|
42166
|
-
let { ticks:
|
|
42167
|
-
return /* @__PURE__ */ I(
|
|
42252
|
+
], FZ = (e) => {
|
|
42253
|
+
let { ticks: t, onChange: a, minorLimits: o, minorValues: s, majorValues: c } = e, l = r(u(t.major)), d = l.d === 1 ? l.n.toString() : l.n + "/" + l.d;
|
|
42254
|
+
return /* @__PURE__ */ I(EZ, { children: [/* @__PURE__ */ I(DZ, { children: [/* @__PURE__ */ F("label", { children: "Tick Interval" }), /* @__PURE__ */ F(Bs, {
|
|
42168
42255
|
"aria-label": "tick-interval-type",
|
|
42169
42256
|
name: "tickIntervalType",
|
|
42170
|
-
value:
|
|
42171
|
-
onChange: (e,
|
|
42172
|
-
|
|
42257
|
+
value: t.tickIntervalType,
|
|
42258
|
+
onChange: (e, n) => {
|
|
42259
|
+
PZ.includes(n) && (n === "Integer" ? t.minor = t.integerTick : n === "Decimal" ? t.minor = t.decimalTick : n === "Fraction" && (t.minor = u(r(t.fractionTick))), t.tickIntervalType = n, a({ ticks: t }));
|
|
42173
42260
|
},
|
|
42174
|
-
children: /* @__PURE__ */ F(
|
|
42175
|
-
/* @__PURE__ */ I(
|
|
42261
|
+
children: /* @__PURE__ */ F(AZ, { children: /* @__PURE__ */ I("tbody", { children: [
|
|
42262
|
+
/* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
|
|
42176
42263
|
value: "Integer",
|
|
42177
|
-
control: /* @__PURE__ */ F(
|
|
42264
|
+
control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Integer" }),
|
|
42178
42265
|
label: "Integer",
|
|
42179
|
-
disabled:
|
|
42180
|
-
}) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(
|
|
42181
|
-
value:
|
|
42182
|
-
min: u(
|
|
42183
|
-
max: u(
|
|
42266
|
+
disabled: o.max < 1
|
|
42267
|
+
}) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
|
|
42268
|
+
value: t.integerTick,
|
|
42269
|
+
min: u(n(o.min)),
|
|
42270
|
+
max: u(i(o.max)),
|
|
42184
42271
|
step: 1,
|
|
42185
42272
|
onlyIntegersAllowed: !0,
|
|
42186
|
-
onChange: (e,
|
|
42187
|
-
|
|
42273
|
+
onChange: (e, n) => {
|
|
42274
|
+
t.tickIntervalType === "Integer" && (t.integerTick = n, t.minor = n, a({ ticks: t }));
|
|
42188
42275
|
},
|
|
42189
42276
|
variant: "outlined",
|
|
42190
42277
|
type: "number",
|
|
42191
|
-
disabled:
|
|
42192
|
-
},
|
|
42193
|
-
/* @__PURE__ */ I(
|
|
42278
|
+
disabled: t.tickIntervalType !== "Integer" || o.max < 1
|
|
42279
|
+
}, t.tickIntervalType !== "Integer" || o.max < 1 ? "integerDisabled" : "integerEnabled") })] }),
|
|
42280
|
+
/* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
|
|
42194
42281
|
value: "Fraction",
|
|
42195
|
-
control: /* @__PURE__ */ F(
|
|
42282
|
+
control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Fraction" }),
|
|
42196
42283
|
label: "Unit Fraction",
|
|
42197
|
-
disabled:
|
|
42198
|
-
}) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(
|
|
42199
|
-
value:
|
|
42200
|
-
customValues:
|
|
42201
|
-
onChange: (e,
|
|
42202
|
-
|
|
42284
|
+
disabled: s.fraction.length === 0
|
|
42285
|
+
}) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
|
|
42286
|
+
value: t.fractionTick,
|
|
42287
|
+
customValues: s.fraction,
|
|
42288
|
+
onChange: (e, n) => {
|
|
42289
|
+
t.tickIntervalType === "Fraction" && (t.fractionTick = n, t.minor = u(r(n)), a({ ticks: t }));
|
|
42203
42290
|
},
|
|
42204
42291
|
variant: "outlined",
|
|
42205
42292
|
type: "text",
|
|
42206
|
-
disabled:
|
|
42207
|
-
},
|
|
42208
|
-
/* @__PURE__ */ I(
|
|
42293
|
+
disabled: t.tickIntervalType !== "Fraction" || s.fraction.length === 0
|
|
42294
|
+
}, t.tickIntervalType !== "Fraction" || s.fraction.length === 0 ? "fractionDisabled" : "fractionEnabled") })] }),
|
|
42295
|
+
/* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
|
|
42209
42296
|
value: "Decimal",
|
|
42210
|
-
control: /* @__PURE__ */ F(
|
|
42297
|
+
control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Decimal" }),
|
|
42211
42298
|
label: "Decimal",
|
|
42212
|
-
disabled:
|
|
42213
|
-
}) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(
|
|
42214
|
-
value:
|
|
42215
|
-
customValues:
|
|
42216
|
-
onChange: (e,
|
|
42217
|
-
|
|
42299
|
+
disabled: s.decimal.length === 0
|
|
42300
|
+
}) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
|
|
42301
|
+
value: t.decimalTick,
|
|
42302
|
+
customValues: s.decimal,
|
|
42303
|
+
onChange: (e, n) => {
|
|
42304
|
+
t.tickIntervalType === "Decimal" && (t.decimalTick = n, t.minor = n, a({ ticks: t }));
|
|
42218
42305
|
},
|
|
42219
42306
|
variant: "outlined",
|
|
42220
42307
|
type: "number",
|
|
42221
|
-
disabled:
|
|
42222
|
-
},
|
|
42308
|
+
disabled: t.tickIntervalType !== "Decimal" || s.decimal.length === 0
|
|
42309
|
+
}, t.tickIntervalType !== "Decimal" || s.decimal.length === 0 ? "decimalDisabled" : "decimalEnabled") })] })
|
|
42223
42310
|
] }) })
|
|
42224
|
-
})] }), /* @__PURE__ */ I(
|
|
42225
|
-
value:
|
|
42311
|
+
})] }), /* @__PURE__ */ I(OZ, { children: [/* @__PURE__ */ F("label", { children: "Label Interval" }), /* @__PURE__ */ F(NZ, {
|
|
42312
|
+
value: t.tickIntervalType === "Fraction" ? d : t.major,
|
|
42226
42313
|
variant: "outlined",
|
|
42227
|
-
customValues:
|
|
42228
|
-
type:
|
|
42229
|
-
onChange:
|
|
42230
|
-
|
|
42231
|
-
} : (e,
|
|
42232
|
-
(
|
|
42314
|
+
customValues: t.tickIntervalType === "Fraction" ? c.fraction : c.decimal,
|
|
42315
|
+
type: t.tickIntervalType === "Fraction" ? "text" : "number",
|
|
42316
|
+
onChange: t.tickIntervalType === "Fraction" ? (e, n) => {
|
|
42317
|
+
t.tickIntervalType === "Fraction" && (t.major = u(r(n)), a({ ticks: t }));
|
|
42318
|
+
} : (e, n) => {
|
|
42319
|
+
(t.tickIntervalType === "Decimal" || t.tickIntervalType === "Integer") && (t.major = n, a({ ticks: t }));
|
|
42233
42320
|
}
|
|
42234
42321
|
})] })] });
|
|
42235
42322
|
};
|
|
42236
|
-
|
|
42323
|
+
FZ.propTypes = {
|
|
42237
42324
|
onChange: L.default.func,
|
|
42238
42325
|
ticks: L.default.object,
|
|
42239
42326
|
minorLimits: L.default.object,
|
|
@@ -42242,7 +42329,7 @@ EZ.propTypes = {
|
|
|
42242
42329
|
};
|
|
42243
42330
|
//#endregion
|
|
42244
42331
|
//#region src/author/defaults.ts
|
|
42245
|
-
var
|
|
42332
|
+
var IZ = {
|
|
42246
42333
|
correctResponse: [],
|
|
42247
42334
|
feedback: {
|
|
42248
42335
|
correct: {
|
|
@@ -42288,7 +42375,7 @@ var DZ = {
|
|
|
42288
42375
|
teacherInstructionsEnabled: !0,
|
|
42289
42376
|
toolbarEditorPosition: "bottom",
|
|
42290
42377
|
widthEnabled: !0
|
|
42291
|
-
},
|
|
42378
|
+
}, LZ = {
|
|
42292
42379
|
baseInputConfiguration: {
|
|
42293
42380
|
h3: { disabled: !0 },
|
|
42294
42381
|
audio: { disabled: !1 },
|
|
@@ -42382,7 +42469,7 @@ var DZ = {
|
|
|
42382
42469
|
"REP"
|
|
42383
42470
|
],
|
|
42384
42471
|
settingsPanelDisabled: !1
|
|
42385
|
-
},
|
|
42472
|
+
}, RZ = () => "Validation requirements:\nThe correct answer should include at least one number line object.", zZ = (e) => ({
|
|
42386
42473
|
...e,
|
|
42387
42474
|
feedback: void 0,
|
|
42388
42475
|
prompt: void 0,
|
|
@@ -42393,35 +42480,35 @@ var DZ = {
|
|
|
42393
42480
|
disabled: !0
|
|
42394
42481
|
},
|
|
42395
42482
|
correctResponse: void 0
|
|
42396
|
-
}), { lineIsSwitched:
|
|
42483
|
+
}), { lineIsSwitched: BZ, switchGraphLine: VZ, toGraphFormat: HZ, toSessionFormat: UZ } = ye, { Panel: WZ, toggle: GZ } = zX, KZ = {}, qZ = {}, JZ = {}, YZ = N(nZ)({
|
|
42397
42484
|
width: "150px",
|
|
42398
42485
|
".MuiInputBase-input": { padding: "16.5px 14px" }
|
|
42399
|
-
}),
|
|
42486
|
+
}), XZ = N("div")(({ theme: e }) => ({
|
|
42400
42487
|
display: "flex",
|
|
42401
42488
|
flexWrap: "wrap",
|
|
42402
42489
|
"& > *": { paddingRight: e.spacing(2) }
|
|
42403
|
-
})),
|
|
42490
|
+
})), ZZ = N("div")(({ theme: e }) => ({ margin: `${e.spacing(2.5)} 0` })), QZ = N(ZX)(({ theme: e }) => ({
|
|
42404
42491
|
paddingTop: e.spacing(2),
|
|
42405
42492
|
marginBottom: e.spacing(2),
|
|
42406
42493
|
width: "100%"
|
|
42407
|
-
})),
|
|
42494
|
+
})), $Z = N(WJ)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), eQ = N("div")(({ theme: e }) => ({
|
|
42408
42495
|
fontSize: e.typography.fontSize - 2,
|
|
42409
42496
|
color: e.palette.error.main,
|
|
42410
42497
|
paddingTop: e.spacing(1)
|
|
42411
|
-
})),
|
|
42498
|
+
})), tQ = N("div")({
|
|
42412
42499
|
display: "flex",
|
|
42413
42500
|
alignItems: "center",
|
|
42414
42501
|
gap: "10px"
|
|
42415
|
-
}),
|
|
42502
|
+
}), nQ = N(WJ)({
|
|
42416
42503
|
display: "flex",
|
|
42417
42504
|
alignItems: "center",
|
|
42418
42505
|
gap: "10px"
|
|
42419
|
-
}),
|
|
42506
|
+
}), rQ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), iQ = (e) => {
|
|
42420
42507
|
function t(e) {
|
|
42421
42508
|
return e.pointType ? e.direction ? `${e.pointType[0]}${e.direction[0]}` : e.pointType[0] : `${e.leftPoint[0]}${e.rightPoint[0]}`;
|
|
42422
42509
|
}
|
|
42423
42510
|
return `${e.type[0]}${t(e)}`.toUpperCase();
|
|
42424
|
-
},
|
|
42511
|
+
}, aQ = class extends xt.Component {
|
|
42425
42512
|
static propTypes = {
|
|
42426
42513
|
model: L.default.object.isRequired,
|
|
42427
42514
|
configuration: L.default.object.isRequired,
|
|
@@ -42506,62 +42593,62 @@ var DZ = {
|
|
|
42506
42593
|
correctResponse: i
|
|
42507
42594
|
});
|
|
42508
42595
|
};
|
|
42509
|
-
reloadTicksData = (
|
|
42510
|
-
let { domain:
|
|
42511
|
-
if (
|
|
42596
|
+
reloadTicksData = (e) => {
|
|
42597
|
+
let { domain: t, ticks: a, width: o } = e;
|
|
42598
|
+
if (a.tickIntervalType || (a.minor > .5 ? a.tickIntervalType = "Integer" : a.tickIntervalType = "Decimal"), KZ = ce(t, o), KZ.min >= 1) a.tickIntervalType = "Integer", a.minor = a.minor < 1 ? u(n(KZ.min)) : a.minor >= u(n(KZ.min)) && a.minor <= u(i(KZ.max)) ? a.minor : u(n(KZ.min)), a.integerTick = a.minor, qZ = {
|
|
42512
42599
|
decimal: [],
|
|
42513
42600
|
fraction: []
|
|
42514
|
-
},
|
|
42515
|
-
else if (
|
|
42516
|
-
|
|
42517
|
-
let e = u(
|
|
42518
|
-
if (
|
|
42601
|
+
}, a.fractionTick = "0", a.decimalTick = 0;
|
|
42602
|
+
else if (KZ.min >= 0 && KZ.max < 1) {
|
|
42603
|
+
a.tickIntervalType === "Integer" && (a.tickIntervalType = "Fraction"), qZ = ie(KZ);
|
|
42604
|
+
let e = u(r(qZ.fraction[0])), t = u(r(qZ.fraction[qZ.fraction.length - 1]));
|
|
42605
|
+
if (a.minor < e || a.minor > t) switch (a.tickIntervalType) {
|
|
42519
42606
|
case "Fraction":
|
|
42520
|
-
|
|
42607
|
+
a.minor = u(r(qZ.fraction[qZ.fraction.length - 1])), a.fractionTick = qZ.fraction[qZ.fraction.length - 1], a.decimalTick = qZ.decimal[0];
|
|
42521
42608
|
break;
|
|
42522
42609
|
case "Decimal":
|
|
42523
|
-
case "Integer":
|
|
42610
|
+
case "Integer": a.minor = qZ.decimal[qZ.decimal.length - 1], a.decimalTick = qZ.decimal[qZ.decimal.length - 1], a.fractionTick = qZ.fraction[0];
|
|
42524
42611
|
}
|
|
42525
|
-
else switch (
|
|
42612
|
+
else switch (a.tickIntervalType) {
|
|
42526
42613
|
case "Fraction":
|
|
42527
|
-
let e =
|
|
42528
|
-
|
|
42614
|
+
let e = r(u(a.minor));
|
|
42615
|
+
a.fractionTick = e.n + "/" + e.d, a.decimalTick = a.decimalTick ? a.decimalTick : qZ.decimal[0];
|
|
42529
42616
|
break;
|
|
42530
42617
|
case "Decimal":
|
|
42531
|
-
case "Integer":
|
|
42618
|
+
case "Integer": a.decimalTick = a.minor, a.fractionTick = a.fractionTick ? a.fractionTick : qZ.fraction[0];
|
|
42532
42619
|
}
|
|
42533
|
-
|
|
42534
|
-
} else if (
|
|
42620
|
+
a.integerTick = 1;
|
|
42621
|
+
} else if (KZ.min < 1 && KZ.max >= 1) if (qZ = ie(KZ), a.minor >= KZ.min && a.minor <= KZ.max) switch (a.tickIntervalType) {
|
|
42535
42622
|
case "Integer":
|
|
42536
|
-
|
|
42623
|
+
a.integerTick = a.minor, a.decimalTick = KZ.min > .5 ? 0 : qZ.decimal[0], a.fractionTick = KZ.min > .5 ? "0" : qZ.fraction[0];
|
|
42537
42624
|
break;
|
|
42538
42625
|
case "Decimal":
|
|
42539
|
-
|
|
42626
|
+
a.integerTick = 1, a.decimalTick = a.minor, a.fractionTick = qZ.fraction[0];
|
|
42540
42627
|
break;
|
|
42541
42628
|
case "Fraction":
|
|
42542
|
-
|
|
42543
|
-
let e =
|
|
42544
|
-
|
|
42629
|
+
a.integerTick = 1, a.decimalTick = qZ.decimal[0];
|
|
42630
|
+
let e = r(u(a.minor));
|
|
42631
|
+
a.fractionTick = e.n + "/" + e.d;
|
|
42545
42632
|
}
|
|
42546
|
-
else switch (
|
|
42633
|
+
else switch (KZ.min > .5 && (a.tickIntervalType = "Integer"), a.tickIntervalType) {
|
|
42547
42634
|
case "Integer":
|
|
42548
|
-
|
|
42635
|
+
a.minor = u(n(KZ.min)), a.integerTick = a.minor, a.decimalTick = KZ.min > .5 ? 0 : qZ.decimal[0], a.fractionTick = KZ.min > .5 ? "0" : qZ.fraction[0];
|
|
42549
42636
|
break;
|
|
42550
42637
|
case "Decimal":
|
|
42551
|
-
|
|
42638
|
+
a.minor = qZ.decimal[0], a.integerTick = 1, a.decimalTick = a.minor, a.fractionTick = qZ.fraction[0];
|
|
42552
42639
|
break;
|
|
42553
|
-
case "Fraction":
|
|
42640
|
+
case "Fraction": a.minor = u(r(qZ.fraction[0])), a.integerTick = 1, a.decimalTick = qZ.decimal[0], a.fractionTick = qZ.fraction[0];
|
|
42554
42641
|
}
|
|
42555
42642
|
return this.updateMajorValue({
|
|
42556
|
-
...
|
|
42557
|
-
ticks:
|
|
42643
|
+
...e,
|
|
42644
|
+
ticks: a
|
|
42558
42645
|
});
|
|
42559
42646
|
};
|
|
42560
42647
|
updateMajorValue = (e) => {
|
|
42561
42648
|
let { domain: t, ticks: n, width: r } = e;
|
|
42562
|
-
if (
|
|
42649
|
+
if (JZ = O(n.minor, t, r), JZ.decimal.indexOf(n.major) === -1) {
|
|
42563
42650
|
let e = 0;
|
|
42564
|
-
e = n.tickIntervalType === "Integer" &&
|
|
42651
|
+
e = n.tickIntervalType === "Integer" && JZ.decimal.length > 4 ? 4 : JZ.decimal.length - 1, n.major = JZ.decimal[e];
|
|
42565
42652
|
}
|
|
42566
42653
|
return e.fraction = n.tickIntervalType === "Fraction" && n.major < 1, {
|
|
42567
42654
|
...e,
|
|
@@ -42570,20 +42657,20 @@ var DZ = {
|
|
|
42570
42657
|
};
|
|
42571
42658
|
changeArrows = (e) => this.graphChange({ arrows: e });
|
|
42572
42659
|
setDefaults = () => {
|
|
42573
|
-
let { graph: { availableTypes: e, maxNumberOfPoints: t } } =
|
|
42574
|
-
...l(
|
|
42660
|
+
let { graph: { availableTypes: e, maxNumberOfPoints: t } } = IZ, n = this.getAdjustedHeight(e, t), r = {
|
|
42661
|
+
...l(IZ.graph),
|
|
42575
42662
|
height: n
|
|
42576
42663
|
};
|
|
42577
42664
|
this.props.onChange({ graph: r });
|
|
42578
42665
|
};
|
|
42579
42666
|
moveCorrectResponse = (e, t, n) => {
|
|
42580
42667
|
t.position = n;
|
|
42581
|
-
let { onChange: r, model: i } = this.props, a =
|
|
42668
|
+
let { onChange: r, model: i } = this.props, a = UZ(t.type === "line" && BZ(t) ? VZ(t) : t), o = [...i.correctResponse];
|
|
42582
42669
|
o[e] = a, r({ correctResponse: o });
|
|
42583
42670
|
};
|
|
42584
42671
|
availableTypesChange = (e) => {
|
|
42585
42672
|
let { model: t, onChange: n } = this.props, { correctResponse: r, graph: { maxNumberOfPoints: i } } = t;
|
|
42586
|
-
new Set(r.map(
|
|
42673
|
+
new Set(r.map(iQ)).forEach((t) => {
|
|
42587
42674
|
e[t] = !0;
|
|
42588
42675
|
});
|
|
42589
42676
|
let a = this.getAdjustedHeight(e, i);
|
|
@@ -42599,7 +42686,7 @@ var DZ = {
|
|
|
42599
42686
|
};
|
|
42600
42687
|
addCorrectResponse = (e) => {
|
|
42601
42688
|
let { model: t, onChange: n } = this.props, r = [...t.correctResponse];
|
|
42602
|
-
r.push(
|
|
42689
|
+
r.push(UZ(e)), n({ correctResponse: r });
|
|
42603
42690
|
};
|
|
42604
42691
|
clearCorrectResponse = () => {
|
|
42605
42692
|
let { onChange: e } = this.props;
|
|
@@ -42612,23 +42699,23 @@ var DZ = {
|
|
|
42612
42699
|
render() {
|
|
42613
42700
|
let { model: e, onChange: t, configuration: n, onConfigurationChanged: r, uploadSoundSupport: i, imageSupport: a } = this.props, { baseInputConfiguration: o = {}, contentDimensions: s = {}, instruction: c = {}, teacherInstructions: u = {}, title: d = {}, prompt: f = {}, rationale: p = {}, spellCheck: m = {}, mathMlOptions: h = {}, numberLineDimensions: g = {}, maxMaxElements: _ = 20, hidePointConfigButtons: v = !1, availableTools: y = ["PF"], settingsPanelDisabled: b = !1 } = n || {}, { errors: x = {}, extraCSSRules: S, spellCheckEnabled: C, toolbarEditorPosition: w, teacherInstructionsEnabled: T, titleEnabled: E, promptEnabled: ee, rationaleEnabled: D } = e || {}, { graph: O } = e;
|
|
42614
42701
|
O = this.reloadTicksData(O);
|
|
42615
|
-
let { dialog: te, correctAnswerDialog: ne } = this.state, { correctResponseError: re, domainError: ie, maxError: ae, pointsError: oe, prompt: se, rationale: ce, teacherInstructions: le, widthError: ue } = x || {}, de =
|
|
42702
|
+
let { dialog: te, correctAnswerDialog: ne } = this.state, { correctResponseError: re, domainError: ie, maxError: ae, pointsError: oe, prompt: se, rationale: ce, teacherInstructions: le, widthError: ue } = x || {}, de = RZ(), fe = l(e.correctResponse || []).map(HZ), pe = l(e);
|
|
42616
42703
|
pe.disabled = !0;
|
|
42617
42704
|
let me = { position: w === "top" ? "top" : "bottom" }, he = {
|
|
42618
|
-
teacherInstructionsEnabled: u.settings &&
|
|
42619
|
-
titleEnabled: d.settings &&
|
|
42620
|
-
promptEnabled: f.settings &&
|
|
42621
|
-
rationaleEnabled: p.settings &&
|
|
42622
|
-
spellCheckEnabled: m.settings &&
|
|
42705
|
+
teacherInstructionsEnabled: u.settings && GZ(u.label),
|
|
42706
|
+
titleEnabled: d.settings && GZ(d.label),
|
|
42707
|
+
promptEnabled: f.settings && GZ(f.label),
|
|
42708
|
+
rationaleEnabled: p.settings && GZ(p.label),
|
|
42709
|
+
spellCheckEnabled: m.settings && GZ(m.label)
|
|
42623
42710
|
}, k = (e = {}) => ({
|
|
42624
42711
|
...o,
|
|
42625
42712
|
...e
|
|
42626
42713
|
});
|
|
42627
|
-
return /* @__PURE__ */ I(
|
|
42714
|
+
return /* @__PURE__ */ I(uX.ConfigLayout, {
|
|
42628
42715
|
extraCSSRules: S,
|
|
42629
42716
|
dimensions: s,
|
|
42630
42717
|
hideSettings: b,
|
|
42631
|
-
settings: /* @__PURE__ */ F(
|
|
42718
|
+
settings: /* @__PURE__ */ F(WZ, {
|
|
42632
42719
|
model: e,
|
|
42633
42720
|
configuration: n,
|
|
42634
42721
|
onChangeModel: t,
|
|
@@ -42636,14 +42723,14 @@ var DZ = {
|
|
|
42636
42723
|
groups: { Properties: he }
|
|
42637
42724
|
}),
|
|
42638
42725
|
children: [
|
|
42639
|
-
/* @__PURE__ */ F(
|
|
42726
|
+
/* @__PURE__ */ F(rQ, {
|
|
42640
42727
|
component: "div",
|
|
42641
42728
|
type: "body1",
|
|
42642
42729
|
children: c.label
|
|
42643
42730
|
}),
|
|
42644
|
-
T && /* @__PURE__ */ I(
|
|
42731
|
+
T && /* @__PURE__ */ I(QZ, {
|
|
42645
42732
|
label: u.label,
|
|
42646
|
-
children: [/* @__PURE__ */ F(
|
|
42733
|
+
children: [/* @__PURE__ */ F(CJ, {
|
|
42647
42734
|
markup: e.teacherInstructions || "",
|
|
42648
42735
|
onChange: (e) => t({ teacherInstructions: e }),
|
|
42649
42736
|
nonEmpty: !1,
|
|
@@ -42656,11 +42743,11 @@ var DZ = {
|
|
|
42656
42743
|
uploadSoundSupport: i,
|
|
42657
42744
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42658
42745
|
mathMlOptions: h
|
|
42659
|
-
}), le && /* @__PURE__ */ F(
|
|
42746
|
+
}), le && /* @__PURE__ */ F(eQ, { children: le })]
|
|
42660
42747
|
}),
|
|
42661
|
-
ee && /* @__PURE__ */ I(
|
|
42748
|
+
ee && /* @__PURE__ */ I(QZ, {
|
|
42662
42749
|
label: f.label,
|
|
42663
|
-
children: [/* @__PURE__ */ F(
|
|
42750
|
+
children: [/* @__PURE__ */ F(CJ, {
|
|
42664
42751
|
markup: e.prompt || "",
|
|
42665
42752
|
onChange: (e) => t({ prompt: e }),
|
|
42666
42753
|
nonEmpty: !1,
|
|
@@ -42673,9 +42760,9 @@ var DZ = {
|
|
|
42673
42760
|
uploadSoundSupport: i,
|
|
42674
42761
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42675
42762
|
mathMlOptions: h
|
|
42676
|
-
}), se && /* @__PURE__ */ F(
|
|
42763
|
+
}), se && /* @__PURE__ */ F(eQ, { children: se })]
|
|
42677
42764
|
}),
|
|
42678
|
-
/* @__PURE__ */ F(
|
|
42765
|
+
/* @__PURE__ */ F(sZ, {
|
|
42679
42766
|
header: "Set Up Number Line",
|
|
42680
42767
|
info: /* @__PURE__ */ F(Qs, {
|
|
42681
42768
|
disableFocusListener: !0,
|
|
@@ -42687,7 +42774,7 @@ var DZ = {
|
|
|
42687
42774
|
whiteSpace: "pre",
|
|
42688
42775
|
maxWidth: "500px"
|
|
42689
42776
|
}) } },
|
|
42690
|
-
children: /* @__PURE__ */ F(
|
|
42777
|
+
children: /* @__PURE__ */ F(TZ, {
|
|
42691
42778
|
fontSize: "small",
|
|
42692
42779
|
color: "primary",
|
|
42693
42780
|
style: { marginLeft: "8px" }
|
|
@@ -42695,22 +42782,22 @@ var DZ = {
|
|
|
42695
42782
|
}),
|
|
42696
42783
|
children: "Set up the number line by entering the domain and number of tick marks to display. Labels on the number line can be edited or removed by clicking on the label."
|
|
42697
42784
|
}),
|
|
42698
|
-
/* @__PURE__ */ F(
|
|
42785
|
+
/* @__PURE__ */ F(XZ, { children: /* @__PURE__ */ F(vZ, {
|
|
42699
42786
|
domain: O.domain,
|
|
42700
42787
|
errors: x,
|
|
42701
42788
|
onChange: (e) => this.graphChange({ domain: e })
|
|
42702
42789
|
}) }),
|
|
42703
|
-
ae && /* @__PURE__ */ F(
|
|
42704
|
-
ie && /* @__PURE__ */ F(
|
|
42705
|
-
/* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(
|
|
42790
|
+
ae && /* @__PURE__ */ F(eQ, { children: ae }),
|
|
42791
|
+
ie && /* @__PURE__ */ F(eQ, { children: ie }),
|
|
42792
|
+
/* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(WJ, { children: /* @__PURE__ */ F(FZ, {
|
|
42706
42793
|
ticks: O.ticks,
|
|
42707
|
-
minorLimits:
|
|
42708
|
-
minorValues:
|
|
42709
|
-
majorValues:
|
|
42794
|
+
minorLimits: KZ,
|
|
42795
|
+
minorValues: qZ,
|
|
42796
|
+
majorValues: JZ,
|
|
42710
42797
|
onChange: this.changeTicks
|
|
42711
42798
|
}) }) }),
|
|
42712
|
-
/* @__PURE__ */ I(
|
|
42713
|
-
e.widthEnabled && /* @__PURE__ */ F(
|
|
42799
|
+
/* @__PURE__ */ I(tQ, { children: [
|
|
42800
|
+
e.widthEnabled && /* @__PURE__ */ F(fZ, {
|
|
42714
42801
|
size: O,
|
|
42715
42802
|
min: g.min,
|
|
42716
42803
|
max: g.max,
|
|
@@ -42718,12 +42805,12 @@ var DZ = {
|
|
|
42718
42805
|
onChange: this.changeSize
|
|
42719
42806
|
}),
|
|
42720
42807
|
/* @__PURE__ */ F("div", {}),
|
|
42721
|
-
/* @__PURE__ */ F(
|
|
42808
|
+
/* @__PURE__ */ F(xZ, {
|
|
42722
42809
|
arrows: O.arrows,
|
|
42723
42810
|
onChange: this.changeArrows
|
|
42724
42811
|
})
|
|
42725
42812
|
] }),
|
|
42726
|
-
ue && /* @__PURE__ */ F(
|
|
42813
|
+
ue && /* @__PURE__ */ F(eQ, { children: ue }),
|
|
42727
42814
|
/* @__PURE__ */ F($e, {
|
|
42728
42815
|
onMoveElement: () => {},
|
|
42729
42816
|
onDeleteElements: () => {},
|
|
@@ -42733,11 +42820,11 @@ var DZ = {
|
|
|
42733
42820
|
minWidth: g.min,
|
|
42734
42821
|
maxWidth: g.max,
|
|
42735
42822
|
maxHeight: 70,
|
|
42736
|
-
model:
|
|
42823
|
+
model: zZ(pe)
|
|
42737
42824
|
}),
|
|
42738
|
-
E && /* @__PURE__ */ F(
|
|
42825
|
+
E && /* @__PURE__ */ F($Z, {
|
|
42739
42826
|
label: d?.label || "Title",
|
|
42740
|
-
children: /* @__PURE__ */ F(
|
|
42827
|
+
children: /* @__PURE__ */ F(CJ, {
|
|
42741
42828
|
markup: O.title || "",
|
|
42742
42829
|
onChange: this.changeGraphTitle,
|
|
42743
42830
|
toolbarOpts: me,
|
|
@@ -42761,31 +42848,31 @@ var DZ = {
|
|
|
42761
42848
|
})
|
|
42762
42849
|
}),
|
|
42763
42850
|
!O.exhibitOnly && /* @__PURE__ */ I(xt.Fragment, { children: [
|
|
42764
|
-
/* @__PURE__ */ I(
|
|
42851
|
+
/* @__PURE__ */ I(sZ, {
|
|
42765
42852
|
header: "Define Tool Set and Correct Response",
|
|
42766
42853
|
children: ["Select answer type and place it on the number line. Intersecting points, line segments and/or rays will appear above the number line. ", /* @__PURE__ */ F("i", { children: "Note: A maximum of 20 points, line segments or rays may be plotted." })]
|
|
42767
42854
|
}),
|
|
42768
|
-
/* @__PURE__ */ F(
|
|
42855
|
+
/* @__PURE__ */ F(sZ, {
|
|
42769
42856
|
header: "Available Tools",
|
|
42770
42857
|
mini: !0,
|
|
42771
42858
|
children: "Click on the input options to be displayed to the students. All inputs will display by default."
|
|
42772
42859
|
}),
|
|
42773
|
-
/* @__PURE__ */ F(
|
|
42860
|
+
/* @__PURE__ */ F(ZZ, { children: /* @__PURE__ */ F(wZ, {
|
|
42774
42861
|
onSelectionChange: this.availableTypesChange,
|
|
42775
42862
|
selection: O.availableTypes,
|
|
42776
42863
|
availableTools: y,
|
|
42777
42864
|
hideButtons: v
|
|
42778
42865
|
}) }),
|
|
42779
|
-
/* @__PURE__ */ I(
|
|
42866
|
+
/* @__PURE__ */ I(nQ, { children: [
|
|
42780
42867
|
/* @__PURE__ */ F("label", { children: "Max No of Elements" }),
|
|
42781
|
-
/* @__PURE__ */ F(
|
|
42868
|
+
/* @__PURE__ */ F(YZ, {
|
|
42782
42869
|
min: 1,
|
|
42783
42870
|
max: _,
|
|
42784
42871
|
onlyIntegersAllowed: !0,
|
|
42785
42872
|
value: O.maxNumberOfPoints,
|
|
42786
42873
|
onChange: this.changeMaxNoOfPoints
|
|
42787
42874
|
}),
|
|
42788
|
-
oe && /* @__PURE__ */ F(
|
|
42875
|
+
oe && /* @__PURE__ */ F(eQ, { children: oe })
|
|
42789
42876
|
] }),
|
|
42790
42877
|
/* @__PURE__ */ F("label", { children: "Correct Answer" }),
|
|
42791
42878
|
/* @__PURE__ */ F($e, {
|
|
@@ -42797,9 +42884,9 @@ var DZ = {
|
|
|
42797
42884
|
minWidth: g.min,
|
|
42798
42885
|
maxWidth: g.max,
|
|
42799
42886
|
answer: fe,
|
|
42800
|
-
model:
|
|
42887
|
+
model: zZ(e)
|
|
42801
42888
|
}),
|
|
42802
|
-
re && /* @__PURE__ */ F(
|
|
42889
|
+
re && /* @__PURE__ */ F(eQ, { children: re })
|
|
42803
42890
|
] }),
|
|
42804
42891
|
/* @__PURE__ */ F(Uc, {
|
|
42805
42892
|
open: te.open,
|
|
@@ -42822,9 +42909,9 @@ var DZ = {
|
|
|
42822
42909
|
onConfirmText: "OK",
|
|
42823
42910
|
onCloseText: "Cancel"
|
|
42824
42911
|
}),
|
|
42825
|
-
D && /* @__PURE__ */ I(
|
|
42912
|
+
D && /* @__PURE__ */ I(QZ, {
|
|
42826
42913
|
label: p.label || "Rationale",
|
|
42827
|
-
children: [/* @__PURE__ */ F(
|
|
42914
|
+
children: [/* @__PURE__ */ F(CJ, {
|
|
42828
42915
|
markup: e.rationale || "",
|
|
42829
42916
|
onChange: (e) => t({ rationale: e }),
|
|
42830
42917
|
error: ce,
|
|
@@ -42835,12 +42922,12 @@ var DZ = {
|
|
|
42835
42922
|
uploadSoundSupport: i,
|
|
42836
42923
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42837
42924
|
mathMlOptions: h
|
|
42838
|
-
}), ce && /* @__PURE__ */ F(
|
|
42925
|
+
}), ce && /* @__PURE__ */ F(eQ, { children: ce })]
|
|
42839
42926
|
})
|
|
42840
42927
|
]
|
|
42841
42928
|
});
|
|
42842
42929
|
}
|
|
42843
|
-
},
|
|
42930
|
+
}, oQ = class e extends CustomEvent {
|
|
42844
42931
|
static {
|
|
42845
42932
|
this.TYPE = "model.updated";
|
|
42846
42933
|
}
|
|
@@ -42853,7 +42940,7 @@ var DZ = {
|
|
|
42853
42940
|
}
|
|
42854
42941
|
}), this.update = t, this.reset = n;
|
|
42855
42942
|
}
|
|
42856
|
-
},
|
|
42943
|
+
}, sQ = class e extends CustomEvent {
|
|
42857
42944
|
static {
|
|
42858
42945
|
this.TYPE = "delete.image";
|
|
42859
42946
|
}
|
|
@@ -42866,7 +42953,7 @@ var DZ = {
|
|
|
42866
42953
|
}
|
|
42867
42954
|
}), this.src = t, this.done = n;
|
|
42868
42955
|
}
|
|
42869
|
-
},
|
|
42956
|
+
}, cQ = class e extends CustomEvent {
|
|
42870
42957
|
static {
|
|
42871
42958
|
this.TYPE = "insert.image";
|
|
42872
42959
|
}
|
|
@@ -42876,7 +42963,7 @@ var DZ = {
|
|
|
42876
42963
|
detail: t
|
|
42877
42964
|
}), this.handler = t;
|
|
42878
42965
|
}
|
|
42879
|
-
},
|
|
42966
|
+
}, lQ = class e extends CustomEvent {
|
|
42880
42967
|
static {
|
|
42881
42968
|
this.TYPE = "delete.sound";
|
|
42882
42969
|
}
|
|
@@ -42889,7 +42976,7 @@ var DZ = {
|
|
|
42889
42976
|
}
|
|
42890
42977
|
}), this.src = t, this.done = n;
|
|
42891
42978
|
}
|
|
42892
|
-
},
|
|
42979
|
+
}, uQ = class e extends CustomEvent {
|
|
42893
42980
|
static {
|
|
42894
42981
|
this.TYPE = "insert.sound";
|
|
42895
42982
|
}
|
|
@@ -42899,7 +42986,7 @@ var DZ = {
|
|
|
42899
42986
|
detail: t
|
|
42900
42987
|
}), this.handler = t;
|
|
42901
42988
|
}
|
|
42902
|
-
},
|
|
42989
|
+
}, dQ = (e) => {
|
|
42903
42990
|
let { graph: { domain: t, labelStep: n, ticks: r = {} } = {} } = e, { minor: i, major: a } = r;
|
|
42904
42991
|
if (t && (t.min = Number((t.min || 0).toFixed(2)), t.max = Number((t.max || 0).toFixed(2))), n && typeof n == "string" && n.match(/^[1-9][0-9]*\/[1-9][0-9]*$/g)) {
|
|
42905
42992
|
e.graph.fraction = !0, r.tickIntervalType = "Fraction";
|
|
@@ -42907,17 +42994,17 @@ var DZ = {
|
|
|
42907
42994
|
t !== a && (r.major = t, r.minor = t / (a / i));
|
|
42908
42995
|
}
|
|
42909
42996
|
return e;
|
|
42910
|
-
},
|
|
42997
|
+
}, fQ = class e extends HTMLElement {
|
|
42911
42998
|
static createDefaultModel = (e = {}) => {
|
|
42912
|
-
let t =
|
|
42913
|
-
return !n && t.language && t.language.enabled && t.languageChoices?.options?.length && (n = t.languageChoices.options[0].value),
|
|
42914
|
-
...
|
|
42999
|
+
let t = LZ, n = e.language || "";
|
|
43000
|
+
return !n && t.language && t.language.enabled && t.languageChoices?.options?.length && (n = t.languageChoices.options[0].value), dQ({
|
|
43001
|
+
...IZ,
|
|
42915
43002
|
...e,
|
|
42916
43003
|
language: n
|
|
42917
43004
|
});
|
|
42918
43005
|
};
|
|
42919
43006
|
constructor() {
|
|
42920
|
-
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration =
|
|
43007
|
+
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = LZ;
|
|
42921
43008
|
}
|
|
42922
43009
|
set model(t) {
|
|
42923
43010
|
this._model = e.createDefaultModel(t), this._modelCopy = l(this._model), this._rerender();
|
|
@@ -42928,7 +43015,7 @@ var DZ = {
|
|
|
42928
43015
|
};
|
|
42929
43016
|
set configuration(e) {
|
|
42930
43017
|
let t = {
|
|
42931
|
-
...
|
|
43018
|
+
...LZ,
|
|
42932
43019
|
...e
|
|
42933
43020
|
};
|
|
42934
43021
|
this._configuration = t, this.resetModelAfterConfigurationIsSet(), t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.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({
|
|
@@ -42940,25 +43027,25 @@ var DZ = {
|
|
|
42940
43027
|
this._model = {
|
|
42941
43028
|
...this._model,
|
|
42942
43029
|
...e
|
|
42943
|
-
}, this.dispatchEvent(new
|
|
43030
|
+
}, this.dispatchEvent(new oQ(this._model)), this._rerender();
|
|
42944
43031
|
};
|
|
42945
43032
|
onConfigurationChanged = (e) => {
|
|
42946
43033
|
this._configuration = e, this._render();
|
|
42947
43034
|
};
|
|
42948
43035
|
insertImage(e) {
|
|
42949
|
-
this.dispatchEvent(new
|
|
43036
|
+
this.dispatchEvent(new cQ(e));
|
|
42950
43037
|
}
|
|
42951
43038
|
onDeleteImage(e, t) {
|
|
42952
|
-
this.dispatchEvent(new
|
|
43039
|
+
this.dispatchEvent(new sQ(e, t));
|
|
42953
43040
|
}
|
|
42954
43041
|
insertSound(e) {
|
|
42955
|
-
this.dispatchEvent(new
|
|
43042
|
+
this.dispatchEvent(new uQ(e));
|
|
42956
43043
|
}
|
|
42957
43044
|
onDeleteSound(e, t) {
|
|
42958
|
-
this.dispatchEvent(new
|
|
43045
|
+
this.dispatchEvent(new lQ(e, t));
|
|
42959
43046
|
}
|
|
42960
43047
|
_rerender() {
|
|
42961
|
-
let e = xt.createElement(
|
|
43048
|
+
let e = xt.createElement(aQ, {
|
|
42962
43049
|
model: this._model,
|
|
42963
43050
|
configuration: this._configuration,
|
|
42964
43051
|
onChange: this.onChange,
|
|
@@ -42982,6 +43069,6 @@ var DZ = {
|
|
|
42982
43069
|
}
|
|
42983
43070
|
};
|
|
42984
43071
|
//#endregion
|
|
42985
|
-
export {
|
|
43072
|
+
export { fQ as default };
|
|
42986
43073
|
|
|
42987
43074
|
//# sourceMappingURL=index.js.map
|