@pie-element/match 12.1.2-next.7 → 12.1.2-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { a as e, i as t, n, t as r } from "../browser-kkT1XVKw.js";
2
- import { $ as i, A as a, At as o, B as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, Mt as S, N as C, Nt as w, Ot as ee, P as T, Q as te, R as E, S as ne, St as re, T as ie, Tt as D, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _ as de, _t as fe, a as pe, at as me, b as he, bt as ge, c as _e, ct as ve, et as ye, ft as O, g as be, gt as xe, h as Se, ht as k, i as Ce, it as we, j as Te, jt as Ee, k as De, kt as A, l as Oe, lt as ke, m as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, q as Ie, r as Le, rt as Re, s as ze, st as Be, t as Ve, tt as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, xt as Je, y as Ye, yt as Xe, z as j } from "../Typography-BvyMwfyW.js";
2
+ import { $ as i, A as a, At as o, B as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, Mt as S, N as C, Nt as w, Ot as ee, P as T, Q as te, R as E, S as ne, St as re, T as ie, Tt as D, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _ as de, _t as fe, a as pe, at as me, b as he, bt as ge, c as _e, ct as ve, et as ye, ft as O, g as be, gt as xe, h as Se, ht as k, i as Ce, it as we, j as Te, jt as Ee, k as De, kt as A, l as Oe, lt as ke, m as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, q as Ie, r as Le, rt as Re, s as ze, st as Be, t as Ve, tt as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, xt as Je, y as Ye, yt as Xe, z as j } from "../Typography-DS6VD63M.js";
3
3
  import { a as Ze, c as Qe, d as $e, f as et, i as tt, l as nt, n as rt, o as it, p as at, r as ot, s as st, t as ct, u as lt } from "../dist-C4gh2n2Z.js";
4
4
  import * as M from "react";
5
5
  import N, { Component as ut, createContext as dt, createElement as ft, createRef as pt, forwardRef as mt, memo as ht, useCallback as gt, useContext as _t, useDebugValue as vt, useEffect as P, useLayoutEffect as yt, useMemo as bt, useReducer as xt, useRef as St, useState as Ct, version as wt } from "react";
@@ -41237,8 +41237,8 @@ mx.create({
41237
41237
  })) ?? null };
41238
41238
  }
41239
41239
  });
41240
- var VY = "placeholder", HY = new xd("tiptap__placeholder"), UY = 200;
41241
- function WY(e) {
41240
+ var VY = "placeholder", HY = new xd("tiptap__placeholder");
41241
+ function UY(e) {
41242
41242
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
41243
41243
  return o && u.push(l), __.node(i, i + a.nodeSize, {
41244
41244
  class: u.join(" "),
@@ -41250,156 +41250,198 @@ function WY(e) {
41250
41250
  }) : n
41251
41251
  });
41252
41252
  }
