@pie-element/math-inline 12.1.1-next.17 → 12.1.1-next.19

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 { _ as e, a as t, d as n, i as r, m as i, n as a, o, p as s, r as c, s as l, t as u, u as d, y as f } from "../dist--pvq7WNe.js";
2
- import { $ as p, A as m, B as h, Ct as g, D as _, Dt as v, E as y, Et as b, F as x, G as S, H as C, I as w, J as T, K as E, N as ee, O as D, Ot as te, P as ne, Q as re, R as O, St as k, Tt as ie, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _t as de, a as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as A, et as j, g as ye, gt as be, h as xe, ht as Se, i as Ce, it as we, j as Te, k as Ee, l as De, lt as Oe, m as ke, mt as M, n as Ae, nt as je, o as Me, ot as Ne, p as Pe, pt as Fe, q as N, r as Ie, rt as Le, s as Re, st as ze, t as Be, tt as Ve, u as He, v as Ue, vt as We, wt as P, x as Ge, xt as Ke, y as qe, yt as Je, z as Ye } from "../dist-D8taXDhz.js";
2
+ import { $ as p, A as m, B as h, Ct as g, D as _, Dt as v, E as y, Et as b, F as x, G as S, H as C, I as w, J as T, K as E, N as ee, O as D, Ot as te, P as ne, Q as re, R as O, St as k, Tt as ie, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _t as de, a as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as A, et as j, g as ye, gt as be, h as xe, ht as Se, i as Ce, it as we, j as Te, k as Ee, l as De, lt as Oe, m as ke, mt as M, n as Ae, nt as je, o as Me, ot as Ne, p as Pe, pt as Fe, q as N, r as Ie, rt as Le, s as Re, st as ze, t as Be, tt as Ve, u as He, v as Ue, vt as We, wt as P, x as Ge, xt as Ke, y as qe, yt as Je, z as Ye } from "../dist--1is1n1O.js";
3
3
  import * as F from "react";
4
4
  import I, { Component as Xe, createContext as Ze, createElement as Qe, createRef as $e, forwardRef as et, memo as tt, useCallback as nt, useContext as rt, useDebugValue as it, useEffect as L, useLayoutEffect as at, useMemo as ot, useRef as st, useState as ct, version as lt } from "react";
5
5
  import { createRoot as ut } from "react-dom/client";
@@ -32586,8 +32586,8 @@ X.create({
32586
32586
  })) ?? null };
32587
32587
  }
32588
32588
  });
32589
- var Mz = "placeholder", Nz = new q("tiptap__placeholder"), Pz = 200;
32590
- function Fz(e) {
32589
+ var Mz = "placeholder", Nz = new q("tiptap__placeholder");
32590
+ function Pz(e) {
32591
32591
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
32592
32592
  return o && u.push(l), tm.node(i, i + a.nodeSize, {
32593
32593
  class: u.join(" "),
@@ -32599,156 +32599,198 @@ function Fz(e) {
32599
32599
  }) : n
32600
32600
  });
32601
32601
  }
