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