41253
- function GY({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
41253
+ function WY(e, t) {
41254
+ return typeof e == "function" ? e(t) : e;
41255
+ }
41256
+ function GY({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
41257
+ let { anchor: s } = i, c = [], l = e.isEmpty;
41258
+ return r.nodesBetween(a, o, (r, i) => {
41259
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && Sb(r);
41260
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(UY({
41261
+ editor: e,
41262
+ isEmptyDoc: l,
41263
+ dataAttribute: n,
41264
+ hasAnchor: a,
41265
+ placeholder: t.placeholder,
41266
+ classes: {
41267
+ emptyEditor: t.emptyEditorClass,
41268
+ emptyNode: WY(t.emptyNodeClass, {
41269
+ editor: e,
41270
+ node: r,
41271
+ pos: i,
41272
+ hasAnchor: a
41273
+ })
41274
+ },
41275
+ node: r,
41276
+ pos: i
41277
+ })), t.includeChildren;
41278
+ }), c;
41279
+ }
41280
+ function KY({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
41254
41281
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
41255
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
41256
- emptyEditor: t.emptyEditorClass,
41257
- emptyNode: t.emptyNodeClass
41258
- };
41282
+ let { anchor: a } = i, o = [], s = e.isEmpty;
41259
41283
  if (t.showOnlyCurrent && !t.includeChildren) {
41260
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
41261
- if (l && l.type.isTextblock && Sb(l)) {
41262
- let r = a >= u && a <= u + l.nodeSize;
41263
- o.push(WY({
41284
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
41285
+ if (c && c.type.isTextblock && Sb(c)) {
41286
+ let r = a >= l && a <= l + c.nodeSize;
41287
+ o.push(UY({
41264
41288
  editor: e,
41265
41289
  isEmptyDoc: s,
41266
41290
  dataAttribute: n,
41267
41291
  hasAnchor: r,
41268
41292
  placeholder: t.placeholder,
41269
- classes: c,
41270
- node: l,
41271
- pos: u
41293
+ classes: {
41294
+ emptyEditor: t.emptyEditorClass,
41295
+ emptyNode: WY(t.emptyNodeClass, {
41296
+ editor: e,
41297
+ node: c,
41298
+ pos: l,
41299
+ hasAnchor: r
41300
+ })
41301
+ },
41302
+ node: c,
41303
+ pos: l
41272
41304
  }));
41273
41305
  }
41274
- } else {
41275
- let i = HY.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
41276
- r.nodesBetween(l, u, (r, i) => {
41277
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && Sb(r);
41278
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(WY({
41279
- editor: e,
41280
- isEmptyDoc: s,
41281
- dataAttribute: n,
41282
- hasAnchor: l,
41283
- placeholder: t.placeholder,
41284
- classes: c,
41285
- node: r,
41286
- pos: i
41287
- })), t.includeChildren;
41288
- });
41289
- }
41306
+ } else o.push(...GY({
41307
+ editor: e,
41308
+ options: t,
41309
+ dataAttribute: n,
41310
+ doc: r,
41311
+ selection: i,
41312
+ from: 0,
41313
+ to: r.content.size
41314
+ }));
41290
41315
  return b_.create(r, o);
41291
41316
  }
41292
- function KY(e) {
41293
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
41317
+ function qY(e, t) {
41318
+ let n = e.resolve(t);
41319
+ if (n.depth === 0) {
41320
+ let e = n.nodeAfter ?? n.nodeBefore;
41321
+ if (!e) return {
41322
+ from: t,
41323
+ to: t
41324
+ };
41325
+ let r = n.nodeAfter ? t : t - e.nodeSize;
41326
+ return {
41327
+ from: r,
41328
+ to: r + e.nodeSize
41329
+ };
41330
+ }
41331
+ let r = n.before(1);
41332
+ return {
41333
+ from: r,
41334
+ to: r + n.node(1).nodeSize
41335
+ };
41294
41336
  }
41295
- function qY(e) {
41296
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
41297
- return /auto|scroll|overlay/.test(n);
41337
+ function JY(e, t) {
41338
+ return {
41339
+ from: Math.max(0, t.from - 1),
41340
+ to: Math.min(e.content.size, t.to - 1)
41341
+ };
41298
41342
  }
41299
- function JY(e) {
41300
- let t = e;
41301
- for (; t;) {
41302
- if (qY(t)) return t;
41303
- let e = t.parentElement;
41304
- if (!e) {
41305
- let e = t.getRootNode();
41306
- if (e instanceof ShadowRoot) {
41307
- t = e.host;
41308
- continue;
41309
- }
41310
- return window;
41311
- }
41312
- t = e;
41343
+ function YY(e, t, n) {
41344
+ let r = [];
41345
+ return e.forEach((e, i) => {
41346
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
41347
+ s < n && c > t && r.push({
41348
+ from: a,
41349
+ to: o
41350
+ });
41351
+ }), r;
41352
+ }
41353
+ function XY(e) {
41354
+ if (e.length === 0) return [];
41355
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
41356
+ for (let e = 1; e < t.length; e += 1) {
41357
+ let r = n[n.length - 1], i = t[e];
41358
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
41313
41359
  }
41314
- return window;
41360
+ return n;
41315
41361
  }
41316
- function YY(e) {
41317
- return e === window ? {
41318
- top: 0,
41319
- bottom: window.innerHeight
41320
- } : e.getBoundingClientRect();
41362
+ function ZY(e, t) {
41363
+ let n = YY(e, t.from, t.to);
41364
+ return n.push(JY(e, qY(e, t.from))), t.to > t.from ? n.push(JY(e, qY(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(JY(e, qY(e, Math.min(t.from + 1, e.content.size)))), n;
41321
41365
  }
41322
- function XY({ doc: e, view: t, scrollContainer: n }) {
41323
- let r = t.dom.getBoundingClientRect(), i = n ? YY(n) : {
41324
- top: 0,
41325
- bottom: window.innerHeight
41326
- }, a = Math.max(r.top, i.top) - UY, o = Math.min(r.bottom, i.bottom) + UY;
41327
- if (a >= o) return {
41328
- top: 0,
41329
- bottom: e.content.size
41330
- };
41331
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
41332
- left: s,
41333
- top: a + 2
41334
- }), l = t.posAtCoords({
41335
- left: s,
41336
- top: o - 2
41337
- });
41366
+ function QY(e, t, n) {
41367
+ let r = [];
41368
+ if (e.docChanged) {
41369
+ let t = db(e);
41370
+ for (let e of t) r.push(...ZY(n.doc, e.newRange));
41371
+ }
41372
+ return e.selectionSet && (r.push(JY(n.doc, qY(n.doc, e.mapping.map(t.selection.anchor)))), r.push(JY(n.doc, qY(n.doc, n.selection.anchor)))), XY(r);
41373
+ }
41374
+ function $Y(e, t, n) {
41375
+ let r = Math.max(0, Math.min(e, n.content.size));
41338
41376
  return {
41339
- top: c ? c.pos : 0,
41340
- bottom: l ? l.pos : e.content.size
41377
+ from: r,
41378
+ to: Math.max(r, Math.min(t, n.content.size))
41341
41379
  };
41342
41380
  }
41343
- var ZY = {
41344
- init() {
41345
- return {
41346
- topPos: null,
41347
- bottomPos: null
41348
- };
41349
- },
41350
- apply(e, t) {
41351
- let n = e.getMeta(HY);
41352
- return n?.positions ? {
41353
- topPos: n.positions.top,
41354
- bottomPos: n.positions.bottom
41355
- } : e.docChanged ? {
41356
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
41357
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
41358
- } : t;
41381
+ function eX({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
41382
+ let s = e;
41383
+ for (let e of t) {
41384
+ let { from: t, to: c } = $Y(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
41385
+ l.length && (s = s.remove(l));
41386
+ let u = GY({
41387
+ editor: n,
41388
+ options: r,
41389
+ dataAttribute: i,
41390
+ doc: a,
41391
+ selection: o,
41392
+ from: t,
41393
+ to: c
41394
+ });
41395
+ u.length && (s = s.add(a, u));
41359
41396
  }
41360
- };
41361
- function QY(e) {
41362
- let t = JY(e.dom), n = () => {
41363
- let n = XY({
41364
- view: e,
41365
- doc: e.state.doc,
41366
- scrollContainer: t
41367
- }), r = HY.getState(e.state);
41368
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
41369
- let i = e.state.tr.setMeta(HY, { positions: n });
41370
- e.dispatch(i);
41371
- }, r = null, i = 0, a = () => {
41372
- r === null && (r = requestAnimationFrame(() => {
41373
- r = null;
41374
- let e = performance.now();
41375
- e - i >= 150 ? (i = e, n()) : a();
41376
- }));
41377
- };
41378
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
41379
- update(t, n) {
41380
- e.state.doc.content.size !== n.doc.content.size && a();
41397
+ return s;
41398
+ }
41399
+ function tX({ editor: e, options: t, dataAttribute: n }) {
41400
+ return {
41401
+ init(r, i) {
41402
+ return KY({
41403
+ editor: e,
41404
+ options: t,
41405
+ dataAttribute: n,
41406
+ doc: i.doc,
41407
+ selection: i.selection
41408
+ }) ?? b_.empty;
41381
41409
  },
41382
- destroy: () => {
41383
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
41410
+ apply(r, i, a, o) {
41411
+ return !r.docChanged && !r.selectionSet ? i : eX({
41412
+ decorations: i.map(r.mapping, r.doc),
41413
+ ranges: QY(r, a, o),
41414
+ editor: e,
41415
+ options: t,
41416
+ dataAttribute: n,
41417
+ doc: o.doc,
41418
+ selection: o.selection
41419
+ });
41384
41420
  }
41385
41421
  };
41386
41422
  }
41387
- function $Y({ editor: e, options: t }) {
41388
- let n = t.dataAttribute ? `data-${KY(t.dataAttribute)}` : `data-${VY}`;
41423
+ function nX(e) {
41424
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
41425
+ }
41426
+ function rX({ editor: e, options: t }) {
41427
+ let n = t.dataAttribute ? `data-${nX(t.dataAttribute)}` : `data-${VY}`, r = t.showOnlyCurrent && !t.includeChildren;
41389
41428
  return new vd({
41390
41429
  key: HY,
41391
- state: ZY,
41392
- view: QY,
41393
- props: { decorations: ({ doc: r, selection: i }) => GY({
41430
+ ...r ? {} : { state: tX({
41431
+ editor: e,
41432
+ options: t,
41433
+ dataAttribute: n
41434
+ }) },
41435
+ props: { decorations: r ? ({ doc: r, selection: i }) => KY({
41394
41436
  editor: e,
41395
41437
  options: t,
41396
41438
  dataAttribute: n,
41397
41439
  doc: r,
41398
41440
  selection: i
41399
- }) }
41441
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? b_.empty : HY.getState(n) ?? b_.empty }
41400
41442
  });
41401
41443
  }
41402
- var eX = mx.create({
41444
+ var iX = mx.create({
41403
41445
  name: "placeholder",
41404
41446
  addOptions() {
41405
41447
  return {
@@ -41413,12 +41455,25 @@ var eX = mx.create({
41413
41455
  };
41414
41456
  },
41415
41457
  addProseMirrorPlugins() {
41416
- return [$Y({
41458
+ return [rX({
41417
41459
  editor: this.editor,
41418
41460
  options: this.options
41419
41461
  })];
41420
41462
  }
41421
41463
  });
41464
+ function aX(e, t) {
41465
+ return !e.selection.empty && !Cb(e.selection) && t.isEditable;
41466
+ }
41467
+ function oX(e, t) {
41468
+ return aX(e, t) && !t.isFocused && !t.view.dragging;
41469
+ }
41470
+ function sX() {
41471
+ var e;
41472
+ (e = window.getSelection()) == null || e.removeAllRanges();
41473
+ }
41474
+ function cX(e) {
41475
+ e.focus();
41476
+ }
41422
41477
  mx.create({
41423
41478
  name: "selection",
41424
41479
  addOptions() {
@@ -41428,13 +41483,25 @@ mx.create({
41428
41483
  let { editor: e, options: t } = this;
41429
41484
  return [new vd({
41430
41485
  key: new xd("selection"),
41431
- props: { decorations(n) {
41432
- return n.selection.empty || e.isFocused || !e.isEditable || Cb(n.selection) || e.view.dragging ? null : b_.create(n.doc, [__.inline(n.selection.from, n.selection.to, { class: t.className })]);
41433
- } }
41486
+ props: {
41487
+ decorations(n) {
41488
+ return oX(n, e) ? b_.create(n.doc, [__.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
41489
+ },
41490
+ handleDOMEvents: {
41491
+ blur(t) {
41492
+ return aX(t.state, e) && sX(), !1;
41493
+ },
41494
+ focus(t) {
41495
+ return aX(t.state, e) && requestAnimationFrame(() => {
41496
+ !e.isDestroyed && t.hasFocus() && cX(t);
41497
+ }), !1;
41498
+ }
41499
+ }
41500
+ }
41434
41501
  })];
41435
41502
  }
41436
41503
  });
41437
- function tX({ types: e, node: t }) {
41504
+ function lX({ types: e, node: t }) {
41438
41505
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
41439
41506
  }
41440
41507
  mx.create({
@@ -41456,7 +41523,7 @@ mx.create({
41456
41523
  state: {
41457
41524
  init: (e, t) => {
41458
41525
  let r = t.tr.doc.lastChild;
41459
- return !tX({
41526
+ return !lX({
41460
41527
  node: r,
41461
41528
  types: n
41462
41529
  });
@@ -41464,7 +41531,7 @@ mx.create({
41464
41531
  apply: (e, t) => {
41465
41532
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
41466
41533
  let r = e.doc.lastChild;
41467
- return !tX({
41534
+ return !lX({
41468
41535
  node: r,
41469
41536
  types: n
41470
41537
  });
@@ -41499,7 +41566,7 @@ mx.create({
41499
41566
  };
41500
41567
  }
41501
41568
  });
41502
- var nX = ox.create({
41569
+ var uX = ox.create({
41503
41570
  name: "superscript",
41504
41571
  addOptions() {
41505
41572
  return { HTMLAttributes: {} };
@@ -41529,7 +41596,7 @@ var nX = ox.create({
41529
41596
  addKeyboardShortcuts() {
41530
41597
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
41531
41598
  }
41532
- }), rX = ox.create({
41599
+ }), dX = ox.create({
41533
41600
  name: "subscript",
41534
41601
  addOptions() {
41535
41602
  return { HTMLAttributes: {} };
@@ -41559,7 +41626,7 @@ var nX = ox.create({
41559
41626
  addKeyboardShortcuts() {
41560
41627
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
41561
41628
  }
41562
- }), iX = mx.create({
41629
+ }), fX = mx.create({
41563
41630
  name: "textAlign",
41564
41631
  addOptions() {
41565
41632
  return {
@@ -41601,7 +41668,7 @@ var nX = ox.create({
41601
41668
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
41602
41669
  };
41603
41670
  }
41604
- }), aX = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, oX = Wx.create({
41671
+ }), pX = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mX = Wx.create({
41605
41672
  name: "image",
41606
41673
  addOptions() {
41607
41674
  return {
@@ -41644,34 +41711,55 @@ var nX = ox.create({
41644
41711
  },
41645
41712
  addNodeView() {
41646
41713
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
41647
- let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize;
41648
- return ({ node: i, getPos: a, HTMLAttributes: o, editor: s }) => {
41649
- let c = document.createElement("img");
41650
- Object.entries(o).forEach(([e, t]) => {
41714
+ let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
41715
+ "src",
41716
+ "width",
41717
+ "height"
41718
+ ]);
41719
+ return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
41720
+ let l = document.createElement("img");
41721
+ l.draggable = !1;
41722
+ let u = Jy(this.options.HTMLAttributes, s);
41723
+ Object.entries(u).forEach(([e, t]) => {
41651
41724
  if (t != null) switch (e) {
41725
+ case "src":
41652
41726
  case "width":
41653
41727
  case "height": break;
41654
- default:
41655
- c.setAttribute(e, t);
41656
- break;
41728
+ default: l.setAttribute(e, t);
41657
41729
  }
41658
- }), c.src = o.src;
41659
- let l = new Nx({
41660
- element: c,
41661
- editor: s,
41662
- node: i,
41663
- getPos: a,
41730
+ }), u.src !== null && (l.src = u.src);
41731
+ let d = { ...s }, f = (e) => {
41732
+ if (typeof e == "string" && e !== "") {
41733
+ l.getAttribute("src") !== e && (l.src = e);
41734
+ return;
41735
+ }
41736
+ l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
41737
+ };
41738
+ f(s.src);
41739
+ let p = new Nx({
41740
+ element: l,
41741
+ editor: c,
41742
+ node: a,
41743
+ getPos: o,
41664
41744
  onResize: (e, t) => {
41665
- c.style.width = `${e}px`, c.style.height = `${t}px`;
41745
+ l.style.width = `${e}px`, l.style.height = `${t}px`;
41666
41746
  },
41667
41747
  onCommit: (e, t) => {
41668
- let n = a();
41748
+ let n = o();
41669
41749
  n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
41670
41750
  width: e,
41671
41751
  height: t
41672
41752
  }).run();
41673
41753
  },
41674
- onUpdate: (e, t, n) => e.type === i.type,
41754
+ onUpdate: (e) => {
41755
+ if (e.type !== a.type) return !1;
41756
+ let t = Yy(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
41757
+ return Object.keys(d).forEach((e) => {
41758
+ !i.has(e) && !(e in t) && l.removeAttribute(e);
41759
+ }), Object.entries(t).forEach(([e, t]) => {
41760
+ i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
41761
+ }), f(t.src), d = t, !0;
41762
+ },
41675
41763
  options: {
41676
41764
  directions: e,
41677
41765
  min: {
@@ -41680,10 +41768,10 @@ var nX = ox.create({
41680
41768
  },
41681
41769
  preserveAspectRatio: r === !0
41682
41770
  }
41683
- }), u = l.dom;
41684
- return u.style.visibility = "hidden", u.style.pointerEvents = "none", c.onload = () => {
41685
- u.style.visibility = "", u.style.pointerEvents = "";
41686
- }, l;
41771
+ }), m = p.dom, h = () => {
41772
+ m.style.visibility = "", m.style.pointerEvents = "";
41773
+ };
41774
+ return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
41687
41775
  };
41688
41776
  },
41689
41777
  addCommands() {
@@ -41694,7 +41782,7 @@ var nX = ox.create({
41694
41782
  },
41695
41783
  addInputRules() {
41696
41784
  return [Ax({
41697
- find: aX,
41785
+ find: pX,
41698
41786
  type: this.type,
41699
41787
  getAttributes: (e) => {
41700
41788
  let [, , t, n, r] = e;
@@ -41706,17 +41794,17 @@ var nX = ox.create({
41706
41794
  }
41707
41795
  })];
41708
41796
  }
41709
- }), sX = eX, cX = {
41797
+ }), hX = iX, gX = {
41710
41798
  position: "bottom",
41711
41799
  alignment: "left",
41712
41800
  alwaysVisible: !1,
41713
41801
  showDone: !0,
41714
41802
  doneOn: "blur"
41715
- }, lX = {
41803
+ }, _X = {
41716
41804
  options: {},
41717
41805
  respAreaToolbar: () => {},
41718
41806
  onHandleAreaChange: () => {}
41719
- }, uX = [
41807
+ }, vX = [
41720
41808
  "bold",
41721
41809
  "italic",
41722
41810
  "underline",
@@ -41738,7 +41826,7 @@ var nX = ox.create({
41738
41826
  "h3",
41739
41827
  "undo",
41740
41828
  "redo"
41741
- ], dX = {
41829
+ ], yX = {
41742
41830
  "--white": "#fff",
41743
41831
  "--black": "#2e2b29",
41744
41832
  "--black-contrast": "#110f0e",
@@ -41757,14 +41845,18 @@ var nX = ox.create({
41757
41845
  "--red": "#ff5c33",
41758
41846
  "--red-light": "#ffebe5",
41759
41847
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
41760
- }, fX = (e) => {
41848
+ }, bX = (e) => ({
41849
+ spellcheck: e ? "true" : "false",
41850
+ autocorrect: e ? "on" : "off",
41851
+ autocapitalize: e ? "on" : "off"
41852
+ }), xX = (e) => {
41761
41853
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Ct([]), [a, o] = Ct(!1), { toolbarOpts: s } = e, c = gt((e) => {
41762
41854
  i((t) => {
41763
41855
  let n = t.filter((t) => t.pos !== e);
41764
41856
  return n.length === 0 && o(!1), n;
41765
41857
  });
41766
41858
  }, [i]), l = {
41767
- ...cX,
41859
+ ...gX,
41768
41860
  ...s
41769
41861
  }, u = gt((t) => {
41770
41862
  let n = t.getHTML();
@@ -41775,13 +41867,13 @@ var nX = ox.create({
41775
41867
  e.onDone,
41776
41868
  l.doneOn
41777
41869
  ]), d = bt(() => ({
41778
- ...lX,
41870
+ ..._X,
41779
41871
  ...e.responseAreaProps,
41780
41872
  onInlineDropdownToolbarClose: u
41781
41873
  }), [e.responseAreaProps, u]), f = bt(() => {
41782
41874
  let { customPlugins: t, ...n } = e.pluginProps || {};
41783
41875
  t ||= [];
41784
- let r = (e.activePlugins || uX)?.filter((e) => {
41876
+ let r = (e.activePlugins || vX)?.filter((e) => {
41785
41877
  let t = dc[e] || e, r = n[t] || {};
41786
41878
  return !r || !r.disabled;
41787
41879
  });
@@ -41799,103 +41891,112 @@ var nX = ox.create({
41799
41891
  setKeypadInteraction: {},
41800
41892
  media: {}
41801
41893
  });
41802
- }, [e, d.type]), p = Xk({
41803
- extensions: [
41804
- iX.configure({
41805
- types: [
41806
- "heading",
41807
- "paragraph",
41808
- "div",
41809
- "headingParagraph",
41810
- "h1",
41811
- "h2",
41812
- "h3",
41813
- "h4",
41814
- "h5",
41815
- "h6",
41816
- "td",
41817
- "th"
41818
- ],
41819
- alignments: [
41820
- "left",
41821
- "right",
41822
- "center",
41823
- "justify"
41824
- ]
41825
- }),
41826
- zY,
41827
- BY.configure({ limit: e.charactersLimit || 1e6 }),
41828
- kY.configure({ trailingNode: {
41894
+ }, [e, d.type]), p = [
41895
+ fX.configure({
41896
+ types: [
41897
+ "heading",
41898
+ "paragraph",
41899
+ "div",
41900
+ "headingParagraph",
41901
+ "h1",
41902
+ "h2",
41903
+ "h3",
41904
+ "h4",
41905
+ "h5",
41906
+ "h6",
41907
+ "td",
41908
+ "th"
41909
+ ],
41910
+ alignments: [
41911
+ "left",
41912
+ "right",
41913
+ "center",
41914
+ "justify"
41915
+ ]
41916
+ }),
41917
+ zY,
41918
+ BY.configure({ limit: e.charactersLimit || 1e6 }),
41919
+ kY.configure({
41920
+ trailingNode: {
41829
41921
  node: "paragraph",
41830
41922
  notAfter: ["paragraph", "div"]
41831
- } }),
41832
- NB,
41833
- SO,
41834
- PB,
41835
- CO,
41836
- wO,
41837
- sX.configure({
41838
- placeholder: e.placeholder,
41839
- showOnlyWhenEditable: !0,
41840
- showOnlyCurrent: !1,
41841
- includeChildren: !0
41842
- }),
41843
- vO,
41844
- nO,
41845
- xO,
41846
- bO,
41847
- _R.configure(d),
41848
- vR.configure(d),
41849
- bR.configure(d),
41850
- xR.configure(d),
41851
- yR.configure(d),
41852
- iz.configure({
41853
- toolbarOpts: l,
41854
- math: e.pluginProps?.math || {}
41855
- }),
41856
- rX,
41857
- nX,
41858
- oX,
41859
- Tz.configure({
41860
- toolbarOpts: l,
41861
- imageHandling: {
41862
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
41863
- onDone: (t) => e.onDone?.(t.getHTML()),
41864
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
41865
- let { src: n } = t.attrs;
41866
- e.imageSupport.delete(n, (e) => {
41867
- c(t.pos);
41868
- });
41869
- }),
41870
- insertImageRequested: e.imageSupport && ((t, n, r) => {
41871
- let [o, s] = n, l = (n) => {
41872
- let r;
41873
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
41874
- };
41875
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
41876
- let n = r(l), i = st(() => {
41877
- let e = () => window.removeEventListener("focus", i);
41878
- if (!t._insertingImage) {
41879
- e();
41880
- return;
41881
- }
41882
- c(s), t._insertingImage = !1, e();
41883
- }, 500);
41884
- window.addEventListener("focus", i), e.imageSupport.add(n);
41885
- })();
41886
- }),
41887
- maxImageWidth: e.maxImageWidth,
41888
- maxImageHeight: e.maxImageHeight
41889
- },
41890
- limit: 3
41891
- }),
41892
- Kz.configure({ uploadSoundSupport: e.uploadSoundSupport }),
41893
- Qz.configure({ extraCSSRules: e.extraCSSRules })
41894
- ],
41923
+ },
41924
+ link: {
41925
+ autolink: !1,
41926
+ linkOnPaste: !1
41927
+ }
41928
+ }),
41929
+ NB,
41930
+ SO,
41931
+ PB,
41932
+ CO,
41933
+ wO,
41934
+ hX.configure({
41935
+ placeholder: e.placeholder,
41936
+ showOnlyWhenEditable: !0,
41937
+ showOnlyCurrent: !1,
41938
+ includeChildren: !0
41939
+ }),
41940
+ vO,
41941
+ nO,
41942
+ xO,
41943
+ bO,
41944
+ _R.configure(d),
41945
+ vR.configure(d),
41946
+ bR.configure(d),
41947
+ xR.configure(d),
41948
+ yR.configure(d),
41949
+ iz.configure({
41950
+ toolbarOpts: l,
41951
+ math: e.pluginProps?.math || {}
41952
+ }),
41953
+ dX,
41954
+ uX,
41955
+ mX,
41956
+ Tz.configure({
41957
+ toolbarOpts: l,
41958
+ imageHandling: {
41959
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
41960
+ onDone: (t) => e.onDone?.(t.getHTML()),
41961
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
41962
+ let { src: n } = t.attrs;
41963
+ e.imageSupport.delete(n, (e) => {
41964
+ c(t.pos);
41965
+ });
41966
+ }),
41967
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
41968
+ let [o, s] = n, l = (n) => {
41969
+ let r;
41970
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
41971
+ };
41972
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
41973
+ let n = r(l), i = st(() => {
41974
+ let e = () => window.removeEventListener("focus", i);
41975
+ if (!t._insertingImage) {
41976
+ e();
41977
+ return;
41978
+ }
41979
+ c(s), t._insertingImage = !1, e();
41980
+ }, 500);
41981
+ window.addEventListener("focus", i), e.imageSupport.add(n);
41982
+ })();
41983
+ }),
41984
+ maxImageWidth: e.maxImageWidth,
41985
+ maxImageHeight: e.maxImageHeight
41986
+ },
41987
+ limit: 3
41988
+ }),
41989
+ Kz.configure({ uploadSoundSupport: e.uploadSoundSupport }),
41990
+ Qz.configure({ extraCSSRules: e.extraCSSRules })
41991
+ ], m = e.spellCheck !== !1, h = Xk({
41992
+ extensions: p,
41895
41993
  immediatelyRender: !1,
41896
- editorProps: { handleKeyDown(t, n) {
41897
- return e.onKeyDown ? e.onKeyDown(n) : !1;
41898
- } },
41994
+ editorProps: {
41995
+ attributes: bX(m),
41996
+ handleKeyDown(t, n) {
41997
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
41998
+ }
41999
+ },
41899
42000
  editable: !e.disabled,
41900
42001
  content: gc(e.markup),
41901
42002
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -41906,22 +42007,29 @@ var nX = ox.create({
41906
42007
  }
41907
42008
  }, [e.charactersLimit]);
41908
42009
  P(() => {
41909
- e.editorRef && e.editorRef(p);
41910
- }, [e.editorRef, p]), P(() => {
41911
- p?.setEditable(!e.disabled);
41912
- }, [e.disabled, p]), P(() => {
41913
- if (!p) return;
42010
+ e.editorRef && e.editorRef(h);
42011
+ }, [e.editorRef, h]), P(() => {
42012
+ h?.setEditable(!e.disabled);
42013
+ }, [e.disabled, h]), P(() => {
42014
+ if (!h) return;
42015
+ let e = h.options?.editorProps, t = bX(m);
42016
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
42017
+ ...e,
42018
+ attributes: t
42019
+ } });
42020
+ }, [m, h]), P(() => {
42021
+ if (!h) return;
41914
42022
  let t = gc(e.markup);
41915
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
41916
- }, [e.markup, p]), P(() => {
41917
- Object.entries(dX).forEach(([e, t]) => {
42023
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
42024
+ }, [e.markup, h]), P(() => {
42025
+ Object.entries(yX).forEach(([e, t]) => {
41918
42026
  document.documentElement.style.setProperty(e, t);
41919
42027
  });
41920
42028
  }, []);
41921
- let m = Kk({
41922
- editor: p,
42029
+ let g = Kk({
42030
+ editor: h,
41923
42031
  selector: (e) => ({ isFocused: e.editor?.isFocused })
41924
- }), h = bt(() => {
42032
+ }), _ = bt(() => {
41925
42033
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
41926
42034
  return {
41927
42035
  width: FB(n),
@@ -41936,20 +42044,20 @@ var nX = ox.create({
41936
42044
  ...e,
41937
42045
  activePlugins: f,
41938
42046
  toolbarOpts: l,
41939
- editorState: m,
41940
- editor: p,
41941
- children: p && /* @__PURE__ */ F(pX, {
42047
+ editorState: g,
42048
+ editor: h,
42049
+ children: h && /* @__PURE__ */ F(SX, {
41942
42050
  style: {
41943
- minHeight: h.minHeight,
41944
- height: h.height,
41945
- maxHeight: h.maxHeight
42051
+ minHeight: _.minHeight,
42052
+ height: _.height,
42053
+ maxHeight: _.maxHeight
41946
42054
  },
41947
42055
  showParagraph: t && !t.disabled,
41948
42056
  separateParagraph: n && !n.disabled,
41949
- editor: p
42057
+ editor: h
41950
42058
  })
41951
42059
  });
41952
- }, pX = k(Uk, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
42060
+ }, SX = k(Uk, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
41953
42061
  display: "flex",
41954
42062
  outline: "none !important",
41955
42063
  "& .ProseMirror": {
@@ -41977,26 +42085,26 @@ var nX = ox.create({
41977
42085
  } },
41978
42086
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
41979
42087
  }
41980
- })), mX = fX;
42088
+ })), CX = xX;
41981
42089
  //#endregion
41982
42090
  //#region ../../lib-react/config-ui/dist/feedback-config/feedback-selector.js
41983
- function hX(e) {
42091
+ function wX(e) {
41984
42092
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41985
42093
  }
41986
- function gX(e, t) {
41987
- return !e || hX(e) ? e : hX(e.default) ? e.default : t && hX(e[t]) ? e[t] : t && hX(e[t]?.default) ? e[t].default : e;
42094
+ function TX(e, t) {
42095
+ return !e || wX(e) ? e : wX(e.default) ? e.default : t && wX(e[t]) ? e[t] : t && wX(e[t]?.default) ? e[t].default : e;
41988
42096
  }
41989
- var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX = pe, yX = vX.default, bX = yX && typeof yX == "object" ? yX : vX, xX = k(mX)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), SX = {
42097
+ var EX = TX(Ae, "InputContainer") || TX(kX.InputContainer, "InputContainer"), DX = pe, OX = DX.default, kX = OX && typeof OX == "object" ? OX : DX, AX = k(CX)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), jX = {
41990
42098
  default: "Simple Feedback",
41991
42099
  none: "No Feedback",
41992
42100
  custom: "Customized Feedback"
41993
- }, CX = k("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), wX = k(_X)(() => ({ paddingBottom: 0 })), TX = k("div")(({ theme: e }) => ({
42101
+ }, MX = k("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), NX = k(EX)(() => ({ paddingBottom: 0 })), PX = k("div")(({ theme: e }) => ({
41994
42102
  marginTop: "0px",
41995
42103
  background: O.backgroundDark(),
41996
42104
  padding: 0,
41997
42105
  marginBottom: e.spacing(2),
41998
42106
  borderRadius: "4px"
41999
- })), EX = k("div")(({ theme: e }) => ({
42107
+ })), FX = k("div")(({ theme: e }) => ({
42000
42108
  marginTop: "0px",
42001
42109
  background: O.backgroundDark(),
42002
42110
  padding: e.spacing(2),
@@ -42004,7 +42112,7 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42004
42112
  borderRadius: "4px",
42005
42113
  fontFamily: e.typography.fontFamily,
42006
42114
  cursor: "default"
42007
- })), DX = k(sc)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), OX = {
42115
+ })), IX = k(sc)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), LX = {
42008
42116
  type: L.default.oneOf([
42009
42117
  "default",
42010
42118
  "custom",
@@ -42012,11 +42120,11 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42012
42120
  ]),
42013
42121
  default: L.default.string,
42014
42122
  custom: L.default.string
42015
- }, kX = class extends N.Component {
42123
+ }, RX = class extends N.Component {
42016
42124
  static propTypes = {
42017
42125
  keys: L.default.arrayOf(L.default.string),
42018
42126
  label: L.default.string.isRequired,
42019
- feedback: L.default.shape(OX).isRequired,
42127
+ feedback: L.default.shape(LX).isRequired,
42020
42128
  onChange: L.default.func.isRequired,
42021
42129
  toolbarOpts: L.default.object,
42022
42130
  mathMlOptions: L.default.object
@@ -42038,36 +42146,36 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42038
42146
  };
42039
42147
  render() {
42040
42148
  let { keys: e, label: t, feedback: n, toolbarOpts: r, mathMlOptions: i = {} } = this.props;
42041
- return /* @__PURE__ */ I(CX, { children: [
42042
- /* @__PURE__ */ F(wX, {
42149
+ return /* @__PURE__ */ I(MX, { children: [
42150
+ /* @__PURE__ */ F(NX, {
42043
42151
  label: t,
42044
42152
  extraClasses: { label: { transform: "translateY(-20%)" } },
42045
- children: /* @__PURE__ */ F(DX, {
42046
- keys: e || Object.keys(SX),
42153
+ children: /* @__PURE__ */ F(IX, {
42154
+ keys: e || Object.keys(jX),
42047
42155
  label: t,
42048
42156
  value: n.type,
42049
42157
  onChange: this.changeType,
42050
- feedbackLabels: SX
42158
+ feedbackLabels: jX
42051
42159
  })
42052
42160
  }),
42053
- n.type === "custom" && /* @__PURE__ */ F(TX, { children: /* @__PURE__ */ F(xX, {
42161
+ n.type === "custom" && /* @__PURE__ */ F(PX, { children: /* @__PURE__ */ F(AX, {
42054
42162
  onChange: this.changeCustom,
42055
42163
  markup: n.custom || "",
42056
42164
  toolbarOpts: r,
42057
42165
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42058
42166
  mathMlOptions: i
42059
42167
  }) }),
42060
- n.type === "default" && /* @__PURE__ */ I(EX, { children: [" ", n.default] })
42168
+ n.type === "default" && /* @__PURE__ */ I(FX, { children: [" ", n.default] })
42061
42169
  ] });
42062
42170
  }
42063
- }, AX = E(/*#__PURE__*/ F("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), jX = k("div")(() => ({
42171
+ }, zX = E(/*#__PURE__*/ F("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), BX = k("div")(() => ({
42064
42172
  display: "flex",
42065
42173
  flex: 1,
42066
42174
  flexDirection: "column"
42067
- })), MX = k(Wt)(() => ({
42175
+ })), VX = k(Wt)(() => ({
42068
42176
  paddingTop: 0,
42069
42177
  paddingBottom: 0
42070
- })), NX = (e) => rt({}, {
42178
+ })), HX = (e) => rt({}, {
42071
42179
  correct: {
42072
42180
  type: "default",
42073
42181
  default: "Correct"
@@ -42080,21 +42188,21 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42080
42188
  type: "default",
42081
42189
  default: "Nearly"
42082
42190
  }
42083
- }, e), PX = class extends N.Component {
42191
+ }, e), UX = class extends N.Component {
42084
42192
  static propTypes = {
42085
42193
  allowPartial: L.default.bool,
42086
42194
  className: L.default.string,
42087
42195
  feedback: L.default.shape({
42088
- correct: L.default.shape(OX),
42089
- incorrect: L.default.shape(OX),
42090
- partial: L.default.shape(OX)
42196
+ correct: L.default.shape(LX),
42197
+ incorrect: L.default.shape(LX),
42198
+ partial: L.default.shape(LX)
42091
42199
  }),
42092
42200
  onChange: L.default.func.isRequired,
42093
42201
  toolbarOpts: L.default.object
42094
42202
  };
42095
42203
  static defaultProps = {
42096
42204
  allowPartial: !0,
42097
- feedback: NX()
42205
+ feedback: HX()
42098
42206
  };
42099
42207
  onChange(e, t) {
42100
42208
  let { feedback: n, onChange: r } = this.props;
@@ -42116,22 +42224,22 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42116
42224
  exit: 195
42117
42225
  } } },
42118
42226
  children: [/* @__PURE__ */ F(Zt, {
42119
- expandIcon: /* @__PURE__ */ F(AX, {}),
42227
+ expandIcon: /* @__PURE__ */ F(zX, {}),
42120
42228
  children: /* @__PURE__ */ F(Ve, { children: "Feedback" })
42121
- }), /* @__PURE__ */ F(MX, { children: /* @__PURE__ */ I(jX, { children: [
42122
- /* @__PURE__ */ F(kX, {
42229
+ }), /* @__PURE__ */ F(VX, { children: /* @__PURE__ */ I(BX, { children: [
42230
+ /* @__PURE__ */ F(RX, {
42123
42231
  label: "If correct, show",
42124
42232
  feedback: n.correct,
42125
42233
  onChange: this.onCorrectChange,
42126
42234
  toolbarOpts: r
42127
42235
  }),
42128
- t && /* @__PURE__ */ F(kX, {
42236
+ t && /* @__PURE__ */ F(RX, {
42129
42237
  label: "If partially correct, show",
42130
42238
  feedback: n.partial,
42131
42239
  onChange: this.onPartialChange,
42132
42240
  toolbarOpts: r
42133
42241
  }),
42134
- /* @__PURE__ */ F(kX, {
42242
+ /* @__PURE__ */ F(RX, {
42135
42243
  label: "If incorrect, show",
42136
42244
  feedback: n.incorrect,
42137
42245
  onChange: this.onIncorrectChange,
@@ -42141,7 +42249,7 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42141
42249
  })
42142
42250
  });
42143
42251
  }
42144
- }, FX = k(Ss)(() => ({})), IX = class extends N.Component {
42252
+ }, WX = k(Ss)(() => ({})), GX = class extends N.Component {
42145
42253
  static propTypes = {
42146
42254
  className: L.default.string,
42147
42255
  contentClassName: L.default.string,
@@ -42162,7 +42270,7 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42162
42270
  indicatorColor: "primary",
42163
42271
  value: e,
42164
42272
  onChange: this.handleChange,
42165
- children: N.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(FX, { label: e.props.title }, t) : null)
42273
+ children: N.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(WX, { label: e.props.title }, t) : null)
42166
42274
  }), /* @__PURE__ */ F("div", {
42167
42275
  className: r,
42168
42276
  style: i,
@@ -42170,7 +42278,7 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42170
42278
  })]
42171
42279
  });
42172
42280
  }
42173
- }, LX = k(ma)(({ theme: e, mini: t }) => ({
42281
+ }, KX = k(ma)(({ theme: e, mini: t }) => ({
42174
42282
  margin: 0,
42175
42283
  marginLeft: 0,
42176
42284
  padding: 0,
@@ -42184,7 +42292,7 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42184
42292
  fontSize: e.typography.fontSize - 3
42185
42293
  }
42186
42294
  }
42187
- })), RX = k(Me)(({ theme: e, mini: t, error: n }) => ({
42295
+ })), qX = k(Me)(({ theme: e, mini: t, error: n }) => ({
42188
42296
  color: `${O.tertiary()} !important`,
42189
42297
  ...t && {
42190
42298
  margin: 0,
@@ -42193,9 +42301,9 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42193
42301
  height: e.spacing(3)
42194
42302
  },
42195
42303
  ...n && { color: `${e.palette.error.main} !important` }
42196
- })), zX = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(LX, {
42304
+ })), JX = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(KX, {
42197
42305
  mini: e,
42198
- control: /* @__PURE__ */ F(RX, {
42306
+ control: /* @__PURE__ */ F(qX, {
42199
42307
  checked: t,
42200
42308
  onChange: n,
42201
42309
  value: r,
@@ -42204,21 +42312,21 @@ var _X = gX(Ae, "InputContainer") || gX(bX.InputContainer, "InputContainer"), vX
42204
42312
  }),
42205
42313
  label: i
42206
42314
  });
42207
- zX.propTypes = {
42315
+ JX.propTypes = {
42208
42316
  mini: L.default.bool,
42209
42317
  checked: L.default.bool.isRequired,
42210
42318
  onChange: L.default.func.isRequired,
42211
42319
  value: L.default.string,
42212
42320
  label: L.default.string.isRequired,
42213
42321
  error: L.default.bool
42214
- }, zX.defaultProps = {
42322
+ }, JX.defaultProps = {
42215
42323
  value: "",
42216
42324
  mini: !1,
42217
42325
  error: !1
42218
42326
  };
42219
42327
  //#endregion
42220
42328
  //#region ../../lib-react/config-ui/dist/number-text-field.js
42221
- var BX = (0, cc.default)("@pie-lib:config-ui:number-text-field"), VX = k(Zs)(({ theme: e }) => ({
42329
+ var YX = (0, cc.default)("@pie-lib:config-ui:number-text-field"), XX = k(Zs)(({ theme: e }) => ({
42222
42330
  marginRight: e.spacing(1),
42223
42331
  "& .MuiInputLabel-root": {
42224
42332
  width: "auto",
@@ -42240,11 +42348,11 @@ var BX = (0, cc.default)("@pie-lib:config-ui:number-text-field"), VX = k(Zs)(({
42240
42348
  minHeight: "auto",
42241
42349
  padding: "6px 0 7px"
42242
42350
  }
42243
- })), HX = (e, t) => {
42351
+ })), ZX = (e, t) => {
42244
42352
  if (!tt(e) && !tt(t)) return 0;
42245
42353
  if (!tt(e) && tt(t)) return t;
42246
42354
  if (tt(e)) return e;
42247
- }, UX = class extends N.Component {
42355
+ }, QX = class extends N.Component {
42248
42356
  static propTypes = {
42249
42357
  disabled: L.default.bool,
42250
42358
  className: L.default.string,
@@ -42270,13 +42378,13 @@ var BX = (0, cc.default)("@pie-lib:config-ui:number-text-field"), VX = k(Zs)(({
42270
42378
  this.setState({ value: t });
42271
42379
  }
42272
42380
  clamp(e, t = this.props.min, n = this.props.max) {
42273
- return tt(e) ? (tt(n) && (e = Math.min(e, n)), tt(t) && (e = Math.max(e, t)), e) : HX(t, n);
42381
+ return tt(e) ? (tt(n) && (e = Math.min(e, n)), tt(t) && (e = Math.max(e, t)), e) : ZX(t, n);
42274
42382
  }
42275
42383
  onBlur = (e) => {
42276
42384
  let t = e.target.value, n = parseFloat(t);
42277
- BX("rawNumber: ", n);
42385
+ YX("rawNumber: ", n);
42278
42386
  let r = this.clamp(n);
42279
- BX("number: ", r), r !== this.state.value && (BX("trigger update..."), this.setState({ value: r.toString() }, () => {
42387
+ YX("number: ", r), r !== this.state.value && (YX("trigger update..."), this.setState({ value: r.toString() }, () => {
42280
42388
  this.props.onChange(e, r);
42281
42389
  }));
42282
42390
  };
@@ -42296,7 +42404,7 @@ var BX = (0, cc.default)("@pie-lib:config-ui:number-text-field"), VX = k(Zs)(({
42296
42404
  };
42297
42405
  render() {
42298
42406
  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();
42299
- return /* @__PURE__ */ F(VX, {
42407
+ return /* @__PURE__ */ F(XX, {
42300
42408
  variant: s ? "filled" : l || "standard",
42301
42409
  inputRef: (e) => {
42302
42410
  this.inputRef = e;
@@ -42328,22 +42436,22 @@ var BX = (0, cc.default)("@pie-lib:config-ui:number-text-field"), VX = k(Zs)(({
42328
42436
  margin: "normal"
42329
42437
  });
42330
42438
  }
42331
- }, WX = E(/*#__PURE__*/ F("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
42439
+ }, $X = E(/*#__PURE__*/ F("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
42332
42440
  //#endregion
42333
42441
  //#region ../../lib-react/config-ui/dist/two-choice.js
42334
- function GX(e) {
42442
+ function eZ(e) {
42335
42443
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
42336
42444
  }
42337
- function KX(e, t) {
42338
- return !e || GX(e) ? e : GX(e.default) ? e.default : t && GX(e[t]) ? e[t] : t && GX(e[t]?.default) ? e[t].default : e;
42445
+ function tZ(e, t) {
42446
+ return !e || eZ(e) ? e : eZ(e.default) ? e.default : t && eZ(e[t]) ? e[t] : t && eZ(e[t]?.default) ? e[t].default : e;
42339
42447
  }
42340
- var qX = KX(Ae, "InputContainer") || KX(XX.InputContainer, "InputContainer"), JX = pe, YX = JX.default, XX = YX && typeof YX == "object" ? YX : JX, ZX = k("div")(({ theme: e, direction: t }) => ({
42448
+ var nZ = tZ(Ae, "InputContainer") || tZ(aZ.InputContainer, "InputContainer"), rZ = pe, iZ = rZ.default, aZ = iZ && typeof iZ == "object" ? iZ : rZ, oZ = k("div")(({ theme: e, direction: t }) => ({
42341
42449
  display: "flex",
42342
42450
  flexWrap: "wrap",
42343
42451
  paddingLeft: 0,
42344
42452
  marginTop: e.spacing(1),
42345
42453
  ...t === "vertical" && { flexDirection: "column" }
42346
- })), QX = class extends N.Component {
42454
+ })), sZ = class extends N.Component {
42347
42455
  static propTypes = {
42348
42456
  header: L.default.string.isRequired,
42349
42457
  className: L.default.string,
@@ -42361,10 +42469,10 @@ var qX = KX(Ae, "InputContainer") || KX(XX.InputContainer, "InputContainer"), JX
42361
42469
  label: e,
42362
42470
  value: e
42363
42471
  } : e), s = n || rc;
42364
- return /* @__PURE__ */ F(qX, {
42472
+ return /* @__PURE__ */ F(nZ, {
42365
42473
  label: e,
42366
42474
  className: t,
42367
- children: /* @__PURE__ */ F(ZX, {
42475
+ children: /* @__PURE__ */ F(oZ, {
42368
42476
  direction: a,
42369
42477
  children: o.map((e, t) => /* @__PURE__ */ F(s, {
42370
42478
  value: e.value,
@@ -42375,7 +42483,7 @@ var qX = KX(Ae, "InputContainer") || KX(XX.InputContainer, "InputContainer"), JX
42375
42483
  })
42376
42484
  });
42377
42485
  }
42378
- }, $X = L.default.shape({
42486
+ }, cZ = L.default.shape({
42379
42487
  label: L.default.string,
42380
42488
  value: L.default.string
42381
42489
  });
@@ -42384,14 +42492,14 @@ var qX = KX(Ae, "InputContainer") || KX(XX.InputContainer, "InputContainer"), JX
42384
42492
  header: L.default.string.isRequired,
42385
42493
  value: L.default.string.isRequired,
42386
42494
  onChange: L.default.func.isRequired,
42387
- one: L.default.oneOfType([$X, L.default.string]),
42388
- two: L.default.oneOfType([$X, L.default.string]),
42495
+ one: L.default.oneOfType([cZ, L.default.string]),
42496
+ two: L.default.oneOfType([cZ, L.default.string]),
42389
42497
  className: L.default.string,
42390
42498
  customLabel: L.default.func
42391
42499
  };
42392
42500
  render() {
42393
42501
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
42394
- return /* @__PURE__ */ F(QX, {
42502
+ return /* @__PURE__ */ F(sZ, {
42395
42503
  customLabel: i,
42396
42504
  header: n,
42397
42505
  className: r,
@@ -42403,21 +42511,21 @@ var qX = KX(Ae, "InputContainer") || KX(XX.InputContainer, "InputContainer"), JX
42403
42511
  });
42404
42512
  //#endregion
42405
42513
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
42406
- var eZ = Object.defineProperty, tZ = (e, t) => {
42514
+ var lZ = Object.defineProperty, uZ = (e, t) => {
42407
42515
  let n = {};
42408
- for (var r in e) eZ(n, r, {
42516
+ for (var r in e) lZ(n, r, {
42409
42517
  get: e[r],
42410
42518
  enumerable: !0
42411
42519
  });
42412
- return t || eZ(n, Symbol.toStringTag, { value: "Module" }), n;
42413
- }, nZ = k("div")(() => ({
42520
+ return t || lZ(n, Symbol.toStringTag, { value: "Module" }), n;
42521
+ }, dZ = k("div")(() => ({
42414
42522
  display: "flex",
42415
42523
  flexDirection: "column",
42416
42524
  position: "relative"
42417
- })), rZ = k("div")(() => ({
42525
+ })), fZ = k("div")(() => ({
42418
42526
  display: "flex",
42419
42527
  justifyContent: "space-between"
42420
- })), iZ = k("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), aZ = k("div")(() => ({ flex: "1" })), oZ = k("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), sZ = class extends N.Component {
42528
+ })), pZ = k("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), mZ = k("div")(() => ({ flex: "1" })), hZ = k("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), gZ = class extends N.Component {
42421
42529
  static propTypes = {
42422
42530
  mode: L.default.oneOf(["tabbed", "inline"]),
42423
42531
  secondary: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]),
@@ -42435,7 +42543,7 @@ var eZ = Object.defineProperty, tZ = (e, t) => {
42435
42543
  } catch (e) {
42436
42544
  console.log(e.toString());
42437
42545
  }
42438
- return /* @__PURE__ */ I(nZ, {
42546
+ return /* @__PURE__ */ I(dZ, {
42439
42547
  style: {
42440
42548
  minHeight: i,
42441
42549
  minWidth: a,
@@ -42443,28 +42551,28 @@ var eZ = Object.defineProperty, tZ = (e, t) => {
42443
42551
  maxWidth: s
42444
42552
  },
42445
42553
  children: [
42446
- e === "inline" && /* @__PURE__ */ I(rZ, { children: [/* @__PURE__ */ F(aZ, {
42554
+ e === "inline" && /* @__PURE__ */ I(fZ, { children: [/* @__PURE__ */ F(mZ, {
42447
42555
  className: "design-container",
42448
42556
  children: n
42449
- }), l && /* @__PURE__ */ F(oZ, {
42557
+ }), l && /* @__PURE__ */ F(hZ, {
42450
42558
  className: "settings-container",
42451
42559
  children: t
42452
42560
  })] }),
42453
- e === "tabbed" && l && /* @__PURE__ */ I(IX, {
42561
+ e === "tabbed" && l && /* @__PURE__ */ I(GX, {
42454
42562
  onChange: this.onTabsChange,
42455
42563
  contentClassName: "content-container",
42456
42564
  indicatorColor: "primary",
42457
- children: [/* @__PURE__ */ F(iZ, {
42565
+ children: [/* @__PURE__ */ F(pZ, {
42458
42566
  title: "Design",
42459
42567
  className: "design-container",
42460
42568
  children: n
42461
- }), /* @__PURE__ */ F(iZ, {
42569
+ }), /* @__PURE__ */ F(pZ, {
42462
42570
  title: "Settings",
42463
42571
  className: "settings-container",
42464
42572
  children: t
42465
42573
  })]
42466
42574
  }),
42467
- e === "tabbed" && !l && /* @__PURE__ */ F(iZ, {
42575
+ e === "tabbed" && !l && /* @__PURE__ */ F(pZ, {
42468
42576
  className: "design-container",
42469
42577
  children: n
42470
42578
  })
@@ -42474,18 +42582,18 @@ var eZ = Object.defineProperty, tZ = (e, t) => {
42474
42582
  };
42475
42583
  //#endregion
42476
42584
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
42477
- function cZ() {
42478
- return cZ = Object.assign ? Object.assign.bind() : function(e) {
42585
+ function _Z() {
42586
+ return _Z = Object.assign ? Object.assign.bind() : function(e) {
42479
42587
  for (var t = 1; t < arguments.length; t++) {
42480
42588
  var n = arguments[t];
42481
42589
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
42482
42590
  }
42483
42591
  return e;
42484
- }, cZ.apply(null, arguments);
42592
+ }, _Z.apply(null, arguments);
42485
42593
  }
42486
42594
  //#endregion
42487
42595
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
42488
- function lZ(e, t) {
42596
+ function vZ(e, t) {
42489
42597
  if (e == null) return {};
42490
42598
  var n = {};
42491
42599
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -42496,19 +42604,19 @@ function lZ(e, t) {
42496
42604
  }
42497
42605
  //#endregion
42498
42606
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
42499
- function uZ(e, t) {
42500
- return uZ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
42607
+ function yZ(e, t) {
42608
+ return yZ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
42501
42609
  return e.__proto__ = t, e;
42502
- }, uZ(e, t);
42610
+ }, yZ(e, t);
42503
42611
  }
42504
42612
  //#endregion
42505
42613
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
42506
- function dZ(e, t) {
42507
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, uZ(e, t);
42614
+ function bZ(e, t) {
42615
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, yZ(e, t);
42508
42616
  }
42509
42617
  //#endregion
42510
42618
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
42511
- var fZ = (function() {
42619
+ var xZ = (function() {
42512
42620
  if (typeof Map < "u") return Map;
42513
42621
  function e(e, t) {
42514
42622
  var n = -1;
@@ -42547,34 +42655,34 @@ var fZ = (function() {
42547
42655
  }
42548
42656
  }, t;
42549
42657
  }();
42550
- })(), pZ = typeof window < "u" && typeof document < "u" && window.document === document, mZ = (function() {
42658
+ })(), SZ = typeof window < "u" && typeof document < "u" && window.document === document, CZ = (function() {
42551
42659
  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")();
42552
- })(), hZ = (function() {
42553
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(mZ) : function(e) {
42660
+ })(), wZ = (function() {
42661
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(CZ) : function(e) {
42554
42662
  return setTimeout(function() {
42555
42663
  return e(Date.now());
42556
42664
  }, 1e3 / 60);
42557
42665
  };
42558
- })(), gZ = 2;
42559
- function _Z(e, t) {
42666
+ })(), TZ = 2;
42667
+ function EZ(e, t) {
42560
42668
  var n = !1, r = !1, i = 0;
42561
42669
  function a() {
42562
42670
  n && (n = !1, e()), r && s();
42563
42671
  }
42564
42672
  function o() {
42565
- hZ(a);
42673
+ wZ(a);
42566
42674
  }
42567
42675
  function s() {
42568
42676
  var e = Date.now();
42569
42677
  if (n) {
42570
- if (e - i < gZ) return;
42678
+ if (e - i < TZ) return;
42571
42679
  r = !0;
42572
42680
  } else n = !0, r = !1, setTimeout(o, t);
42573
42681
  i = e;
42574
42682
  }
42575
42683
  return s;
42576
42684
  }
42577
- var vZ = 20, yZ = [
42685
+ var DZ = 20, OZ = [
42578
42686
  "top",
42579
42687
  "right",
42580
42688
  "bottom",
@@ -42583,9 +42691,9 @@ var vZ = 20, yZ = [
42583
42691
  "height",
42584
42692
  "size",
42585
42693
  "weight"
42586
- ], bZ = typeof MutationObserver < "u", xZ = function() {
42694
+ ], kZ = typeof MutationObserver < "u", AZ = function() {
42587
42695
  function e() {
42588
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = _Z(this.refresh.bind(this), vZ);
42696
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = EZ(this.refresh.bind(this), DZ);
42589
42697
  }
42590
42698
  return e.prototype.addObserver = function(e) {
42591
42699
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -42602,23 +42710,23 @@ var vZ = 20, yZ = [
42602
42710
  return e.broadcastActive();
42603
42711
  }), e.length > 0;
42604
42712
  }, e.prototype.connect_ = function() {
42605
- !pZ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), bZ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
42713
+ !SZ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), kZ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
42606
42714
  attributes: !0,
42607
42715
  childList: !0,
42608
42716
  characterData: !0,
42609
42717
  subtree: !0
42610
42718
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
42611
42719
  }, e.prototype.disconnect_ = function() {
42612
- !pZ || !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);
42720
+ !SZ || !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);
42613
42721
  }, e.prototype.onTransitionEnd_ = function(e) {
42614
42722
  var t = e.propertyName, n = t === void 0 ? "" : t;
42615
- yZ.some(function(e) {
42723
+ OZ.some(function(e) {
42616
42724
  return !!~n.indexOf(e);
42617
42725
  }) && this.refresh();
42618
42726
  }, e.getInstance = function() {
42619
42727
  return this.instance_ ||= new e(), this.instance_;
42620
42728
  }, e.instance_ = null, e;
42621
- }(), SZ = (function(e, t) {
42729
+ }(), jZ = (function(e, t) {
42622
42730
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
42623
42731
  var i = r[n];
42624
42732
  Object.defineProperty(e, i, {
@@ -42629,19 +42737,19 @@ var vZ = 20, yZ = [
42629
42737
  });
42630
42738
  }
42631
42739
  return e;
42632
- }), CZ = (function(e) {
42633
- return e && e.ownerDocument && e.ownerDocument.defaultView || mZ;
42634
- }), wZ = PZ(0, 0, 0, 0);
42635
- function TZ(e) {
42740
+ }), MZ = (function(e) {
42741
+ return e && e.ownerDocument && e.ownerDocument.defaultView || CZ;
42742
+ }), NZ = UZ(0, 0, 0, 0);
42743
+ function PZ(e) {
42636
42744
  return parseFloat(e) || 0;
42637
42745
  }
42638
- function EZ(e) {
42746
+ function FZ(e) {
42639
42747
  return [...arguments].slice(1).reduce(function(t, n) {
42640
42748
  var r = e["border-" + n + "-width"];
42641
- return t + TZ(r);
42749
+ return t + PZ(r);
42642
42750
  }, 0);
42643
42751
  }
42644
- function DZ(e) {
42752
+ function IZ(e) {
42645
42753
  for (var t = [
42646
42754
  "top",
42647
42755
  "right",
@@ -42649,40 +42757,40 @@ function DZ(e) {
42649
42757
  "left"
42650
42758
  ], n = {}, r = 0, i = t; r < i.length; r++) {
42651
42759
  var a = i[r], o = e["padding-" + a];
42652
- n[a] = TZ(o);
42760
+ n[a] = PZ(o);
42653
42761
  }
42654
42762
  return n;
42655
42763
  }
42656
- function OZ(e) {
42764
+ function LZ(e) {
42657
42765
  var t = e.getBBox();
42658
- return PZ(0, 0, t.width, t.height);
42766
+ return UZ(0, 0, t.width, t.height);
42659
42767
  }
42660
- function kZ(e) {
42768
+ function RZ(e) {
42661
42769
  var t = e.clientWidth, n = e.clientHeight;
42662
- if (!t && !n) return wZ;
42663
- var r = CZ(e).getComputedStyle(e), i = DZ(r), a = i.left + i.right, o = i.top + i.bottom, s = TZ(r.width), c = TZ(r.height);
42664
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= EZ(r, "left", "right") + a), Math.round(c + o) !== n && (c -= EZ(r, "top", "bottom") + o)), !jZ(e)) {
42770
+ if (!t && !n) return NZ;
42771
+ var r = MZ(e).getComputedStyle(e), i = IZ(r), a = i.left + i.right, o = i.top + i.bottom, s = PZ(r.width), c = PZ(r.height);
42772
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= FZ(r, "left", "right") + a), Math.round(c + o) !== n && (c -= FZ(r, "top", "bottom") + o)), !BZ(e)) {
42665
42773
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
42666
42774
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
42667
42775
  }
42668
- return PZ(i.left, i.top, s, c);
42776
+ return UZ(i.left, i.top, s, c);
42669
42777
  }
42670
- var AZ = (function() {
42778
+ var zZ = (function() {
42671
42779
  return typeof SVGGraphicsElement < "u" ? function(e) {
42672
- return e instanceof CZ(e).SVGGraphicsElement;
42780
+ return e instanceof MZ(e).SVGGraphicsElement;
42673
42781
  } : function(e) {
42674
- return e instanceof CZ(e).SVGElement && typeof e.getBBox == "function";
42782
+ return e instanceof MZ(e).SVGElement && typeof e.getBBox == "function";
42675
42783
  };
42676
42784
  })();
42677
- function jZ(e) {
42678
- return e === CZ(e).document.documentElement;
42785
+ function BZ(e) {
42786
+ return e === MZ(e).document.documentElement;
42679
42787
  }
42680
- function MZ(e) {
42681
- return pZ ? AZ(e) ? OZ(e) : kZ(e) : wZ;
42788
+ function VZ(e) {
42789
+ return SZ ? zZ(e) ? LZ(e) : RZ(e) : NZ;
42682
42790
  }
42683
- function NZ(e) {
42791
+ function HZ(e) {
42684
42792
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
42685
- return SZ(a, {
42793
+ return jZ(a, {
42686
42794
  x: t,
42687
42795
  y: n,
42688
42796
  width: r,
@@ -42693,7 +42801,7 @@ function NZ(e) {
42693
42801
  left: t
42694
42802
  }), a;
42695
42803
  }
42696
- function PZ(e, t, n, r) {
42804
+ function UZ(e, t, n, r) {
42697
42805
  return {
42698
42806
  x: e,
42699
42807
  y: t,
@@ -42701,42 +42809,42 @@ function PZ(e, t, n, r) {
42701
42809
  height: r
42702
42810
  };
42703
42811
  }
42704
- var FZ = function() {
42812
+ var WZ = function() {
42705
42813
  function e(e) {
42706
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = PZ(0, 0, 0, 0), this.target = e;
42814
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = UZ(0, 0, 0, 0), this.target = e;
42707
42815
  }
42708
42816
  return e.prototype.isActive = function() {
42709
- var e = MZ(this.target);
42817
+ var e = VZ(this.target);
42710
42818
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
42711
42819
  }, e.prototype.broadcastRect = function() {
42712
42820
  var e = this.contentRect_;
42713
42821
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
42714
42822
  }, e;
42715
- }(), IZ = function() {
42823
+ }(), GZ = function() {
42716
42824
  function e(e, t) {
42717
- var n = NZ(t);
42718
- SZ(this, {
42825
+ var n = HZ(t);
42826
+ jZ(this, {
42719
42827
  target: e,
42720
42828
  contentRect: n
42721
42829
  });
42722
42830
  }
42723
42831
  return e;
42724
- }(), LZ = function() {
42832
+ }(), KZ = function() {
42725
42833
  function e(e, t, n) {
42726
- if (this.activeObservations_ = [], this.observations_ = new fZ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
42834
+ if (this.activeObservations_ = [], this.observations_ = new xZ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
42727
42835
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
42728
42836
  }
42729
42837
  return e.prototype.observe = function(e) {
42730
42838
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
42731
42839
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
42732
- if (!(e instanceof CZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
42840
+ if (!(e instanceof MZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
42733
42841
  var t = this.observations_;
42734
- t.has(e) || (t.set(e, new FZ(e)), this.controller_.addObserver(this), this.controller_.refresh());
42842
+ t.has(e) || (t.set(e, new WZ(e)), this.controller_.addObserver(this), this.controller_.refresh());
42735
42843
  }
42736
42844
  }, e.prototype.unobserve = function(e) {
42737
42845
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
42738
42846
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
42739
- if (!(e instanceof CZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
42847
+ if (!(e instanceof MZ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
42740
42848
  var t = this.observations_;
42741
42849
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
42742
42850
  }
@@ -42750,7 +42858,7 @@ var FZ = function() {
42750
42858
  }, e.prototype.broadcastActive = function() {
42751
42859
  if (this.hasActive()) {
42752
42860
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
42753
- return new IZ(e.target, e.broadcastRect());
42861
+ return new GZ(e.target, e.broadcastRect());
42754
42862
  });
42755
42863
  this.callback_.call(e, t, e), this.clearActive();
42756
42864
  }
@@ -42759,12 +42867,12 @@ var FZ = function() {
42759
42867
  }, e.prototype.hasActive = function() {
42760
42868
  return this.activeObservations_.length > 0;
42761
42869
  }, e;
42762
- }(), RZ = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new fZ(), zZ = function() {
42870
+ }(), qZ = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new xZ(), JZ = function() {
42763
42871
  function e(t) {
42764
42872
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
42765
42873
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
42766
- var n = new LZ(t, xZ.getInstance(), this);
42767
- RZ.set(this, n);
42874
+ var n = new KZ(t, AZ.getInstance(), this);
42875
+ qZ.set(this, n);
42768
42876
  }
42769
42877
  return e;
42770
42878
  }();
@@ -42773,27 +42881,27 @@ var FZ = function() {
42773
42881
  "unobserve",
42774
42882
  "disconnect"
42775
42883
  ].forEach(function(e) {
42776
- zZ.prototype[e] = function() {
42884
+ JZ.prototype[e] = function() {
42777
42885
  var t;
42778
- return (t = RZ.get(this))[e].apply(t, arguments);
42886
+ return (t = qZ.get(this))[e].apply(t, arguments);
42779
42887
  };
42780
42888
  });
42781
- var BZ = (function() {
42782
- return mZ.ResizeObserver === void 0 ? zZ : mZ.ResizeObserver;
42783
- })(), VZ = [
42889
+ var YZ = (function() {
42890
+ return CZ.ResizeObserver === void 0 ? JZ : CZ.ResizeObserver;
42891
+ })(), XZ = [
42784
42892
  "client",
42785
42893
  "offset",
42786
42894
  "scroll",
42787
42895
  "bounds",
42788
42896
  "margin"
42789
42897
  ];
42790
- function HZ(e) {
42898
+ function ZZ(e) {
42791
42899
  var t = [];
42792
- return VZ.forEach(function(n) {
42900
+ return XZ.forEach(function(n) {
42793
42901
  e[n] && t.push(n);
42794
42902
  }), t;
42795
42903
  }
42796
- function UZ(e, t) {
42904
+ function QZ(e, t) {
42797
42905
  var n = {};
42798
42906
  if (t.indexOf("client") > -1 && (n.client = {
42799
42907
  top: e.clientTop,
@@ -42832,14 +42940,14 @@ function UZ(e, t) {
42832
42940
  }
42833
42941
  return n;
42834
42942
  }
42835
- function WZ(e) {
42943
+ function $Z(e) {
42836
42944
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
42837
42945
  }
42838
- function GZ(e) {
42946
+ function eQ(e) {
42839
42947
  return function(t) {
42840
42948
  var n, r;
42841
42949
  return r = n = /*#__PURE__*/ function(n) {
42842
- dZ(r, n);
42950
+ bZ(r, n);
42843
42951
  function r() {
42844
42952
  var t, r = [...arguments];
42845
42953
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -42850,24 +42958,24 @@ function GZ(e) {
42850
42958
  bounds: {},
42851
42959
  margin: {}
42852
42960
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
42853
- var r = UZ(t._node, e || HZ(t.props));
42961
+ var r = QZ(t._node, e || ZZ(t.props));
42854
42962
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
42855
42963
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
42856
42964
  });
42857
42965
  }, t._handleRef = function(e) {
42858
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = WZ(t._node);
42966
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = $Z(t._node);
42859
42967
  var n = t.props.innerRef;
42860
42968
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
42861
42969
  }, t;
42862
42970
  }
42863
42971
  var i = r.prototype;
42864
42972
  return i.componentDidMount = function() {
42865
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new BZ(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(UZ(this._node, e || HZ(this.props))));
42973
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new YZ(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(QZ(this._node, e || ZZ(this.props))));
42866
42974
  }, i.componentWillUnmount = function() {
42867
42975
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
42868
42976
  }, i.render = function() {
42869
42977
  var e = this.props;
42870
- return e.innerRef, e.onResize, ft(t, cZ({}, lZ(e, ["innerRef", "onResize"]), {
42978
+ return e.innerRef, e.onResize, ft(t, _Z({}, vZ(e, ["innerRef", "onResize"]), {
42871
42979
  measureRef: this._handleRef,
42872
42980
  measure: this.measure,
42873
42981
  contentRect: this.state.contentRect
@@ -42884,7 +42992,7 @@ function GZ(e) {
42884
42992
  }, r;
42885
42993
  };
42886
42994
  }
42887
- var KZ = GZ()(function(e) {
42995
+ var tQ = eQ()(function(e) {
42888
42996
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
42889
42997
  return i({
42890
42998
  measure: t,
@@ -42892,10 +43000,10 @@ var KZ = GZ()(function(e) {
42892
43000
  contentRect: r
42893
43001
  });
42894
43002
  });
42895
- KZ.displayName = "Measure", KZ.propTypes.children = L.default.func;
43003
+ tQ.displayName = "Measure", tQ.propTypes.children = L.default.func;
42896
43004
  //#endregion
42897
43005
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
42898
- var qZ = k("div")(() => ({
43006
+ var nQ = k("div")(() => ({
42899
43007
  backgroundColor: O.white(),
42900
43008
  border: `2px solid ${O.border()}`,
42901
43009
  display: "flex",
@@ -42905,7 +43013,7 @@ var qZ = k("div")(() => ({
42905
43013
  maxWidth: "300px",
42906
43014
  padding: "20px 4px 4px 20px",
42907
43015
  zIndex: 99
42908
- })), JZ = class extends N.Component {
43016
+ })), rQ = class extends N.Component {
42909
43017
  static propTypes = {
42910
43018
  className: L.default.string,
42911
43019
  children: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]).isRequired
@@ -42913,19 +43021,19 @@ var qZ = k("div")(() => ({
42913
43021
  static defaultProps = {};
42914
43022
  render() {
42915
43023
  let { className: e, children: t } = this.props;
42916
- return /* @__PURE__ */ F(qZ, {
43024
+ return /* @__PURE__ */ F(nQ, {
42917
43025
  className: e,
42918
43026
  children: t
42919
43027
  });
42920
43028
  }
42921
- }, YZ = Xe({
43029
+ }, iQ = Xe({
42922
43030
  typography: { fontFamily: "inherit" },
42923
43031
  components: { MuiButton: { styleOverrides: { contained: {
42924
43032
  backgroundColor: "#e0e0e0",
42925
43033
  color: "#000000",
42926
43034
  "&:hover": { backgroundColor: "#bdbdbd" }
42927
43035
  } } } }
42928
- }), XZ = class extends N.Component {
43036
+ }), aQ = class extends N.Component {
42929
43037
  static propTypes = {
42930
43038
  children: L.default.oneOfType([
42931
43039
  L.default.string,
@@ -42958,19 +43066,19 @@ var qZ = k("div")(() => ({
42958
43066
  return /* @__PURE__ */ F(A, {
42959
43067
  injectFirst: !0,
42960
43068
  children: /* @__PURE__ */ F(je, {
42961
- theme: YZ,
42962
- children: /* @__PURE__ */ F(KZ, {
43069
+ theme: iQ,
43070
+ children: /* @__PURE__ */ F(tQ, {
42963
43071
  bounds: !0,
42964
43072
  onResize: this.onResize,
42965
43073
  children: ({ measureRef: e }) => {
42966
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(JZ, {
43074
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(rQ, {
42967
43075
  className: "settings-box",
42968
43076
  children: n
42969
43077
  }) : n;
42970
43078
  return /* @__PURE__ */ I("div", {
42971
43079
  ref: e,
42972
43080
  className: "main-container extraCSSRules",
42973
- children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(sZ, {
43081
+ children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(gZ, {
42974
43082
  mode: o,
42975
43083
  secondary: s,
42976
43084
  dimensions: i,
@@ -42982,27 +43090,27 @@ var qZ = k("div")(() => ({
42982
43090
  })
42983
43091
  });
42984
43092
  }
42985
- }, ZZ = GZ("bounds")(XZ), QZ = /* @__PURE__ */ tZ({
42986
- ConfigLayout: () => ZZ,
42987
- LayoutContents: () => sZ
42988
- }), $Z = k("div")(() => ({
43093
+ }, oQ = eQ("bounds")(aQ), sQ = /* @__PURE__ */ uZ({
43094
+ ConfigLayout: () => oQ,
43095
+ LayoutContents: () => gZ
43096
+ }), cQ = k("div")(() => ({
42989
43097
  display: "flex",
42990
43098
  width: "100%",
42991
43099
  justifyContent: "space-between"
42992
- })), eQ = k(de)(({ theme: e }) => ({
43100
+ })), lQ = k(de)(({ theme: e }) => ({
42993
43101
  color: "rgba(0, 0, 0, 0.89)",
42994
43102
  fontSize: e.typography.fontSize,
42995
43103
  paddingTop: e.spacing(2)
42996
- })), tQ = k(_s)(({ checked: e }) => ({
43104
+ })), uQ = k(_s)(({ checked: e }) => ({
42997
43105
  "&.Mui-checked .MuiSwitch-thumb": { color: `${O.tertiary()} !important` },
42998
43106
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${O.tertiaryLight()} !important` },
42999
43107
  "& .MuiSwitch-track": { backgroundColor: e ? `${O.tertiaryLight()} !important` : void 0 }
43000
- })), nQ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I($Z, { children: [/* @__PURE__ */ F(eQ, { children: n }), /* @__PURE__ */ F(tQ, {
43108
+ })), dQ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I(cQ, { children: [/* @__PURE__ */ F(lQ, { children: n }), /* @__PURE__ */ F(uQ, {
43001
43109
  checked: e,
43002
43110
  disabled: t,
43003
43111
  onChange: (e) => r(e.target.checked)
43004
43112
  })] });
43005
- nQ.propTypes = {
43113
+ dQ.propTypes = {
43006
43114
  checked: L.default.bool,
43007
43115
  disabled: L.default.bool,
43008
43116
  label: L.default.string.isRequired,
@@ -43010,20 +43118,20 @@ nQ.propTypes = {
43010
43118
  };
43011
43119
  //#endregion
43012
43120
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
43013
- var rQ = k(ma)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
43121
+ var fQ = k(ma)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
43014
43122
  color: "rgba(0, 0, 0, 0.89)",
43015
43123
  fontSize: e.typography.fontSize - 2,
43016
43124
  left: "-5px",
43017
43125
  position: "relative"
43018
- } })), iQ = k(Le)(() => ({ color: `${O.tertiary()} !important` })), aQ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(rQ, {
43126
+ } })), pQ = k(Le)(() => ({ color: `${O.tertiary()} !important` })), mQ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(fQ, {
43019
43127
  value: t,
43020
- control: /* @__PURE__ */ F(iQ, {
43128
+ control: /* @__PURE__ */ F(pQ, {
43021
43129
  checked: n,
43022
43130
  onChange: r
43023
43131
  }),
43024
43132
  label: e
43025
43133
  });
43026
- aQ.propTypes = {
43134
+ mQ.propTypes = {
43027
43135
  label: L.default.string,
43028
43136
  value: L.default.string,
43029
43137
  checked: L.default.bool,
@@ -43031,26 +43139,26 @@ aQ.propTypes = {
43031
43139
  };
43032
43140
  //#endregion
43033
43141
  //#region ../../lib-react/config-ui/dist/settings/panel.js
43034
- var oQ = (0, cc.default)("pie-lib:config-ui:settings:panel"), sQ = {
43142
+ var hQ = (0, cc.default)("pie-lib:config-ui:settings:panel"), gQ = {
43035
43143
  label: L.default.string,
43036
43144
  value: L.default.string
43037
- }, cQ = {
43145
+ }, _Q = {
43038
43146
  label: L.default.string,
43039
43147
  value: L.default.string,
43040
43148
  onChange: L.default.func
43041
- }, lQ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(zX, {
43149
+ }, vQ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(JX, {
43042
43150
  checked: t,
43043
43151
  label: e,
43044
43152
  onChange: (e) => {
43045
43153
  n(e.target.checked);
43046
43154
  }
43047
43155
  });
43048
- lQ.propTypes = {
43156
+ vQ.propTypes = {
43049
43157
  label: L.default.string,
43050
43158
  value: L.default.bool,
43051
43159
  onChange: L.default.func
43052
43160
  };
43053
- var uQ = k(QX)(({ theme: e }) => ({
43161
+ var yQ = k(sZ)(({ theme: e }) => ({
43054
43162
  marginTop: e.spacing(.5),
43055
43163
  paddingBottom: e.spacing(.5),
43056
43164
  width: "100%",
@@ -43061,29 +43169,29 @@ var uQ = k(QX)(({ theme: e }) => ({
43061
43169
  marginTop: e.spacing(2.5)
43062
43170
  },
43063
43171
  "& > div": { marginTop: e.spacing(2.5) }
43064
- })), dQ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(uQ, {
43172
+ })), bQ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(yQ, {
43065
43173
  direction: "horizontal",
43066
- customLabel: aQ,
43174
+ customLabel: mQ,
43067
43175
  value: t,
43068
43176
  header: e,
43069
43177
  opts: r,
43070
43178
  onChange: n
43071
43179
  });
43072
- dQ.propTypes = {
43073
- ...cQ,
43074
- choices: L.default.arrayOf(L.default.shape(sQ))
43180
+ bQ.propTypes = {
43181
+ ..._Q,
43182
+ choices: L.default.arrayOf(L.default.shape(gQ))
43075
43183
  };
43076
- var fQ = dQ, pQ = k("p")(({ theme: e }) => ({
43184
+ var xQ = bQ, SQ = k("p")(({ theme: e }) => ({
43077
43185
  margin: 0,
43078
43186
  fontSize: e.typography.fontSize
43079
- })), mQ = k(Go)(({ theme: e }) => ({
43187
+ })), CQ = k(Go)(({ theme: e }) => ({
43080
43188
  marginTop: e.spacing(.5),
43081
43189
  border: "2px solid lightgrey",
43082
43190
  padding: `0 ${e.spacing(1)}`,
43083
43191
  borderRadius: "4px"
43084
- })), hQ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
43192
+ })), wQ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
43085
43193
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
43086
- return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(pQ, { children: e }), /* @__PURE__ */ F(mQ, {
43194
+ return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(SQ, { children: e }), /* @__PURE__ */ F(CQ, {
43087
43195
  value: t || r && r[0],
43088
43196
  onChange: ({ target: e }) => n(e.value),
43089
43197
  input: /* @__PURE__ */ F(wa, { id: `dropdown-${e}` }),
@@ -43098,14 +43206,14 @@ var fQ = dQ, pQ = k("p")(({ theme: e }) => ({
43098
43206
  }, t))
43099
43207
  })] });
43100
43208
  };
43101
- hQ.propTypes = {
43102
- ...cQ,
43209
+ wQ.propTypes = {
43210
+ ..._Q,
43103
43211
  choices: L.default.arrayOf(L.default.string)
43104
43212
  };
43105
- var gQ = k(Ve)(({ theme: e }) => ({
43213
+ var TQ = k(Ve)(({ theme: e }) => ({
43106
43214
  marginRight: e.spacing(3),
43107
43215
  marginTop: e.spacing(1)
43108
- })), _Q = ({ label: e }) => /* @__PURE__ */ F(gQ, { children: e }), vQ = k(UX)(({ theme: e }) => ({
43216
+ })), EQ = ({ label: e }) => /* @__PURE__ */ F(TQ, { children: e }), DQ = k(QX)(({ theme: e }) => ({
43109
43217
  width: "35%",
43110
43218
  marginRight: e.spacing(3),
43111
43219
  marginTop: e.spacing(1),
@@ -43116,7 +43224,7 @@ var gQ = k(Ve)(({ theme: e }) => ({
43116
43224
  padding: `0 ${e.spacing(1)}`,
43117
43225
  backgroundColor: "transparent"
43118
43226
  }
43119
- })), yQ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(vQ, {
43227
+ })), OQ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(DQ, {
43120
43228
  variant: "standard",
43121
43229
  label: e || "Label",
43122
43230
  value: t,
@@ -43127,45 +43235,45 @@ var gQ = k(Ve)(({ theme: e }) => ({
43127
43235
  showErrorWhenOutsideRange: !0,
43128
43236
  disableUnderline: !0
43129
43237
  });
43130
- yQ.propTypes = {
43131
- ...cQ,
43238
+ OQ.propTypes = {
43239
+ ..._Q,
43132
43240
  suffix: L.default.string,
43133
43241
  min: L.default.number,
43134
43242
  max: L.default.number,
43135
43243
  value: L.default.number
43136
- }, _Q.propTypes = { ...cQ };
43137
- var bQ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(nQ, {
43244
+ }, EQ.propTypes = { ..._Q };
43245
+ var kQ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(dQ, {
43138
43246
  label: t,
43139
43247
  checked: !!n,
43140
43248
  disabled: !!e,
43141
43249
  toggle: r
43142
43250
  });
43143
- bQ.propTypes = {
43144
- ...cQ,
43251
+ kQ.propTypes = {
43252
+ ..._Q,
43145
43253
  value: L.default.bool
43146
43254
  };
43147
- var xQ = {
43148
- toggle: bQ,
43149
- radio: fQ,
43150
- dropdown: hQ,
43151
- numberField: yQ,
43152
- checkbox: lQ,
43153
- textField: _Q
43154
- }, SQ = k("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), CQ = k("div")(({ theme: e }) => ({
43255
+ var AQ = {
43256
+ toggle: kQ,
43257
+ radio: xQ,
43258
+ dropdown: wQ,
43259
+ numberField: OQ,
43260
+ checkbox: vQ,
43261
+ textField: EQ
43262
+ }, jQ = k("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), MQ = k("div")(({ theme: e }) => ({
43155
43263
  color: "#495B8F",
43156
43264
  fontSize: e.typography.fontSize + 2,
43157
43265
  fontWeight: 600,
43158
43266
  marginBottom: e.spacing(1)
43159
- })), wQ = k("p")(({ theme: e }) => ({
43267
+ })), NQ = k("p")(({ theme: e }) => ({
43160
43268
  fontSize: e.typography.fontSize,
43161
43269
  marginBottom: 0
43162
- })), TQ = (e) => {
43270
+ })), PQ = (e) => {
43163
43271
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
43164
43272
  let { isConfigProperty: o, ...s } = et(e, r || n), c = et(o ? i : t, n), l = {
43165
43273
  ...s,
43166
43274
  key: n,
43167
43275
  value: c
43168
- }, u = xQ[l.type];
43276
+ }, u = AQ[l.type];
43169
43277
  return /* @__PURE__ */ F(u, {
43170
43278
  ...l,
43171
43279
  onChange: (e) => a(n, e, o)
@@ -43174,18 +43282,18 @@ var xQ = {
43174
43282
  let n = e[t];
43175
43283
  if (!n) return null;
43176
43284
  let { type: r, label: i, fields: a, choices: s } = n;
43177
- return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(wQ, { 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);
43285
+ return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(NQ, { 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);
43178
43286
  };
43179
- return /* @__PURE__ */ I(SQ, { children: [/* @__PURE__ */ F(CQ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
43287
+ return /* @__PURE__ */ I(jQ, { children: [/* @__PURE__ */ F(MQ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
43180
43288
  };
43181
- TQ.propTypes = {
43289
+ PQ.propTypes = {
43182
43290
  model: L.default.object,
43183
43291
  label: L.default.string,
43184
43292
  group: L.default.object,
43185
43293
  configuration: L.default.object,
43186
43294
  onChange: L.default.func
43187
43295
  };
43188
- var EQ = class extends N.Component {
43296
+ var FQ = class extends N.Component {
43189
43297
  static propTypes = {
43190
43298
  model: L.default.object,
43191
43299
  configuration: L.default.object,
@@ -43199,13 +43307,13 @@ var EQ = class extends N.Component {
43199
43307
  onChangeConfiguration: () => {}
43200
43308
  };
43201
43309
  change = (e, t, n = !1) => {
43202
- oQ("[changeModel]", e, t);
43310
+ hQ("[changeModel]", e, t);
43203
43311
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
43204
43312
  n ? (ot(o, e, t), i(o, e)) : (ot(a, e, t), r(a, e));
43205
43313
  };
43206
43314
  render() {
43207
43315
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
43208
- return oQ("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(TQ, {
43316
+ return hQ("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(PQ, {
43209
43317
  label: r,
43210
43318
  model: t,
43211
43319
  configuration: n,
@@ -43213,59 +43321,59 @@ var EQ = class extends N.Component {
43213
43321
  onChange: this.change
43214
43322
  }, r) : null), r] });
43215
43323
  }
43216
- }, DQ = /* @__PURE__ */ tZ({
43217
- Panel: () => EQ,
43218
- checkbox: () => FQ,
43219
- checkboxes: () => IQ,
43220
- dropdown: () => MQ,
43221
- numberField: () => NQ,
43222
- numberFields: () => PQ,
43223
- radio: () => jQ,
43224
- textField: () => OQ,
43225
- toggle: () => kQ
43226
- }), OQ = (e, t = !0) => ({
43324
+ }, IQ = /* @__PURE__ */ uZ({
43325
+ Panel: () => FQ,
43326
+ checkbox: () => WQ,
43327
+ checkboxes: () => GQ,
43328
+ dropdown: () => VQ,
43329
+ numberField: () => HQ,
43330
+ numberFields: () => UQ,
43331
+ radio: () => BQ,
43332
+ textField: () => LQ,
43333
+ toggle: () => RQ
43334
+ }), LQ = (e, t = !0) => ({
43227
43335
  label: e,
43228
43336
  type: "textField",
43229
43337
  isConfigProperty: t
43230
- }), kQ = (e, t = !1, n = !1) => ({
43338
+ }), RQ = (e, t = !1, n = !1) => ({
43231
43339
  type: "toggle",
43232
43340
  label: e,
43233
43341
  isConfigProperty: t,
43234
43342
  disabled: n
43235
- }), AQ = (e) => typeof e == "string" ? {
43343
+ }), zQ = (e) => typeof e == "string" ? {
43236
43344
  label: e,
43237
43345
  value: e
43238
- } : e, jQ = function() {
43346
+ } : e, BQ = function() {
43239
43347
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
43240
43348
  return {
43241
43349
  type: "radio",
43242
43350
  label: e,
43243
- choices: t && t.map((e) => AQ(e)),
43351
+ choices: t && t.map((e) => zQ(e)),
43244
43352
  isConfigProperty: n
43245
43353
  };
43246
- }, MQ = (e, t, n = !1) => ({
43354
+ }, VQ = (e, t, n = !1) => ({
43247
43355
  type: "dropdown",
43248
43356
  label: e,
43249
43357
  choices: t,
43250
43358
  isConfigProperty: n
43251
- }), NQ = (e, t, n = !1) => ({
43359
+ }), HQ = (e, t, n = !1) => ({
43252
43360
  ...t,
43253
43361
  label: e,
43254
43362
  type: "numberField",
43255
43363
  isConfigProperty: n
43256
- }), PQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
43257
- t[e] = NQ(t[e].label, t[e], n);
43364
+ }), UQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
43365
+ t[e] = HQ(t[e].label, t[e], n);
43258
43366
  }), {
43259
43367
  type: "numberFields",
43260
43368
  label: e,
43261
43369
  fields: t
43262
- }), FQ = (e, t, n = !1) => ({
43370
+ }), WQ = (e, t, n = !1) => ({
43263
43371
  ...t,
43264
43372
  label: e,
43265
43373
  type: "checkbox",
43266
43374
  isConfigProperty: n
43267
- }), IQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
43268
- t[e] = FQ(t[e].label, t[e], n);
43375
+ }), GQ = (e, t, n = !1) => (Object.keys(t).map((e) => {
43376
+ t[e] = WQ(t[e].label, t[e], n);
43269
43377
  }), {
43270
43378
  type: "checkboxes",
43271
43379
  label: e,
@@ -43273,30 +43381,30 @@ var EQ = class extends N.Component {
43273
43381
  });
43274
43382
  //#endregion
43275
43383
  //#region ../../lib-react/config-ui/dist/index.js
43276
- function LQ(e) {
43384
+ function KQ(e) {
43277
43385
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
43278
43386
  }
43279
- function RQ(e, t) {
43280
- return !e || LQ(e) ? e : LQ(e.default) ? e.default : t && LQ(e[t]) ? e[t] : t && LQ(e[t]?.default) ? e[t].default : e;
43387
+ function qQ(e, t) {
43388
+ return !e || KQ(e) ? e : KQ(e.default) ? e.default : t && KQ(e[t]) ? e[t] : t && KQ(e[t]?.default) ? e[t].default : e;
43281
43389
  }
43282
- var zQ = RQ(Ae, "InputContainer") || RQ(HQ.InputContainer, "InputContainer"), BQ = pe, VQ = BQ.default, HQ = VQ && typeof VQ == "object" ? VQ : BQ, UQ = 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"), WQ = k("div")(({ theme: e }) => ({
43390
+ var JQ = qQ(Ae, "InputContainer") || qQ(ZQ.InputContainer, "InputContainer"), YQ = pe, XQ = YQ.default, ZQ = XQ && typeof XQ == "object" ? XQ : YQ, QQ = 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"), $Q = k("div")(({ theme: e }) => ({
43283
43391
  marginTop: e.spacing(2),
43284
43392
  display: "flex"
43285
- })), GQ = k("div")({ flex: 1 }), KQ = k(UX)({ flexDirection: "unset" }), qQ = k("div")(({ theme: e }) => ({
43393
+ })), e$ = k("div")({ flex: 1 }), t$ = k(QX)({ flexDirection: "unset" }), n$ = k("div")(({ theme: e }) => ({
43286
43394
  paddingTop: e.spacing(1),
43287
43395
  paddingBottom: e.spacing(2),
43288
43396
  ".select-input-container": { minWidth: "65%" }
43289
- })), JQ = k("div")({
43397
+ })), r$ = k("div")({
43290
43398
  display: "flex",
43291
43399
  alignItems: "center"
43292
- }), YQ = k(Ve)(({ theme: e }) => ({
43400
+ }), i$ = k(Ve)(({ theme: e }) => ({
43293
43401
  fontSize: e.typography.fontSize + 2,
43294
43402
  marginRight: e.spacing(1)
43295
- })), XQ = k(ls)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
43403
+ })), a$ = k(ls)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
43296
43404
  fontSize: e.typography.fontSize - 2,
43297
43405
  whiteSpace: "pre",
43298
43406
  maxWidth: "500px"
43299
- } })), ZQ = class extends M.Component {
43407
+ } })), o$ = class extends M.Component {
43300
43408
  static propTypes = {
43301
43409
  model: L.default.object.isRequired,
43302
43410
  configuration: L.default.object.isRequired,
@@ -43313,22 +43421,22 @@ var zQ = RQ(Ae, "InputContainer") || RQ(HQ.InputContainer, "InputContainer"), BQ
43313
43421
  };
43314
43422
  render() {
43315
43423
  let { model: e, configuration: t } = this.props, { layout: n = {}, choiceMode: r = {}, maxAnswers: i } = t || {}, a = Mt(e, t);
43316
- return /* @__PURE__ */ I(M.Fragment, { children: [/* @__PURE__ */ I(JQ, { children: [/* @__PURE__ */ F(YQ, {
43424
+ return /* @__PURE__ */ I(M.Fragment, { children: [/* @__PURE__ */ I(r$, { children: [/* @__PURE__ */ F(i$, {
43317
43425
  component: "div",
43318
43426
  children: "Define questions"
43319
- }), /* @__PURE__ */ F(XQ, {
43427
+ }), /* @__PURE__ */ F(a$, {
43320
43428
  disableFocusListener: !0,
43321
43429
  disableTouchListener: !0,
43322
43430
  placement: "right",
43323
43431
  title: a,
43324
- children: /* @__PURE__ */ F(UQ, {
43432
+ children: /* @__PURE__ */ F(QQ, {
43325
43433
  fontSize: "small",
43326
43434
  color: "primary"
43327
43435
  })
43328
- })] }), /* @__PURE__ */ I(WQ, { children: [/* @__PURE__ */ F(GQ, { children: n.settings && /* @__PURE__ */ F(qQ, { children: /* @__PURE__ */ F(zQ, {
43436
+ })] }), /* @__PURE__ */ I($Q, { children: [/* @__PURE__ */ F(e$, { children: n.settings && /* @__PURE__ */ F(n$, { children: /* @__PURE__ */ F(JQ, {
43329
43437
  label: n.label,
43330
43438
  className: "input-container",
43331
- children: /* @__PURE__ */ F(KQ, {
43439
+ children: /* @__PURE__ */ F(t$, {
43332
43440
  type: "number",
43333
43441
  min: 3,
43334
43442
  max: i || 10,
@@ -43336,7 +43444,7 @@ var zQ = RQ(Ae, "InputContainer") || RQ(HQ.InputContainer, "InputContainer"), BQ
43336
43444
  onChange: (e, t) => this.onChangeColumns("layout", t),
43337
43445
  suffix: "Columns"
43338
43446
  })
43339
- }) }) }), /* @__PURE__ */ F(GQ, { children: r.settings && /* @__PURE__ */ F(qQ, { children: /* @__PURE__ */ F(zQ, {
43447
+ }) }) }), /* @__PURE__ */ F(e$, { children: r.settings && /* @__PURE__ */ F(n$, { children: /* @__PURE__ */ F(JQ, {
43340
43448
  label: r.label,
43341
43449
  className: "select-input-container",
43342
43450
  children: /* @__PURE__ */ I(Go, {
@@ -43357,46 +43465,46 @@ var zQ = RQ(Ae, "InputContainer") || RQ(HQ.InputContainer, "InputContainer"), BQ
43357
43465
  })
43358
43466
  }) }) })] })] });
43359
43467
  }
43360
- }, QQ = k(c)({
43468
+ }, s$ = k(c)({
43361
43469
  display: "flex",
43362
43470
  alignSelf: "flex-start",
43363
43471
  margin: 0
43364
- }), $Q = k(WX)(({ theme: e }) => ({ marginRight: e.spacing(.5) })), e$ = class extends N.Component {
43472
+ }), c$ = k($X)(({ theme: e }) => ({ marginRight: e.spacing(.5) })), l$ = class extends N.Component {
43365
43473
  static propTypes = { onAddClick: L.default.func.isRequired };
43366
43474
  render() {
43367
43475
  let { onAddClick: e } = this.props;
43368
- return /* @__PURE__ */ I(QQ, {
43476
+ return /* @__PURE__ */ I(s$, {
43369
43477
  disabled: !1,
43370
43478
  onClick: e,
43371
- children: [/* @__PURE__ */ F($Q, {}), "Add Another Row"]
43479
+ children: [/* @__PURE__ */ F(c$, {}), "Add Another Row"]
43372
43480
  });
43373
43481
  }
43374
- }, t$ = E(/*#__PURE__*/ F("path", { d: "M20 9H4v2h16zM4 15h16v-2H4z" }), "DragHandle");
43482
+ }, u$ = E(/*#__PURE__*/ F("path", { d: "M20 9H4v2h16zM4 15h16v-2H4z" }), "DragHandle");
43375
43483
  //#endregion
43376
43484
  //#region src/author/row.tsx
43377
43485
  (0, cc.default)("@pie-element:categorize:configure:choice");
43378
- var n$ = k("span")({ cursor: "move" }), r$ = k("div")(({ theme: e }) => ({
43486
+ var d$ = k("span")({ cursor: "move" }), f$ = k("div")(({ theme: e }) => ({
43379
43487
  marginTop: e.spacing(2),
43380
43488
  display: "flex",
43381
43489
  alignItems: "center",
43382
43490
  flex: 1
43383
- })), i$ = k("div")(({ theme: e }) => ({
43491
+ })), p$ = k("div")(({ theme: e }) => ({
43384
43492
  flex: 1,
43385
43493
  display: "flex",
43386
43494
  justifyContent: "center",
43387
43495
  alignItems: "center",
43388
43496
  minWidth: "120px",
43389
43497
  padding: `0 ${e.spacing(1)}`
43390
- })), a$ = k(Le)(({ theme: e, error: t }) => ({
43498
+ })), m$ = k(Le)(({ theme: e, error: t }) => ({
43391
43499
  "& input": { width: "100% !important" },
43392
43500
  "&.MuiRadio-root": { color: `${t ? e.palette.error.main : O.tertiary()} !important` }
43393
- })), o$ = k("div")(({ theme: e }) => ({
43501
+ })), h$ = k("div")(({ theme: e }) => ({
43394
43502
  flex: .5,
43395
43503
  display: "flex",
43396
43504
  justifyContent: "center",
43397
43505
  minWidth: "45px",
43398
43506
  padding: `0 ${e.spacing(1)}`
43399
- })), s$ = k(i$)(({ theme: e }) => ({
43507
+ })), g$ = k(p$)(({ theme: e }) => ({
43400
43508
  flex: 2,
43401
43509
  display: "flex",
43402
43510
  justifyContent: "flex-start",
@@ -43406,16 +43514,16 @@ var n$ = k("span")({ cursor: "move" }), r$ = k("div")(({ theme: e }) => ({
43406
43514
  minWidth: "200px",
43407
43515
  marginRight: e.spacing(1),
43408
43516
  "&> div": { width: "100%" }
43409
- })), c$ = k("hr")(({ theme: e }) => ({
43517
+ })), _$ = k("hr")(({ theme: e }) => ({
43410
43518
  marginTop: e.spacing(2),
43411
43519
  border: 0,
43412
43520
  borderTop: `2px solid ${O.border()}`,
43413
43521
  width: "100%"
43414
- })), l$ = k("div")(({ theme: e }) => ({
43522
+ })), v$ = k("div")(({ theme: e }) => ({
43415
43523
  fontSize: e.typography.fontSize - 2,
43416
43524
  color: e.palette.error.main,
43417
43525
  paddingTop: e.spacing(1)
43418
- })), u$ = class extends N.Component {
43526
+ })), y$ = class extends N.Component {
43419
43527
  static propTypes = {
43420
43528
  model: L.default.object.isRequired,
43421
43529
  row: L.default.object.isRequired,
@@ -43469,13 +43577,13 @@ var n$ = k("span")({ cursor: "move" }), r$ = k("div")(({ theme: e }) => ({
43469
43577
  return /* @__PURE__ */ I("div", {
43470
43578
  style: { width: "100%" },
43471
43579
  children: [
43472
- /* @__PURE__ */ F(n$, {
43580
+ /* @__PURE__ */ F(d$, {
43473
43581
  itemID: "handle",
43474
43582
  onMouseDown: this.onMouseDownOnHandle,
43475
- children: /* @__PURE__ */ F(t$, { color: "primary" })
43583
+ children: /* @__PURE__ */ F(u$, { color: "primary" })
43476
43584
  }),
43477
- /* @__PURE__ */ I(r$, { children: [
43478
- /* @__PURE__ */ F(s$, { children: /* @__PURE__ */ F(mX, {
43585
+ /* @__PURE__ */ I(f$, { children: [
43586
+ /* @__PURE__ */ F(g$, { children: /* @__PURE__ */ F(CX, {
43479
43587
  imageSupport: e,
43480
43588
  autoWidthToolbar: !0,
43481
43589
  disableUnderline: !0,
@@ -43493,25 +43601,25 @@ var n$ = k("span")({ cursor: "move" }), r$ = k("div")(({ theme: e }) => ({
43493
43601
  error: s && s !== "No correct response defined.",
43494
43602
  mathMlOptions: d
43495
43603
  }) }),
43496
- n.values.map((e, n) => /* @__PURE__ */ F(i$, { children: t.choiceMode === "radio" ? /* @__PURE__ */ F(a$, {
43604
+ n.values.map((e, n) => /* @__PURE__ */ F(p$, { children: t.choiceMode === "radio" ? /* @__PURE__ */ F(m$, {
43497
43605
  error: s?.includes("No correct response defined."),
43498
43606
  onChange: this.onRowValueChange(r, n),
43499
43607
  checked: e === !0
43500
- }) : /* @__PURE__ */ F(zX, {
43608
+ }) : /* @__PURE__ */ F(JX, {
43501
43609
  onChange: this.onRowValueChange(r, n),
43502
43610
  checked: e === !0,
43503
43611
  label: "",
43504
43612
  error: s?.includes("No correct response defined.")
43505
43613
  }) }, n)),
43506
- /* @__PURE__ */ F(o$, { children: /* @__PURE__ */ F(rn, {
43614
+ /* @__PURE__ */ F(h$, { children: /* @__PURE__ */ F(rn, {
43507
43615
  onClick: this.onDeleteRow(r),
43508
43616
  "aria-label": "Delete",
43509
43617
  size: "large",
43510
43618
  children: /* @__PURE__ */ F(AO, {})
43511
43619
  }) })
43512
43620
  ] }),
43513
- s && /* @__PURE__ */ F(l$, { children: s }),
43514
- /* @__PURE__ */ F(c$, {}),
43621
+ s && /* @__PURE__ */ F(v$, { children: s }),
43622
+ /* @__PURE__ */ F(_$, {}),
43515
43623
  /* @__PURE__ */ F(ec, {
43516
43624
  open: f.open,
43517
43625
  title: "Warning",
@@ -43522,7 +43630,7 @@ var n$ = k("span")({ cursor: "move" }), r$ = k("div")(({ theme: e }) => ({
43522
43630
  });
43523
43631
  }
43524
43632
  };
43525
- function d$(e) {
43633
+ function b$(e) {
43526
43634
  let { attributes: t, listeners: n, setNodeRef: r, transform: i, transition: a, isDragging: o } = nN({
43527
43635
  id: `row-${e.row.id}`,
43528
43636
  data: {
@@ -43558,13 +43666,13 @@ function d$(e) {
43558
43666
  t.closest("[contenteditable]") || t.closest("input") || t.closest("textarea") || t.isContentEditable || n?.onPointerDown?.(e);
43559
43667
  },
43560
43668
  ...t,
43561
- children: /* @__PURE__ */ F(u$, { ...e })
43669
+ children: /* @__PURE__ */ F(y$, { ...e })
43562
43670
  })
43563
43671
  });
43564
43672
  }
43565
43673
  //#endregion
43566
43674
  //#region ../../lib-react/drag/dist/drag-provider.js
43567
- function f$({ children: e, onDragEnd: t, onDragStart: n, onDragCancel: r, collisionDetection: i, modifiers: a, autoScroll: o, keyboardCoordinateGetter: s, keyboardCodes: c, accessibility: l }) {
43675
+ function x$({ children: e, onDragEnd: t, onDragStart: n, onDragCancel: r, collisionDetection: i, modifiers: a, autoScroll: o, keyboardCoordinateGetter: s, keyboardCodes: c, accessibility: l }) {
43568
43676
  let [u, d] = Ct(null), f = s || c ? {
43569
43677
  coordinateGetter: s,
43570
43678
  keyboardCodes: c
@@ -43587,7 +43695,7 @@ function f$({ children: e, onDragEnd: t, onDragStart: n, onDragCancel: r, collis
43587
43695
  children: e
43588
43696
  });
43589
43697
  }
43590
- f$.propTypes = {
43698
+ x$.propTypes = {
43591
43699
  children: L.default.node.isRequired,
43592
43700
  onDragEnd: L.default.func,
43593
43701
  onDragStart: L.default.func,
@@ -43605,11 +43713,11 @@ f$.propTypes = {
43605
43713
  };
43606
43714
  //#endregion
43607
43715
  //#region src/author/answer-config-block.tsx
43608
- var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme: e }) => ({
43716
+ var S$ = (0, cc.default)("pie-elements:match:configure"), C$ = k("div")(({ theme: e }) => ({
43609
43717
  marginBottom: e.spacing(2.5),
43610
43718
  display: "flex",
43611
43719
  flexDirection: "column"
43612
- })), h$ = k("div")(({ theme: e }) => ({
43720
+ })), w$ = k("div")(({ theme: e }) => ({
43613
43721
  display: "flex",
43614
43722
  alignItems: "center",
43615
43723
  flex: 1,
@@ -43618,7 +43726,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43618
43726
  paddingBottom: e.spacing(2),
43619
43727
  marginTop: e.spacing(2),
43620
43728
  marginBottom: e.spacing(1)
43621
- })), g$ = k("div")(({ theme: e }) => ({
43729
+ })), T$ = k("div")(({ theme: e }) => ({
43622
43730
  flex: 1,
43623
43731
  display: "flex",
43624
43732
  justifyContent: "center",
@@ -43629,26 +43737,26 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43629
43737
  padding: `0 ${e.spacing(1)}`,
43630
43738
  textAlign: "center"
43631
43739
  }
43632
- })), _$ = k("div")(({ theme: e }) => ({
43740
+ })), E$ = k("div")(({ theme: e }) => ({
43633
43741
  flex: .5,
43634
43742
  minWidth: "45px",
43635
43743
  padding: `0 ${e.spacing(1)}`
43636
- })), v$ = k("div")({
43744
+ })), D$ = k("div")({
43637
43745
  display: "flex",
43638
43746
  flexDirection: "column"
43639
- }), y$ = k("div")(({ theme: e }) => ({
43747
+ }), O$ = k("div")(({ theme: e }) => ({
43640
43748
  fontSize: e.typography.fontSize - 2,
43641
43749
  color: e.palette.error.main,
43642
43750
  paddingTop: `${e.spacing(1)} !important`,
43643
43751
  width: "fit-content !important"
43644
- })), b$ = k("div")(({ theme: e }) => ({
43752
+ })), k$ = k("div")(({ theme: e }) => ({
43645
43753
  fontSize: e.typography.fontSize - 2,
43646
43754
  color: e.palette.error.main,
43647
43755
  paddingBottom: e.spacing(1)
43648
- })), x$ = k("div")(({ theme: e }) => ({
43756
+ })), A$ = k("div")(({ theme: e }) => ({
43649
43757
  "& .marginBottom": { marginBottom: e.typography.fontSize - 2 + e.spacing(1) },
43650
43758
  "& .headerInput": { "& > div": { fontWeight: "bold" } }
43651
- })), S$ = class extends M.Component {
43759
+ })), j$ = class extends M.Component {
43652
43760
  static propTypes = {
43653
43761
  model: L.default.object.isRequired,
43654
43762
  configuration: L.default.object.isRequired,
@@ -43672,7 +43780,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43672
43780
  let r = t.data.current, i = n.data.current;
43673
43781
  if (r?.type === "row" && i?.type === "row") {
43674
43782
  let e = r.index, t = i.index, { model: n, onChange: a } = this.props, o = { ...n }, s = o.rows || [];
43675
- p$("[moveRow]: ", e, t);
43783
+ S$("[moveRow]: ", e, t);
43676
43784
  let { movedRow: c, remainingRows: l } = s.reduce((t, n, r) => (r === e ? t.movedRow = n : t.remainingRows.push(n), t), {
43677
43785
  movedRow: null,
43678
43786
  remainingRows: []
@@ -43681,7 +43789,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43681
43789
  c,
43682
43790
  ...l.slice(t)
43683
43791
  ];
43684
- p$("update: ", u), o.rows = u, a(o);
43792
+ S$("update: ", u), o.rows = u, a(o);
43685
43793
  }
43686
43794
  };
43687
43795
  onChange = (e, t) => ({ target: n }) => {
@@ -43698,19 +43806,19 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43698
43806
  };
43699
43807
  render() {
43700
43808
  let { model: e, onAddRow: t, imageSupport: n, configuration: r, toolbarOpts: i, spellCheck: a, uploadSoundSupport: o } = this.props, { baseInputConfiguration: s = {}, headers: c = {}, rows: l = {}, maxImageWidth: u = {}, maxImageHeight: f = {}, mathMlOptions: p = {}, minQuestions: m } = r || {}, { errors: h } = e || {}, { correctResponseError: g, rowsErrors: _, columnsErrors: v, noOfRowsError: y, columnsLengthError: b } = h || {}, x = (fc || []).filter((e) => e !== "table" && e !== "bulleted-list" && e !== "numbered-list"), S = u && u.prompt, C = f && f.prompt;
43701
- return /* @__PURE__ */ F(x$, { children: /* @__PURE__ */ F(f$, {
43809
+ return /* @__PURE__ */ F(A$, { children: /* @__PURE__ */ F(x$, {
43702
43810
  onDragEnd: this.moveRow,
43703
- children: /* @__PURE__ */ I(m$, { children: [/* @__PURE__ */ F(Ve, {
43811
+ children: /* @__PURE__ */ I(C$, { children: [/* @__PURE__ */ F(Ve, {
43704
43812
  type: "body1",
43705
43813
  component: "div",
43706
43814
  children: "Click on the labels to edit or remove. Set the correct answers by clicking each correct answer per row."
43707
- }), /* @__PURE__ */ I(v$, {
43815
+ }), /* @__PURE__ */ I(D$, {
43708
43816
  style: r.width ? {
43709
43817
  width: r.width,
43710
43818
  overflow: "scroll"
43711
43819
  } : {},
43712
43820
  children: [
43713
- /* @__PURE__ */ I(h$, { children: [c.settings && (e.headers || []).map((e, t) => /* @__PURE__ */ I(g$, {
43821
+ /* @__PURE__ */ I(w$, { children: [c.settings && (e.headers || []).map((e, t) => /* @__PURE__ */ I(T$, {
43714
43822
  className: d({ questionText: t === 0 }),
43715
43823
  sx: t === 0 ? {
43716
43824
  flex: 2,
@@ -43725,7 +43833,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43725
43833
  minWidth: "200px"
43726
43834
  }
43727
43835
  } : {},
43728
- children: [/* @__PURE__ */ F(mX, {
43836
+ children: [/* @__PURE__ */ F(CX, {
43729
43837
  onChange: this.onHeaderChange(t),
43730
43838
  markup: e,
43731
43839
  className: v && !v[t] ? "marginBottom" : "headerInput",
@@ -43737,9 +43845,9 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43737
43845
  uploadSoundSupport: o,
43738
43846
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
43739
43847
  error: v && v[t]
43740
- }), v && v[t] && /* @__PURE__ */ F(y$, { children: v[t] })]
43741
- }, t)), /* @__PURE__ */ F(_$, {})] }),
43742
- e.rows.map((t, r) => /* @__PURE__ */ F(d$, {
43848
+ }), v && v[t] && /* @__PURE__ */ F(O$, { children: v[t] })]
43849
+ }, t)), /* @__PURE__ */ F(E$, {})] }),
43850
+ e.rows.map((t, r) => /* @__PURE__ */ F(b$, {
43743
43851
  model: e,
43744
43852
  row: t,
43745
43853
  idx: r,
@@ -43756,23 +43864,23 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43756
43864
  minQuestions: m,
43757
43865
  inputConfiguration: jt(l?.inputConfiguration, s)
43758
43866
  }, r)),
43759
- g && /* @__PURE__ */ F(b$, { children: g }),
43760
- y && /* @__PURE__ */ F(b$, { children: y }),
43761
- b && /* @__PURE__ */ F(b$, { children: b }),
43762
- /* @__PURE__ */ F(e$, { onAddClick: t })
43867
+ g && /* @__PURE__ */ F(k$, { children: g }),
43868
+ y && /* @__PURE__ */ F(k$, { children: y }),
43869
+ b && /* @__PURE__ */ F(k$, { children: b }),
43870
+ /* @__PURE__ */ F(l$, { onAddClick: t })
43763
43871
  ]
43764
43872
  })] })
43765
43873
  }) });
43766
43874
  }
43767
- }, C$ = (0, cc.default)("@pie-element:match:configure"), { Panel: w$, toggle: T$, radio: E$, dropdown: D$ } = DQ, O$ = k("div")(() => ({ "& .promptHolder": { width: "100%" } })), k$ = k("div")(({ theme: e }) => ({
43875
+ }, M$ = (0, cc.default)("@pie-element:match:configure"), { Panel: N$, toggle: P$, radio: F$, dropdown: I$ } = IQ, L$ = k("div")(() => ({ "& .promptHolder": { width: "100%" } })), R$ = k("div")(({ theme: e }) => ({
43768
43876
  width: "100%",
43769
43877
  paddingTop: e.spacing(2),
43770
43878
  marginBottom: e.spacing(2)
43771
- })), A$ = k("div")(({ theme: e }) => ({
43879
+ })), z$ = k("div")(({ theme: e }) => ({
43772
43880
  fontSize: e.typography.fontSize - 2,
43773
43881
  color: e.palette.error.main,
43774
43882
  paddingTop: e.spacing(1)
43775
- })), j$ = class extends N.Component {
43883
+ })), B$ = class extends N.Component {
43776
43884
  static propTypes = {
43777
43885
  onModelChanged: L.default.func,
43778
43886
  onConfigurationChanged: L.default.func,
@@ -43892,25 +44000,25 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43892
44000
  };
43893
44001
  render() {
43894
44002
  let { model: e, imageSupport: t, onModelChanged: n, configuration: r, onConfigurationChanged: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: o = {}, contentDimensions: s = {}, feedback: c = {}, lockChoiceOrder: l = {}, maxImageWidth: u = {}, maxImageHeight: d = {}, partialScoring: f = {}, prompt: p = {}, rationale: m = {}, settingsPanelDisabled: h, scoringType: g = {}, spellCheck: _ = {}, studentInstructions: v = {}, teacherInstructions: y = {}, withRubric: b = {}, language: x = {}, languageChoices: S = {} } = r || {}, { errors: C, extraCSSRules: w, feedbackEnabled: ee, promptEnabled: T, rationaleEnabled: te, spellCheckEnabled: E, teacherInstructionsEnabled: ne, toolbarEditorPosition: re } = e || {}, { prompt: ie, rationale: D, teacherInstructions: ae } = C || {}, { dialog: oe } = this.state, se = { position: re === "top" ? "top" : "bottom" }, ce = u && u.prompt, le = d && d.prompt, ue = {
43895
- partialScoring: f.settings && T$(f.label),
43896
- lockChoiceOrder: l.settings && T$(l.label),
43897
- feedbackEnabled: c.settings && T$(c.label),
43898
- "language.enabled": x.settings && T$(x.label, !0),
43899
- language: x.settings && x.enabled && D$(S.label, S.options)
44003
+ partialScoring: f.settings && P$(f.label),
44004
+ lockChoiceOrder: l.settings && P$(l.label),
44005
+ feedbackEnabled: c.settings && P$(c.label),
44006
+ "language.enabled": x.settings && P$(x.label, !0),
44007
+ language: x.settings && x.enabled && I$(S.label, S.options)
43900
44008
  }, de = {
43901
- teacherInstructionsEnabled: y.settings && T$(y.label),
43902
- studentInstructionsEnabled: v.settings && T$(v.label),
43903
- promptEnabled: p.settings && T$(p.label),
43904
- rationaleEnabled: m.settings && T$(m.label),
43905
- spellCheckEnabled: _.settings && T$(_.label),
43906
- scoringType: g.settings && E$(g.label, ["auto", "rubric"]),
43907
- rubricEnabled: b?.settings && T$(b?.label)
43908
- };
43909
- return C$("[render] model", e), /* @__PURE__ */ F(O$, { children: /* @__PURE__ */ I(QZ.ConfigLayout, {
44009
+ teacherInstructionsEnabled: y.settings && P$(y.label),
44010
+ studentInstructionsEnabled: v.settings && P$(v.label),
44011
+ promptEnabled: p.settings && P$(p.label),
44012
+ rationaleEnabled: m.settings && P$(m.label),
44013
+ spellCheckEnabled: _.settings && P$(_.label),
44014
+ scoringType: g.settings && F$(g.label, ["auto", "rubric"]),
44015
+ rubricEnabled: b?.settings && P$(b?.label)
44016
+ };
44017
+ return M$("[render] model", e), /* @__PURE__ */ F(L$, { children: /* @__PURE__ */ I(sQ.ConfigLayout, {
43910
44018
  extraCSSRules: w,
43911
44019
  dimensions: s,
43912
44020
  hideSettings: h,
43913
- settings: /* @__PURE__ */ F(w$, {
44021
+ settings: /* @__PURE__ */ F(N$, {
43914
44022
  model: e,
43915
44023
  configuration: r,
43916
44024
  onChangeModel: (e) => n(e),
@@ -43921,10 +44029,10 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43921
44029
  }
43922
44030
  }),
43923
44031
  children: [
43924
- ne && /* @__PURE__ */ F(zQ, {
44032
+ ne && /* @__PURE__ */ F(JQ, {
43925
44033
  label: y.label,
43926
44034
  className: "promptHolder",
43927
- children: /* @__PURE__ */ I(k$, { children: [/* @__PURE__ */ F(mX, {
44035
+ children: /* @__PURE__ */ I(R$, { children: [/* @__PURE__ */ F(CX, {
43928
44036
  className: "prompt",
43929
44037
  markup: e.teacherInstructions || "",
43930
44038
  onChange: this.onTeacherInstructionsChanged,
@@ -43938,12 +44046,12 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43938
44046
  maxImageHeight: d && d.teacherInstructions || le,
43939
44047
  uploadSoundSupport: a,
43940
44048
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }]
43941
- }), ae && /* @__PURE__ */ F(A$, { children: ae })] })
44049
+ }), ae && /* @__PURE__ */ F(z$, { children: ae })] })
43942
44050
  }),
43943
- T && /* @__PURE__ */ F(zQ, {
44051
+ T && /* @__PURE__ */ F(JQ, {
43944
44052
  label: p.label,
43945
44053
  className: "promptHolder",
43946
- children: /* @__PURE__ */ I(k$, { children: [/* @__PURE__ */ F(mX, {
44054
+ children: /* @__PURE__ */ I(R$, { children: [/* @__PURE__ */ F(CX, {
43947
44055
  className: "prompt",
43948
44056
  markup: e.prompt,
43949
44057
  onChange: this.onPromptChanged,
@@ -43958,15 +44066,15 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43958
44066
  maxImageHeight: d && d.prompt,
43959
44067
  uploadSoundSupport: a,
43960
44068
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }]
43961
- }), ie && /* @__PURE__ */ F(A$, { children: ie })] })
44069
+ }), ie && /* @__PURE__ */ F(z$, { children: ie })] })
43962
44070
  }),
43963
- /* @__PURE__ */ F(ZQ, {
44071
+ /* @__PURE__ */ F(o$, {
43964
44072
  model: e,
43965
44073
  configuration: r,
43966
44074
  onResponseTypeChange: this.onResponseTypeChange,
43967
44075
  onLayoutChange: this.onLayoutChange
43968
44076
  }),
43969
- /* @__PURE__ */ F(S$, {
44077
+ /* @__PURE__ */ F(j$, {
43970
44078
  model: e,
43971
44079
  configuration: r,
43972
44080
  imageSupport: t,
@@ -43977,10 +44085,10 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43977
44085
  spellCheck: E,
43978
44086
  uploadSoundSupport: a
43979
44087
  }),
43980
- te && /* @__PURE__ */ F(zQ, {
44088
+ te && /* @__PURE__ */ F(JQ, {
43981
44089
  label: m.label,
43982
44090
  className: "promptHolder",
43983
- children: /* @__PURE__ */ I(k$, { children: [/* @__PURE__ */ F(mX, {
44091
+ children: /* @__PURE__ */ I(R$, { children: [/* @__PURE__ */ F(CX, {
43984
44092
  className: "prompt",
43985
44093
  markup: e.rationale || "",
43986
44094
  onChange: this.onRationaleChanged,
@@ -43993,9 +44101,9 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
43993
44101
  maxImageHeight: d && d.rationale || le,
43994
44102
  uploadSoundSupport: a,
43995
44103
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }]
43996
- }), D && /* @__PURE__ */ F(A$, { children: D })] })
44104
+ }), D && /* @__PURE__ */ F(z$, { children: D })] })
43997
44105
  }),
43998
- ee && /* @__PURE__ */ F(PX, {
44106
+ ee && /* @__PURE__ */ F(UX, {
43999
44107
  feedback: e.feedback,
44000
44108
  onChange: this.onFeedbackChange,
44001
44109
  toolbarOpts: se
@@ -44009,7 +44117,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44009
44117
  ]
44010
44118
  }) });
44011
44119
  }
44012
- }, M$ = class e extends CustomEvent {
44120
+ }, V$ = class e extends CustomEvent {
44013
44121
  static {
44014
44122
  this.TYPE = "model.updated";
44015
44123
  }
@@ -44022,7 +44130,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44022
44130
  }
44023
44131
  }), this.update = t, this.reset = n;
44024
44132
  }
44025
- }, N$ = class e extends CustomEvent {
44133
+ }, H$ = class e extends CustomEvent {
44026
44134
  static {
44027
44135
  this.TYPE = "delete.image";
44028
44136
  }
@@ -44035,7 +44143,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44035
44143
  }
44036
44144
  }), this.src = t, this.done = n;
44037
44145
  }
44038
- }, P$ = class e extends CustomEvent {
44146
+ }, U$ = class e extends CustomEvent {
44039
44147
  static {
44040
44148
  this.TYPE = "insert.image";
44041
44149
  }
@@ -44045,7 +44153,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44045
44153
  detail: t
44046
44154
  }), this.handler = t;
44047
44155
  }
44048
- }, F$ = class e extends CustomEvent {
44156
+ }, W$ = class e extends CustomEvent {
44049
44157
  static {
44050
44158
  this.TYPE = "delete.sound";
44051
44159
  }
@@ -44058,7 +44166,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44058
44166
  }
44059
44167
  }), this.src = t, this.done = n;
44060
44168
  }
44061
- }, I$ = class e extends CustomEvent {
44169
+ }, G$ = class e extends CustomEvent {
44062
44170
  static {
44063
44171
  this.TYPE = "insert.sound";
44064
44172
  }
@@ -44068,7 +44176,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44068
44176
  detail: t
44069
44177
  }), this.handler = t;
44070
44178
  }
44071
- }, L$ = {
44179
+ }, K$ = {
44072
44180
  model: {
44073
44181
  choiceMode: "radio",
44074
44182
  feedbackEnabled: !1,
@@ -44215,13 +44323,13 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44215
44323
  options: []
44216
44324
  }
44217
44325
  }
44218
- }, R$ = (0, cc.default)("pie-elements:match:configure"), z$ = class e extends HTMLElement {
44326
+ }, q$ = (0, cc.default)("pie-elements:match:configure"), J$ = class e extends HTMLElement {
44219
44327
  static createDefaultModel = (e = {}) => ({
44220
- ...L$.model,
44328
+ ...K$.model,
44221
44329
  ...e
44222
44330
  });
44223
44331
  constructor() {
44224
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = L$.configuration;
44332
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = K$.configuration;
44225
44333
  }
44226
44334
  set model(t) {
44227
44335
  this._model = e.createDefaultModel(t), this._modelCopy = Qe(this._model), this._render();
@@ -44232,7 +44340,7 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44232
44340
  };
44233
44341
  set configuration(e) {
44234
44342
  let t = {
44235
- ...L$.configuration,
44343
+ ...K$.configuration,
44236
44344
  ...e
44237
44345
  };
44238
44346
  this._configuration = t, this.resetModelAfterConfigurationIsSet(), t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
@@ -44241,26 +44349,26 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44241
44349
  })) : delete this._model.language, Ze(e?.rows?.inputConfiguration) && (ot(this._configuration.rows, "inputConfiguration.image.disabled", !this._model?.enableImages), ot(this._configuration.rows, "inputConfiguration.video.disabled", !0), ot(this._configuration.rows, "inputConfiguration.audio.disabled", !0)), this._render();
44242
44350
  }
44243
44351
  onModelChanged(e) {
44244
- this._model = e, R$("[onModelChanged]: ", this._model), this._render(), this.dispatchEvent(new M$(this._model));
44352
+ this._model = e, q$("[onModelChanged]: ", this._model), this._render(), this.dispatchEvent(new V$(this._model));
44245
44353
  }
44246
44354
  onConfigurationChanged(e) {
44247
44355
  this._configuration = e, this._render();
44248
44356
  }
44249
44357
  insertImage(e) {
44250
- this.dispatchEvent(new P$(e));
44358
+ this.dispatchEvent(new U$(e));
44251
44359
  }
44252
44360
  onDeleteImage(e, t) {
44253
- this.dispatchEvent(new N$(e, t));
44361
+ this.dispatchEvent(new H$(e, t));
44254
44362
  }
44255
44363
  insertSound(e) {
44256
- this.dispatchEvent(new I$(e));
44364
+ this.dispatchEvent(new G$(e));
44257
44365
  }
44258
44366
  onDeleteSound(e, t) {
44259
- this.dispatchEvent(new F$(e, t));
44367
+ this.dispatchEvent(new W$(e, t));
44260
44368
  }
44261
44369
  _render() {
44262
44370
  if (this._model) {
44263
- let e = N.createElement(j$, {
44371
+ let e = N.createElement(B$, {
44264
44372
  onModelChanged: this.onModelChanged.bind(this),
44265
44373
  onConfigurationChanged: this.onConfigurationChanged.bind(this),
44266
44374
  model: this._model,
@@ -44285,6 +44393,6 @@ var p$ = (0, cc.default)("pie-elements:match:configure"), m$ = k("div")(({ theme
44285
44393
  }
44286
44394
  };
44287
44395
  //#endregion
44288
- export { z$ as default };
44396
+ export { J$ as default };
44289
44397
 
44290
44398
  //# sourceMappingURL=index.js.map