@pie-element/ebsr 14.2.2-next.7 → 14.2.2-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, H as p, Ht as m, I as h, It as g, J as _, K as v, L as y, Lt as b, M as x, Mt as S, Nt as C, O as w, Ot as ee, P as T, Pt as te, Q as E, R as ne, Rt as D, S as O, St as k, T as re, Tt as ie, U as ae, Ut as oe, V as se, Vt as ce, W as A, X as le, Y as ue, Z 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 ye, et as be, f as xe, ft as Se, gt as Ce, ht as we, i as Te, it as Ee, j as De, jt as j, k as Oe, kt as ke, l as Ae, lt as je, m as Me, mt as Ne, nt as Pe, o as Fe, ot as Ie, p as Le, pt as Re, q as ze, r as Be, rt as Ve, s as He, st as Ue, t as We, tt as Ge, u as Ke, ut as qe, w as Je, wt as Ye, x as Xe, xt as M, y as Ze, z as Qe, zt as $e } from "../private-tags-oMTlCqvY.js";
1
+ import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, H as p, Ht as m, I as h, It as g, J as _, K as v, L as y, Lt as b, M as x, Mt as S, Nt as C, O as w, Ot as ee, P as T, Pt as te, Q as E, R as ne, Rt as D, S as O, St as k, T as re, Tt as ie, U as ae, Ut as oe, V as se, Vt as ce, W as A, X as le, Y as ue, Z 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 ye, et as be, f as xe, ft as Se, gt as Ce, ht as we, i as Te, it as Ee, j as De, jt as j, k as Oe, kt as ke, l as Ae, lt as je, m as Me, mt as Ne, nt as Pe, o as Fe, ot as Ie, p as Le, pt as Re, q as ze, r as Be, rt as Ve, s as He, st as Ue, t as We, tt as Ge, u as Ke, ut as qe, w as Je, wt as Ye, x as Xe, xt as M, y as Ze, z as Qe, zt as $e } from "../private-tags-DgZL9Tec.js";
2
2
  import { a as et, c as tt, d as nt, f as rt, h as it, i as at, l as ot, m as st, n as ct, o as lt, p as ut, r as dt, s as ft, t as pt, u as mt } from "../dist-CHbLnyuX.js";
3
3
  import * as N from "react";
4
4
  import ht, { Component as gt, createContext as _t, createElement as vt, createRef as yt, forwardRef as bt, memo as xt, useCallback as St, useContext as Ct, useDebugValue as wt, useEffect as Tt, useLayoutEffect as Et, useMemo as Dt, useRef as Ot, useState as kt, version as At } from "react";
@@ -38868,8 +38868,8 @@ Ym.create({
38868
38868
  })) ?? null };
38869
38869
  }
38870
38870
  });
38871
- var bq = "placeholder", xq = new ea("tiptap__placeholder"), Sq = 200;
38872
- function Cq(e) {
38871
+ var bq = "placeholder", xq = new ea("tiptap__placeholder");
38872
+ function Sq(e) {
38873
38873
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
38874
38874
  return o && u.push(l), Zu.node(i, i + a.nodeSize, {
38875
38875
  class: u.join(" "),
@@ -38881,156 +38881,198 @@ function Cq(e) {
38881
38881
  }) : n
38882
38882
  });
38883
38883
  }