32602
- function Iz({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
32602
+ function Fz(e, t) {
32603
+ return typeof e == "function" ? e(t) : e;
32604
+ }
32605
+ function Iz({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
32606
+ let { anchor: s } = i, c = [], l = e.isEmpty;
32607
+ return r.nodesBetween(a, o, (r, i) => {
32608
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && o_(r);
32609
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(Pz({
32610
+ editor: e,
32611
+ isEmptyDoc: l,
32612
+ dataAttribute: n,
32613
+ hasAnchor: a,
32614
+ placeholder: t.placeholder,
32615
+ classes: {
32616
+ emptyEditor: t.emptyEditorClass,
32617
+ emptyNode: Fz(t.emptyNodeClass, {
32618
+ editor: e,
32619
+ node: r,
32620
+ pos: i,
32621
+ hasAnchor: a
32622
+ })
32623
+ },
32624
+ node: r,
32625
+ pos: i
32626
+ })), t.includeChildren;
32627
+ }), c;
32628
+ }
32629
+ function Lz({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
32603
32630
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
32604
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
32605
- emptyEditor: t.emptyEditorClass,
32606
- emptyNode: t.emptyNodeClass
32607
- };
32631
+ let { anchor: a } = i, o = [], s = e.isEmpty;
32608
32632
  if (t.showOnlyCurrent && !t.includeChildren) {
32609
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
32610
- if (l && l.type.isTextblock && o_(l)) {
32611
- let r = a >= u && a <= u + l.nodeSize;
32612
- o.push(Fz({
32633
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
32634
+ if (c && c.type.isTextblock && o_(c)) {
32635
+ let r = a >= l && a <= l + c.nodeSize;
32636
+ o.push(Pz({
32613
32637
  editor: e,
32614
32638
  isEmptyDoc: s,
32615
32639
  dataAttribute: n,
32616
32640
  hasAnchor: r,
32617
32641
  placeholder: t.placeholder,
32618
- classes: c,
32619
- node: l,
32620
- pos: u
32642
+ classes: {
32643
+ emptyEditor: t.emptyEditorClass,
32644
+ emptyNode: Fz(t.emptyNodeClass, {
32645
+ editor: e,
32646
+ node: c,
32647
+ pos: l,
32648
+ hasAnchor: r
32649
+ })
32650
+ },
32651
+ node: c,
32652
+ pos: l
32621
32653
  }));
32622
32654
  }
32623
- } else {
32624
- let i = Nz.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
32625
- r.nodesBetween(l, u, (r, i) => {
32626
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && o_(r);
32627
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(Fz({
32628
- editor: e,
32629
- isEmptyDoc: s,
32630
- dataAttribute: n,
32631
- hasAnchor: l,
32632
- placeholder: t.placeholder,
32633
- classes: c,
32634
- node: r,
32635
- pos: i
32636
- })), t.includeChildren;
32637
- });
32638
- }
32655
+ } else o.push(...Iz({
32656
+ editor: e,
32657
+ options: t,
32658
+ dataAttribute: n,
32659
+ doc: r,
32660
+ selection: i,
32661
+ from: 0,
32662
+ to: r.content.size
32663
+ }));
32639
32664
  return im.create(r, o);
32640
32665
  }
32641
- function Lz(e) {
32642
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
32666
+ function Rz(e, t) {
32667
+ let n = e.resolve(t);
32668
+ if (n.depth === 0) {
32669
+ let e = n.nodeAfter ?? n.nodeBefore;
32670
+ if (!e) return {
32671
+ from: t,
32672
+ to: t
32673
+ };
32674
+ let r = n.nodeAfter ? t : t - e.nodeSize;
32675
+ return {
32676
+ from: r,
32677
+ to: r + e.nodeSize
32678
+ };
32679
+ }
32680
+ let r = n.before(1);
32681
+ return {
32682
+ from: r,
32683
+ to: r + n.node(1).nodeSize
32684
+ };
32643
32685
  }
32644
- function Rz(e) {
32645
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
32646
- return /auto|scroll|overlay/.test(n);
32686
+ function zz(e, t) {
32687
+ return {
32688
+ from: Math.max(0, t.from - 1),
32689
+ to: Math.min(e.content.size, t.to - 1)
32690
+ };
32647
32691
  }
32648
- function zz(e) {
32649
- let t = e;
32650
- for (; t;) {
32651
- if (Rz(t)) return t;
32652
- let e = t.parentElement;
32653
- if (!e) {
32654
- let e = t.getRootNode();
32655
- if (e instanceof ShadowRoot) {
32656
- t = e.host;
32657
- continue;
32658
- }
32659
- return window;
32660
- }
32661
- t = e;
32692
+ function Bz(e, t, n) {
32693
+ let r = [];
32694
+ return e.forEach((e, i) => {
32695
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
32696
+ s < n && c > t && r.push({
32697
+ from: a,
32698
+ to: o
32699
+ });
32700
+ }), r;
32701
+ }
32702
+ function Vz(e) {
32703
+ if (e.length === 0) return [];
32704
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
32705
+ for (let e = 1; e < t.length; e += 1) {
32706
+ let r = n[n.length - 1], i = t[e];
32707
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
32662
32708
  }
32663
- return window;
32709
+ return n;
32664
32710
  }
32665
- function Bz(e) {
32666
- return e === window ? {
32667
- top: 0,
32668
- bottom: window.innerHeight
32669
- } : e.getBoundingClientRect();
32711
+ function Hz(e, t) {
32712
+ let n = Bz(e, t.from, t.to);
32713
+ return n.push(zz(e, Rz(e, t.from))), t.to > t.from ? n.push(zz(e, Rz(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(zz(e, Rz(e, Math.min(t.from + 1, e.content.size)))), n;
32670
32714
  }
32671
- function Vz({ doc: e, view: t, scrollContainer: n }) {
32672
- let r = t.dom.getBoundingClientRect(), i = n ? Bz(n) : {
32673
- top: 0,
32674
- bottom: window.innerHeight
32675
- }, a = Math.max(r.top, i.top) - Pz, o = Math.min(r.bottom, i.bottom) + Pz;
32676
- if (a >= o) return {
32677
- top: 0,
32678
- bottom: e.content.size
32679
- };
32680
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
32681
- left: s,
32682
- top: a + 2
32683
- }), l = t.posAtCoords({
32684
- left: s,
32685
- top: o - 2
32686
- });
32715
+ function Uz(e, t, n) {
32716
+ let r = [];
32717
+ if (e.docChanged) {
32718
+ let t = Yg(e);
32719
+ for (let e of t) r.push(...Hz(n.doc, e.newRange));
32720
+ }
32721
+ return e.selectionSet && (r.push(zz(n.doc, Rz(n.doc, e.mapping.map(t.selection.anchor)))), r.push(zz(n.doc, Rz(n.doc, n.selection.anchor)))), Vz(r);
32722
+ }
32723
+ function Wz(e, t, n) {
32724
+ let r = Math.max(0, Math.min(e, n.content.size));
32687
32725
  return {
32688
- top: c ? c.pos : 0,
32689
- bottom: l ? l.pos : e.content.size
32726
+ from: r,
32727
+ to: Math.max(r, Math.min(t, n.content.size))
32690
32728
  };
32691
32729
  }
32692
- var Hz = {
32693
- init() {
32694
- return {
32695
- topPos: null,
32696
- bottomPos: null
32697
- };
32698
- },
32699
- apply(e, t) {
32700
- let n = e.getMeta(Nz);
32701
- return n?.positions ? {
32702
- topPos: n.positions.top,
32703
- bottomPos: n.positions.bottom
32704
- } : e.docChanged ? {
32705
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
32706
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
32707
- } : t;
32730
+ function Gz({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
32731
+ let s = e;
32732
+ for (let e of t) {
32733
+ let { from: t, to: c } = Wz(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
32734
+ l.length && (s = s.remove(l));
32735
+ let u = Iz({
32736
+ editor: n,
32737
+ options: r,
32738
+ dataAttribute: i,
32739
+ doc: a,
32740
+ selection: o,
32741
+ from: t,
32742
+ to: c
32743
+ });
32744
+ u.length && (s = s.add(a, u));
32708
32745
  }
32709
- };
32710
- function Uz(e) {
32711
- let t = zz(e.dom), n = () => {
32712
- let n = Vz({
32713
- view: e,
32714
- doc: e.state.doc,
32715
- scrollContainer: t
32716
- }), r = Nz.getState(e.state);
32717
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
32718
- let i = e.state.tr.setMeta(Nz, { positions: n });
32719
- e.dispatch(i);
32720
- }, r = null, i = 0, a = () => {
32721
- r === null && (r = requestAnimationFrame(() => {
32722
- r = null;
32723
- let e = performance.now();
32724
- e - i >= 150 ? (i = e, n()) : a();
32725
- }));
32726
- };
32727
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
32728
- update(t, n) {
32729
- e.state.doc.content.size !== n.doc.content.size && a();
32746
+ return s;
32747
+ }
32748
+ function Kz({ editor: e, options: t, dataAttribute: n }) {
32749
+ return {
32750
+ init(r, i) {
32751
+ return Lz({
32752
+ editor: e,
32753
+ options: t,
32754
+ dataAttribute: n,
32755
+ doc: i.doc,
32756
+ selection: i.selection
32757
+ }) ?? im.empty;
32730
32758
  },
32731
- destroy: () => {
32732
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
32759
+ apply(r, i, a, o) {
32760
+ return !r.docChanged && !r.selectionSet ? i : Gz({
32761
+ decorations: i.map(r.mapping, r.doc),
32762
+ ranges: Uz(r, a, o),
32763
+ editor: e,
32764
+ options: t,
32765
+ dataAttribute: n,
32766
+ doc: o.doc,
32767
+ selection: o.selection
32768
+ });
32733
32769
  }
32734
32770
  };
32735
32771
  }
32736
- function Wz({ editor: e, options: t }) {
32737
- let n = t.dataAttribute ? `data-${Lz(t.dataAttribute)}` : `data-${Mz}`;
32772
+ function qz(e) {
32773
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
32774
+ }
32775
+ function Jz({ editor: e, options: t }) {
32776
+ let n = t.dataAttribute ? `data-${qz(t.dataAttribute)}` : `data-${Mz}`, r = t.showOnlyCurrent && !t.includeChildren;
32738
32777
  return new K({
32739
32778
  key: Nz,
32740
- state: Hz,
32741
- view: Uz,
32742
- props: { decorations: ({ doc: r, selection: i }) => Iz({
32779
+ ...r ? {} : { state: Kz({
32780
+ editor: e,
32781
+ options: t,
32782
+ dataAttribute: n
32783
+ }) },
32784
+ props: { decorations: r ? ({ doc: r, selection: i }) => Lz({
32743
32785
  editor: e,
32744
32786
  options: t,
32745
32787
  dataAttribute: n,
32746
32788
  doc: r,
32747
32789
  selection: i
32748
- }) }
32790
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? im.empty : Nz.getState(n) ?? im.empty }
32749
32791
  });
32750
32792
  }
32751
- var Gz = X.create({
32793
+ var Yz = X.create({
32752
32794
  name: "placeholder",
32753
32795
  addOptions() {
32754
32796
  return {
@@ -32762,12 +32804,25 @@ var Gz = X.create({
32762
32804
  };
32763
32805
  },
32764
32806
  addProseMirrorPlugins() {
32765
- return [Wz({
32807
+ return [Jz({
32766
32808
  editor: this.editor,
32767
32809
  options: this.options
32768
32810
  })];
32769
32811
  }
32770
32812
  });
32813
+ function Xz(e, t) {
32814
+ return !e.selection.empty && !s_(e.selection) && t.isEditable;
32815
+ }
32816
+ function Zz(e, t) {
32817
+ return Xz(e, t) && !t.isFocused && !t.view.dragging;
32818
+ }
32819
+ function Qz() {
32820
+ var e;
32821
+ (e = window.getSelection()) == null || e.removeAllRanges();
32822
+ }
32823
+ function $z(e) {
32824
+ e.focus();
32825
+ }
32771
32826
  X.create({
32772
32827
  name: "selection",
32773
32828
  addOptions() {
@@ -32777,13 +32832,25 @@ X.create({
32777
32832
  let { editor: e, options: t } = this;
32778
32833
  return [new K({
32779
32834
  key: new q("selection"),
32780
- props: { decorations(n) {
32781
- return n.selection.empty || e.isFocused || !e.isEditable || s_(n.selection) || e.view.dragging ? null : im.create(n.doc, [tm.inline(n.selection.from, n.selection.to, { class: t.className })]);
32782
- } }
32835
+ props: {
32836
+ decorations(n) {
32837
+ return Zz(n, e) ? im.create(n.doc, [tm.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
32838
+ },
32839
+ handleDOMEvents: {
32840
+ blur(t) {
32841
+ return Xz(t.state, e) && Qz(), !1;
32842
+ },
32843
+ focus(t) {
32844
+ return Xz(t.state, e) && requestAnimationFrame(() => {
32845
+ !e.isDestroyed && t.hasFocus() && $z(t);
32846
+ }), !1;
32847
+ }
32848
+ }
32849
+ }
32783
32850
  })];
32784
32851
  }
32785
32852
  });
32786
- function Kz({ types: e, node: t }) {
32853
+ function eB({ types: e, node: t }) {
32787
32854
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
32788
32855
  }
32789
32856
  X.create({
@@ -32805,7 +32872,7 @@ X.create({
32805
32872
  state: {
32806
32873
  init: (e, t) => {
32807
32874
  let r = t.tr.doc.lastChild;
32808
- return !Kz({
32875
+ return !eB({
32809
32876
  node: r,
32810
32877
  types: n
32811
32878
  });
@@ -32813,7 +32880,7 @@ X.create({
32813
32880
  apply: (e, t) => {
32814
32881
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
32815
32882
  let r = e.doc.lastChild;
32816
- return !Kz({
32883
+ return !eB({
32817
32884
  node: r,
32818
32885
  types: n
32819
32886
  });
@@ -32848,7 +32915,7 @@ X.create({
32848
32915
  };
32849
32916
  }
32850
32917
  });
32851
- var qz = W_.create({
32918
+ var tB = W_.create({
32852
32919
  name: "superscript",
32853
32920
  addOptions() {
32854
32921
  return { HTMLAttributes: {} };
@@ -32878,7 +32945,7 @@ var qz = W_.create({
32878
32945
  addKeyboardShortcuts() {
32879
32946
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
32880
32947
  }
32881
- }), Jz = W_.create({
32948
+ }), nB = W_.create({
32882
32949
  name: "subscript",
32883
32950
  addOptions() {
32884
32951
  return { HTMLAttributes: {} };
@@ -32908,7 +32975,7 @@ var qz = W_.create({
32908
32975
  addKeyboardShortcuts() {
32909
32976
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
32910
32977
  }
32911
- }), Yz = X.create({
32978
+ }), rB = X.create({
32912
32979
  name: "textAlign",
32913
32980
  addOptions() {
32914
32981
  return {
@@ -32950,7 +33017,7 @@ var qz = W_.create({
32950
33017
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
32951
33018
  };
32952
33019
  }
32953
- }), Xz = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Zz = Dv.create({
33020
+ }), iB = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, aB = Dv.create({
32954
33021
  name: "image",
32955
33022
  addOptions() {
32956
33023
  return {
@@ -32993,34 +33060,55 @@ var qz = W_.create({
32993
33060
  },
32994
33061
  addNodeView() {
32995
33062
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
32996
- let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize;
32997
- return ({ node: i, getPos: a, HTMLAttributes: o, editor: s }) => {
32998
- let c = document.createElement("img");
32999
- Object.entries(o).forEach(([e, t]) => {
33063
+ let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
33064
+ "src",
33065
+ "width",
33066
+ "height"
33067
+ ]);
33068
+ return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
33069
+ let l = document.createElement("img");
33070
+ l.draggable = !1;
33071
+ let u = Mg(this.options.HTMLAttributes, s);
33072
+ Object.entries(u).forEach(([e, t]) => {
33000
33073
  if (t != null) switch (e) {
33074
+ case "src":
33001
33075
  case "width":
33002
33076
  case "height": break;
33003
- default:
33004
- c.setAttribute(e, t);
33005
- break;
33077
+ default: l.setAttribute(e, t);
33006
33078
  }
33007
- }), c.src = o.src;
33008
- let l = new gv({
33009
- element: c,
33010
- editor: s,
33011
- node: i,
33012
- getPos: a,
33079
+ }), u.src !== null && (l.src = u.src);
33080
+ let d = { ...s }, f = (e) => {
33081
+ if (typeof e == "string" && e !== "") {
33082
+ l.getAttribute("src") !== e && (l.src = e);
33083
+ return;
33084
+ }
33085
+ l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
33086
+ };
33087
+ f(s.src);
33088
+ let p = new gv({
33089
+ element: l,
33090
+ editor: c,
33091
+ node: a,
33092
+ getPos: o,
33013
33093
  onResize: (e, t) => {
33014
- c.style.width = `${e}px`, c.style.height = `${t}px`;
33094
+ l.style.width = `${e}px`, l.style.height = `${t}px`;
33015
33095
  },
33016
33096
  onCommit: (e, t) => {
33017
- let n = a();
33097
+ let n = o();
33018
33098
  n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
33019
33099
  width: e,
33020
33100
  height: t
33021
33101
  }).run();
33022
33102
  },
33023
- onUpdate: (e, t, n) => e.type === i.type,
33103
+ onUpdate: (e) => {
33104
+ if (e.type !== a.type) return !1;
33105
+ let t = Ng(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
33106
+ return Object.keys(d).forEach((e) => {
33107
+ !i.has(e) && !(e in t) && l.removeAttribute(e);
33108
+ }), Object.entries(t).forEach(([e, t]) => {
33109
+ i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
33110
+ }), f(t.src), d = t, !0;
33111
+ },
33024
33112
  options: {
33025
33113
  directions: e,
33026
33114
  min: {
@@ -33029,10 +33117,10 @@ var qz = W_.create({
33029
33117
  },
33030
33118
  preserveAspectRatio: r === !0
33031
33119
  }
33032
- }), u = l.dom;
33033
- return u.style.visibility = "hidden", u.style.pointerEvents = "none", c.onload = () => {
33034
- u.style.visibility = "", u.style.pointerEvents = "";
33035
- }, l;
33120
+ }), m = p.dom, h = () => {
33121
+ m.style.visibility = "", m.style.pointerEvents = "";
33122
+ };
33123
+ return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
33036
33124
  };
33037
33125
  },
33038
33126
  addCommands() {
@@ -33043,7 +33131,7 @@ var qz = W_.create({
33043
33131
  },
33044
33132
  addInputRules() {
33045
33133
  return [pv({
33046
- find: Xz,
33134
+ find: iB,
33047
33135
  type: this.type,
33048
33136
  getAttributes: (e) => {
33049
33137
  let [, , t, n, r] = e;
@@ -33055,17 +33143,17 @@ var qz = W_.create({
33055
33143
  }
33056
33144
  })];
33057
33145
  }
33058
- }), Qz = Gz, $z = {
33146
+ }), oB = Yz, sB = {
33059
33147
  position: "bottom",
33060
33148
  alignment: "left",
33061
33149
  alwaysVisible: !1,
33062
33150
  showDone: !0,
33063
33151
  doneOn: "blur"
33064
- }, eB = {
33152
+ }, cB = {
33065
33153
  options: {},
33066
33154
  respAreaToolbar: () => {},
33067
33155
  onHandleAreaChange: () => {}
33068
- }, tB = [
33156
+ }, lB = [
33069
33157
  "bold",
33070
33158
  "italic",
33071
33159
  "underline",
@@ -33087,7 +33175,7 @@ var qz = W_.create({
33087
33175
  "h3",
33088
33176
  "undo",
33089
33177
  "redo"
33090
- ], nB = {
33178
+ ], uB = {
33091
33179
  "--white": "#fff",
33092
33180
  "--black": "#2e2b29",
33093
33181
  "--black-contrast": "#110f0e",
@@ -33106,14 +33194,18 @@ var qz = W_.create({
33106
33194
  "--red": "#ff5c33",
33107
33195
  "--red-light": "#ffebe5",
33108
33196
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
33109
- }, rB = (e) => {
33197
+ }, dB = (e) => ({
33198
+ spellcheck: e ? "true" : "false",
33199
+ autocorrect: e ? "on" : "off",
33200
+ autocapitalize: e ? "on" : "off"
33201
+ }), fB = (e) => {
33110
33202
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = ct([]), [a, o] = ct(!1), { toolbarOpts: s } = e, c = nt((e) => {
33111
33203
  i((t) => {
33112
33204
  let n = t.filter((t) => t.pos !== e);
33113
33205
  return n.length === 0 && o(!1), n;
33114
33206
  });
33115
33207
  }, [i]), u = {
33116
- ...$z,
33208
+ ...sB,
33117
33209
  ...s
33118
33210
  }, d = nt((t) => {
33119
33211
  let n = t.getHTML();
@@ -33124,13 +33216,13 @@ var qz = W_.create({
33124
33216
  e.onDone,
33125
33217
  u.doneOn
33126
33218
  ]), f = ot(() => ({
33127
- ...eB,
33219
+ ...cB,
33128
33220
  ...e.responseAreaProps,
33129
33221
  onInlineDropdownToolbarClose: d
33130
33222
  }), [e.responseAreaProps, d]), p = ot(() => {
33131
33223
  let { customPlugins: t, ...n } = e.pluginProps || {};
33132
33224
  t ||= [];
33133
- let r = (e.activePlugins || tB)?.filter((e) => {
33225
+ let r = (e.activePlugins || lB)?.filter((e) => {
33134
33226
  let t = Xi[e] || e, r = n[t] || {};
33135
33227
  return !r || !r.disabled;
33136
33228
  });
@@ -33148,103 +33240,112 @@ var qz = W_.create({
33148
33240
  setKeypadInteraction: {},
33149
33241
  media: {}
33150
33242
  });
33151
- }, [e, f.type]), m = ME({
33152
- extensions: [
33153
- Yz.configure({
33154
- types: [
33155
- "heading",
33156
- "paragraph",
33157
- "div",
33158
- "headingParagraph",
33159
- "h1",
33160
- "h2",
33161
- "h3",
33162
- "h4",
33163
- "h5",
33164
- "h6",
33165
- "td",
33166
- "th"
33167
- ],
33168
- alignments: [
33169
- "left",
33170
- "right",
33171
- "center",
33172
- "justify"
33173
- ]
33174
- }),
33175
- Az,
33176
- jz.configure({ limit: e.charactersLimit || 1e6 }),
33177
- bz.configure({ trailingNode: {
33243
+ }, [e, f.type]), m = [
33244
+ rB.configure({
33245
+ types: [
33246
+ "heading",
33247
+ "paragraph",
33248
+ "div",
33249
+ "headingParagraph",
33250
+ "h1",
33251
+ "h2",
33252
+ "h3",
33253
+ "h4",
33254
+ "h5",
33255
+ "h6",
33256
+ "td",
33257
+ "th"
33258
+ ],
33259
+ alignments: [
33260
+ "left",
33261
+ "right",
33262
+ "center",
33263
+ "justify"
33264
+ ]
33265
+ }),
33266
+ Az,
33267
+ jz.configure({ limit: e.charactersLimit || 1e6 }),
33268
+ bz.configure({
33269
+ trailingNode: {
33178
33270
  node: "paragraph",
33179
33271
  notAfter: ["paragraph", "div"]
33180
- } }),
33181
- TA,
33182
- aT,
33183
- EA,
33184
- oT,
33185
- sT,
33186
- Qz.configure({
33187
- placeholder: e.placeholder,
33188
- showOnlyWhenEditable: !0,
33189
- showOnlyCurrent: !1,
33190
- includeChildren: !0
33191
- }),
33192
- tT,
33193
- zw,
33194
- iT,
33195
- rT,
33196
- BO.configure(f),
33197
- VO.configure(f),
33198
- UO.configure(f),
33199
- WO.configure(f),
33200
- HO.configure(f),
33201
- XO.configure({
33202
- toolbarOpts: u,
33203
- math: e.pluginProps?.math || {}
33204
- }),
33205
- Jz,
33206
- qz,
33207
- Zz,
33208
- _k.configure({
33209
- toolbarOpts: u,
33210
- imageHandling: {
33211
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
33212
- onDone: (t) => e.onDone?.(t.getHTML()),
33213
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
33214
- let { src: n } = t.attrs;
33215
- e.imageSupport.delete(n, (e) => {
33216
- c(t.pos);
33217
- });
33218
- }),
33219
- insertImageRequested: e.imageSupport && ((t, n, r) => {
33220
- let [o, s] = n, u = (n) => {
33221
- let r;
33222
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
33223
- };
33224
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
33225
- let n = r(u), i = l(() => {
33226
- let e = () => window.removeEventListener("focus", i);
33227
- if (!t._insertingImage) {
33228
- e();
33229
- return;
33230
- }
33231
- c(s), t._insertingImage = !1, e();
33232
- }, 500);
33233
- window.addEventListener("focus", i), e.imageSupport.add(n);
33234
- })();
33235
- }),
33236
- maxImageWidth: e.maxImageWidth,
33237
- maxImageHeight: e.maxImageHeight
33238
- },
33239
- limit: 3
33240
- }),
33241
- Rk.configure({ uploadSoundSupport: e.uploadSoundSupport }),
33242
- Wk.configure({ extraCSSRules: e.extraCSSRules })
33243
- ],
33272
+ },
33273
+ link: {
33274
+ autolink: !1,
33275
+ linkOnPaste: !1
33276
+ }
33277
+ }),
33278
+ TA,
33279
+ aT,
33280
+ EA,
33281
+ oT,
33282
+ sT,
33283
+ oB.configure({
33284
+ placeholder: e.placeholder,
33285
+ showOnlyWhenEditable: !0,
33286
+ showOnlyCurrent: !1,
33287
+ includeChildren: !0
33288
+ }),
33289
+ tT,
33290
+ zw,
33291
+ iT,
33292
+ rT,
33293
+ BO.configure(f),
33294
+ VO.configure(f),
33295
+ UO.configure(f),
33296
+ WO.configure(f),
33297
+ HO.configure(f),
33298
+ XO.configure({
33299
+ toolbarOpts: u,
33300
+ math: e.pluginProps?.math || {}
33301
+ }),
33302
+ nB,
33303
+ tB,
33304
+ aB,
33305
+ _k.configure({
33306
+ toolbarOpts: u,
33307
+ imageHandling: {
33308
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
33309
+ onDone: (t) => e.onDone?.(t.getHTML()),
33310
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
33311
+ let { src: n } = t.attrs;
33312
+ e.imageSupport.delete(n, (e) => {
33313
+ c(t.pos);
33314
+ });
33315
+ }),
33316
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
33317
+ let [o, s] = n, u = (n) => {
33318
+ let r;
33319
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
33320
+ };
33321
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
33322
+ let n = r(u), i = l(() => {
33323
+ let e = () => window.removeEventListener("focus", i);
33324
+ if (!t._insertingImage) {
33325
+ e();
33326
+ return;
33327
+ }
33328
+ c(s), t._insertingImage = !1, e();
33329
+ }, 500);
33330
+ window.addEventListener("focus", i), e.imageSupport.add(n);
33331
+ })();
33332
+ }),
33333
+ maxImageWidth: e.maxImageWidth,
33334
+ maxImageHeight: e.maxImageHeight
33335
+ },
33336
+ limit: 3
33337
+ }),
33338
+ Rk.configure({ uploadSoundSupport: e.uploadSoundSupport }),
33339
+ Wk.configure({ extraCSSRules: e.extraCSSRules })
33340
+ ], h = e.spellCheck !== !1, g = ME({
33341
+ extensions: m,
33244
33342
  immediatelyRender: !1,
33245
- editorProps: { handleKeyDown(t, n) {
33246
- return e.onKeyDown ? e.onKeyDown(n) : !1;
33247
- } },
33343
+ editorProps: {
33344
+ attributes: dB(h),
33345
+ handleKeyDown(t, n) {
33346
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
33347
+ }
33348
+ },
33248
33349
  editable: !e.disabled,
33249
33350
  content: ta(e.markup),
33250
33351
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -33255,22 +33356,29 @@ var qz = W_.create({
33255
33356
  }
33256
33357
  }, [e.charactersLimit]);
33257
33358
  L(() => {
33258
- e.editorRef && e.editorRef(m);
33259
- }, [e.editorRef, m]), L(() => {
33260
- m?.setEditable(!e.disabled);
33261
- }, [e.disabled, m]), L(() => {
33262
- if (!m) return;
33359
+ e.editorRef && e.editorRef(g);
33360
+ }, [e.editorRef, g]), L(() => {
33361
+ g?.setEditable(!e.disabled);
33362
+ }, [e.disabled, g]), L(() => {
33363
+ if (!g) return;
33364
+ let e = g.options?.editorProps, t = dB(h);
33365
+ e?.attributes?.spellcheck !== t.spellcheck && g.setOptions({ editorProps: {
33366
+ ...e,
33367
+ attributes: t
33368
+ } });
33369
+ }, [h, g]), L(() => {
33370
+ if (!g) return;
33263
33371
  let t = ta(e.markup);
33264
- t !== m.getHTML() && m.commands.setContent(t, { emitUpdate: !1 });
33265
- }, [e.markup, m]), L(() => {
33266
- Object.entries(nB).forEach(([e, t]) => {
33372
+ t !== g.getHTML() && g.commands.setContent(t, { emitUpdate: !1 });
33373
+ }, [e.markup, g]), L(() => {
33374
+ Object.entries(uB).forEach(([e, t]) => {
33267
33375
  document.documentElement.style.setProperty(e, t);
33268
33376
  });
33269
33377
  }, []);
33270
- let h = OE({
33271
- editor: m,
33378
+ let _ = OE({
33379
+ editor: g,
33272
33380
  selector: (e) => ({ isFocused: e.editor?.isFocused })
33273
- }), g = ot(() => {
33381
+ }), v = ot(() => {
33274
33382
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
33275
33383
  return {
33276
33384
  width: DA(n),
@@ -33285,20 +33393,20 @@ var qz = W_.create({
33285
33393
  ...e,
33286
33394
  activePlugins: p,
33287
33395
  toolbarOpts: u,
33288
- editorState: h,
33289
- editor: m,
33290
- children: m && /* @__PURE__ */ R(iB, {
33396
+ editorState: _,
33397
+ editor: g,
33398
+ children: g && /* @__PURE__ */ R(pB, {
33291
33399
  style: {
33292
- minHeight: g.minHeight,
33293
- height: g.height,
33294
- maxHeight: g.maxHeight
33400
+ minHeight: v.minHeight,
33401
+ height: v.height,
33402
+ maxHeight: v.maxHeight
33295
33403
  },
33296
33404
  showParagraph: t && !t.disabled,
33297
33405
  separateParagraph: n && !n.disabled,
33298
- editor: m
33406
+ editor: g
33299
33407
  })
33300
33408
  });
33301
- }, iB = M(TE, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
33409
+ }, pB = M(TE, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
33302
33410
  display: "flex",
33303
33411
  outline: "none !important",
33304
33412
  "& .ProseMirror": {
@@ -33326,26 +33434,26 @@ var qz = W_.create({
33326
33434
  } },
33327
33435
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
33328
33436
  }
33329
- })), aB = rB;
33437
+ })), mB = fB;
33330
33438
  //#endregion
33331
33439
  //#region ../../lib-react/config-ui/dist/feedback-config/feedback-selector.js
33332
- function oB(e) {
33440
+ function hB(e) {
33333
33441
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
33334
33442
  }
33335
- function sB(e, t) {
33336
- return !e || oB(e) ? e : oB(e.default) ? e.default : t && oB(e[t]) ? e[t] : t && oB(e[t]?.default) ? e[t].default : e;
33443
+ function gB(e, t) {
33444
+ return !e || hB(e) ? e : hB(e.default) ? e.default : t && hB(e[t]) ? e[t] : t && hB(e[t]?.default) ? e[t].default : e;
33337
33445
  }
33338
- var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB = Ue, uB = lB.default, dB = uB && typeof uB == "object" ? uB : lB, fB = M(aB)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), pB = {
33446
+ var _B = gB(y, "InputContainer") || gB(bB.InputContainer, "InputContainer"), vB = Ue, yB = vB.default, bB = yB && typeof yB == "object" ? yB : vB, xB = M(mB)(({ theme: e }) => ({ fontFamily: e.typography.fontFamily })), SB = {
33339
33447
  default: "Simple Feedback",
33340
33448
  none: "No Feedback",
33341
33449
  custom: "Customized Feedback"
33342
- }, mB = M("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), hB = M(cB)(() => ({ paddingBottom: 0 })), gB = M("div")(({ theme: e }) => ({
33450
+ }, CB = M("div")(({ theme: e }) => ({ marginBottom: e.spacing(1) })), wB = M(_B)(() => ({ paddingBottom: 0 })), TB = M("div")(({ theme: e }) => ({
33343
33451
  marginTop: "0px",
33344
33452
  background: A.backgroundDark(),
33345
33453
  padding: 0,
33346
33454
  marginBottom: e.spacing(2),
33347
33455
  borderRadius: "4px"
33348
- })), _B = M("div")(({ theme: e }) => ({
33456
+ })), EB = M("div")(({ theme: e }) => ({
33349
33457
  marginTop: "0px",
33350
33458
  background: A.backgroundDark(),
33351
33459
  padding: e.spacing(2),
@@ -33353,7 +33461,7 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33353
33461
  borderRadius: "4px",
33354
33462
  fontFamily: e.typography.fontFamily,
33355
33463
  cursor: "default"
33356
- })), vB = M(qi)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), yB = {
33464
+ })), DB = M(qi)(({ theme: e }) => ({ paddingTop: e.spacing(1) })), OB = {
33357
33465
  type: B.default.oneOf([
33358
33466
  "default",
33359
33467
  "custom",
@@ -33361,11 +33469,11 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33361
33469
  ]),
33362
33470
  default: B.default.string,
33363
33471
  custom: B.default.string
33364
- }, bB = class extends I.Component {
33472
+ }, kB = class extends I.Component {
33365
33473
  static propTypes = {
33366
33474
  keys: B.default.arrayOf(B.default.string),
33367
33475
  label: B.default.string.isRequired,
33368
- feedback: B.default.shape(yB).isRequired,
33476
+ feedback: B.default.shape(OB).isRequired,
33369
33477
  onChange: B.default.func.isRequired,
33370
33478
  toolbarOpts: B.default.object,
33371
33479
  mathMlOptions: B.default.object
@@ -33387,36 +33495,36 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33387
33495
  };
33388
33496
  render() {
33389
33497
  let { keys: e, label: t, feedback: n, toolbarOpts: r, mathMlOptions: i = {} } = this.props;
33390
- return /* @__PURE__ */ z(mB, { children: [
33391
- /* @__PURE__ */ R(hB, {
33498
+ return /* @__PURE__ */ z(CB, { children: [
33499
+ /* @__PURE__ */ R(wB, {
33392
33500
  label: t,
33393
33501
  extraClasses: { label: { transform: "translateY(-20%)" } },
33394
- children: /* @__PURE__ */ R(vB, {
33395
- keys: e || Object.keys(pB),
33502
+ children: /* @__PURE__ */ R(DB, {
33503
+ keys: e || Object.keys(SB),
33396
33504
  label: t,
33397
33505
  value: n.type,
33398
33506
  onChange: this.changeType,
33399
- feedbackLabels: pB
33507
+ feedbackLabels: SB
33400
33508
  })
33401
33509
  }),
33402
- n.type === "custom" && /* @__PURE__ */ R(gB, { children: /* @__PURE__ */ R(fB, {
33510
+ n.type === "custom" && /* @__PURE__ */ R(TB, { children: /* @__PURE__ */ R(xB, {
33403
33511
  onChange: this.changeCustom,
33404
33512
  markup: n.custom || "",
33405
33513
  toolbarOpts: r,
33406
33514
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
33407
33515
  mathMlOptions: i
33408
33516
  }) }),
33409
- n.type === "default" && /* @__PURE__ */ z(_B, { children: [" ", n.default] })
33517
+ n.type === "default" && /* @__PURE__ */ z(EB, { children: [" ", n.default] })
33410
33518
  ] });
33411
33519
  }
33412
- }, xB = E(/*#__PURE__*/ R("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), SB = M("div")(() => ({
33520
+ }, AB = E(/*#__PURE__*/ R("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), jB = M("div")(() => ({
33413
33521
  display: "flex",
33414
33522
  flex: 1,
33415
33523
  flexDirection: "column"
33416
- })), CB = M(Vt)(() => ({
33524
+ })), MB = M(Vt)(() => ({
33417
33525
  paddingTop: 0,
33418
33526
  paddingBottom: 0
33419
- })), wB = (e) => a({}, {
33527
+ })), NB = (e) => a({}, {
33420
33528
  correct: {
33421
33529
  type: "default",
33422
33530
  default: "Correct"
@@ -33429,21 +33537,21 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33429
33537
  type: "default",
33430
33538
  default: "Nearly"
33431
33539
  }
33432
- }, e), TB = class extends I.Component {
33540
+ }, e), PB = class extends I.Component {
33433
33541
  static propTypes = {
33434
33542
  allowPartial: B.default.bool,
33435
33543
  className: B.default.string,
33436
33544
  feedback: B.default.shape({
33437
- correct: B.default.shape(yB),
33438
- incorrect: B.default.shape(yB),
33439
- partial: B.default.shape(yB)
33545
+ correct: B.default.shape(OB),
33546
+ incorrect: B.default.shape(OB),
33547
+ partial: B.default.shape(OB)
33440
33548
  }),
33441
33549
  onChange: B.default.func.isRequired,
33442
33550
  toolbarOpts: B.default.object
33443
33551
  };
33444
33552
  static defaultProps = {
33445
33553
  allowPartial: !0,
33446
- feedback: wB()
33554
+ feedback: NB()
33447
33555
  };
33448
33556
  onChange(e, t) {
33449
33557
  let { feedback: n, onChange: r } = this.props;
@@ -33465,22 +33573,22 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33465
33573
  exit: 195
33466
33574
  } } },
33467
33575
  children: [/* @__PURE__ */ R(Jt, {
33468
- expandIcon: /* @__PURE__ */ R(xB, {}),
33576
+ expandIcon: /* @__PURE__ */ R(AB, {}),
33469
33577
  children: /* @__PURE__ */ R(xt, { children: "Feedback" })
33470
- }), /* @__PURE__ */ R(CB, { children: /* @__PURE__ */ z(SB, { children: [
33471
- /* @__PURE__ */ R(bB, {
33578
+ }), /* @__PURE__ */ R(MB, { children: /* @__PURE__ */ z(jB, { children: [
33579
+ /* @__PURE__ */ R(kB, {
33472
33580
  label: "If correct, show",
33473
33581
  feedback: n.correct,
33474
33582
  onChange: this.onCorrectChange,
33475
33583
  toolbarOpts: r
33476
33584
  }),
33477
- t && /* @__PURE__ */ R(bB, {
33585
+ t && /* @__PURE__ */ R(kB, {
33478
33586
  label: "If partially correct, show",
33479
33587
  feedback: n.partial,
33480
33588
  onChange: this.onPartialChange,
33481
33589
  toolbarOpts: r
33482
33590
  }),
33483
- /* @__PURE__ */ R(bB, {
33591
+ /* @__PURE__ */ R(kB, {
33484
33592
  label: "If incorrect, show",
33485
33593
  feedback: n.incorrect,
33486
33594
  onChange: this.onIncorrectChange,
@@ -33490,7 +33598,7 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33490
33598
  })
33491
33599
  });
33492
33600
  }
33493
- }, EB = M(di)(() => ({})), DB = class extends I.Component {
33601
+ }, FB = M(di)(() => ({})), IB = class extends I.Component {
33494
33602
  static propTypes = {
33495
33603
  className: B.default.string,
33496
33604
  contentClassName: B.default.string,
@@ -33511,7 +33619,7 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33511
33619
  indicatorColor: "primary",
33512
33620
  value: e,
33513
33621
  onChange: this.handleChange,
33514
- children: I.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ R(EB, { label: e.props.title }, t) : null)
33622
+ children: I.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ R(FB, { label: e.props.title }, t) : null)
33515
33623
  }), /* @__PURE__ */ R("div", {
33516
33624
  className: r,
33517
33625
  style: i,
@@ -33519,7 +33627,7 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33519
33627
  })]
33520
33628
  });
33521
33629
  }
33522
- }, OB = M(Zn)(({ theme: e, mini: t }) => ({
33630
+ }, LB = M(Zn)(({ theme: e, mini: t }) => ({
33523
33631
  margin: 0,
33524
33632
  marginLeft: 0,
33525
33633
  padding: 0,
@@ -33533,7 +33641,7 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33533
33641
  fontSize: e.typography.fontSize - 3
33534
33642
  }
33535
33643
  }
33536
- })), kB = M(yn)(({ theme: e, mini: t, error: n }) => ({
33644
+ })), RB = M(yn)(({ theme: e, mini: t, error: n }) => ({
33537
33645
  color: `${A.tertiary()} !important`,
33538
33646
  ...t && {
33539
33647
  margin: 0,
@@ -33542,9 +33650,9 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33542
33650
  height: e.spacing(3)
33543
33651
  },
33544
33652
  ...n && { color: `${e.palette.error.main} !important` }
33545
- })), AB = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ R(OB, {
33653
+ })), zB = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ R(LB, {
33546
33654
  mini: e,
33547
- control: /* @__PURE__ */ R(kB, {
33655
+ control: /* @__PURE__ */ R(RB, {
33548
33656
  checked: t,
33549
33657
  onChange: n,
33550
33658
  value: r,
@@ -33553,21 +33661,21 @@ var cB = sB(y, "InputContainer") || sB(dB.InputContainer, "InputContainer"), lB
33553
33661
  }),
33554
33662
  label: i
33555
33663
  });
33556
- AB.propTypes = {
33664
+ zB.propTypes = {
33557
33665
  mini: B.default.bool,
33558
33666
  checked: B.default.bool.isRequired,
33559
33667
  onChange: B.default.func.isRequired,
33560
33668
  value: B.default.string,
33561
33669
  label: B.default.string.isRequired,
33562
33670
  error: B.default.bool
33563
- }, AB.defaultProps = {
33671
+ }, zB.defaultProps = {
33564
33672
  value: "",
33565
33673
  mini: !1,
33566
33674
  error: !1
33567
33675
  };
33568
33676
  //#endregion
33569
33677
  //#region ../../lib-react/config-ui/dist/number-text-field.js
33570
- var jB = (0, St.default)("@pie-lib:config-ui:number-text-field"), MB = M(Bi)(({ theme: e }) => ({
33678
+ var BB = (0, St.default)("@pie-lib:config-ui:number-text-field"), VB = M(Bi)(({ theme: e }) => ({
33571
33679
  marginRight: e.spacing(1),
33572
33680
  "& .MuiInputLabel-root": {
33573
33681
  width: "auto",
@@ -33589,11 +33697,11 @@ var jB = (0, St.default)("@pie-lib:config-ui:number-text-field"), MB = M(Bi)(({
33589
33697
  minHeight: "auto",
33590
33698
  padding: "6px 0 7px"
33591
33699
  }
33592
- })), NB = (e, t) => {
33700
+ })), HB = (e, t) => {
33593
33701
  if (!r(e) && !r(t)) return 0;
33594
33702
  if (!r(e) && r(t)) return t;
33595
33703
  if (r(e)) return e;
33596
- }, PB = class extends I.Component {
33704
+ }, UB = class extends I.Component {
33597
33705
  static propTypes = {
33598
33706
  disabled: B.default.bool,
33599
33707
  className: B.default.string,
@@ -33619,13 +33727,13 @@ var jB = (0, St.default)("@pie-lib:config-ui:number-text-field"), MB = M(Bi)(({
33619
33727
  this.setState({ value: t });
33620
33728
  }
33621
33729
  clamp(e, t = this.props.min, n = this.props.max) {
33622
- return r(e) ? (r(n) && (e = Math.min(e, n)), r(t) && (e = Math.max(e, t)), e) : NB(t, n);
33730
+ return r(e) ? (r(n) && (e = Math.min(e, n)), r(t) && (e = Math.max(e, t)), e) : HB(t, n);
33623
33731
  }
33624
33732
  onBlur = (e) => {
33625
33733
  let t = e.target.value, n = parseFloat(t);
33626
- jB("rawNumber: ", n);
33734
+ BB("rawNumber: ", n);
33627
33735
  let r = this.clamp(n);
33628
- jB("number: ", r), r !== this.state.value && (jB("trigger update..."), this.setState({ value: r.toString() }, () => {
33736
+ BB("number: ", r), r !== this.state.value && (BB("trigger update..."), this.setState({ value: r.toString() }, () => {
33629
33737
  this.props.onChange(e, r);
33630
33738
  }));
33631
33739
  };
@@ -33645,7 +33753,7 @@ var jB = (0, St.default)("@pie-lib:config-ui:number-text-field"), MB = M(Bi)(({
33645
33753
  };
33646
33754
  render() {
33647
33755
  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();
33648
- return /* @__PURE__ */ R(MB, {
33756
+ return /* @__PURE__ */ R(VB, {
33649
33757
  variant: s ? "filled" : l || "standard",
33650
33758
  inputRef: (e) => {
33651
33759
  this.inputRef = e;
@@ -33680,19 +33788,19 @@ var jB = (0, St.default)("@pie-lib:config-ui:number-text-field"), MB = M(Bi)(({
33680
33788
  };
33681
33789
  //#endregion
33682
33790
  //#region ../../lib-react/config-ui/dist/two-choice.js
33683
- function FB(e) {
33791
+ function WB(e) {
33684
33792
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
33685
33793
  }
33686
- function IB(e, t) {
33687
- return !e || FB(e) ? e : FB(e.default) ? e.default : t && FB(e[t]) ? e[t] : t && FB(e[t]?.default) ? e[t].default : e;
33794
+ function GB(e, t) {
33795
+ return !e || WB(e) ? e : WB(e.default) ? e.default : t && WB(e[t]) ? e[t] : t && WB(e[t]?.default) ? e[t].default : e;
33688
33796
  }
33689
- var LB = IB(y, "InputContainer") || IB(BB.InputContainer, "InputContainer"), RB = Ue, zB = RB.default, BB = zB && typeof zB == "object" ? zB : RB, VB = M("div")(({ theme: e, direction: t }) => ({
33797
+ var KB = GB(y, "InputContainer") || GB(YB.InputContainer, "InputContainer"), qB = Ue, JB = qB.default, YB = JB && typeof JB == "object" ? JB : qB, XB = M("div")(({ theme: e, direction: t }) => ({
33690
33798
  display: "flex",
33691
33799
  flexWrap: "wrap",
33692
33800
  paddingLeft: 0,
33693
33801
  marginTop: e.spacing(1),
33694
33802
  ...t === "vertical" && { flexDirection: "column" }
33695
- })), HB = class extends I.Component {
33803
+ })), ZB = class extends I.Component {
33696
33804
  static propTypes = {
33697
33805
  header: B.default.string.isRequired,
33698
33806
  className: B.default.string,
@@ -33710,10 +33818,10 @@ var LB = IB(y, "InputContainer") || IB(BB.InputContainer, "InputContainer"), RB
33710
33818
  label: e,
33711
33819
  value: e
33712
33820
  } : e), s = n || Ui;
33713
- return /* @__PURE__ */ R(LB, {
33821
+ return /* @__PURE__ */ R(KB, {
33714
33822
  label: e,
33715
33823
  className: t,
33716
- children: /* @__PURE__ */ R(VB, {
33824
+ children: /* @__PURE__ */ R(XB, {
33717
33825
  direction: a,
33718
33826
  children: o.map((e, t) => /* @__PURE__ */ R(s, {
33719
33827
  value: e.value,
@@ -33724,7 +33832,7 @@ var LB = IB(y, "InputContainer") || IB(BB.InputContainer, "InputContainer"), RB
33724
33832
  })
33725
33833
  });
33726
33834
  }
33727
- }, UB = B.default.shape({
33835
+ }, QB = B.default.shape({
33728
33836
  label: B.default.string,
33729
33837
  value: B.default.string
33730
33838
  });
@@ -33733,14 +33841,14 @@ var LB = IB(y, "InputContainer") || IB(BB.InputContainer, "InputContainer"), RB
33733
33841
  header: B.default.string.isRequired,
33734
33842
  value: B.default.string.isRequired,
33735
33843
  onChange: B.default.func.isRequired,
33736
- one: B.default.oneOfType([UB, B.default.string]),
33737
- two: B.default.oneOfType([UB, B.default.string]),
33844
+ one: B.default.oneOfType([QB, B.default.string]),
33845
+ two: B.default.oneOfType([QB, B.default.string]),
33738
33846
  className: B.default.string,
33739
33847
  customLabel: B.default.func
33740
33848
  };
33741
33849
  render() {
33742
33850
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
33743
- return /* @__PURE__ */ R(HB, {
33851
+ return /* @__PURE__ */ R(ZB, {
33744
33852
  customLabel: i,
33745
33853
  header: n,
33746
33854
  className: r,
@@ -33752,21 +33860,21 @@ var LB = IB(y, "InputContainer") || IB(BB.InputContainer, "InputContainer"), RB
33752
33860
  });
33753
33861
  //#endregion
33754
33862
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
33755
- var WB = Object.defineProperty, GB = (e, t) => {
33863
+ var $B = Object.defineProperty, eV = (e, t) => {
33756
33864
  let n = {};
33757
- for (var r in e) WB(n, r, {
33865
+ for (var r in e) $B(n, r, {
33758
33866
  get: e[r],
33759
33867
  enumerable: !0
33760
33868
  });
33761
- return t || WB(n, Symbol.toStringTag, { value: "Module" }), n;
33762
- }, KB = M("div")(() => ({
33869
+ return t || $B(n, Symbol.toStringTag, { value: "Module" }), n;
33870
+ }, tV = M("div")(() => ({
33763
33871
  display: "flex",
33764
33872
  flexDirection: "column",
33765
33873
  position: "relative"
33766
- })), qB = M("div")(() => ({
33874
+ })), nV = M("div")(() => ({
33767
33875
  display: "flex",
33768
33876
  justifyContent: "space-between"
33769
- })), JB = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), YB = M("div")(() => ({ flex: "1" })), XB = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), ZB = class extends I.Component {
33877
+ })), rV = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), iV = M("div")(() => ({ flex: "1" })), aV = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), oV = class extends I.Component {
33770
33878
  static propTypes = {
33771
33879
  mode: B.default.oneOf(["tabbed", "inline"]),
33772
33880
  secondary: B.default.oneOfType([B.default.arrayOf(B.default.node), B.default.node]),
@@ -33784,7 +33892,7 @@ var WB = Object.defineProperty, GB = (e, t) => {
33784
33892
  } catch (e) {
33785
33893
  console.log(e.toString());
33786
33894
  }
33787
- return /* @__PURE__ */ z(KB, {
33895
+ return /* @__PURE__ */ z(tV, {
33788
33896
  style: {
33789
33897
  minHeight: i,
33790
33898
  minWidth: a,
@@ -33792,28 +33900,28 @@ var WB = Object.defineProperty, GB = (e, t) => {
33792
33900
  maxWidth: s
33793
33901
  },
33794
33902
  children: [
33795
- e === "inline" && /* @__PURE__ */ z(qB, { children: [/* @__PURE__ */ R(YB, {
33903
+ e === "inline" && /* @__PURE__ */ z(nV, { children: [/* @__PURE__ */ R(iV, {
33796
33904
  className: "design-container",
33797
33905
  children: n
33798
- }), l && /* @__PURE__ */ R(XB, {
33906
+ }), l && /* @__PURE__ */ R(aV, {
33799
33907
  className: "settings-container",
33800
33908
  children: t
33801
33909
  })] }),
33802
- e === "tabbed" && l && /* @__PURE__ */ z(DB, {
33910
+ e === "tabbed" && l && /* @__PURE__ */ z(IB, {
33803
33911
  onChange: this.onTabsChange,
33804
33912
  contentClassName: "content-container",
33805
33913
  indicatorColor: "primary",
33806
- children: [/* @__PURE__ */ R(JB, {
33914
+ children: [/* @__PURE__ */ R(rV, {
33807
33915
  title: "Design",
33808
33916
  className: "design-container",
33809
33917
  children: n
33810
- }), /* @__PURE__ */ R(JB, {
33918
+ }), /* @__PURE__ */ R(rV, {
33811
33919
  title: "Settings",
33812
33920
  className: "settings-container",
33813
33921
  children: t
33814
33922
  })]
33815
33923
  }),
33816
- e === "tabbed" && !l && /* @__PURE__ */ R(JB, {
33924
+ e === "tabbed" && !l && /* @__PURE__ */ R(rV, {
33817
33925
  className: "design-container",
33818
33926
  children: n
33819
33927
  })
@@ -33823,18 +33931,18 @@ var WB = Object.defineProperty, GB = (e, t) => {
33823
33931
  };
33824
33932
  //#endregion
33825
33933
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
33826
- function QB() {
33827
- return QB = Object.assign ? Object.assign.bind() : function(e) {
33934
+ function sV() {
33935
+ return sV = Object.assign ? Object.assign.bind() : function(e) {
33828
33936
  for (var t = 1; t < arguments.length; t++) {
33829
33937
  var n = arguments[t];
33830
33938
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
33831
33939
  }
33832
33940
  return e;
33833
- }, QB.apply(null, arguments);
33941
+ }, sV.apply(null, arguments);
33834
33942
  }
33835
33943
  //#endregion
33836
33944
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
33837
- function $B(e, t) {
33945
+ function cV(e, t) {
33838
33946
  if (e == null) return {};
33839
33947
  var n = {};
33840
33948
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -33845,19 +33953,19 @@ function $B(e, t) {
33845
33953
  }
33846
33954
  //#endregion
33847
33955
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
33848
- function eV(e, t) {
33849
- return eV = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
33956
+ function lV(e, t) {
33957
+ return lV = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
33850
33958
  return e.__proto__ = t, e;
33851
- }, eV(e, t);
33959
+ }, lV(e, t);
33852
33960
  }
33853
33961
  //#endregion
33854
33962
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
33855
- function tV(e, t) {
33856
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, eV(e, t);
33963
+ function uV(e, t) {
33964
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, lV(e, t);
33857
33965
  }
33858
33966
  //#endregion
33859
33967
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
33860
- var nV = (function() {
33968
+ var dV = (function() {
33861
33969
  if (typeof Map < "u") return Map;
33862
33970
  function e(e, t) {
33863
33971
  var n = -1;
@@ -33896,34 +34004,34 @@ var nV = (function() {
33896
34004
  }
33897
34005
  }, t;
33898
34006
  }();
33899
- })(), rV = typeof window < "u" && typeof document < "u" && window.document === document, iV = (function() {
34007
+ })(), fV = typeof window < "u" && typeof document < "u" && window.document === document, pV = (function() {
33900
34008
  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")();
33901
- })(), aV = (function() {
33902
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(iV) : function(e) {
34009
+ })(), mV = (function() {
34010
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(pV) : function(e) {
33903
34011
  return setTimeout(function() {
33904
34012
  return e(Date.now());
33905
34013
  }, 1e3 / 60);
33906
34014
  };
33907
- })(), oV = 2;
33908
- function sV(e, t) {
34015
+ })(), hV = 2;
34016
+ function gV(e, t) {
33909
34017
  var n = !1, r = !1, i = 0;
33910
34018
  function a() {
33911
34019
  n && (n = !1, e()), r && s();
33912
34020
  }
33913
34021
  function o() {
33914
- aV(a);
34022
+ mV(a);
33915
34023
  }
33916
34024
  function s() {
33917
34025
  var e = Date.now();
33918
34026
  if (n) {
33919
- if (e - i < oV) return;
34027
+ if (e - i < hV) return;
33920
34028
  r = !0;
33921
34029
  } else n = !0, r = !1, setTimeout(o, t);
33922
34030
  i = e;
33923
34031
  }
33924
34032
  return s;
33925
34033
  }
33926
- var cV = 20, lV = [
34034
+ var _V = 20, vV = [
33927
34035
  "top",
33928
34036
  "right",
33929
34037
  "bottom",
@@ -33932,9 +34040,9 @@ var cV = 20, lV = [
33932
34040
  "height",
33933
34041
  "size",
33934
34042
  "weight"
33935
- ], uV = typeof MutationObserver < "u", dV = function() {
34043
+ ], yV = typeof MutationObserver < "u", bV = function() {
33936
34044
  function e() {
33937
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = sV(this.refresh.bind(this), cV);
34045
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = gV(this.refresh.bind(this), _V);
33938
34046
  }
33939
34047
  return e.prototype.addObserver = function(e) {
33940
34048
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -33951,23 +34059,23 @@ var cV = 20, lV = [
33951
34059
  return e.broadcastActive();
33952
34060
  }), e.length > 0;
33953
34061
  }, e.prototype.connect_ = function() {
33954
- !rV || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), uV ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
34062
+ !fV || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), yV ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
33955
34063
  attributes: !0,
33956
34064
  childList: !0,
33957
34065
  characterData: !0,
33958
34066
  subtree: !0
33959
34067
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
33960
34068
  }, e.prototype.disconnect_ = function() {
33961
- !rV || !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);
34069
+ !fV || !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);
33962
34070
  }, e.prototype.onTransitionEnd_ = function(e) {
33963
34071
  var t = e.propertyName, n = t === void 0 ? "" : t;
33964
- lV.some(function(e) {
34072
+ vV.some(function(e) {
33965
34073
  return !!~n.indexOf(e);
33966
34074
  }) && this.refresh();
33967
34075
  }, e.getInstance = function() {
33968
34076
  return this.instance_ ||= new e(), this.instance_;
33969
34077
  }, e.instance_ = null, e;
33970
- }(), fV = (function(e, t) {
34078
+ }(), xV = (function(e, t) {
33971
34079
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
33972
34080
  var i = r[n];
33973
34081
  Object.defineProperty(e, i, {
@@ -33978,19 +34086,19 @@ var cV = 20, lV = [
33978
34086
  });
33979
34087
  }
33980
34088
  return e;
33981
- }), pV = (function(e) {
33982
- return e && e.ownerDocument && e.ownerDocument.defaultView || iV;
33983
- }), mV = wV(0, 0, 0, 0);
33984
- function hV(e) {
34089
+ }), SV = (function(e) {
34090
+ return e && e.ownerDocument && e.ownerDocument.defaultView || pV;
34091
+ }), CV = NV(0, 0, 0, 0);
34092
+ function wV(e) {
33985
34093
  return parseFloat(e) || 0;
33986
34094
  }
33987
- function gV(e) {
34095
+ function TV(e) {
33988
34096
  return [...arguments].slice(1).reduce(function(t, n) {
33989
34097
  var r = e["border-" + n + "-width"];
33990
- return t + hV(r);
34098
+ return t + wV(r);
33991
34099
  }, 0);
33992
34100
  }
33993
- function _V(e) {
34101
+ function EV(e) {
33994
34102
  for (var t = [
33995
34103
  "top",
33996
34104
  "right",
@@ -33998,40 +34106,40 @@ function _V(e) {
33998
34106
  "left"
33999
34107
  ], n = {}, r = 0, i = t; r < i.length; r++) {
34000
34108
  var a = i[r], o = e["padding-" + a];
34001
- n[a] = hV(o);
34109
+ n[a] = wV(o);
34002
34110
  }
34003
34111
  return n;
34004
34112
  }
34005
- function vV(e) {
34113
+ function DV(e) {
34006
34114
  var t = e.getBBox();
34007
- return wV(0, 0, t.width, t.height);
34115
+ return NV(0, 0, t.width, t.height);
34008
34116
  }
34009
- function yV(e) {
34117
+ function OV(e) {
34010
34118
  var t = e.clientWidth, n = e.clientHeight;
34011
- if (!t && !n) return mV;
34012
- var r = pV(e).getComputedStyle(e), i = _V(r), a = i.left + i.right, o = i.top + i.bottom, s = hV(r.width), c = hV(r.height);
34013
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= gV(r, "left", "right") + a), Math.round(c + o) !== n && (c -= gV(r, "top", "bottom") + o)), !xV(e)) {
34119
+ if (!t && !n) return CV;
34120
+ var r = SV(e).getComputedStyle(e), i = EV(r), a = i.left + i.right, o = i.top + i.bottom, s = wV(r.width), c = wV(r.height);
34121
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= TV(r, "left", "right") + a), Math.round(c + o) !== n && (c -= TV(r, "top", "bottom") + o)), !AV(e)) {
34014
34122
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
34015
34123
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
34016
34124
  }
34017
- return wV(i.left, i.top, s, c);
34125
+ return NV(i.left, i.top, s, c);
34018
34126
  }
34019
- var bV = (function() {
34127
+ var kV = (function() {
34020
34128
  return typeof SVGGraphicsElement < "u" ? function(e) {
34021
- return e instanceof pV(e).SVGGraphicsElement;
34129
+ return e instanceof SV(e).SVGGraphicsElement;
34022
34130
  } : function(e) {
34023
- return e instanceof pV(e).SVGElement && typeof e.getBBox == "function";
34131
+ return e instanceof SV(e).SVGElement && typeof e.getBBox == "function";
34024
34132
  };
34025
34133
  })();
34026
- function xV(e) {
34027
- return e === pV(e).document.documentElement;
34134
+ function AV(e) {
34135
+ return e === SV(e).document.documentElement;
34028
34136
  }
34029
- function SV(e) {
34030
- return rV ? bV(e) ? vV(e) : yV(e) : mV;
34137
+ function jV(e) {
34138
+ return fV ? kV(e) ? DV(e) : OV(e) : CV;
34031
34139
  }
34032
- function CV(e) {
34140
+ function MV(e) {
34033
34141
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
34034
- return fV(a, {
34142
+ return xV(a, {
34035
34143
  x: t,
34036
34144
  y: n,
34037
34145
  width: r,
@@ -34042,7 +34150,7 @@ function CV(e) {
34042
34150
  left: t
34043
34151
  }), a;
34044
34152
  }
34045
- function wV(e, t, n, r) {
34153
+ function NV(e, t, n, r) {
34046
34154
  return {
34047
34155
  x: e,
34048
34156
  y: t,
@@ -34050,42 +34158,42 @@ function wV(e, t, n, r) {
34050
34158
  height: r
34051
34159
  };
34052
34160
  }
34053
- var TV = function() {
34161
+ var PV = function() {
34054
34162
  function e(e) {
34055
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = wV(0, 0, 0, 0), this.target = e;
34163
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = NV(0, 0, 0, 0), this.target = e;
34056
34164
  }
34057
34165
  return e.prototype.isActive = function() {
34058
- var e = SV(this.target);
34166
+ var e = jV(this.target);
34059
34167
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
34060
34168
  }, e.prototype.broadcastRect = function() {
34061
34169
  var e = this.contentRect_;
34062
34170
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
34063
34171
  }, e;
34064
- }(), EV = function() {
34172
+ }(), FV = function() {
34065
34173
  function e(e, t) {
34066
- var n = CV(t);
34067
- fV(this, {
34174
+ var n = MV(t);
34175
+ xV(this, {
34068
34176
  target: e,
34069
34177
  contentRect: n
34070
34178
  });
34071
34179
  }
34072
34180
  return e;
34073
- }(), DV = function() {
34181
+ }(), IV = function() {
34074
34182
  function e(e, t, n) {
34075
- if (this.activeObservations_ = [], this.observations_ = new nV(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
34183
+ if (this.activeObservations_ = [], this.observations_ = new dV(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
34076
34184
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
34077
34185
  }
34078
34186
  return e.prototype.observe = function(e) {
34079
34187
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
34080
34188
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
34081
- if (!(e instanceof pV(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
34189
+ if (!(e instanceof SV(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
34082
34190
  var t = this.observations_;
34083
- t.has(e) || (t.set(e, new TV(e)), this.controller_.addObserver(this), this.controller_.refresh());
34191
+ t.has(e) || (t.set(e, new PV(e)), this.controller_.addObserver(this), this.controller_.refresh());
34084
34192
  }
34085
34193
  }, e.prototype.unobserve = function(e) {
34086
34194
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
34087
34195
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
34088
- if (!(e instanceof pV(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
34196
+ if (!(e instanceof SV(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
34089
34197
  var t = this.observations_;
34090
34198
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
34091
34199
  }
@@ -34099,7 +34207,7 @@ var TV = function() {
34099
34207
  }, e.prototype.broadcastActive = function() {
34100
34208
  if (this.hasActive()) {
34101
34209
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
34102
- return new EV(e.target, e.broadcastRect());
34210
+ return new FV(e.target, e.broadcastRect());
34103
34211
  });
34104
34212
  this.callback_.call(e, t, e), this.clearActive();
34105
34213
  }
@@ -34108,12 +34216,12 @@ var TV = function() {
34108
34216
  }, e.prototype.hasActive = function() {
34109
34217
  return this.activeObservations_.length > 0;
34110
34218
  }, e;
34111
- }(), OV = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new nV(), kV = function() {
34219
+ }(), LV = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new dV(), RV = function() {
34112
34220
  function e(t) {
34113
34221
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
34114
34222
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
34115
- var n = new DV(t, dV.getInstance(), this);
34116
- OV.set(this, n);
34223
+ var n = new IV(t, bV.getInstance(), this);
34224
+ LV.set(this, n);
34117
34225
  }
34118
34226
  return e;
34119
34227
  }();
@@ -34122,27 +34230,27 @@ var TV = function() {
34122
34230
  "unobserve",
34123
34231
  "disconnect"
34124
34232
  ].forEach(function(e) {
34125
- kV.prototype[e] = function() {
34233
+ RV.prototype[e] = function() {
34126
34234
  var t;
34127
- return (t = OV.get(this))[e].apply(t, arguments);
34235
+ return (t = LV.get(this))[e].apply(t, arguments);
34128
34236
  };
34129
34237
  });
34130
- var AV = (function() {
34131
- return iV.ResizeObserver === void 0 ? kV : iV.ResizeObserver;
34132
- })(), jV = [
34238
+ var zV = (function() {
34239
+ return pV.ResizeObserver === void 0 ? RV : pV.ResizeObserver;
34240
+ })(), BV = [
34133
34241
  "client",
34134
34242
  "offset",
34135
34243
  "scroll",
34136
34244
  "bounds",
34137
34245
  "margin"
34138
34246
  ];
34139
- function MV(e) {
34247
+ function VV(e) {
34140
34248
  var t = [];
34141
- return jV.forEach(function(n) {
34249
+ return BV.forEach(function(n) {
34142
34250
  e[n] && t.push(n);
34143
34251
  }), t;
34144
34252
  }
34145
- function NV(e, t) {
34253
+ function HV(e, t) {
34146
34254
  var n = {};
34147
34255
  if (t.indexOf("client") > -1 && (n.client = {
34148
34256
  top: e.clientTop,
@@ -34181,14 +34289,14 @@ function NV(e, t) {
34181
34289
  }
34182
34290
  return n;
34183
34291
  }
34184
- function PV(e) {
34292
+ function UV(e) {
34185
34293
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
34186
34294
  }
34187
- function FV(e) {
34295
+ function WV(e) {
34188
34296
  return function(t) {
34189
34297
  var n, r;
34190
34298
  return r = n = /*#__PURE__*/ function(n) {
34191
- tV(r, n);
34299
+ uV(r, n);
34192
34300
  function r() {
34193
34301
  var t, r = [...arguments];
34194
34302
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -34199,24 +34307,24 @@ function FV(e) {
34199
34307
  bounds: {},
34200
34308
  margin: {}
34201
34309
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
34202
- var r = NV(t._node, e || MV(t.props));
34310
+ var r = HV(t._node, e || VV(t.props));
34203
34311
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
34204
34312
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
34205
34313
  });
34206
34314
  }, t._handleRef = function(e) {
34207
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = PV(t._node);
34315
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = UV(t._node);
34208
34316
  var n = t.props.innerRef;
34209
34317
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
34210
34318
  }, t;
34211
34319
  }
34212
34320
  var i = r.prototype;
34213
34321
  return i.componentDidMount = function() {
34214
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new AV(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(NV(this._node, e || MV(this.props))));
34322
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new zV(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(HV(this._node, e || VV(this.props))));
34215
34323
  }, i.componentWillUnmount = function() {
34216
34324
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
34217
34325
  }, i.render = function() {
34218
34326
  var e = this.props;
34219
- return e.innerRef, e.onResize, Qe(t, QB({}, $B(e, ["innerRef", "onResize"]), {
34327
+ return e.innerRef, e.onResize, Qe(t, sV({}, cV(e, ["innerRef", "onResize"]), {
34220
34328
  measureRef: this._handleRef,
34221
34329
  measure: this.measure,
34222
34330
  contentRect: this.state.contentRect
@@ -34233,7 +34341,7 @@ function FV(e) {
34233
34341
  }, r;
34234
34342
  };
34235
34343
  }
34236
- var IV = FV()(function(e) {
34344
+ var GV = WV()(function(e) {
34237
34345
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
34238
34346
  return i({
34239
34347
  measure: t,
@@ -34241,10 +34349,10 @@ var IV = FV()(function(e) {
34241
34349
  contentRect: r
34242
34350
  });
34243
34351
  });
34244
- IV.displayName = "Measure", IV.propTypes.children = B.default.func;
34352
+ GV.displayName = "Measure", GV.propTypes.children = B.default.func;
34245
34353
  //#endregion
34246
34354
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
34247
- var LV = M("div")(() => ({
34355
+ var KV = M("div")(() => ({
34248
34356
  backgroundColor: A.white(),
34249
34357
  border: `2px solid ${A.border()}`,
34250
34358
  display: "flex",
@@ -34254,7 +34362,7 @@ var LV = M("div")(() => ({
34254
34362
  maxWidth: "300px",
34255
34363
  padding: "20px 4px 4px 20px",
34256
34364
  zIndex: 99
34257
- })), RV = class extends I.Component {
34365
+ })), qV = class extends I.Component {
34258
34366
  static propTypes = {
34259
34367
  className: B.default.string,
34260
34368
  children: B.default.oneOfType([B.default.arrayOf(B.default.node), B.default.node]).isRequired
@@ -34262,19 +34370,19 @@ var LV = M("div")(() => ({
34262
34370
  static defaultProps = {};
34263
34371
  render() {
34264
34372
  let { className: e, children: t } = this.props;
34265
- return /* @__PURE__ */ R(LV, {
34373
+ return /* @__PURE__ */ R(KV, {
34266
34374
  className: e,
34267
34375
  children: t
34268
34376
  });
34269
34377
  }
34270
- }, zV = de({
34378
+ }, JV = de({
34271
34379
  typography: { fontFamily: "inherit" },
34272
34380
  components: { MuiButton: { styleOverrides: { contained: {
34273
34381
  backgroundColor: "#e0e0e0",
34274
34382
  color: "#000000",
34275
34383
  "&:hover": { backgroundColor: "#bdbdbd" }
34276
34384
  } } } }
34277
- }), BV = class extends I.Component {
34385
+ }), YV = class extends I.Component {
34278
34386
  static propTypes = {
34279
34387
  children: B.default.oneOfType([
34280
34388
  B.default.string,
@@ -34307,19 +34415,19 @@ var LV = M("div")(() => ({
34307
34415
  return /* @__PURE__ */ R(ie, {
34308
34416
  injectFirst: !0,
34309
34417
  children: /* @__PURE__ */ R(Fe, {
34310
- theme: zV,
34311
- children: /* @__PURE__ */ R(IV, {
34418
+ theme: JV,
34419
+ children: /* @__PURE__ */ R(GV, {
34312
34420
  bounds: !0,
34313
34421
  onResize: this.onResize,
34314
34422
  children: ({ measureRef: e }) => {
34315
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ R(RV, {
34423
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ R(qV, {
34316
34424
  className: "settings-box",
34317
34425
  children: n
34318
34426
  }) : n;
34319
34427
  return /* @__PURE__ */ z("div", {
34320
34428
  ref: e,
34321
34429
  className: "main-container extraCSSRules",
34322
- children: [a?.rules ? /* @__PURE__ */ R("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ R(ZB, {
34430
+ children: [a?.rules ? /* @__PURE__ */ R("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ R(oV, {
34323
34431
  mode: o,
34324
34432
  secondary: s,
34325
34433
  dimensions: i,
@@ -34331,27 +34439,27 @@ var LV = M("div")(() => ({
34331
34439
  })
34332
34440
  });
34333
34441
  }
34334
- }, VV = FV("bounds")(BV), HV = /* @__PURE__ */ GB({
34335
- ConfigLayout: () => VV,
34336
- LayoutContents: () => ZB
34337
- }), UV = M("div")(() => ({
34442
+ }, XV = WV("bounds")(YV), ZV = /* @__PURE__ */ eV({
34443
+ ConfigLayout: () => XV,
34444
+ LayoutContents: () => oV
34445
+ }), QV = M("div")(() => ({
34338
34446
  display: "flex",
34339
34447
  width: "100%",
34340
34448
  justifyContent: "space-between"
34341
- })), WV = M(D)(({ theme: e }) => ({
34449
+ })), $V = M(D)(({ theme: e }) => ({
34342
34450
  color: "rgba(0, 0, 0, 0.89)",
34343
34451
  fontSize: e.typography.fontSize,
34344
34452
  paddingTop: e.spacing(2)
34345
- })), GV = M(oi)(({ checked: e }) => ({
34453
+ })), eH = M(oi)(({ checked: e }) => ({
34346
34454
  "&.Mui-checked .MuiSwitch-thumb": { color: `${A.tertiary()} !important` },
34347
34455
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${A.tertiaryLight()} !important` },
34348
34456
  "& .MuiSwitch-track": { backgroundColor: e ? `${A.tertiaryLight()} !important` : void 0 }
34349
- })), KV = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ z(UV, { children: [/* @__PURE__ */ R(WV, { children: n }), /* @__PURE__ */ R(GV, {
34457
+ })), tH = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ z(QV, { children: [/* @__PURE__ */ R($V, { children: n }), /* @__PURE__ */ R(eH, {
34350
34458
  checked: e,
34351
34459
  disabled: t,
34352
34460
  onChange: (e) => r(e.target.checked)
34353
34461
  })] });
34354
- KV.propTypes = {
34462
+ tH.propTypes = {
34355
34463
  checked: B.default.bool,
34356
34464
  disabled: B.default.bool,
34357
34465
  label: B.default.string.isRequired,
@@ -34359,20 +34467,20 @@ KV.propTypes = {
34359
34467
  };
34360
34468
  //#endregion
34361
34469
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
34362
- var qV = M(Zn)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
34470
+ var nH = M(Zn)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
34363
34471
  color: "rgba(0, 0, 0, 0.89)",
34364
34472
  fontSize: e.typography.fontSize - 2,
34365
34473
  left: "-5px",
34366
34474
  position: "relative"
34367
- } })), JV = M(Qr)(() => ({ color: `${A.tertiary()} !important` })), YV = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ R(qV, {
34475
+ } })), rH = M(Qr)(() => ({ color: `${A.tertiary()} !important` })), iH = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ R(nH, {
34368
34476
  value: t,
34369
- control: /* @__PURE__ */ R(JV, {
34477
+ control: /* @__PURE__ */ R(rH, {
34370
34478
  checked: n,
34371
34479
  onChange: r
34372
34480
  }),
34373
34481
  label: e
34374
34482
  });
34375
- YV.propTypes = {
34483
+ iH.propTypes = {
34376
34484
  label: B.default.string,
34377
34485
  value: B.default.string,
34378
34486
  checked: B.default.bool,
@@ -34380,26 +34488,26 @@ YV.propTypes = {
34380
34488
  };
34381
34489
  //#endregion
34382
34490
  //#region ../../lib-react/config-ui/dist/settings/panel.js
34383
- var XV = (0, St.default)("pie-lib:config-ui:settings:panel"), ZV = {
34491
+ var aH = (0, St.default)("pie-lib:config-ui:settings:panel"), oH = {
34384
34492
  label: B.default.string,
34385
34493
  value: B.default.string
34386
- }, QV = {
34494
+ }, sH = {
34387
34495
  label: B.default.string,
34388
34496
  value: B.default.string,
34389
34497
  onChange: B.default.func
34390
- }, $V = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ R(AB, {
34498
+ }, cH = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ R(zB, {
34391
34499
  checked: t,
34392
34500
  label: e,
34393
34501
  onChange: (e) => {
34394
34502
  n(e.target.checked);
34395
34503
  }
34396
34504
  });
34397
- $V.propTypes = {
34505
+ cH.propTypes = {
34398
34506
  label: B.default.string,
34399
34507
  value: B.default.bool,
34400
34508
  onChange: B.default.func
34401
34509
  };
34402
- var eH = M(HB)(({ theme: e }) => ({
34510
+ var lH = M(ZB)(({ theme: e }) => ({
34403
34511
  marginTop: e.spacing(.5),
34404
34512
  paddingBottom: e.spacing(.5),
34405
34513
  width: "100%",
@@ -34410,29 +34518,29 @@ var eH = M(HB)(({ theme: e }) => ({
34410
34518
  marginTop: e.spacing(2.5)
34411
34519
  },
34412
34520
  "& > div": { marginTop: e.spacing(2.5) }
34413
- })), tH = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ R(eH, {
34521
+ })), uH = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ R(lH, {
34414
34522
  direction: "horizontal",
34415
- customLabel: YV,
34523
+ customLabel: iH,
34416
34524
  value: t,
34417
34525
  header: e,
34418
34526
  opts: r,
34419
34527
  onChange: n
34420
34528
  });
34421
- tH.propTypes = {
34422
- ...QV,
34423
- choices: B.default.arrayOf(B.default.shape(ZV))
34529
+ uH.propTypes = {
34530
+ ...sH,
34531
+ choices: B.default.arrayOf(B.default.shape(oH))
34424
34532
  };
34425
- var nH = tH, rH = M("p")(({ theme: e }) => ({
34533
+ var dH = uH, fH = M("p")(({ theme: e }) => ({
34426
34534
  margin: 0,
34427
34535
  fontSize: e.typography.fontSize
34428
- })), iH = M(fe)(({ theme: e }) => ({
34536
+ })), pH = M(fe)(({ theme: e }) => ({
34429
34537
  marginTop: e.spacing(.5),
34430
34538
  border: "2px solid lightgrey",
34431
34539
  padding: `0 ${e.spacing(1)}`,
34432
34540
  borderRadius: "4px"
34433
- })), aH = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
34541
+ })), mH = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
34434
34542
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
34435
- return /* @__PURE__ */ z("div", { children: [e && /* @__PURE__ */ R(rH, { children: e }), /* @__PURE__ */ R(iH, {
34543
+ return /* @__PURE__ */ z("div", { children: [e && /* @__PURE__ */ R(fH, { children: e }), /* @__PURE__ */ R(pH, {
34436
34544
  value: t || r && r[0],
34437
34545
  onChange: ({ target: e }) => n(e.value),
34438
34546
  input: /* @__PURE__ */ R(ge, { id: `dropdown-${e}` }),
@@ -34447,14 +34555,14 @@ var nH = tH, rH = M("p")(({ theme: e }) => ({
34447
34555
  }, t))
34448
34556
  })] });
34449
34557
  };
34450
- aH.propTypes = {
34451
- ...QV,
34558
+ mH.propTypes = {
34559
+ ...sH,
34452
34560
  choices: B.default.arrayOf(B.default.string)
34453
34561
  };
34454
- var oH = M(xt)(({ theme: e }) => ({
34562
+ var hH = M(xt)(({ theme: e }) => ({
34455
34563
  marginRight: e.spacing(3),
34456
34564
  marginTop: e.spacing(1)
34457
- })), sH = ({ label: e }) => /* @__PURE__ */ R(oH, { children: e }), cH = M(PB)(({ theme: e }) => ({
34565
+ })), gH = ({ label: e }) => /* @__PURE__ */ R(hH, { children: e }), _H = M(UB)(({ theme: e }) => ({
34458
34566
  width: "35%",
34459
34567
  marginRight: e.spacing(3),
34460
34568
  marginTop: e.spacing(1),
@@ -34465,7 +34573,7 @@ var oH = M(xt)(({ theme: e }) => ({
34465
34573
  padding: `0 ${e.spacing(1)}`,
34466
34574
  backgroundColor: "transparent"
34467
34575
  }
34468
- })), lH = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ R(cH, {
34576
+ })), vH = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ R(_H, {
34469
34577
  variant: "standard",
34470
34578
  label: e || "Label",
34471
34579
  value: t,
@@ -34476,45 +34584,45 @@ var oH = M(xt)(({ theme: e }) => ({
34476
34584
  showErrorWhenOutsideRange: !0,
34477
34585
  disableUnderline: !0
34478
34586
  });
34479
- lH.propTypes = {
34480
- ...QV,
34587
+ vH.propTypes = {
34588
+ ...sH,
34481
34589
  suffix: B.default.string,
34482
34590
  min: B.default.number,
34483
34591
  max: B.default.number,
34484
34592
  value: B.default.number
34485
- }, sH.propTypes = { ...QV };
34486
- var uH = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ R(KV, {
34593
+ }, gH.propTypes = { ...sH };
34594
+ var yH = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ R(tH, {
34487
34595
  label: t,
34488
34596
  checked: !!n,
34489
34597
  disabled: !!e,
34490
34598
  toggle: r
34491
34599
  });
34492
- uH.propTypes = {
34493
- ...QV,
34600
+ yH.propTypes = {
34601
+ ...sH,
34494
34602
  value: B.default.bool
34495
34603
  };
34496
- var dH = {
34497
- toggle: uH,
34498
- radio: nH,
34499
- dropdown: aH,
34500
- numberField: lH,
34501
- checkbox: $V,
34502
- textField: sH
34503
- }, fH = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), pH = M("div")(({ theme: e }) => ({
34604
+ var bH = {
34605
+ toggle: yH,
34606
+ radio: dH,
34607
+ dropdown: mH,
34608
+ numberField: vH,
34609
+ checkbox: cH,
34610
+ textField: gH
34611
+ }, xH = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), SH = M("div")(({ theme: e }) => ({
34504
34612
  color: "#495B8F",
34505
34613
  fontSize: e.typography.fontSize + 2,
34506
34614
  fontWeight: 600,
34507
34615
  marginBottom: e.spacing(1)
34508
- })), mH = M("p")(({ theme: e }) => ({
34616
+ })), CH = M("p")(({ theme: e }) => ({
34509
34617
  fontSize: e.typography.fontSize,
34510
34618
  marginBottom: 0
34511
- })), hH = (e) => {
34619
+ })), wH = (e) => {
34512
34620
  let { model: t, label: r, group: i, configuration: a, onChange: o } = e, s = (e, r, i) => {
34513
34621
  let { isConfigProperty: s, ...c } = n(e, i || r), l = n(s ? a : t, r), u = {
34514
34622
  ...c,
34515
34623
  key: r,
34516
34624
  value: l
34517
- }, d = dH[u.type];
34625
+ }, d = bH[u.type];
34518
34626
  return /* @__PURE__ */ R(d, {
34519
34627
  ...u,
34520
34628
  onChange: (e) => o(r, e, s)
@@ -34523,18 +34631,18 @@ var dH = {
34523
34631
  let n = e[t];
34524
34632
  if (!n) return null;
34525
34633
  let { type: r, label: i, fields: a, choices: o } = n;
34526
- return r === "numberFields" ? /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R(mH, { children: i }), Object.keys(a).map((n) => s(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("p", { children: i }), Object.keys(o).map((n) => s(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : s(e, t);
34634
+ return r === "numberFields" ? /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R(CH, { children: i }), Object.keys(a).map((n) => s(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("p", { children: i }), Object.keys(o).map((n) => s(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : s(e, t);
34527
34635
  };
34528
- return /* @__PURE__ */ z(fH, { children: [/* @__PURE__ */ R(pH, { children: r }), Object.keys(i).map((e) => c(i, e))] });
34636
+ return /* @__PURE__ */ z(xH, { children: [/* @__PURE__ */ R(SH, { children: r }), Object.keys(i).map((e) => c(i, e))] });
34529
34637
  };
34530
- hH.propTypes = {
34638
+ wH.propTypes = {
34531
34639
  model: B.default.object,
34532
34640
  label: B.default.string,
34533
34641
  group: B.default.object,
34534
34642
  configuration: B.default.object,
34535
34643
  onChange: B.default.func
34536
34644
  };
34537
- var gH = class extends I.Component {
34645
+ var TH = class extends I.Component {
34538
34646
  static propTypes = {
34539
34647
  model: B.default.object,
34540
34648
  configuration: B.default.object,
@@ -34548,13 +34656,13 @@ var gH = class extends I.Component {
34548
34656
  onChangeConfiguration: () => {}
34549
34657
  };
34550
34658
  change = (e, t, n = !1) => {
34551
- XV("[changeModel]", e, t);
34659
+ aH("[changeModel]", e, t);
34552
34660
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
34553
34661
  n ? (c(o, e, t), i(o, e)) : (c(a, e, t), r(a, e));
34554
34662
  };
34555
34663
  render() {
34556
34664
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
34557
- return XV("render:", t), /* @__PURE__ */ z("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ R(hH, {
34665
+ return aH("render:", t), /* @__PURE__ */ z("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ R(wH, {
34558
34666
  label: r,
34559
34667
  model: t,
34560
34668
  configuration: n,
@@ -34562,59 +34670,59 @@ var gH = class extends I.Component {
34562
34670
  onChange: this.change
34563
34671
  }, r) : null), r] });
34564
34672
  }
34565
- }, _H = /* @__PURE__ */ GB({
34566
- Panel: () => gH,
34567
- checkbox: () => TH,
34568
- checkboxes: () => EH,
34569
- dropdown: () => SH,
34570
- numberField: () => CH,
34571
- numberFields: () => wH,
34572
- radio: () => xH,
34573
- textField: () => vH,
34574
- toggle: () => yH
34575
- }), vH = (e, t = !0) => ({
34673
+ }, EH = /* @__PURE__ */ eV({
34674
+ Panel: () => TH,
34675
+ checkbox: () => PH,
34676
+ checkboxes: () => FH,
34677
+ dropdown: () => jH,
34678
+ numberField: () => MH,
34679
+ numberFields: () => NH,
34680
+ radio: () => AH,
34681
+ textField: () => DH,
34682
+ toggle: () => OH
34683
+ }), DH = (e, t = !0) => ({
34576
34684
  label: e,
34577
34685
  type: "textField",
34578
34686
  isConfigProperty: t
34579
- }), yH = (e, t = !1, n = !1) => ({
34687
+ }), OH = (e, t = !1, n = !1) => ({
34580
34688
  type: "toggle",
34581
34689
  label: e,
34582
34690
  isConfigProperty: t,
34583
34691
  disabled: n
34584
- }), bH = (e) => typeof e == "string" ? {
34692
+ }), kH = (e) => typeof e == "string" ? {
34585
34693
  label: e,
34586
34694
  value: e
34587
- } : e, xH = function() {
34695
+ } : e, AH = function() {
34588
34696
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
34589
34697
  return {
34590
34698
  type: "radio",
34591
34699
  label: e,
34592
- choices: t && t.map((e) => bH(e)),
34700
+ choices: t && t.map((e) => kH(e)),
34593
34701
  isConfigProperty: n
34594
34702
  };
34595
- }, SH = (e, t, n = !1) => ({
34703
+ }, jH = (e, t, n = !1) => ({
34596
34704
  type: "dropdown",
34597
34705
  label: e,
34598
34706
  choices: t,
34599
34707
  isConfigProperty: n
34600
- }), CH = (e, t, n = !1) => ({
34708
+ }), MH = (e, t, n = !1) => ({
34601
34709
  ...t,
34602
34710
  label: e,
34603
34711
  type: "numberField",
34604
34712
  isConfigProperty: n
34605
- }), wH = (e, t, n = !1) => (Object.keys(t).map((e) => {
34606
- t[e] = CH(t[e].label, t[e], n);
34713
+ }), NH = (e, t, n = !1) => (Object.keys(t).map((e) => {
34714
+ t[e] = MH(t[e].label, t[e], n);
34607
34715
  }), {
34608
34716
  type: "numberFields",
34609
34717
  label: e,
34610
34718
  fields: t
34611
- }), TH = (e, t, n = !1) => ({
34719
+ }), PH = (e, t, n = !1) => ({
34612
34720
  ...t,
34613
34721
  label: e,
34614
34722
  type: "checkbox",
34615
34723
  isConfigProperty: n
34616
- }), EH = (e, t, n = !1) => (Object.keys(t).map((e) => {
34617
- t[e] = TH(t[e].label, t[e], n);
34724
+ }), FH = (e, t, n = !1) => (Object.keys(t).map((e) => {
34725
+ t[e] = PH(t[e].label, t[e], n);
34618
34726
  }), {
34619
34727
  type: "checkboxes",
34620
34728
  label: e,
@@ -34622,13 +34730,13 @@ var gH = class extends I.Component {
34622
34730
  });
34623
34731
  //#endregion
34624
34732
  //#region ../../lib-react/config-ui/dist/index.js
34625
- function DH(e) {
34733
+ function IH(e) {
34626
34734
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
34627
34735
  }
34628
- function OH(e, t) {
34629
- return !e || DH(e) ? e : DH(e.default) ? e.default : t && DH(e[t]) ? e[t] : t && DH(e[t]?.default) ? e[t].default : e;
34736
+ function LH(e, t) {
34737
+ return !e || IH(e) ? e : IH(e.default) ? e.default : t && IH(e[t]) ? e[t] : t && IH(e[t]?.default) ? e[t].default : e;
34630
34738
  }
34631
- var kH = OH(y, "InputContainer") || OH(MH.InputContainer, "InputContainer"), AH = Ue, jH = AH.default, MH = jH && typeof jH == "object" ? jH : AH, NH = M(Qt)(({ theme: e }) => ({
34739
+ var RH = LH(y, "InputContainer") || LH(VH.InputContainer, "InputContainer"), zH = Ue, BH = zH.default, VH = BH && typeof BH == "object" ? BH : zH, HH = M(Qt)(({ theme: e }) => ({
34632
34740
  marginBottom: e.spacing(2.5),
34633
34741
  width: "100%",
34634
34742
  minWidth: "548px",
@@ -34650,34 +34758,34 @@ var kH = OH(y, "InputContainer") || OH(MH.InputContainer, "InputContainer"), AH
34650
34758
  width: "100%",
34651
34759
  maxWidth: "900px"
34652
34760
  }
34653
- })), PH = M(nn)(({ theme: e }) => ({ paddingBottom: `${e.spacing(2)} !important` })), FH = M(xt)({
34761
+ })), UH = M(nn)(({ theme: e }) => ({ paddingBottom: `${e.spacing(2)} !important` })), WH = M(xt)({
34654
34762
  fontWeight: 700,
34655
34763
  fontSize: "1.2rem",
34656
34764
  flex: 3
34657
- }), IH = M(kH)(({ theme: e }) => ({
34765
+ }), GH = M(RH)(({ theme: e }) => ({
34658
34766
  flex: 2,
34659
34767
  "& > *:not(label)": { marginTop: e.spacing(1) }
34660
- })), LH = M("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), RH = M("div")({
34768
+ })), KH = M("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), qH = M("div")({
34661
34769
  display: "flex",
34662
34770
  alignItems: "center",
34663
34771
  justifyContent: "space-between"
34664
- }), zH = M("div")({ display: "flex" }), BH = M("div")({
34772
+ }), JH = M("div")({ display: "flex" }), YH = M("div")({
34665
34773
  display: "flex",
34666
34774
  alignItems: "center",
34667
34775
  justifyContent: "flex-start"
34668
- }), VH = M("div")(({ theme: e }) => ({
34776
+ }), XH = M("div")(({ theme: e }) => ({
34669
34777
  fontSize: e.typography.fontSize - 2,
34670
34778
  color: e.palette.error.main,
34671
34779
  paddingTop: e.spacing(1)
34672
- })), HH = M(yn)({ color: `${A.tertiary()} !important` }), UH = M(ne)(() => ({
34780
+ })), ZH = M(yn)({ color: `${A.tertiary()} !important` }), QH = M(ne)(() => ({
34673
34781
  border: `1px solid ${A.border()}`,
34674
34782
  color: A.text()
34675
- })), WH = M(ne)(({ theme: e }) => ({
34783
+ })), $H = M(ne)(({ theme: e }) => ({
34676
34784
  marginLeft: e.spacing(2),
34677
34785
  border: `1px solid ${A.border()}`,
34678
34786
  color: A.disabled(),
34679
34787
  fontSize: "0.8rem"
34680
- })), GH = class extends F.Component {
34788
+ })), eU = class extends F.Component {
34681
34789
  static propTypes = {
34682
34790
  defaultResponse: B.default.bool,
34683
34791
  error: B.default.object,
@@ -34767,13 +34875,13 @@ var kH = OH(y, "InputContainer") || OH(MH.InputContainer, "InputContainer"), AH
34767
34875
  editor: "response-editor",
34768
34876
  mathToolbar: "math-toolbar"
34769
34877
  };
34770
- return /* @__PURE__ */ R(NH, {
34878
+ return /* @__PURE__ */ R(HH, {
34771
34879
  style: { minHeight: `${s.openCount > 0 ? 430 : 230}px` },
34772
- children: /* @__PURE__ */ z(PH, { children: [
34773
- /* @__PURE__ */ z(RH, { children: [/* @__PURE__ */ z(FH, {
34880
+ children: /* @__PURE__ */ z(UH, { children: [
34881
+ /* @__PURE__ */ z(qH, { children: [/* @__PURE__ */ z(WH, {
34774
34882
  component: "div",
34775
34883
  children: ["Response ", ""]
34776
- }), /* @__PURE__ */ R(IH, {
34884
+ }), /* @__PURE__ */ R(GH, {
34777
34885
  label: "Validation",
34778
34886
  children: /* @__PURE__ */ z(fe, {
34779
34887
  onChange: this.onChange("validation"),
@@ -34791,20 +34899,20 @@ var kH = OH(y, "InputContainer") || OH(MH.InputContainer, "InputContainer"), AH
34791
34899
  })]
34792
34900
  })
34793
34901
  })] }),
34794
- c === "literal" && /* @__PURE__ */ z(zH, { children: [i.enabled && /* @__PURE__ */ R(Zn, {
34902
+ c === "literal" && /* @__PURE__ */ z(JH, { children: [i.enabled && /* @__PURE__ */ R(Zn, {
34795
34903
  label: i.label,
34796
- control: /* @__PURE__ */ R(HH, {
34904
+ control: /* @__PURE__ */ R(ZH, {
34797
34905
  checked: f,
34798
34906
  onChange: this.onLiteralOptionsChange("allowTrailingZeros")
34799
34907
  })
34800
34908
  }), a.enabled && /* @__PURE__ */ R(Zn, {
34801
34909
  label: a.label,
34802
- control: /* @__PURE__ */ R(HH, {
34910
+ control: /* @__PURE__ */ R(ZH, {
34803
34911
  checked: d,
34804
34912
  onChange: this.onLiteralOptionsChange("ignoreOrder")
34805
34913
  })
34806
34914
  })] }),
34807
- /* @__PURE__ */ z(LH, { children: [
34915
+ /* @__PURE__ */ z(KH, { children: [
34808
34916
  /* @__PURE__ */ R(D, { children: "Correct Answer" }),
34809
34917
  /* @__PURE__ */ R(Ae, {
34810
34918
  keypadMode: e,
@@ -34817,10 +34925,10 @@ var kH = OH(y, "InputContainer") || OH(MH.InputContainer, "InputContainer"), AH
34817
34925
  onDone: this.onDone,
34818
34926
  error: o && o.answer
34819
34927
  }),
34820
- o && o.answer ? /* @__PURE__ */ R(VH, { children: o.answer }) : null
34928
+ o && o.answer ? /* @__PURE__ */ R(XH, { children: o.answer }) : null
34821
34929
  ] }),
34822
- p && Object.keys(u).map((t, n) => /* @__PURE__ */ z(LH, { children: [
34823
- /* @__PURE__ */ z(BH, { children: [/* @__PURE__ */ z(D, { children: ["Alternate", Object.keys(u).length > 1 ? ` ${n + 1}` : ""] }), /* @__PURE__ */ R(WH, {
34930
+ p && Object.keys(u).map((t, n) => /* @__PURE__ */ z(KH, { children: [
34931
+ /* @__PURE__ */ z(YH, { children: [/* @__PURE__ */ z(D, { children: ["Alternate", Object.keys(u).length > 1 ? ` ${n + 1}` : ""] }), /* @__PURE__ */ R($H, {
34824
34932
  type: "secondary",
34825
34933
  onClick: this.onRemoveAlternate(t),
34826
34934
  children: "Remove"
@@ -34836,9 +34944,9 @@ var kH = OH(y, "InputContainer") || OH(MH.InputContainer, "InputContainer"), AH
34836
34944
  onDone: this.onAlternateDone(t),
34837
34945
  error: o && o[t]
34838
34946
  }),
34839
- o && o[t] ? /* @__PURE__ */ R(VH, { children: o[t] }) : null
34947
+ o && o[t] ? /* @__PURE__ */ R(XH, { children: o[t] }) : null
34840
34948
  ] }, t)),
34841
- /* @__PURE__ */ R(UH, {
34949
+ /* @__PURE__ */ R(QH, {
34842
34950
  type: "primary",
34843
34951
  onClick: this.onAddAlternate,
34844
34952
  children: "ADD ALTERNATE"
@@ -34846,29 +34954,29 @@ var kH = OH(y, "InputContainer") || OH(MH.InputContainer, "InputContainer"), AH
34846
34954
  ] })
34847
34955
  });
34848
34956
  }
34849
- }, KH = {
34957
+ }, tU = {
34850
34958
  advanced: "Advanced Multi",
34851
34959
  simple: "Simple"
34852
- }, qH = (e = {}, t = {}) => {
34960
+ }, nU = (e = {}, t = {}) => {
34853
34961
  let { maxResponseAreas: n } = t, { responseType: r } = e, i = "";
34854
34962
  return r === "Advanced Multi" && (i = "\nThere should be at least 1 " + (n ? `and at most ${n} ` : "") + "response area" + (n ? "s" : "") + " defined."), "Validation requirements:\nAll correct answers (the primary and any alternates) should not be empty and should be unique." + i;
34855
- }, JH = (e = {}, t = {}) => ({
34963
+ }, rU = (e = {}, t = {}) => ({
34856
34964
  ...t,
34857
34965
  ...e
34858
- }), YH = E(/*#__PURE__*/ R("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"), XH = !1, ZH = M("div")({
34966
+ }), iU = E(/*#__PURE__*/ R("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"), aU = !1, oU = M("div")({
34859
34967
  display: "flex",
34860
34968
  flexDirection: "column"
34861
- }), QH = M(D)({ fontSize: "0.85rem" }), $H = M("div")({ fontSize: "1.1rem" }), eU = M("div")({
34969
+ }), sU = M(D)({ fontSize: "0.85rem" }), cU = M("div")({ fontSize: "1.1rem" }), lU = M("div")({
34862
34970
  display: "flex",
34863
34971
  alignItems: "center",
34864
34972
  justifyContent: "space-between"
34865
- }), tU = M(kH)(({ theme: e }) => ({
34973
+ }), uU = M(RH)(({ theme: e }) => ({
34866
34974
  flex: "initial",
34867
34975
  width: "40%",
34868
34976
  marginTop: e.spacing(2),
34869
34977
  marginBottom: e.spacing(2),
34870
34978
  "& > *:not(label)": { marginTop: e.spacing(1) }
34871
- })), nU = M("div")({
34979
+ })), dU = M("div")({
34872
34980
  display: "flex",
34873
34981
  flexDirection: "column",
34874
34982
  ".block-container": {
@@ -34902,28 +35010,28 @@ var kH = OH(y, "InputContainer") || OH(MH.InputContainer, "InputContainer"), AH
34902
35010
  padding: "8px"
34903
35011
  },
34904
35012
  ".math-toolbar": { maxWidth: "900px" }
34905
- }), rU = M(He)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
35013
+ }), fU = M(He)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
34906
35014
  fontSize: e.typography.fontSize - 2,
34907
35015
  whiteSpace: "pre-wrap"
34908
- } })), iU = M("div")(({ theme: e }) => ({
35016
+ } })), pU = M("div")(({ theme: e }) => ({
34909
35017
  fontSize: e.typography.fontSize - 2,
34910
35018
  color: e.palette.error.main,
34911
35019
  paddingTop: e.spacing(1)
34912
- })), aU = M(kH)(({ theme: e }) => ({
35020
+ })), mU = M(RH)(({ theme: e }) => ({
34913
35021
  width: "100%",
34914
35022
  paddingTop: e.spacing(2),
34915
35023
  marginBottom: e.spacing(2)
34916
- })), oU = M("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), sU = /{{response}}/gm, cU = /\\%response\\%/gm, lU = /\\embed\{answerBlock\}\[r\d*\]/g, uU = /\\embed\{newLine\}\[\]/g, dU = /\\newline/g;
34917
- function fU(e) {
35024
+ })), hU = M("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), gU = /{{response}}/gm, _U = /\\%response\\%/gm, vU = /\\embed\{answerBlock\}\[r\d*\]/g, yU = /\\embed\{newLine\}\[\]/g, bU = /\\newline/g;
35025
+ function xU(e) {
34918
35026
  if (e) {
34919
35027
  let t = 1;
34920
- return e.replace(sU, () => `\\embed{answerBlock}[r${t++}]`).replace(dU, "\\embed{newLine}[]");
35028
+ return e.replace(gU, () => `\\embed{answerBlock}[r${t++}]`).replace(bU, "\\embed{newLine}[]");
34921
35029
  }
34922
35030
  }
34923
- function pU(e) {
34924
- if (e) return e.replace(lU, () => "{{response}}").replace(cU, () => "{{response}}").replace(uU, () => "\\newline");
35031
+ function SU(e) {
35032
+ if (e) return e.replace(vU, () => "{{response}}").replace(_U, () => "{{response}}").replace(yU, () => "\\newline");
34925
35033
  }
34926
- var mU = class extends F.Component {
35034
+ var CU = class extends F.Component {
34927
35035
  static propTypes = {
34928
35036
  model: B.default.object.isRequired,
34929
35037
  imageSupport: B.default.object,
@@ -34939,7 +35047,7 @@ var mU = class extends F.Component {
34939
35047
  let t = {};
34940
35048
  if (e.model && e.model.expression) {
34941
35049
  let n = 1;
34942
- e.model.expression.replace(sU, () => {
35050
+ e.model.expression.replace(gU, () => {
34943
35051
  t[`r${n++}`] = { value: "" };
34944
35052
  });
34945
35053
  }
@@ -34951,7 +35059,7 @@ var mU = class extends F.Component {
34951
35059
  }
34952
35060
  onChange = (e) => (t) => {
34953
35061
  let { model: n, onChange: r } = this.props, i = { ...n };
34954
- typeof t == "object" ? i[e] = t.target.value : i[e] = t, e === "expression" && (i[e] = pU(t)), r(i);
35062
+ typeof t == "object" ? i[e] = t.target.value : i[e] = t, e === "expression" && (i[e] = SU(t)), r(i);
34955
35063
  };
34956
35064
  onDone = () => {
34957
35065
  this.setState({ showKeypad: !1 });
@@ -34963,7 +35071,7 @@ var mU = class extends F.Component {
34963
35071
  this.setState({ showKeypad: !1 });
34964
35072
  };
34965
35073
  UNSAFE_componentWillMount() {
34966
- typeof window < "u" && (XH ||= (ye("answerBlock", (e) => ({
35074
+ typeof window < "u" && (aU ||= (ye("answerBlock", (e) => ({
34967
35075
  htmlString: `
34968
35076
  <div class="block-container block-container-generic">
34969
35077
  <div class="block-response block-response-generic" id="${e}Index">Response</div>
@@ -34982,7 +35090,7 @@ var mU = class extends F.Component {
34982
35090
  let { model: e } = this.props, t = {};
34983
35091
  if (e && e.expression) {
34984
35092
  let n = 1;
34985
- e.expression.replace(sU, () => {
35093
+ e.expression.replace(gU, () => {
34986
35094
  t[`r${n++}`] = { value: "" };
34987
35095
  });
34988
35096
  }
@@ -35009,26 +35117,26 @@ var mU = class extends F.Component {
35009
35117
  i.responses[t] = e, r(i);
35010
35118
  };
35011
35119
  render() {
35012
- let { model: e, imageSupport: t, uploadSoundSupport: n, configuration: r, promptEnabled: i, rationaleEnabled: a, toolbarOpts: o } = this.props, { showKeypad: s } = this.state, { prompt: c, expression: l, equationEditor: u, promptEquationEditor: d = "8", responses: f, responseType: p, rationale: m, spellCheckEnabled: h, errors: g = {} } = e, { baseInputConfiguration: _ = {}, rationale: v = {}, prompt: y = {}, ignoreOrder: b = {}, allowTrailingZeros: x = {}, maxResponseAreas: S, maxImageWidth: C = {}, maxImageHeight: w = {}, mathMlOptions: T = {} } = r || {}, E = qH(r, e), { prompt: ee, rationale: D, responsesErrors: te, responseAreasError: ne } = g, re = C && C.prompt, O = w && w.prompt, k = {
35120
+ let { model: e, imageSupport: t, uploadSoundSupport: n, configuration: r, promptEnabled: i, rationaleEnabled: a, toolbarOpts: o } = this.props, { showKeypad: s } = this.state, { prompt: c, expression: l, equationEditor: u, promptEquationEditor: d = "8", responses: f, responseType: p, rationale: m, spellCheckEnabled: h, errors: g = {} } = e, { baseInputConfiguration: _ = {}, rationale: v = {}, prompt: y = {}, ignoreOrder: b = {}, allowTrailingZeros: x = {}, maxResponseAreas: S, maxImageWidth: C = {}, maxImageHeight: w = {}, mathMlOptions: T = {} } = r || {}, E = nU(r, e), { prompt: ee, rationale: D, responsesErrors: te, responseAreasError: ne } = g, re = C && C.prompt, O = w && w.prompt, k = {
35013
35121
  editor: "response-editor",
35014
35122
  mathToolbar: "math-toolbar"
35015
- }, ie = p === KH.advanced ? f : f.slice(0, 1), ae = /* @__PURE__ */ R(rU, {
35123
+ }, ie = p === tU.advanced ? f : f.slice(0, 1), ae = /* @__PURE__ */ R(fU, {
35016
35124
  disableFocusListener: !0,
35017
35125
  disableTouchListener: !0,
35018
35126
  placement: "right",
35019
35127
  title: E,
35020
- children: /* @__PURE__ */ R(YH, {
35128
+ children: /* @__PURE__ */ R(iU, {
35021
35129
  fontSize: "small",
35022
35130
  color: "primary",
35023
35131
  style: { marginLeft: "5px" }
35024
35132
  })
35025
35133
  });
35026
- return /* @__PURE__ */ z(ZH, {
35134
+ return /* @__PURE__ */ z(oU, {
35027
35135
  ref: (e) => this.root = e || this.root,
35028
35136
  children: [
35029
- i && /* @__PURE__ */ z(aU, {
35137
+ i && /* @__PURE__ */ z(mU, {
35030
35138
  label: y.label,
35031
- children: [/* @__PURE__ */ R(aB, {
35139
+ children: [/* @__PURE__ */ R(mB, {
35032
35140
  onFocus: this.onPromptFocus,
35033
35141
  markup: c || "",
35034
35142
  onChange: this.onChange("prompt"),
@@ -35036,21 +35144,21 @@ var mU = class extends F.Component {
35036
35144
  nonEmpty: !1,
35037
35145
  error: ee,
35038
35146
  toolbarOpts: o,
35039
- pluginProps: JH(y?.inputConfiguration, _),
35147
+ pluginProps: rU(y?.inputConfiguration, _),
35040
35148
  spellCheck: h,
35041
35149
  maxImageWidth: re,
35042
35150
  maxImageHeight: O,
35043
35151
  uploadSoundSupport: n,
35044
35152
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
35045
35153
  mathMlOptions: T
35046
- }), ee && /* @__PURE__ */ R(iU, { children: ee })]
35154
+ }), ee && /* @__PURE__ */ R(pU, { children: ee })]
35047
35155
  }),
35048
- p === KH.advanced && /* @__PURE__ */ z(oU, { children: [
35049
- /* @__PURE__ */ z(eU, {
35156
+ p === tU.advanced && /* @__PURE__ */ z(hU, { children: [
35157
+ /* @__PURE__ */ z(lU, {
35050
35158
  style: { justifyContent: "flex-start" },
35051
- children: [/* @__PURE__ */ R($H, { children: "Define Response" }), ae]
35159
+ children: [/* @__PURE__ */ R(cU, { children: "Define Response" }), ae]
35052
35160
  }),
35053
- /* @__PURE__ */ R(tU, {
35161
+ /* @__PURE__ */ R(uU, {
35054
35162
  label: "Response Template Equation Editor",
35055
35163
  children: /* @__PURE__ */ z(fe, {
35056
35164
  onChange: this.onChange("promptEquationEditor"),
@@ -35111,26 +35219,26 @@ var mU = class extends F.Component {
35111
35219
  ]
35112
35220
  })
35113
35221
  }, "templateEditorType"),
35114
- /* @__PURE__ */ z(nU, { children: [/* @__PURE__ */ R(QH, { children: "RESPONSE TEMPLATE" }), /* @__PURE__ */ R(Ae, {
35222
+ /* @__PURE__ */ z(dU, { children: [/* @__PURE__ */ R(sU, { children: "RESPONSE TEMPLATE" }), /* @__PURE__ */ R(Ae, {
35115
35223
  classNames: k,
35116
35224
  allowAnswerBlock: !0,
35117
35225
  keypadMode: d,
35118
35226
  controlledKeypad: !0,
35119
35227
  showKeypad: s,
35120
- latex: fU(l) || "",
35228
+ latex: xU(l) || "",
35121
35229
  onChange: this.onChange("expression"),
35122
35230
  onFocus: this.onFocus,
35123
35231
  onDone: this.onDone,
35124
35232
  maxResponseAreas: S,
35125
35233
  error: ne
35126
35234
  })] }, "templateHolder"),
35127
- ne && /* @__PURE__ */ R(iU, { children: ne })
35235
+ ne && /* @__PURE__ */ R(pU, { children: ne })
35128
35236
  ] }),
35129
- /* @__PURE__ */ z(eU, {
35237
+ /* @__PURE__ */ z(lU, {
35130
35238
  style: { justifyContent: "flex-start" },
35131
- children: [/* @__PURE__ */ R($H, { children: "Define Correct Response" }), p === KH.simple ? ae : null]
35239
+ children: [/* @__PURE__ */ R(cU, { children: "Define Correct Response" }), p === tU.simple ? ae : null]
35132
35240
  }),
35133
- /* @__PURE__ */ R(tU, {
35241
+ /* @__PURE__ */ R(uU, {
35134
35242
  label: "Equation Editor",
35135
35243
  children: /* @__PURE__ */ z(fe, {
35136
35244
  onChange: this.onChange("equationEditor"),
@@ -35191,26 +35299,26 @@ var mU = class extends F.Component {
35191
35299
  ]
35192
35300
  })
35193
35301
  }),
35194
- ie.map((e, t) => /* @__PURE__ */ R(GH, {
35302
+ ie.map((e, t) => /* @__PURE__ */ R(eU, {
35195
35303
  mode: u,
35196
35304
  response: e,
35197
- defaultResponse: p === KH.simple,
35305
+ defaultResponse: p === tU.simple,
35198
35306
  onResponseChange: this.onResponseChange,
35199
35307
  index: t,
35200
35308
  cIgnoreOrder: b,
35201
35309
  cAllowTrailingZeros: x,
35202
35310
  error: te && te[t]
35203
35311
  }, e.id)),
35204
- a && /* @__PURE__ */ z(aU, {
35312
+ a && /* @__PURE__ */ z(mU, {
35205
35313
  label: v.label,
35206
- children: [/* @__PURE__ */ R(aB, {
35314
+ children: [/* @__PURE__ */ R(mB, {
35207
35315
  markup: m || "",
35208
35316
  onChange: this.onChange("rationale"),
35209
35317
  imageSupport: t,
35210
35318
  nonEmpty: !1,
35211
35319
  error: D,
35212
35320
  toolbarOpts: o,
35213
- pluginProps: JH(v?.inputConfiguration, {
35321
+ pluginProps: rU(v?.inputConfiguration, {
35214
35322
  ..._,
35215
35323
  math: { controlledKeypadMode: !1 }
35216
35324
  }),
@@ -35220,20 +35328,20 @@ var mU = class extends F.Component {
35220
35328
  uploadSoundSupport: n,
35221
35329
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
35222
35330
  mathMlOptions: T
35223
- }), D && /* @__PURE__ */ R(iU, { children: D })]
35331
+ }), D && /* @__PURE__ */ R(pU, { children: D })]
35224
35332
  })
35225
35333
  ]
35226
35334
  });
35227
35335
  }
35228
- }, hU = (0, St.default)("@pie-element:math-inline:configure"), { Panel: gU, toggle: _U, radio: vU, dropdown: yU } = _H, bU = M(kH)(({ theme: e }) => ({
35336
+ }, wU = (0, St.default)("@pie-element:math-inline:configure"), { Panel: TU, toggle: EU, radio: DU, dropdown: OU } = EH, kU = M(RH)(({ theme: e }) => ({
35229
35337
  width: "100%",
35230
35338
  paddingTop: e.spacing(2),
35231
35339
  marginBottom: e.spacing(2)
35232
- })), xU = M("div")(({ theme: e }) => ({
35340
+ })), AU = M("div")(({ theme: e }) => ({
35233
35341
  fontSize: e.typography.fontSize - 2,
35234
35342
  color: e.palette.error.main,
35235
35343
  paddingTop: e.spacing(1)
35236
- })), SU = class extends I.Component {
35344
+ })), jU = class extends I.Component {
35237
35345
  static propTypes = {
35238
35346
  onModelChanged: B.default.func,
35239
35347
  onConfigurationChanged: B.default.func,
@@ -35257,28 +35365,28 @@ var mU = class extends F.Component {
35257
35365
  };
35258
35366
  render() {
35259
35367
  let { model: e, imageSupport: t, onModelChanged: n, configuration: r, onConfigurationChanged: i, uploadSoundSupport: a } = this.props, { allowTrailingZeros: o = {}, baseInputConfiguration: s = {}, contentDimensions: c = {}, feedback: l = {}, ignoreOrder: u = {}, maxImageWidth: d = {}, maxImageHeight: f = {}, prompt: p = {}, rationale: m = {}, responseType: h = {}, scoringType: g = {}, settingsPanelDisabled: _, spellCheck: v = {}, studentInstructions: y = {}, teacherInstructions: b = {}, withRubric: x = {}, mathMlOptions: S = {}, language: C = {}, languageChoices: w = {} } = r || {}, { errors: T = {}, extraCSSRules: E, feedbackEnabled: ee, promptEnabled: D, rationaleEnabled: te, spellCheckEnabled: ne, teacherInstructionsEnabled: re, toolbarEditorPosition: O } = e || {}, { teacherInstructions: k } = T;
35260
- hU("[render] model", e);
35368
+ wU("[render] model", e);
35261
35369
  let ie = { position: O === "top" ? "top" : "bottom" }, ae = d && d.prompt, oe = f && f.prompt, se = {
35262
- responseType: h.settings && vU(h.label, [KH.simple, KH.advanced]),
35263
- feedbackEnabled: l.settings && _U(l.label),
35264
- promptEnabled: p.settings && _U(p.label),
35265
- "language.enabled": C.settings && _U(C.label, !0),
35266
- language: C.settings && C.enabled && yU(w.label, w.options)
35370
+ responseType: h.settings && DU(h.label, [tU.simple, tU.advanced]),
35371
+ feedbackEnabled: l.settings && EU(l.label),
35372
+ promptEnabled: p.settings && EU(p.label),
35373
+ "language.enabled": C.settings && EU(C.label, !0),
35374
+ language: C.settings && C.enabled && OU(w.label, w.options)
35267
35375
  }, ce = {
35268
- teacherInstructionsEnabled: b.settings && _U(b.label),
35269
- studentInstructionsEnabled: y.settings && _U(y.label),
35270
- rationaleEnabled: m.settings && _U(m.label),
35271
- spellCheckEnabled: v.settings && _U(v.label),
35272
- scoringType: g.settings && vU(g.label, ["auto", "rubric"]),
35273
- "ignoreOrder.enabled": u.settings && _U(u.label),
35274
- "allowTrailingZeros.enabled": o.settings && _U(o.label),
35275
- rubricEnabled: x?.settings && _U(x?.label)
35376
+ teacherInstructionsEnabled: b.settings && EU(b.label),
35377
+ studentInstructionsEnabled: y.settings && EU(y.label),
35378
+ rationaleEnabled: m.settings && EU(m.label),
35379
+ spellCheckEnabled: v.settings && EU(v.label),
35380
+ scoringType: g.settings && DU(g.label, ["auto", "rubric"]),
35381
+ "ignoreOrder.enabled": u.settings && EU(u.label),
35382
+ "allowTrailingZeros.enabled": o.settings && EU(o.label),
35383
+ rubricEnabled: x?.settings && EU(x?.label)
35276
35384
  };
35277
- return /* @__PURE__ */ z(HV.ConfigLayout, {
35385
+ return /* @__PURE__ */ z(ZV.ConfigLayout, {
35278
35386
  extraCSSRules: E,
35279
35387
  dimensions: c,
35280
35388
  hideSettings: _,
35281
- settings: /* @__PURE__ */ R(gU, {
35389
+ settings: /* @__PURE__ */ R(TU, {
35282
35390
  model: e,
35283
35391
  configuration: r,
35284
35392
  onChangeModel: (e) => n(e),
@@ -35289,25 +35397,25 @@ var mU = class extends F.Component {
35289
35397
  }
35290
35398
  }),
35291
35399
  children: [
35292
- re && /* @__PURE__ */ z(bU, {
35400
+ re && /* @__PURE__ */ z(kU, {
35293
35401
  label: b.label,
35294
- children: [/* @__PURE__ */ R(aB, {
35402
+ children: [/* @__PURE__ */ R(mB, {
35295
35403
  markup: e.teacherInstructions || "",
35296
35404
  onChange: this.changeTeacherInstructions,
35297
35405
  imageSupport: t,
35298
35406
  nonEmpty: !1,
35299
35407
  error: k,
35300
35408
  toolbarOpts: ie,
35301
- pluginProps: JH(b?.inputConfiguration, s),
35409
+ pluginProps: rU(b?.inputConfiguration, s),
35302
35410
  spellCheck: ne,
35303
35411
  maxImageWidth: d && d.teacherInstructions || ae,
35304
35412
  maxImageHeight: f && f.teacherInstructions || oe,
35305
35413
  uploadSoundSupport: a,
35306
35414
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
35307
35415
  mathMlOptions: S
35308
- }), k && /* @__PURE__ */ R(xU, { children: k })]
35416
+ }), k && /* @__PURE__ */ R(AU, { children: k })]
35309
35417
  }),
35310
- /* @__PURE__ */ R(mU, {
35418
+ /* @__PURE__ */ R(CU, {
35311
35419
  imageSupport: t,
35312
35420
  uploadSoundSupport: a,
35313
35421
  model: e,
@@ -35318,7 +35426,7 @@ var mU = class extends F.Component {
35318
35426
  toolbarOpts: ie,
35319
35427
  spellCheck: ne
35320
35428
  }),
35321
- ee && /* @__PURE__ */ R(TB, {
35429
+ ee && /* @__PURE__ */ R(PB, {
35322
35430
  feedback: e.feedback,
35323
35431
  onChange: this.onFeedbackChange,
35324
35432
  toolbarOpts: ie
@@ -35326,7 +35434,7 @@ var mU = class extends F.Component {
35326
35434
  ]
35327
35435
  });
35328
35436
  }
35329
- }, CU = class e extends CustomEvent {
35437
+ }, MU = class e extends CustomEvent {
35330
35438
  static {
35331
35439
  this.TYPE = "model.updated";
35332
35440
  }
@@ -35339,7 +35447,7 @@ var mU = class extends F.Component {
35339
35447
  }
35340
35448
  }), this.update = t, this.reset = n;
35341
35449
  }
35342
- }, wU = class e extends CustomEvent {
35450
+ }, NU = class e extends CustomEvent {
35343
35451
  static {
35344
35452
  this.TYPE = "delete.image";
35345
35453
  }
@@ -35352,7 +35460,7 @@ var mU = class extends F.Component {
35352
35460
  }
35353
35461
  }), this.src = t, this.done = n;
35354
35462
  }
35355
- }, TU = class e extends CustomEvent {
35463
+ }, PU = class e extends CustomEvent {
35356
35464
  static {
35357
35465
  this.TYPE = "insert.image";
35358
35466
  }
@@ -35362,7 +35470,7 @@ var mU = class extends F.Component {
35362
35470
  detail: t
35363
35471
  }), this.handler = t;
35364
35472
  }
35365
- }, EU = class e extends CustomEvent {
35473
+ }, FU = class e extends CustomEvent {
35366
35474
  static {
35367
35475
  this.TYPE = "delete.sound";
35368
35476
  }
@@ -35375,7 +35483,7 @@ var mU = class extends F.Component {
35375
35483
  }
35376
35484
  }), this.src = t, this.done = n;
35377
35485
  }
35378
- }, DU = class e extends CustomEvent {
35486
+ }, IU = class e extends CustomEvent {
35379
35487
  static {
35380
35488
  this.TYPE = "insert.sound";
35381
35489
  }
@@ -35385,7 +35493,7 @@ var mU = class extends F.Component {
35385
35493
  detail: t
35386
35494
  }), this.handler = t;
35387
35495
  }
35388
- }, OU = {
35496
+ }, LU = {
35389
35497
  model: {
35390
35498
  allowTrailingZerosDefault: !1,
35391
35499
  customKeys: [],
@@ -35412,7 +35520,7 @@ var mU = class extends F.Component {
35412
35520
  promptEnabled: !0,
35413
35521
  rationale: "",
35414
35522
  rationaleEnabled: !0,
35415
- responseType: KH.advanced,
35523
+ responseType: tU.advanced,
35416
35524
  responses: [],
35417
35525
  scoringType: "auto",
35418
35526
  studentInstructionsEnabled: !0,
@@ -35525,25 +35633,25 @@ var mU = class extends F.Component {
35525
35633
  options: []
35526
35634
  }
35527
35635
  }
35528
- }, kU = (0, St.default)("pie-elements:math-inline:configure"), AU = class e extends HTMLElement {
35636
+ }, RU = (0, St.default)("pie-elements:math-inline:configure"), zU = class e extends HTMLElement {
35529
35637
  static createDefaultModel = (e = {}) => (t(e.responses) || (e.responses = e.responses.map((e) => ({
35530
35638
  ...e,
35531
- validation: e.validation || OU.model.validationDefault,
35532
- allowTrailingZeros: e.allowTrailingZeros || OU.model.allowTrailingZerosDefault,
35533
- ignoreOrder: e.ignoreOrder || OU.model.ignoreOrderDefault || !1
35639
+ validation: e.validation || LU.model.validationDefault,
35640
+ allowTrailingZeros: e.allowTrailingZeros || LU.model.allowTrailingZerosDefault,
35641
+ ignoreOrder: e.ignoreOrder || LU.model.ignoreOrderDefault || !1
35534
35642
  }))), {
35535
- ...OU.model,
35643
+ ...LU.model,
35536
35644
  ...e
35537
35645
  });
35538
35646
  constructor() {
35539
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = OU.configuration;
35647
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = LU.configuration;
35540
35648
  }
35541
35649
  set model(t) {
35542
35650
  this._model = e.createDefaultModel(t), this._render();
35543
35651
  }
35544
35652
  set configuration(e) {
35545
35653
  let t = {
35546
- ...OU.configuration,
35654
+ ...LU.configuration,
35547
35655
  ...e
35548
35656
  };
35549
35657
  this._configuration = t, t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
@@ -35552,26 +35660,26 @@ var mU = class extends F.Component {
35552
35660
  })) : delete this._model.language, this._render();
35553
35661
  }
35554
35662
  onModelChanged(e) {
35555
- this._model = e, kU("[onModelChanged]: ", this._model), this._render(), this.dispatchEvent(new CU(this._model));
35663
+ this._model = e, RU("[onModelChanged]: ", this._model), this._render(), this.dispatchEvent(new MU(this._model));
35556
35664
  }
35557
35665
  onConfigurationChanged(e) {
35558
35666
  this._configuration = e, this._model && this.onModelChanged(this._model), this._render();
35559
35667
  }
35560
35668
  insertImage(e) {
35561
- this.dispatchEvent(new TU(e));
35669
+ this.dispatchEvent(new PU(e));
35562
35670
  }
35563
35671
  onDeleteImage(e, t) {
35564
- this.dispatchEvent(new wU(e, t));
35672
+ this.dispatchEvent(new NU(e, t));
35565
35673
  }
35566
35674
  insertSound(e) {
35567
- this.dispatchEvent(new DU(e));
35675
+ this.dispatchEvent(new IU(e));
35568
35676
  }
35569
35677
  onDeleteSound(e, t) {
35570
- this.dispatchEvent(new EU(e, t));
35678
+ this.dispatchEvent(new FU(e, t));
35571
35679
  }
35572
35680
  _render() {
35573
35681
  if (this._model) {
35574
- let e = I.createElement(SU, {
35682
+ let e = I.createElement(jU, {
35575
35683
  onModelChanged: this.onModelChanged.bind(this),
35576
35684
  onConfigurationChanged: this.onConfigurationChanged.bind(this),
35577
35685
  model: this._model,
@@ -35596,6 +35704,6 @@ var mU = class extends F.Component {
35596
35704
  }
35597
35705
  };
35598
35706
  //#endregion
35599
- export { AU as default };
35707
+ export { zU as default };
35600
35708
 
35601
35709
  //# sourceMappingURL=index.js.map