@pie-element/select-text 13.1.2-next.7 → 13.1.2-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/author/index.js +657 -570
- package/dist/browser/author/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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 {
|
|
@@ -41708,7 +41775,7 @@ var $Y = wS.create({
|
|
|
41708
41775
|
},
|
|
41709
41776
|
addInputRules() {
|
|
41710
41777
|
return [JS({
|
|
41711
|
-
find:
|
|
41778
|
+
find: uX,
|
|
41712
41779
|
type: this.type,
|
|
41713
41780
|
getAttributes: (e) => {
|
|
41714
41781
|
let [, , t, n, r] = e;
|
|
@@ -41720,17 +41787,17 @@ var $Y = wS.create({
|
|
|
41720
41787
|
}
|
|
41721
41788
|
})];
|
|
41722
41789
|
}
|
|
41723
|
-
}),
|
|
41790
|
+
}), fX = tX, pX = {
|
|
41724
41791
|
position: "bottom",
|
|
41725
41792
|
alignment: "left",
|
|
41726
41793
|
alwaysVisible: !1,
|
|
41727
41794
|
showDone: !0,
|
|
41728
41795
|
doneOn: "blur"
|
|
41729
|
-
},
|
|
41796
|
+
}, mX = {
|
|
41730
41797
|
options: {},
|
|
41731
41798
|
respAreaToolbar: () => {},
|
|
41732
41799
|
onHandleAreaChange: () => {}
|
|
41733
|
-
},
|
|
41800
|
+
}, hX = [
|
|
41734
41801
|
"bold",
|
|
41735
41802
|
"italic",
|
|
41736
41803
|
"underline",
|
|
@@ -41752,7 +41819,7 @@ var $Y = wS.create({
|
|
|
41752
41819
|
"h3",
|
|
41753
41820
|
"undo",
|
|
41754
41821
|
"redo"
|
|
41755
|
-
],
|
|
41822
|
+
], gX = {
|
|
41756
41823
|
"--white": "#fff",
|
|
41757
41824
|
"--black": "#2e2b29",
|
|
41758
41825
|
"--black-contrast": "#110f0e",
|
|
@@ -41771,14 +41838,18 @@ var $Y = wS.create({
|
|
|
41771
41838
|
"--red": "#ff5c33",
|
|
41772
41839
|
"--red-light": "#ffebe5",
|
|
41773
41840
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
41774
|
-
},
|
|
41841
|
+
}, _X = (e) => ({
|
|
41842
|
+
spellcheck: e ? "true" : "false",
|
|
41843
|
+
autocorrect: e ? "on" : "off",
|
|
41844
|
+
autocapitalize: e ? "on" : "off"
|
|
41845
|
+
}), vX = (e) => {
|
|
41775
41846
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [i, a] = Nt([]), [o, s] = Nt(!1), { toolbarOpts: c } = e, l = Et((e) => {
|
|
41776
41847
|
a((t) => {
|
|
41777
41848
|
let n = t.filter((t) => t.pos !== e);
|
|
41778
41849
|
return n.length === 0 && s(!1), n;
|
|
41779
41850
|
});
|
|
41780
41851
|
}, [a]), u = {
|
|
41781
|
-
...
|
|
41852
|
+
...pX,
|
|
41782
41853
|
...c
|
|
41783
41854
|
}, d = Et((t) => {
|
|
41784
41855
|
let n = t.getHTML();
|
|
@@ -41789,13 +41860,13 @@ var $Y = wS.create({
|
|
|
41789
41860
|
e.onDone,
|
|
41790
41861
|
u.doneOn
|
|
41791
41862
|
]), f = jt(() => ({
|
|
41792
|
-
...
|
|
41863
|
+
...mX,
|
|
41793
41864
|
...e.responseAreaProps,
|
|
41794
41865
|
onInlineDropdownToolbarClose: d
|
|
41795
41866
|
}), [e.responseAreaProps, d]), p = jt(() => {
|
|
41796
41867
|
let { customPlugins: t, ...n } = e.pluginProps || {};
|
|
41797
41868
|
t ||= [];
|
|
41798
|
-
let r = (e.activePlugins ||
|
|
41869
|
+
let r = (e.activePlugins || hX)?.filter((e) => {
|
|
41799
41870
|
let t = kl[e] || e, r = n[t] || {};
|
|
41800
41871
|
return !r || !r.disabled;
|
|
41801
41872
|
});
|
|
@@ -41813,103 +41884,112 @@ var $Y = wS.create({
|
|
|
41813
41884
|
setKeypadInteraction: {},
|
|
41814
41885
|
media: {}
|
|
41815
41886
|
});
|
|
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
|
-
|
|
41887
|
+
}, [e, f.type]), m = [
|
|
41888
|
+
lX.configure({
|
|
41889
|
+
types: [
|
|
41890
|
+
"heading",
|
|
41891
|
+
"paragraph",
|
|
41892
|
+
"div",
|
|
41893
|
+
"headingParagraph",
|
|
41894
|
+
"h1",
|
|
41895
|
+
"h2",
|
|
41896
|
+
"h3",
|
|
41897
|
+
"h4",
|
|
41898
|
+
"h5",
|
|
41899
|
+
"h6",
|
|
41900
|
+
"td",
|
|
41901
|
+
"th"
|
|
41902
|
+
],
|
|
41903
|
+
alignments: [
|
|
41904
|
+
"left",
|
|
41905
|
+
"right",
|
|
41906
|
+
"center",
|
|
41907
|
+
"justify"
|
|
41908
|
+
]
|
|
41909
|
+
}),
|
|
41910
|
+
IY,
|
|
41911
|
+
LY.configure({ limit: e.charactersLimit || 1e6 }),
|
|
41912
|
+
EY.configure({
|
|
41913
|
+
trailingNode: {
|
|
41843
41914
|
node: "paragraph",
|
|
41844
41915
|
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
|
-
|
|
41916
|
+
},
|
|
41917
|
+
link: {
|
|
41918
|
+
autolink: !1,
|
|
41919
|
+
linkOnPaste: !1
|
|
41920
|
+
}
|
|
41921
|
+
}),
|
|
41922
|
+
AB,
|
|
41923
|
+
Bk,
|
|
41924
|
+
jB,
|
|
41925
|
+
Vk,
|
|
41926
|
+
Hk,
|
|
41927
|
+
fX.configure({
|
|
41928
|
+
placeholder: e.placeholder,
|
|
41929
|
+
showOnlyWhenEditable: !0,
|
|
41930
|
+
showOnlyCurrent: !1,
|
|
41931
|
+
includeChildren: !0
|
|
41932
|
+
}),
|
|
41933
|
+
Ik,
|
|
41934
|
+
bk,
|
|
41935
|
+
zk,
|
|
41936
|
+
Rk,
|
|
41937
|
+
mR.configure(f),
|
|
41938
|
+
hR.configure(f),
|
|
41939
|
+
_R.configure(f),
|
|
41940
|
+
vR.configure(f),
|
|
41941
|
+
gR.configure(f),
|
|
41942
|
+
tz.configure({
|
|
41943
|
+
toolbarOpts: u,
|
|
41944
|
+
math: e.pluginProps?.math || {}
|
|
41945
|
+
}),
|
|
41946
|
+
cX,
|
|
41947
|
+
sX,
|
|
41948
|
+
dX,
|
|
41949
|
+
Sz.configure({
|
|
41950
|
+
toolbarOpts: u,
|
|
41951
|
+
imageHandling: {
|
|
41952
|
+
disableImageAlignmentButtons: e.disableImageAlignmentButtons,
|
|
41953
|
+
onDone: (t) => e.onDone?.(t.getHTML()),
|
|
41954
|
+
onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
|
|
41955
|
+
let { src: n } = t.attrs;
|
|
41956
|
+
e.imageSupport.delete(n, (e) => {
|
|
41957
|
+
l(t.pos);
|
|
41958
|
+
});
|
|
41959
|
+
}),
|
|
41960
|
+
insertImageRequested: e.imageSupport && ((t, n, i) => {
|
|
41961
|
+
let [s, c] = n, u = (n) => {
|
|
41962
|
+
let r;
|
|
41963
|
+
o && n && (r = e.onChange), l(c), r?.(t.getHTML());
|
|
41964
|
+
};
|
|
41965
|
+
t._insertingImage = !0, a((e) => [...e, s]), (() => {
|
|
41966
|
+
let n = i(u), a = r(() => {
|
|
41967
|
+
let e = () => window.removeEventListener("focus", a);
|
|
41968
|
+
if (!t._insertingImage) {
|
|
41969
|
+
e();
|
|
41970
|
+
return;
|
|
41971
|
+
}
|
|
41972
|
+
l(c), t._insertingImage = !1, e();
|
|
41973
|
+
}, 500);
|
|
41974
|
+
window.addEventListener("focus", a), e.imageSupport.add(n);
|
|
41975
|
+
})();
|
|
41976
|
+
}),
|
|
41977
|
+
maxImageWidth: e.maxImageWidth,
|
|
41978
|
+
maxImageHeight: e.maxImageHeight
|
|
41979
|
+
},
|
|
41980
|
+
limit: 3
|
|
41981
|
+
}),
|
|
41982
|
+
Uz.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
41983
|
+
Yz.configure({ extraCSSRules: e.extraCSSRules })
|
|
41984
|
+
], h = e.spellCheck !== !1, g = pj({
|
|
41985
|
+
extensions: m,
|
|
41909
41986
|
immediatelyRender: !1,
|
|
41910
|
-
editorProps: {
|
|
41911
|
-
|
|
41912
|
-
|
|
41987
|
+
editorProps: {
|
|
41988
|
+
attributes: _X(h),
|
|
41989
|
+
handleKeyDown(t, n) {
|
|
41990
|
+
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
41991
|
+
}
|
|
41992
|
+
},
|
|
41913
41993
|
editable: !e.disabled,
|
|
41914
41994
|
content: Pl(e.markup),
|
|
41915
41995
|
onUpdate: ({ editor: t, transaction: n }) => {
|
|
@@ -41920,22 +42000,29 @@ var $Y = wS.create({
|
|
|
41920
42000
|
}
|
|
41921
42001
|
}, [e.charactersLimit]);
|
|
41922
42002
|
kt(() => {
|
|
41923
|
-
e.editorRef && e.editorRef(
|
|
41924
|
-
}, [e.editorRef,
|
|
41925
|
-
|
|
41926
|
-
}, [e.disabled,
|
|
41927
|
-
if (!
|
|
42003
|
+
e.editorRef && e.editorRef(g);
|
|
42004
|
+
}, [e.editorRef, g]), kt(() => {
|
|
42005
|
+
g?.setEditable(!e.disabled);
|
|
42006
|
+
}, [e.disabled, g]), kt(() => {
|
|
42007
|
+
if (!g) return;
|
|
42008
|
+
let e = g.options?.editorProps, t = _X(h);
|
|
42009
|
+
e?.attributes?.spellcheck !== t.spellcheck && g.setOptions({ editorProps: {
|
|
42010
|
+
...e,
|
|
42011
|
+
attributes: t
|
|
42012
|
+
} });
|
|
42013
|
+
}, [h, g]), kt(() => {
|
|
42014
|
+
if (!g) return;
|
|
41928
42015
|
let t = Pl(e.markup);
|
|
41929
|
-
t !==
|
|
41930
|
-
}, [e.markup,
|
|
41931
|
-
Object.entries(
|
|
42016
|
+
t !== g.getHTML() && g.commands.setContent(t, { emitUpdate: !1 });
|
|
42017
|
+
}, [e.markup, g]), kt(() => {
|
|
42018
|
+
Object.entries(gX).forEach(([e, t]) => {
|
|
41932
42019
|
document.documentElement.style.setProperty(e, t);
|
|
41933
42020
|
});
|
|
41934
42021
|
}, []);
|
|
41935
|
-
let
|
|
41936
|
-
editor:
|
|
42022
|
+
let _ = lj({
|
|
42023
|
+
editor: g,
|
|
41937
42024
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
41938
|
-
}),
|
|
42025
|
+
}), v = jt(() => {
|
|
41939
42026
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
41940
42027
|
return {
|
|
41941
42028
|
width: MB(n),
|
|
@@ -41950,20 +42037,20 @@ var $Y = wS.create({
|
|
|
41950
42037
|
...e,
|
|
41951
42038
|
activePlugins: p,
|
|
41952
42039
|
toolbarOpts: u,
|
|
41953
|
-
editorState:
|
|
41954
|
-
editor:
|
|
41955
|
-
children:
|
|
42040
|
+
editorState: _,
|
|
42041
|
+
editor: g,
|
|
42042
|
+
children: g && /* @__PURE__ */ F(yX, {
|
|
41956
42043
|
style: {
|
|
41957
|
-
minHeight:
|
|
41958
|
-
height:
|
|
41959
|
-
maxHeight:
|
|
42044
|
+
minHeight: v.minHeight,
|
|
42045
|
+
height: v.height,
|
|
42046
|
+
maxHeight: v.maxHeight
|
|
41960
42047
|
},
|
|
41961
42048
|
showParagraph: t && !t.disabled,
|
|
41962
42049
|
separateParagraph: n && !n.disabled,
|
|
41963
|
-
editor:
|
|
42050
|
+
editor: g
|
|
41964
42051
|
})
|
|
41965
42052
|
});
|
|
41966
|
-
},
|
|
42053
|
+
}, yX = M(oj, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
41967
42054
|
display: "flex",
|
|
41968
42055
|
outline: "none !important",
|
|
41969
42056
|
"& .ProseMirror": {
|
|
@@ -41991,26 +42078,26 @@ var $Y = wS.create({
|
|
|
41991
42078
|
} },
|
|
41992
42079
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
41993
42080
|
}
|
|
41994
|
-
})),
|
|
42081
|
+
})), bX = vX;
|
|
41995
42082
|
//#endregion
|
|
41996
42083
|
//#region ../../lib-react/config-ui/dist/feedback-config/feedback-selector.js
|
|
41997
|
-
function
|
|
42084
|
+
function xX(e) {
|
|
41998
42085
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
41999
42086
|
}
|
|
42000
|
-
function
|
|
42001
|
-
return !e ||
|
|
42087
|
+
function SX(e, t) {
|
|
42088
|
+
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
42089
|
}
|
|
42003
|
-
var
|
|
42090
|
+
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
42091
|
default: "Simple Feedback",
|
|
42005
42092
|
none: "No Feedback",
|
|
42006
42093
|
custom: "Customized Feedback"
|
|
42007
|
-
},
|
|
42094
|
+
}, kX = M("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), AX = M(CX)(() => ({ paddingBottom: 0 })), jX = M("div")(({ theme: e }) => ({
|
|
42008
42095
|
marginTop: "0px",
|
|
42009
42096
|
background: k.backgroundDark(),
|
|
42010
42097
|
padding: 0,
|
|
42011
42098
|
marginBottom: e.spacing(2),
|
|
42012
42099
|
borderRadius: "4px"
|
|
42013
|
-
})),
|
|
42100
|
+
})), MX = M("div")(({ theme: e }) => ({
|
|
42014
42101
|
marginTop: "0px",
|
|
42015
42102
|
background: k.backgroundDark(),
|
|
42016
42103
|
padding: e.spacing(2),
|
|
@@ -42018,7 +42105,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42018
42105
|
borderRadius: "4px",
|
|
42019
42106
|
fontFamily: e.typography.fontFamily,
|
|
42020
42107
|
cursor: "default"
|
|
42021
|
-
})),
|
|
42108
|
+
})), NX = M(El)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), PX = {
|
|
42022
42109
|
type: L.default.oneOf([
|
|
42023
42110
|
"default",
|
|
42024
42111
|
"custom",
|
|
@@ -42026,11 +42113,11 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42026
42113
|
]),
|
|
42027
42114
|
default: L.default.string,
|
|
42028
42115
|
custom: L.default.string
|
|
42029
|
-
},
|
|
42116
|
+
}, FX = class extends yt.Component {
|
|
42030
42117
|
static propTypes = {
|
|
42031
42118
|
keys: L.default.arrayOf(L.default.string),
|
|
42032
42119
|
label: L.default.string.isRequired,
|
|
42033
|
-
feedback: L.default.shape(
|
|
42120
|
+
feedback: L.default.shape(PX).isRequired,
|
|
42034
42121
|
onChange: L.default.func.isRequired,
|
|
42035
42122
|
toolbarOpts: L.default.object,
|
|
42036
42123
|
mathMlOptions: L.default.object
|
|
@@ -42052,36 +42139,36 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42052
42139
|
};
|
|
42053
42140
|
render() {
|
|
42054
42141
|
let { keys: e, label: t, feedback: n, toolbarOpts: r, mathMlOptions: i = {} } = this.props;
|
|
42055
|
-
return /* @__PURE__ */ I(
|
|
42056
|
-
/* @__PURE__ */ F(
|
|
42142
|
+
return /* @__PURE__ */ I(kX, { children: [
|
|
42143
|
+
/* @__PURE__ */ F(AX, {
|
|
42057
42144
|
label: t,
|
|
42058
42145
|
extraClasses: { label: { transform: "translateY(-20%)" } },
|
|
42059
|
-
children: /* @__PURE__ */ F(
|
|
42060
|
-
keys: e || Object.keys(
|
|
42146
|
+
children: /* @__PURE__ */ F(NX, {
|
|
42147
|
+
keys: e || Object.keys(OX),
|
|
42061
42148
|
label: t,
|
|
42062
42149
|
value: n.type,
|
|
42063
42150
|
onChange: this.changeType,
|
|
42064
|
-
feedbackLabels:
|
|
42151
|
+
feedbackLabels: OX
|
|
42065
42152
|
})
|
|
42066
42153
|
}),
|
|
42067
|
-
n.type === "custom" && /* @__PURE__ */ F(
|
|
42154
|
+
n.type === "custom" && /* @__PURE__ */ F(jX, { children: /* @__PURE__ */ F(DX, {
|
|
42068
42155
|
onChange: this.changeCustom,
|
|
42069
42156
|
markup: n.custom || "",
|
|
42070
42157
|
toolbarOpts: r,
|
|
42071
42158
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
42072
42159
|
mathMlOptions: i
|
|
42073
42160
|
}) }),
|
|
42074
|
-
n.type === "default" && /* @__PURE__ */ I(
|
|
42161
|
+
n.type === "default" && /* @__PURE__ */ I(MX, { children: [" ", n.default] })
|
|
42075
42162
|
] });
|
|
42076
42163
|
}
|
|
42077
|
-
},
|
|
42164
|
+
}, 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
42165
|
display: "flex",
|
|
42079
42166
|
flex: 1,
|
|
42080
42167
|
flexDirection: "column"
|
|
42081
|
-
})),
|
|
42168
|
+
})), RX = M(vi)(() => ({
|
|
42082
42169
|
paddingTop: 0,
|
|
42083
42170
|
paddingBottom: 0
|
|
42084
|
-
})),
|
|
42171
|
+
})), zX = (e) => d({}, {
|
|
42085
42172
|
correct: {
|
|
42086
42173
|
type: "default",
|
|
42087
42174
|
default: "Correct"
|
|
@@ -42094,21 +42181,21 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42094
42181
|
type: "default",
|
|
42095
42182
|
default: "Nearly"
|
|
42096
42183
|
}
|
|
42097
|
-
}, e),
|
|
42184
|
+
}, e), BX = class extends yt.Component {
|
|
42098
42185
|
static propTypes = {
|
|
42099
42186
|
allowPartial: L.default.bool,
|
|
42100
42187
|
className: L.default.string,
|
|
42101
42188
|
feedback: L.default.shape({
|
|
42102
|
-
correct: L.default.shape(
|
|
42103
|
-
incorrect: L.default.shape(
|
|
42104
|
-
partial: L.default.shape(
|
|
42189
|
+
correct: L.default.shape(PX),
|
|
42190
|
+
incorrect: L.default.shape(PX),
|
|
42191
|
+
partial: L.default.shape(PX)
|
|
42105
42192
|
}),
|
|
42106
42193
|
onChange: L.default.func.isRequired,
|
|
42107
42194
|
toolbarOpts: L.default.object
|
|
42108
42195
|
};
|
|
42109
42196
|
static defaultProps = {
|
|
42110
42197
|
allowPartial: !0,
|
|
42111
|
-
feedback:
|
|
42198
|
+
feedback: zX()
|
|
42112
42199
|
};
|
|
42113
42200
|
onChange(e, t) {
|
|
42114
42201
|
let { feedback: n, onChange: r } = this.props;
|
|
@@ -42130,22 +42217,22 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42130
42217
|
exit: 195
|
|
42131
42218
|
} } },
|
|
42132
42219
|
children: [/* @__PURE__ */ F(Ti, {
|
|
42133
|
-
expandIcon: /* @__PURE__ */ F(
|
|
42220
|
+
expandIcon: /* @__PURE__ */ F(IX, {}),
|
|
42134
42221
|
children: /* @__PURE__ */ F(pn, { children: "Feedback" })
|
|
42135
|
-
}), /* @__PURE__ */ F(
|
|
42136
|
-
/* @__PURE__ */ F(
|
|
42222
|
+
}), /* @__PURE__ */ F(RX, { children: /* @__PURE__ */ I(LX, { children: [
|
|
42223
|
+
/* @__PURE__ */ F(FX, {
|
|
42137
42224
|
label: "If correct, show",
|
|
42138
42225
|
feedback: n.correct,
|
|
42139
42226
|
onChange: this.onCorrectChange,
|
|
42140
42227
|
toolbarOpts: r
|
|
42141
42228
|
}),
|
|
42142
|
-
t && /* @__PURE__ */ F(
|
|
42229
|
+
t && /* @__PURE__ */ F(FX, {
|
|
42143
42230
|
label: "If partially correct, show",
|
|
42144
42231
|
feedback: n.partial,
|
|
42145
42232
|
onChange: this.onPartialChange,
|
|
42146
42233
|
toolbarOpts: r
|
|
42147
42234
|
}),
|
|
42148
|
-
/* @__PURE__ */ F(
|
|
42235
|
+
/* @__PURE__ */ F(FX, {
|
|
42149
42236
|
label: "If incorrect, show",
|
|
42150
42237
|
feedback: n.incorrect,
|
|
42151
42238
|
onChange: this.onIncorrectChange,
|
|
@@ -42155,7 +42242,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42155
42242
|
})
|
|
42156
42243
|
});
|
|
42157
42244
|
}
|
|
42158
|
-
},
|
|
42245
|
+
}, VX = M(Yc)(() => ({})), HX = class extends yt.Component {
|
|
42159
42246
|
static propTypes = {
|
|
42160
42247
|
className: L.default.string,
|
|
42161
42248
|
contentClassName: L.default.string,
|
|
@@ -42176,7 +42263,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42176
42263
|
indicatorColor: "primary",
|
|
42177
42264
|
value: e,
|
|
42178
42265
|
onChange: this.handleChange,
|
|
42179
|
-
children: yt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(
|
|
42266
|
+
children: yt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(VX, { label: e.props.title }, t) : null)
|
|
42180
42267
|
}), /* @__PURE__ */ F("div", {
|
|
42181
42268
|
className: r,
|
|
42182
42269
|
style: i,
|
|
@@ -42184,7 +42271,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42184
42271
|
})]
|
|
42185
42272
|
});
|
|
42186
42273
|
}
|
|
42187
|
-
},
|
|
42274
|
+
}, UX = M(yn)(({ theme: e, mini: t }) => ({
|
|
42188
42275
|
margin: 0,
|
|
42189
42276
|
marginLeft: 0,
|
|
42190
42277
|
padding: 0,
|
|
@@ -42198,7 +42285,7 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42198
42285
|
fontSize: e.typography.fontSize - 3
|
|
42199
42286
|
}
|
|
42200
42287
|
}
|
|
42201
|
-
})),
|
|
42288
|
+
})), WX = M(es)(({ theme: e, mini: t, error: n }) => ({
|
|
42202
42289
|
color: `${k.tertiary()} !important`,
|
|
42203
42290
|
...t && {
|
|
42204
42291
|
margin: 0,
|
|
@@ -42207,9 +42294,9 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42207
42294
|
height: e.spacing(3)
|
|
42208
42295
|
},
|
|
42209
42296
|
...n && { color: `${e.palette.error.main} !important` }
|
|
42210
|
-
})),
|
|
42297
|
+
})), GX = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(UX, {
|
|
42211
42298
|
mini: e,
|
|
42212
|
-
control: /* @__PURE__ */ F(
|
|
42299
|
+
control: /* @__PURE__ */ F(WX, {
|
|
42213
42300
|
checked: t,
|
|
42214
42301
|
onChange: n,
|
|
42215
42302
|
value: r,
|
|
@@ -42218,21 +42305,21 @@ var mX = pX(lt, "InputContainer") || pX(_X.InputContainer, "InputContainer"), hX
|
|
|
42218
42305
|
}),
|
|
42219
42306
|
label: i
|
|
42220
42307
|
});
|
|
42221
|
-
|
|
42308
|
+
GX.propTypes = {
|
|
42222
42309
|
mini: L.default.bool,
|
|
42223
42310
|
checked: L.default.bool.isRequired,
|
|
42224
42311
|
onChange: L.default.func.isRequired,
|
|
42225
42312
|
value: L.default.string,
|
|
42226
42313
|
label: L.default.string.isRequired,
|
|
42227
42314
|
error: L.default.bool
|
|
42228
|
-
},
|
|
42315
|
+
}, GX.defaultProps = {
|
|
42229
42316
|
value: "",
|
|
42230
42317
|
mini: !1,
|
|
42231
42318
|
error: !1
|
|
42232
42319
|
};
|
|
42233
42320
|
//#endregion
|
|
42234
42321
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
42235
|
-
var
|
|
42322
|
+
var KX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), qX = M(oi)(({ theme: e }) => ({
|
|
42236
42323
|
marginRight: e.spacing(1),
|
|
42237
42324
|
"& .MuiInputLabel-root": {
|
|
42238
42325
|
width: "auto",
|
|
@@ -42254,11 +42341,11 @@ var LX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), RX = M(oi)(({
|
|
|
42254
42341
|
minHeight: "auto",
|
|
42255
42342
|
padding: "6px 0 7px"
|
|
42256
42343
|
}
|
|
42257
|
-
})),
|
|
42344
|
+
})), JX = (e, t) => {
|
|
42258
42345
|
if (!c(e) && !c(t)) return 0;
|
|
42259
42346
|
if (!c(e) && c(t)) return t;
|
|
42260
42347
|
if (c(e)) return e;
|
|
42261
|
-
},
|
|
42348
|
+
}, YX = class extends yt.Component {
|
|
42262
42349
|
static propTypes = {
|
|
42263
42350
|
disabled: L.default.bool,
|
|
42264
42351
|
className: L.default.string,
|
|
@@ -42284,13 +42371,13 @@ var LX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), RX = M(oi)(({
|
|
|
42284
42371
|
this.setState({ value: t });
|
|
42285
42372
|
}
|
|
42286
42373
|
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) :
|
|
42374
|
+
return c(e) ? (c(n) && (e = Math.min(e, n)), c(t) && (e = Math.max(e, t)), e) : JX(t, n);
|
|
42288
42375
|
}
|
|
42289
42376
|
onBlur = (e) => {
|
|
42290
42377
|
let t = e.target.value, n = parseFloat(t);
|
|
42291
|
-
|
|
42378
|
+
KX("rawNumber: ", n);
|
|
42292
42379
|
let r = this.clamp(n);
|
|
42293
|
-
|
|
42380
|
+
KX("number: ", r), r !== this.state.value && (KX("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
42294
42381
|
this.props.onChange(e, r);
|
|
42295
42382
|
}));
|
|
42296
42383
|
};
|
|
@@ -42310,7 +42397,7 @@ var LX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), RX = M(oi)(({
|
|
|
42310
42397
|
};
|
|
42311
42398
|
render() {
|
|
42312
42399
|
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(
|
|
42400
|
+
return /* @__PURE__ */ F(qX, {
|
|
42314
42401
|
variant: s ? "filled" : l || "standard",
|
|
42315
42402
|
inputRef: (e) => {
|
|
42316
42403
|
this.inputRef = e;
|
|
@@ -42345,19 +42432,19 @@ var LX = (0, Dn.default)("@pie-lib:config-ui:number-text-field"), RX = M(oi)(({
|
|
|
42345
42432
|
};
|
|
42346
42433
|
//#endregion
|
|
42347
42434
|
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
42348
|
-
function
|
|
42435
|
+
function XX(e) {
|
|
42349
42436
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
42350
42437
|
}
|
|
42351
|
-
function
|
|
42352
|
-
return !e ||
|
|
42438
|
+
function ZX(e, t) {
|
|
42439
|
+
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
42440
|
}
|
|
42354
|
-
var
|
|
42441
|
+
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
42442
|
display: "flex",
|
|
42356
42443
|
flexWrap: "wrap",
|
|
42357
42444
|
paddingLeft: 0,
|
|
42358
42445
|
marginTop: e.spacing(1),
|
|
42359
42446
|
...t === "vertical" && { flexDirection: "column" }
|
|
42360
|
-
})),
|
|
42447
|
+
})), rZ = class extends yt.Component {
|
|
42361
42448
|
static propTypes = {
|
|
42362
42449
|
header: L.default.string.isRequired,
|
|
42363
42450
|
className: L.default.string,
|
|
@@ -42375,10 +42462,10 @@ var UX = HX(lt, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
|
|
|
42375
42462
|
label: e,
|
|
42376
42463
|
value: e
|
|
42377
42464
|
} : e), s = n || Sl;
|
|
42378
|
-
return /* @__PURE__ */ F(
|
|
42465
|
+
return /* @__PURE__ */ F(QX, {
|
|
42379
42466
|
label: e,
|
|
42380
42467
|
className: t,
|
|
42381
|
-
children: /* @__PURE__ */ F(
|
|
42468
|
+
children: /* @__PURE__ */ F(nZ, {
|
|
42382
42469
|
direction: a,
|
|
42383
42470
|
children: o.map((e, t) => /* @__PURE__ */ F(s, {
|
|
42384
42471
|
value: e.value,
|
|
@@ -42389,7 +42476,7 @@ var UX = HX(lt, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
|
|
|
42389
42476
|
})
|
|
42390
42477
|
});
|
|
42391
42478
|
}
|
|
42392
|
-
},
|
|
42479
|
+
}, iZ = L.default.shape({
|
|
42393
42480
|
label: L.default.string,
|
|
42394
42481
|
value: L.default.string
|
|
42395
42482
|
});
|
|
@@ -42398,14 +42485,14 @@ var UX = HX(lt, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
|
|
|
42398
42485
|
header: L.default.string.isRequired,
|
|
42399
42486
|
value: L.default.string.isRequired,
|
|
42400
42487
|
onChange: L.default.func.isRequired,
|
|
42401
|
-
one: L.default.oneOfType([
|
|
42402
|
-
two: L.default.oneOfType([
|
|
42488
|
+
one: L.default.oneOfType([iZ, L.default.string]),
|
|
42489
|
+
two: L.default.oneOfType([iZ, L.default.string]),
|
|
42403
42490
|
className: L.default.string,
|
|
42404
42491
|
customLabel: L.default.func
|
|
42405
42492
|
};
|
|
42406
42493
|
render() {
|
|
42407
42494
|
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
42408
|
-
return /* @__PURE__ */ F(
|
|
42495
|
+
return /* @__PURE__ */ F(rZ, {
|
|
42409
42496
|
customLabel: i,
|
|
42410
42497
|
header: n,
|
|
42411
42498
|
className: r,
|
|
@@ -42417,21 +42504,21 @@ var UX = HX(lt, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
|
|
|
42417
42504
|
});
|
|
42418
42505
|
//#endregion
|
|
42419
42506
|
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
42420
|
-
var
|
|
42507
|
+
var aZ = Object.defineProperty, oZ = (e, t) => {
|
|
42421
42508
|
let n = {};
|
|
42422
|
-
for (var r in e)
|
|
42509
|
+
for (var r in e) aZ(n, r, {
|
|
42423
42510
|
get: e[r],
|
|
42424
42511
|
enumerable: !0
|
|
42425
42512
|
});
|
|
42426
|
-
return t ||
|
|
42427
|
-
},
|
|
42513
|
+
return t || aZ(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
42514
|
+
}, sZ = M("div")(() => ({
|
|
42428
42515
|
display: "flex",
|
|
42429
42516
|
flexDirection: "column",
|
|
42430
42517
|
position: "relative"
|
|
42431
|
-
})),
|
|
42518
|
+
})), cZ = M("div")(() => ({
|
|
42432
42519
|
display: "flex",
|
|
42433
42520
|
justifyContent: "space-between"
|
|
42434
|
-
})),
|
|
42521
|
+
})), 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
42522
|
static propTypes = {
|
|
42436
42523
|
mode: L.default.oneOf(["tabbed", "inline"]),
|
|
42437
42524
|
secondary: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]),
|
|
@@ -42449,7 +42536,7 @@ var XX = Object.defineProperty, ZX = (e, t) => {
|
|
|
42449
42536
|
} catch (e) {
|
|
42450
42537
|
console.log(e.toString());
|
|
42451
42538
|
}
|
|
42452
|
-
return /* @__PURE__ */ I(
|
|
42539
|
+
return /* @__PURE__ */ I(sZ, {
|
|
42453
42540
|
style: {
|
|
42454
42541
|
minHeight: i,
|
|
42455
42542
|
minWidth: a,
|
|
@@ -42457,28 +42544,28 @@ var XX = Object.defineProperty, ZX = (e, t) => {
|
|
|
42457
42544
|
maxWidth: s
|
|
42458
42545
|
},
|
|
42459
42546
|
children: [
|
|
42460
|
-
e === "inline" && /* @__PURE__ */ I(
|
|
42547
|
+
e === "inline" && /* @__PURE__ */ I(cZ, { children: [/* @__PURE__ */ F(uZ, {
|
|
42461
42548
|
className: "design-container",
|
|
42462
42549
|
children: n
|
|
42463
|
-
}), l && /* @__PURE__ */ F(
|
|
42550
|
+
}), l && /* @__PURE__ */ F(dZ, {
|
|
42464
42551
|
className: "settings-container",
|
|
42465
42552
|
children: t
|
|
42466
42553
|
})] }),
|
|
42467
|
-
e === "tabbed" && l && /* @__PURE__ */ I(
|
|
42554
|
+
e === "tabbed" && l && /* @__PURE__ */ I(HX, {
|
|
42468
42555
|
onChange: this.onTabsChange,
|
|
42469
42556
|
contentClassName: "content-container",
|
|
42470
42557
|
indicatorColor: "primary",
|
|
42471
|
-
children: [/* @__PURE__ */ F(
|
|
42558
|
+
children: [/* @__PURE__ */ F(lZ, {
|
|
42472
42559
|
title: "Design",
|
|
42473
42560
|
className: "design-container",
|
|
42474
42561
|
children: n
|
|
42475
|
-
}), /* @__PURE__ */ F(
|
|
42562
|
+
}), /* @__PURE__ */ F(lZ, {
|
|
42476
42563
|
title: "Settings",
|
|
42477
42564
|
className: "settings-container",
|
|
42478
42565
|
children: t
|
|
42479
42566
|
})]
|
|
42480
42567
|
}),
|
|
42481
|
-
e === "tabbed" && !l && /* @__PURE__ */ F(
|
|
42568
|
+
e === "tabbed" && !l && /* @__PURE__ */ F(lZ, {
|
|
42482
42569
|
className: "design-container",
|
|
42483
42570
|
children: n
|
|
42484
42571
|
})
|
|
@@ -42488,18 +42575,18 @@ var XX = Object.defineProperty, ZX = (e, t) => {
|
|
|
42488
42575
|
};
|
|
42489
42576
|
//#endregion
|
|
42490
42577
|
//#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
|
|
42578
|
+
function pZ() {
|
|
42579
|
+
return pZ = Object.assign ? Object.assign.bind() : function(e) {
|
|
42493
42580
|
for (var t = 1; t < arguments.length; t++) {
|
|
42494
42581
|
var n = arguments[t];
|
|
42495
42582
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
42496
42583
|
}
|
|
42497
42584
|
return e;
|
|
42498
|
-
},
|
|
42585
|
+
}, pZ.apply(null, arguments);
|
|
42499
42586
|
}
|
|
42500
42587
|
//#endregion
|
|
42501
42588
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
42502
|
-
function
|
|
42589
|
+
function mZ(e, t) {
|
|
42503
42590
|
if (e == null) return {};
|
|
42504
42591
|
var n = {};
|
|
42505
42592
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -42510,19 +42597,19 @@ function aZ(e, t) {
|
|
|
42510
42597
|
}
|
|
42511
42598
|
//#endregion
|
|
42512
42599
|
//#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
|
|
42600
|
+
function hZ(e, t) {
|
|
42601
|
+
return hZ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
42515
42602
|
return e.__proto__ = t, e;
|
|
42516
|
-
},
|
|
42603
|
+
}, hZ(e, t);
|
|
42517
42604
|
}
|
|
42518
42605
|
//#endregion
|
|
42519
42606
|
//#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,
|
|
42607
|
+
function gZ(e, t) {
|
|
42608
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, hZ(e, t);
|
|
42522
42609
|
}
|
|
42523
42610
|
//#endregion
|
|
42524
42611
|
//#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
|
|
42612
|
+
var _Z = (function() {
|
|
42526
42613
|
if (typeof Map < "u") return Map;
|
|
42527
42614
|
function e(e, t) {
|
|
42528
42615
|
var n = -1;
|
|
@@ -42561,34 +42648,34 @@ var cZ = (function() {
|
|
|
42561
42648
|
}
|
|
42562
42649
|
}, t;
|
|
42563
42650
|
}();
|
|
42564
|
-
})(),
|
|
42651
|
+
})(), vZ = typeof window < "u" && typeof document < "u" && window.document === document, yZ = (function() {
|
|
42565
42652
|
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(
|
|
42653
|
+
})(), bZ = (function() {
|
|
42654
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(yZ) : function(e) {
|
|
42568
42655
|
return setTimeout(function() {
|
|
42569
42656
|
return e(Date.now());
|
|
42570
42657
|
}, 1e3 / 60);
|
|
42571
42658
|
};
|
|
42572
|
-
})(),
|
|
42573
|
-
function
|
|
42659
|
+
})(), xZ = 2;
|
|
42660
|
+
function SZ(e, t) {
|
|
42574
42661
|
var n = !1, r = !1, i = 0;
|
|
42575
42662
|
function a() {
|
|
42576
42663
|
n && (n = !1, e()), r && s();
|
|
42577
42664
|
}
|
|
42578
42665
|
function o() {
|
|
42579
|
-
|
|
42666
|
+
bZ(a);
|
|
42580
42667
|
}
|
|
42581
42668
|
function s() {
|
|
42582
42669
|
var e = Date.now();
|
|
42583
42670
|
if (n) {
|
|
42584
|
-
if (e - i <
|
|
42671
|
+
if (e - i < xZ) return;
|
|
42585
42672
|
r = !0;
|
|
42586
42673
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
42587
42674
|
i = e;
|
|
42588
42675
|
}
|
|
42589
42676
|
return s;
|
|
42590
42677
|
}
|
|
42591
|
-
var
|
|
42678
|
+
var CZ = 20, wZ = [
|
|
42592
42679
|
"top",
|
|
42593
42680
|
"right",
|
|
42594
42681
|
"bottom",
|
|
@@ -42597,9 +42684,9 @@ var mZ = 20, hZ = [
|
|
|
42597
42684
|
"height",
|
|
42598
42685
|
"size",
|
|
42599
42686
|
"weight"
|
|
42600
|
-
],
|
|
42687
|
+
], TZ = typeof MutationObserver < "u", EZ = function() {
|
|
42601
42688
|
function e() {
|
|
42602
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
42689
|
+
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
42690
|
}
|
|
42604
42691
|
return e.prototype.addObserver = function(e) {
|
|
42605
42692
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -42616,23 +42703,23 @@ var mZ = 20, hZ = [
|
|
|
42616
42703
|
return e.broadcastActive();
|
|
42617
42704
|
}), e.length > 0;
|
|
42618
42705
|
}, e.prototype.connect_ = function() {
|
|
42619
|
-
!
|
|
42706
|
+
!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
42707
|
attributes: !0,
|
|
42621
42708
|
childList: !0,
|
|
42622
42709
|
characterData: !0,
|
|
42623
42710
|
subtree: !0
|
|
42624
42711
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
42625
42712
|
}, e.prototype.disconnect_ = function() {
|
|
42626
|
-
!
|
|
42713
|
+
!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
42714
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
42628
42715
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
42629
|
-
|
|
42716
|
+
wZ.some(function(e) {
|
|
42630
42717
|
return !!~n.indexOf(e);
|
|
42631
42718
|
}) && this.refresh();
|
|
42632
42719
|
}, e.getInstance = function() {
|
|
42633
42720
|
return this.instance_ ||= new e(), this.instance_;
|
|
42634
42721
|
}, e.instance_ = null, e;
|
|
42635
|
-
}(),
|
|
42722
|
+
}(), DZ = (function(e, t) {
|
|
42636
42723
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
42637
42724
|
var i = r[n];
|
|
42638
42725
|
Object.defineProperty(e, i, {
|
|
@@ -42643,19 +42730,19 @@ var mZ = 20, hZ = [
|
|
|
42643
42730
|
});
|
|
42644
42731
|
}
|
|
42645
42732
|
return e;
|
|
42646
|
-
}),
|
|
42647
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
42648
|
-
}),
|
|
42649
|
-
function
|
|
42733
|
+
}), OZ = (function(e) {
|
|
42734
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || yZ;
|
|
42735
|
+
}), kZ = zZ(0, 0, 0, 0);
|
|
42736
|
+
function AZ(e) {
|
|
42650
42737
|
return parseFloat(e) || 0;
|
|
42651
42738
|
}
|
|
42652
|
-
function
|
|
42739
|
+
function jZ(e) {
|
|
42653
42740
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
42654
42741
|
var r = e["border-" + n + "-width"];
|
|
42655
|
-
return t +
|
|
42742
|
+
return t + AZ(r);
|
|
42656
42743
|
}, 0);
|
|
42657
42744
|
}
|
|
42658
|
-
function
|
|
42745
|
+
function MZ(e) {
|
|
42659
42746
|
for (var t = [
|
|
42660
42747
|
"top",
|
|
42661
42748
|
"right",
|
|
@@ -42663,40 +42750,40 @@ function CZ(e) {
|
|
|
42663
42750
|
"left"
|
|
42664
42751
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
42665
42752
|
var a = i[r], o = e["padding-" + a];
|
|
42666
|
-
n[a] =
|
|
42753
|
+
n[a] = AZ(o);
|
|
42667
42754
|
}
|
|
42668
42755
|
return n;
|
|
42669
42756
|
}
|
|
42670
|
-
function
|
|
42757
|
+
function NZ(e) {
|
|
42671
42758
|
var t = e.getBBox();
|
|
42672
|
-
return
|
|
42759
|
+
return zZ(0, 0, t.width, t.height);
|
|
42673
42760
|
}
|
|
42674
|
-
function
|
|
42761
|
+
function PZ(e) {
|
|
42675
42762
|
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 -=
|
|
42763
|
+
if (!t && !n) return kZ;
|
|
42764
|
+
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);
|
|
42765
|
+
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
42766
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
42680
42767
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
42681
42768
|
}
|
|
42682
|
-
return
|
|
42769
|
+
return zZ(i.left, i.top, s, c);
|
|
42683
42770
|
}
|
|
42684
|
-
var
|
|
42771
|
+
var FZ = (function() {
|
|
42685
42772
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
42686
|
-
return e instanceof
|
|
42773
|
+
return e instanceof OZ(e).SVGGraphicsElement;
|
|
42687
42774
|
} : function(e) {
|
|
42688
|
-
return e instanceof
|
|
42775
|
+
return e instanceof OZ(e).SVGElement && typeof e.getBBox == "function";
|
|
42689
42776
|
};
|
|
42690
42777
|
})();
|
|
42691
|
-
function
|
|
42692
|
-
return e ===
|
|
42778
|
+
function IZ(e) {
|
|
42779
|
+
return e === OZ(e).document.documentElement;
|
|
42693
42780
|
}
|
|
42694
|
-
function
|
|
42695
|
-
return
|
|
42781
|
+
function LZ(e) {
|
|
42782
|
+
return vZ ? FZ(e) ? NZ(e) : PZ(e) : kZ;
|
|
42696
42783
|
}
|
|
42697
|
-
function
|
|
42784
|
+
function RZ(e) {
|
|
42698
42785
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
42699
|
-
return
|
|
42786
|
+
return DZ(a, {
|
|
42700
42787
|
x: t,
|
|
42701
42788
|
y: n,
|
|
42702
42789
|
width: r,
|
|
@@ -42707,7 +42794,7 @@ function kZ(e) {
|
|
|
42707
42794
|
left: t
|
|
42708
42795
|
}), a;
|
|
42709
42796
|
}
|
|
42710
|
-
function
|
|
42797
|
+
function zZ(e, t, n, r) {
|
|
42711
42798
|
return {
|
|
42712
42799
|
x: e,
|
|
42713
42800
|
y: t,
|
|
@@ -42715,42 +42802,42 @@ function AZ(e, t, n, r) {
|
|
|
42715
42802
|
height: r
|
|
42716
42803
|
};
|
|
42717
42804
|
}
|
|
42718
|
-
var
|
|
42805
|
+
var BZ = function() {
|
|
42719
42806
|
function e(e) {
|
|
42720
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
42807
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = zZ(0, 0, 0, 0), this.target = e;
|
|
42721
42808
|
}
|
|
42722
42809
|
return e.prototype.isActive = function() {
|
|
42723
|
-
var e =
|
|
42810
|
+
var e = LZ(this.target);
|
|
42724
42811
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
42725
42812
|
}, e.prototype.broadcastRect = function() {
|
|
42726
42813
|
var e = this.contentRect_;
|
|
42727
42814
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
42728
42815
|
}, e;
|
|
42729
|
-
}(),
|
|
42816
|
+
}(), VZ = function() {
|
|
42730
42817
|
function e(e, t) {
|
|
42731
|
-
var n =
|
|
42732
|
-
|
|
42818
|
+
var n = RZ(t);
|
|
42819
|
+
DZ(this, {
|
|
42733
42820
|
target: e,
|
|
42734
42821
|
contentRect: n
|
|
42735
42822
|
});
|
|
42736
42823
|
}
|
|
42737
42824
|
return e;
|
|
42738
|
-
}(),
|
|
42825
|
+
}(), HZ = function() {
|
|
42739
42826
|
function e(e, t, n) {
|
|
42740
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
42827
|
+
if (this.activeObservations_ = [], this.observations_ = new _Z(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
42741
42828
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
42742
42829
|
}
|
|
42743
42830
|
return e.prototype.observe = function(e) {
|
|
42744
42831
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42745
42832
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
42746
|
-
if (!(e instanceof
|
|
42833
|
+
if (!(e instanceof OZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
42747
42834
|
var t = this.observations_;
|
|
42748
|
-
t.has(e) || (t.set(e, new
|
|
42835
|
+
t.has(e) || (t.set(e, new BZ(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
42749
42836
|
}
|
|
42750
42837
|
}, e.prototype.unobserve = function(e) {
|
|
42751
42838
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42752
42839
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
42753
|
-
if (!(e instanceof
|
|
42840
|
+
if (!(e instanceof OZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
42754
42841
|
var t = this.observations_;
|
|
42755
42842
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
42756
42843
|
}
|
|
@@ -42764,7 +42851,7 @@ var jZ = function() {
|
|
|
42764
42851
|
}, e.prototype.broadcastActive = function() {
|
|
42765
42852
|
if (this.hasActive()) {
|
|
42766
42853
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
42767
|
-
return new
|
|
42854
|
+
return new VZ(e.target, e.broadcastRect());
|
|
42768
42855
|
});
|
|
42769
42856
|
this.callback_.call(e, t, e), this.clearActive();
|
|
42770
42857
|
}
|
|
@@ -42773,12 +42860,12 @@ var jZ = function() {
|
|
|
42773
42860
|
}, e.prototype.hasActive = function() {
|
|
42774
42861
|
return this.activeObservations_.length > 0;
|
|
42775
42862
|
}, e;
|
|
42776
|
-
}(),
|
|
42863
|
+
}(), UZ = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new _Z(), WZ = function() {
|
|
42777
42864
|
function e(t) {
|
|
42778
42865
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
42779
42866
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
42780
|
-
var n = new
|
|
42781
|
-
|
|
42867
|
+
var n = new HZ(t, EZ.getInstance(), this);
|
|
42868
|
+
UZ.set(this, n);
|
|
42782
42869
|
}
|
|
42783
42870
|
return e;
|
|
42784
42871
|
}();
|
|
@@ -42787,27 +42874,27 @@ var jZ = function() {
|
|
|
42787
42874
|
"unobserve",
|
|
42788
42875
|
"disconnect"
|
|
42789
42876
|
].forEach(function(e) {
|
|
42790
|
-
|
|
42877
|
+
WZ.prototype[e] = function() {
|
|
42791
42878
|
var t;
|
|
42792
|
-
return (t =
|
|
42879
|
+
return (t = UZ.get(this))[e].apply(t, arguments);
|
|
42793
42880
|
};
|
|
42794
42881
|
});
|
|
42795
|
-
var
|
|
42796
|
-
return
|
|
42797
|
-
})(),
|
|
42882
|
+
var GZ = (function() {
|
|
42883
|
+
return yZ.ResizeObserver === void 0 ? WZ : yZ.ResizeObserver;
|
|
42884
|
+
})(), KZ = [
|
|
42798
42885
|
"client",
|
|
42799
42886
|
"offset",
|
|
42800
42887
|
"scroll",
|
|
42801
42888
|
"bounds",
|
|
42802
42889
|
"margin"
|
|
42803
42890
|
];
|
|
42804
|
-
function
|
|
42891
|
+
function qZ(e) {
|
|
42805
42892
|
var t = [];
|
|
42806
|
-
return
|
|
42893
|
+
return KZ.forEach(function(n) {
|
|
42807
42894
|
e[n] && t.push(n);
|
|
42808
42895
|
}), t;
|
|
42809
42896
|
}
|
|
42810
|
-
function
|
|
42897
|
+
function JZ(e, t) {
|
|
42811
42898
|
var n = {};
|
|
42812
42899
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
42813
42900
|
top: e.clientTop,
|
|
@@ -42846,14 +42933,14 @@ function zZ(e, t) {
|
|
|
42846
42933
|
}
|
|
42847
42934
|
return n;
|
|
42848
42935
|
}
|
|
42849
|
-
function
|
|
42936
|
+
function YZ(e) {
|
|
42850
42937
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
42851
42938
|
}
|
|
42852
|
-
function
|
|
42939
|
+
function XZ(e) {
|
|
42853
42940
|
return function(t) {
|
|
42854
42941
|
var n, r;
|
|
42855
42942
|
return r = n = /*#__PURE__*/ function(n) {
|
|
42856
|
-
|
|
42943
|
+
gZ(r, n);
|
|
42857
42944
|
function r() {
|
|
42858
42945
|
var t, r = [...arguments];
|
|
42859
42946
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -42864,24 +42951,24 @@ function VZ(e) {
|
|
|
42864
42951
|
bounds: {},
|
|
42865
42952
|
margin: {}
|
|
42866
42953
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
42867
|
-
var r =
|
|
42954
|
+
var r = JZ(t._node, e || qZ(t.props));
|
|
42868
42955
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
42869
42956
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
42870
42957
|
});
|
|
42871
42958
|
}, t._handleRef = function(e) {
|
|
42872
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
42959
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = YZ(t._node);
|
|
42873
42960
|
var n = t.props.innerRef;
|
|
42874
42961
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
42875
42962
|
}, t;
|
|
42876
42963
|
}
|
|
42877
42964
|
var i = r.prototype;
|
|
42878
42965
|
return i.componentDidMount = function() {
|
|
42879
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
42966
|
+
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
42967
|
}, i.componentWillUnmount = function() {
|
|
42881
42968
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
42882
42969
|
}, i.render = function() {
|
|
42883
42970
|
var e = this.props;
|
|
42884
|
-
return e.innerRef, e.onResize, St(t,
|
|
42971
|
+
return e.innerRef, e.onResize, St(t, pZ({}, mZ(e, ["innerRef", "onResize"]), {
|
|
42885
42972
|
measureRef: this._handleRef,
|
|
42886
42973
|
measure: this.measure,
|
|
42887
42974
|
contentRect: this.state.contentRect
|
|
@@ -42898,7 +42985,7 @@ function VZ(e) {
|
|
|
42898
42985
|
}, r;
|
|
42899
42986
|
};
|
|
42900
42987
|
}
|
|
42901
|
-
var
|
|
42988
|
+
var ZZ = XZ()(function(e) {
|
|
42902
42989
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
42903
42990
|
return i({
|
|
42904
42991
|
measure: t,
|
|
@@ -42906,10 +42993,10 @@ var HZ = VZ()(function(e) {
|
|
|
42906
42993
|
contentRect: r
|
|
42907
42994
|
});
|
|
42908
42995
|
});
|
|
42909
|
-
|
|
42996
|
+
ZZ.displayName = "Measure", ZZ.propTypes.children = L.default.func;
|
|
42910
42997
|
//#endregion
|
|
42911
42998
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
42912
|
-
var
|
|
42999
|
+
var QZ = M("div")(() => ({
|
|
42913
43000
|
backgroundColor: k.white(),
|
|
42914
43001
|
border: `2px solid ${k.border()}`,
|
|
42915
43002
|
display: "flex",
|
|
@@ -42919,7 +43006,7 @@ var UZ = M("div")(() => ({
|
|
|
42919
43006
|
maxWidth: "300px",
|
|
42920
43007
|
padding: "20px 4px 4px 20px",
|
|
42921
43008
|
zIndex: 99
|
|
42922
|
-
})),
|
|
43009
|
+
})), $Z = class extends yt.Component {
|
|
42923
43010
|
static propTypes = {
|
|
42924
43011
|
className: L.default.string,
|
|
42925
43012
|
children: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]).isRequired
|
|
@@ -42927,19 +43014,19 @@ var UZ = M("div")(() => ({
|
|
|
42927
43014
|
static defaultProps = {};
|
|
42928
43015
|
render() {
|
|
42929
43016
|
let { className: e, children: t } = this.props;
|
|
42930
|
-
return /* @__PURE__ */ F(
|
|
43017
|
+
return /* @__PURE__ */ F(QZ, {
|
|
42931
43018
|
className: e,
|
|
42932
43019
|
children: t
|
|
42933
43020
|
});
|
|
42934
43021
|
}
|
|
42935
|
-
},
|
|
43022
|
+
}, eQ = ye({
|
|
42936
43023
|
typography: { fontFamily: "inherit" },
|
|
42937
43024
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
42938
43025
|
backgroundColor: "#e0e0e0",
|
|
42939
43026
|
color: "#000000",
|
|
42940
43027
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
42941
43028
|
} } } }
|
|
42942
|
-
}),
|
|
43029
|
+
}), tQ = class extends yt.Component {
|
|
42943
43030
|
static propTypes = {
|
|
42944
43031
|
children: L.default.oneOfType([
|
|
42945
43032
|
L.default.string,
|
|
@@ -42972,19 +43059,19 @@ var UZ = M("div")(() => ({
|
|
|
42972
43059
|
return /* @__PURE__ */ F(He, {
|
|
42973
43060
|
injectFirst: !0,
|
|
42974
43061
|
children: /* @__PURE__ */ F(Te, {
|
|
42975
|
-
theme:
|
|
42976
|
-
children: /* @__PURE__ */ F(
|
|
43062
|
+
theme: eQ,
|
|
43063
|
+
children: /* @__PURE__ */ F(ZZ, {
|
|
42977
43064
|
bounds: !0,
|
|
42978
43065
|
onResize: this.onResize,
|
|
42979
43066
|
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(
|
|
43067
|
+
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
43068
|
className: "settings-box",
|
|
42982
43069
|
children: n
|
|
42983
43070
|
}) : n;
|
|
42984
43071
|
return /* @__PURE__ */ I("div", {
|
|
42985
43072
|
ref: e,
|
|
42986
43073
|
className: "main-container extraCSSRules",
|
|
42987
|
-
children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(
|
|
43074
|
+
children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(fZ, {
|
|
42988
43075
|
mode: o,
|
|
42989
43076
|
secondary: s,
|
|
42990
43077
|
dimensions: i,
|
|
@@ -42996,27 +43083,27 @@ var UZ = M("div")(() => ({
|
|
|
42996
43083
|
})
|
|
42997
43084
|
});
|
|
42998
43085
|
}
|
|
42999
|
-
},
|
|
43000
|
-
ConfigLayout: () =>
|
|
43001
|
-
LayoutContents: () =>
|
|
43002
|
-
}),
|
|
43086
|
+
}, nQ = XZ("bounds")(tQ), rQ = /* @__PURE__ */ oZ({
|
|
43087
|
+
ConfigLayout: () => nQ,
|
|
43088
|
+
LayoutContents: () => fZ
|
|
43089
|
+
}), iQ = M("div")(() => ({
|
|
43003
43090
|
display: "flex",
|
|
43004
43091
|
width: "100%",
|
|
43005
43092
|
justifyContent: "space-between"
|
|
43006
|
-
})),
|
|
43093
|
+
})), aQ = M(ht)(({ theme: e }) => ({
|
|
43007
43094
|
color: "rgba(0, 0, 0, 0.89)",
|
|
43008
43095
|
fontSize: e.typography.fontSize,
|
|
43009
43096
|
paddingTop: e.spacing(2)
|
|
43010
|
-
})),
|
|
43097
|
+
})), oQ = M(on)(({ checked: e }) => ({
|
|
43011
43098
|
"&.Mui-checked .MuiSwitch-thumb": { color: `${k.tertiary()} !important` },
|
|
43012
43099
|
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${k.tertiaryLight()} !important` },
|
|
43013
43100
|
"& .MuiSwitch-track": { backgroundColor: e ? `${k.tertiaryLight()} !important` : void 0 }
|
|
43014
|
-
})),
|
|
43101
|
+
})), sQ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I(iQ, { children: [/* @__PURE__ */ F(aQ, { children: n }), /* @__PURE__ */ F(oQ, {
|
|
43015
43102
|
checked: e,
|
|
43016
43103
|
disabled: t,
|
|
43017
43104
|
onChange: (e) => r(e.target.checked)
|
|
43018
43105
|
})] });
|
|
43019
|
-
|
|
43106
|
+
sQ.propTypes = {
|
|
43020
43107
|
checked: L.default.bool,
|
|
43021
43108
|
disabled: L.default.bool,
|
|
43022
43109
|
label: L.default.string.isRequired,
|
|
@@ -43024,20 +43111,20 @@ QZ.propTypes = {
|
|
|
43024
43111
|
};
|
|
43025
43112
|
//#endregion
|
|
43026
43113
|
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
43027
|
-
var
|
|
43114
|
+
var cQ = M(yn)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
43028
43115
|
color: "rgba(0, 0, 0, 0.89)",
|
|
43029
43116
|
fontSize: e.typography.fontSize - 2,
|
|
43030
43117
|
left: "-5px",
|
|
43031
43118
|
position: "relative"
|
|
43032
|
-
} })),
|
|
43119
|
+
} })), lQ = M(Mc)(() => ({ color: `${k.tertiary()} !important` })), uQ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(cQ, {
|
|
43033
43120
|
value: t,
|
|
43034
|
-
control: /* @__PURE__ */ F(
|
|
43121
|
+
control: /* @__PURE__ */ F(lQ, {
|
|
43035
43122
|
checked: n,
|
|
43036
43123
|
onChange: r
|
|
43037
43124
|
}),
|
|
43038
43125
|
label: e
|
|
43039
43126
|
});
|
|
43040
|
-
|
|
43127
|
+
uQ.propTypes = {
|
|
43041
43128
|
label: L.default.string,
|
|
43042
43129
|
value: L.default.string,
|
|
43043
43130
|
checked: L.default.bool,
|
|
@@ -43045,26 +43132,26 @@ tQ.propTypes = {
|
|
|
43045
43132
|
};
|
|
43046
43133
|
//#endregion
|
|
43047
43134
|
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
43048
|
-
var
|
|
43135
|
+
var dQ = (0, Dn.default)("pie-lib:config-ui:settings:panel"), fQ = {
|
|
43049
43136
|
label: L.default.string,
|
|
43050
43137
|
value: L.default.string
|
|
43051
|
-
},
|
|
43138
|
+
}, pQ = {
|
|
43052
43139
|
label: L.default.string,
|
|
43053
43140
|
value: L.default.string,
|
|
43054
43141
|
onChange: L.default.func
|
|
43055
|
-
},
|
|
43142
|
+
}, mQ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(GX, {
|
|
43056
43143
|
checked: t,
|
|
43057
43144
|
label: e,
|
|
43058
43145
|
onChange: (e) => {
|
|
43059
43146
|
n(e.target.checked);
|
|
43060
43147
|
}
|
|
43061
43148
|
});
|
|
43062
|
-
|
|
43149
|
+
mQ.propTypes = {
|
|
43063
43150
|
label: L.default.string,
|
|
43064
43151
|
value: L.default.bool,
|
|
43065
43152
|
onChange: L.default.func
|
|
43066
43153
|
};
|
|
43067
|
-
var
|
|
43154
|
+
var hQ = M(rZ)(({ theme: e }) => ({
|
|
43068
43155
|
marginTop: e.spacing(.5),
|
|
43069
43156
|
paddingBottom: e.spacing(.5),
|
|
43070
43157
|
width: "100%",
|
|
@@ -43075,29 +43162,29 @@ var oQ = M(JX)(({ theme: e }) => ({
|
|
|
43075
43162
|
marginTop: e.spacing(2.5)
|
|
43076
43163
|
},
|
|
43077
43164
|
"& > div": { marginTop: e.spacing(2.5) }
|
|
43078
|
-
})),
|
|
43165
|
+
})), gQ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(hQ, {
|
|
43079
43166
|
direction: "horizontal",
|
|
43080
|
-
customLabel:
|
|
43167
|
+
customLabel: uQ,
|
|
43081
43168
|
value: t,
|
|
43082
43169
|
header: e,
|
|
43083
43170
|
opts: r,
|
|
43084
43171
|
onChange: n
|
|
43085
43172
|
});
|
|
43086
|
-
|
|
43087
|
-
...
|
|
43088
|
-
choices: L.default.arrayOf(L.default.shape(
|
|
43173
|
+
gQ.propTypes = {
|
|
43174
|
+
...pQ,
|
|
43175
|
+
choices: L.default.arrayOf(L.default.shape(fQ))
|
|
43089
43176
|
};
|
|
43090
|
-
var
|
|
43177
|
+
var _Q = gQ, vQ = M("p")(({ theme: e }) => ({
|
|
43091
43178
|
margin: 0,
|
|
43092
43179
|
fontSize: e.typography.fontSize
|
|
43093
|
-
})),
|
|
43180
|
+
})), yQ = M(ti)(({ theme: e }) => ({
|
|
43094
43181
|
marginTop: e.spacing(.5),
|
|
43095
43182
|
border: "2px solid lightgrey",
|
|
43096
43183
|
padding: `0 ${e.spacing(1)}`,
|
|
43097
43184
|
borderRadius: "4px"
|
|
43098
|
-
})),
|
|
43185
|
+
})), bQ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
43099
43186
|
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(
|
|
43187
|
+
return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(vQ, { children: e }), /* @__PURE__ */ F(yQ, {
|
|
43101
43188
|
value: t || r && r[0],
|
|
43102
43189
|
onChange: ({ target: e }) => n(e.value),
|
|
43103
43190
|
input: /* @__PURE__ */ F(rr, { id: `dropdown-${e}` }),
|
|
@@ -43112,14 +43199,14 @@ var cQ = sQ, lQ = M("p")(({ theme: e }) => ({
|
|
|
43112
43199
|
}, t))
|
|
43113
43200
|
})] });
|
|
43114
43201
|
};
|
|
43115
|
-
|
|
43116
|
-
...
|
|
43202
|
+
bQ.propTypes = {
|
|
43203
|
+
...pQ,
|
|
43117
43204
|
choices: L.default.arrayOf(L.default.string)
|
|
43118
43205
|
};
|
|
43119
|
-
var
|
|
43206
|
+
var xQ = M(pn)(({ theme: e }) => ({
|
|
43120
43207
|
marginRight: e.spacing(3),
|
|
43121
43208
|
marginTop: e.spacing(1)
|
|
43122
|
-
})),
|
|
43209
|
+
})), SQ = ({ label: e }) => /* @__PURE__ */ F(xQ, { children: e }), CQ = M(YX)(({ theme: e }) => ({
|
|
43123
43210
|
width: "35%",
|
|
43124
43211
|
marginRight: e.spacing(3),
|
|
43125
43212
|
marginTop: e.spacing(1),
|
|
@@ -43130,7 +43217,7 @@ var fQ = M(pn)(({ theme: e }) => ({
|
|
|
43130
43217
|
padding: `0 ${e.spacing(1)}`,
|
|
43131
43218
|
backgroundColor: "transparent"
|
|
43132
43219
|
}
|
|
43133
|
-
})),
|
|
43220
|
+
})), wQ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(CQ, {
|
|
43134
43221
|
variant: "standard",
|
|
43135
43222
|
label: e || "Label",
|
|
43136
43223
|
value: t,
|
|
@@ -43141,45 +43228,45 @@ var fQ = M(pn)(({ theme: e }) => ({
|
|
|
43141
43228
|
showErrorWhenOutsideRange: !0,
|
|
43142
43229
|
disableUnderline: !0
|
|
43143
43230
|
});
|
|
43144
|
-
|
|
43145
|
-
...
|
|
43231
|
+
wQ.propTypes = {
|
|
43232
|
+
...pQ,
|
|
43146
43233
|
suffix: L.default.string,
|
|
43147
43234
|
min: L.default.number,
|
|
43148
43235
|
max: L.default.number,
|
|
43149
43236
|
value: L.default.number
|
|
43150
|
-
},
|
|
43151
|
-
var
|
|
43237
|
+
}, SQ.propTypes = { ...pQ };
|
|
43238
|
+
var TQ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(sQ, {
|
|
43152
43239
|
label: t,
|
|
43153
43240
|
checked: !!n,
|
|
43154
43241
|
disabled: !!e,
|
|
43155
43242
|
toggle: r
|
|
43156
43243
|
});
|
|
43157
|
-
|
|
43158
|
-
...
|
|
43244
|
+
TQ.propTypes = {
|
|
43245
|
+
...pQ,
|
|
43159
43246
|
value: L.default.bool
|
|
43160
43247
|
};
|
|
43161
|
-
var
|
|
43162
|
-
toggle:
|
|
43163
|
-
radio:
|
|
43164
|
-
dropdown:
|
|
43165
|
-
numberField:
|
|
43166
|
-
checkbox:
|
|
43167
|
-
textField:
|
|
43168
|
-
},
|
|
43248
|
+
var EQ = {
|
|
43249
|
+
toggle: TQ,
|
|
43250
|
+
radio: _Q,
|
|
43251
|
+
dropdown: bQ,
|
|
43252
|
+
numberField: wQ,
|
|
43253
|
+
checkbox: mQ,
|
|
43254
|
+
textField: SQ
|
|
43255
|
+
}, DQ = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), OQ = M("div")(({ theme: e }) => ({
|
|
43169
43256
|
color: "#495B8F",
|
|
43170
43257
|
fontSize: e.typography.fontSize + 2,
|
|
43171
43258
|
fontWeight: 600,
|
|
43172
43259
|
marginBottom: e.spacing(1)
|
|
43173
|
-
})),
|
|
43260
|
+
})), kQ = M("p")(({ theme: e }) => ({
|
|
43174
43261
|
fontSize: e.typography.fontSize,
|
|
43175
43262
|
marginBottom: 0
|
|
43176
|
-
})),
|
|
43263
|
+
})), AQ = (e) => {
|
|
43177
43264
|
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
43178
43265
|
let { isConfigProperty: o, ...s } = u(e, r || n), c = u(o ? i : t, n), l = {
|
|
43179
43266
|
...s,
|
|
43180
43267
|
key: n,
|
|
43181
43268
|
value: c
|
|
43182
|
-
}, d =
|
|
43269
|
+
}, d = EQ[l.type];
|
|
43183
43270
|
return /* @__PURE__ */ F(d, {
|
|
43184
43271
|
...l,
|
|
43185
43272
|
onChange: (e) => a(n, e, o)
|
|
@@ -43188,18 +43275,18 @@ var _Q = {
|
|
|
43188
43275
|
let n = e[t];
|
|
43189
43276
|
if (!n) return null;
|
|
43190
43277
|
let { type: r, label: i, fields: a, choices: s } = n;
|
|
43191
|
-
return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(
|
|
43278
|
+
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
43279
|
};
|
|
43193
|
-
return /* @__PURE__ */ I(
|
|
43280
|
+
return /* @__PURE__ */ I(DQ, { children: [/* @__PURE__ */ F(OQ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
43194
43281
|
};
|
|
43195
|
-
|
|
43282
|
+
AQ.propTypes = {
|
|
43196
43283
|
model: L.default.object,
|
|
43197
43284
|
label: L.default.string,
|
|
43198
43285
|
group: L.default.object,
|
|
43199
43286
|
configuration: L.default.object,
|
|
43200
43287
|
onChange: L.default.func
|
|
43201
43288
|
};
|
|
43202
|
-
var
|
|
43289
|
+
var jQ = class extends yt.Component {
|
|
43203
43290
|
static propTypes = {
|
|
43204
43291
|
model: L.default.object,
|
|
43205
43292
|
configuration: L.default.object,
|
|
@@ -43213,13 +43300,13 @@ var SQ = class extends yt.Component {
|
|
|
43213
43300
|
onChangeConfiguration: () => {}
|
|
43214
43301
|
};
|
|
43215
43302
|
change = (e, t, n = !1) => {
|
|
43216
|
-
|
|
43303
|
+
dQ("[changeModel]", e, t);
|
|
43217
43304
|
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
|
|
43218
43305
|
n ? (m(o, e, t), i(o, e)) : (m(a, e, t), r(a, e));
|
|
43219
43306
|
};
|
|
43220
43307
|
render() {
|
|
43221
43308
|
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
43222
|
-
return
|
|
43309
|
+
return dQ("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(AQ, {
|
|
43223
43310
|
label: r,
|
|
43224
43311
|
model: t,
|
|
43225
43312
|
configuration: n,
|
|
@@ -43227,59 +43314,59 @@ var SQ = class extends yt.Component {
|
|
|
43227
43314
|
onChange: this.change
|
|
43228
43315
|
}, r) : null), r] });
|
|
43229
43316
|
}
|
|
43230
|
-
},
|
|
43231
|
-
Panel: () =>
|
|
43232
|
-
checkbox: () =>
|
|
43233
|
-
checkboxes: () =>
|
|
43234
|
-
dropdown: () =>
|
|
43235
|
-
numberField: () =>
|
|
43236
|
-
numberFields: () =>
|
|
43237
|
-
radio: () =>
|
|
43238
|
-
textField: () =>
|
|
43239
|
-
toggle: () =>
|
|
43240
|
-
}),
|
|
43317
|
+
}, MQ = /* @__PURE__ */ oZ({
|
|
43318
|
+
Panel: () => jQ,
|
|
43319
|
+
checkbox: () => BQ,
|
|
43320
|
+
checkboxes: () => VQ,
|
|
43321
|
+
dropdown: () => LQ,
|
|
43322
|
+
numberField: () => RQ,
|
|
43323
|
+
numberFields: () => zQ,
|
|
43324
|
+
radio: () => IQ,
|
|
43325
|
+
textField: () => NQ,
|
|
43326
|
+
toggle: () => PQ
|
|
43327
|
+
}), NQ = (e, t = !0) => ({
|
|
43241
43328
|
label: e,
|
|
43242
43329
|
type: "textField",
|
|
43243
43330
|
isConfigProperty: t
|
|
43244
|
-
}),
|
|
43331
|
+
}), PQ = (e, t = !1, n = !1) => ({
|
|
43245
43332
|
type: "toggle",
|
|
43246
43333
|
label: e,
|
|
43247
43334
|
isConfigProperty: t,
|
|
43248
43335
|
disabled: n
|
|
43249
|
-
}),
|
|
43336
|
+
}), FQ = (e) => typeof e == "string" ? {
|
|
43250
43337
|
label: e,
|
|
43251
43338
|
value: e
|
|
43252
|
-
} : e,
|
|
43339
|
+
} : e, IQ = function() {
|
|
43253
43340
|
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
43254
43341
|
return {
|
|
43255
43342
|
type: "radio",
|
|
43256
43343
|
label: e,
|
|
43257
|
-
choices: t && t.map((e) =>
|
|
43344
|
+
choices: t && t.map((e) => FQ(e)),
|
|
43258
43345
|
isConfigProperty: n
|
|
43259
43346
|
};
|
|
43260
|
-
},
|
|
43347
|
+
}, LQ = (e, t, n = !1) => ({
|
|
43261
43348
|
type: "dropdown",
|
|
43262
43349
|
label: e,
|
|
43263
43350
|
choices: t,
|
|
43264
43351
|
isConfigProperty: n
|
|
43265
|
-
}),
|
|
43352
|
+
}), RQ = (e, t, n = !1) => ({
|
|
43266
43353
|
...t,
|
|
43267
43354
|
label: e,
|
|
43268
43355
|
type: "numberField",
|
|
43269
43356
|
isConfigProperty: n
|
|
43270
|
-
}),
|
|
43271
|
-
t[e] =
|
|
43357
|
+
}), zQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
43358
|
+
t[e] = RQ(t[e].label, t[e], n);
|
|
43272
43359
|
}), {
|
|
43273
43360
|
type: "numberFields",
|
|
43274
43361
|
label: e,
|
|
43275
43362
|
fields: t
|
|
43276
|
-
}),
|
|
43363
|
+
}), BQ = (e, t, n = !1) => ({
|
|
43277
43364
|
...t,
|
|
43278
43365
|
label: e,
|
|
43279
43366
|
type: "checkbox",
|
|
43280
43367
|
isConfigProperty: n
|
|
43281
|
-
}),
|
|
43282
|
-
t[e] =
|
|
43368
|
+
}), VQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
43369
|
+
t[e] = BQ(t[e].label, t[e], n);
|
|
43283
43370
|
}), {
|
|
43284
43371
|
type: "checkboxes",
|
|
43285
43372
|
label: e,
|
|
@@ -43287,31 +43374,31 @@ var SQ = class extends yt.Component {
|
|
|
43287
43374
|
});
|
|
43288
43375
|
//#endregion
|
|
43289
43376
|
//#region ../../lib-react/config-ui/dist/index.js
|
|
43290
|
-
function
|
|
43377
|
+
function HQ(e) {
|
|
43291
43378
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
43292
43379
|
}
|
|
43293
|
-
function
|
|
43294
|
-
return !e ||
|
|
43380
|
+
function UQ(e, t) {
|
|
43381
|
+
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
43382
|
}
|
|
43296
|
-
var
|
|
43383
|
+
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
43384
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = document.createElement("div");
|
|
43298
43385
|
return t.innerHTML = e.trim(), t;
|
|
43299
|
-
},
|
|
43386
|
+
}, XQ = function(e, t) {
|
|
43300
43387
|
return t ? e.innerHTML : `${e.innerHTML}
|
|
43301
43388
|
|
|
43302
43389
|
`;
|
|
43303
|
-
},
|
|
43390
|
+
}, ZQ = function(e) {
|
|
43304
43391
|
var t = e.querySelectorAll("div[separator=true]"), n = "";
|
|
43305
43392
|
return t.forEach(function(e, r) {
|
|
43306
|
-
n +=
|
|
43393
|
+
n += XQ(e, r === t.length - 1);
|
|
43307
43394
|
}), 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
|
-
},
|
|
43395
|
+
}, QQ = function(e) {
|
|
43396
|
+
var t = YQ(e), n = document.createElement("div");
|
|
43397
|
+
return n.innerHTML = `<div separator='true'>${t.innerHTML}</div>`, t = n, Array.from(t.querySelectorAll("*")).length === 0 ? e : ZQ(t);
|
|
43398
|
+
}, $Q = (e) => {
|
|
43312
43399
|
if (!e) return e;
|
|
43313
|
-
let t =
|
|
43314
|
-
let i =
|
|
43400
|
+
let t = QQ(e.text || ""), n = (e.tokens || []).reduce((n, r = {}) => {
|
|
43401
|
+
let i = QQ((e.text || "").slice(r.start, r.end));
|
|
43315
43402
|
if (!i) return [...n, r];
|
|
43316
43403
|
let a = (e) => {
|
|
43317
43404
|
let n = e;
|
|
@@ -43336,18 +43423,18 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43336
43423
|
tokens: n,
|
|
43337
43424
|
text: t
|
|
43338
43425
|
};
|
|
43339
|
-
},
|
|
43426
|
+
}, e$ = (e) => {
|
|
43340
43427
|
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
43428
|
return "Validation requirements:" + i + a;
|
|
43342
|
-
}, { Panel:
|
|
43429
|
+
}, { Panel: t$, toggle: n$, radio: r$, dropdown: i$ } = MQ, a$ = M(WQ)(({ theme: e }) => ({
|
|
43343
43430
|
width: "100%",
|
|
43344
43431
|
paddingTop: e.spacing(2),
|
|
43345
43432
|
marginBottom: e.spacing(2)
|
|
43346
|
-
})),
|
|
43433
|
+
})), o$ = M(bX)({ width: "100%" }), s$ = M("div")(({ theme: e }) => ({
|
|
43347
43434
|
fontSize: e.typography.fontSize - 2,
|
|
43348
43435
|
color: e.palette.error.main,
|
|
43349
43436
|
paddingTop: e.spacing(1)
|
|
43350
|
-
})), $
|
|
43437
|
+
})), c$ = M(oi)({ width: "100%" }), l$ = M(WQ)(({ theme: e }) => ({
|
|
43351
43438
|
paddingRight: 0,
|
|
43352
43439
|
marginRight: 0,
|
|
43353
43440
|
position: "relative",
|
|
@@ -43361,22 +43448,22 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43361
43448
|
backgroundColor: e.palette.primary.main
|
|
43362
43449
|
},
|
|
43363
43450
|
marginBottom: e.spacing(1)
|
|
43364
|
-
})),
|
|
43451
|
+
})), u$ = M(Wc)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
43365
43452
|
fontSize: e.typography.fontSize - 2,
|
|
43366
43453
|
whiteSpace: "pre",
|
|
43367
43454
|
maxWidth: "500px"
|
|
43368
|
-
} })),
|
|
43455
|
+
} })), d$ = M(Pn)(({ theme: e }) => ({ marginTop: e.spacing(2) })), f$ = M(Uo)(({ theme: e }) => ({
|
|
43369
43456
|
marginTop: e.spacing(.5),
|
|
43370
43457
|
marginRight: e.spacing(2)
|
|
43371
|
-
})),
|
|
43458
|
+
})), p$ = M("div")(({ theme: e }) => ({
|
|
43372
43459
|
display: "flex",
|
|
43373
43460
|
alignItems: "center",
|
|
43374
43461
|
flexWrap: "wrap",
|
|
43375
43462
|
marginBottom: e.spacing(2.5)
|
|
43376
|
-
})),
|
|
43463
|
+
})), m$ = M(YX)(({ theme: e }) => ({
|
|
43377
43464
|
width: "180px",
|
|
43378
43465
|
margin: `${e.spacing(.5)} auto 0`
|
|
43379
|
-
})),
|
|
43466
|
+
})), h$ = (0, Dn.default)("@pie-element:select-text:configure"), g$ = class extends yt.Component {
|
|
43380
43467
|
static propTypes = {
|
|
43381
43468
|
model: L.default.object.isRequired,
|
|
43382
43469
|
configuration: L.default.object.isRequired,
|
|
@@ -43441,33 +43528,33 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43441
43528
|
});
|
|
43442
43529
|
};
|
|
43443
43530
|
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 =
|
|
43531
|
+
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
43532
|
ge ||= [];
|
|
43446
43533
|
let _e = { position: ce === "top" ? "top" : "bottom" };
|
|
43447
|
-
|
|
43534
|
+
h$("[render] maxSelections:", r.maxSelections);
|
|
43448
43535
|
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 &&
|
|
43536
|
+
partialScoring: p.settings && n$(p.label),
|
|
43537
|
+
highlightChoices: d.settings && n$(d.label),
|
|
43538
|
+
feedbackEnabled: u.settings && n$(u.label),
|
|
43539
|
+
"language.enabled": te.settings && n$(te.label, !0),
|
|
43540
|
+
language: te.settings && te.enabled && i$(ne.label, ne.options)
|
|
43454
43541
|
}, 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 &&
|
|
43542
|
+
teacherInstructionsEnabled: S.settings && n$(S.label),
|
|
43543
|
+
studentInstructionsEnabled: x.settings && n$(x.label),
|
|
43544
|
+
promptEnabled: m.settings && n$(m.label),
|
|
43545
|
+
rationaleEnabled: h.settings && n$(h.label),
|
|
43546
|
+
spellCheckEnabled: b.settings && n$(b.label),
|
|
43547
|
+
scoringType: y.settings && r$(y.label, ["auto", "rubric"]),
|
|
43548
|
+
rubricEnabled: ee?.settings && n$(ee?.label)
|
|
43462
43549
|
}, ye = (e = {}) => ({
|
|
43463
43550
|
...s,
|
|
43464
43551
|
...e
|
|
43465
43552
|
});
|
|
43466
|
-
return /* @__PURE__ */ I(
|
|
43553
|
+
return /* @__PURE__ */ I(rQ.ConfigLayout, {
|
|
43467
43554
|
extraCSSRules: re,
|
|
43468
43555
|
dimensions: l,
|
|
43469
43556
|
hideSettings: v,
|
|
43470
|
-
settings: /* @__PURE__ */ F(
|
|
43557
|
+
settings: /* @__PURE__ */ F(t$, {
|
|
43471
43558
|
model: r,
|
|
43472
43559
|
configuration: t,
|
|
43473
43560
|
onChangeModel: (e) => a(e),
|
|
@@ -43478,9 +43565,9 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43478
43565
|
}
|
|
43479
43566
|
}),
|
|
43480
43567
|
children: [
|
|
43481
|
-
se && /* @__PURE__ */ I(
|
|
43568
|
+
se && /* @__PURE__ */ I(a$, {
|
|
43482
43569
|
label: S.label,
|
|
43483
|
-
children: [/* @__PURE__ */ F(
|
|
43570
|
+
children: [/* @__PURE__ */ F(o$, {
|
|
43484
43571
|
markup: r.teacherInstructions || "",
|
|
43485
43572
|
onChange: this.onTeacherInstructionsChanged,
|
|
43486
43573
|
imageSupport: n,
|
|
@@ -43494,11 +43581,11 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43494
43581
|
uploadSoundSupport: o,
|
|
43495
43582
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
43496
43583
|
mathMlOptions: D
|
|
43497
|
-
}), fe && /* @__PURE__ */ F(
|
|
43584
|
+
}), fe && /* @__PURE__ */ F(s$, { children: fe })]
|
|
43498
43585
|
}),
|
|
43499
|
-
k && /* @__PURE__ */ I(
|
|
43586
|
+
k && /* @__PURE__ */ I(a$, {
|
|
43500
43587
|
label: m.label || "",
|
|
43501
|
-
children: [/* @__PURE__ */ F(
|
|
43588
|
+
children: [/* @__PURE__ */ F(o$, {
|
|
43502
43589
|
markup: r.prompt,
|
|
43503
43590
|
onChange: this.onPromptChanged,
|
|
43504
43591
|
imageSupport: n,
|
|
@@ -43511,11 +43598,11 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43511
43598
|
uploadSoundSupport: o,
|
|
43512
43599
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
43513
43600
|
mathMlOptions: D
|
|
43514
|
-
}), le && /* @__PURE__ */ F(
|
|
43601
|
+
}), le && /* @__PURE__ */ F(s$, { children: le })]
|
|
43515
43602
|
}),
|
|
43516
|
-
C.settings && /* @__PURE__ */ F(
|
|
43603
|
+
C.settings && /* @__PURE__ */ F(a$, {
|
|
43517
43604
|
label: C.label || "",
|
|
43518
|
-
children: /* @__PURE__ */ F(
|
|
43605
|
+
children: /* @__PURE__ */ F(c$, {
|
|
43519
43606
|
variant: "standard",
|
|
43520
43607
|
multiline: !0,
|
|
43521
43608
|
defaultValue: e,
|
|
@@ -43523,14 +43610,14 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43523
43610
|
spellCheck: oe
|
|
43524
43611
|
})
|
|
43525
43612
|
}),
|
|
43526
|
-
w.settings && /* @__PURE__ */ I(
|
|
43613
|
+
w.settings && /* @__PURE__ */ I(l$, {
|
|
43527
43614
|
label: w.label || "",
|
|
43528
|
-
children: [/* @__PURE__ */ F(
|
|
43615
|
+
children: [/* @__PURE__ */ F(u$, {
|
|
43529
43616
|
disableFocusListener: !0,
|
|
43530
43617
|
disableTouchListener: !0,
|
|
43531
43618
|
placement: "right",
|
|
43532
43619
|
title: me,
|
|
43533
|
-
children: /* @__PURE__ */ F(
|
|
43620
|
+
children: /* @__PURE__ */ F(JQ, {
|
|
43534
43621
|
fontSize: "small",
|
|
43535
43622
|
color: "primary",
|
|
43536
43623
|
style: {
|
|
@@ -43539,19 +43626,19 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43539
43626
|
top: "-3px"
|
|
43540
43627
|
}
|
|
43541
43628
|
})
|
|
43542
|
-
}), /* @__PURE__ */ F(
|
|
43629
|
+
}), /* @__PURE__ */ F(d$, {
|
|
43543
43630
|
text: r.text,
|
|
43544
43631
|
tokens: ge,
|
|
43545
43632
|
onChange: this.changeTokens
|
|
43546
43633
|
})]
|
|
43547
43634
|
}),
|
|
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(
|
|
43635
|
+
pe && /* @__PURE__ */ F(s$, { children: pe }),
|
|
43636
|
+
de && /* @__PURE__ */ F(s$, { children: de }),
|
|
43637
|
+
/* @__PURE__ */ I(p$, { children: [
|
|
43638
|
+
f.settings && /* @__PURE__ */ F(f$, { label: `${f.label}: ${r.mode ? r.mode : "None"}` }),
|
|
43639
|
+
_.settings && /* @__PURE__ */ F(f$, { label: `${_.label}: ${ge.length}` }),
|
|
43640
|
+
c.settings && /* @__PURE__ */ F(f$, { label: `${c.label}: ${ge.filter((e) => e.correct).length}` }),
|
|
43641
|
+
g.settings && /* @__PURE__ */ F(m$, {
|
|
43555
43642
|
min: ge.filter((e) => e.correct).length || 0,
|
|
43556
43643
|
label: `${g.label} (0:any)`,
|
|
43557
43644
|
max: ge.length,
|
|
@@ -43559,9 +43646,9 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43559
43646
|
onChange: this.changeMaxSelections
|
|
43560
43647
|
})
|
|
43561
43648
|
] }),
|
|
43562
|
-
ae && /* @__PURE__ */ I(
|
|
43649
|
+
ae && /* @__PURE__ */ I(a$, {
|
|
43563
43650
|
label: h.label || "",
|
|
43564
|
-
children: [/* @__PURE__ */ F(
|
|
43651
|
+
children: [/* @__PURE__ */ F(o$, {
|
|
43565
43652
|
markup: r.rationale || "",
|
|
43566
43653
|
onChange: this.onRationaleChanged,
|
|
43567
43654
|
imageSupport: n,
|
|
@@ -43574,9 +43661,9 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43574
43661
|
uploadSoundSupport: o,
|
|
43575
43662
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
43576
43663
|
mathMlOptions: D
|
|
43577
|
-
}), ue && /* @__PURE__ */ F(
|
|
43664
|
+
}), ue && /* @__PURE__ */ F(s$, { children: ue })]
|
|
43578
43665
|
}),
|
|
43579
|
-
ie && /* @__PURE__ */ F(
|
|
43666
|
+
ie && /* @__PURE__ */ F(BX, {
|
|
43580
43667
|
feedback: r.feedback,
|
|
43581
43668
|
onChange: this.changeFeedback,
|
|
43582
43669
|
toolbarOpts: _e
|
|
@@ -43584,7 +43671,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43584
43671
|
]
|
|
43585
43672
|
});
|
|
43586
43673
|
}
|
|
43587
|
-
},
|
|
43674
|
+
}, _$ = class e extends CustomEvent {
|
|
43588
43675
|
static {
|
|
43589
43676
|
this.TYPE = "model.updated";
|
|
43590
43677
|
}
|
|
@@ -43597,7 +43684,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43597
43684
|
}
|
|
43598
43685
|
}), this.update = t, this.reset = n;
|
|
43599
43686
|
}
|
|
43600
|
-
},
|
|
43687
|
+
}, v$ = class e extends CustomEvent {
|
|
43601
43688
|
static {
|
|
43602
43689
|
this.TYPE = "delete.image";
|
|
43603
43690
|
}
|
|
@@ -43610,7 +43697,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43610
43697
|
}
|
|
43611
43698
|
}), this.src = t, this.done = n;
|
|
43612
43699
|
}
|
|
43613
|
-
},
|
|
43700
|
+
}, y$ = class e extends CustomEvent {
|
|
43614
43701
|
static {
|
|
43615
43702
|
this.TYPE = "insert.image";
|
|
43616
43703
|
}
|
|
@@ -43620,7 +43707,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43620
43707
|
detail: t
|
|
43621
43708
|
}), this.handler = t;
|
|
43622
43709
|
}
|
|
43623
|
-
},
|
|
43710
|
+
}, b$ = class e extends CustomEvent {
|
|
43624
43711
|
static {
|
|
43625
43712
|
this.TYPE = "delete.sound";
|
|
43626
43713
|
}
|
|
@@ -43633,7 +43720,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43633
43720
|
}
|
|
43634
43721
|
}), this.src = t, this.done = n;
|
|
43635
43722
|
}
|
|
43636
|
-
},
|
|
43723
|
+
}, x$ = class e extends CustomEvent {
|
|
43637
43724
|
static {
|
|
43638
43725
|
this.TYPE = "insert.sound";
|
|
43639
43726
|
}
|
|
@@ -43643,7 +43730,7 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43643
43730
|
detail: t
|
|
43644
43731
|
}), this.handler = t;
|
|
43645
43732
|
}
|
|
43646
|
-
},
|
|
43733
|
+
}, S$ = {
|
|
43647
43734
|
model: {
|
|
43648
43735
|
feedbackEnabled: !1,
|
|
43649
43736
|
highlightChoices: !1,
|
|
@@ -43780,20 +43867,20 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43780
43867
|
options: []
|
|
43781
43868
|
}
|
|
43782
43869
|
}
|
|
43783
|
-
},
|
|
43784
|
-
static createDefaultModel = (e = {}) =>
|
|
43785
|
-
...
|
|
43870
|
+
}, C$ = class e extends HTMLElement {
|
|
43871
|
+
static createDefaultModel = (e = {}) => $Q({
|
|
43872
|
+
...S$.model,
|
|
43786
43873
|
...e
|
|
43787
43874
|
});
|
|
43788
43875
|
constructor() {
|
|
43789
|
-
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration =
|
|
43876
|
+
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = S$.configuration;
|
|
43790
43877
|
}
|
|
43791
43878
|
set model(t) {
|
|
43792
43879
|
this._model = e.createDefaultModel(t), this.render();
|
|
43793
43880
|
}
|
|
43794
43881
|
set configuration(e) {
|
|
43795
43882
|
let t = {
|
|
43796
|
-
...
|
|
43883
|
+
...S$.configuration,
|
|
43797
43884
|
...e
|
|
43798
43885
|
};
|
|
43799
43886
|
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 +43892,26 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43805
43892
|
this.render();
|
|
43806
43893
|
}
|
|
43807
43894
|
modelChanged(e) {
|
|
43808
|
-
this._model = e, this.dispatchEvent(new
|
|
43895
|
+
this._model = e, this.dispatchEvent(new _$(this._model), !0), this.render();
|
|
43809
43896
|
}
|
|
43810
43897
|
onConfigurationChanged(e) {
|
|
43811
|
-
this._configuration = e, this._model && this.dispatchEvent(new
|
|
43898
|
+
this._configuration = e, this._model && this.dispatchEvent(new _$(this._model), !1), this.render();
|
|
43812
43899
|
}
|
|
43813
43900
|
insertImage(e) {
|
|
43814
|
-
this.dispatchEvent(new
|
|
43901
|
+
this.dispatchEvent(new y$(e));
|
|
43815
43902
|
}
|
|
43816
43903
|
onDeleteImage(e, t) {
|
|
43817
|
-
this.dispatchEvent(new
|
|
43904
|
+
this.dispatchEvent(new v$(e, t));
|
|
43818
43905
|
}
|
|
43819
43906
|
insertSound(e) {
|
|
43820
|
-
this.dispatchEvent(new
|
|
43907
|
+
this.dispatchEvent(new x$(e));
|
|
43821
43908
|
}
|
|
43822
43909
|
onDeleteSound(e, t) {
|
|
43823
|
-
this.dispatchEvent(new
|
|
43910
|
+
this.dispatchEvent(new b$(e, t));
|
|
43824
43911
|
}
|
|
43825
43912
|
render() {
|
|
43826
43913
|
if (this._model) {
|
|
43827
|
-
let e = yt.createElement(
|
|
43914
|
+
let e = yt.createElement(g$, {
|
|
43828
43915
|
model: this._model,
|
|
43829
43916
|
configuration: this._configuration,
|
|
43830
43917
|
onModelChanged: this.modelChanged.bind(this),
|
|
@@ -43846,6 +43933,6 @@ var FQ = PQ(lt, "InputContainer") || PQ(RQ.InputContainer, "InputContainer"), IQ
|
|
|
43846
43933
|
}
|
|
43847
43934
|
};
|
|
43848
43935
|
//#endregion
|
|
43849
|
-
export {
|
|
43936
|
+
export { C$ as default };
|
|
43850
43937
|
|
|
43851
43938
|
//# sourceMappingURL=index.js.map
|