38884
- function wq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38884
+ function Cq(e, t) {
38885
+ return typeof e == "function" ? e(t) : e;
38886
+ }
38887
+ function wq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
38888
+ let { anchor: s } = i, c = [], l = e.isEmpty;
38889
+ return r.nodesBetween(a, o, (r, i) => {
38890
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && rm(r);
38891
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(Sq({
38892
+ editor: e,
38893
+ isEmptyDoc: l,
38894
+ dataAttribute: n,
38895
+ hasAnchor: a,
38896
+ placeholder: t.placeholder,
38897
+ classes: {
38898
+ emptyEditor: t.emptyEditorClass,
38899
+ emptyNode: Cq(t.emptyNodeClass, {
38900
+ editor: e,
38901
+ node: r,
38902
+ pos: i,
38903
+ hasAnchor: a
38904
+ })
38905
+ },
38906
+ node: r,
38907
+ pos: i
38908
+ })), t.includeChildren;
38909
+ }), c;
38910
+ }
38911
+ function Tq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38885
38912
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
38886
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
38887
- emptyEditor: t.emptyEditorClass,
38888
- emptyNode: t.emptyNodeClass
38889
- };
38913
+ let { anchor: a } = i, o = [], s = e.isEmpty;
38890
38914
  if (t.showOnlyCurrent && !t.includeChildren) {
38891
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
38892
- if (l && l.type.isTextblock && rm(l)) {
38893
- let r = a >= u && a <= u + l.nodeSize;
38894
- o.push(Cq({
38915
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
38916
+ if (c && c.type.isTextblock && rm(c)) {
38917
+ let r = a >= l && a <= l + c.nodeSize;
38918
+ o.push(Sq({
38895
38919
  editor: e,
38896
38920
  isEmptyDoc: s,
38897
38921
  dataAttribute: n,
38898
38922
  hasAnchor: r,
38899
38923
  placeholder: t.placeholder,
38900
- classes: c,
38901
- node: l,
38902
- pos: u
38924
+ classes: {
38925
+ emptyEditor: t.emptyEditorClass,
38926
+ emptyNode: Cq(t.emptyNodeClass, {
38927
+ editor: e,
38928
+ node: c,
38929
+ pos: l,
38930
+ hasAnchor: r
38931
+ })
38932
+ },
38933
+ node: c,
38934
+ pos: l
38903
38935
  }));
38904
38936
  }
38905
- } else {
38906
- let i = xq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
38907
- r.nodesBetween(l, u, (r, i) => {
38908
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && rm(r);
38909
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(Cq({
38910
- editor: e,
38911
- isEmptyDoc: s,
38912
- dataAttribute: n,
38913
- hasAnchor: l,
38914
- placeholder: t.placeholder,
38915
- classes: c,
38916
- node: r,
38917
- pos: i
38918
- })), t.includeChildren;
38919
- });
38920
- }
38937
+ } else o.push(...wq({
38938
+ editor: e,
38939
+ options: t,
38940
+ dataAttribute: n,
38941
+ doc: r,
38942
+ selection: i,
38943
+ from: 0,
38944
+ to: r.content.size
38945
+ }));
38921
38946
  return ed.create(r, o);
38922
38947
  }
38923
- function Tq(e) {
38924
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
38948
+ function Eq(e, t) {
38949
+ let n = e.resolve(t);
38950
+ if (n.depth === 0) {
38951
+ let e = n.nodeAfter ?? n.nodeBefore;
38952
+ if (!e) return {
38953
+ from: t,
38954
+ to: t
38955
+ };
38956
+ let r = n.nodeAfter ? t : t - e.nodeSize;
38957
+ return {
38958
+ from: r,
38959
+ to: r + e.nodeSize
38960
+ };
38961
+ }
38962
+ let r = n.before(1);
38963
+ return {
38964
+ from: r,
38965
+ to: r + n.node(1).nodeSize
38966
+ };
38925
38967
  }
38926
- function Eq(e) {
38927
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
38928
- return /auto|scroll|overlay/.test(n);
38968
+ function Dq(e, t) {
38969
+ return {
38970
+ from: Math.max(0, t.from - 1),
38971
+ to: Math.min(e.content.size, t.to - 1)
38972
+ };
38929
38973
  }
38930
- function Dq(e) {
38931
- let t = e;
38932
- for (; t;) {
38933
- if (Eq(t)) return t;
38934
- let e = t.parentElement;
38935
- if (!e) {
38936
- let e = t.getRootNode();
38937
- if (e instanceof ShadowRoot) {
38938
- t = e.host;
38939
- continue;
38940
- }
38941
- return window;
38942
- }
38943
- t = e;
38974
+ function Oq(e, t, n) {
38975
+ let r = [];
38976
+ return e.forEach((e, i) => {
38977
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
38978
+ s < n && c > t && r.push({
38979
+ from: a,
38980
+ to: o
38981
+ });
38982
+ }), r;
38983
+ }
38984
+ function kq(e) {
38985
+ if (e.length === 0) return [];
38986
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
38987
+ for (let e = 1; e < t.length; e += 1) {
38988
+ let r = n[n.length - 1], i = t[e];
38989
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
38944
38990
  }
38945
- return window;
38991
+ return n;
38946
38992
  }
38947
- function Oq(e) {
38948
- return e === window ? {
38949
- top: 0,
38950
- bottom: window.innerHeight
38951
- } : e.getBoundingClientRect();
38993
+ function Aq(e, t) {
38994
+ let n = Oq(e, t.from, t.to);
38995
+ return n.push(Dq(e, Eq(e, t.from))), t.to > t.from ? n.push(Dq(e, Eq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(Dq(e, Eq(e, Math.min(t.from + 1, e.content.size)))), n;
38952
38996
  }
38953
- function kq({ doc: e, view: t, scrollContainer: n }) {
38954
- let r = t.dom.getBoundingClientRect(), i = n ? Oq(n) : {
38955
- top: 0,
38956
- bottom: window.innerHeight
38957
- }, a = Math.max(r.top, i.top) - Sq, o = Math.min(r.bottom, i.bottom) + Sq;
38958
- if (a >= o) return {
38959
- top: 0,
38960
- bottom: e.content.size
38961
- };
38962
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
38963
- left: s,
38964
- top: a + 2
38965
- }), l = t.posAtCoords({
38966
- left: s,
38967
- top: o - 2
38968
- });
38969
- return {
38970
- top: c ? c.pos : 0,
38971
- bottom: l ? l.pos : e.content.size
38972
- };
38997
+ function jq(e, t, n) {
38998
+ let r = [];
38999
+ if (e.docChanged) {
39000
+ let t = Kp(e);
39001
+ for (let e of t) r.push(...Aq(n.doc, e.newRange));
39002
+ }
39003
+ return e.selectionSet && (r.push(Dq(n.doc, Eq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(Dq(n.doc, Eq(n.doc, n.selection.anchor)))), kq(r);
38973
39004
  }
38974
- var Aq = {
38975
- init() {
38976
- return {
38977
- topPos: null,
38978
- bottomPos: null
38979
- };
38980
- },
38981
- apply(e, t) {
38982
- let n = e.getMeta(xq);
38983
- return n?.positions ? {
38984
- topPos: n.positions.top,
38985
- bottomPos: n.positions.bottom
38986
- } : e.docChanged ? {
38987
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
38988
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
38989
- } : t;
39005
+ function Mq(e, t, n) {
39006
+ let r = Math.max(0, Math.min(e, n.content.size));
39007
+ return {
39008
+ from: r,
39009
+ to: Math.max(r, Math.min(t, n.content.size))
39010
+ };
39011
+ }
39012
+ function Nq({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
39013
+ let s = e;
39014
+ for (let e of t) {
39015
+ let { from: t, to: c } = Mq(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
39016
+ l.length && (s = s.remove(l));
39017
+ let u = wq({
39018
+ editor: n,
39019
+ options: r,
39020
+ dataAttribute: i,
39021
+ doc: a,
39022
+ selection: o,
39023
+ from: t,
39024
+ to: c
39025
+ });
39026
+ u.length && (s = s.add(a, u));
38990
39027
  }
38991
- };
38992
- function jq(e) {
38993
- let t = Dq(e.dom), n = () => {
38994
- let n = kq({
38995
- view: e,
38996
- doc: e.state.doc,
38997
- scrollContainer: t
38998
- }), r = xq.getState(e.state);
38999
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
39000
- let i = e.state.tr.setMeta(xq, { positions: n });
39001
- e.dispatch(i);
39002
- }, r = null, i = 0, a = () => {
39003
- r === null && (r = requestAnimationFrame(() => {
39004
- r = null;
39005
- let e = performance.now();
39006
- e - i >= 150 ? (i = e, n()) : a();
39007
- }));
39008
- };
39009
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
39010
- update(t, n) {
39011
- e.state.doc.content.size !== n.doc.content.size && a();
39028
+ return s;
39029
+ }
39030
+ function Pq({ editor: e, options: t, dataAttribute: n }) {
39031
+ return {
39032
+ init(r, i) {
39033
+ return Tq({
39034
+ editor: e,
39035
+ options: t,
39036
+ dataAttribute: n,
39037
+ doc: i.doc,
39038
+ selection: i.selection
39039
+ }) ?? ed.empty;
39012
39040
  },
39013
- destroy: () => {
39014
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39041
+ apply(r, i, a, o) {
39042
+ return !r.docChanged && !r.selectionSet ? i : Nq({
39043
+ decorations: i.map(r.mapping, r.doc),
39044
+ ranges: jq(r, a, o),
39045
+ editor: e,
39046
+ options: t,
39047
+ dataAttribute: n,
39048
+ doc: o.doc,
39049
+ selection: o.selection
39050
+ });
39015
39051
  }
39016
39052
  };
39017
39053
  }
39018
- function Mq({ editor: e, options: t }) {
39019
- let n = t.dataAttribute ? `data-${Tq(t.dataAttribute)}` : `data-${bq}`;
39054
+ function Fq(e) {
39055
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39056
+ }
39057
+ function Iq({ editor: e, options: t }) {
39058
+ let n = t.dataAttribute ? `data-${Fq(t.dataAttribute)}` : `data-${bq}`, r = t.showOnlyCurrent && !t.includeChildren;
39020
39059
  return new V({
39021
39060
  key: xq,
39022
- state: Aq,
39023
- view: jq,
39024
- props: { decorations: ({ doc: r, selection: i }) => wq({
39061
+ ...r ? {} : { state: Pq({
39062
+ editor: e,
39063
+ options: t,
39064
+ dataAttribute: n
39065
+ }) },
39066
+ props: { decorations: r ? ({ doc: r, selection: i }) => Tq({
39025
39067
  editor: e,
39026
39068
  options: t,
39027
39069
  dataAttribute: n,
39028
39070
  doc: r,
39029
39071
  selection: i
39030
- }) }
39072
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? ed.empty : xq.getState(n) ?? ed.empty }
39031
39073
  });
39032
39074
  }
39033
- var Nq = Ym.create({
39075
+ var Lq = Ym.create({
39034
39076
  name: "placeholder",
39035
39077
  addOptions() {
39036
39078
  return {
@@ -39044,12 +39086,25 @@ var Nq = Ym.create({
39044
39086
  };
39045
39087
  },
39046
39088
  addProseMirrorPlugins() {
39047
- return [Mq({
39089
+ return [Iq({
39048
39090
  editor: this.editor,
39049
39091
  options: this.options
39050
39092
  })];
39051
39093
  }
39052
39094
  });
39095
+ function Rq(e, t) {
39096
+ return !e.selection.empty && !im(e.selection) && t.isEditable;
39097
+ }
39098
+ function zq(e, t) {
39099
+ return Rq(e, t) && !t.isFocused && !t.view.dragging;
39100
+ }
39101
+ function Bq() {
39102
+ var e;
39103
+ (e = window.getSelection()) == null || e.removeAllRanges();
39104
+ }
39105
+ function Vq(e) {
39106
+ e.focus();
39107
+ }
39053
39108
  Ym.create({
39054
39109
  name: "selection",
39055
39110
  addOptions() {
@@ -39059,13 +39114,25 @@ Ym.create({
39059
39114
  let { editor: e, options: t } = this;
39060
39115
  return [new V({
39061
39116
  key: new ea("selection"),
39062
- props: { decorations(n) {
39063
- return n.selection.empty || e.isFocused || !e.isEditable || im(n.selection) || e.view.dragging ? null : ed.create(n.doc, [Zu.inline(n.selection.from, n.selection.to, { class: t.className })]);
39064
- } }
39117
+ props: {
39118
+ decorations(n) {
39119
+ return zq(n, e) ? ed.create(n.doc, [Zu.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39120
+ },
39121
+ handleDOMEvents: {
39122
+ blur(t) {
39123
+ return Rq(t.state, e) && Bq(), !1;
39124
+ },
39125
+ focus(t) {
39126
+ return Rq(t.state, e) && requestAnimationFrame(() => {
39127
+ !e.isDestroyed && t.hasFocus() && Vq(t);
39128
+ }), !1;
39129
+ }
39130
+ }
39131
+ }
39065
39132
  })];
39066
39133
  }
39067
39134
  });
39068
- function Pq({ types: e, node: t }) {
39135
+ function Hq({ types: e, node: t }) {
39069
39136
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39070
39137
  }
39071
39138
  Ym.create({
@@ -39087,7 +39154,7 @@ Ym.create({
39087
39154
  state: {
39088
39155
  init: (e, t) => {
39089
39156
  let r = t.tr.doc.lastChild;
39090
- return !Pq({
39157
+ return !Hq({
39091
39158
  node: r,
39092
39159
  types: n
39093
39160
  });
@@ -39095,7 +39162,7 @@ Ym.create({
39095
39162
  apply: (e, t) => {
39096
39163
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39097
39164
  let r = e.doc.lastChild;
39098
- return !Pq({
39165
+ return !Hq({
39099
39166
  node: r,
39100
39167
  types: n
39101
39168
  });
@@ -39130,7 +39197,7 @@ Ym.create({
39130
39197
  };
39131
39198
  }
39132
39199
  });
39133
- var Fq = Vm.create({
39200
+ var Uq = Vm.create({
39134
39201
  name: "superscript",
39135
39202
  addOptions() {
39136
39203
  return { HTMLAttributes: {} };
@@ -39160,7 +39227,7 @@ var Fq = Vm.create({
39160
39227
  addKeyboardShortcuts() {
39161
39228
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
39162
39229
  }
39163
- }), Iq = Vm.create({
39230
+ }), Wq = Vm.create({
39164
39231
  name: "subscript",
39165
39232
  addOptions() {
39166
39233
  return { HTMLAttributes: {} };
@@ -39190,7 +39257,7 @@ var Fq = Vm.create({
39190
39257
  addKeyboardShortcuts() {
39191
39258
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
39192
39259
  }
39193
- }), Lq = Ym.create({
39260
+ }), Gq = Ym.create({
39194
39261
  name: "textAlign",
39195
39262
  addOptions() {
39196
39263
  return {
@@ -39232,7 +39299,7 @@ var Fq = Vm.create({
39232
39299
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
39233
39300
  };
39234
39301
  }
39235
- }), Rq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, zq = Th.create({
39302
+ }), Kq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, qq = Th.create({
39236
39303
  name: "image",
39237
39304
  addOptions() {
39238
39305
  return {
@@ -39325,7 +39392,7 @@ var Fq = Vm.create({
39325
39392
  },
39326
39393
  addInputRules() {
39327
39394
  return [dh({
39328
- find: Rq,
39395
+ find: Kq,
39329
39396
  type: this.type,
39330
39397
  getAttributes: (e) => {
39331
39398
  let [, , t, n, r] = e;
@@ -39337,17 +39404,17 @@ var Fq = Vm.create({
39337
39404
  }
39338
39405
  })];
39339
39406
  }
39340
- }), Bq = Nq, Vq = {
39407
+ }), Jq = Lq, Yq = {
39341
39408
  position: "bottom",
39342
39409
  alignment: "left",
39343
39410
  alwaysVisible: !1,
39344
39411
  showDone: !0,
39345
39412
  doneOn: "blur"
39346
- }, Hq = {
39413
+ }, Xq = {
39347
39414
  options: {},
39348
39415
  respAreaToolbar: () => {},
39349
39416
  onHandleAreaChange: () => {}
39350
- }, Uq = [
39417
+ }, Zq = [
39351
39418
  "bold",
39352
39419
  "italic",
39353
39420
  "underline",
@@ -39369,7 +39436,7 @@ var Fq = Vm.create({
39369
39436
  "h3",
39370
39437
  "undo",
39371
39438
  "redo"
39372
- ], Wq = {
39439
+ ], Qq = {
39373
39440
  "--white": "#fff",
39374
39441
  "--black": "#2e2b29",
39375
39442
  "--black-contrast": "#110f0e",
@@ -39388,14 +39455,18 @@ var Fq = Vm.create({
39388
39455
  "--red": "#ff5c33",
39389
39456
  "--red-light": "#ffebe5",
39390
39457
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
39391
- }, Gq = (e) => {
39458
+ }, $q = (e) => ({
39459
+ spellcheck: e ? "true" : "false",
39460
+ autocorrect: e ? "on" : "off",
39461
+ autocapitalize: e ? "on" : "off"
39462
+ }), eJ = (e) => {
39392
39463
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = kt([]), [a, o] = kt(!1), { toolbarOpts: s } = e, c = St((e) => {
39393
39464
  i((t) => {
39394
39465
  let n = t.filter((t) => t.pos !== e);
39395
39466
  return n.length === 0 && o(!1), n;
39396
39467
  });
39397
39468
  }, [i]), l = {
39398
- ...Vq,
39469
+ ...Yq,
39399
39470
  ...s
39400
39471
  }, u = St((t) => {
39401
39472
  let n = t.getHTML();
@@ -39406,13 +39477,13 @@ var Fq = Vm.create({
39406
39477
  e.onDone,
39407
39478
  l.doneOn
39408
39479
  ]), d = Dt(() => ({
39409
- ...Hq,
39480
+ ...Xq,
39410
39481
  ...e.responseAreaProps,
39411
39482
  onInlineDropdownToolbarClose: u
39412
39483
  }), [e.responseAreaProps, u]), f = Dt(() => {
39413
39484
  let { customPlugins: t, ...n } = e.pluginProps || {};
39414
39485
  t ||= [];
39415
- let r = (e.activePlugins || Uq)?.filter((e) => {
39486
+ let r = (e.activePlugins || Zq)?.filter((e) => {
39416
39487
  let t = Wt[e] || e, r = n[t] || {};
39417
39488
  return !r || !r.disabled;
39418
39489
  });
@@ -39430,103 +39501,112 @@ var Fq = Vm.create({
39430
39501
  setKeypadInteraction: {},
39431
39502
  media: {}
39432
39503
  });
39433
- }, [e, d.type]), p = LC({
39434
- extensions: [
39435
- Lq.configure({
39436
- types: [
39437
- "heading",
39438
- "paragraph",
39439
- "div",
39440
- "headingParagraph",
39441
- "h1",
39442
- "h2",
39443
- "h3",
39444
- "h4",
39445
- "h5",
39446
- "h6",
39447
- "td",
39448
- "th"
39449
- ],
39450
- alignments: [
39451
- "left",
39452
- "right",
39453
- "center",
39454
- "justify"
39455
- ]
39456
- }),
39457
- vq,
39458
- yq.configure({ limit: e.charactersLimit || 1e6 }),
39459
- cq.configure({ trailingNode: {
39504
+ }, [e, d.type]), p = [
39505
+ Gq.configure({
39506
+ types: [
39507
+ "heading",
39508
+ "paragraph",
39509
+ "div",
39510
+ "headingParagraph",
39511
+ "h1",
39512
+ "h2",
39513
+ "h3",
39514
+ "h4",
39515
+ "h5",
39516
+ "h6",
39517
+ "td",
39518
+ "th"
39519
+ ],
39520
+ alignments: [
39521
+ "left",
39522
+ "right",
39523
+ "center",
39524
+ "justify"
39525
+ ]
39526
+ }),
39527
+ vq,
39528
+ yq.configure({ limit: e.charactersLimit || 1e6 }),
39529
+ cq.configure({
39530
+ trailingNode: {
39460
39531
  node: "paragraph",
39461
39532
  notAfter: ["paragraph", "div"]
39462
- } }),
39463
- lI,
39464
- rS,
39465
- uI,
39466
- iS,
39467
- aS,
39468
- Bq.configure({
39469
- placeholder: e.placeholder,
39470
- showOnlyWhenEditable: !0,
39471
- showOnlyCurrent: !1,
39472
- includeChildren: !0
39473
- }),
39474
- $x,
39475
- Lx,
39476
- nS,
39477
- tS,
39478
- RA.configure(d),
39479
- zA.configure(d),
39480
- VA.configure(d),
39481
- HA.configure(d),
39482
- BA.configure(d),
39483
- XM.configure({
39484
- toolbarOpts: l,
39485
- math: e.pluginProps?.math || {}
39486
- }),
39487
- Iq,
39488
- Fq,
39489
- zq,
39490
- cP.configure({
39491
- toolbarOpts: l,
39492
- imageHandling: {
39493
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39494
- onDone: (t) => e.onDone?.(t.getHTML()),
39495
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39496
- let { src: n } = t.attrs;
39497
- e.imageSupport.delete(n, (e) => {
39498
- c(t.pos);
39499
- });
39500
- }),
39501
- insertImageRequested: e.imageSupport && ((t, n, r) => {
39502
- let [o, s] = n, l = (n) => {
39503
- let r;
39504
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39505
- };
39506
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
39507
- let n = r(l), i = tt(() => {
39508
- let e = () => window.removeEventListener("focus", i);
39509
- if (!t._insertingImage) {
39510
- e();
39511
- return;
39512
- }
39513
- c(s), t._insertingImage = !1, e();
39514
- }, 500);
39515
- window.addEventListener("focus", i), e.imageSupport.add(n);
39516
- })();
39517
- }),
39518
- maxImageWidth: e.maxImageWidth,
39519
- maxImageHeight: e.maxImageHeight
39520
- },
39521
- limit: 3
39522
- }),
39523
- dF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39524
- OF.configure({ extraCSSRules: e.extraCSSRules })
39525
- ],
39533
+ },
39534
+ link: {
39535
+ autolink: !1,
39536
+ linkOnPaste: !1
39537
+ }
39538
+ }),
39539
+ lI,
39540
+ rS,
39541
+ uI,
39542
+ iS,
39543
+ aS,
39544
+ Jq.configure({
39545
+ placeholder: e.placeholder,
39546
+ showOnlyWhenEditable: !0,
39547
+ showOnlyCurrent: !1,
39548
+ includeChildren: !0
39549
+ }),
39550
+ $x,
39551
+ Lx,
39552
+ nS,
39553
+ tS,
39554
+ RA.configure(d),
39555
+ zA.configure(d),
39556
+ VA.configure(d),
39557
+ HA.configure(d),
39558
+ BA.configure(d),
39559
+ XM.configure({
39560
+ toolbarOpts: l,
39561
+ math: e.pluginProps?.math || {}
39562
+ }),
39563
+ Wq,
39564
+ Uq,
39565
+ qq,
39566
+ cP.configure({
39567
+ toolbarOpts: l,
39568
+ imageHandling: {
39569
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39570
+ onDone: (t) => e.onDone?.(t.getHTML()),
39571
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39572
+ let { src: n } = t.attrs;
39573
+ e.imageSupport.delete(n, (e) => {
39574
+ c(t.pos);
39575
+ });
39576
+ }),
39577
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39578
+ let [o, s] = n, l = (n) => {
39579
+ let r;
39580
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39581
+ };
39582
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39583
+ let n = r(l), i = tt(() => {
39584
+ let e = () => window.removeEventListener("focus", i);
39585
+ if (!t._insertingImage) {
39586
+ e();
39587
+ return;
39588
+ }
39589
+ c(s), t._insertingImage = !1, e();
39590
+ }, 500);
39591
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39592
+ })();
39593
+ }),
39594
+ maxImageWidth: e.maxImageWidth,
39595
+ maxImageHeight: e.maxImageHeight
39596
+ },
39597
+ limit: 3
39598
+ }),
39599
+ dF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39600
+ OF.configure({ extraCSSRules: e.extraCSSRules })
39601
+ ], m = e.spellCheck !== !1, h = LC({
39602
+ extensions: p,
39526
39603
  immediatelyRender: !1,
39527
- editorProps: { handleKeyDown(t, n) {
39528
- return e.onKeyDown ? e.onKeyDown(n) : !1;
39529
- } },
39604
+ editorProps: {
39605
+ attributes: $q(m),
39606
+ handleKeyDown(t, n) {
39607
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39608
+ }
39609
+ },
39530
39610
  editable: !e.disabled,
39531
39611
  content: Yt(e.markup),
39532
39612
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -39537,22 +39617,29 @@ var Fq = Vm.create({
39537
39617
  }
39538
39618
  }, [e.charactersLimit]);
39539
39619
  Tt(() => {
39540
- e.editorRef && e.editorRef(p);
39541
- }, [e.editorRef, p]), Tt(() => {
39542
- p?.setEditable(!e.disabled);
39543
- }, [e.disabled, p]), Tt(() => {
39544
- if (!p) return;
39620
+ e.editorRef && e.editorRef(h);
39621
+ }, [e.editorRef, h]), Tt(() => {
39622
+ h?.setEditable(!e.disabled);
39623
+ }, [e.disabled, h]), Tt(() => {
39624
+ if (!h) return;
39625
+ let e = h.options?.editorProps, t = $q(m);
39626
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39627
+ ...e,
39628
+ attributes: t
39629
+ } });
39630
+ }, [m, h]), Tt(() => {
39631
+ if (!h) return;
39545
39632
  let t = Yt(e.markup);
39546
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
39547
- }, [e.markup, p]), Tt(() => {
39548
- Object.entries(Wq).forEach(([e, t]) => {
39633
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39634
+ }, [e.markup, h]), Tt(() => {
39635
+ Object.entries(Qq).forEach(([e, t]) => {
39549
39636
  document.documentElement.style.setProperty(e, t);
39550
39637
  });
39551
39638
  }, []);
39552
- let m = NC({
39553
- editor: p,
39639
+ let g = NC({
39640
+ editor: h,
39554
39641
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39555
- }), h = Dt(() => {
39642
+ }), _ = Dt(() => {
39556
39643
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39557
39644
  return {
39558
39645
  width: dI(n),
@@ -39567,20 +39654,20 @@ var Fq = Vm.create({
39567
39654
  ...e,
39568
39655
  activePlugins: f,
39569
39656
  toolbarOpts: l,
39570
- editorState: m,
39571
- editor: p,
39572
- children: p && /* @__PURE__ */ P(Kq, {
39657
+ editorState: g,
39658
+ editor: h,
39659
+ children: h && /* @__PURE__ */ P(tJ, {
39573
39660
  style: {
39574
- minHeight: h.minHeight,
39575
- height: h.height,
39576
- maxHeight: h.maxHeight
39661
+ minHeight: _.minHeight,
39662
+ height: _.height,
39663
+ maxHeight: _.maxHeight
39577
39664
  },
39578
39665
  showParagraph: t && !t.disabled,
39579
39666
  separateParagraph: n && !n.disabled,
39580
- editor: p
39667
+ editor: h
39581
39668
  })
39582
39669
  });
39583
- }, Kq = M(AC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39670
+ }, tJ = M(AC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39584
39671
  display: "flex",
39585
39672
  outline: "none !important",
39586
39673
  "& .ProseMirror": {
@@ -39608,13 +39695,13 @@ var Fq = Vm.create({
39608
39695
  } },
39609
39696
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39610
39697
  }
39611
- })), qq = Gq;
39698
+ })), nJ = eJ;
39612
39699
  //#endregion
39613
39700
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
39614
- function Jq(e) {
39701
+ function rJ(e) {
39615
39702
  return j("MuiInputAdornment", e);
39616
39703
  }
39617
- var Yq = n("MuiInputAdornment", [
39704
+ var iJ = n("MuiInputAdornment", [
39618
39705
  "root",
39619
39706
  "filled",
39620
39707
  "standard",
@@ -39624,7 +39711,7 @@ var Yq = n("MuiInputAdornment", [
39624
39711
  "disablePointerEvents",
39625
39712
  "hiddenLabel",
39626
39713
  "sizeSmall"
39627
- ]), Xq, Zq = (e, t) => {
39714
+ ]), aJ, oJ = (e, t) => {
39628
39715
  let { ownerState: n } = e;
39629
39716
  return [
39630
39717
  t.root,
@@ -39632,7 +39719,7 @@ var Yq = n("MuiInputAdornment", [
39632
39719
  n.disablePointerEvents === !0 && t.disablePointerEvents,
39633
39720
  t[n.variant]
39634
39721
  ];
39635
- }, Qq = (e) => {
39722
+ }, sJ = (e) => {
39636
39723
  let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
39637
39724
  return l({ root: [
39638
39725
  "root",
@@ -39641,11 +39728,11 @@ var Yq = n("MuiInputAdornment", [
39641
39728
  o,
39642
39729
  r && "hiddenLabel",
39643
39730
  a && `size${f(a)}`
39644
- ] }, Jq, t);
39645
- }, $q = M("div", {
39731
+ ] }, rJ, t);
39732
+ }, cJ = M("div", {
39646
39733
  name: "MuiInputAdornment",
39647
39734
  slot: "Root",
39648
- overridesResolver: Zq
39735
+ overridesResolver: oJ
39649
39736
  })(E(({ theme: e }) => ({
39650
39737
  display: "flex",
39651
39738
  maxHeight: "2em",
@@ -39655,7 +39742,7 @@ var Yq = n("MuiInputAdornment", [
39655
39742
  variants: [
39656
39743
  {
39657
39744
  props: { variant: "filled" },
39658
- style: { [`&.${Yq.positionStart}&:not(.${Yq.hiddenLabel})`]: { marginTop: 16 } }
39745
+ style: { [`&.${iJ.positionStart}&:not(.${iJ.hiddenLabel})`]: { marginTop: 16 } }
39659
39746
  },
39660
39747
  {
39661
39748
  props: { position: "start" },
@@ -39670,7 +39757,7 @@ var Yq = n("MuiInputAdornment", [
39670
39757
  style: { pointerEvents: "none" }
39671
39758
  }
39672
39759
  ]
39673
- }))), eJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39760
+ }))), lJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39674
39761
  let n = Ne({
39675
39762
  props: e,
39676
39763
  name: "MuiInputAdornment"
@@ -39683,10 +39770,10 @@ var Yq = n("MuiInputAdornment", [
39683
39770
  disablePointerEvents: s,
39684
39771
  position: l,
39685
39772
  variant: p
39686
- }, h = Qq(m);
39773
+ }, h = sJ(m);
39687
39774
  return /*#__PURE__*/ P(Je.Provider, {
39688
39775
  value: null,
39689
- children: /*#__PURE__*/ P($q, {
39776
+ children: /*#__PURE__*/ P(cJ, {
39690
39777
  as: o,
39691
39778
  ownerState: m,
39692
39779
  className: S(h.root, i),
@@ -39695,7 +39782,7 @@ var Yq = n("MuiInputAdornment", [
39695
39782
  children: typeof r == "string" && !c ? /*#__PURE__*/ P(He, {
39696
39783
  color: "textSecondary",
39697
39784
  children: r
39698
- }) : /*#__PURE__*/ F(N.Fragment, { children: [l === "start" ? Xq ||= /*#__PURE__*/ P("span", {
39785
+ }) : /*#__PURE__*/ F(N.Fragment, { children: [l === "start" ? aJ ||= /*#__PURE__*/ P("span", {
39699
39786
  className: "notranslate",
39700
39787
  "aria-hidden": !0,
39701
39788
  children: "​"
@@ -39705,10 +39792,10 @@ var Yq = n("MuiInputAdornment", [
39705
39792
  });
39706
39793
  //#endregion
39707
39794
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
39708
- function tJ(e) {
39795
+ function uJ(e) {
39709
39796
  return j("MuiTooltip", e);
39710
39797
  }
39711
- var nJ = n("MuiTooltip", [
39798
+ var dJ = n("MuiTooltip", [
39712
39799
  "popper",
39713
39800
  "popperInteractive",
39714
39801
  "popperArrow",
@@ -39724,10 +39811,10 @@ var nJ = n("MuiTooltip", [
39724
39811
  ]);
39725
39812
  //#endregion
39726
39813
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
39727
- function rJ(e) {
39814
+ function fJ(e) {
39728
39815
  return Math.round(e * 1e5) / 1e5;
39729
39816
  }
39730
- var iJ = (e) => {
39817
+ var pJ = (e) => {
39731
39818
  let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
39732
39819
  return l({
39733
39820
  popper: [
@@ -39742,8 +39829,8 @@ var iJ = (e) => {
39742
39829
  `tooltipPlacement${f(a.split("-")[0])}`
39743
39830
  ],
39744
39831
  arrow: ["arrow"]
39745
- }, tJ, t);
39746
- }, aJ = M(MR, {
39832
+ }, uJ, t);
39833
+ }, mJ = M(MR, {
39747
39834
  name: "MuiTooltip",
39748
39835
  slot: "Popper",
39749
39836
  overridesResolver: (e, t) => {
@@ -39770,22 +39857,22 @@ var iJ = (e) => {
39770
39857
  {
39771
39858
  props: ({ ownerState: e }) => e.arrow,
39772
39859
  style: {
39773
- [`&[data-popper-placement*="bottom"] .${nJ.arrow}`]: {
39860
+ [`&[data-popper-placement*="bottom"] .${dJ.arrow}`]: {
39774
39861
  top: 0,
39775
39862
  marginTop: "-0.71em",
39776
39863
  "&::before": { transformOrigin: "0 100%" }
39777
39864
  },
39778
- [`&[data-popper-placement*="top"] .${nJ.arrow}`]: {
39865
+ [`&[data-popper-placement*="top"] .${dJ.arrow}`]: {
39779
39866
  bottom: 0,
39780
39867
  marginBottom: "-0.71em",
39781
39868
  "&::before": { transformOrigin: "100% 0" }
39782
39869
  },
39783
- [`&[data-popper-placement*="right"] .${nJ.arrow}`]: {
39870
+ [`&[data-popper-placement*="right"] .${dJ.arrow}`]: {
39784
39871
  height: "1em",
39785
39872
  width: "0.71em",
39786
39873
  "&::before": { transformOrigin: "100% 100%" }
39787
39874
  },
39788
- [`&[data-popper-placement*="left"] .${nJ.arrow}`]: {
39875
+ [`&[data-popper-placement*="left"] .${dJ.arrow}`]: {
39789
39876
  height: "1em",
39790
39877
  width: "0.71em",
39791
39878
  "&::before": { transformOrigin: "0 0" }
@@ -39794,34 +39881,34 @@ var iJ = (e) => {
39794
39881
  },
39795
39882
  {
39796
39883
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
39797
- style: { [`&[data-popper-placement*="right"] .${nJ.arrow}`]: {
39884
+ style: { [`&[data-popper-placement*="right"] .${dJ.arrow}`]: {
39798
39885
  left: 0,
39799
39886
  marginLeft: "-0.71em"
39800
39887
  } }
39801
39888
  },
39802
39889
  {
39803
39890
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
39804
- style: { [`&[data-popper-placement*="right"] .${nJ.arrow}`]: {
39891
+ style: { [`&[data-popper-placement*="right"] .${dJ.arrow}`]: {
39805
39892
  right: 0,
39806
39893
  marginRight: "-0.71em"
39807
39894
  } }
39808
39895
  },
39809
39896
  {
39810
39897
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
39811
- style: { [`&[data-popper-placement*="left"] .${nJ.arrow}`]: {
39898
+ style: { [`&[data-popper-placement*="left"] .${dJ.arrow}`]: {
39812
39899
  right: 0,
39813
39900
  marginRight: "-0.71em"
39814
39901
  } }
39815
39902
  },
39816
39903
  {
39817
39904
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
39818
- style: { [`&[data-popper-placement*="left"] .${nJ.arrow}`]: {
39905
+ style: { [`&[data-popper-placement*="left"] .${dJ.arrow}`]: {
39819
39906
  left: 0,
39820
39907
  marginLeft: "-0.71em"
39821
39908
  } }
39822
39909
  }
39823
39910
  ]
39824
- }))), oJ = M("div", {
39911
+ }))), hJ = M("div", {
39825
39912
  name: "MuiTooltip",
39826
39913
  slot: "Tooltip",
39827
39914
  overridesResolver: (e, t) => {
@@ -39844,13 +39931,13 @@ var iJ = (e) => {
39844
39931
  margin: 2,
39845
39932
  wordWrap: "break-word",
39846
39933
  fontWeight: e.typography.fontWeightMedium,
39847
- [`.${nJ.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
39848
- [`.${nJ.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
39849
- [`.${nJ.popper}[data-popper-placement*="top"] &`]: {
39934
+ [`.${dJ.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
39935
+ [`.${dJ.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
39936
+ [`.${dJ.popper}[data-popper-placement*="top"] &`]: {
39850
39937
  transformOrigin: "center bottom",
39851
39938
  marginBottom: "14px"
39852
39939
  },
39853
- [`.${nJ.popper}[data-popper-placement*="bottom"] &`]: {
39940
+ [`.${dJ.popper}[data-popper-placement*="bottom"] &`]: {
39854
39941
  transformOrigin: "center top",
39855
39942
  marginTop: "14px"
39856
39943
  },
@@ -39867,48 +39954,48 @@ var iJ = (e) => {
39867
39954
  style: {
39868
39955
  padding: "8px 16px",
39869
39956
  fontSize: e.typography.pxToRem(14),
39870
- lineHeight: `${rJ(16 / 14)}em`,
39957
+ lineHeight: `${fJ(16 / 14)}em`,
39871
39958
  fontWeight: e.typography.fontWeightRegular
39872
39959
  }
39873
39960
  },
39874
39961
  {
39875
39962
  props: ({ ownerState: e }) => !e.isRtl,
39876
39963
  style: {
39877
- [`.${nJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
39878
- [`.${nJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
39964
+ [`.${dJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
39965
+ [`.${dJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
39879
39966
  }
39880
39967
  },
39881
39968
  {
39882
39969
  props: ({ ownerState: e }) => !e.isRtl && e.touch,
39883
39970
  style: {
39884
- [`.${nJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
39885
- [`.${nJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
39971
+ [`.${dJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
39972
+ [`.${dJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
39886
39973
  }
39887
39974
  },
39888
39975
  {
39889
39976
  props: ({ ownerState: e }) => !!e.isRtl,
39890
39977
  style: {
39891
- [`.${nJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
39892
- [`.${nJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
39978
+ [`.${dJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
39979
+ [`.${dJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
39893
39980
  }
39894
39981
  },
39895
39982
  {
39896
39983
  props: ({ ownerState: e }) => !!e.isRtl && e.touch,
39897
39984
  style: {
39898
- [`.${nJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
39899
- [`.${nJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
39985
+ [`.${dJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
39986
+ [`.${dJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
39900
39987
  }
39901
39988
  },
39902
39989
  {
39903
39990
  props: ({ ownerState: e }) => e.touch,
39904
- style: { [`.${nJ.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
39991
+ style: { [`.${dJ.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
39905
39992
  },
39906
39993
  {
39907
39994
  props: ({ ownerState: e }) => e.touch,
39908
- style: { [`.${nJ.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
39995
+ style: { [`.${dJ.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
39909
39996
  }
39910
39997
  ]
39911
- }))), sJ = M("span", {
39998
+ }))), gJ = M("span", {
39912
39999
  name: "MuiTooltip",
39913
40000
  slot: "Arrow"
39914
40001
  })(E(({ theme: e }) => ({
@@ -39927,16 +40014,16 @@ var iJ = (e) => {
39927
40014
  backgroundColor: "currentColor",
39928
40015
  transform: "rotate(45deg)"
39929
40016
  }
39930
- }))), cJ = !1, lJ = new Ie(), uJ = {
40017
+ }))), _J = !1, vJ = new Ie(), yJ = {
39931
40018
  x: 0,
39932
40019
  y: 0
39933
40020
  };
39934
- function dJ(e, t) {
40021
+ function bJ(e, t) {
39935
40022
  return (n, ...r) => {
39936
40023
  t && t(n, ...r), e(n, ...r);
39937
40024
  };
39938
40025
  }
39939
- var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40026
+ var xJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39940
40027
  let n = Ne({
39941
40028
  props: e,
39942
40029
  name: "MuiTooltip"
@@ -39950,15 +40037,15 @@ var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39950
40037
  });
39951
40038
  N.useEffect(() => Ee, [Ee]);
39952
40039
  let De = (e) => {
39953
- lJ.clear(), cJ = !0, Se(!0), w && !Ce && w(e);
40040
+ vJ.clear(), _J = !0, Se(!0), w && !Ce && w(e);
39954
40041
  }, j = Qe((e) => {
39955
- lJ.start(800 + y, () => {
39956
- cJ = !1;
40042
+ vJ.start(800 + y, () => {
40043
+ _J = !1;
39957
40044
  }), Se(!1), C && Ce && C(e), _e.start(ce.transitions.duration.shortest, () => {
39958
40045
  he.current = !1;
39959
40046
  });
39960
40047
  }), Oe = (e) => {
39961
- he.current && e.type !== "touchstart" || (le && le.removeAttribute("title"), ve.clear(), ye.clear(), m || cJ && h ? ve.start(cJ ? h : m, () => {
40048
+ he.current && e.type !== "touchstart" || (le && le.removeAttribute("title"), ve.clear(), ye.clear(), m || _J && h ? ve.start(_J ? h : m, () => {
39962
40049
  De(e);
39963
40050
  }) : De(e));
39964
40051
  }, ke = (e) => {
@@ -40000,7 +40087,7 @@ var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40000
40087
  !k && k !== 0 && (Ce = !1);
40001
40088
  let ze = N.useRef(), Be = (e) => {
40002
40089
  let t = oe.props;
40003
- t.onMouseMove && t.onMouseMove(e), uJ = {
40090
+ t.onMouseMove && t.onMouseMove(e), yJ = {
40004
40091
  x: e.clientX,
40005
40092
  y: e.clientY
40006
40093
  }, ze.current && ze.current.update();
@@ -40015,7 +40102,7 @@ var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40015
40102
  ref: Re,
40016
40103
  ..._ ? { onMouseMove: Be } : {}
40017
40104
  }, Ke = {};
40018
- p || (Ge.onTouchStart = Ie, Ge.onTouchEnd = Le), d || (Ge.onMouseOver = dJ(Oe, Ge.onMouseOver), Ge.onMouseLeave = dJ(ke, Ge.onMouseLeave), ge || (Ke.onMouseOver = Oe, Ke.onMouseLeave = ke)), u || (Ge.onFocus = dJ(Me, Ge.onFocus), Ge.onBlur = dJ(je, Ge.onBlur), ge || (Ke.onFocus = Me, Ke.onBlur = je));
40105
+ p || (Ge.onTouchStart = Ie, Ge.onTouchEnd = Le), d || (Ge.onMouseOver = bJ(Oe, Ge.onMouseOver), Ge.onMouseLeave = bJ(ke, Ge.onMouseLeave), ge || (Ke.onMouseOver = Oe, Ke.onMouseLeave = ke)), u || (Ge.onFocus = bJ(Me, Ge.onFocus), Ge.onBlur = bJ(je, Ge.onBlur), ge || (Ke.onFocus = Me, Ke.onBlur = je));
40019
40106
  let qe = {
40020
40107
  ...n,
40021
40108
  isRtl: A,
@@ -40042,7 +40129,7 @@ var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40042
40129
  fe,
40043
40130
  ne.popperOptions,
40044
40131
  Je?.popperOptions
40045
- ]), M = iJ(qe), Ze = typeof D.transition == "function" ? D.transition(qe) : D.transition, $e = {
40132
+ ]), M = pJ(qe), Ze = typeof D.transition == "function" ? D.transition(qe) : D.transition, $e = {
40046
40133
  slots: {
40047
40134
  popper: s.Popper,
40048
40135
  transition: s.Transition ?? re,
@@ -40063,7 +40150,7 @@ var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40063
40150
  }
40064
40151
  }
40065
40152
  }, [et, tt] = de("popper", {
40066
- elementType: aJ,
40153
+ elementType: mJ,
40067
40154
  externalForwardedProps: $e,
40068
40155
  ownerState: qe,
40069
40156
  className: S(M.popper, ne?.className)
@@ -40072,12 +40159,12 @@ var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40072
40159
  externalForwardedProps: $e,
40073
40160
  ownerState: qe
40074
40161
  }), [it, at] = de("tooltip", {
40075
- elementType: oJ,
40162
+ elementType: hJ,
40076
40163
  className: M.tooltip,
40077
40164
  externalForwardedProps: $e,
40078
40165
  ownerState: qe
40079
40166
  }), [ot, st] = de("arrow", {
40080
- elementType: sJ,
40167
+ elementType: gJ,
40081
40168
  className: M.arrow,
40082
40169
  externalForwardedProps: $e,
40083
40170
  ownerState: qe,
@@ -40087,10 +40174,10 @@ var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40087
40174
  as: E ?? MR,
40088
40175
  placement: te,
40089
40176
  anchorEl: _ ? { getBoundingClientRect: () => ({
40090
- top: uJ.y,
40091
- left: uJ.x,
40092
- right: uJ.x,
40093
- bottom: uJ.y,
40177
+ top: yJ.y,
40178
+ left: yJ.x,
40179
+ right: yJ.x,
40180
+ bottom: yJ.y,
40094
40181
  width: 0,
40095
40182
  height: 0
40096
40183
  }) } : le,
@@ -40114,10 +40201,10 @@ var fJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40114
40201
  });
40115
40202
  //#endregion
40116
40203
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
40117
- function pJ(e) {
40204
+ function SJ(e) {
40118
40205
  return j("MuiSwitch", e);
40119
40206
  }
40120
- var mJ = n("MuiSwitch", [
40207
+ var CJ = n("MuiSwitch", [
40121
40208
  "root",
40122
40209
  "edgeStart",
40123
40210
  "edgeEnd",
@@ -40131,7 +40218,7 @@ var mJ = n("MuiSwitch", [
40131
40218
  "input",
40132
40219
  "thumb",
40133
40220
  "track"
40134
- ]), hJ = (e) => {
40221
+ ]), wJ = (e) => {
40135
40222
  let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = l({
40136
40223
  root: [
40137
40224
  "root",
@@ -40147,12 +40234,12 @@ var mJ = n("MuiSwitch", [
40147
40234
  thumb: ["thumb"],
40148
40235
  track: ["track"],
40149
40236
  input: ["input"]
40150
- }, pJ, t);
40237
+ }, SJ, t);
40151
40238
  return {
40152
40239
  ...t,
40153
40240
  ...s
40154
40241
  };
40155
- }, gJ = M("span", {
40242
+ }, TJ = M("span", {
40156
40243
  name: "MuiSwitch",
40157
40244
  slot: "Root",
40158
40245
  overridesResolver: (e, t) => {
@@ -40190,25 +40277,25 @@ var mJ = n("MuiSwitch", [
40190
40277
  width: 40,
40191
40278
  height: 24,
40192
40279
  padding: 7,
40193
- [`& .${mJ.thumb}`]: {
40280
+ [`& .${CJ.thumb}`]: {
40194
40281
  width: 16,
40195
40282
  height: 16
40196
40283
  },
40197
- [`& .${mJ.switchBase}`]: {
40284
+ [`& .${CJ.switchBase}`]: {
40198
40285
  padding: 4,
40199
- [`&.${mJ.checked}`]: { transform: "translateX(16px)" }
40286
+ [`&.${CJ.checked}`]: { transform: "translateX(16px)" }
40200
40287
  }
40201
40288
  }
40202
40289
  }
40203
40290
  ]
40204
- }), _J = M(fe, {
40291
+ }), EJ = M(fe, {
40205
40292
  name: "MuiSwitch",
40206
40293
  slot: "SwitchBase",
40207
40294
  overridesResolver: (e, t) => {
40208
40295
  let { ownerState: n } = e;
40209
40296
  return [
40210
40297
  t.switchBase,
40211
- { [`& .${mJ.input}`]: t.input },
40298
+ { [`& .${CJ.input}`]: t.input },
40212
40299
  n.color !== "default" && t[`color${f(n.color)}`]
40213
40300
  ];
40214
40301
  }
@@ -40219,11 +40306,11 @@ var mJ = n("MuiSwitch", [
40219
40306
  zIndex: 1,
40220
40307
  color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
40221
40308
  transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
40222
- [`&.${mJ.checked}`]: { transform: "translateX(20px)" },
40223
- [`&.${mJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40224
- [`&.${mJ.checked} + .${mJ.track}`]: { opacity: .5 },
40225
- [`&.${mJ.disabled} + .${mJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40226
- [`& .${mJ.input}`]: {
40309
+ [`&.${CJ.checked}`]: { transform: "translateX(20px)" },
40310
+ [`&.${CJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40311
+ [`&.${CJ.checked} + .${CJ.track}`]: { opacity: .5 },
40312
+ [`&.${CJ.disabled} + .${CJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40313
+ [`& .${CJ.input}`]: {
40227
40314
  left: "-100%",
40228
40315
  width: "300%"
40229
40316
  }
@@ -40235,18 +40322,18 @@ var mJ = n("MuiSwitch", [
40235
40322
  variants: [...Object.entries(e.palette).filter(t(["light"])).map(([t]) => ({
40236
40323
  props: { color: t },
40237
40324
  style: {
40238
- [`&.${mJ.checked}`]: {
40325
+ [`&.${CJ.checked}`]: {
40239
40326
  color: (e.vars || e).palette[t].main,
40240
40327
  "&:hover": {
40241
40328
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
40242
40329
  "@media (hover: none)": { backgroundColor: "transparent" }
40243
40330
  },
40244
- [`&.${mJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
40331
+ [`&.${CJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
40245
40332
  },
40246
- [`&.${mJ.checked} + .${mJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40333
+ [`&.${CJ.checked} + .${CJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40247
40334
  }
40248
40335
  }))]
40249
- }))), vJ = M("span", {
40336
+ }))), DJ = M("span", {
40250
40337
  name: "MuiSwitch",
40251
40338
  slot: "Track"
40252
40339
  })(E(({ theme: e }) => ({
@@ -40259,7 +40346,7 @@ var mJ = n("MuiSwitch", [
40259
40346
  transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
40260
40347
  backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
40261
40348
  opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
40262
- }))), yJ = M("span", {
40349
+ }))), OJ = M("span", {
40263
40350
  name: "MuiSwitch",
40264
40351
  slot: "Thumb"
40265
40352
  })(E(({ theme: e }) => ({
@@ -40270,7 +40357,7 @@ var mJ = n("MuiSwitch", [
40270
40357
  width: 20,
40271
40358
  height: 20,
40272
40359
  borderRadius: "50%"
40273
- }))), bJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40360
+ }))), kJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40274
40361
  let n = Ne({
40275
40362
  props: e,
40276
40363
  name: "MuiSwitch"
@@ -40279,29 +40366,29 @@ var mJ = n("MuiSwitch", [
40279
40366
  color: i,
40280
40367
  edge: a,
40281
40368
  size: o
40282
- }, f = hJ(d), p = l.input, m = {
40369
+ }, f = wJ(d), p = l.input, m = {
40283
40370
  slots: c,
40284
40371
  slotProps: l
40285
40372
  }, [h, g] = de("root", {
40286
40373
  className: S(f.root, r),
40287
- elementType: gJ,
40374
+ elementType: TJ,
40288
40375
  externalForwardedProps: m,
40289
40376
  ownerState: d,
40290
40377
  additionalProps: { sx: s }
40291
40378
  }), [_, v] = de("thumb", {
40292
40379
  className: f.thumb,
40293
- elementType: yJ,
40380
+ elementType: OJ,
40294
40381
  externalForwardedProps: m,
40295
40382
  ownerState: d
40296
40383
  }), y = /*#__PURE__*/ P(_, { ...v }), [b, x] = de("track", {
40297
40384
  className: f.track,
40298
- elementType: vJ,
40385
+ elementType: DJ,
40299
40386
  externalForwardedProps: m,
40300
40387
  ownerState: d
40301
40388
  });
40302
40389
  return /*#__PURE__*/ F(h, {
40303
40390
  ...g,
40304
- children: [/*#__PURE__*/ P(_J, {
40391
+ children: [/*#__PURE__*/ P(EJ, {
40305
40392
  type: "checkbox",
40306
40393
  icon: y,
40307
40394
  checkedIcon: y,
@@ -40322,15 +40409,15 @@ var mJ = n("MuiSwitch", [
40322
40409
  }
40323
40410
  }), /*#__PURE__*/ P(b, { ...x })]
40324
40411
  });
40325
- }), xJ = M(BP)(() => ({ fontSize: "max(1.25rem, 18px)" })), SJ = M(WP)(() => ({ fontSize: "max(1rem, 14px)" })), CJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(AN, {
40412
+ }), AJ = M(BP)(() => ({ fontSize: "max(1.25rem, 18px)" })), jJ = M(WP)(() => ({ fontSize: "max(1rem, 14px)" })), MJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(AN, {
40326
40413
  open: i,
40327
40414
  disableAutoFocus: s,
40328
40415
  disableEnforceFocus: c,
40329
40416
  disableRestoreFocus: l,
40330
40417
  onClose: n,
40331
40418
  children: [
40332
- t && /* @__PURE__ */ P(xJ, { children: t }),
40333
- e && /* @__PURE__ */ P(aN, { children: /* @__PURE__ */ P(SJ, { children: e }) }),
40419
+ t && /* @__PURE__ */ P(AJ, { children: t }),
40420
+ e && /* @__PURE__ */ P(aN, { children: /* @__PURE__ */ P(jJ, { children: e }) }),
40334
40421
  /* @__PURE__ */ F(xN, { children: [n && /* @__PURE__ */ P(w, {
40335
40422
  onClick: n,
40336
40423
  color: "primary",
@@ -40343,13 +40430,13 @@ var mJ = n("MuiSwitch", [
40343
40430
  })] })
40344
40431
  ]
40345
40432
  });
40346
- CJ.defaultProps = {
40433
+ MJ.defaultProps = {
40347
40434
  onCloseText: "CANCEL",
40348
40435
  onConfirmText: "OK",
40349
40436
  disableAutoFocus: !1,
40350
40437
  disableEnforceFocus: !1,
40351
40438
  disableRestoreFocus: !1
40352
- }, CJ.propTypes = {
40439
+ }, MJ.propTypes = {
40353
40440
  text: U.default.oneOfType([U.default.string, U.default.object]),
40354
40441
  title: U.default.string,
40355
40442
  onClose: U.default.func,
@@ -40363,18 +40450,18 @@ CJ.defaultProps = {
40363
40450
  };
40364
40451
  //#endregion
40365
40452
  //#region ../../lib-react/config-ui/dist/radio-with-label.js
40366
- var wJ = M(Fe)(() => ({ "& .MuiFormControlLabel-label": {
40453
+ var NJ = M(Fe)(() => ({ "& .MuiFormControlLabel-label": {
40367
40454
  left: "-5px",
40368
40455
  position: "relative"
40369
- } })), TJ = M(Be)(() => ({ color: `${D.tertiary()} !important` })), EJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(wJ, {
40456
+ } })), PJ = M(Be)(() => ({ color: `${D.tertiary()} !important` })), FJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(NJ, {
40370
40457
  value: t,
40371
- control: /* @__PURE__ */ P(TJ, {
40458
+ control: /* @__PURE__ */ P(PJ, {
40372
40459
  checked: n,
40373
40460
  onChange: r
40374
40461
  }),
40375
40462
  label: e
40376
40463
  });
40377
- EJ.propTypes = {
40464
+ FJ.propTypes = {
40378
40465
  label: U.default.string,
40379
40466
  value: U.default.string,
40380
40467
  checked: U.default.bool,
@@ -40382,40 +40469,40 @@ EJ.propTypes = {
40382
40469
  };
40383
40470
  //#endregion
40384
40471
  //#region ../../lib-react/config-ui/dist/inputs.js
40385
- function DJ(e) {
40472
+ function IJ(e) {
40386
40473
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40387
40474
  }
40388
- function OJ(e, t) {
40389
- return !e || DJ(e) ? e : DJ(e.default) ? e.default : t && DJ(e[t]) ? e[t] : t && DJ(e[t]?.default) ? e[t].default : e;
40475
+ function LJ(e, t) {
40476
+ return !e || IJ(e) ? e : IJ(e.default) ? e.default : t && IJ(e[t]) ? e[t] : t && IJ(e[t]?.default) ? e[t].default : e;
40390
40477
  }
40391
- var kJ = OJ(Ze, "InputContainer") || OJ(MJ.InputContainer, "InputContainer"), AJ = Ae, jJ = AJ.default, MJ = jJ && typeof jJ == "object" ? jJ : AJ, NJ = {
40478
+ var RJ = LJ(Ze, "InputContainer") || LJ(VJ.InputContainer, "InputContainer"), zJ = Ae, BJ = zJ.default, VJ = BJ && typeof BJ == "object" ? BJ : zJ, HJ = {
40392
40479
  className: U.default.string,
40393
40480
  label: U.default.string,
40394
40481
  checked: U.default.bool,
40395
40482
  onChange: U.default.func,
40396
40483
  disabled: U.default.bool,
40397
40484
  error: U.default.string
40398
- }, PJ = M(bJ)(() => ({
40485
+ }, UJ = M(kJ)(() => ({
40399
40486
  justifyContent: "inherit",
40400
40487
  transform: "translate(-20%, 20%)"
40401
- })), FJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ P(kJ, {
40488
+ })), WJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ P(RJ, {
40402
40489
  className: e,
40403
40490
  label: t,
40404
- children: /* @__PURE__ */ P(PJ, {
40491
+ children: /* @__PURE__ */ P(UJ, {
40405
40492
  checked: n,
40406
40493
  onChange: r,
40407
40494
  "aria-label": t
40408
40495
  })
40409
40496
  });
40410
- FJ.propTypes = { ...NJ };
40411
- var IJ = M(Te)(({ theme: e, error: t }) => ({
40497
+ WJ.propTypes = { ...HJ };
40498
+ var GJ = M(Te)(({ theme: e, error: t }) => ({
40412
40499
  transform: "translate(-25%, 20%)",
40413
40500
  color: `${D.tertiary()} !important`,
40414
40501
  ...t && { color: `${e.palette.error.main} !important` }
40415
- })), LJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ P(kJ, {
40502
+ })), KJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ P(RJ, {
40416
40503
  className: e,
40417
40504
  label: t,
40418
- children: /* @__PURE__ */ P(IJ, {
40505
+ children: /* @__PURE__ */ P(GJ, {
40419
40506
  disabled: i,
40420
40507
  checked: n,
40421
40508
  onChange: r,
@@ -40423,15 +40510,15 @@ var IJ = M(Te)(({ theme: e, error: t }) => ({
40423
40510
  error: a
40424
40511
  })
40425
40512
  });
40426
- LJ.propTypes = { ...NJ };
40427
- var RJ = M(Be)(({ theme: e, error: t }) => ({
40513
+ KJ.propTypes = { ...HJ };
40514
+ var qJ = M(Be)(({ theme: e, error: t }) => ({
40428
40515
  transform: "translate(-20%, 20%)",
40429
40516
  color: `${D.tertiary()} !important`,
40430
40517
  ...t && { color: `${e.palette.error.main} !important` }
40431
- })), zJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ P(kJ, {
40518
+ })), JJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ P(RJ, {
40432
40519
  className: e,
40433
40520
  label: t,
40434
- children: /* @__PURE__ */ P(RJ, {
40521
+ children: /* @__PURE__ */ P(qJ, {
40435
40522
  disabled: i,
40436
40523
  checked: n,
40437
40524
  onChange: r,
@@ -40439,10 +40526,10 @@ var RJ = M(Be)(({ theme: e, error: t }) => ({
40439
40526
  error: a
40440
40527
  })
40441
40528
  });
40442
- zJ.propTypes = { ...NJ };
40529
+ JJ.propTypes = { ...HJ };
40443
40530
  //#endregion
40444
40531
  //#region ../../lib-react/config-ui/dist/tabs/index.js
40445
- var BJ = M(LP)(() => ({})), VJ = class extends ht.Component {
40532
+ var YJ = M(LP)(() => ({})), XJ = class extends ht.Component {
40446
40533
  static propTypes = {
40447
40534
  className: U.default.string,
40448
40535
  contentClassName: U.default.string,
@@ -40463,7 +40550,7 @@ var BJ = M(LP)(() => ({})), VJ = class extends ht.Component {
40463
40550
  indicatorColor: "primary",
40464
40551
  value: e,
40465
40552
  onChange: this.handleChange,
40466
- children: ht.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(BJ, { label: e.props.title }, t) : null)
40553
+ children: ht.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(YJ, { label: e.props.title }, t) : null)
40467
40554
  }), /* @__PURE__ */ P("div", {
40468
40555
  className: r,
40469
40556
  style: i,
@@ -40471,7 +40558,7 @@ var BJ = M(LP)(() => ({})), VJ = class extends ht.Component {
40471
40558
  })]
40472
40559
  });
40473
40560
  }
40474
- }, HJ = M(Fe)(({ theme: e, mini: t }) => ({
40561
+ }, ZJ = M(Fe)(({ theme: e, mini: t }) => ({
40475
40562
  margin: 0,
40476
40563
  marginLeft: 0,
40477
40564
  padding: 0,
@@ -40485,7 +40572,7 @@ var BJ = M(LP)(() => ({})), VJ = class extends ht.Component {
40485
40572
  fontSize: e.typography.fontSize - 3
40486
40573
  }
40487
40574
  }
40488
- })), UJ = M(Te)(({ theme: e, mini: t, error: n }) => ({
40575
+ })), QJ = M(Te)(({ theme: e, mini: t, error: n }) => ({
40489
40576
  color: `${D.tertiary()} !important`,
40490
40577
  ...t && {
40491
40578
  margin: 0,
@@ -40494,9 +40581,9 @@ var BJ = M(LP)(() => ({})), VJ = class extends ht.Component {
40494
40581
  height: e.spacing(3)
40495
40582
  },
40496
40583
  ...n && { color: `${e.palette.error.main} !important` }
40497
- })), WJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(HJ, {
40584
+ })), $J = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(ZJ, {
40498
40585
  mini: e,
40499
- control: /* @__PURE__ */ P(UJ, {
40586
+ control: /* @__PURE__ */ P(QJ, {
40500
40587
  checked: t,
40501
40588
  onChange: n,
40502
40589
  value: r,
@@ -40505,21 +40592,21 @@ var BJ = M(LP)(() => ({})), VJ = class extends ht.Component {
40505
40592
  }),
40506
40593
  label: i
40507
40594
  });
40508
- WJ.propTypes = {
40595
+ $J.propTypes = {
40509
40596
  mini: U.default.bool,
40510
40597
  checked: U.default.bool.isRequired,
40511
40598
  onChange: U.default.func.isRequired,
40512
40599
  value: U.default.string,
40513
40600
  label: U.default.string.isRequired,
40514
40601
  error: U.default.bool
40515
- }, WJ.defaultProps = {
40602
+ }, $J.defaultProps = {
40516
40603
  value: "",
40517
40604
  mini: !1,
40518
40605
  error: !1
40519
40606
  };
40520
40607
  //#endregion
40521
40608
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40522
- var GJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), KJ = M(_N)(({ theme: e }) => ({
40609
+ var eY = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), tY = M(_N)(({ theme: e }) => ({
40523
40610
  marginRight: e.spacing(1),
40524
40611
  "& .MuiInputLabel-root": {
40525
40612
  width: "auto",
@@ -40541,11 +40628,11 @@ var GJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), KJ = M(_N)(({
40541
40628
  minHeight: "auto",
40542
40629
  padding: "6px 0 7px"
40543
40630
  }
40544
- })), qJ = (e, t) => {
40631
+ })), nY = (e, t) => {
40545
40632
  if (!at(e) && !at(t)) return 0;
40546
40633
  if (!at(e) && at(t)) return t;
40547
40634
  if (at(e)) return e;
40548
- }, JJ = class extends ht.Component {
40635
+ }, rY = class extends ht.Component {
40549
40636
  static propTypes = {
40550
40637
  disabled: U.default.bool,
40551
40638
  className: U.default.string,
@@ -40571,13 +40658,13 @@ var GJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), KJ = M(_N)(({
40571
40658
  this.setState({ value: t });
40572
40659
  }
40573
40660
  clamp(e, t = this.props.min, n = this.props.max) {
40574
- return at(e) ? (at(n) && (e = Math.min(e, n)), at(t) && (e = Math.max(e, t)), e) : qJ(t, n);
40661
+ return at(e) ? (at(n) && (e = Math.min(e, n)), at(t) && (e = Math.max(e, t)), e) : nY(t, n);
40575
40662
  }
40576
40663
  onBlur = (e) => {
40577
40664
  let t = e.target.value, n = parseFloat(t);
40578
- GJ("rawNumber: ", n);
40665
+ eY("rawNumber: ", n);
40579
40666
  let r = this.clamp(n);
40580
- GJ("number: ", r), r !== this.state.value && (GJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40667
+ eY("number: ", r), r !== this.state.value && (eY("trigger update..."), this.setState({ value: r.toString() }, () => {
40581
40668
  this.props.onChange(e, r);
40582
40669
  }));
40583
40670
  };
@@ -40597,7 +40684,7 @@ var GJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), KJ = M(_N)(({
40597
40684
  };
40598
40685
  render() {
40599
40686
  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();
40600
- return /* @__PURE__ */ P(KJ, {
40687
+ return /* @__PURE__ */ P(tY, {
40601
40688
  variant: s ? "filled" : l || "standard",
40602
40689
  inputRef: (e) => {
40603
40690
  this.inputRef = e;
@@ -40616,7 +40703,7 @@ var GJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), KJ = M(_N)(({
40616
40703
  type: "number",
40617
40704
  className: e,
40618
40705
  slotProps: { input: {
40619
- endAdornment: r && /* @__PURE__ */ P(eJ, {
40706
+ endAdornment: r && /* @__PURE__ */ P(lJ, {
40620
40707
  position: "end",
40621
40708
  children: r
40622
40709
  }),
@@ -40632,19 +40719,19 @@ var GJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), KJ = M(_N)(({
40632
40719
  };
40633
40720
  //#endregion
40634
40721
  //#region ../../lib-react/config-ui/dist/two-choice.js
40635
- function YJ(e) {
40722
+ function iY(e) {
40636
40723
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40637
40724
  }
40638
- function XJ(e, t) {
40639
- return !e || YJ(e) ? e : YJ(e.default) ? e.default : t && YJ(e[t]) ? e[t] : t && YJ(e[t]?.default) ? e[t].default : e;
40725
+ function aY(e, t) {
40726
+ return !e || iY(e) ? e : iY(e.default) ? e.default : t && iY(e[t]) ? e[t] : t && iY(e[t]?.default) ? e[t].default : e;
40640
40727
  }
40641
- var ZJ = XJ(Ze, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ = Ae, $J = QJ.default, eY = $J && typeof $J == "object" ? $J : QJ, tY = M("div")(({ theme: e, direction: t }) => ({
40728
+ var oY = aY(Ze, "InputContainer") || aY(lY.InputContainer, "InputContainer"), sY = Ae, cY = sY.default, lY = cY && typeof cY == "object" ? cY : sY, uY = M("div")(({ theme: e, direction: t }) => ({
40642
40729
  display: "flex",
40643
40730
  flexWrap: "wrap",
40644
40731
  paddingLeft: 0,
40645
40732
  marginTop: e.spacing(1),
40646
40733
  ...t === "vertical" && { flexDirection: "column" }
40647
- })), nY = class extends ht.Component {
40734
+ })), dY = class extends ht.Component {
40648
40735
  static propTypes = {
40649
40736
  header: U.default.string.isRequired,
40650
40737
  className: U.default.string,
@@ -40661,11 +40748,11 @@ var ZJ = XJ(Ze, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ
40661
40748
  let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
40662
40749
  label: e,
40663
40750
  value: e
40664
- } : e), s = n || EJ;
40665
- return /* @__PURE__ */ P(ZJ, {
40751
+ } : e), s = n || FJ;
40752
+ return /* @__PURE__ */ P(oY, {
40666
40753
  label: e,
40667
40754
  className: t,
40668
- children: /* @__PURE__ */ P(tY, {
40755
+ children: /* @__PURE__ */ P(uY, {
40669
40756
  direction: a,
40670
40757
  children: o.map((e, t) => /* @__PURE__ */ P(s, {
40671
40758
  value: e.value,
@@ -40676,7 +40763,7 @@ var ZJ = XJ(Ze, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ
40676
40763
  })
40677
40764
  });
40678
40765
  }
40679
- }, rY = U.default.shape({
40766
+ }, fY = U.default.shape({
40680
40767
  label: U.default.string,
40681
40768
  value: U.default.string
40682
40769
  });
@@ -40685,14 +40772,14 @@ var ZJ = XJ(Ze, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ
40685
40772
  header: U.default.string.isRequired,
40686
40773
  value: U.default.string.isRequired,
40687
40774
  onChange: U.default.func.isRequired,
40688
- one: U.default.oneOfType([rY, U.default.string]),
40689
- two: U.default.oneOfType([rY, U.default.string]),
40775
+ one: U.default.oneOfType([fY, U.default.string]),
40776
+ two: U.default.oneOfType([fY, U.default.string]),
40690
40777
  className: U.default.string,
40691
40778
  customLabel: U.default.func
40692
40779
  };
40693
40780
  render() {
40694
40781
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
40695
- return /* @__PURE__ */ P(nY, {
40782
+ return /* @__PURE__ */ P(dY, {
40696
40783
  customLabel: i,
40697
40784
  header: n,
40698
40785
  className: r,
@@ -40704,16 +40791,16 @@ var ZJ = XJ(Ze, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ
40704
40791
  });
40705
40792
  //#endregion
40706
40793
  //#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Feedback.js
40707
- var iY = A(/*#__PURE__*/ P("path", { d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 12h-2v-2h2zm0-4h-2V6h2z" }), "Feedback");
40794
+ var pY = A(/*#__PURE__*/ P("path", { d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 12h-2v-2h2zm0-4h-2V6h2z" }), "Feedback");
40708
40795
  //#endregion
40709
40796
  //#region ../../lib-react/config-ui/dist/choice-configuration/feedback-menu.js
40710
- function aY(e) {
40797
+ function mY(e) {
40711
40798
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40712
40799
  }
40713
- function oY(e, t) {
40714
- return !e || aY(e) ? e : aY(e.default) ? e.default : t && aY(e[t]) ? e[t] : t && aY(e[t]?.default) ? e[t].default : e;
40800
+ function hY(e, t) {
40801
+ return !e || mY(e) ? e : mY(e.default) ? e.default : t && mY(e[t]) ? e[t] : t && mY(e[t]?.default) ? e[t].default : e;
40715
40802
  }
40716
- var sY = oY(Ke, "InlineMenu") || oY(uY.InlineMenu, "InlineMenu"), cY = Ae, lY = cY.default, uY = lY && typeof lY == "object" ? lY : cY, dY = class extends ht.Component {
40803
+ var gY = hY(Ke, "InlineMenu") || hY(yY.InlineMenu, "InlineMenu"), _Y = Ae, vY = _Y.default, yY = vY && typeof vY == "object" ? vY : _Y, bY = class extends ht.Component {
40717
40804
  static propTypes = {
40718
40805
  opts: U.default.object,
40719
40806
  onClick: U.default.func.isRequired,
@@ -40741,7 +40828,7 @@ var sY = oY(Ke, "InlineMenu") || oY(uY.InlineMenu, "InlineMenu"), cY = Ae, lY =
40741
40828
  return /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("div", {
40742
40829
  onClick: this.handleClick,
40743
40830
  children: this.props.iconButtonElement
40744
- }), /* @__PURE__ */ P(sY, {
40831
+ }), /* @__PURE__ */ P(gY, {
40745
40832
  id: "simple-menu",
40746
40833
  anchorEl: this.state.anchorEl,
40747
40834
  open: this.state.open,
@@ -40756,7 +40843,7 @@ var sY = oY(Ke, "InlineMenu") || oY(uY.InlineMenu, "InlineMenu"), cY = Ae, lY =
40756
40843
  }, n))
40757
40844
  })] });
40758
40845
  }
40759
- }, fY = class extends ht.Component {
40846
+ }, xY = class extends ht.Component {
40760
40847
  static propTypes = {
40761
40848
  value: U.default.object,
40762
40849
  onChange: U.default.func.isRequired,
@@ -40765,12 +40852,12 @@ var sY = oY(Ke, "InlineMenu") || oY(uY.InlineMenu, "InlineMenu"), cY = Ae, lY =
40765
40852
  static defaultProps = { classes: {} };
40766
40853
  render() {
40767
40854
  let { value: e, onChange: t, classes: n } = this.props, r = e && e.type, i = r === "custom" || r === "default" ? "primary" : "disabled", a = r === "custom" ? "Custom Feedback" : r === "default" ? "Default Feedback" : "Feedback disabled";
40768
- return /* @__PURE__ */ P(dY, {
40855
+ return /* @__PURE__ */ P(bY, {
40769
40856
  iconButtonElement: /* @__PURE__ */ P(fS, {
40770
40857
  className: n.icon,
40771
40858
  "aria-label": a,
40772
40859
  size: "large",
40773
- children: /* @__PURE__ */ P(iY, { color: i })
40860
+ children: /* @__PURE__ */ P(pY, { color: i })
40774
40861
  }),
40775
40862
  onClick: (e) => t(e),
40776
40863
  opts: {
@@ -40780,19 +40867,19 @@ var sY = oY(Ke, "InlineMenu") || oY(uY.InlineMenu, "InlineMenu"), cY = Ae, lY =
40780
40867
  }
40781
40868
  });
40782
40869
  }
40783
- }, pY = A(/*#__PURE__*/ P("path", { d: "m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z" }), "SubdirectoryArrowRight");
40870
+ }, SY = A(/*#__PURE__*/ P("path", { d: "m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z" }), "SubdirectoryArrowRight");
40784
40871
  //#endregion
40785
40872
  //#region ../../lib-react/config-ui/dist/choice-configuration/index.js
40786
- function mY(e) {
40873
+ function CY(e) {
40787
40874
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40788
40875
  }
40789
- function hY(e, t) {
40790
- return !e || mY(e) ? e : mY(e.default) ? e.default : t && mY(e[t]) ? e[t] : t && mY(e[t]?.default) ? e[t].default : e;
40876
+ function wY(e, t) {
40877
+ return !e || CY(e) ? e : CY(e.default) ? e.default : t && CY(e[t]) ? e[t] : t && CY(e[t]?.default) ? e[t].default : e;
40791
40878
  }
40792
- var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y = Ae, vY = _Y.default, yY = vY && typeof vY == "object" ? vY : _Y, bY = M("div")(({ theme: e }) => ({ marginTop: e.spacing(2) })), xY = ({ label: e, onChange: t, value: n, className: r, imageSupport: i, disableImageAlignmentButtons: a, disabled: o, spellCheck: s, nonEmpty: c, pluginOpts: l, toolbarOpts: u, error: d, maxImageWidth: f, maxImageHeight: p, uploadSoundSupport: m, mathMlOptions: h = {} }) => /* @__PURE__ */ P(gY, {
40879
+ var TY = wY(Ze, "InputContainer") || wY(OY.InputContainer, "InputContainer"), EY = Ae, DY = EY.default, OY = DY && typeof DY == "object" ? DY : EY, kY = M("div")(({ theme: e }) => ({ marginTop: e.spacing(2) })), AY = ({ label: e, onChange: t, value: n, className: r, imageSupport: i, disableImageAlignmentButtons: a, disabled: o, spellCheck: s, nonEmpty: c, pluginOpts: l, toolbarOpts: u, error: d, maxImageWidth: f, maxImageHeight: p, uploadSoundSupport: m, mathMlOptions: h = {} }) => /* @__PURE__ */ P(TY, {
40793
40880
  label: e,
40794
40881
  className: r,
40795
- children: /* @__PURE__ */ P(bY, { children: /* @__PURE__ */ P(qq, {
40882
+ children: /* @__PURE__ */ P(kY, { children: /* @__PURE__ */ P(nJ, {
40796
40883
  markup: n || "",
40797
40884
  disabled: o,
40798
40885
  spellCheck: s,
@@ -40809,65 +40896,65 @@ var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y
40809
40896
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
40810
40897
  mathMlOptions: h
40811
40898
  }) })
40812
- }), SY = M("div")(() => ({ position: "relative" })), CY = M(pY)(() => ({
40899
+ }), jY = M("div")(() => ({ position: "relative" })), MY = M(SY)(() => ({
40813
40900
  fill: D.border(),
40814
40901
  left: -56,
40815
40902
  position: "absolute",
40816
40903
  top: 40
40817
- })), wY = M(_N)(({ theme: e }) => ({
40904
+ })), NY = M(_N)(({ theme: e }) => ({
40818
40905
  width: "100%",
40819
40906
  marginTop: e.spacing(2)
40820
- })), TY = M(xY)(({ theme: e }) => ({
40907
+ })), PY = M(AY)(({ theme: e }) => ({
40821
40908
  width: "100%",
40822
40909
  marginTop: e.spacing(2)
40823
- })), EY = ({ value: e, onChange: t, type: n, correct: r, defaults: i, toolbarOpts: a, mathMlOptions: o = {} }) => !n || n === "none" ? null : n === "default" ? /* @__PURE__ */ F(SY, { children: [/* @__PURE__ */ P(CY, {}), /* @__PURE__ */ P(wY, {
40910
+ })), FY = ({ value: e, onChange: t, type: n, correct: r, defaults: i, toolbarOpts: a, mathMlOptions: o = {} }) => !n || n === "none" ? null : n === "default" ? /* @__PURE__ */ F(jY, { children: [/* @__PURE__ */ P(MY, {}), /* @__PURE__ */ P(NY, {
40824
40911
  label: "Feedback Text",
40825
40912
  value: r ? i.correct : i.incorrect,
40826
40913
  variant: "standard"
40827
- })] }) : /* @__PURE__ */ F(SY, { children: [/* @__PURE__ */ P(CY, {}), /* @__PURE__ */ P(TY, {
40914
+ })] }) : /* @__PURE__ */ F(jY, { children: [/* @__PURE__ */ P(MY, {}), /* @__PURE__ */ P(PY, {
40828
40915
  label: "Feedback Text",
40829
40916
  value: e,
40830
40917
  onChange: t,
40831
40918
  toolbarOpts: a,
40832
40919
  mathMlOptions: o
40833
- })] }), DY = M("span")(({ theme: e }) => ({
40920
+ })] }), IY = M("span")(({ theme: e }) => ({
40834
40921
  paddingRight: e.spacing(1),
40835
40922
  paddingTop: e.spacing(3)
40836
- })), OY = M("div")(() => ({
40923
+ })), LY = M("div")(() => ({
40837
40924
  display: "flex",
40838
40925
  alignItems: "center"
40839
- })), kY = M("div")(({ theme: e }) => ({
40926
+ })), RY = M("div")(({ theme: e }) => ({
40840
40927
  flex: "0 1 auto",
40841
40928
  paddingTop: e.spacing(.5),
40842
40929
  paddingBottom: 0,
40843
40930
  marginRight: 0,
40844
40931
  marginLeft: e.spacing(1)
40845
- })), AY = M("div")(({ theme: e }) => ({
40932
+ })), zY = M("div")(({ theme: e }) => ({
40846
40933
  flex: "0 1 auto",
40847
40934
  paddingTop: e.spacing(2),
40848
40935
  paddingLeft: 0,
40849
40936
  marginLeft: 0,
40850
40937
  marginRight: e.spacing(1)
40851
- })), jY = M("div")(() => ({
40938
+ })), BY = M("div")(() => ({
40852
40939
  margin: 0,
40853
40940
  width: "inherit"
40854
- })), MY = M("div")(() => ({
40941
+ })), VY = M("div")(() => ({
40855
40942
  margin: 0,
40856
40943
  width: "inherit"
40857
- })), NY = M("div")(({ theme: e }) => ({
40944
+ })), HY = M("div")(({ theme: e }) => ({
40858
40945
  flex: "0 1 auto",
40859
40946
  paddingTop: e.spacing(2),
40860
40947
  paddingLeft: 0,
40861
40948
  marginLeft: 0
40862
- })), PY = M("div")(({ theme: e }) => ({
40949
+ })), UY = M("div")(({ theme: e }) => ({
40863
40950
  display: "flex",
40864
40951
  flex: 1,
40865
40952
  flexDirection: "column",
40866
40953
  marginRight: e.spacing(1)
40867
- })), FY = M("div")(({ theme: e }) => ({
40954
+ })), WY = M("div")(({ theme: e }) => ({
40868
40955
  fontSize: e.typography.fontSize - 2,
40869
40956
  color: e.palette.error.main
40870
- })), IY = class extends ht.Component {
40957
+ })), GY = class extends ht.Component {
40871
40958
  static propTypes = {
40872
40959
  noLabels: U.default.bool,
40873
40960
  useLetterOrdering: U.default.bool,
@@ -40949,20 +41036,20 @@ var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y
40949
41036
  });
40950
41037
  };
40951
41038
  render() {
40952
- let { data: e, mode: t, onDelete: n, defaultFeedback: r, index: i, className: a, noLabels: o, useLetterOrdering: s, imageSupport: c, disableImageAlignmentButtons: l, disabled: u, spellCheck: d, nonEmpty: f, allowFeedBack: p, allowDelete: m, pluginOpts: h, toolbarOpts: g, error: _, noCorrectAnswerError: v, uploadSoundSupport: y, maxImageWidth: b, maxImageHeight: x, mathMlOptions: S = {} } = this.props, C = t === "checkbox" ? LJ : zJ;
40953
- return /* @__PURE__ */ F(OY, { children: [
40954
- i > 0 && /* @__PURE__ */ P(DY, {
41039
+ let { data: e, mode: t, onDelete: n, defaultFeedback: r, index: i, className: a, noLabels: o, useLetterOrdering: s, imageSupport: c, disableImageAlignmentButtons: l, disabled: u, spellCheck: d, nonEmpty: f, allowFeedBack: p, allowDelete: m, pluginOpts: h, toolbarOpts: g, error: _, noCorrectAnswerError: v, uploadSoundSupport: y, maxImageWidth: b, maxImageHeight: x, mathMlOptions: S = {} } = this.props, C = t === "checkbox" ? KJ : JJ;
41040
+ return /* @__PURE__ */ F(LY, { children: [
41041
+ i > 0 && /* @__PURE__ */ P(IY, {
40955
41042
  type: "title",
40956
41043
  children: s ? String.fromCharCode(96 + i).toUpperCase() : i
40957
41044
  }),
40958
- /* @__PURE__ */ P(kY, { children: /* @__PURE__ */ P(C, {
41045
+ /* @__PURE__ */ P(RY, { children: /* @__PURE__ */ P(C, {
40959
41046
  onChange: this.onCheckedChange,
40960
41047
  label: o ? "" : "Correct",
40961
41048
  checked: !!e.correct,
40962
41049
  error: v
40963
41050
  }) }),
40964
- /* @__PURE__ */ F(PY, { children: [
40965
- /* @__PURE__ */ P(xY, {
41051
+ /* @__PURE__ */ F(UY, { children: [
41052
+ /* @__PURE__ */ P(AY, {
40966
41053
  label: o ? "" : "Label",
40967
41054
  value: e.label,
40968
41055
  onChange: this.onLabelChange,
@@ -40979,8 +41066,8 @@ var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y
40979
41066
  maxImageWidth: b,
40980
41067
  maxImageHeight: x
40981
41068
  }),
40982
- _ && /* @__PURE__ */ P(FY, { children: _ }),
40983
- p && /* @__PURE__ */ P(EY, {
41069
+ _ && /* @__PURE__ */ P(WY, { children: _ }),
41070
+ p && /* @__PURE__ */ P(FY, {
40984
41071
  ...e.feedback,
40985
41072
  correct: e.correct,
40986
41073
  defaults: r,
@@ -40988,16 +41075,16 @@ var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y
40988
41075
  toolbarOpts: g
40989
41076
  })
40990
41077
  ] }),
40991
- p && /* @__PURE__ */ P(AY, { children: /* @__PURE__ */ P(gY, {
41078
+ p && /* @__PURE__ */ P(zY, { children: /* @__PURE__ */ P(TY, {
40992
41079
  label: o ? "" : "Feedback",
40993
- children: /* @__PURE__ */ P(jY, { children: /* @__PURE__ */ P(fY, {
41080
+ children: /* @__PURE__ */ P(BY, { children: /* @__PURE__ */ P(xY, {
40994
41081
  onChange: this.onFeedbackTypeChange,
40995
41082
  value: e.feedback
40996
41083
  }) })
40997
41084
  }) }),
40998
- m && /* @__PURE__ */ P(NY, { children: /* @__PURE__ */ P(gY, {
41085
+ m && /* @__PURE__ */ P(HY, { children: /* @__PURE__ */ P(TY, {
40999
41086
  label: o ? "" : "Delete",
41000
- children: /* @__PURE__ */ P(MY, { children: /* @__PURE__ */ P(fS, {
41087
+ children: /* @__PURE__ */ P(VY, { children: /* @__PURE__ */ P(fS, {
41001
41088
  "aria-label": "delete",
41002
41089
  onClick: n,
41003
41090
  size: "large",
@@ -41006,21 +41093,21 @@ var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y
41006
41093
  }) })
41007
41094
  ] });
41008
41095
  }
41009
- }, LY = Object.defineProperty, RY = (e, t) => {
41096
+ }, KY = Object.defineProperty, qY = (e, t) => {
41010
41097
  let n = {};
41011
- for (var r in e) LY(n, r, {
41098
+ for (var r in e) KY(n, r, {
41012
41099
  get: e[r],
41013
41100
  enumerable: !0
41014
41101
  });
41015
- return t || LY(n, Symbol.toStringTag, { value: "Module" }), n;
41016
- }, zY = M("div")(() => ({
41102
+ return t || KY(n, Symbol.toStringTag, { value: "Module" }), n;
41103
+ }, JY = M("div")(() => ({
41017
41104
  display: "flex",
41018
41105
  flexDirection: "column",
41019
41106
  position: "relative"
41020
- })), BY = M("div")(() => ({
41107
+ })), YY = M("div")(() => ({
41021
41108
  display: "flex",
41022
41109
  justifyContent: "space-between"
41023
- })), VY = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), HY = M("div")(() => ({ flex: "1" })), UY = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), WY = class extends ht.Component {
41110
+ })), XY = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), ZY = M("div")(() => ({ flex: "1" })), QY = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), $Y = class extends ht.Component {
41024
41111
  static propTypes = {
41025
41112
  mode: U.default.oneOf(["tabbed", "inline"]),
41026
41113
  secondary: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]),
@@ -41038,7 +41125,7 @@ var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y
41038
41125
  } catch (e) {
41039
41126
  console.log(e.toString());
41040
41127
  }
41041
- return /* @__PURE__ */ F(zY, {
41128
+ return /* @__PURE__ */ F(JY, {
41042
41129
  style: {
41043
41130
  minHeight: i,
41044
41131
  minWidth: a,
@@ -41046,28 +41133,28 @@ var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y
41046
41133
  maxWidth: s
41047
41134
  },
41048
41135
  children: [
41049
- e === "inline" && /* @__PURE__ */ F(BY, { children: [/* @__PURE__ */ P(HY, {
41136
+ e === "inline" && /* @__PURE__ */ F(YY, { children: [/* @__PURE__ */ P(ZY, {
41050
41137
  className: "design-container",
41051
41138
  children: n
41052
- }), l && /* @__PURE__ */ P(UY, {
41139
+ }), l && /* @__PURE__ */ P(QY, {
41053
41140
  className: "settings-container",
41054
41141
  children: t
41055
41142
  })] }),
41056
- e === "tabbed" && l && /* @__PURE__ */ F(VJ, {
41143
+ e === "tabbed" && l && /* @__PURE__ */ F(XJ, {
41057
41144
  onChange: this.onTabsChange,
41058
41145
  contentClassName: "content-container",
41059
41146
  indicatorColor: "primary",
41060
- children: [/* @__PURE__ */ P(VY, {
41147
+ children: [/* @__PURE__ */ P(XY, {
41061
41148
  title: "Design",
41062
41149
  className: "design-container",
41063
41150
  children: n
41064
- }), /* @__PURE__ */ P(VY, {
41151
+ }), /* @__PURE__ */ P(XY, {
41065
41152
  title: "Settings",
41066
41153
  className: "settings-container",
41067
41154
  children: t
41068
41155
  })]
41069
41156
  }),
41070
- e === "tabbed" && !l && /* @__PURE__ */ P(VY, {
41157
+ e === "tabbed" && !l && /* @__PURE__ */ P(XY, {
41071
41158
  className: "design-container",
41072
41159
  children: n
41073
41160
  })
@@ -41077,18 +41164,18 @@ var gY = hY(Ze, "InputContainer") || hY(yY.InputContainer, "InputContainer"), _Y
41077
41164
  };
41078
41165
  //#endregion
41079
41166
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
41080
- function GY() {
41081
- return GY = Object.assign ? Object.assign.bind() : function(e) {
41167
+ function eX() {
41168
+ return eX = Object.assign ? Object.assign.bind() : function(e) {
41082
41169
  for (var t = 1; t < arguments.length; t++) {
41083
41170
  var n = arguments[t];
41084
41171
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
41085
41172
  }
41086
41173
  return e;
41087
- }, GY.apply(null, arguments);
41174
+ }, eX.apply(null, arguments);
41088
41175
  }
41089
41176
  //#endregion
41090
41177
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
41091
- function KY(e, t) {
41178
+ function tX(e, t) {
41092
41179
  if (e == null) return {};
41093
41180
  var n = {};
41094
41181
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -41099,19 +41186,19 @@ function KY(e, t) {
41099
41186
  }
41100
41187
  //#endregion
41101
41188
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
41102
- function qY(e, t) {
41103
- return qY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41189
+ function nX(e, t) {
41190
+ return nX = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41104
41191
  return e.__proto__ = t, e;
41105
- }, qY(e, t);
41192
+ }, nX(e, t);
41106
41193
  }
41107
41194
  //#endregion
41108
41195
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
41109
- function JY(e, t) {
41110
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, qY(e, t);
41196
+ function rX(e, t) {
41197
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, nX(e, t);
41111
41198
  }
41112
41199
  //#endregion
41113
41200
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
41114
- var YY = (function() {
41201
+ var iX = (function() {
41115
41202
  if (typeof Map < "u") return Map;
41116
41203
  function e(e, t) {
41117
41204
  var n = -1;
@@ -41150,34 +41237,34 @@ var YY = (function() {
41150
41237
  }
41151
41238
  }, t;
41152
41239
  }();
41153
- })(), XY = typeof window < "u" && typeof document < "u" && window.document === document, ZY = (function() {
41240
+ })(), aX = typeof window < "u" && typeof document < "u" && window.document === document, oX = (function() {
41154
41241
  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")();
41155
- })(), QY = (function() {
41156
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(ZY) : function(e) {
41242
+ })(), sX = (function() {
41243
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(oX) : function(e) {
41157
41244
  return setTimeout(function() {
41158
41245
  return e(Date.now());
41159
41246
  }, 1e3 / 60);
41160
41247
  };
41161
- })(), $Y = 2;
41162
- function eX(e, t) {
41248
+ })(), cX = 2;
41249
+ function lX(e, t) {
41163
41250
  var n = !1, r = !1, i = 0;
41164
41251
  function a() {
41165
41252
  n && (n = !1, e()), r && s();
41166
41253
  }
41167
41254
  function o() {
41168
- QY(a);
41255
+ sX(a);
41169
41256
  }
41170
41257
  function s() {
41171
41258
  var e = Date.now();
41172
41259
  if (n) {
41173
- if (e - i < $Y) return;
41260
+ if (e - i < cX) return;
41174
41261
  r = !0;
41175
41262
  } else n = !0, r = !1, setTimeout(o, t);
41176
41263
  i = e;
41177
41264
  }
41178
41265
  return s;
41179
41266
  }
41180
- var tX = 20, nX = [
41267
+ var uX = 20, dX = [
41181
41268
  "top",
41182
41269
  "right",
41183
41270
  "bottom",
@@ -41186,9 +41273,9 @@ var tX = 20, nX = [
41186
41273
  "height",
41187
41274
  "size",
41188
41275
  "weight"
41189
- ], rX = typeof MutationObserver < "u", iX = function() {
41276
+ ], fX = typeof MutationObserver < "u", pX = function() {
41190
41277
  function e() {
41191
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = eX(this.refresh.bind(this), tX);
41278
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = lX(this.refresh.bind(this), uX);
41192
41279
  }
41193
41280
  return e.prototype.addObserver = function(e) {
41194
41281
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -41205,23 +41292,23 @@ var tX = 20, nX = [
41205
41292
  return e.broadcastActive();
41206
41293
  }), e.length > 0;
41207
41294
  }, e.prototype.connect_ = function() {
41208
- !XY || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), rX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41295
+ !aX || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), fX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41209
41296
  attributes: !0,
41210
41297
  childList: !0,
41211
41298
  characterData: !0,
41212
41299
  subtree: !0
41213
41300
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
41214
41301
  }, e.prototype.disconnect_ = function() {
41215
- !XY || !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);
41302
+ !aX || !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);
41216
41303
  }, e.prototype.onTransitionEnd_ = function(e) {
41217
41304
  var t = e.propertyName, n = t === void 0 ? "" : t;
41218
- nX.some(function(e) {
41305
+ dX.some(function(e) {
41219
41306
  return !!~n.indexOf(e);
41220
41307
  }) && this.refresh();
41221
41308
  }, e.getInstance = function() {
41222
41309
  return this.instance_ ||= new e(), this.instance_;
41223
41310
  }, e.instance_ = null, e;
41224
- }(), aX = (function(e, t) {
41311
+ }(), mX = (function(e, t) {
41225
41312
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
41226
41313
  var i = r[n];
41227
41314
  Object.defineProperty(e, i, {
@@ -41232,19 +41319,19 @@ var tX = 20, nX = [
41232
41319
  });
41233
41320
  }
41234
41321
  return e;
41235
- }), oX = (function(e) {
41236
- return e && e.ownerDocument && e.ownerDocument.defaultView || ZY;
41237
- }), sX = _X(0, 0, 0, 0);
41238
- function cX(e) {
41322
+ }), hX = (function(e) {
41323
+ return e && e.ownerDocument && e.ownerDocument.defaultView || oX;
41324
+ }), gX = EX(0, 0, 0, 0);
41325
+ function _X(e) {
41239
41326
  return parseFloat(e) || 0;
41240
41327
  }
41241
- function lX(e) {
41328
+ function vX(e) {
41242
41329
  return [...arguments].slice(1).reduce(function(t, n) {
41243
41330
  var r = e["border-" + n + "-width"];
41244
- return t + cX(r);
41331
+ return t + _X(r);
41245
41332
  }, 0);
41246
41333
  }
41247
- function uX(e) {
41334
+ function yX(e) {
41248
41335
  for (var t = [
41249
41336
  "top",
41250
41337
  "right",
@@ -41252,40 +41339,40 @@ function uX(e) {
41252
41339
  "left"
41253
41340
  ], n = {}, r = 0, i = t; r < i.length; r++) {
41254
41341
  var a = i[r], o = e["padding-" + a];
41255
- n[a] = cX(o);
41342
+ n[a] = _X(o);
41256
41343
  }
41257
41344
  return n;
41258
41345
  }
41259
- function dX(e) {
41346
+ function bX(e) {
41260
41347
  var t = e.getBBox();
41261
- return _X(0, 0, t.width, t.height);
41348
+ return EX(0, 0, t.width, t.height);
41262
41349
  }
41263
- function fX(e) {
41350
+ function xX(e) {
41264
41351
  var t = e.clientWidth, n = e.clientHeight;
41265
- if (!t && !n) return sX;
41266
- var r = oX(e).getComputedStyle(e), i = uX(r), a = i.left + i.right, o = i.top + i.bottom, s = cX(r.width), c = cX(r.height);
41267
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= lX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= lX(r, "top", "bottom") + o)), !mX(e)) {
41352
+ if (!t && !n) return gX;
41353
+ var r = hX(e).getComputedStyle(e), i = yX(r), a = i.left + i.right, o = i.top + i.bottom, s = _X(r.width), c = _X(r.height);
41354
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= vX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= vX(r, "top", "bottom") + o)), !CX(e)) {
41268
41355
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
41269
41356
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
41270
41357
  }
41271
- return _X(i.left, i.top, s, c);
41358
+ return EX(i.left, i.top, s, c);
41272
41359
  }
41273
- var pX = (function() {
41360
+ var SX = (function() {
41274
41361
  return typeof SVGGraphicsElement < "u" ? function(e) {
41275
- return e instanceof oX(e).SVGGraphicsElement;
41362
+ return e instanceof hX(e).SVGGraphicsElement;
41276
41363
  } : function(e) {
41277
- return e instanceof oX(e).SVGElement && typeof e.getBBox == "function";
41364
+ return e instanceof hX(e).SVGElement && typeof e.getBBox == "function";
41278
41365
  };
41279
41366
  })();
41280
- function mX(e) {
41281
- return e === oX(e).document.documentElement;
41367
+ function CX(e) {
41368
+ return e === hX(e).document.documentElement;
41282
41369
  }
41283
- function hX(e) {
41284
- return XY ? pX(e) ? dX(e) : fX(e) : sX;
41370
+ function wX(e) {
41371
+ return aX ? SX(e) ? bX(e) : xX(e) : gX;
41285
41372
  }
41286
- function gX(e) {
41373
+ function TX(e) {
41287
41374
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
41288
- return aX(a, {
41375
+ return mX(a, {
41289
41376
  x: t,
41290
41377
  y: n,
41291
41378
  width: r,
@@ -41296,7 +41383,7 @@ function gX(e) {
41296
41383
  left: t
41297
41384
  }), a;
41298
41385
  }
41299
- function _X(e, t, n, r) {
41386
+ function EX(e, t, n, r) {
41300
41387
  return {
41301
41388
  x: e,
41302
41389
  y: t,
@@ -41304,42 +41391,42 @@ function _X(e, t, n, r) {
41304
41391
  height: r
41305
41392
  };
41306
41393
  }
41307
- var vX = function() {
41394
+ var DX = function() {
41308
41395
  function e(e) {
41309
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = _X(0, 0, 0, 0), this.target = e;
41396
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = EX(0, 0, 0, 0), this.target = e;
41310
41397
  }
41311
41398
  return e.prototype.isActive = function() {
41312
- var e = hX(this.target);
41399
+ var e = wX(this.target);
41313
41400
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41314
41401
  }, e.prototype.broadcastRect = function() {
41315
41402
  var e = this.contentRect_;
41316
41403
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41317
41404
  }, e;
41318
- }(), yX = function() {
41405
+ }(), OX = function() {
41319
41406
  function e(e, t) {
41320
- var n = gX(t);
41321
- aX(this, {
41407
+ var n = TX(t);
41408
+ mX(this, {
41322
41409
  target: e,
41323
41410
  contentRect: n
41324
41411
  });
41325
41412
  }
41326
41413
  return e;
41327
- }(), bX = function() {
41414
+ }(), kX = function() {
41328
41415
  function e(e, t, n) {
41329
- if (this.activeObservations_ = [], this.observations_ = new YY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41416
+ if (this.activeObservations_ = [], this.observations_ = new iX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41330
41417
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41331
41418
  }
41332
41419
  return e.prototype.observe = function(e) {
41333
41420
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41334
41421
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41335
- if (!(e instanceof oX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41422
+ if (!(e instanceof hX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41336
41423
  var t = this.observations_;
41337
- t.has(e) || (t.set(e, new vX(e)), this.controller_.addObserver(this), this.controller_.refresh());
41424
+ t.has(e) || (t.set(e, new DX(e)), this.controller_.addObserver(this), this.controller_.refresh());
41338
41425
  }
41339
41426
  }, e.prototype.unobserve = function(e) {
41340
41427
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41341
41428
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41342
- if (!(e instanceof oX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41429
+ if (!(e instanceof hX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41343
41430
  var t = this.observations_;
41344
41431
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41345
41432
  }
@@ -41353,7 +41440,7 @@ var vX = function() {
41353
41440
  }, e.prototype.broadcastActive = function() {
41354
41441
  if (this.hasActive()) {
41355
41442
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41356
- return new yX(e.target, e.broadcastRect());
41443
+ return new OX(e.target, e.broadcastRect());
41357
41444
  });
41358
41445
  this.callback_.call(e, t, e), this.clearActive();
41359
41446
  }
@@ -41362,12 +41449,12 @@ var vX = function() {
41362
41449
  }, e.prototype.hasActive = function() {
41363
41450
  return this.activeObservations_.length > 0;
41364
41451
  }, e;
41365
- }(), xX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new YY(), SX = function() {
41452
+ }(), AX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new iX(), jX = function() {
41366
41453
  function e(t) {
41367
41454
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41368
41455
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41369
- var n = new bX(t, iX.getInstance(), this);
41370
- xX.set(this, n);
41456
+ var n = new kX(t, pX.getInstance(), this);
41457
+ AX.set(this, n);
41371
41458
  }
41372
41459
  return e;
41373
41460
  }();
@@ -41376,27 +41463,27 @@ var vX = function() {
41376
41463
  "unobserve",
41377
41464
  "disconnect"
41378
41465
  ].forEach(function(e) {
41379
- SX.prototype[e] = function() {
41466
+ jX.prototype[e] = function() {
41380
41467
  var t;
41381
- return (t = xX.get(this))[e].apply(t, arguments);
41468
+ return (t = AX.get(this))[e].apply(t, arguments);
41382
41469
  };
41383
41470
  });
41384
- var CX = (function() {
41385
- return ZY.ResizeObserver === void 0 ? SX : ZY.ResizeObserver;
41386
- })(), wX = [
41471
+ var MX = (function() {
41472
+ return oX.ResizeObserver === void 0 ? jX : oX.ResizeObserver;
41473
+ })(), NX = [
41387
41474
  "client",
41388
41475
  "offset",
41389
41476
  "scroll",
41390
41477
  "bounds",
41391
41478
  "margin"
41392
41479
  ];
41393
- function TX(e) {
41480
+ function PX(e) {
41394
41481
  var t = [];
41395
- return wX.forEach(function(n) {
41482
+ return NX.forEach(function(n) {
41396
41483
  e[n] && t.push(n);
41397
41484
  }), t;
41398
41485
  }
41399
- function EX(e, t) {
41486
+ function FX(e, t) {
41400
41487
  var n = {};
41401
41488
  if (t.indexOf("client") > -1 && (n.client = {
41402
41489
  top: e.clientTop,
@@ -41435,14 +41522,14 @@ function EX(e, t) {
41435
41522
  }
41436
41523
  return n;
41437
41524
  }
41438
- function DX(e) {
41525
+ function IX(e) {
41439
41526
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
41440
41527
  }
41441
- function OX(e) {
41528
+ function LX(e) {
41442
41529
  return function(t) {
41443
41530
  var n, r;
41444
41531
  return r = n = /*#__PURE__*/ function(n) {
41445
- JY(r, n);
41532
+ rX(r, n);
41446
41533
  function r() {
41447
41534
  var t, r = [...arguments];
41448
41535
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -41453,24 +41540,24 @@ function OX(e) {
41453
41540
  bounds: {},
41454
41541
  margin: {}
41455
41542
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
41456
- var r = EX(t._node, e || TX(t.props));
41543
+ var r = FX(t._node, e || PX(t.props));
41457
41544
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
41458
41545
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
41459
41546
  });
41460
41547
  }, t._handleRef = function(e) {
41461
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = DX(t._node);
41548
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = IX(t._node);
41462
41549
  var n = t.props.innerRef;
41463
41550
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
41464
41551
  }, t;
41465
41552
  }
41466
41553
  var i = r.prototype;
41467
41554
  return i.componentDidMount = function() {
41468
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new CX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(EX(this._node, e || TX(this.props))));
41555
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new MX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(FX(this._node, e || PX(this.props))));
41469
41556
  }, i.componentWillUnmount = function() {
41470
41557
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
41471
41558
  }, i.render = function() {
41472
41559
  var e = this.props;
41473
- return e.innerRef, e.onResize, vt(t, GY({}, KY(e, ["innerRef", "onResize"]), {
41560
+ return e.innerRef, e.onResize, vt(t, eX({}, tX(e, ["innerRef", "onResize"]), {
41474
41561
  measureRef: this._handleRef,
41475
41562
  measure: this.measure,
41476
41563
  contentRect: this.state.contentRect
@@ -41487,7 +41574,7 @@ function OX(e) {
41487
41574
  }, r;
41488
41575
  };
41489
41576
  }
41490
- var kX = OX()(function(e) {
41577
+ var RX = LX()(function(e) {
41491
41578
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
41492
41579
  return i({
41493
41580
  measure: t,
@@ -41495,10 +41582,10 @@ var kX = OX()(function(e) {
41495
41582
  contentRect: r
41496
41583
  });
41497
41584
  });
41498
- kX.displayName = "Measure", kX.propTypes.children = U.default.func;
41585
+ RX.displayName = "Measure", RX.propTypes.children = U.default.func;
41499
41586
  //#endregion
41500
41587
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
41501
- var AX = M("div")(() => ({
41588
+ var zX = M("div")(() => ({
41502
41589
  backgroundColor: D.white(),
41503
41590
  border: `2px solid ${D.border()}`,
41504
41591
  display: "flex",
@@ -41508,7 +41595,7 @@ var AX = M("div")(() => ({
41508
41595
  maxWidth: "300px",
41509
41596
  padding: "20px 4px 4px 20px",
41510
41597
  zIndex: 99
41511
- })), jX = class extends ht.Component {
41598
+ })), BX = class extends ht.Component {
41512
41599
  static propTypes = {
41513
41600
  className: U.default.string,
41514
41601
  children: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]).isRequired
@@ -41516,19 +41603,19 @@ var AX = M("div")(() => ({
41516
41603
  static defaultProps = {};
41517
41604
  render() {
41518
41605
  let { className: e, children: t } = this.props;
41519
- return /* @__PURE__ */ P(AX, {
41606
+ return /* @__PURE__ */ P(zX, {
41520
41607
  className: e,
41521
41608
  children: t
41522
41609
  });
41523
41610
  }
41524
- }, MX = ie({
41611
+ }, VX = ie({
41525
41612
  typography: { fontFamily: "inherit" },
41526
41613
  components: { MuiButton: { styleOverrides: { contained: {
41527
41614
  backgroundColor: "#e0e0e0",
41528
41615
  color: "#000000",
41529
41616
  "&:hover": { backgroundColor: "#bdbdbd" }
41530
41617
  } } } }
41531
- }), NX = class extends ht.Component {
41618
+ }), HX = class extends ht.Component {
41532
41619
  static propTypes = {
41533
41620
  children: U.default.oneOfType([
41534
41621
  U.default.string,
@@ -41561,19 +41648,19 @@ var AX = M("div")(() => ({
41561
41648
  return /* @__PURE__ */ P(te, {
41562
41649
  injectFirst: !0,
41563
41650
  children: /* @__PURE__ */ P(he, {
41564
- theme: MX,
41565
- children: /* @__PURE__ */ P(kX, {
41651
+ theme: VX,
41652
+ children: /* @__PURE__ */ P(RX, {
41566
41653
  bounds: !0,
41567
41654
  onResize: this.onResize,
41568
41655
  children: ({ measureRef: e }) => {
41569
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(jX, {
41656
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(BX, {
41570
41657
  className: "settings-box",
41571
41658
  children: n
41572
41659
  }) : n;
41573
41660
  return /* @__PURE__ */ F("div", {
41574
41661
  ref: e,
41575
41662
  className: "main-container extraCSSRules",
41576
- children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(WY, {
41663
+ children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P($Y, {
41577
41664
  mode: o,
41578
41665
  secondary: s,
41579
41666
  dimensions: i,
@@ -41585,36 +41672,36 @@ var AX = M("div")(() => ({
41585
41672
  })
41586
41673
  });
41587
41674
  }
41588
- }, PX = OX("bounds")(NX), FX = /* @__PURE__ */ RY({
41589
- ConfigLayout: () => PX,
41590
- LayoutContents: () => WY
41591
- }), IX = /* @__PURE__ */ RY({
41592
- firstAvailableIndex: () => RX,
41593
- normalizeChoices: () => LX
41594
- }), LX = (e) => {
41675
+ }, UX = LX("bounds")(HX), WX = /* @__PURE__ */ qY({
41676
+ ConfigLayout: () => UX,
41677
+ LayoutContents: () => $Y
41678
+ }), GX = /* @__PURE__ */ qY({
41679
+ firstAvailableIndex: () => qX,
41680
+ normalizeChoices: () => KX
41681
+ }), KX = (e) => {
41595
41682
  let t = e.choices.map((e, t) => (e.value ||= `${t}`, e));
41596
41683
  return {
41597
41684
  ...e,
41598
41685
  choices: t
41599
41686
  };
41600
- }, RX = (e, t) => lt(e, `${t}`) ? RX(e, t + 1) : `${t}`, zX = M("div")(() => ({
41687
+ }, qX = (e, t) => lt(e, `${t}`) ? qX(e, t + 1) : `${t}`, JX = M("div")(() => ({
41601
41688
  display: "flex",
41602
41689
  width: "100%",
41603
41690
  justifyContent: "space-between"
41604
- })), BX = M(O)(({ theme: e }) => ({
41691
+ })), YX = M(O)(({ theme: e }) => ({
41605
41692
  color: "rgba(0, 0, 0, 0.89)",
41606
41693
  fontSize: e.typography.fontSize,
41607
41694
  paddingTop: e.spacing(2)
41608
- })), VX = M(bJ)(({ checked: e }) => ({
41695
+ })), XX = M(kJ)(({ checked: e }) => ({
41609
41696
  "&.Mui-checked .MuiSwitch-thumb": { color: `${D.tertiary()} !important` },
41610
41697
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${D.tertiaryLight()} !important` },
41611
41698
  "& .MuiSwitch-track": { backgroundColor: e ? `${D.tertiaryLight()} !important` : void 0 }
41612
- })), HX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(zX, { children: [/* @__PURE__ */ P(BX, { children: n }), /* @__PURE__ */ P(VX, {
41699
+ })), ZX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(JX, { children: [/* @__PURE__ */ P(YX, { children: n }), /* @__PURE__ */ P(XX, {
41613
41700
  checked: e,
41614
41701
  disabled: t,
41615
41702
  onChange: (e) => r(e.target.checked)
41616
41703
  })] });
41617
- HX.propTypes = {
41704
+ ZX.propTypes = {
41618
41705
  checked: U.default.bool,
41619
41706
  disabled: U.default.bool,
41620
41707
  label: U.default.string.isRequired,
@@ -41622,20 +41709,20 @@ HX.propTypes = {
41622
41709
  };
41623
41710
  //#endregion
41624
41711
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
41625
- var UX = M(Fe)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41712
+ var QX = M(Fe)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41626
41713
  color: "rgba(0, 0, 0, 0.89)",
41627
41714
  fontSize: e.typography.fontSize - 2,
41628
41715
  left: "-5px",
41629
41716
  position: "relative"
41630
- } })), WX = M(Be)(() => ({ color: `${D.tertiary()} !important` })), GX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(UX, {
41717
+ } })), $X = M(Be)(() => ({ color: `${D.tertiary()} !important` })), eZ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(QX, {
41631
41718
  value: t,
41632
- control: /* @__PURE__ */ P(WX, {
41719
+ control: /* @__PURE__ */ P($X, {
41633
41720
  checked: n,
41634
41721
  onChange: r
41635
41722
  }),
41636
41723
  label: e
41637
41724
  });
41638
- GX.propTypes = {
41725
+ eZ.propTypes = {
41639
41726
  label: U.default.string,
41640
41727
  value: U.default.string,
41641
41728
  checked: U.default.bool,
@@ -41643,26 +41730,26 @@ GX.propTypes = {
41643
41730
  };
41644
41731
  //#endregion
41645
41732
  //#region ../../lib-react/config-ui/dist/settings/panel.js
41646
- var KX = (0, Vt.default)("pie-lib:config-ui:settings:panel"), qX = {
41733
+ var tZ = (0, Vt.default)("pie-lib:config-ui:settings:panel"), nZ = {
41647
41734
  label: U.default.string,
41648
41735
  value: U.default.string
41649
- }, JX = {
41736
+ }, rZ = {
41650
41737
  label: U.default.string,
41651
41738
  value: U.default.string,
41652
41739
  onChange: U.default.func
41653
- }, YX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(WJ, {
41740
+ }, iZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P($J, {
41654
41741
  checked: t,
41655
41742
  label: e,
41656
41743
  onChange: (e) => {
41657
41744
  n(e.target.checked);
41658
41745
  }
41659
41746
  });
41660
- YX.propTypes = {
41747
+ iZ.propTypes = {
41661
41748
  label: U.default.string,
41662
41749
  value: U.default.bool,
41663
41750
  onChange: U.default.func
41664
41751
  };
41665
- var XX = M(nY)(({ theme: e }) => ({
41752
+ var aZ = M(dY)(({ theme: e }) => ({
41666
41753
  marginTop: e.spacing(.5),
41667
41754
  paddingBottom: e.spacing(.5),
41668
41755
  width: "100%",
@@ -41673,29 +41760,29 @@ var XX = M(nY)(({ theme: e }) => ({
41673
41760
  marginTop: e.spacing(2.5)
41674
41761
  },
41675
41762
  "& > div": { marginTop: e.spacing(2.5) }
41676
- })), ZX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(XX, {
41763
+ })), oZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(aZ, {
41677
41764
  direction: "horizontal",
41678
- customLabel: GX,
41765
+ customLabel: eZ,
41679
41766
  value: t,
41680
41767
  header: e,
41681
41768
  opts: r,
41682
41769
  onChange: n
41683
41770
  });
41684
- ZX.propTypes = {
41685
- ...JX,
41686
- choices: U.default.arrayOf(U.default.shape(qX))
41771
+ oZ.propTypes = {
41772
+ ...rZ,
41773
+ choices: U.default.arrayOf(U.default.shape(nZ))
41687
41774
  };
41688
- var QX = ZX, $X = M("p")(({ theme: e }) => ({
41775
+ var sZ = oZ, cZ = M("p")(({ theme: e }) => ({
41689
41776
  margin: 0,
41690
41777
  fontSize: e.typography.fontSize
41691
- })), eZ = M(lM)(({ theme: e }) => ({
41778
+ })), lZ = M(lM)(({ theme: e }) => ({
41692
41779
  marginTop: e.spacing(.5),
41693
41780
  border: "2px solid lightgrey",
41694
41781
  padding: `0 ${e.spacing(1)}`,
41695
41782
  borderRadius: "4px"
41696
- })), tZ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41783
+ })), uZ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41697
41784
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
41698
- return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P($X, { children: e }), /* @__PURE__ */ P(eZ, {
41785
+ return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(cZ, { children: e }), /* @__PURE__ */ P(lZ, {
41699
41786
  value: t || r && r[0],
41700
41787
  onChange: ({ target: e }) => n(e.value),
41701
41788
  input: /* @__PURE__ */ P(Bj, { id: `dropdown-${e}` }),
@@ -41710,14 +41797,14 @@ var QX = ZX, $X = M("p")(({ theme: e }) => ({
41710
41797
  }, t))
41711
41798
  })] });
41712
41799
  };
41713
- tZ.propTypes = {
41714
- ...JX,
41800
+ uZ.propTypes = {
41801
+ ...rZ,
41715
41802
  choices: U.default.arrayOf(U.default.string)
41716
41803
  };
41717
- var nZ = M(He)(({ theme: e }) => ({
41804
+ var dZ = M(He)(({ theme: e }) => ({
41718
41805
  marginRight: e.spacing(3),
41719
41806
  marginTop: e.spacing(1)
41720
- })), rZ = ({ label: e }) => /* @__PURE__ */ P(nZ, { children: e }), iZ = M(JJ)(({ theme: e }) => ({
41807
+ })), fZ = ({ label: e }) => /* @__PURE__ */ P(dZ, { children: e }), pZ = M(rY)(({ theme: e }) => ({
41721
41808
  width: "35%",
41722
41809
  marginRight: e.spacing(3),
41723
41810
  marginTop: e.spacing(1),
@@ -41728,7 +41815,7 @@ var nZ = M(He)(({ theme: e }) => ({
41728
41815
  padding: `0 ${e.spacing(1)}`,
41729
41816
  backgroundColor: "transparent"
41730
41817
  }
41731
- })), aZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(iZ, {
41818
+ })), mZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(pZ, {
41732
41819
  variant: "standard",
41733
41820
  label: e || "Label",
41734
41821
  value: t,
@@ -41739,45 +41826,45 @@ var nZ = M(He)(({ theme: e }) => ({
41739
41826
  showErrorWhenOutsideRange: !0,
41740
41827
  disableUnderline: !0
41741
41828
  });
41742
- aZ.propTypes = {
41743
- ...JX,
41829
+ mZ.propTypes = {
41830
+ ...rZ,
41744
41831
  suffix: U.default.string,
41745
41832
  min: U.default.number,
41746
41833
  max: U.default.number,
41747
41834
  value: U.default.number
41748
- }, rZ.propTypes = { ...JX };
41749
- var oZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(HX, {
41835
+ }, fZ.propTypes = { ...rZ };
41836
+ var hZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(ZX, {
41750
41837
  label: t,
41751
41838
  checked: !!n,
41752
41839
  disabled: !!e,
41753
41840
  toggle: r
41754
41841
  });
41755
- oZ.propTypes = {
41756
- ...JX,
41842
+ hZ.propTypes = {
41843
+ ...rZ,
41757
41844
  value: U.default.bool
41758
41845
  };
41759
- var sZ = {
41760
- toggle: oZ,
41761
- radio: QX,
41762
- dropdown: tZ,
41763
- numberField: aZ,
41764
- checkbox: YX,
41765
- textField: rZ
41766
- }, cZ = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), lZ = M("div")(({ theme: e }) => ({
41846
+ var gZ = {
41847
+ toggle: hZ,
41848
+ radio: sZ,
41849
+ dropdown: uZ,
41850
+ numberField: mZ,
41851
+ checkbox: iZ,
41852
+ textField: fZ
41853
+ }, _Z = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), vZ = M("div")(({ theme: e }) => ({
41767
41854
  color: "#495B8F",
41768
41855
  fontSize: e.typography.fontSize + 2,
41769
41856
  fontWeight: 600,
41770
41857
  marginBottom: e.spacing(1)
41771
- })), uZ = M("p")(({ theme: e }) => ({
41858
+ })), yZ = M("p")(({ theme: e }) => ({
41772
41859
  fontSize: e.typography.fontSize,
41773
41860
  marginBottom: 0
41774
- })), dZ = (e) => {
41861
+ })), bZ = (e) => {
41775
41862
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
41776
41863
  let { isConfigProperty: o, ...s } = st(e, r || n), c = st(o ? i : t, n), l = {
41777
41864
  ...s,
41778
41865
  key: n,
41779
41866
  value: c
41780
- }, u = sZ[l.type];
41867
+ }, u = gZ[l.type];
41781
41868
  return /* @__PURE__ */ P(u, {
41782
41869
  ...l,
41783
41870
  onChange: (e) => a(n, e, o)
@@ -41786,18 +41873,18 @@ var sZ = {
41786
41873
  let n = e[t];
41787
41874
  if (!n) return null;
41788
41875
  let { type: r, label: i, fields: a, choices: s } = n;
41789
- return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(uZ, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41876
+ return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(yZ, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41790
41877
  };
41791
- return /* @__PURE__ */ F(cZ, { children: [/* @__PURE__ */ P(lZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41878
+ return /* @__PURE__ */ F(_Z, { children: [/* @__PURE__ */ P(vZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41792
41879
  };
41793
- dZ.propTypes = {
41880
+ bZ.propTypes = {
41794
41881
  model: U.default.object,
41795
41882
  label: U.default.string,
41796
41883
  group: U.default.object,
41797
41884
  configuration: U.default.object,
41798
41885
  onChange: U.default.func
41799
41886
  };
41800
- var fZ = class extends ht.Component {
41887
+ var xZ = class extends ht.Component {
41801
41888
  static propTypes = {
41802
41889
  model: U.default.object,
41803
41890
  configuration: U.default.object,
@@ -41811,13 +41898,13 @@ var fZ = class extends ht.Component {
41811
41898
  onChangeConfiguration: () => {}
41812
41899
  };
41813
41900
  change = (e, t, n = !1) => {
41814
- KX("[changeModel]", e, t);
41901
+ tZ("[changeModel]", e, t);
41815
41902
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41816
41903
  n ? (dt(o, e, t), i(o, e)) : (dt(a, e, t), r(a, e));
41817
41904
  };
41818
41905
  render() {
41819
41906
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
41820
- return KX("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(dZ, {
41907
+ return tZ("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(bZ, {
41821
41908
  label: r,
41822
41909
  model: t,
41823
41910
  configuration: n,
@@ -41825,59 +41912,59 @@ var fZ = class extends ht.Component {
41825
41912
  onChange: this.change
41826
41913
  }, r) : null), r] });
41827
41914
  }
41828
- }, pZ = /* @__PURE__ */ RY({
41829
- Panel: () => fZ,
41830
- checkbox: () => xZ,
41831
- checkboxes: () => SZ,
41832
- dropdown: () => vZ,
41833
- numberField: () => yZ,
41834
- numberFields: () => bZ,
41835
- radio: () => _Z,
41836
- textField: () => mZ,
41837
- toggle: () => hZ
41838
- }), mZ = (e, t = !0) => ({
41915
+ }, SZ = /* @__PURE__ */ qY({
41916
+ Panel: () => xZ,
41917
+ checkbox: () => AZ,
41918
+ checkboxes: () => jZ,
41919
+ dropdown: () => DZ,
41920
+ numberField: () => OZ,
41921
+ numberFields: () => kZ,
41922
+ radio: () => EZ,
41923
+ textField: () => CZ,
41924
+ toggle: () => wZ
41925
+ }), CZ = (e, t = !0) => ({
41839
41926
  label: e,
41840
41927
  type: "textField",
41841
41928
  isConfigProperty: t
41842
- }), hZ = (e, t = !1, n = !1) => ({
41929
+ }), wZ = (e, t = !1, n = !1) => ({
41843
41930
  type: "toggle",
41844
41931
  label: e,
41845
41932
  isConfigProperty: t,
41846
41933
  disabled: n
41847
- }), gZ = (e) => typeof e == "string" ? {
41934
+ }), TZ = (e) => typeof e == "string" ? {
41848
41935
  label: e,
41849
41936
  value: e
41850
- } : e, _Z = function() {
41937
+ } : e, EZ = function() {
41851
41938
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41852
41939
  return {
41853
41940
  type: "radio",
41854
41941
  label: e,
41855
- choices: t && t.map((e) => gZ(e)),
41942
+ choices: t && t.map((e) => TZ(e)),
41856
41943
  isConfigProperty: n
41857
41944
  };
41858
- }, vZ = (e, t, n = !1) => ({
41945
+ }, DZ = (e, t, n = !1) => ({
41859
41946
  type: "dropdown",
41860
41947
  label: e,
41861
41948
  choices: t,
41862
41949
  isConfigProperty: n
41863
- }), yZ = (e, t, n = !1) => ({
41950
+ }), OZ = (e, t, n = !1) => ({
41864
41951
  ...t,
41865
41952
  label: e,
41866
41953
  type: "numberField",
41867
41954
  isConfigProperty: n
41868
- }), bZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
41869
- t[e] = yZ(t[e].label, t[e], n);
41955
+ }), kZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
41956
+ t[e] = OZ(t[e].label, t[e], n);
41870
41957
  }), {
41871
41958
  type: "numberFields",
41872
41959
  label: e,
41873
41960
  fields: t
41874
- }), xZ = (e, t, n = !1) => ({
41961
+ }), AZ = (e, t, n = !1) => ({
41875
41962
  ...t,
41876
41963
  label: e,
41877
41964
  type: "checkbox",
41878
41965
  isConfigProperty: n
41879
- }), SZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
41880
- t[e] = xZ(t[e].label, t[e], n);
41966
+ }), jZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
41967
+ t[e] = AZ(t[e].label, t[e], n);
41881
41968
  }), {
41882
41969
  type: "checkboxes",
41883
41970
  label: e,
@@ -41885,85 +41972,85 @@ var fZ = class extends ht.Component {
41885
41972
  });
41886
41973
  //#endregion
41887
41974
  //#region ../../lib-react/config-ui/dist/index.js
41888
- function CZ(e) {
41975
+ function MZ(e) {
41889
41976
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41890
41977
  }
41891
- function wZ(e, t) {
41892
- return !e || CZ(e) ? e : CZ(e.default) ? e.default : t && CZ(e[t]) ? e[t] : t && CZ(e[t]?.default) ? e[t].default : e;
41978
+ function NZ(e, t) {
41979
+ return !e || MZ(e) ? e : MZ(e.default) ? e.default : t && MZ(e[t]) ? e[t] : t && MZ(e[t]?.default) ? e[t].default : e;
41893
41980
  }
41894
- var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ = Ae, DZ = EZ.default, OZ = DZ && typeof DZ == "object" ? DZ : EZ, kZ = A(/*#__PURE__*/ P("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"), { Panel: AZ, toggle: jZ, radio: MZ, dropdown: NZ } = pZ, PZ = 9, FZ = M(TZ)(({ theme: e }) => ({
41981
+ var PZ = NZ(Ze, "InputContainer") || NZ(LZ.InputContainer, "InputContainer"), FZ = Ae, IZ = FZ.default, LZ = IZ && typeof IZ == "object" ? IZ : FZ, RZ = A(/*#__PURE__*/ P("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"), { Panel: zZ, toggle: BZ, radio: VZ, dropdown: HZ } = SZ, UZ = 9, WZ = M(PZ)(({ theme: e }) => ({
41895
41982
  width: "100%",
41896
41983
  paddingTop: e.spacing(2),
41897
41984
  marginBottom: e.spacing(2)
41898
- })), IZ = M(TZ)(({ theme: e }) => ({
41985
+ })), GZ = M(PZ)(({ theme: e }) => ({
41899
41986
  flex: 1,
41900
41987
  marginTop: e.spacing(1.5),
41901
41988
  paddingTop: e.spacing(2),
41902
41989
  marginLeft: e.spacing(3.5)
41903
- })), LZ = M(TZ)(({ theme: e }) => ({
41990
+ })), KZ = M(PZ)(({ theme: e }) => ({
41904
41991
  display: "flex",
41905
41992
  flexDirection: "column",
41906
41993
  marginBottom: e.spacing(1),
41907
41994
  width: "100%"
41908
- })), RZ = M(w)(({ theme: e }) => ({
41995
+ })), qZ = M(w)(({ theme: e }) => ({
41909
41996
  marginTop: e.spacing(1),
41910
41997
  float: "right"
41911
- })), zZ = M(RZ)({
41998
+ })), JZ = M(qZ)({
41912
41999
  cursor: "not-allowed",
41913
42000
  pointerEvents: "all",
41914
42001
  backgroundColor: D.disabled(),
41915
42002
  "&:hover": { backgroundColor: D.disabled() },
41916
42003
  "&:focus": { backgroundColor: D.disabled() }
41917
- }), BZ = M(ge)({
42004
+ }), YZ = M(ge)({
41918
42005
  display: "flex",
41919
42006
  alignItems: "center"
41920
- }), VZ = M(He)(({ theme: e }) => ({
42007
+ }), XZ = M(He)(({ theme: e }) => ({
41921
42008
  fontSize: e.typography.fontSize + 2,
41922
42009
  marginRight: e.spacing(1)
41923
- })), HZ = M(fJ)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
42010
+ })), ZZ = M(xJ)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
41924
42011
  fontSize: e.typography.fontSize - 2,
41925
42012
  whiteSpace: "pre",
41926
42013
  maxWidth: "500px"
41927
- } })), UZ = M("div")(({ theme: e }) => ({
42014
+ } })), QZ = M("div")(({ theme: e }) => ({
41928
42015
  fontSize: e.typography.fontSize - 2,
41929
42016
  color: e.palette.error.main,
41930
42017
  paddingTop: e.spacing(1)
41931
- })), WZ = (e) => {
42018
+ })), $Z = (e) => {
41932
42019
  let { model: t, configuration: n, onPromptChanged: r, onChoiceChanged: i, onRemoveChoice: a, onAddChoice: o, imageSupport: s, uploadSoundSupport: c, onChangeModel: l, onConfigurationChanged: u, onTeacherInstructionsChanged: d } = e, { addChoiceButton: f = {}, contentDimensions: p = {}, feedback: m = {}, deleteChoice: h = {}, choiceMode: g = {}, choicePrefix: _ = {}, partialScoring: v = {}, lockChoiceOrder: y = {}, teacherInstructions: b = {}, studentInstructions: x = {}, rationale: S = {}, scoringType: C = {}, sequentialChoiceLabels: w = {}, settingsPanelDisabled: ee, choicesLayout: T, spellCheck: te = {}, gridColumns: E, maxImageWidth: ne = {}, maxImageHeight: D = {}, prompt: O = {}, withRubric: k = {}, mathMlOptions: re = {}, language: ie = {}, languageChoices: ae = {} } = n || {}, { maxAnswerChoices: oe } = n || {}, { limitChoicesNumber: se, teacherInstructionsEnabled: ce, rationaleEnabled: A, feedbackEnabled: le, promptEnabled: ue, spellCheckEnabled: de, choices: fe, errors: pe, toolbarEditorPosition: me, extraCSSRules: he } = t || {}, { answerChoices: ge, choices: _e, correctResponse: ve, prompt: ye, rationale: be, teacherInstructions: xe } = pe || {}, Se = fe?.length ? Array.from({ length: fe.length }, (e, t) => `${t + 1}`) : [], { baseInputConfiguration: Ce = {} } = n, we = { position: me === "top" ? "top" : "bottom" };
41933
- se && (oe = PZ);
42020
+ se && (oe = UZ);
41934
42021
  let Te = (e = {}) => ({
41935
42022
  ...Ce,
41936
42023
  ...e
41937
42024
  }), Ee = Bt(n), De = ne && ne.prompt, j = D && D.prompt, Oe = oe && fe?.length >= oe ? `Only ${oe} allowed maximum` : "", ke = {
41938
- choiceMode: g.settings && MZ(g.label, ["checkbox", "radio"]),
41939
- "sequentialChoiceLabels.enabled": w.settings && jZ(w.label, !0),
41940
- choicePrefix: _.settings && MZ(_.label, ["numbers", "letters"]),
41941
- partialScoring: v.settings && jZ(v.label),
41942
- lockChoiceOrder: y.settings && jZ(y.label),
41943
- feedbackEnabled: m.settings && jZ(m.label),
41944
- choicesLayout: T.settings && NZ(T.label, [
42025
+ choiceMode: g.settings && VZ(g.label, ["checkbox", "radio"]),
42026
+ "sequentialChoiceLabels.enabled": w.settings && BZ(w.label, !0),
42027
+ choicePrefix: _.settings && VZ(_.label, ["numbers", "letters"]),
42028
+ partialScoring: v.settings && BZ(v.label),
42029
+ lockChoiceOrder: y.settings && BZ(y.label),
42030
+ feedbackEnabled: m.settings && BZ(m.label),
42031
+ choicesLayout: T.settings && HZ(T.label, [
41945
42032
  "vertical",
41946
42033
  "grid",
41947
42034
  "horizontal"
41948
42035
  ]),
41949
- gridColumns: T.settings && t.choicesLayout === "grid" && Se.length > 0 && NZ(E.label, Se),
41950
- "language.enabled": ie.settings && jZ(ie.label, !0),
41951
- language: ie.settings && ie.enabled && NZ(ae.label, ae.options)
42036
+ gridColumns: T.settings && t.choicesLayout === "grid" && Se.length > 0 && HZ(E.label, Se),
42037
+ "language.enabled": ie.settings && BZ(ie.label, !0),
42038
+ language: ie.settings && ie.enabled && HZ(ae.label, ae.options)
41952
42039
  }, Ae = {
41953
- teacherInstructionsEnabled: b.settings && jZ(b.label),
41954
- studentInstructionsEnabled: x.settings && jZ(x.label),
41955
- promptEnabled: O.settings && jZ(O.label),
41956
- rationaleEnabled: S.settings && jZ(S.label),
41957
- spellCheckEnabled: te.settings && jZ(te.label),
41958
- scoringType: C.settings && MZ(C.label, ["auto", "rubric"]),
41959
- rubricEnabled: k?.settings && jZ(k?.label)
41960
- };
41961
- return /* @__PURE__ */ F(FX.ConfigLayout, {
42040
+ teacherInstructionsEnabled: b.settings && BZ(b.label),
42041
+ studentInstructionsEnabled: x.settings && BZ(x.label),
42042
+ promptEnabled: O.settings && BZ(O.label),
42043
+ rationaleEnabled: S.settings && BZ(S.label),
42044
+ spellCheckEnabled: te.settings && BZ(te.label),
42045
+ scoringType: C.settings && VZ(C.label, ["auto", "rubric"]),
42046
+ rubricEnabled: k?.settings && BZ(k?.label)
42047
+ };
42048
+ return /* @__PURE__ */ F(WX.ConfigLayout, {
41962
42049
  dimensions: p,
41963
42050
  hideSettings: ee,
41964
42051
  extraCSSRules: he,
41965
42052
  classes: {},
41966
- settings: /* @__PURE__ */ P(AZ, {
42053
+ settings: /* @__PURE__ */ P(zZ, {
41967
42054
  model: t,
41968
42055
  onChangeModel: l,
41969
42056
  configuration: n,
@@ -41974,9 +42061,9 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
41974
42061
  }
41975
42062
  }),
41976
42063
  children: [
41977
- ce && /* @__PURE__ */ F(FZ, {
42064
+ ce && /* @__PURE__ */ F(WZ, {
41978
42065
  label: b.label,
41979
- children: [/* @__PURE__ */ P(qq, {
42066
+ children: [/* @__PURE__ */ P(nJ, {
41980
42067
  markup: t.teacherInstructions || "",
41981
42068
  onChange: d,
41982
42069
  imageSupport: s,
@@ -41991,11 +42078,11 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
41991
42078
  uploadSoundSupport: c,
41992
42079
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
41993
42080
  mathMlOptions: re
41994
- }), xe && /* @__PURE__ */ P(UZ, { children: xe })]
42081
+ }), xe && /* @__PURE__ */ P(QZ, { children: xe })]
41995
42082
  }),
41996
- ue && /* @__PURE__ */ F(FZ, {
42083
+ ue && /* @__PURE__ */ F(WZ, {
41997
42084
  label: O.label,
41998
- children: [/* @__PURE__ */ P(qq, {
42085
+ children: [/* @__PURE__ */ P(nJ, {
41999
42086
  markup: t.prompt,
42000
42087
  onChange: r,
42001
42088
  imageSupport: s,
@@ -42010,22 +42097,22 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42010
42097
  uploadSoundSupport: c,
42011
42098
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42012
42099
  mathMlOptions: re
42013
- }), ye && /* @__PURE__ */ P(UZ, { children: ye })]
42100
+ }), ye && /* @__PURE__ */ P(QZ, { children: ye })]
42014
42101
  }),
42015
- /* @__PURE__ */ F(BZ, { children: [/* @__PURE__ */ P(VZ, {
42102
+ /* @__PURE__ */ F(YZ, { children: [/* @__PURE__ */ P(XZ, {
42016
42103
  component: "div",
42017
42104
  children: "Choices"
42018
- }), /* @__PURE__ */ P(HZ, {
42105
+ }), /* @__PURE__ */ P(ZZ, {
42019
42106
  disableFocusListener: !0,
42020
42107
  disableTouchListener: !0,
42021
42108
  placement: "right",
42022
42109
  title: Ee,
42023
- children: /* @__PURE__ */ P(kZ, {
42110
+ children: /* @__PURE__ */ P(RZ, {
42024
42111
  fontSize: "small",
42025
42112
  color: "primary"
42026
42113
  })
42027
42114
  })] }),
42028
- fe.map((e, r) => /* @__PURE__ */ F(LZ, { children: [/* @__PURE__ */ P(IY, {
42115
+ fe.map((e, r) => /* @__PURE__ */ F(KZ, { children: [/* @__PURE__ */ P(GY, {
42029
42116
  index: r + 1,
42030
42117
  useLetterOrdering: t.choicePrefix === "letters",
42031
42118
  mode: t.choiceMode,
@@ -42047,9 +42134,9 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42047
42134
  maxImageHeight: D && D.choices || j,
42048
42135
  uploadSoundSupport: c,
42049
42136
  mathMlOptions: re
42050
- }, r), A && /* @__PURE__ */ F(IZ, {
42137
+ }, r), A && /* @__PURE__ */ F(GZ, {
42051
42138
  label: S.label,
42052
- children: [/* @__PURE__ */ P(qq, {
42139
+ children: [/* @__PURE__ */ P(nJ, {
42053
42140
  markup: e.rationale || "",
42054
42141
  onChange: (t) => i(r, {
42055
42142
  ...e,
@@ -42065,19 +42152,19 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42065
42152
  uploadSoundSupport: c,
42066
42153
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42067
42154
  mathMlOptions: re
42068
- }), be?.[e.value] && /* @__PURE__ */ P(UZ, { children: be?.[e.value] })]
42155
+ }), be?.[e.value] && /* @__PURE__ */ P(QZ, { children: be?.[e.value] })]
42069
42156
  }, `rationale-${r}`)] }, `choice-${r}`)),
42070
- ve && /* @__PURE__ */ P(UZ, { children: ve }),
42071
- ge && /* @__PURE__ */ P(UZ, { children: ge }),
42072
- f.settings && /* @__PURE__ */ P(HZ, {
42157
+ ve && /* @__PURE__ */ P(QZ, { children: ve }),
42158
+ ge && /* @__PURE__ */ P(QZ, { children: ge }),
42159
+ f.settings && /* @__PURE__ */ P(ZZ, {
42073
42160
  title: Oe,
42074
- children: oe && fe?.length >= oe ? /* @__PURE__ */ P(zZ, {
42161
+ children: oe && fe?.length >= oe ? /* @__PURE__ */ P(JZ, {
42075
42162
  variant: "contained",
42076
42163
  color: "primary",
42077
42164
  onClick: o,
42078
42165
  disabled: !0,
42079
42166
  children: f.label
42080
- }) : /* @__PURE__ */ P(RZ, {
42167
+ }) : /* @__PURE__ */ P(qZ, {
42081
42168
  variant: "contained",
42082
42169
  color: "primary",
42083
42170
  onClick: o,
@@ -42086,7 +42173,7 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42086
42173
  })
42087
42174
  ]
42088
42175
  });
42089
- }, GZ = class extends ht.Component {
42176
+ }, eQ = class extends ht.Component {
42090
42177
  static propTypes = {
42091
42178
  model: U.default.object.isRequired,
42092
42179
  configuration: U.default.object.isRequired,
@@ -42109,9 +42196,9 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42109
42196
  };
42110
42197
  onAddChoice = () => {
42111
42198
  let { model: e, configuration: t, onModelChanged: n } = this.props, { maxAnswerChoices: r } = t || {}, { limitChoicesNumber: i } = e || {};
42112
- i && (r = PZ), !(r && e.choices.length >= r) && (e.choices.push({
42199
+ i && (r = UZ), !(r && e.choices.length >= r) && (e.choices.push({
42113
42200
  label: "",
42114
- value: IX.firstAvailableIndex(e.choices.map((e) => e.value), 0),
42201
+ value: GX.firstAvailableIndex(e.choices.map((e) => e.value), 0),
42115
42202
  feedback: { type: "none" }
42116
42203
  }), n({ choices: e.choices }));
42117
42204
  };
@@ -42145,12 +42232,12 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42145
42232
  };
42146
42233
  render() {
42147
42234
  let { configuration: { minAnswerChoices: e } = {} } = this.props, { showWarning: t } = this.state;
42148
- return /* @__PURE__ */ F(ht.Fragment, { children: [/* @__PURE__ */ P(CJ, {
42235
+ return /* @__PURE__ */ F(ht.Fragment, { children: [/* @__PURE__ */ P(MJ, {
42149
42236
  open: t,
42150
42237
  title: "Warning",
42151
42238
  text: `There can't be less than ${e || 0} choices.`,
42152
42239
  onConfirm: () => this.setState({ showWarning: !1 })
42153
- }), /* @__PURE__ */ P(WZ, {
42240
+ }), /* @__PURE__ */ P($Z, {
42154
42241
  ...this.props,
42155
42242
  onChangeModel: this.onModelChanged,
42156
42243
  onRemoveChoice: this.onRemoveChoice,
@@ -42160,7 +42247,7 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42160
42247
  onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
42161
42248
  })] });
42162
42249
  }
42163
- }, KZ = {
42250
+ }, tQ = {
42164
42251
  model: {
42165
42252
  choiceMode: "checkbox",
42166
42253
  choicePrefix: "letters",
@@ -42307,7 +42394,7 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42307
42394
  options: []
42308
42395
  }
42309
42396
  }
42310
- }, qZ = (0, Vt.default)("multiple-choice:configure"), JZ = (e, t = 0) => {
42397
+ }, nQ = (0, Vt.default)("multiple-choice:configure"), rQ = (e, t = 0) => {
42311
42398
  if (!e || e.length === 0) {
42312
42399
  let e = [];
42313
42400
  for (let n = 0; n < t; n++) e.push({
@@ -42321,35 +42408,35 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42321
42408
  return e;
42322
42409
  }
42323
42410
  return e;
42324
- }, YZ = (e, t) => {
42325
- let n = rt(e, KZ.configuration);
42411
+ }, iQ = (e, t) => {
42412
+ let n = rt(e, tQ.configuration);
42326
42413
  return {
42327
42414
  configuration: n,
42328
42415
  model: {
42329
42416
  ...t,
42330
- choices: JZ(t && t.choices || [], n && n.answerChoiceCount)
42417
+ choices: rQ(t && t.choices || [], n && n.answerChoiceCount)
42331
42418
  }
42332
42419
  };
42333
- }, XZ = class e extends HTMLElement {
42420
+ }, aQ = class e extends HTMLElement {
42334
42421
  static createDefaultModel = (e = {}) => {
42335
- let t = IX.normalizeChoices({
42336
- ...KZ.model,
42422
+ let t = GX.normalizeChoices({
42423
+ ...tQ.model,
42337
42424
  ...e,
42338
- choices: JZ(e && e.choices || [])
42425
+ choices: rQ(e && e.choices || [])
42339
42426
  });
42340
- return t.choicesLayout = e.choicesLayout || e.verticalMode === !1 && "horizontal" || KZ.model.choicesLayout, t;
42427
+ return t.choicesLayout = e.choicesLayout || e.verticalMode === !1 && "horizontal" || tQ.model.choicesLayout, t;
42341
42428
  };
42342
42429
  constructor() {
42343
- super(), this._root = null, this._reactContainer = null, this._model = e.createDefaultModel(), this._configuration = KZ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42430
+ super(), this._root = null, this._reactContainer = null, this._model = e.createDefaultModel(), this._configuration = tQ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42344
42431
  }
42345
42432
  set model(t) {
42346
42433
  this._model = e.createDefaultModel(t), this._render();
42347
42434
  }
42348
42435
  set configuration(e) {
42349
- let t = YZ(e, this._model);
42436
+ let t = iQ(e, this._model);
42350
42437
  this.onModelChanged(t.model);
42351
42438
  let n = {
42352
- ...KZ.configuration,
42439
+ ...tQ.configuration,
42353
42440
  ...t.configuration
42354
42441
  };
42355
42442
  this._configuration = n, n?.language?.enabled ? n?.languageChoices?.options?.length && (this._model.language = n?.languageChoices.options[0].value) : n.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({
@@ -42371,7 +42458,7 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42371
42458
  }, this._render(), this.dispatchModelUpdated(t);
42372
42459
  }
42373
42460
  onConfigurationChanged(e) {
42374
- this._configuration = YZ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42461
+ this._configuration = iQ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42375
42462
  }
42376
42463
  insertImage(e) {
42377
42464
  this.dispatchEvent(new Lt(e));
@@ -42386,9 +42473,9 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42386
42473
  this.dispatchEvent(new Rt(e, t));
42387
42474
  }
42388
42475
  _render() {
42389
- qZ("_render - Starting render"), qZ("_render - Model:", this._model ? "present" : "missing"), qZ("_render - Configuration:", this._configuration ? "present" : "missing"), qZ("_render - Root exists:", !!this._root);
42476
+ nQ("_render - Starting render"), nQ("_render - Model:", this._model ? "present" : "missing"), nQ("_render - Configuration:", this._configuration ? "present" : "missing"), nQ("_render - Root exists:", !!this._root);
42390
42477
  try {
42391
- let e = ht.createElement(GZ, {
42478
+ let e = ht.createElement(eQ, {
42392
42479
  model: this._model,
42393
42480
  configuration: this._configuration,
42394
42481
  onModelChanged: this.onModelChanged,
@@ -42403,21 +42490,21 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42403
42490
  delete: this.onDeleteSound.bind(this)
42404
42491
  }
42405
42492
  });
42406
- this._root || (qZ("_render - Creating React container"), this._reactContainer = document.createElement("div"), this._reactContainer.className = "pie-configure-wrapper", this.appendChild(this._reactContainer), qZ("_render - Creating new React root"), this._root = Pt(this._reactContainer), qZ("_render - React root created successfully")), qZ("_render - Calling root.render()"), this._root.render(e), qZ("_render - Render completed successfully");
42493
+ this._root || (nQ("_render - Creating React container"), this._reactContainer = document.createElement("div"), this._reactContainer.className = "pie-configure-wrapper", this.appendChild(this._reactContainer), nQ("_render - Creating new React root"), this._root = Pt(this._reactContainer), nQ("_render - React root created successfully")), nQ("_render - Calling root.render()"), this._root.render(e), nQ("_render - Render completed successfully");
42407
42494
  } catch (e) {
42408
42495
  throw console.error("❌ [multiple-choice-configure] Render error:", e), console.error("Error stack:", e.stack), e;
42409
42496
  }
42410
42497
  }
42411
42498
  connectedCallback() {
42412
- qZ("connectedCallback - Component connected to DOM"), qZ("connectedCallback - Model:", this._model ? "present" : "missing"), qZ("connectedCallback - Configuration:", this._configuration ? "present" : "missing"), this._render();
42499
+ nQ("connectedCallback - Component connected to DOM"), nQ("connectedCallback - Model:", this._model ? "present" : "missing"), nQ("connectedCallback - Configuration:", this._configuration ? "present" : "missing"), this._render();
42413
42500
  }
42414
42501
  disconnectedCallback() {
42415
- qZ("disconnectedCallback - Component disconnected from DOM"), this._root &&= (qZ("disconnectedCallback - Unmounting React root"), this._root.unmount(), null), this._reactContainer &&= null;
42502
+ nQ("disconnectedCallback - Component disconnected from DOM"), this._root &&= (nQ("disconnectedCallback - Unmounting React root"), this._root.unmount(), null), this._reactContainer &&= null;
42416
42503
  }
42417
- }, { Panel: ZZ, toggle: QZ, radio: $Z, dropdown: eQ } = pZ, tQ = M("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), nQ = M("div")(({ theme: e }) => ({
42504
+ }, { Panel: oQ, toggle: sQ, radio: cQ, dropdown: lQ } = SZ, uQ = M("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2) })), dQ = M("div")(({ theme: e }) => ({
42418
42505
  flex: 1,
42419
42506
  height: e.spacing(2.5)
42420
- })), rQ = class extends ht.Component {
42507
+ })), fQ = class extends ht.Component {
42421
42508
  static propTypes = {
42422
42509
  configuration: U.default.object,
42423
42510
  model: U.default.object,
@@ -42438,52 +42525,52 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42438
42525
  partA: o.choices && o.choices.length ? Array.from({ length: o.choices.length }, (e, t) => `${t + 1}`) : [],
42439
42526
  partB: s.choices && s.choices.length ? Array.from({ length: s.choices.length }, (e, t) => `${t + 1}`) : []
42440
42527
  }, pe = {
42441
- partLabels: _.partLabels.settings && QZ(_.partLabels.label),
42442
- partLabelType: e.partLabels && eQ("", ["Numbers", "Letters"]),
42443
- partialScoring: f.settings && QZ(f.label),
42444
- scoringType: m.settings && $Z(m.label, ["auto", "rubric"]),
42445
- "language.enabled": h.settings && QZ(h.label, !0),
42446
- language: h.settings && h.enabled && eQ(g.label, g.options)
42528
+ partLabels: _.partLabels.settings && sQ(_.partLabels.label),
42529
+ partLabelType: e.partLabels && lQ("", ["Numbers", "Letters"]),
42530
+ partialScoring: f.settings && sQ(f.label),
42531
+ scoringType: m.settings && cQ(m.label, ["auto", "rubric"]),
42532
+ "language.enabled": h.settings && sQ(h.label, !0),
42533
+ language: h.settings && h.enabled && lQ(g.label, g.options)
42447
42534
  }, me = {
42448
- "partA.choiceMode": y.settings && $Z(y.label, ["checkbox", "radio"]),
42449
- "partA.choicePrefix": b.settings && $Z(b.label, ["numbers", "letters"]),
42450
- "partA.lockChoiceOrder": x.settings && QZ(x.label),
42451
- "partA.choicesLayout": ee.settings && eQ(ee.label, [
42535
+ "partA.choiceMode": y.settings && cQ(y.label, ["checkbox", "radio"]),
42536
+ "partA.choicePrefix": b.settings && cQ(b.label, ["numbers", "letters"]),
42537
+ "partA.lockChoiceOrder": x.settings && sQ(x.label),
42538
+ "partA.choicesLayout": ee.settings && lQ(ee.label, [
42452
42539
  "vertical",
42453
42540
  "grid",
42454
42541
  "horizontal"
42455
42542
  ]),
42456
- "partA.gridColumns": ee.settings && o.choicesLayout === "grid" && fe.partA.length > 0 && eQ(T.label, fe.partA)
42543
+ "partA.gridColumns": ee.settings && o.choicesLayout === "grid" && fe.partA.length > 0 && lQ(T.label, fe.partA)
42457
42544
  }, he = {
42458
- "partA.feedbackEnabled": v.settings && QZ(v.label),
42459
- "partA.promptEnabled": S.settings && QZ(S.label),
42460
- "partA.teacherInstructionsEnabled": C.settings && QZ(C.label),
42461
- "partA.studentInstructionsEnabled": w.settings && QZ(w.label),
42462
- "partA.rationaleEnabled": te.settings && QZ(te.label),
42463
- "partA.spellCheckEnabled": E.settings && QZ(E.label)
42545
+ "partA.feedbackEnabled": v.settings && sQ(v.label),
42546
+ "partA.promptEnabled": S.settings && sQ(S.label),
42547
+ "partA.teacherInstructionsEnabled": C.settings && sQ(C.label),
42548
+ "partA.studentInstructionsEnabled": w.settings && sQ(w.label),
42549
+ "partA.rationaleEnabled": te.settings && sQ(te.label),
42550
+ "partA.spellCheckEnabled": E.settings && sQ(E.label)
42464
42551
  }, ge = {
42465
- "partB.choiceMode": D.settings && $Z(D.label, ["checkbox", "radio"]),
42466
- "partB.choicePrefix": O.settings && $Z(O.label, ["numbers", "letters"]),
42467
- "partB.lockChoiceOrder": k.settings && QZ(k.label),
42468
- "partB.choicesLayout": oe.settings && eQ(oe.label, [
42552
+ "partB.choiceMode": D.settings && cQ(D.label, ["checkbox", "radio"]),
42553
+ "partB.choicePrefix": O.settings && cQ(O.label, ["numbers", "letters"]),
42554
+ "partB.lockChoiceOrder": k.settings && sQ(k.label),
42555
+ "partB.choicesLayout": oe.settings && lQ(oe.label, [
42469
42556
  "vertical",
42470
42557
  "grid",
42471
42558
  "horizontal"
42472
42559
  ]),
42473
- "partB.gridColumns": oe.settings && s.choicesLayout === "grid" && fe.partB.length > 0 && eQ(se.label, fe.partB)
42560
+ "partB.gridColumns": oe.settings && s.choicesLayout === "grid" && fe.partB.length > 0 && lQ(se.label, fe.partB)
42474
42561
  }, _e = {
42475
- "partB.feedbackEnabled": ne.settings && QZ(ne.label),
42476
- "partB.promptEnabled": re.settings && QZ(re.label),
42477
- "partB.teacherInstructionsEnabled": ie.settings && QZ(ie.label),
42478
- "partB.studentInstructionsEnabled": ae.settings && QZ(ae.label),
42479
- "partB.rationaleEnabled": ce.settings && QZ(ce.label),
42480
- "partB.spellCheckEnabled": A.settings && QZ(A.label)
42481
- };
42482
- return /* @__PURE__ */ F(FX.ConfigLayout, {
42562
+ "partB.feedbackEnabled": ne.settings && sQ(ne.label),
42563
+ "partB.promptEnabled": re.settings && sQ(re.label),
42564
+ "partB.teacherInstructionsEnabled": ie.settings && sQ(ie.label),
42565
+ "partB.studentInstructionsEnabled": ae.settings && sQ(ae.label),
42566
+ "partB.rationaleEnabled": ce.settings && sQ(ce.label),
42567
+ "partB.spellCheckEnabled": A.settings && sQ(A.label)
42568
+ };
42569
+ return /* @__PURE__ */ F(WX.ConfigLayout, {
42483
42570
  extraCSSRules: c,
42484
42571
  dimensions: l,
42485
42572
  hideSettings: p,
42486
- settings: /* @__PURE__ */ P(ZZ, {
42573
+ settings: /* @__PURE__ */ P(oQ, {
42487
42574
  model: e,
42488
42575
  onChangeModel: this.onModelChanged,
42489
42576
  configuration: t,
@@ -42497,7 +42584,7 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42497
42584
  }
42498
42585
  }),
42499
42586
  children: [
42500
- e.partLabels && /* @__PURE__ */ P(tQ, { children: ue }),
42587
+ e.partLabels && /* @__PURE__ */ P(uQ, { children: ue }),
42501
42588
  /* @__PURE__ */ P(i, {
42502
42589
  id: "A",
42503
42590
  ref: (e) => {
@@ -42510,8 +42597,8 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42510
42597
  });
42511
42598
  }
42512
42599
  }, "partA"),
42513
- /* @__PURE__ */ P(nQ, {}),
42514
- e.partLabels && /* @__PURE__ */ P(tQ, { children: de }),
42600
+ /* @__PURE__ */ P(dQ, {}),
42601
+ e.partLabels && /* @__PURE__ */ P(uQ, { children: de }),
42515
42602
  /* @__PURE__ */ P(i, {
42516
42603
  id: "B",
42517
42604
  ref: (e) => {
@@ -42527,7 +42614,7 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42527
42614
  ]
42528
42615
  });
42529
42616
  }
42530
- }, iQ = {
42617
+ }, pQ = {
42531
42618
  addChoiceButton: {
42532
42619
  settings: !0,
42533
42620
  label: "Add a Choice"
@@ -42624,7 +42711,7 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42624
42711
  showParagraphs: { disabled: !1 },
42625
42712
  separateParagraphs: { disabled: !0 }
42626
42713
  }
42627
- }, aQ = (e) => ({
42714
+ }, mQ = (e) => ({
42628
42715
  choiceMode: "radio",
42629
42716
  choicePrefix: "letters",
42630
42717
  choices: [],
@@ -42641,12 +42728,12 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42641
42728
  teacherInstructionsEnabled: !0,
42642
42729
  toolbarEditorPosition: "bottom",
42643
42730
  ...e
42644
- }), oQ = {
42731
+ }), hQ = {
42645
42732
  model: {
42646
42733
  partLabels: !1,
42647
42734
  partLabelType: "Letters",
42648
- partA: aQ(),
42649
- partB: aQ()
42735
+ partA: mQ(),
42736
+ partB: mQ()
42650
42737
  },
42651
42738
  configuration: {
42652
42739
  baseInputConfiguration: {
@@ -42666,8 +42753,8 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42666
42753
  settings: !1,
42667
42754
  label: "Scoring Type"
42668
42755
  },
42669
- partA: ot(iQ),
42670
- partB: ot(iQ),
42756
+ partA: ot(pQ),
42757
+ partB: ot(pQ),
42671
42758
  partLabels: {
42672
42759
  settings: !0,
42673
42760
  label: "Part Labels"
@@ -42683,13 +42770,13 @@ var TZ = wZ(Ze, "InputContainer") || wZ(OZ.InputContainer, "InputContainer"), EZ
42683
42770
  options: []
42684
42771
  }
42685
42772
  }
42686
- }, sQ = Ft.TYPE, cQ = We, lQ = class extends XZ {};
42687
- customElements.get(cQ) || customElements.define(cQ, lQ);
42688
- var uQ = (e, t) => ({
42689
- configuration: rt(e, oQ.configuration),
42773
+ }, gQ = Ft.TYPE, _Q = We, vQ = class extends aQ {};
42774
+ customElements.get(_Q) || customElements.define(_Q, vQ);
42775
+ var yQ = (e, t) => ({
42776
+ configuration: rt(e, hQ.configuration),
42690
42777
  model: t
42691
- }), { model: dQ } = oQ || {}, fQ = class e extends HTMLElement {
42692
- static createDefaultModel = ({ partA: e = {}, partB: t = {}, ...n } = {}, r = dQ) => ({
42778
+ }), { model: bQ } = hQ || {}, xQ = class e extends HTMLElement {
42779
+ static createDefaultModel = ({ partA: e = {}, partB: t = {}, ...n } = {}, r = bQ) => ({
42693
42780
  ...r,
42694
42781
  ...n,
42695
42782
  partA: {
@@ -42704,7 +42791,7 @@ var uQ = (e, t) => ({
42704
42791
  }
42705
42792
  });
42706
42793
  constructor() {
42707
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = oQ.configuration, this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42794
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = hQ.configuration, this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42708
42795
  }
42709
42796
  set model(t) {
42710
42797
  this._model = e.createDefaultModel(t, this._model), this._render();
@@ -42717,8 +42804,8 @@ var uQ = (e, t) => ({
42717
42804
  this._model = e.createDefaultModel(t, this._model), this.dispatchModelUpdated(n), this._render();
42718
42805
  };
42719
42806
  set configuration(e) {
42720
- let t = uQ(e, this._model), n = {
42721
- ...oQ.configuration,
42807
+ let t = yQ(e, this._model), n = {
42808
+ ...hQ.configuration,
42722
42809
  ...t.configuration
42723
42810
  };
42724
42811
  this._configuration = n, n?.language?.enabled ? n?.languageChoices?.options?.length && (this._model.language = n?.languageChoices.options[0].value) : n.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({
@@ -42727,7 +42814,7 @@ var uQ = (e, t) => ({
42727
42814
  })) : delete this._model.language, this._render();
42728
42815
  }
42729
42816
  onConfigurationChanged(e) {
42730
- this._configuration = uQ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42817
+ this._configuration = yQ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42731
42818
  }
42732
42819
  onModelUpdated = (e) => {
42733
42820
  if (e.target === this) return;
@@ -42736,23 +42823,23 @@ var uQ = (e, t) => ({
42736
42823
  t && (e.update && (this._model[`part${t}`] = e.update), this.dispatchEvent(new Ft(this._model)));
42737
42824
  };
42738
42825
  connectedCallback() {
42739
- this.addEventListener(sQ, this.onModelUpdated), this._render();
42826
+ this.addEventListener(gQ, this.onModelUpdated), this._render();
42740
42827
  }
42741
42828
  _render() {
42742
- let e = ht.createElement(rQ, {
42829
+ let e = ht.createElement(fQ, {
42743
42830
  model: this._model,
42744
42831
  configuration: this._configuration,
42745
- multipleChoiceTagName: cQ,
42832
+ multipleChoiceTagName: _Q,
42746
42833
  onModelChanged: this.onModelChanged,
42747
42834
  onConfigurationChanged: this.onConfigurationChanged
42748
42835
  });
42749
42836
  this._root ||= Pt(this), this._root.render(e);
42750
42837
  }
42751
42838
  disconnectedCallback() {
42752
- this.removeEventListener(sQ, this.onModelUpdated), this._root &&= (this._root.unmount(), null);
42839
+ this.removeEventListener(gQ, this.onModelUpdated), this._root &&= (this._root.unmount(), null);
42753
42840
  }
42754
42841
  };
42755
42842
  //#endregion
42756
- export { fQ as default };
42843
+ export { xQ as default };
42757
42844
 
42758
42845
  //# sourceMappingURL=index.js.map