@pie-element/select-text 13.1.2-next.7 → 13.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/{Check-CmcAwXkY.js → Check-DfUn7PkH.js} +500 -498
- package/dist/browser/{Check-CmcAwXkY.js.map → Check-DfUn7PkH.js.map} +1 -1
- package/dist/browser/author/index.js +699 -591
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{main-DFPODQm1.js → main-B3z36nHt.js} +2 -2
- package/dist/browser/{main-DFPODQm1.js.map → main-B3z36nHt.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/index.iife.js +7 -7
- package/module/print.js +20113 -0
- package/module/print.js.map +1 -0
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, y as v } from "../dist-BamN0-DG.js";
|
|
2
|
-
import { $ as y, A as b, At as x, B as S, Bt as C, C as w, Ct as T, D as E, Dt as ee, E as D, Et as te, Ft as ne, G as O, H as re, Ht as ie, I as k, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, Nt as pe, O as me, Ot as A, P as he, Pt as ge, Q as _e, R as ve, Rt as j, St as ye, T as be, Tt as xe, U as Se, V as Ce, Vt as we, W as Te, X as Ee, Y as De, _t as Oe, a as ke, at as Ae, bt as je, c as Me, ct as Ne, d as Pe, dt as Fe, et as Ie, f as Le, ft as Re, gt as M, ht as N, i as ze, it as Be, j as Ve, jt as He, k as Ue, kt as We, l as Ge, lt as Ke, mt as qe, n as Je, nt as Ye, o as Xe, ot as Ze, p as Qe, pt as $e, q as et, r as tt, rt as nt, s as rt, st as it, t as at, tt as ot, u as st, ut as ct, v as lt, vt as ut, w as dt, wt as ft, x as pt, xt as mt, y as ht, yt as gt, z as _t, zt as vt } from "../Check-
|
|
2
|
+
import { $ as y, A as b, At as x, B as S, Bt as C, C as w, Ct as T, D as E, Dt as ee, E as D, Et as te, Ft as ne, G as O, H as re, Ht as ie, I as k, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, Nt as pe, O as me, Ot as A, P as he, Pt as ge, Q as _e, R as ve, Rt as j, St as ye, T as be, Tt as xe, U as Se, V as Ce, Vt as we, W as Te, X as Ee, Y as De, _t as Oe, a as ke, at as Ae, bt as je, c as Me, ct as Ne, d as Pe, dt as Fe, et as Ie, f as Le, ft as Re, gt as M, ht as N, i as ze, it as Be, j as Ve, jt as He, k as Ue, kt as We, l as Ge, lt as Ke, mt as qe, n as Je, nt as Ye, o as Xe, ot as Ze, p as Qe, pt as $e, q as et, r as tt, rt as nt, s as rt, st as it, t as at, tt as ot, u as st, ut as ct, v as lt, vt as ut, w as dt, wt as ft, x as pt, xt as mt, y as ht, yt as gt, z as _t, zt as vt } from "../Check-DfUn7PkH.js";
|
|
3
3
|
import * as P from "react";
|
|
4
4
|
import yt, { Component as bt, createContext as xt, createElement as St, createRef as Ct, forwardRef as wt, memo as Tt, useCallback as Et, useContext as Dt, useDebugValue as Ot, useEffect as kt, useLayoutEffect as At, useMemo as jt, useRef as Mt, useState as Nt, version as Pt } from "react";
|
|
5
5
|
import { createRoot as Ft } from "react-dom/client";
|
|
@@ -41251,8 +41251,8 @@ MS.create({
|
|
|
41251
41251
|
})) ?? null };
|
|
41252
41252
|
}
|
|
41253
41253
|
});
|
|
41254
|
-
var RY = "placeholder", zY = new Bf("tiptap__placeholder")
|
|
41255
|
-
function
|
|
41254
|
+
var RY = "placeholder", zY = new Bf("tiptap__placeholder");
|
|
41255
|
+
function BY(e) {
|
|
41256
41256
|
let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
|
|
41257
41257
|
return o && u.push(l), Fv.node(i, i + a.nodeSize, {
|
|
41258
41258
|
class: u.join(" "),
|
|
@@ -41264,156 +41264,198 @@ function VY(e) {
|
|
|
41264
41264
|
}) : n
|
|
41265
41265
|
});
|
|
41266
41266
|
}
|
|
41267
|
-
function
|
|
41267
|
+
function VY(e, t) {
|
|
41268
|
+
return typeof e == "function" ? e(t) : e;
|
|
41269
|
+
}
|
|
41270
|
+
function HY({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
|
|
41271
|
+
let { anchor: s } = i, c = [], l = e.isEmpty;
|
|
41272
|
+
return r.nodesBetween(a, o, (r, i) => {
|
|
41273
|
+
let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && Bx(r);
|
|
41274
|
+
return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(BY({
|
|
41275
|
+
editor: e,
|
|
41276
|
+
isEmptyDoc: l,
|
|
41277
|
+
dataAttribute: n,
|
|
41278
|
+
hasAnchor: a,
|
|
41279
|
+
placeholder: t.placeholder,
|
|
41280
|
+
classes: {
|
|
41281
|
+
emptyEditor: t.emptyEditorClass,
|
|
41282
|
+
emptyNode: VY(t.emptyNodeClass, {
|
|
41283
|
+
editor: e,
|
|
41284
|
+
node: r,
|
|
41285
|
+
pos: i,
|
|
41286
|
+
hasAnchor: a
|
|
41287
|
+
})
|
|
41288
|
+
},
|
|
41289
|
+
node: r,
|
|
41290
|
+
pos: i
|
|
41291
|
+
})), t.includeChildren;
|
|
41292
|
+
}), c;
|
|
41293
|
+
}
|
|
41294
|
+
function UY({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
|
|
41268
41295
|
if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
|
|
41269
|
-
let { anchor: a } = i, o = [], s = e.isEmpty
|
|
41270
|
-
emptyEditor: t.emptyEditorClass,
|
|
41271
|
-
emptyNode: t.emptyNodeClass
|
|
41272
|
-
};
|
|
41296
|
+
let { anchor: a } = i, o = [], s = e.isEmpty;
|
|
41273
41297
|
if (t.showOnlyCurrent && !t.includeChildren) {
|
|
41274
|
-
let i = r.resolve(a),
|
|
41275
|
-
if (
|
|
41276
|
-
let r = a >=
|
|
41277
|
-
o.push(
|
|
41298
|
+
let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
|
|
41299
|
+
if (c && c.type.isTextblock && Bx(c)) {
|
|
41300
|
+
let r = a >= l && a <= l + c.nodeSize;
|
|
41301
|
+
o.push(BY({
|
|
41278
41302
|
editor: e,
|
|
41279
41303
|
isEmptyDoc: s,
|
|
41280
41304
|
dataAttribute: n,
|
|
41281
41305
|
hasAnchor: r,
|
|
41282
41306
|
placeholder: t.placeholder,
|
|
41283
|
-
classes:
|
|
41284
|
-
|
|
41285
|
-
|
|
41307
|
+
classes: {
|
|
41308
|
+
emptyEditor: t.emptyEditorClass,
|
|
41309
|
+
emptyNode: VY(t.emptyNodeClass, {
|
|
41310
|
+
editor: e,
|
|
41311
|
+
node: c,
|
|
41312
|
+
pos: l,
|
|
41313
|
+
hasAnchor: r
|
|
41314
|
+
})
|
|
41315
|
+
},
|
|
41316
|
+
node: c,
|
|
41317
|
+
pos: l
|
|
41286
41318
|
}));
|
|
41287
41319
|
}
|
|
41288
|
-
} else {
|
|
41289
|
-
|
|
41290
|
-
|
|
41291
|
-
|
|
41292
|
-
|
|
41293
|
-
|
|
41294
|
-
|
|
41295
|
-
|
|
41296
|
-
|
|
41297
|
-
placeholder: t.placeholder,
|
|
41298
|
-
classes: c,
|
|
41299
|
-
node: r,
|
|
41300
|
-
pos: i
|
|
41301
|
-
})), t.includeChildren;
|
|
41302
|
-
});
|
|
41303
|
-
}
|
|
41320
|
+
} else o.push(...HY({
|
|
41321
|
+
editor: e,
|
|
41322
|
+
options: t,
|
|
41323
|
+
dataAttribute: n,
|
|
41324
|
+
doc: r,
|
|
41325
|
+
selection: i,
|
|
41326
|
+
from: 0,
|
|
41327
|
+
to: r.content.size
|
|
41328
|
+
}));
|
|
41304
41329
|
return Rv.create(r, o);
|
|
41305
41330
|
}
|
|
41306
|
-
function
|
|
41307
|
-
|
|
41331
|
+
function WY(e, t) {
|
|
41332
|
+
let n = e.resolve(t);
|
|
41333
|
+
if (n.depth === 0) {
|
|
41334
|
+
let e = n.nodeAfter ?? n.nodeBefore;
|
|
41335
|
+
if (!e) return {
|
|
41336
|
+
from: t,
|
|
41337
|
+
to: t
|
|
41338
|
+
};
|
|
41339
|
+
let r = n.nodeAfter ? t : t - e.nodeSize;
|
|
41340
|
+
return {
|
|
41341
|
+
from: r,
|
|
41342
|
+
to: r + e.nodeSize
|
|
41343
|
+
};
|
|
41344
|
+
}
|
|
41345
|
+
let r = n.before(1);
|
|
41346
|
+
return {
|
|
41347
|
+
from: r,
|
|
41348
|
+
to: r + n.node(1).nodeSize
|
|
41349
|
+
};
|
|
41308
41350
|
}
|
|
41309
|
-
function
|
|
41310
|
-
|
|
41311
|
-
|
|
41351
|
+
function GY(e, t) {
|
|
41352
|
+
return {
|
|
41353
|
+
from: Math.max(0, t.from - 1),
|
|
41354
|
+
to: Math.min(e.content.size, t.to - 1)
|
|
41355
|
+
};
|
|
41312
41356
|
}
|
|
41313
|
-
function
|
|
41314
|
-
let
|
|
41315
|
-
|
|
41316
|
-
|
|
41317
|
-
|
|
41318
|
-
|
|
41319
|
-
|
|
41320
|
-
|
|
41321
|
-
|
|
41322
|
-
|
|
41323
|
-
|
|
41324
|
-
|
|
41325
|
-
|
|
41326
|
-
|
|
41357
|
+
function KY(e, t, n) {
|
|
41358
|
+
let r = [];
|
|
41359
|
+
return e.forEach((e, i) => {
|
|
41360
|
+
let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
|
|
41361
|
+
s < n && c > t && r.push({
|
|
41362
|
+
from: a,
|
|
41363
|
+
to: o
|
|
41364
|
+
});
|
|
41365
|
+
}), r;
|
|
41366
|
+
}
|
|
41367
|
+
function qY(e) {
|
|
41368
|
+
if (e.length === 0) return [];
|
|
41369
|
+
let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
|
|
41370
|
+
for (let e = 1; e < t.length; e += 1) {
|
|
41371
|
+
let r = n[n.length - 1], i = t[e];
|
|
41372
|
+
i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
|
|
41327
41373
|
}
|
|
41328
|
-
return
|
|
41374
|
+
return n;
|
|
41329
41375
|
}
|
|
41330
|
-
function
|
|
41331
|
-
|
|
41332
|
-
|
|
41333
|
-
bottom: window.innerHeight
|
|
41334
|
-
} : e.getBoundingClientRect();
|
|
41376
|
+
function JY(e, t) {
|
|
41377
|
+
let n = KY(e, t.from, t.to);
|
|
41378
|
+
return n.push(GY(e, WY(e, t.from))), t.to > t.from ? n.push(GY(e, WY(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(GY(e, WY(e, Math.min(t.from + 1, e.content.size)))), n;
|
|
41335
41379
|
}
|
|
41336
|
-
function
|
|
41337
|
-
let r =
|
|
41338
|
-
|
|
41339
|
-
|
|
41340
|
-
|
|
41341
|
-
|
|
41342
|
-
|
|
41343
|
-
bottom: e.content.size
|
|
41344
|
-
};
|
|
41345
|
-
let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
|
|
41346
|
-
left: s,
|
|
41347
|
-
top: a + 2
|
|
41348
|
-
}), l = t.posAtCoords({
|
|
41349
|
-
left: s,
|
|
41350
|
-
top: o - 2
|
|
41351
|
-
});
|
|
41352
|
-
return {
|
|
41353
|
-
top: c ? c.pos : 0,
|
|
41354
|
-
bottom: l ? l.pos : e.content.size
|
|
41355
|
-
};
|
|
41380
|
+
function YY(e, t, n) {
|
|
41381
|
+
let r = [];
|
|
41382
|
+
if (e.docChanged) {
|
|
41383
|
+
let t = kx(e);
|
|
41384
|
+
for (let e of t) r.push(...JY(n.doc, e.newRange));
|
|
41385
|
+
}
|
|
41386
|
+
return e.selectionSet && (r.push(GY(n.doc, WY(n.doc, e.mapping.map(t.selection.anchor)))), r.push(GY(n.doc, WY(n.doc, n.selection.anchor)))), qY(r);
|
|
41356
41387
|
}
|
|
41357
|
-
|
|
41358
|
-
|
|
41359
|
-
|
|
41360
|
-
|
|
41361
|
-
|
|
41362
|
-
|
|
41363
|
-
|
|
41364
|
-
|
|
41365
|
-
|
|
41366
|
-
|
|
41367
|
-
|
|
41368
|
-
|
|
41369
|
-
|
|
41370
|
-
|
|
41371
|
-
|
|
41372
|
-
|
|
41388
|
+
function XY(e, t, n) {
|
|
41389
|
+
let r = Math.max(0, Math.min(e, n.content.size));
|
|
41390
|
+
return {
|
|
41391
|
+
from: r,
|
|
41392
|
+
to: Math.max(r, Math.min(t, n.content.size))
|
|
41393
|
+
};
|
|
41394
|
+
}
|
|
41395
|
+
function ZY({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
|
|
41396
|
+
let s = e;
|
|
41397
|
+
for (let e of t) {
|
|
41398
|
+
let { from: t, to: c } = XY(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
|
|
41399
|
+
l.length && (s = s.remove(l));
|
|
41400
|
+
let u = HY({
|
|
41401
|
+
editor: n,
|
|
41402
|
+
options: r,
|
|
41403
|
+
dataAttribute: i,
|
|
41404
|
+
doc: a,
|
|
41405
|
+
selection: o,
|
|
41406
|
+
from: t,
|
|
41407
|
+
to: c
|
|
41408
|
+
});
|
|
41409
|
+
u.length && (s = s.add(a, u));
|
|
41373
41410
|
}
|
|
41374
|
-
|
|
41375
|
-
|
|
41376
|
-
|
|
41377
|
-
|
|
41378
|
-
|
|
41379
|
-
|
|
41380
|
-
|
|
41381
|
-
|
|
41382
|
-
|
|
41383
|
-
|
|
41384
|
-
|
|
41385
|
-
|
|
41386
|
-
|
|
41387
|
-
|
|
41388
|
-
|
|
41389
|
-
|
|
41390
|
-
|
|
41391
|
-
|
|
41392
|
-
|
|
41393
|
-
|
|
41394
|
-
|
|
41395
|
-
|
|
41396
|
-
|
|
41397
|
-
r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
|
|
41411
|
+
return s;
|
|
41412
|
+
}
|
|
41413
|
+
function QY({ editor: e, options: t, dataAttribute: n }) {
|
|
41414
|
+
return {
|
|
41415
|
+
init(r, i) {
|
|
41416
|
+
return UY({
|
|
41417
|
+
editor: e,
|
|
41418
|
+
options: t,
|
|
41419
|
+
dataAttribute: n,
|
|
41420
|
+
doc: i.doc,
|
|
41421
|
+
selection: i.selection
|
|
41422
|
+
}) ?? Rv.empty;
|
|
41423
|
+
},
|
|
41424
|
+
apply(r, i, a, o) {
|
|
41425
|
+
return !r.docChanged && !r.selectionSet ? i : ZY({
|
|
41426
|
+
decorations: i.map(r.mapping, r.doc),
|
|
41427
|
+
ranges: YY(r, a, o),
|
|
41428
|
+
editor: e,
|
|
41429
|
+
options: t,
|
|
41430
|
+
dataAttribute: n,
|
|
41431
|
+
doc: o.doc,
|
|
41432
|
+
selection: o.selection
|
|
41433
|
+
});
|
|
41398
41434
|
}
|
|
41399
41435
|
};
|
|
41400
41436
|
}
|
|
41401
|
-
function
|
|
41402
|
-
|
|
41437
|
+
function $Y(e) {
|
|
41438
|
+
return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
41439
|
+
}
|
|
41440
|
+
function eX({ editor: e, options: t }) {
|
|
41441
|
+
let n = t.dataAttribute ? `data-${$Y(t.dataAttribute)}` : `data-${RY}`, r = t.showOnlyCurrent && !t.includeChildren;
|
|
41403
41442
|
return new Lf({
|
|
41404
41443
|
key: zY,
|
|
41405
|
-
state:
|
|
41406
|
-
|
|
41407
|
-
|
|
41444
|
+
...r ? {} : { state: QY({
|
|
41445
|
+
editor: e,
|
|
41446
|
+
options: t,
|
|
41447
|
+
dataAttribute: n
|
|
41448
|
+
}) },
|
|
41449
|
+
props: { decorations: r ? ({ doc: r, selection: i }) => UY({
|
|
41408
41450
|
editor: e,
|
|
41409
41451
|
options: t,
|
|
41410
41452
|
dataAttribute: n,
|
|
41411
41453
|
doc: r,
|
|
41412
41454
|
selection: i
|
|
41413
|
-
}) }
|
|
41455
|
+
}) : (n) => t.showOnlyWhenEditable && !e.isEditable ? Rv.empty : zY.getState(n) ?? Rv.empty }
|
|
41414
41456
|
});
|
|
41415
41457
|
}
|
|
41416
|
-
var
|
|
41458
|
+
var tX = MS.create({
|
|
41417
41459
|
name: "placeholder",
|
|
41418
41460
|
addOptions() {
|
|
41419
41461
|
return {
|
|
@@ -41427,12 +41469,25 @@ var ZY = MS.create({
|
|
|
41427
41469
|
};
|
|
41428
41470
|
},
|
|
41429
41471
|
addProseMirrorPlugins() {
|
|
41430
|
-
return [
|
|
41472
|
+
return [eX({
|
|
41431
41473
|
editor: this.editor,
|
|
41432
41474
|
options: this.options
|
|
41433
41475
|
})];
|
|
41434
41476
|
}
|
|
41435
41477
|
});
|
|
41478
|
+
function nX(e, t) {
|
|
41479
|
+
return !e.selection.empty && !Vx(e.selection) && t.isEditable;
|
|
41480
|
+
}
|
|
41481
|
+
function rX(e, t) {
|
|
41482
|
+
return nX(e, t) && !t.isFocused && !t.view.dragging;
|
|
41483
|
+
}
|
|
41484
|
+
function iX() {
|
|
41485
|
+
var e;
|
|
41486
|
+
(e = window.getSelection()) == null || e.removeAllRanges();
|
|
41487
|
+
}
|
|
41488
|
+
function aX(e) {
|
|
41489
|
+
e.focus();
|
|
41490
|
+
}
|
|
41436
41491
|
MS.create({
|
|
41437
41492
|
name: "selection",
|
|
41438
41493
|
addOptions() {
|
|
@@ -41442,13 +41497,25 @@ MS.create({
|
|
|
41442
41497
|
let { editor: e, options: t } = this;
|
|
41443
41498
|
return [new Lf({
|
|
41444
41499
|
key: new Bf("selection"),
|
|
41445
|
-
props: {
|
|
41446
|
-
|
|
41447
|
-
|
|
41500
|
+
props: {
|
|
41501
|
+
decorations(n) {
|
|
41502
|
+
return rX(n, e) ? Rv.create(n.doc, [Fv.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
|
|
41503
|
+
},
|
|
41504
|
+
handleDOMEvents: {
|
|
41505
|
+
blur(t) {
|
|
41506
|
+
return nX(t.state, e) && iX(), !1;
|
|
41507
|
+
},
|
|
41508
|
+
focus(t) {
|
|
41509
|
+
return nX(t.state, e) && requestAnimationFrame(() => {
|
|
41510
|
+
!e.isDestroyed && t.hasFocus() && aX(t);
|
|
41511
|
+
}), !1;
|
|
41512
|
+
}
|
|
41513
|
+
}
|
|
41514
|
+
}
|
|
41448
41515
|
})];
|
|
41449
41516
|
}
|
|
41450
41517
|
});
|
|
41451
|
-
function
|
|
41518
|
+
function oX({ types: e, node: t }) {
|
|
41452
41519
|
return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
|
|
41453
41520
|
}
|
|
41454
41521
|
MS.create({
|
|
@@ -41470,7 +41537,7 @@ MS.create({
|
|
|
41470
41537
|
state: {
|
|
41471
41538
|
init: (e, t) => {
|
|
41472
41539
|
let r = t.tr.doc.lastChild;
|
|
41473
|
-
return !
|
|
41540
|
+
return !oX({
|
|
41474
41541
|
node: r,
|
|
41475
41542
|
types: n
|
|
41476
41543
|
});
|
|
@@ -41478,7 +41545,7 @@ MS.create({
|
|
|
41478
41545
|
apply: (e, t) => {
|
|
41479
41546
|
if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
|
|
41480
41547
|
let r = e.doc.lastChild;
|
|
41481
|
-
return !
|
|
41548
|
+
return !oX({
|
|
41482
41549
|
node: r,
|
|
41483
41550
|
types: n
|
|
41484
41551
|
});
|
|
@@ -41513,7 +41580,7 @@ MS.create({
|
|
|
41513
41580
|
};
|
|
41514
41581
|
}
|
|
41515
41582
|
});
|
|
41516
|
-
var
|
|
41583
|
+
var sX = wS.create({
|
|
41517
41584
|
name: "superscript",
|
|
41518
41585
|
addOptions() {
|
|
41519
41586
|
return { HTMLAttributes: {} };
|
|
@@ -41543,7 +41610,7 @@ var $Y = wS.create({
|
|
|
41543
41610
|
addKeyboardShortcuts() {
|
|
41544
41611
|
return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
|
|
41545
41612
|
}
|
|
41546
|
-
}),
|
|
41613
|
+
}), cX = wS.create({
|
|
41547
41614
|
name: "subscript",
|
|
41548
41615
|
addOptions() {
|
|
41549
41616
|
return { HTMLAttributes: {} };
|
|
@@ -41573,7 +41640,7 @@ var $Y = wS.create({
|
|
|
41573
41640
|
addKeyboardShortcuts() {
|
|
41574
41641
|
return { "Mod-,": () => this.editor.commands.toggleSubscript() };
|
|
41575
41642
|
}
|
|
41576
|
-
}),
|
|
41643
|
+
}), lX = MS.create({
|
|
41577
41644
|
name: "textAlign",
|
|
41578
41645
|
addOptions() {
|
|
41579
41646
|
return {
|
|
@@ -41615,7 +41682,7 @@ var $Y = wS.create({
|
|
|
41615
41682
|
"Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
|
|
41616
41683
|
};
|
|
41617
41684
|
}
|
|
41618
|
-
}),
|
|
41685
|
+
}), uX = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, dX = cC.create({
|
|
41619
41686
|
name: "image",
|
|
41620
41687
|
addOptions() {
|
|
41621
41688
|
return {
|
|
@@ -41658,34 +41725,55 @@ var $Y = wS.create({
|
|
|
41658
41725
|
},
|
|
41659
41726
|
addNodeView() {
|
|
41660
41727
|
if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
|
|
41661
|
-
let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize
|
|
41662
|
-
|
|
41663
|
-
|
|
41664
|
-
|
|
41728
|
+
let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
|
|
41729
|
+
"src",
|
|
41730
|
+
"width",
|
|
41731
|
+
"height"
|
|
41732
|
+
]);
|
|
41733
|
+
return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
|
|
41734
|
+
let l = document.createElement("img");
|
|
41735
|
+
l.draggable = !1;
|
|
41736
|
+
let u = fx(this.options.HTMLAttributes, s);
|
|
41737
|
+
Object.entries(u).forEach(([e, t]) => {
|
|
41665
41738
|
if (t != null) switch (e) {
|
|
41739
|
+
case "src":
|
|
41666
41740
|
case "width":
|
|
41667
41741
|
case "height": break;
|
|
41668
|
-
default:
|
|
41669
|
-
c.setAttribute(e, t);
|
|
41670
|
-
break;
|
|
41742
|
+
default: l.setAttribute(e, t);
|
|
41671
41743
|
}
|
|
41672
|
-
}),
|
|
41673
|
-
let
|
|
41674
|
-
|
|
41675
|
-
|
|
41676
|
-
|
|
41677
|
-
|
|
41744
|
+
}), u.src !== null && (l.src = u.src);
|
|
41745
|
+
let d = { ...s }, f = (e) => {
|
|
41746
|
+
if (typeof e == "string" && e !== "") {
|
|
41747
|
+
l.getAttribute("src") !== e && (l.src = e);
|
|
41748
|
+
return;
|
|
41749
|
+
}
|
|
41750
|
+
l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
|
|
41751
|
+
};
|
|
41752
|
+
f(s.src);
|
|
41753
|
+
let p = new ZS({
|
|
41754
|
+
element: l,
|
|
41755
|
+
editor: c,
|
|
41756
|
+
node: a,
|
|
41757
|
+
getPos: o,
|
|
41678
41758
|
onResize: (e, t) => {
|
|
41679
|
-
|
|
41759
|
+
l.style.width = `${e}px`, l.style.height = `${t}px`;
|
|
41680
41760
|
},
|
|
41681
41761
|
onCommit: (e, t) => {
|
|
41682
|
-
let n =
|
|
41762
|
+
let n = o();
|
|
41683
41763
|
n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
|
|
41684
41764
|
width: e,
|
|
41685
41765
|
height: t
|
|
41686
41766
|
}).run();
|
|
41687
41767
|
},
|
|
41688
|
-
onUpdate: (e
|
|
41768
|
+
onUpdate: (e) => {
|
|
41769
|
+
if (e.type !== a.type) return !1;
|
|
41770
|
+
let t = px(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
|
|
41771
|
+
return Object.keys(d).forEach((e) => {
|
|
41772
|
+
!i.has(e) && !(e in t) && l.removeAttribute(e);
|
|
41773
|
+
}), Object.entries(t).forEach(([e, t]) => {
|
|
41774
|
+
i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
|
|
41775
|
+
}), f(t.src), d = t, !0;
|
|
41776
|
+
},
|
|
41689
41777
|
options: {
|
|
41690
41778
|
directions: e,
|
|
41691
41779
|
min: {
|
|
@@ -41694,10 +41782,10 @@ var $Y = wS.create({
|
|
|
41694
41782
|
},
|
|
41695
41783
|
preserveAspectRatio: r === !0
|
|
41696
41784
|
}
|
|
41697
|
-
}),
|
|
41698
|
-
|
|
41699
|
-
|
|
41700
|
-
|
|
41785
|
+
}), m = p.dom, h = () => {
|
|
41786
|
+
m.style.visibility = "", m.style.pointerEvents = "";
|
|
41787
|
+
};
|
|
41788
|
+
return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
|
|
41701
41789
|
};
|
|
41702
41790
|
},
|
|
41703
41791
|
addCommands() {
|
|
@@ -41708,7 +41796,7 @@ var $Y = wS.create({
|
|
|
41708
41796
|
},
|
|
41709
41797
|
addInputRules() {
|
|
41710
41798
|
return [JS({
|
|
41711
|
-
find:
|
|
41799
|
+
find: uX,
|
|
41712
41800
|
type: this.type,
|
|
41713
41801
|
getAttributes: (e) => {
|
|
41714
41802
|
let [, , t, n, r] = e;
|
|
@@ -41720,17 +41808,17 @@ var $Y = wS.create({
|
|
|
41720
41808
|
}
|
|
41721
41809
|
})];
|
|
41722
41810
|
}
|
|
41723
|
-
}),
|
|
41811
|
+
}), fX = tX, pX = {
|
|
41724
41812
|
position: "bottom",
|
|
41725
41813
|
alignment: "left",
|
|
41726
41814
|
alwaysVisible: !1,
|
|
41727
41815
|
showDone: !0,
|
|
41728
41816
|
doneOn: "blur"
|
|
41729
|
-
},
|
|
41817
|
+
}, mX = {
|
|
41730
41818
|
options: {},
|
|
41731
41819
|
respAreaToolbar: () => {},
|
|
41732
41820
|
onHandleAreaChange: () => {}
|
|
41733
|
-
},
|
|
41821
|
+
}, hX = [
|
|
41734
41822
|
"bold",
|
|
41735
41823
|
"italic",
|
|
41736
41824
|
"underline",
|
|
@@ -41752,7 +41840,7 @@ var $Y = wS.create({
|
|
|
41752
41840
|
"h3",
|
|
41753
41841
|
"undo",
|
|
41754
41842
|
"redo"
|
|
41755
|
-
],
|
|
41843
|
+
], gX = {
|
|
41756
41844
|
"--white": "#fff",
|
|
41757
41845
|
"--black": "#2e2b29",
|
|
41758
41846
|
"--black-contrast": "#110f0e",
|
|
@@ -41771,14 +41859,18 @@ var $Y = wS.create({
|
|
|
41771
41859
|
"--red": "#ff5c33",
|
|
41772
41860
|
"--red-light": "#ffebe5",
|
|
41773
41861
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
41774
|
-
},
|
|
41862
|
+
}, _X = (e) => ({
|
|
41863
|
+
spellcheck: e ? "true" : "false",
|
|
41864
|
+
autocorrect: e ? "on" : "off",
|
|
41865
|
+
autocapitalize: e ? "on" : "off"
|
|
41866
|
+
}), vX = (e) => {
|
|
41775
41867
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [i, a] = Nt([]), [o, s] = Nt(!1), { toolbarOpts: c } = e, l = Et((e) => {
|
|
41776
41868
|
a((t) => {
|
|
41777
41869
|
let n = t.filter((t) => t.pos !== e);
|
|
41778
41870
|
return n.length === 0 && s(!1), n;
|
|
41779
41871
|
});
|
|
41780
41872
|
}, [a]), u = {
|
|
41781
|
-
...
|
|
41873
|
+
...pX,
|
|
41782
41874
|
...c
|
|
41783
41875
|
}, d = Et((t) => {
|
|
41784
41876
|
let n = t.getHTML();
|
|
@@ -41789,13 +41881,13 @@ var $Y = wS.create({
|
|
|
41789
41881
|
e.onDone,
|
|
41790
41882
|
u.doneOn
|
|
41791
41883
|
]), f = jt(() => ({
|
|
41792
|
-
...
|
|
41884
|
+
...mX,
|
|
41793
41885
|
...e.responseAreaProps,
|
|
41794
41886
|
onInlineDropdownToolbarClose: d
|
|
41795
41887
|
}), [e.responseAreaProps, d]), p = jt(() => {
|
|
41796
41888
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
41797
41889
|
t ||= [];
|
|
41798
|
-
let r = (e.activePlugins ||
|
|
41890
|
+
let r = (e.activePlugins || hX)?.filter((e) => {
|
|
41799
41891
|
let t = kl[e] || e, r = n[t] || {};
|
|
41800
41892
|
return !r || !r.disabled;
|
|
41801
41893
|
});
|
|
@@ -41813,103 +41905,112 @@ var $Y = wS.create({
|
|
|
41813
41905
|
setKeypadInteraction: {},
|
|
41814
41906
|
media: {}
|
|
41815
41907
|
});
|
|
41816
|
-
}, [e, f.type]), m =
|
|
41817
|
-
|
|
41818
|
-
|
|
41819
|
-
|
|
41820
|
-
|
|
41821
|
-
|
|
41822
|
-
|
|
41823
|
-
|
|
41824
|
-
|
|
41825
|
-
|
|
41826
|
-
|
|
41827
|
-
|
|
41828
|
-
|
|
41829
|
-
|
|
41830
|
-
|
|
41831
|
-
|
|
41832
|
-
|
|
41833
|
-
|
|
41834
|
-
|
|
41835
|
-
|
|
41836
|
-
|
|
41837
|
-
|
|
41838
|
-
|
|
41839
|
-
|
|
41840
|
-
|
|
41841
|
-
|
|
41842
|
-
|
|
41908
|
+
}, [e, f.type]), m = [
|
|
41909
|
+
lX.configure({
|
|
41910
|
+
types: [
|
|
41911
|
+
"heading",
|
|
41912
|
+
"paragraph",
|
|
41913
|
+
"div",
|
|
41914
|
+
"headingParagraph",
|
|
41915
|
+
"h1",
|
|
41916
|
+
"h2",
|
|
41917
|
+
"h3",
|
|
41918
|
+
"h4",
|
|
41919
|
+
"h5",
|
|
41920
|
+
"h6",
|
|
41921
|
+
"td",
|
|
41922
|
+
"th"
|
|
41923
|
+
],
|
|
41924
|
+
alignments: [
|
|
41925
|
+
"left",
|
|
41926
|
+
"right",
|
|
41927
|
+
"center",
|
|
41928
|
+
"justify"
|
|
41929
|
+
]
|
|
41930
|
+
}),
|
|
41931
|
+
IY,
|
|
41932
|
+
LY.configure({ limit: e.charactersLimit || 1e6 }),
|
|
41933
|
+
EY.configure({
|
|
41934
|
+
trailingNode: {
|
|
41843
41935
|
node: "paragraph",
|
|
41844
41936
|
notAfter: ["paragraph", "div"]
|
|
41845
|
-
}
|
|
41846
|
-
|
|
41847
|
-
|
|
41848
|
-
|
|
41849
|
-
|
|
41850
|
-
|
|
41851
|
-
|
|
41852
|
-
|
|
41853
|
-
|
|
41854
|
-
|
|
41855
|
-
|
|
41856
|
-
|
|
41857
|
-
|
|
41858
|
-
|
|
41859
|
-
|
|
41860
|
-
|
|
41861
|
-
|
|
41862
|
-
|
|
41863
|
-
|
|
41864
|
-
|
|
41865
|
-
|
|
41866
|
-
|
|
41867
|
-
|
|
41868
|
-
|
|
41869
|
-
|
|
41870
|
-
|
|
41871
|
-
|
|
41872
|
-
|
|
41873
|
-
|
|
41874
|
-
|
|
41875
|
-
|
|
41876
|
-
|
|
41877
|
-
|
|
41878
|
-
|
|
41879
|
-
|
|
41880
|
-
|
|
41881
|
-
|
|
41882
|
-
|
|
41883
|
-
|
|
41884
|
-
|
|
41885
|
-
|
|
41886
|
-
|
|
41887
|
-
|
|
41888
|
-
|
|
41889
|
-
|
|
41890
|
-
|
|
41891
|
-
|
|
41892
|
-
|
|
41893
|
-
|
|
41894
|
-
|
|
41895
|
-
|
|
41896
|
-
|
|
41897
|
-
|
|
41898
|
-
|
|
41899
|
-
|
|
41900
|
-
|
|
41901
|
-
|
|
41902
|
-
|
|
41903
|
-
|
|
41904
|
-
|
|
41905
|
-
|
|
41906
|
-
|
|
41907
|
-
|
|
41908
|
-
|
|
41937
|
+
},
|
|
41938
|
+
link: {
|
|
41939
|
+
autolink: !1,
|
|
41940
|
+
linkOnPaste: !1
|
|
41941
|
+
}
|
|
41942
|
+
}),
|
|
41943
|
+
AB,
|
|
41944
|
+
Bk,
|
|
41945
|
+
jB,
|
|
41946
|
+
Vk,
|
|
41947
|
+
Hk,
|
|
41948
|
+
fX.configure({
|
|
41949
|
+
placeholder: e.placeholder,
|
|
41950
|
+
showOnlyWhenEditable: !0,
|
|
41951
|
+
showOnlyCurrent: !1,
|
|
41952
|
+
includeChildren: !0
|
|
41953
|
+
}),
|
|
41954
|
+
Ik,
|
|
41955
|
+
bk,
|
|
41956
|
+
zk,
|
|
41957
|
+
Rk,
|
|
41958
|
+
mR.configure(f),
|
|
41959
|
+
hR.configure(f),
|
|
41960
|
+
_R.configure(f),
|
|
41961
|
+
vR.configure(f),
|
|
41962
|
+
gR.configure(f),
|
|
41963
|
+
tz.configure({
|
|
41964
|
+
toolbarOpts: u,
|
|
41965
|
+
math: e.pluginProps?.math || {}
|
|
41966
|
+
}),
|
|
41967
|
+
cX,
|
|
41968
|
+
sX,
|
|
41969
|
+
dX,
|
|
41970
|
+
Sz.configure({
|
|
41971
|
+
toolbarOpts: u,
|
|
41972
|
+
imageHandling: {
|
|
41973
|
+
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
41974
|
+
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
41975
|
+
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
41976
|
+
let { src: n } = t.attrs;
|
|
41977
|
+
e.imageSupport.delete(n, (e) => {
|
|
41978
|
+
l(t.pos);
|
|
41979
|
+
});
|
|
41980
|
+
}),
|
|
41981
|
+
insertImageRequested: e.imageSupport && ((t, n, i) => {
|
|
41982
|
+
let [s, c] = n, u = (n) => {
|
|
41983
|
+
let r;
|
|
41984
|
+
o && n && (r = e.onChange), l(c), r?.(t.getHTML());
|
|
41985
|
+
};
|
|
41986
|
+
t._insertingImage = !0, a((e) => [...e, s]), (() => {
|
|
41987
|
+
let n = i(u), a = r(() => {
|
|
41988
|
+
let e = () => window.removeEventListener("focus", a);
|
|
41989
|
+
if (!t._insertingImage) {
|
|
41990
|
+
e();
|
|
41991
|
+
return;
|
|
41992
|
+
}
|
|
41993
|
+
l(c), t._insertingImage = !1, e();
|
|
41994
|
+
}, 500);
|
|
41995
|
+
window.addEventListener("focus", a), e.imageSupport.add(n);
|
|
41996
|
+
})();
|
|
41997
|
+
}),
|
|
41998
|
+
maxImageWidth: e.maxImageWidth,
|
|
41999
|
+
maxImageHeight: e.maxImageHeight
|
|
42000
|
+
},
|
|
42001
|
+
limit: 3
|
|
42002
|
+
}),
|
|
42003
|
+
Uz.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
42004
|
+
Yz.configure({ extraCSSRules: e.extraCSSRules })
|
|
42005
|
+
], h = e.spellCheck !== !1, g = pj({
|
|
42006
|
+
extensions: m,
|
|
41909
42007
|
immediatelyRender: !1,
|
|
41910
|
-
editorProps: {
|
|
41911
|
-
|
|
41912
|
-
|
|
42008
|
+
editorProps: {
|
|
42009
|
+
attributes: _X(h),
|
|
42010
|
+
handleKeyDown(t, n) {
|
|
42011
|
+
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
42012
|
+
}
|
|
42013
|
+
},
|
|
41913
42014
|
editable: !e.disabled,
|
|
41914
42015
|
content: Pl(e.markup),
|
|
41915
42016
|
onUpdate: ({ editor: t, transaction: n }) => {
|
|
@@ -41920,22 +42021,29 @@ var $Y = wS.create({
|
|
|
41920
42021
|
}
|
|
41921
42022
|
}, [e.charactersLimit]);
|
|
41922
42023
|
kt(() => {
|
|
41923
|
-
e.editorRef && e.editorRef(
|
|
41924
|
-
}, [e.editorRef,
|
|
41925
|
-
|
|
41926
|
-
}, [e.disabled,
|
|
41927
|
-
if (!
|
|
42024
|
+
e.editorRef && e.editorRef(g);
|
|
42025
|
+
}, [e.editorRef, g]), kt(() => {
|
|
42026
|
+
g?.setEditable(!e.disabled);
|
|
42027
|
+
}, [e.disabled, g]), kt(() => {
|
|
42028
|
+
if (!g) return;
|
|
42029
|
+
let e = g.options?.editorProps, t = _X(h);
|
|
42030
|
+
e?.attributes?.spellcheck !== t.spellcheck && g.setOptions({ editorProps: {
|
|
42031
|
+
...e,
|
|
42032
|
+
attributes: t
|
|
42033
|
+
} });
|
|
42034
|
+
}, [h, g]), kt(() => {
|
|
42035
|
+
if (!g) return;
|
|
41928
42036
|
let t = Pl(e.markup);
|
|
41929
|
-
t !==
|
|
41930
|
-
}, [e.markup,
|
|
41931
|
-
Object.entries(
|
|
42037
|
+
t !== g.getHTML() && g.commands.setContent(t, { emitUpdate: !1 });
|
|
42038
|
+
}, [e.markup, g]), kt(() => {
|
|
42039
|
+
Object.entries(gX).forEach(([e, t]) => {
|
|
41932
42040
|
document.documentElement.style.setProperty(e, t);
|
|
41933
42041
|
});
|
|
41934
42042
|
}, []);
|
|
41935
|
-
let
|
|
41936
|
-
editor:
|
|
42043
|
+
let _ = lj({
|
|
42044
|
+
editor: g,
|
|
41937
42045
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
41938
|
-
}),
|
|
42046
|
+
}), v = jt(() => {
|
|
41939
42047
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
41940
42048
|
return {
|
|
41941
42049
|
width: MB(n),
|
|
@@ -41950,20 +42058,20 @@ var $Y = wS.create({
|
|
|
41950
42058
|
...e,
|
|
41951
42059
|
activePlugins: p,
|
|
41952
42060
|
toolbarOpts: u,
|
|
41953
|
-
editorState:
|
|
41954
|
-
editor:
|
|
41955
|
-
children:
|
|
42061
|
+
editorState: _,
|
|
42062
|
+
editor: g,
|
|
42063
|
+
children: g && /* @__PURE__ */ F(yX, {
|
|
41956
42064
|
style: {
|
|
41957
|
-
minHeight:
|
|
41958
|
-
height:
|
|
41959
|
-
maxHeight:
|
|
42065
|
+
minHeight: v.minHeight,
|
|
42066
|
+
height: v.height,
|
|
42067
|
+
maxHeight: v.maxHeight
|
|
41960
42068
|
},
|
|
41961
42069
|
showParagraph: t && !t.disabled,
|
|
41962
42070
|
separateParagraph: n && !n.disabled,
|
|
41963
|
-
editor:
|
|
42071
|
+
editor: g
|
|
41964
42072
|
})
|
|
41965
42073
|
});
|
|
41966
|
-
},
|
|
42074
|
+
}, yX = M(oj, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
41967
42075
|
display: "flex",
|
|
41968
42076
|
outline: "none !important",
|
|
41969
42077
|
"& .ProseMirror": {
|
|
@@ -41991,26 +42099,26 @@ var $Y = wS.create({
|
|
|
41991
42099
|
} },
|
|
41992
42100
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
41993
42101
|
}
|
|
41994
|
-
})),
|
|
42102
|
+
})), bX = vX;
|
|
41995
42103
|
//#endregion
|
|
41996
42104
|
//#region ../../lib-react/config-ui/dist/feedback-config/feedback-selector.js
|
|
41997
|
-
function
|
|
42105
|
+
function xX(e) {
|
|
41998
42106
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
41999
42107
|
}
|
|
42000
|
-
function
|
|
42001
|
-
return !e ||
|
|
42108
|
+
function SX(e, t) {
|
|
42109
|
+
return !e || xX(e) ? e : xX(e.default) ? e.default : t && xX(e[t]) ? e[t] : t && xX(e[t]?.default) ? e[t].default : e;
|
|
42002
42110
|
}
|
|
42003
|
-
var
|
|
42111
|
+
var CX = SX(lt, "InputContainer") || SX(EX.InputContainer, "InputContainer"), wX = Ge, TX = wX.default, EX = TX && typeof TX == "object" ? TX : wX, DX = M(bX)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), OX = {
|
|
42004
42112
|
default: "Simple Feedback",
|
|
42005
42113
|
none: "No Feedback",
|
|
42006
42114
|
custom: "Customized Feedback"
|
|
42007
|
-
},
|
|
42115
|
+
}, kX = M("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), AX = M(CX)(() => ({ paddingBottom: 0 })), jX = M("div")(({ theme: e }) => ({
|
|
42008
42116
|
marginTop: "0px",
|
|
42009
42117
|
background: k.backgroundDark(),
|
|
42010
42118
|
padding: 0,
|
|
42011
42119
|
marginBottom: e.spacing(2),
|
|
42012
42120
|
borderRadius: "4px"
|
|
42013
|
-
})),
|
|
42121
|
+
})), MX = M("div")(({ theme: e }) => ({
|
|
42014
42122
|
marginTop: "0px",
|
|
42015
42123
|
background: k.backgroundDark(),
|
|
42016
42124
|
padding: e.spacing(2),
|
|
@@ -42018,7 +42126,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42018
42126
|
borderRadius: "4px",
|
|
42019
42127
|
fontFamily: e.typography.fontFamily,
|
|
42020
42128
|
cursor: "default"
|
|
42021
|
-
})),
|
|
42129
|
+
})), NX = M(El)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), PX = {
|
|
42022
42130
|
type: L.default.oneOf([
|
|
42023
42131
|
"default",
|
|
42024
42132
|
"custom",
|
|
@@ -42026,11 +42134,11 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42026
42134
|
]),
|
|
42027
42135
|
default: L.default.string,
|
|
42028
42136
|
custom: L.default.string
|
|
42029
|
-
},
|
|
42137
|
+
}, FX = class extends yt.Component {
|
|
42030
42138
|
static propTypes = {
|
|
42031
42139
|
keys: L.default.arrayOf(L.default.string),
|
|
42032
42140
|
label: L.default.string.isRequired,
|
|
42033
|
-
feedback: L.default.shape(
|
|
42141
|
+
feedback: L.default.shape(PX).isRequired,
|
|
42034
42142
|
onChange: L.default.func.isRequired,
|
|
42035
42143
|
toolbarOpts: L.default.object,
|
|
42036
42144
|
mathMlOptions: L.default.object
|
|
@@ -42052,36 +42160,36 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42052
42160
|
};
|
|
42053
42161
|
render() {
|
|
42054
42162
|
let { keys: e, label: t, feedback: n, toolbarOpts: r, mathMlOptions: i = {} } = this.props;
|
|
42055
|
-
return /* @__PURE__ */ I(
|
|
42056
|
-
/* @__PURE__ */ F(
|
|
42163
|
+
return /* @__PURE__ */ I(kX, { children: [
|
|
42164
|
+
/* @__PURE__ */ F(AX, {
|
|
42057
42165
|
label: t,
|
|
42058
42166
|
extraClasses: { label: { transform: "translateY(-20%)" } },
|
|
42059
|
-
children: /* @__PURE__ */ F(
|
|
42060
|
-
keys: e || Object.keys(
|
|
42167
|
+
children: /* @__PURE__ */ F(NX, {
|
|
42168
|
+
keys: e || Object.keys(OX),
|
|
42061
42169
|
label: t,
|
|
42062
42170
|
value: n.type,
|
|
42063
42171
|
onChange: this.changeType,
|
|
42064
|
-
feedbackLabels:
|
|
42172
|
+
feedbackLabels: OX
|
|
42065
42173
|
})
|
|
42066
42174
|
}),
|
|
42067
|
-
n.type === "custom" && /* @__PURE__ */ F(
|
|
42175
|
+
n.type === "custom" && /* @__PURE__ */ F(jX, { children: /* @__PURE__ */ F(DX, {
|
|
42068
42176
|
onChange: this.changeCustom,
|
|
42069
42177
|
markup: n.custom || "",
|
|
42070
42178
|
toolbarOpts: r,
|
|
42071
42179
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42072
42180
|
mathMlOptions: i
|
|
42073
42181
|
}) }),
|
|
42074
|
-
n.type === "default" && /* @__PURE__ */ I(
|
|
42182
|
+
n.type === "default" && /* @__PURE__ */ I(MX, { children: [" ", n.default] })
|
|
42075
42183
|
] });
|
|
42076
42184
|
}
|
|
42077
|
-
},
|
|
42185
|
+
}, IX = $e(/*#__PURE__*/ F("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), LX = M("div")(() => ({
|
|
42078
42186
|
display: "flex",
|
|
42079
42187
|
flex: 1,
|
|
42080
42188
|
flexDirection: "column"
|
|
42081
|
-
})),
|
|
42189
|
+
})), RX = M(vi)(() => ({
|
|
42082
42190
|
paddingTop: 0,
|
|
42083
42191
|
paddingBottom: 0
|
|
42084
|
-
})),
|
|
42192
|
+
})), zX = (e) => d({}, {
|
|
42085
42193
|
correct: {
|
|
42086
42194
|
type: "default",
|
|
42087
42195
|
default: "Correct"
|
|
@@ -42094,21 +42202,21 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42094
42202
|
type: "default",
|
|
42095
42203
|
default: "Nearly"
|
|
42096
42204
|
}
|
|
42097
|
-
}, e),
|
|
42205
|
+
}, e), BX = class extends yt.Component {
|
|
42098
42206
|
static propTypes = {
|
|
42099
42207
|
allowPartial: L.default.bool,
|
|
42100
42208
|
className: L.default.string,
|
|
42101
42209
|
feedback: L.default.shape({
|
|
42102
|
-
correct: L.default.shape(
|
|
42103
|
-
incorrect: L.default.shape(
|
|
42104
|
-
partial: L.default.shape(
|
|
42210
|
+
correct: L.default.shape(PX),
|
|
42211
|
+
incorrect: L.default.shape(PX),
|
|
42212
|
+
partial: L.default.shape(PX)
|
|
42105
42213
|
}),
|
|
42106
42214
|
onChange: L.default.func.isRequired,
|
|
42107
42215
|
toolbarOpts: L.default.object
|
|
42108
42216
|
};
|
|
42109
42217
|
static defaultProps = {
|
|
42110
42218
|
allowPartial: !0,
|
|
42111
|
-
feedback:
|
|
42219
|
+
feedback: zX()
|
|
42112
42220
|
};
|
|
42113
42221
|
onChange(e, t) {
|
|
42114
42222
|
let { feedback: n, onChange: r } = this.props;
|
|
@@ -42130,22 +42238,22 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42130
42238
|
exit: 195
|
|
42131
42239
|
} } },
|
|
42132
42240
|
children: [/* @__PURE__ */ F(Ti, {
|
|
42133
|
-
expandIcon: /* @__PURE__ */ F(
|
|
42241
|
+
expandIcon: /* @__PURE__ */ F(IX, {}),
|
|
42134
42242
|
children: /* @__PURE__ */ F(pn, { children: "Feedback" })
|
|
42135
|
-
}), /* @__PURE__ */ F(
|
|
42136
|
-
/* @__PURE__ */ F(
|
|
42243
|
+
}), /* @__PURE__ */ F(RX, { children: /* @__PURE__ */ I(LX, { children: [
|
|
42244
|
+
/* @__PURE__ */ F(FX, {
|
|
42137
42245
|
label: "If correct, show",
|
|
42138
42246
|
feedback: n.correct,
|
|
42139
42247
|
onChange: this.onCorrectChange,
|
|
42140
42248
|
toolbarOpts: r
|
|
42141
42249
|
}),
|
|
42142
|
-
t && /* @__PURE__ */ F(
|
|
42250
|
+
t && /* @__PURE__ */ F(FX, {
|
|
42143
42251
|
label: "If partially correct, show",
|
|
42144
42252
|
feedback: n.partial,
|
|
42145
42253
|
onChange: this.onPartialChange,
|
|
42146
42254
|
toolbarOpts: r
|
|
42147
42255
|
}),
|
|
42148
|
-
/* @__PURE__ */ F(
|
|
42256
|
+
/* @__PURE__ */ F(FX, {
|
|
42149
42257
|
label: "If incorrect, show",
|
|
42150
42258
|
feedback: n.incorrect,
|
|
42151
42259
|
onChange: this.onIncorrectChange,
|
|
@@ -42155,7 +42263,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42155
42263
|
})
|
|
42156
42264
|
});
|
|
42157
42265
|
}
|
|
42158
|
-
},
|
|
42266
|
+
}, VX = M(Yc)(() => ({})), HX = class extends yt.Component {
|
|
42159
42267
|
static propTypes = {
|
|
42160
42268
|
className: L.default.string,
|
|
42161
42269
|
contentClassName: L.default.string,
|
|
@@ -42176,7 +42284,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42176
42284
|
indicatorColor: "primary",
|
|
42177
42285
|
value: e,
|
|
42178
42286
|
onChange: this.handleChange,
|
|
42179
|
-
children: yt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(
|
|
42287
|
+
children: yt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(VX, { label: e.props.title }, t) : null)
|
|
42180
42288
|
}), /* @__PURE__ */ F("div", {
|
|
42181
42289
|
className: r,
|
|
42182
42290
|
style: i,
|
|
@@ -42184,7 +42292,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42184
42292
|
})]
|
|
42185
42293
|
});
|
|
42186
42294
|
}
|
|
42187
|
-
},
|
|
42295
|
+
}, UX = M(yn)(({ theme: e, mini: t }) => ({
|
|
42188
42296
|
margin: 0,
|
|
42189
42297
|
marginLeft: 0,
|
|
42190
42298
|
padding: 0,
|
|
@@ -42198,7 +42306,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42198
42306
|
fontSize: e.typography.fontSize - 3
|
|
42199
42307
|
}
|
|
42200
42308
|
}
|
|
42201
|
-
})),
|
|
42309
|
+
})), WX = M(es)(({ theme: e, mini: t, error: n }) => ({
|
|
42202
42310
|
color: `${k.tertiary()} !important`,
|
|
42203
42311
|
...t && {
|
|
42204
42312
|
margin: 0,
|
|
@@ -42207,9 +42315,9 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42207
42315
|
height: e.spacing(3)
|
|
42208
42316
|
},
|
|
42209
42317
|
...n && { color: `${e.palette.error.main} !important` }
|
|
42210
|
-
})),
|
|
42318
|
+
})), GX = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(UX, {
|
|
42211
42319
|
mini: e,
|
|
42212
|
-
control: /* @__PURE__ */ F(
|
|
42320
|
+
control: /* @__PURE__ */ F(WX, {
|
|
42213
42321
|
checked: t,
|
|
42214
42322
|
onChange: n,
|
|
42215
42323
|
value: r,
|
|
@@ -42218,21 +42326,21 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42218
42326
|
}),
|
|
42219
42327
|
label: i
|
|
42220
42328
|
});
|
|
42221
|
-
|
|
42329
|
+
GX.propTypes = {
|
|
42222
42330
|
mini: L.default.bool,
|
|
42223
42331
|
checked: L.default.bool.isRequired,
|
|
42224
42332
|
onChange: L.default.func.isRequired,
|
|
42225
42333
|
value: L.default.string,
|
|
42226
42334
|
label: L.default.string.isRequired,
|
|
42227
42335
|
error: L.default.bool
|
|
42228
|
-
},
|
|
42336
|
+
}, GX.defaultProps = {
|
|
42229
42337
|
value: "",
|
|
42230
42338
|
mini: !1,
|
|
42231
42339
|
error: !1
|
|
42232
42340
|
};
|
|
42233
42341
|
//#endregion
|
|
42234
42342
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
42235
|
-
var
|
|
42343
|
+
var KX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), qX = M(oi)(({ theme: e }) => ({
|
|
42236
42344
|
marginRight: e.spacing(1),
|
|
42237
42345
|
"& .MuiInputLabel-root": {
|
|
42238
42346
|
width: "auto",
|
|
@@ -42254,11 +42362,11 @@ var LX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), RX = M(oi)(({
|
|
|
42254
42362
|
minHeight: "auto",
|
|
42255
42363
|
padding: "6px 0 7px"
|
|
42256
42364
|
}
|
|
42257
|
-
})),
|
|
42365
|
+
})), JX = (e, t) => {
|
|
42258
42366
|
if (!c(e) && !c(t)) return 0;
|
|
42259
42367
|
if (!c(e) && c(t)) return t;
|
|
42260
42368
|
if (c(e)) return e;
|
|
42261
|
-
},
|
|
42369
|
+
}, YX = class extends yt.Component {
|
|
42262
42370
|
static propTypes = {
|
|
42263
42371
|
disabled: L.default.bool,
|
|
42264
42372
|
className: L.default.string,
|
|
@@ -42284,13 +42392,13 @@ var LX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), RX = M(oi)(({
|
|
|
42284
42392
|
this.setState({ value: t });
|
|
42285
42393
|
}
|
|
42286
42394
|
clamp(e, t = this.props.min, n = this.props.max) {
|
|
42287
|
-
return c(e) ? (c(n) && (e = Math.min(e, n)), c(t) && (e = Math.max(e, t)), e) :
|
|
42395
|
+
return c(e) ? (c(n) && (e = Math.min(e, n)), c(t) && (e = Math.max(e, t)), e) : JX(t, n);
|
|
42288
42396
|
}
|
|
42289
42397
|
onBlur = (e) => {
|
|
42290
42398
|
let t = e.target.value, n = parseFloat(t);
|
|
42291
|
-
|
|
42399
|
+
KX("rawNumber: ", n);
|
|
42292
42400
|
let r = this.clamp(n);
|
|
42293
|
-
|
|
42401
|
+
KX("number: ", r), r !== this.state.value && (KX("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
42294
42402
|
this.props.onChange(e, r);
|
|
42295
42403
|
}));
|
|
42296
42404
|
};
|
|
@@ -42310,7 +42418,7 @@ var LX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), RX = M(oi)(({
|
|
|
42310
42418
|
};
|
|
42311
42419
|
render() {
|
|
42312
42420
|
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();
|
|
42313
|
-
return /* @__PURE__ */ F(
|
|
42421
|
+
return /* @__PURE__ */ F(qX, {
|
|
42314
42422
|
variant: s ? "filled" : l || "standard",
|
|
42315
42423
|
inputRef: (e) => {
|
|
42316
42424
|
this.inputRef = e;
|
|
@@ -42345,19 +42453,19 @@ var LX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), RX = M(oi)(({
|
|
|
42345
42453
|
};
|
|
42346
42454
|
//#endregion
|
|
42347
42455
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
42348
|
-
function
|
|
42456
|
+
function XX(e) {
|
|
42349
42457
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
42350
42458
|
}
|
|
42351
|
-
function
|
|
42352
|
-
return !e ||
|
|
42459
|
+
function ZX(e, t) {
|
|
42460
|
+
return !e || XX(e) ? e : XX(e.default) ? e.default : t && XX(e[t]) ? e[t] : t && XX(e[t]?.default) ? e[t].default : e;
|
|
42353
42461
|
}
|
|
42354
|
-
var
|
|
42462
|
+
var QX = ZX(lt, "InputContainer") || ZX(tZ.InputContainer, "InputContainer"), $X = Ge, eZ = $X.default, tZ = eZ && typeof eZ == "object" ? eZ : $X, nZ = M("div")(({ theme: e, direction: t }) => ({
|
|
42355
42463
|
display: "flex",
|
|
42356
42464
|
flexWrap: "wrap",
|
|
42357
42465
|
paddingLeft: 0,
|
|
42358
42466
|
marginTop: e.spacing(1),
|
|
42359
42467
|
...t === "vertical" && { flexDirection: "column" }
|
|
42360
|
-
})),
|
|
42468
|
+
})), rZ = class extends yt.Component {
|
|
42361
42469
|
static propTypes = {
|
|
42362
42470
|
header: L.default.string.isRequired,
|
|
42363
42471
|
className: L.default.string,
|
|
@@ -42375,10 +42483,10 @@ var UX = HX(lt, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
|
|
|
42375
42483
|
label: e,
|
|
42376
42484
|
value: e
|
|
42377
42485
|
} : e), s = n || Sl;
|
|
42378
|
-
return /* @__PURE__ */ F(
|
|
42486
|
+
return /* @__PURE__ */ F(QX, {
|
|
42379
42487
|
label: e,
|
|
42380
42488
|
className: t,
|
|
42381
|
-
children: /* @__PURE__ */ F(
|
|
42489
|
+
children: /* @__PURE__ */ F(nZ, {
|
|
42382
42490
|
direction: a,
|
|
42383
42491
|
children: o.map((e, t) => /* @__PURE__ */ F(s, {
|
|
42384
42492
|
value: e.value,
|
|
@@ -42389,7 +42497,7 @@ var UX = HX(lt, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
|
|
|
42389
42497
|
})
|
|
42390
42498
|
});
|
|
42391
42499
|
}
|
|
42392
|
-
},
|
|
42500
|
+
}, iZ = L.default.shape({
|
|
42393
42501
|
label: L.default.string,
|
|
42394
42502
|
value: L.default.string
|
|
42395
42503
|
});
|
|
@@ -42398,14 +42506,14 @@ var UX = HX(lt, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
|
|
|
42398
42506
|
header: L.default.string.isRequired,
|
|
42399
42507
|
value: L.default.string.isRequired,
|
|
42400
42508
|
onChange: L.default.func.isRequired,
|
|
42401
|
-
one: L.default.oneOfType([
|
|
42402
|
-
two: L.default.oneOfType([
|
|
42509
|
+
one: L.default.oneOfType([iZ, L.default.string]),
|
|
42510
|
+
two: L.default.oneOfType([iZ, L.default.string]),
|
|
42403
42511
|
className: L.default.string,
|
|
42404
42512
|
customLabel: L.default.func
|
|
42405
42513
|
};
|
|
42406
42514
|
render() {
|
|
42407
42515
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
42408
|
-
return /* @__PURE__ */ F(
|
|
42516
|
+
return /* @__PURE__ */ F(rZ, {
|
|
42409
42517
|
customLabel: i,
|
|
42410
42518
|
header: n,
|
|
42411
42519
|
className: r,
|
|
@@ -42417,21 +42525,21 @@ var UX = HX(lt, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
|
|
|
42417
42525
|
});
|
|
42418
42526
|
//#endregion
|
|
42419
42527
|
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
42420
|
-
var
|
|
42528
|
+
var aZ = Object.defineProperty, oZ = (e, t) => {
|
|
42421
42529
|
let n = {};
|
|
42422
|
-
for (var r in e)
|
|
42530
|
+
for (var r in e) aZ(n, r, {
|
|
42423
42531
|
get: e[r],
|
|
42424
42532
|
enumerable: !0
|
|
42425
42533
|
});
|
|
42426
|
-
return t ||
|
|
42427
|
-
},
|
|
42534
|
+
return t || aZ(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
42535
|
+
}, sZ = M("div")(() => ({
|
|
42428
42536
|
display: "flex",
|
|
42429
42537
|
flexDirection: "column",
|
|
42430
42538
|
position: "relative"
|
|
42431
|
-
})),
|
|
42539
|
+
})), cZ = M("div")(() => ({
|
|
42432
42540
|
display: "flex",
|
|
42433
42541
|
justifyContent: "space-between"
|
|
42434
|
-
})),
|
|
42542
|
+
})), lZ = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), uZ = M("div")(() => ({ flex: "1" })), dZ = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), fZ = class extends yt.Component {
|
|
42435
42543
|
static propTypes = {
|
|
42436
42544
|
mode: L.default.oneOf(["tabbed", "inline"]),
|
|
42437
42545
|
secondary: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]),
|
|
@@ -42449,7 +42557,7 @@ var XX = Object.defineProperty, ZX = (e, t) => {
|
|
|
42449
42557
|
} catch (e) {
|
|
42450
42558
|
console.log(e.toString());
|
|
42451
42559
|
}
|
|
42452
|
-
return /* @__PURE__ */ I(
|
|
42560
|
+
return /* @__PURE__ */ I(sZ, {
|
|
42453
42561
|
style: {
|
|
42454
42562
|
minHeight: i,
|
|
42455
42563
|
minWidth: a,
|
|
@@ -42457,28 +42565,28 @@ var XX = Object.defineProperty, ZX = (e, t) => {
|
|
|
42457
42565
|
maxWidth: s
|
|
42458
42566
|
},
|
|
42459
42567
|
children: [
|
|
42460
|
-
e === "inline" && /* @__PURE__ */ I(
|
|
42568
|
+
e === "inline" && /* @__PURE__ */ I(cZ, { children: [/* @__PURE__ */ F(uZ, {
|
|
42461
42569
|
className: "design-container",
|
|
42462
42570
|
children: n
|
|
42463
|
-
}), l && /* @__PURE__ */ F(
|
|
42571
|
+
}), l && /* @__PURE__ */ F(dZ, {
|
|
42464
42572
|
className: "settings-container",
|
|
42465
42573
|
children: t
|
|
42466
42574
|
})] }),
|
|
42467
|
-
e === "tabbed" && l && /* @__PURE__ */ I(
|
|
42575
|
+
e === "tabbed" && l && /* @__PURE__ */ I(HX, {
|
|
42468
42576
|
onChange: this.onTabsChange,
|
|
42469
42577
|
contentClassName: "content-container",
|
|
42470
42578
|
indicatorColor: "primary",
|
|
42471
|
-
children: [/* @__PURE__ */ F(
|
|
42579
|
+
children: [/* @__PURE__ */ F(lZ, {
|
|
42472
42580
|
title: "Design",
|
|
42473
42581
|
className: "design-container",
|
|
42474
42582
|
children: n
|
|
42475
|
-
}), /* @__PURE__ */ F(
|
|
42583
|
+
}), /* @__PURE__ */ F(lZ, {
|
|
42476
42584
|
title: "Settings",
|
|
42477
42585
|
className: "settings-container",
|
|
42478
42586
|
children: t
|
|
42479
42587
|
})]
|
|
42480
42588
|
}),
|
|
42481
|
-
e === "tabbed" && !l && /* @__PURE__ */ F(
|
|
42589
|
+
e === "tabbed" && !l && /* @__PURE__ */ F(lZ, {
|
|
42482
42590
|
className: "design-container",
|
|
42483
42591
|
children: n
|
|
42484
42592
|
})
|
|
@@ -42488,18 +42596,18 @@ var XX = Object.defineProperty, ZX = (e, t) => {
|
|
|
42488
42596
|
};
|
|
42489
42597
|
//#endregion
|
|
42490
42598
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
42491
|
-
function
|
|
42492
|
-
return
|
|
42599
|
+
function pZ() {
|
|
42600
|
+
return pZ = Object.assign ? Object.assign.bind() : function(e) {
|
|
42493
42601
|
for (var t = 1; t < arguments.length; t++) {
|
|
42494
42602
|
var n = arguments[t];
|
|
42495
42603
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
42496
42604
|
}
|
|
42497
42605
|
return e;
|
|
42498
|
-
},
|
|
42606
|
+
}, pZ.apply(null, arguments);
|
|
42499
42607
|
}
|
|
42500
42608
|
//#endregion
|
|
42501
42609
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
42502
|
-
function
|
|
42610
|
+
function mZ(e, t) {
|
|
42503
42611
|
if (e == null) return {};
|
|
42504
42612
|
var n = {};
|
|
42505
42613
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -42510,19 +42618,19 @@ function aZ(e, t) {
|
|
|
42510
42618
|
}
|
|
42511
42619
|
//#endregion
|
|
42512
42620
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
42513
|
-
function
|
|
42514
|
-
return
|
|
42621
|
+
function hZ(e, t) {
|
|
42622
|
+
return hZ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
42515
42623
|
return e.__proto__ = t, e;
|
|
42516
|
-
},
|
|
42624
|
+
}, hZ(e, t);
|
|
42517
42625
|
}
|
|
42518
42626
|
//#endregion
|
|
42519
42627
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
42520
|
-
function
|
|
42521
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
42628
|
+
function gZ(e, t) {
|
|
42629
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, hZ(e, t);
|
|
42522
42630
|
}
|
|
42523
42631
|
//#endregion
|
|
42524
42632
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
42525
|
-
var
|
|
42633
|
+
var _Z = (function() {
|
|
42526
42634
|
if (typeof Map < "u") return Map;
|
|
42527
42635
|
function e(e, t) {
|
|
42528
42636
|
var n = -1;
|
|
@@ -42561,34 +42669,34 @@ var cZ = (function() {
|
|
|
42561
42669
|
}
|
|
42562
42670
|
}, t;
|
|
42563
42671
|
}();
|
|
42564
|
-
})(),
|
|
42672
|
+
})(), vZ = typeof window < "u" && typeof document < "u" && window.document === document, yZ = (function() {
|
|
42565
42673
|
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")();
|
|
42566
|
-
})(),
|
|
42567
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
42674
|
+
})(), bZ = (function() {
|
|
42675
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(yZ) : function(e) {
|
|
42568
42676
|
return setTimeout(function() {
|
|
42569
42677
|
return e(Date.now());
|
|
42570
42678
|
}, 1e3 / 60);
|
|
42571
42679
|
};
|
|
42572
|
-
})(),
|
|
42573
|
-
function
|
|
42680
|
+
})(), xZ = 2;
|
|
42681
|
+
function SZ(e, t) {
|
|
42574
42682
|
var n = !1, r = !1, i = 0;
|
|
42575
42683
|
function a() {
|
|
42576
42684
|
n && (n = !1, e()), r && s();
|
|
42577
42685
|
}
|
|
42578
42686
|
function o() {
|
|
42579
|
-
|
|
42687
|
+
bZ(a);
|
|
42580
42688
|
}
|
|
42581
42689
|
function s() {
|
|
42582
42690
|
var e = Date.now();
|
|
42583
42691
|
if (n) {
|
|
42584
|
-
if (e - i <
|
|
42692
|
+
if (e - i < xZ) return;
|
|
42585
42693
|
r = !0;
|
|
42586
42694
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
42587
42695
|
i = e;
|
|
42588
42696
|
}
|
|
42589
42697
|
return s;
|
|
42590
42698
|
}
|
|
42591
|
-
var
|
|
42699
|
+
var CZ = 20, wZ = [
|
|
42592
42700
|
"top",
|
|
42593
42701
|
"right",
|
|
42594
42702
|
"bottom",
|
|
@@ -42597,9 +42705,9 @@ var mZ = 20, hZ = [
|
|
|
42597
42705
|
"height",
|
|
42598
42706
|
"size",
|
|
42599
42707
|
"weight"
|
|
42600
|
-
],
|
|
42708
|
+
], TZ = typeof MutationObserver < "u", EZ = function() {
|
|
42601
42709
|
function e() {
|
|
42602
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
42710
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = SZ(this.refresh.bind(this), CZ);
|
|
42603
42711
|
}
|
|
42604
42712
|
return e.prototype.addObserver = function(e) {
|
|
42605
42713
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -42616,23 +42724,23 @@ var mZ = 20, hZ = [
|
|
|
42616
42724
|
return e.broadcastActive();
|
|
42617
42725
|
}), e.length > 0;
|
|
42618
42726
|
}, e.prototype.connect_ = function() {
|
|
42619
|
-
!
|
|
42727
|
+
!vZ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), TZ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
42620
42728
|
attributes: !0,
|
|
42621
42729
|
childList: !0,
|
|
42622
42730
|
characterData: !0,
|
|
42623
42731
|
subtree: !0
|
|
42624
42732
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
42625
42733
|
}, e.prototype.disconnect_ = function() {
|
|
42626
|
-
!
|
|
42734
|
+
!vZ || !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);
|
|
42627
42735
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
42628
42736
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
42629
|
-
|
|
42737
|
+
wZ.some(function(e) {
|
|
42630
42738
|
return !!~n.indexOf(e);
|
|
42631
42739
|
}) && this.refresh();
|
|
42632
42740
|
}, e.getInstance = function() {
|
|
42633
42741
|
return this.instance_ ||= new e(), this.instance_;
|
|
42634
42742
|
}, e.instance_ = null, e;
|
|
42635
|
-
}(),
|
|
42743
|
+
}(), DZ = (function(e, t) {
|
|
42636
42744
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
42637
42745
|
var i = r[n];
|
|
42638
42746
|
Object.defineProperty(e, i, {
|
|
@@ -42643,19 +42751,19 @@ var mZ = 20, hZ = [
|
|
|
42643
42751
|
});
|
|
42644
42752
|
}
|
|
42645
42753
|
return e;
|
|
42646
|
-
}),
|
|
42647
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
42648
|
-
}),
|
|
42649
|
-
function
|
|
42754
|
+
}), OZ = (function(e) {
|
|
42755
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || yZ;
|
|
42756
|
+
}), kZ = zZ(0, 0, 0, 0);
|
|
42757
|
+
function AZ(e) {
|
|
42650
42758
|
return parseFloat(e) || 0;
|
|
42651
42759
|
}
|
|
42652
|
-
function
|
|
42760
|
+
function jZ(e) {
|
|
42653
42761
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
42654
42762
|
var r = e["border-" + n + "-width"];
|
|
42655
|
-
return t +
|
|
42763
|
+
return t + AZ(r);
|
|
42656
42764
|
}, 0);
|
|
42657
42765
|
}
|
|
42658
|
-
function
|
|
42766
|
+
function MZ(e) {
|
|
42659
42767
|
for (var t = [
|
|
42660
42768
|
"top",
|
|
42661
42769
|
"right",
|
|
@@ -42663,40 +42771,40 @@ function CZ(e) {
|
|
|
42663
42771
|
"left"
|
|
42664
42772
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
42665
42773
|
var a = i[r], o = e["padding-" + a];
|
|
42666
|
-
n[a] =
|
|
42774
|
+
n[a] = AZ(o);
|
|
42667
42775
|
}
|
|
42668
42776
|
return n;
|
|
42669
42777
|
}
|
|
42670
|
-
function
|
|
42778
|
+
function NZ(e) {
|
|
42671
42779
|
var t = e.getBBox();
|
|
42672
|
-
return
|
|
42780
|
+
return zZ(0, 0, t.width, t.height);
|
|
42673
42781
|
}
|
|
42674
|
-
function
|
|
42782
|
+
function PZ(e) {
|
|
42675
42783
|
var t = e.clientWidth, n = e.clientHeight;
|
|
42676
|
-
if (!t && !n) return
|
|
42677
|
-
var r =
|
|
42678
|
-
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -=
|
|
42784
|
+
if (!t && !n) return kZ;
|
|
42785
|
+
var r = OZ(e).getComputedStyle(e), i = MZ(r), a = i.left + i.right, o = i.top + i.bottom, s = AZ(r.width), c = AZ(r.height);
|
|
42786
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= jZ(r, "left", "right") + a), Math.round(c + o) !== n && (c -= jZ(r, "top", "bottom") + o)), !IZ(e)) {
|
|
42679
42787
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
42680
42788
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
42681
42789
|
}
|
|
42682
|
-
return
|
|
42790
|
+
return zZ(i.left, i.top, s, c);
|
|
42683
42791
|
}
|
|
42684
|
-
var
|
|
42792
|
+
var FZ = (function() {
|
|
42685
42793
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
42686
|
-
return e instanceof
|
|
42794
|
+
return e instanceof OZ(e).SVGGraphicsElement;
|
|
42687
42795
|
} : function(e) {
|
|
42688
|
-
return e instanceof
|
|
42796
|
+
return e instanceof OZ(e).SVGElement && typeof e.getBBox == "function";
|
|
42689
42797
|
};
|
|
42690
42798
|
})();
|
|
42691
|
-
function
|
|
42692
|
-
return e ===
|
|
42799
|
+
function IZ(e) {
|
|
42800
|
+
return e === OZ(e).document.documentElement;
|
|
42693
42801
|
}
|
|
42694
|
-
function
|
|
42695
|
-
return
|
|
42802
|
+
function LZ(e) {
|
|
42803
|
+
return vZ ? FZ(e) ? NZ(e) : PZ(e) : kZ;
|
|
42696
42804
|
}
|
|
42697
|
-
function
|
|
42805
|
+
function RZ(e) {
|
|
42698
42806
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
42699
|
-
return
|
|
42807
|
+
return DZ(a, {
|
|
42700
42808
|
x: t,
|
|
42701
42809
|
y: n,
|
|
42702
42810
|
width: r,
|
|
@@ -42707,7 +42815,7 @@ function kZ(e) {
|
|
|
42707
42815
|
left: t
|
|
42708
42816
|
}), a;
|
|
42709
42817
|
}
|
|
42710
|
-
function
|
|
42818
|
+
function zZ(e, t, n, r) {
|
|
42711
42819
|
return {
|
|
42712
42820
|
x: e,
|
|
42713
42821
|
y: t,
|
|
@@ -42715,42 +42823,42 @@ function AZ(e, t, n, r) {
|
|
|
42715
42823
|
height: r
|
|
42716
42824
|
};
|
|
42717
42825
|
}
|
|
42718
|
-
var
|
|
42826
|
+
var BZ = function() {
|
|
42719
42827
|
function e(e) {
|
|
42720
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
42828
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = zZ(0, 0, 0, 0), this.target = e;
|
|
42721
42829
|
}
|
|
42722
42830
|
return e.prototype.isActive = function() {
|
|
42723
|
-
var e =
|
|
42831
|
+
var e = LZ(this.target);
|
|
42724
42832
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
42725
42833
|
}, e.prototype.broadcastRect = function() {
|
|
42726
42834
|
var e = this.contentRect_;
|
|
42727
42835
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
42728
42836
|
}, e;
|
|
42729
|
-
}(),
|
|
42837
|
+
}(), VZ = function() {
|
|
42730
42838
|
function e(e, t) {
|
|
42731
|
-
var n =
|
|
42732
|
-
|
|
42839
|
+
var n = RZ(t);
|
|
42840
|
+
DZ(this, {
|
|
42733
42841
|
target: e,
|
|
42734
42842
|
contentRect: n
|
|
42735
42843
|
});
|
|
42736
42844
|
}
|
|
42737
42845
|
return e;
|
|
42738
|
-
}(),
|
|
42846
|
+
}(), HZ = function() {
|
|
42739
42847
|
function e(e, t, n) {
|
|
42740
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
42848
|
+
if (this.activeObservations_ = [], this.observations_ = new _Z(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
42741
42849
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
42742
42850
|
}
|
|
42743
42851
|
return e.prototype.observe = function(e) {
|
|
42744
42852
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42745
42853
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
42746
|
-
if (!(e instanceof
|
|
42854
|
+
if (!(e instanceof OZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
42747
42855
|
var t = this.observations_;
|
|
42748
|
-
t.has(e) || (t.set(e, new
|
|
42856
|
+
t.has(e) || (t.set(e, new BZ(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
42749
42857
|
}
|
|
42750
42858
|
}, e.prototype.unobserve = function(e) {
|
|
42751
42859
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42752
42860
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
42753
|
-
if (!(e instanceof
|
|
42861
|
+
if (!(e instanceof OZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
42754
42862
|
var t = this.observations_;
|
|
42755
42863
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
42756
42864
|
}
|
|
@@ -42764,7 +42872,7 @@ var jZ = function() {
|
|
|
42764
42872
|
}, e.prototype.broadcastActive = function() {
|
|
42765
42873
|
if (this.hasActive()) {
|
|
42766
42874
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
42767
|
-
return new
|
|
42875
|
+
return new VZ(e.target, e.broadcastRect());
|
|
42768
42876
|
});
|
|
42769
42877
|
this.callback_.call(e, t, e), this.clearActive();
|
|
42770
42878
|
}
|
|
@@ -42773,12 +42881,12 @@ var jZ = function() {
|
|
|
42773
42881
|
}, e.prototype.hasActive = function() {
|
|
42774
42882
|
return this.activeObservations_.length > 0;
|
|
42775
42883
|
}, e;
|
|
42776
|
-
}(),
|
|
42884
|
+
}(), UZ = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new _Z(), WZ = function() {
|
|
42777
42885
|
function e(t) {
|
|
42778
42886
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
42779
42887
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42780
|
-
var n = new
|
|
42781
|
-
|
|
42888
|
+
var n = new HZ(t, EZ.getInstance(), this);
|
|
42889
|
+
UZ.set(this, n);
|
|
42782
42890
|
}
|
|
42783
42891
|
return e;
|
|
42784
42892
|
}();
|
|
@@ -42787,27 +42895,27 @@ var jZ = function() {
|
|
|
42787
42895
|
"unobserve",
|
|
42788
42896
|
"disconnect"
|
|
42789
42897
|
].forEach(function(e) {
|
|
42790
|
-
|
|
42898
|
+
WZ.prototype[e] = function() {
|
|
42791
42899
|
var t;
|
|
42792
|
-
return (t =
|
|
42900
|
+
return (t = UZ.get(this))[e].apply(t, arguments);
|
|
42793
42901
|
};
|
|
42794
42902
|
});
|
|
42795
|
-
var
|
|
42796
|
-
return
|
|
42797
|
-
})(),
|
|
42903
|
+
var GZ = (function() {
|
|
42904
|
+
return yZ.ResizeObserver === void 0 ? WZ : yZ.ResizeObserver;
|
|
42905
|
+
})(), KZ = [
|
|
42798
42906
|
"client",
|
|
42799
42907
|
"offset",
|
|
42800
42908
|
"scroll",
|
|
42801
42909
|
"bounds",
|
|
42802
42910
|
"margin"
|
|
42803
42911
|
];
|
|
42804
|
-
function
|
|
42912
|
+
function qZ(e) {
|
|
42805
42913
|
var t = [];
|
|
42806
|
-
return
|
|
42914
|
+
return KZ.forEach(function(n) {
|
|
42807
42915
|
e[n] && t.push(n);
|
|
42808
42916
|
}), t;
|
|
42809
42917
|
}
|
|
42810
|
-
function
|
|
42918
|
+
function JZ(e, t) {
|
|
42811
42919
|
var n = {};
|
|
42812
42920
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
42813
42921
|
top: e.clientTop,
|
|
@@ -42846,14 +42954,14 @@ function zZ(e, t) {
|
|
|
42846
42954
|
}
|
|
42847
42955
|
return n;
|
|
42848
42956
|
}
|
|
42849
|
-
function
|
|
42957
|
+
function YZ(e) {
|
|
42850
42958
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
42851
42959
|
}
|
|
42852
|
-
function
|
|
42960
|
+
function XZ(e) {
|
|
42853
42961
|
return function(t) {
|
|
42854
42962
|
var n, r;
|
|
42855
42963
|
return r = n = /*#__PURE__*/ function(n) {
|
|
42856
|
-
|
|
42964
|
+
gZ(r, n);
|
|
42857
42965
|
function r() {
|
|
42858
42966
|
var t, r = [...arguments];
|
|
42859
42967
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -42864,24 +42972,24 @@ function VZ(e) {
|
|
|
42864
42972
|
bounds: {},
|
|
42865
42973
|
margin: {}
|
|
42866
42974
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
42867
|
-
var r =
|
|
42975
|
+
var r = JZ(t._node, e || qZ(t.props));
|
|
42868
42976
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
42869
42977
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
42870
42978
|
});
|
|
42871
42979
|
}, t._handleRef = function(e) {
|
|
42872
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
42980
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = YZ(t._node);
|
|
42873
42981
|
var n = t.props.innerRef;
|
|
42874
42982
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
42875
42983
|
}, t;
|
|
42876
42984
|
}
|
|
42877
42985
|
var i = r.prototype;
|
|
42878
42986
|
return i.componentDidMount = function() {
|
|
42879
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
42987
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new GZ(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(JZ(this._node, e || qZ(this.props))));
|
|
42880
42988
|
}, i.componentWillUnmount = function() {
|
|
42881
42989
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
42882
42990
|
}, i.render = function() {
|
|
42883
42991
|
var e = this.props;
|
|
42884
|
-
return e.innerRef, e.onResize, St(t,
|
|
42992
|
+
return e.innerRef, e.onResize, St(t, pZ({}, mZ(e, ["innerRef", "onResize"]), {
|
|
42885
42993
|
measureRef: this._handleRef,
|
|
42886
42994
|
measure: this.measure,
|
|
42887
42995
|
contentRect: this.state.contentRect
|
|
@@ -42898,7 +43006,7 @@ function VZ(e) {
|
|
|
42898
43006
|
}, r;
|
|
42899
43007
|
};
|
|
42900
43008
|
}
|
|
42901
|
-
var
|
|
43009
|
+
var ZZ = XZ()(function(e) {
|
|
42902
43010
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
42903
43011
|
return i({
|
|
42904
43012
|
measure: t,
|
|
@@ -42906,10 +43014,10 @@ var HZ = VZ()(function(e) {
|
|
|
42906
43014
|
contentRect: r
|
|
42907
43015
|
});
|
|
42908
43016
|
});
|
|
42909
|
-
|
|
43017
|
+
ZZ.displayName = "Measure", ZZ.propTypes.children = L.default.func;
|
|
42910
43018
|
//#endregion
|
|
42911
43019
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
42912
|
-
var
|
|
43020
|
+
var QZ = M("div")(() => ({
|
|
42913
43021
|
backgroundColor: k.white(),
|
|
42914
43022
|
border: `2px solid ${k.border()}`,
|
|
42915
43023
|
display: "flex",
|
|
@@ -42919,7 +43027,7 @@ var UZ = M("div")(() => ({
|
|
|
42919
43027
|
maxWidth: "300px",
|
|
42920
43028
|
padding: "20px 4px 4px 20px",
|
|
42921
43029
|
zIndex: 99
|
|
42922
|
-
})),
|
|
43030
|
+
})), $Z = class extends yt.Component {
|
|
42923
43031
|
static propTypes = {
|
|
42924
43032
|
className: L.default.string,
|
|
42925
43033
|
children: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]).isRequired
|
|
@@ -42927,19 +43035,19 @@ var UZ = M("div")(() => ({
|
|
|
42927
43035
|
static defaultProps = {};
|
|
42928
43036
|
render() {
|
|
42929
43037
|
let { className: e, children: t } = this.props;
|
|
42930
|
-
return /* @__PURE__ */ F(
|
|
43038
|
+
return /* @__PURE__ */ F(QZ, {
|
|
42931
43039
|
className: e,
|
|
42932
43040
|
children: t
|
|
42933
43041
|
});
|
|
42934
43042
|
}
|
|
42935
|
-
},
|
|
43043
|
+
}, eQ = ye({
|
|
42936
43044
|
typography: { fontFamily: "inherit" },
|
|
42937
43045
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
42938
43046
|
backgroundColor: "#e0e0e0",
|
|
42939
43047
|
color: "#000000",
|
|
42940
43048
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
42941
43049
|
} } } }
|
|
42942
|
-
}),
|
|
43050
|
+
}), tQ = class extends yt.Component {
|
|
42943
43051
|
static propTypes = {
|
|
42944
43052
|
children: L.default.oneOfType([
|
|
42945
43053
|
L.default.string,
|
|
@@ -42972,19 +43080,19 @@ var UZ = M("div")(() => ({
|
|
|
42972
43080
|
return /* @__PURE__ */ F(He, {
|
|
42973
43081
|
injectFirst: !0,
|
|
42974
43082
|
children: /* @__PURE__ */ F(Te, {
|
|
42975
|
-
theme:
|
|
42976
|
-
children: /* @__PURE__ */ F(
|
|
43083
|
+
theme: eQ,
|
|
43084
|
+
children: /* @__PURE__ */ F(ZZ, {
|
|
42977
43085
|
bounds: !0,
|
|
42978
43086
|
onResize: this.onResize,
|
|
42979
43087
|
children: ({ measureRef: e }) => {
|
|
42980
|
-
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(
|
|
43088
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F($Z, {
|
|
42981
43089
|
className: "settings-box",
|
|
42982
43090
|
children: n
|
|
42983
43091
|
}) : n;
|
|
42984
43092
|
return /* @__PURE__ */ I("div", {
|
|
42985
43093
|
ref: e,
|
|
42986
43094
|
className: "main-container extraCSSRules",
|
|
42987
|
-
children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(
|
|
43095
|
+
children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(fZ, {
|
|
42988
43096
|
mode: o,
|
|
42989
43097
|
secondary: s,
|
|
42990
43098
|
dimensions: i,
|
|
@@ -42996,27 +43104,27 @@ var UZ = M("div")(() => ({
|
|
|
42996
43104
|
})
|
|
42997
43105
|
});
|
|
42998
43106
|
}
|
|
42999
|
-
},
|
|
43000
|
-
ConfigLayout: () =>
|
|
43001
|
-
LayoutContents: () =>
|
|
43002
|
-
}),
|
|
43107
|
+
}, nQ = XZ("bounds")(tQ), rQ = /* @__PURE__ */ oZ({
|
|
43108
|
+
ConfigLayout: () => nQ,
|
|
43109
|
+
LayoutContents: () => fZ
|
|
43110
|
+
}), iQ = M("div")(() => ({
|
|
43003
43111
|
display: "flex",
|
|
43004
43112
|
width: "100%",
|
|
43005
43113
|
justifyContent: "space-between"
|
|
43006
|
-
})),
|
|
43114
|
+
})), aQ = M(ht)(({ theme: e }) => ({
|
|
43007
43115
|
color: "rgba(0, 0, 0, 0.89)",
|
|
43008
43116
|
fontSize: e.typography.fontSize,
|
|
43009
43117
|
paddingTop: e.spacing(2)
|
|
43010
|
-
})),
|
|
43118
|
+
})), oQ = M(on)(({ checked: e }) => ({
|
|
43011
43119
|
"&.Mui-checked .MuiSwitch-thumb": { color: `${k.tertiary()} !important` },
|
|
43012
43120
|
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${k.tertiaryLight()} !important` },
|
|
43013
43121
|
"& .MuiSwitch-track": { backgroundColor: e ? `${k.tertiaryLight()} !important` : void 0 }
|
|
43014
|
-
})),
|
|
43122
|
+
})), sQ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I(iQ, { children: [/* @__PURE__ */ F(aQ, { children: n }), /* @__PURE__ */ F(oQ, {
|
|
43015
43123
|
checked: e,
|
|
43016
43124
|
disabled: t,
|
|
43017
43125
|
onChange: (e) => r(e.target.checked)
|
|
43018
43126
|
})] });
|
|
43019
|
-
|
|
43127
|
+
sQ.propTypes = {
|
|
43020
43128
|
checked: L.default.bool,
|
|
43021
43129
|
disabled: L.default.bool,
|
|
43022
43130
|
label: L.default.string.isRequired,
|
|
@@ -43024,20 +43132,20 @@ QZ.propTypes = {
|
|
|
43024
43132
|
};
|
|
43025
43133
|
//#endregion
|
|
43026
43134
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
43027
|
-
var
|
|
43135
|
+
var cQ = M(yn)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
43028
43136
|
color: "rgba(0, 0, 0, 0.89)",
|
|
43029
43137
|
fontSize: e.typography.fontSize - 2,
|
|
43030
43138
|
left: "-5px",
|
|
43031
43139
|
position: "relative"
|
|
43032
|
-
} })),
|
|
43140
|
+
} })), lQ = M(Mc)(() => ({ color: `${k.tertiary()} !important` })), uQ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(cQ, {
|
|
43033
43141
|
value: t,
|
|
43034
|
-
control: /* @__PURE__ */ F(
|
|
43142
|
+
control: /* @__PURE__ */ F(lQ, {
|
|
43035
43143
|
checked: n,
|
|
43036
43144
|
onChange: r
|
|
43037
43145
|
}),
|
|
43038
43146
|
label: e
|
|
43039
43147
|
});
|
|
43040
|
-
|
|
43148
|
+
uQ.propTypes = {
|
|
43041
43149
|
label: L.default.string,
|
|
43042
43150
|
value: L.default.string,
|
|
43043
43151
|
checked: L.default.bool,
|
|
@@ -43045,26 +43153,26 @@ tQ.propTypes = {
|
|
|
43045
43153
|
};
|
|
43046
43154
|
//#endregion
|
|
43047
43155
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
43048
|
-
var
|
|
43156
|
+
var dQ = (0, Dn.default)("pie-lib:config-ui:settings:panel"), fQ = {
|
|
43049
43157
|
label: L.default.string,
|
|
43050
43158
|
value: L.default.string
|
|
43051
|
-
},
|
|
43159
|
+
}, pQ = {
|
|
43052
43160
|
label: L.default.string,
|
|
43053
43161
|
value: L.default.string,
|
|
43054
43162
|
onChange: L.default.func
|
|
43055
|
-
},
|
|
43163
|
+
}, mQ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(GX, {
|
|
43056
43164
|
checked: t,
|
|
43057
43165
|
label: e,
|
|
43058
43166
|
onChange: (e) => {
|
|
43059
43167
|
n(e.target.checked);
|
|
43060
43168
|
}
|
|
43061
43169
|
});
|
|
43062
|
-
|
|
43170
|
+
mQ.propTypes = {
|
|
43063
43171
|
label: L.default.string,
|
|
43064
43172
|
value: L.default.bool,
|
|
43065
43173
|
onChange: L.default.func
|
|
43066
43174
|
};
|
|
43067
|
-
var
|
|
43175
|
+
var hQ = M(rZ)(({ theme: e }) => ({
|
|
43068
43176
|
marginTop: e.spacing(.5),
|
|
43069
43177
|
paddingBottom: e.spacing(.5),
|
|
43070
43178
|
width: "100%",
|
|
@@ -43075,29 +43183,29 @@ var oQ = M(JX)(({ theme: e }) => ({
|
|
|
43075
43183
|
marginTop: e.spacing(2.5)
|
|
43076
43184
|
},
|
|
43077
43185
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
43078
|
-
})),
|
|
43186
|
+
})), gQ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(hQ, {
|
|
43079
43187
|
direction: "horizontal",
|
|
43080
|
-
customLabel:
|
|
43188
|
+
customLabel: uQ,
|
|
43081
43189
|
value: t,
|
|
43082
43190
|
header: e,
|
|
43083
43191
|
opts: r,
|
|
43084
43192
|
onChange: n
|
|
43085
43193
|
});
|
|
43086
|
-
|
|
43087
|
-
...
|
|
43088
|
-
choices: L.default.arrayOf(L.default.shape(
|
|
43194
|
+
gQ.propTypes = {
|
|
43195
|
+
...pQ,
|
|
43196
|
+
choices: L.default.arrayOf(L.default.shape(fQ))
|
|
43089
43197
|
};
|
|
43090
|
-
var
|
|
43198
|
+
var _Q = gQ, vQ = M("p")(({ theme: e }) => ({
|
|
43091
43199
|
margin: 0,
|
|
43092
43200
|
fontSize: e.typography.fontSize
|
|
43093
|
-
})),
|
|
43201
|
+
})), yQ = M(ti)(({ theme: e }) => ({
|
|
43094
43202
|
marginTop: e.spacing(.5),
|
|
43095
43203
|
border: "2px solid lightgrey",
|
|
43096
43204
|
padding: `0 ${e.spacing(1)}`,
|
|
43097
43205
|
borderRadius: "4px"
|
|
43098
|
-
})),
|
|
43206
|
+
})), bQ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
43099
43207
|
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
43100
|
-
return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(
|
|
43208
|
+
return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(vQ, { children: e }), /* @__PURE__ */ F(yQ, {
|
|
43101
43209
|
value: t || r && r[0],
|
|
43102
43210
|
onChange: ({ target: e }) => n(e.value),
|
|
43103
43211
|
input: /* @__PURE__ */ F(rr, { id: `dropdown-${e}` }),
|
|
@@ -43112,14 +43220,14 @@ var cQ = sQ, lQ = M("p")(({ theme: e }) => ({
|
|
|
43112
43220
|
}, t))
|
|
43113
43221
|
})] });
|
|
43114
43222
|
};
|
|
43115
|
-
|
|
43116
|
-
...
|
|
43223
|
+
bQ.propTypes = {
|
|
43224
|
+
...pQ,
|
|
43117
43225
|
choices: L.default.arrayOf(L.default.string)
|
|
43118
43226
|
};
|
|
43119
|
-
var
|
|
43227
|
+
var xQ = M(pn)(({ theme: e }) => ({
|
|
43120
43228
|
marginRight: e.spacing(3),
|
|
43121
43229
|
marginTop: e.spacing(1)
|
|
43122
|
-
})),
|
|
43230
|
+
})), SQ = ({ label: e }) => /* @__PURE__ */ F(xQ, { children: e }), CQ = M(YX)(({ theme: e }) => ({
|
|
43123
43231
|
width: "35%",
|
|
43124
43232
|
marginRight: e.spacing(3),
|
|
43125
43233
|
marginTop: e.spacing(1),
|
|
@@ -43130,7 +43238,7 @@ var fQ = M(pn)(({ theme: e }) => ({
|
|
|
43130
43238
|
padding: `0 ${e.spacing(1)}`,
|
|
43131
43239
|
backgroundColor: "transparent"
|
|
43132
43240
|
}
|
|
43133
|
-
})),
|
|
43241
|
+
})), wQ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(CQ, {
|
|
43134
43242
|
variant: "standard",
|
|
43135
43243
|
label: e || "Label",
|
|
43136
43244
|
value: t,
|
|
@@ -43141,45 +43249,45 @@ var fQ = M(pn)(({ theme: e }) => ({
|
|
|
43141
43249
|
showErrorWhenOutsideRange: !0,
|
|
43142
43250
|
disableUnderline: !0
|
|
43143
43251
|
});
|
|
43144
|
-
|
|
43145
|
-
...
|
|
43252
|
+
wQ.propTypes = {
|
|
43253
|
+
...pQ,
|
|
43146
43254
|
suffix: L.default.string,
|
|
43147
43255
|
min: L.default.number,
|
|
43148
43256
|
max: L.default.number,
|
|
43149
43257
|
value: L.default.number
|
|
43150
|
-
},
|
|
43151
|
-
var
|
|
43258
|
+
}, SQ.propTypes = { ...pQ };
|
|
43259
|
+
var TQ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(sQ, {
|
|
43152
43260
|
label: t,
|
|
43153
43261
|
checked: !!n,
|
|
43154
43262
|
disabled: !!e,
|
|
43155
43263
|
toggle: r
|
|
43156
43264
|
});
|
|
43157
|
-
|
|
43158
|
-
...
|
|
43265
|
+
TQ.propTypes = {
|
|
43266
|
+
...pQ,
|
|
43159
43267
|
value: L.default.bool
|
|
43160
43268
|
};
|
|
43161
|
-
var
|
|
43162
|
-
toggle:
|
|
43163
|
-
radio:
|
|
43164
|
-
dropdown:
|
|
43165
|
-
numberField:
|
|
43166
|
-
checkbox:
|
|
43167
|
-
textField:
|
|
43168
|
-
},
|
|
43269
|
+
var EQ = {
|
|
43270
|
+
toggle: TQ,
|
|
43271
|
+
radio: _Q,
|
|
43272
|
+
dropdown: bQ,
|
|
43273
|
+
numberField: wQ,
|
|
43274
|
+
checkbox: mQ,
|
|
43275
|
+
textField: SQ
|
|
43276
|
+
}, DQ = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), OQ = M("div")(({ theme: e }) => ({
|
|
43169
43277
|
color: "#495B8F",
|
|
43170
43278
|
fontSize: e.typography.fontSize + 2,
|
|
43171
43279
|
fontWeight: 600,
|
|
43172
43280
|
marginBottom: e.spacing(1)
|
|
43173
|
-
})),
|
|
43281
|
+
})), kQ = M("p")(({ theme: e }) => ({
|
|
43174
43282
|
fontSize: e.typography.fontSize,
|
|
43175
43283
|
marginBottom: 0
|
|
43176
|
-
})),
|
|
43284
|
+
})), AQ = (e) => {
|
|
43177
43285
|
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
43178
43286
|
let { isConfigProperty: o, ...s } = u(e, r || n), c = u(o ? i : t, n), l = {
|
|
43179
43287
|
...s,
|
|
43180
43288
|
key: n,
|
|
43181
43289
|
value: c
|
|
43182
|
-
}, d =
|
|
43290
|
+
}, d = EQ[l.type];
|
|
43183
43291
|
return /* @__PURE__ */ F(d, {
|
|
43184
43292
|
...l,
|
|
43185
43293
|
onChange: (e) => a(n, e, o)
|
|
@@ -43188,18 +43296,18 @@ var _Q = {
|
|
|
43188
43296
|
let n = e[t];
|
|
43189
43297
|
if (!n) return null;
|
|
43190
43298
|
let { type: r, label: i, fields: a, choices: s } = n;
|
|
43191
|
-
return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(
|
|
43299
|
+
return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(kQ, { 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);
|
|
43192
43300
|
};
|
|
43193
|
-
return /* @__PURE__ */ I(
|
|
43301
|
+
return /* @__PURE__ */ I(DQ, { children: [/* @__PURE__ */ F(OQ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
43194
43302
|
};
|
|
43195
|
-
|
|
43303
|
+
AQ.propTypes = {
|
|
43196
43304
|
model: L.default.object,
|
|
43197
43305
|
label: L.default.string,
|
|
43198
43306
|
group: L.default.object,
|
|
43199
43307
|
configuration: L.default.object,
|
|
43200
43308
|
onChange: L.default.func
|
|
43201
43309
|
};
|
|
43202
|
-
var
|
|
43310
|
+
var jQ = class extends yt.Component {
|
|
43203
43311
|
static propTypes = {
|
|
43204
43312
|
model: L.default.object,
|
|
43205
43313
|
configuration: L.default.object,
|
|
@@ -43213,13 +43321,13 @@ var SQ = class extends yt.Component {
|
|
|
43213
43321
|
onChangeConfiguration: () => {}
|
|
43214
43322
|
};
|
|
43215
43323
|
change = (e, t, n = !1) => {
|
|
43216
|
-
|
|
43324
|
+
dQ("[changeModel]", e, t);
|
|
43217
43325
|
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
|
|
43218
43326
|
n ? (m(o, e, t), i(o, e)) : (m(a, e, t), r(a, e));
|
|
43219
43327
|
};
|
|
43220
43328
|
render() {
|
|
43221
43329
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
43222
|
-
return
|
|
43330
|
+
return dQ("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(AQ, {
|
|
43223
43331
|
label: r,
|
|
43224
43332
|
model: t,
|
|
43225
43333
|
configuration: n,
|
|
@@ -43227,59 +43335,59 @@ var SQ = class extends yt.Component {
|
|
|
43227
43335
|
onChange: this.change
|
|
43228
43336
|
}, r) : null), r] });
|
|
43229
43337
|
}
|
|
43230
|
-
},
|
|
43231
|
-
Panel: () =>
|
|
43232
|
-
checkbox: () =>
|
|
43233
|
-
checkboxes: () =>
|
|
43234
|
-
dropdown: () =>
|
|
43235
|
-
numberField: () =>
|
|
43236
|
-
numberFields: () =>
|
|
43237
|
-
radio: () =>
|
|
43238
|
-
textField: () =>
|
|
43239
|
-
toggle: () =>
|
|
43240
|
-
}),
|
|
43338
|
+
}, MQ = /* @__PURE__ */ oZ({
|
|
43339
|
+
Panel: () => jQ,
|
|
43340
|
+
checkbox: () => BQ,
|
|
43341
|
+
checkboxes: () => VQ,
|
|
43342
|
+
dropdown: () => LQ,
|
|
43343
|
+
numberField: () => RQ,
|
|
43344
|
+
numberFields: () => zQ,
|
|
43345
|
+
radio: () => IQ,
|
|
43346
|
+
textField: () => NQ,
|
|
43347
|
+
toggle: () => PQ
|
|
43348
|
+
}), NQ = (e, t = !0) => ({
|
|
43241
43349
|
label: e,
|
|
43242
43350
|
type: "textField",
|
|
43243
43351
|
isConfigProperty: t
|
|
43244
|
-
}),
|
|
43352
|
+
}), PQ = (e, t = !1, n = !1) => ({
|
|
43245
43353
|
type: "toggle",
|
|
43246
43354
|
label: e,
|
|
43247
43355
|
isConfigProperty: t,
|
|
43248
43356
|
disabled: n
|
|
43249
|
-
}),
|
|
43357
|
+
}), FQ = (e) => typeof e == "string" ? {
|
|
43250
43358
|
label: e,
|
|
43251
43359
|
value: e
|
|
43252
|
-
} : e,
|
|
43360
|
+
} : e, IQ = function() {
|
|
43253
43361
|
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
43254
43362
|
return {
|
|
43255
43363
|
type: "radio",
|
|
43256
43364
|
label: e,
|
|
43257
|
-
choices: t && t.map((e) =>
|
|
43365
|
+
choices: t && t.map((e) => FQ(e)),
|
|
43258
43366
|
isConfigProperty: n
|
|
43259
43367
|
};
|
|
43260
|
-
},
|
|
43368
|
+
}, LQ = (e, t, n = !1) => ({
|
|
43261
43369
|
type: "dropdown",
|
|
43262
43370
|
label: e,
|
|
43263
43371
|
choices: t,
|
|
43264
43372
|
isConfigProperty: n
|
|
43265
|
-
}),
|
|
43373
|
+
}), RQ = (e, t, n = !1) => ({
|
|
43266
43374
|
...t,
|
|
43267
43375
|
label: e,
|
|
43268
43376
|
type: "numberField",
|
|
43269
43377
|
isConfigProperty: n
|
|
43270
|
-
}),
|
|
43271
|
-
t[e] =
|
|
43378
|
+
}), zQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
43379
|
+
t[e] = RQ(t[e].label, t[e], n);
|
|
43272
43380
|
}), {
|
|
43273
43381
|
type: "numberFields",
|
|
43274
43382
|
label: e,
|
|
43275
43383
|
fields: t
|
|
43276
|
-
}),
|
|
43384
|
+
}), BQ = (e, t, n = !1) => ({
|
|
43277
43385
|
...t,
|
|
43278
43386
|
label: e,
|
|
43279
43387
|
type: "checkbox",
|
|
43280
43388
|
isConfigProperty: n
|
|
43281
|
-
}),
|
|
43282
|
-
t[e] =
|
|
43389
|
+
}), VQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
43390
|
+
t[e] = BQ(t[e].label, t[e], n);
|
|
43283
43391
|
}), {
|
|
43284
43392
|
type: "checkboxes",
|
|
43285
43393
|
label: e,
|
|
@@ -43287,31 +43395,31 @@ var SQ = class extends yt.Component {
|
|
|
43287
43395
|
});
|
|
43288
43396
|
//#endregion
|
|
43289
43397
|
//#region ../../lib-react/config-ui/dist/index.js
|
|
43290
|
-
function
|
|
43398
|
+
function HQ(e) {
|
|
43291
43399
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
43292
43400
|
}
|
|
43293
|
-
function
|
|
43294
|
-
return !e ||
|
|
43401
|
+
function UQ(e, t) {
|
|
43402
|
+
return !e || HQ(e) ? e : HQ(e.default) ? e.default : t && HQ(e[t]) ? e[t] : t && HQ(e[t]?.default) ? e[t].default : e;
|
|
43295
43403
|
}
|
|
43296
|
-
var
|
|
43404
|
+
var WQ = UQ(lt, "InputContainer") || UQ(qQ.InputContainer, "InputContainer"), GQ = Ge, KQ = GQ.default, qQ = KQ && typeof KQ == "object" ? KQ : GQ, JQ = $e(/*#__PURE__*/ F("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), YQ = function() {
|
|
43297
43405
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = document.createElement("div");
|
|
43298
43406
|
return t.innerHTML = e.trim(), t;
|
|
43299
|
-
},
|
|
43407
|
+
}, XQ = function(e, t) {
|
|
43300
43408
|
return t ? e.innerHTML : `${e.innerHTML}
|
|
43301
43409
|
|
|
43302
43410
|
`;
|
|
43303
|
-
},
|
|
43411
|
+
}, ZQ = function(e) {
|
|
43304
43412
|
var t = e.querySelectorAll("div[separator=true]"), n = "";
|
|
43305
43413
|
return t.forEach(function(e, r) {
|
|
43306
|
-
n +=
|
|
43414
|
+
n += XQ(e, r === t.length - 1);
|
|
43307
43415
|
}), n || null;
|
|
43308
|
-
},
|
|
43309
|
-
var t =
|
|
43310
|
-
return n.innerHTML = `<div separator='true'>${t.innerHTML}</div>`, t = n, Array.from(t.querySelectorAll("*")).length === 0 ? e :
|
|
43311
|
-
},
|
|
43416
|
+
}, QQ = function(e) {
|
|
43417
|
+
var t = YQ(e), n = document.createElement("div");
|
|
43418
|
+
return n.innerHTML = `<div separator='true'>${t.innerHTML}</div>`, t = n, Array.from(t.querySelectorAll("*")).length === 0 ? e : ZQ(t);
|
|
43419
|
+
}, $Q = (e) => {
|
|
43312
43420
|
if (!e) return e;
|
|
43313
|
-
let t =
|
|
43314
|
-
let i =
|
|
43421
|
+
let t = QQ(e.text || ""), n = (e.tokens || []).reduce((n, r = {}) => {
|
|
43422
|
+
let i = QQ((e.text || "").slice(r.start, r.end));
|
|
43315
43423
|
if (!i) return [...n, r];
|
|
43316
43424
|
let a = (e) => {
|
|
43317
43425
|
let n = e;
|
|
@@ -43336,18 +43444,18 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43336
43444
|
tokens: n,
|
|
43337
43445
|
text: t
|
|
43338
43446
|
};
|
|
43339
|
-
},
|
|
43447
|
+
}, e$ = (e) => {
|
|
43340
43448
|
let { minTokens: t, maxTokens: n, maxSelections: r } = e, i = `\nThere should be at least ${t} ` + (n ? `and at most ${n} ` : "") + "tokens defined.", a = "\nThere should be at least 1 " + (r ? `and at most ${r} ` : "") + "token" + (r ? "s" : "") + " selected.";
|
|
43341
43449
|
return "Validation requirements:" + i + a;
|
|
43342
|
-
}, { Panel:
|
|
43450
|
+
}, { Panel: t$, toggle: n$, radio: r$, dropdown: i$ } = MQ, a$ = M(WQ)(({ theme: e }) => ({
|
|
43343
43451
|
width: "100%",
|
|
43344
43452
|
paddingTop: e.spacing(2),
|
|
43345
43453
|
marginBottom: e.spacing(2)
|
|
43346
|
-
})),
|
|
43454
|
+
})), o$ = M(bX)({ width: "100%" }), s$ = M("div")(({ theme: e }) => ({
|
|
43347
43455
|
fontSize: e.typography.fontSize - 2,
|
|
43348
43456
|
color: e.palette.error.main,
|
|
43349
43457
|
paddingTop: e.spacing(1)
|
|
43350
|
-
})), $
|
|
43458
|
+
})), c$ = M(oi)({ width: "100%" }), l$ = M(WQ)(({ theme: e }) => ({
|
|
43351
43459
|
paddingRight: 0,
|
|
43352
43460
|
marginRight: 0,
|
|
43353
43461
|
position: "relative",
|
|
@@ -43361,22 +43469,22 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43361
43469
|
backgroundColor: e.palette.primary.main
|
|
43362
43470
|
},
|
|
43363
43471
|
marginBottom: e.spacing(1)
|
|
43364
|
-
})),
|
|
43472
|
+
})), u$ = M(Wc)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
43365
43473
|
fontSize: e.typography.fontSize - 2,
|
|
43366
43474
|
whiteSpace: "pre",
|
|
43367
43475
|
maxWidth: "500px"
|
|
43368
|
-
} })),
|
|
43476
|
+
} })), d$ = M(Pn)(({ theme: e }) => ({ marginTop: e.spacing(2) })), f$ = M(Uo)(({ theme: e }) => ({
|
|
43369
43477
|
marginTop: e.spacing(.5),
|
|
43370
43478
|
marginRight: e.spacing(2)
|
|
43371
|
-
})),
|
|
43479
|
+
})), p$ = M("div")(({ theme: e }) => ({
|
|
43372
43480
|
display: "flex",
|
|
43373
43481
|
alignItems: "center",
|
|
43374
43482
|
flexWrap: "wrap",
|
|
43375
43483
|
marginBottom: e.spacing(2.5)
|
|
43376
|
-
})),
|
|
43484
|
+
})), m$ = M(YX)(({ theme: e }) => ({
|
|
43377
43485
|
width: "180px",
|
|
43378
43486
|
margin: `${e.spacing(.5)} auto 0`
|
|
43379
|
-
})),
|
|
43487
|
+
})), h$ = (0, Dn.default)("@pie-element:select-text:configure"), g$ = class extends yt.Component {
|
|
43380
43488
|
static propTypes = {
|
|
43381
43489
|
model: L.default.object.isRequired,
|
|
43382
43490
|
configuration: L.default.object.isRequired,
|
|
@@ -43441,33 +43549,33 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43441
43549
|
});
|
|
43442
43550
|
};
|
|
43443
43551
|
render() {
|
|
43444
|
-
let { text: e } = this.state, { configuration: t, imageSupport: n, model: r, onConfigurationChanged: i, onModelChanged: a, uploadSoundSupport: o } = this.props, { baseInputConfiguration: s = {}, correctAnswer: c = {}, contentDimensions: l = {}, feedback: u = {}, highlightChoices: d = {}, mode: f = {}, partialScoring: p = {}, prompt: m = {}, rationale: h = {}, selectionCount: g = {}, selections: _ = {}, settingsPanelDisabled: v, scoringType: y = {}, spellCheck: b = {}, studentInstructions: x = {}, teacherInstructions: S = {}, text: C = {}, tokens: w = {}, maxImageWidth: T = {}, maxImageHeight: E = {}, withRubric: ee = {}, mathMlOptions: D = {}, language: te = {}, languageChoices: ne = {} } = t || {}, { errors: O, extraCSSRules: re, feedbackEnabled: ie, promptEnabled: k, rationaleEnabled: ae, spellCheckEnabled: oe, teacherInstructionsEnabled: se, toolbarEditorPosition: ce } = r || {}, { prompt: le, rationale: ue, selectionsError: de, teacherInstructions: fe, tokensError: pe } = O || {}, me =
|
|
43552
|
+
let { text: e } = this.state, { configuration: t, imageSupport: n, model: r, onConfigurationChanged: i, onModelChanged: a, uploadSoundSupport: o } = this.props, { baseInputConfiguration: s = {}, correctAnswer: c = {}, contentDimensions: l = {}, feedback: u = {}, highlightChoices: d = {}, mode: f = {}, partialScoring: p = {}, prompt: m = {}, rationale: h = {}, selectionCount: g = {}, selections: _ = {}, settingsPanelDisabled: v, scoringType: y = {}, spellCheck: b = {}, studentInstructions: x = {}, teacherInstructions: S = {}, text: C = {}, tokens: w = {}, maxImageWidth: T = {}, maxImageHeight: E = {}, withRubric: ee = {}, mathMlOptions: D = {}, language: te = {}, languageChoices: ne = {} } = t || {}, { errors: O, extraCSSRules: re, feedbackEnabled: ie, promptEnabled: k, rationaleEnabled: ae, spellCheckEnabled: oe, teacherInstructionsEnabled: se, toolbarEditorPosition: ce } = r || {}, { prompt: le, rationale: ue, selectionsError: de, teacherInstructions: fe, tokensError: pe } = O || {}, me = e$(t), A = T && T.prompt, he = E && E.prompt, { tokens: ge } = r;
|
|
43445
43553
|
ge ||= [];
|
|
43446
43554
|
let _e = { position: ce === "top" ? "top" : "bottom" };
|
|
43447
|
-
|
|
43555
|
+
h$("[render] maxSelections:", r.maxSelections);
|
|
43448
43556
|
let ve = {
|
|
43449
|
-
partialScoring: p.settings &&
|
|
43450
|
-
highlightChoices: d.settings &&
|
|
43451
|
-
feedbackEnabled: u.settings &&
|
|
43452
|
-
"language.enabled": te.settings &&
|
|
43453
|
-
language: te.settings && te.enabled &&
|
|
43557
|
+
partialScoring: p.settings && n$(p.label),
|
|
43558
|
+
highlightChoices: d.settings && n$(d.label),
|
|
43559
|
+
feedbackEnabled: u.settings && n$(u.label),
|
|
43560
|
+
"language.enabled": te.settings && n$(te.label, !0),
|
|
43561
|
+
language: te.settings && te.enabled && i$(ne.label, ne.options)
|
|
43454
43562
|
}, j = {
|
|
43455
|
-
teacherInstructionsEnabled: S.settings &&
|
|
43456
|
-
studentInstructionsEnabled: x.settings &&
|
|
43457
|
-
promptEnabled: m.settings &&
|
|
43458
|
-
rationaleEnabled: h.settings &&
|
|
43459
|
-
spellCheckEnabled: b.settings &&
|
|
43460
|
-
scoringType: y.settings &&
|
|
43461
|
-
rubricEnabled: ee?.settings &&
|
|
43563
|
+
teacherInstructionsEnabled: S.settings && n$(S.label),
|
|
43564
|
+
studentInstructionsEnabled: x.settings && n$(x.label),
|
|
43565
|
+
promptEnabled: m.settings && n$(m.label),
|
|
43566
|
+
rationaleEnabled: h.settings && n$(h.label),
|
|
43567
|
+
spellCheckEnabled: b.settings && n$(b.label),
|
|
43568
|
+
scoringType: y.settings && r$(y.label, ["auto", "rubric"]),
|
|
43569
|
+
rubricEnabled: ee?.settings && n$(ee?.label)
|
|
43462
43570
|
}, ye = (e = {}) => ({
|
|
43463
43571
|
...s,
|
|
43464
43572
|
...e
|
|
43465
43573
|
});
|
|
43466
|
-
return /* @__PURE__ */ I(
|
|
43574
|
+
return /* @__PURE__ */ I(rQ.ConfigLayout, {
|
|
43467
43575
|
extraCSSRules: re,
|
|
43468
43576
|
dimensions: l,
|
|
43469
43577
|
hideSettings: v,
|
|
43470
|
-
settings: /* @__PURE__ */ F(
|
|
43578
|
+
settings: /* @__PURE__ */ F(t$, {
|
|
43471
43579
|
model: r,
|
|
43472
43580
|
configuration: t,
|
|
43473
43581
|
onChangeModel: (e) => a(e),
|
|
@@ -43478,9 +43586,9 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43478
43586
|
}
|
|
43479
43587
|
}),
|
|
43480
43588
|
children: [
|
|
43481
|
-
se && /* @__PURE__ */ I(
|
|
43589
|
+
se && /* @__PURE__ */ I(a$, {
|
|
43482
43590
|
label: S.label,
|
|
43483
|
-
children: [/* @__PURE__ */ F(
|
|
43591
|
+
children: [/* @__PURE__ */ F(o$, {
|
|
43484
43592
|
markup: r.teacherInstructions || "",
|
|
43485
43593
|
onChange: this.onTeacherInstructionsChanged,
|
|
43486
43594
|
imageSupport: n,
|
|
@@ -43494,11 +43602,11 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43494
43602
|
uploadSoundSupport: o,
|
|
43495
43603
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
43496
43604
|
mathMlOptions: D
|
|
43497
|
-
}), fe && /* @__PURE__ */ F(
|
|
43605
|
+
}), fe && /* @__PURE__ */ F(s$, { children: fe })]
|
|
43498
43606
|
}),
|
|
43499
|
-
k && /* @__PURE__ */ I(
|
|
43607
|
+
k && /* @__PURE__ */ I(a$, {
|
|
43500
43608
|
label: m.label || "",
|
|
43501
|
-
children: [/* @__PURE__ */ F(
|
|
43609
|
+
children: [/* @__PURE__ */ F(o$, {
|
|
43502
43610
|
markup: r.prompt,
|
|
43503
43611
|
onChange: this.onPromptChanged,
|
|
43504
43612
|
imageSupport: n,
|
|
@@ -43511,11 +43619,11 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43511
43619
|
uploadSoundSupport: o,
|
|
43512
43620
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
43513
43621
|
mathMlOptions: D
|
|
43514
|
-
}), le && /* @__PURE__ */ F(
|
|
43622
|
+
}), le && /* @__PURE__ */ F(s$, { children: le })]
|
|
43515
43623
|
}),
|
|
43516
|
-
C.settings && /* @__PURE__ */ F(
|
|
43624
|
+
C.settings && /* @__PURE__ */ F(a$, {
|
|
43517
43625
|
label: C.label || "",
|
|
43518
|
-
children: /* @__PURE__ */ F(
|
|
43626
|
+
children: /* @__PURE__ */ F(c$, {
|
|
43519
43627
|
variant: "standard",
|
|
43520
43628
|
multiline: !0,
|
|
43521
43629
|
defaultValue: e,
|
|
@@ -43523,14 +43631,14 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43523
43631
|
spellCheck: oe
|
|
43524
43632
|
})
|
|
43525
43633
|
}),
|
|
43526
|
-
w.settings && /* @__PURE__ */ I(
|
|
43634
|
+
w.settings && /* @__PURE__ */ I(l$, {
|
|
43527
43635
|
label: w.label || "",
|
|
43528
|
-
children: [/* @__PURE__ */ F(
|
|
43636
|
+
children: [/* @__PURE__ */ F(u$, {
|
|
43529
43637
|
disableFocusListener: !0,
|
|
43530
43638
|
disableTouchListener: !0,
|
|
43531
43639
|
placement: "right",
|
|
43532
43640
|
title: me,
|
|
43533
|
-
children: /* @__PURE__ */ F(
|
|
43641
|
+
children: /* @__PURE__ */ F(JQ, {
|
|
43534
43642
|
fontSize: "small",
|
|
43535
43643
|
color: "primary",
|
|
43536
43644
|
style: {
|
|
@@ -43539,19 +43647,19 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43539
43647
|
top: "-3px"
|
|
43540
43648
|
}
|
|
43541
43649
|
})
|
|
43542
|
-
}), /* @__PURE__ */ F(
|
|
43650
|
+
}), /* @__PURE__ */ F(d$, {
|
|
43543
43651
|
text: r.text,
|
|
43544
43652
|
tokens: ge,
|
|
43545
43653
|
onChange: this.changeTokens
|
|
43546
43654
|
})]
|
|
43547
43655
|
}),
|
|
43548
|
-
pe && /* @__PURE__ */ F(
|
|
43549
|
-
de && /* @__PURE__ */ F(
|
|
43550
|
-
/* @__PURE__ */ I(
|
|
43551
|
-
f.settings && /* @__PURE__ */ F(
|
|
43552
|
-
_.settings && /* @__PURE__ */ F(
|
|
43553
|
-
c.settings && /* @__PURE__ */ F(
|
|
43554
|
-
g.settings && /* @__PURE__ */ F(
|
|
43656
|
+
pe && /* @__PURE__ */ F(s$, { children: pe }),
|
|
43657
|
+
de && /* @__PURE__ */ F(s$, { children: de }),
|
|
43658
|
+
/* @__PURE__ */ I(p$, { children: [
|
|
43659
|
+
f.settings && /* @__PURE__ */ F(f$, { label: `${f.label}: ${r.mode ? r.mode : "None"}` }),
|
|
43660
|
+
_.settings && /* @__PURE__ */ F(f$, { label: `${_.label}: ${ge.length}` }),
|
|
43661
|
+
c.settings && /* @__PURE__ */ F(f$, { label: `${c.label}: ${ge.filter((e) => e.correct).length}` }),
|
|
43662
|
+
g.settings && /* @__PURE__ */ F(m$, {
|
|
43555
43663
|
min: ge.filter((e) => e.correct).length || 0,
|
|
43556
43664
|
label: `${g.label} (0:any)`,
|
|
43557
43665
|
max: ge.length,
|
|
@@ -43559,9 +43667,9 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43559
43667
|
onChange: this.changeMaxSelections
|
|
43560
43668
|
})
|
|
43561
43669
|
] }),
|
|
43562
|
-
ae && /* @__PURE__ */ I(
|
|
43670
|
+
ae && /* @__PURE__ */ I(a$, {
|
|
43563
43671
|
label: h.label || "",
|
|
43564
|
-
children: [/* @__PURE__ */ F(
|
|
43672
|
+
children: [/* @__PURE__ */ F(o$, {
|
|
43565
43673
|
markup: r.rationale || "",
|
|
43566
43674
|
onChange: this.onRationaleChanged,
|
|
43567
43675
|
imageSupport: n,
|
|
@@ -43574,9 +43682,9 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43574
43682
|
uploadSoundSupport: o,
|
|
43575
43683
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
43576
43684
|
mathMlOptions: D
|
|
43577
|
-
}), ue && /* @__PURE__ */ F(
|
|
43685
|
+
}), ue && /* @__PURE__ */ F(s$, { children: ue })]
|
|
43578
43686
|
}),
|
|
43579
|
-
ie && /* @__PURE__ */ F(
|
|
43687
|
+
ie && /* @__PURE__ */ F(BX, {
|
|
43580
43688
|
feedback: r.feedback,
|
|
43581
43689
|
onChange: this.changeFeedback,
|
|
43582
43690
|
toolbarOpts: _e
|
|
@@ -43584,7 +43692,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43584
43692
|
]
|
|
43585
43693
|
});
|
|
43586
43694
|
}
|
|
43587
|
-
},
|
|
43695
|
+
}, _$ = class e extends CustomEvent {
|
|
43588
43696
|
static {
|
|
43589
43697
|
this.TYPE = "model.updated";
|
|
43590
43698
|
}
|
|
@@ -43597,7 +43705,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43597
43705
|
}
|
|
43598
43706
|
}), this.update = t, this.reset = n;
|
|
43599
43707
|
}
|
|
43600
|
-
},
|
|
43708
|
+
}, v$ = class e extends CustomEvent {
|
|
43601
43709
|
static {
|
|
43602
43710
|
this.TYPE = "delete.image";
|
|
43603
43711
|
}
|
|
@@ -43610,7 +43718,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43610
43718
|
}
|
|
43611
43719
|
}), this.src = t, this.done = n;
|
|
43612
43720
|
}
|
|
43613
|
-
},
|
|
43721
|
+
}, y$ = class e extends CustomEvent {
|
|
43614
43722
|
static {
|
|
43615
43723
|
this.TYPE = "insert.image";
|
|
43616
43724
|
}
|
|
@@ -43620,7 +43728,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43620
43728
|
detail: t
|
|
43621
43729
|
}), this.handler = t;
|
|
43622
43730
|
}
|
|
43623
|
-
},
|
|
43731
|
+
}, b$ = class e extends CustomEvent {
|
|
43624
43732
|
static {
|
|
43625
43733
|
this.TYPE = "delete.sound";
|
|
43626
43734
|
}
|
|
@@ -43633,7 +43741,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43633
43741
|
}
|
|
43634
43742
|
}), this.src = t, this.done = n;
|
|
43635
43743
|
}
|
|
43636
|
-
},
|
|
43744
|
+
}, x$ = class e extends CustomEvent {
|
|
43637
43745
|
static {
|
|
43638
43746
|
this.TYPE = "insert.sound";
|
|
43639
43747
|
}
|
|
@@ -43643,7 +43751,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43643
43751
|
detail: t
|
|
43644
43752
|
}), this.handler = t;
|
|
43645
43753
|
}
|
|
43646
|
-
},
|
|
43754
|
+
}, S$ = {
|
|
43647
43755
|
model: {
|
|
43648
43756
|
feedbackEnabled: !1,
|
|
43649
43757
|
highlightChoices: !1,
|
|
@@ -43780,20 +43888,20 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43780
43888
|
options: []
|
|
43781
43889
|
}
|
|
43782
43890
|
}
|
|
43783
|
-
},
|
|
43784
|
-
static createDefaultModel = (e = {}) =>
|
|
43785
|
-
...
|
|
43891
|
+
}, C$ = class e extends HTMLElement {
|
|
43892
|
+
static createDefaultModel = (e = {}) => $Q({
|
|
43893
|
+
...S$.model,
|
|
43786
43894
|
...e
|
|
43787
43895
|
});
|
|
43788
43896
|
constructor() {
|
|
43789
|
-
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration =
|
|
43897
|
+
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = S$.configuration;
|
|
43790
43898
|
}
|
|
43791
43899
|
set model(t) {
|
|
43792
43900
|
this._model = e.createDefaultModel(t), this.render();
|
|
43793
43901
|
}
|
|
43794
43902
|
set configuration(e) {
|
|
43795
43903
|
let t = {
|
|
43796
|
-
...
|
|
43904
|
+
...S$.configuration,
|
|
43797
43905
|
...e
|
|
43798
43906
|
};
|
|
43799
43907
|
this._configuration = t, t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
|
|
@@ -43805,26 +43913,26 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43805
43913
|
this.render();
|
|
43806
43914
|
}
|
|
43807
43915
|
modelChanged(e) {
|
|
43808
|
-
this._model = e, this.dispatchEvent(new
|
|
43916
|
+
this._model = e, this.dispatchEvent(new _$(this._model), !0), this.render();
|
|
43809
43917
|
}
|
|
43810
43918
|
onConfigurationChanged(e) {
|
|
43811
|
-
this._configuration = e, this._model && this.dispatchEvent(new
|
|
43919
|
+
this._configuration = e, this._model && this.dispatchEvent(new _$(this._model), !1), this.render();
|
|
43812
43920
|
}
|
|
43813
43921
|
insertImage(e) {
|
|
43814
|
-
this.dispatchEvent(new
|
|
43922
|
+
this.dispatchEvent(new y$(e));
|
|
43815
43923
|
}
|
|
43816
43924
|
onDeleteImage(e, t) {
|
|
43817
|
-
this.dispatchEvent(new
|
|
43925
|
+
this.dispatchEvent(new v$(e, t));
|
|
43818
43926
|
}
|
|
43819
43927
|
insertSound(e) {
|
|
43820
|
-
this.dispatchEvent(new
|
|
43928
|
+
this.dispatchEvent(new x$(e));
|
|
43821
43929
|
}
|
|
43822
43930
|
onDeleteSound(e, t) {
|
|
43823
|
-
this.dispatchEvent(new
|
|
43931
|
+
this.dispatchEvent(new b$(e, t));
|
|
43824
43932
|
}
|
|
43825
43933
|
render() {
|
|
43826
43934
|
if (this._model) {
|
|
43827
|
-
let e = yt.createElement(
|
|
43935
|
+
let e = yt.createElement(g$, {
|
|
43828
43936
|
model: this._model,
|
|
43829
43937
|
configuration: this._configuration,
|
|
43830
43938
|
onModelChanged: this.modelChanged.bind(this),
|
|
@@ -43846,6 +43954,6 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43846
43954
|
}
|
|
43847
43955
|
};
|
|
43848
43956
|
//#endregion
|
|
43849
|
-
export {
|
|
43957
|
+
export { C$ as default };
|
|
43850
43958
|
|
|
43851
43959
|
//# sourceMappingURL=index.js.map
|