@pie-element/multiple-choice 13.3.5-next.2 → 13.3.5-next.4

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, E as l, Et as u, F as d, Ft as f, G as p, H 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, N as C, Nt as w, O as ee, Ot as T, P as te, Pt as ne, Q as E, R as re, Rt as ie, S as ae, St as oe, T as D, Tt as se, U as O, V as ce, Vt as le, W as ue, X as k, Y as de, Z as fe, _ as pe, a as me, at as he, b as ge, bt as _e, c as ve, ct as ye, d as be, dt as xe, et as Se, f as Ce, ft as we, i as Te, it as Ee, jt as A, k as De, kt as Oe, l as ke, lt as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, wt as Je, x as Ye, xt as Xe, y as Ze, yt as j, z as Qe, zt as $e } from "../Radio-IHruwm6F.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, E as l, Et as u, F as d, Ft as f, G as p, H 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, N as C, Nt as w, O as ee, Ot as T, P as te, Pt as ne, Q as E, R as re, Rt as ie, S as ae, St as oe, T as D, Tt as se, U as O, V as ce, Vt as le, W as ue, X as k, Y as de, Z as fe, _ as pe, a as me, at as he, b as ge, bt as _e, c as ve, ct as ye, d as be, dt as xe, et as Se, f as Ce, ft as we, i as Te, it as Ee, jt as A, k as De, kt as Oe, l as ke, lt as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, wt as Je, x as Ye, xt as Xe, y as Ze, yt as j, z as Qe, zt as $e } from "../Radio-xWBQ-YBe.js";
2
2
  import { a as et, c as tt, d as nt, f as rt, h as it, i as at, m as ot, n as st, o as ct, p as lt, r as ut, s as dt, t as ft, u as pt } from "../dist-CHbLnyuX.js";
3
3
  import * as M from "react";
4
4
  import mt, { Component as ht, createContext as gt, createElement as _t, createRef as vt, forwardRef as yt, memo as bt, useCallback as xt, useContext as St, useDebugValue as Ct, useEffect as wt, useLayoutEffect as Tt, useMemo as Et, useRef as Dt, useState as Ot, version as kt } from "react";
@@ -38865,8 +38865,8 @@ qm.create({
38865
38865
  })) ?? null };
38866
38866
  }
38867
38867
  });
38868
- var _q = "placeholder", vq = new Qi("tiptap__placeholder"), yq = 200;
38869
- function bq(e) {
38868
+ var _q = "placeholder", vq = new Qi("tiptap__placeholder");
38869
+ function yq(e) {
38870
38870
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
38871
38871
  return o && u.push(l), Yu.node(i, i + a.nodeSize, {
38872
38872
  class: u.join(" "),
@@ -38878,156 +38878,198 @@ function bq(e) {
38878
38878
  }) : n
38879
38879
  });
38880
38880
  }
38881
- function xq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38881
+ function bq(e, t) {
38882
+ return typeof e == "function" ? e(t) : e;
38883
+ }
38884
+ function xq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
38885
+ let { anchor: s } = i, c = [], l = e.isEmpty;
38886
+ return r.nodesBetween(a, o, (r, i) => {
38887
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && tm(r);
38888
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(yq({
38889
+ editor: e,
38890
+ isEmptyDoc: l,
38891
+ dataAttribute: n,
38892
+ hasAnchor: a,
38893
+ placeholder: t.placeholder,
38894
+ classes: {
38895
+ emptyEditor: t.emptyEditorClass,
38896
+ emptyNode: bq(t.emptyNodeClass, {
38897
+ editor: e,
38898
+ node: r,
38899
+ pos: i,
38900
+ hasAnchor: a
38901
+ })
38902
+ },
38903
+ node: r,
38904
+ pos: i
38905
+ })), t.includeChildren;
38906
+ }), c;
38907
+ }
38908
+ function Sq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38882
38909
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
38883
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
38884
- emptyEditor: t.emptyEditorClass,
38885
- emptyNode: t.emptyNodeClass
38886
- };
38910
+ let { anchor: a } = i, o = [], s = e.isEmpty;
38887
38911
  if (t.showOnlyCurrent && !t.includeChildren) {
38888
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
38889
- if (l && l.type.isTextblock && tm(l)) {
38890
- let r = a >= u && a <= u + l.nodeSize;
38891
- o.push(bq({
38912
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
38913
+ if (c && c.type.isTextblock && tm(c)) {
38914
+ let r = a >= l && a <= l + c.nodeSize;
38915
+ o.push(yq({
38892
38916
  editor: e,
38893
38917
  isEmptyDoc: s,
38894
38918
  dataAttribute: n,
38895
38919
  hasAnchor: r,
38896
38920
  placeholder: t.placeholder,
38897
- classes: c,
38898
- node: l,
38899
- pos: u
38921
+ classes: {
38922
+ emptyEditor: t.emptyEditorClass,
38923
+ emptyNode: bq(t.emptyNodeClass, {
38924
+ editor: e,
38925
+ node: c,
38926
+ pos: l,
38927
+ hasAnchor: r
38928
+ })
38929
+ },
38930
+ node: c,
38931
+ pos: l
38900
38932
  }));
38901
38933
  }
38902
- } else {
38903
- let i = vq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
38904
- r.nodesBetween(l, u, (r, i) => {
38905
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && tm(r);
38906
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(bq({
38907
- editor: e,
38908
- isEmptyDoc: s,
38909
- dataAttribute: n,
38910
- hasAnchor: l,
38911
- placeholder: t.placeholder,
38912
- classes: c,
38913
- node: r,
38914
- pos: i
38915
- })), t.includeChildren;
38916
- });
38917
- }
38934
+ } else o.push(...xq({
38935
+ editor: e,
38936
+ options: t,
38937
+ dataAttribute: n,
38938
+ doc: r,
38939
+ selection: i,
38940
+ from: 0,
38941
+ to: r.content.size
38942
+ }));
38918
38943
  return Qu.create(r, o);
38919
38944
  }
38920
- function Sq(e) {
38921
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
38945
+ function Cq(e, t) {
38946
+ let n = e.resolve(t);
38947
+ if (n.depth === 0) {
38948
+ let e = n.nodeAfter ?? n.nodeBefore;
38949
+ if (!e) return {
38950
+ from: t,
38951
+ to: t
38952
+ };
38953
+ let r = n.nodeAfter ? t : t - e.nodeSize;
38954
+ return {
38955
+ from: r,
38956
+ to: r + e.nodeSize
38957
+ };
38958
+ }
38959
+ let r = n.before(1);
38960
+ return {
38961
+ from: r,
38962
+ to: r + n.node(1).nodeSize
38963
+ };
38922
38964
  }
38923
- function Cq(e) {
38924
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
38925
- return /auto|scroll|overlay/.test(n);
38965
+ function wq(e, t) {
38966
+ return {
38967
+ from: Math.max(0, t.from - 1),
38968
+ to: Math.min(e.content.size, t.to - 1)
38969
+ };
38926
38970
  }
38927
- function wq(e) {
38928
- let t = e;
38929
- for (; t;) {
38930
- if (Cq(t)) return t;
38931
- let e = t.parentElement;
38932
- if (!e) {
38933
- let e = t.getRootNode();
38934
- if (e instanceof ShadowRoot) {
38935
- t = e.host;
38936
- continue;
38937
- }
38938
- return window;
38939
- }
38940
- t = e;
38971
+ function Tq(e, t, n) {
38972
+ let r = [];
38973
+ return e.forEach((e, i) => {
38974
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
38975
+ s < n && c > t && r.push({
38976
+ from: a,
38977
+ to: o
38978
+ });
38979
+ }), r;
38980
+ }
38981
+ function Eq(e) {
38982
+ if (e.length === 0) return [];
38983
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
38984
+ for (let e = 1; e < t.length; e += 1) {
38985
+ let r = n[n.length - 1], i = t[e];
38986
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
38941
38987
  }
38942
- return window;
38988
+ return n;
38943
38989
  }
38944
- function Tq(e) {
38945
- return e === window ? {
38946
- top: 0,
38947
- bottom: window.innerHeight
38948
- } : e.getBoundingClientRect();
38990
+ function Dq(e, t) {
38991
+ let n = Tq(e, t.from, t.to);
38992
+ return n.push(wq(e, Cq(e, t.from))), t.to > t.from ? n.push(wq(e, Cq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(wq(e, Cq(e, Math.min(t.from + 1, e.content.size)))), n;
38949
38993
  }
38950
- function Eq({ doc: e, view: t, scrollContainer: n }) {
38951
- let r = t.dom.getBoundingClientRect(), i = n ? Tq(n) : {
38952
- top: 0,
38953
- bottom: window.innerHeight
38954
- }, a = Math.max(r.top, i.top) - yq, o = Math.min(r.bottom, i.bottom) + yq;
38955
- if (a >= o) return {
38956
- top: 0,
38957
- bottom: e.content.size
38958
- };
38959
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
38960
- left: s,
38961
- top: a + 2
38962
- }), l = t.posAtCoords({
38963
- left: s,
38964
- top: o - 2
38965
- });
38966
- return {
38967
- top: c ? c.pos : 0,
38968
- bottom: l ? l.pos : e.content.size
38969
- };
38994
+ function Oq(e, t, n) {
38995
+ let r = [];
38996
+ if (e.docChanged) {
38997
+ let t = Wp(e);
38998
+ for (let e of t) r.push(...Dq(n.doc, e.newRange));
38999
+ }
39000
+ return e.selectionSet && (r.push(wq(n.doc, Cq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(wq(n.doc, Cq(n.doc, n.selection.anchor)))), Eq(r);
38970
39001
  }
38971
- var Dq = {
38972
- init() {
38973
- return {
38974
- topPos: null,
38975
- bottomPos: null
38976
- };
38977
- },
38978
- apply(e, t) {
38979
- let n = e.getMeta(vq);
38980
- return n?.positions ? {
38981
- topPos: n.positions.top,
38982
- bottomPos: n.positions.bottom
38983
- } : e.docChanged ? {
38984
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
38985
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
38986
- } : t;
39002
+ function kq(e, t, n) {
39003
+ let r = Math.max(0, Math.min(e, n.content.size));
39004
+ return {
39005
+ from: r,
39006
+ to: Math.max(r, Math.min(t, n.content.size))
39007
+ };
39008
+ }
39009
+ function Aq({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
39010
+ let s = e;
39011
+ for (let e of t) {
39012
+ let { from: t, to: c } = kq(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
39013
+ l.length && (s = s.remove(l));
39014
+ let u = xq({
39015
+ editor: n,
39016
+ options: r,
39017
+ dataAttribute: i,
39018
+ doc: a,
39019
+ selection: o,
39020
+ from: t,
39021
+ to: c
39022
+ });
39023
+ u.length && (s = s.add(a, u));
38987
39024
  }
38988
- };
38989
- function Oq(e) {
38990
- let t = wq(e.dom), n = () => {
38991
- let n = Eq({
38992
- view: e,
38993
- doc: e.state.doc,
38994
- scrollContainer: t
38995
- }), r = vq.getState(e.state);
38996
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
38997
- let i = e.state.tr.setMeta(vq, { positions: n });
38998
- e.dispatch(i);
38999
- }, r = null, i = 0, a = () => {
39000
- r === null && (r = requestAnimationFrame(() => {
39001
- r = null;
39002
- let e = performance.now();
39003
- e - i >= 150 ? (i = e, n()) : a();
39004
- }));
39005
- };
39006
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
39007
- update(t, n) {
39008
- e.state.doc.content.size !== n.doc.content.size && a();
39025
+ return s;
39026
+ }
39027
+ function jq({ editor: e, options: t, dataAttribute: n }) {
39028
+ return {
39029
+ init(r, i) {
39030
+ return Sq({
39031
+ editor: e,
39032
+ options: t,
39033
+ dataAttribute: n,
39034
+ doc: i.doc,
39035
+ selection: i.selection
39036
+ }) ?? Qu.empty;
39009
39037
  },
39010
- destroy: () => {
39011
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39038
+ apply(r, i, a, o) {
39039
+ return !r.docChanged && !r.selectionSet ? i : Aq({
39040
+ decorations: i.map(r.mapping, r.doc),
39041
+ ranges: Oq(r, a, o),
39042
+ editor: e,
39043
+ options: t,
39044
+ dataAttribute: n,
39045
+ doc: o.doc,
39046
+ selection: o.selection
39047
+ });
39012
39048
  }
39013
39049
  };
39014
39050
  }
39015
- function kq({ editor: e, options: t }) {
39016
- let n = t.dataAttribute ? `data-${Sq(t.dataAttribute)}` : `data-${_q}`;
39051
+ function Mq(e) {
39052
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39053
+ }
39054
+ function Nq({ editor: e, options: t }) {
39055
+ let n = t.dataAttribute ? `data-${Mq(t.dataAttribute)}` : `data-${_q}`, r = t.showOnlyCurrent && !t.includeChildren;
39017
39056
  return new B({
39018
39057
  key: vq,
39019
- state: Dq,
39020
- view: Oq,
39021
- props: { decorations: ({ doc: r, selection: i }) => xq({
39058
+ ...r ? {} : { state: jq({
39059
+ editor: e,
39060
+ options: t,
39061
+ dataAttribute: n
39062
+ }) },
39063
+ props: { decorations: r ? ({ doc: r, selection: i }) => Sq({
39022
39064
  editor: e,
39023
39065
  options: t,
39024
39066
  dataAttribute: n,
39025
39067
  doc: r,
39026
39068
  selection: i
39027
- }) }
39069
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? Qu.empty : vq.getState(n) ?? Qu.empty }
39028
39070
  });
39029
39071
  }
39030
- var Aq = qm.create({
39072
+ var Pq = qm.create({
39031
39073
  name: "placeholder",
39032
39074
  addOptions() {
39033
39075
  return {
@@ -39041,12 +39083,25 @@ var Aq = qm.create({
39041
39083
  };
39042
39084
  },
39043
39085
  addProseMirrorPlugins() {
39044
- return [kq({
39086
+ return [Nq({
39045
39087
  editor: this.editor,
39046
39088
  options: this.options
39047
39089
  })];
39048
39090
  }
39049
39091
  });
39092
+ function Fq(e, t) {
39093
+ return !e.selection.empty && !nm(e.selection) && t.isEditable;
39094
+ }
39095
+ function Iq(e, t) {
39096
+ return Fq(e, t) && !t.isFocused && !t.view.dragging;
39097
+ }
39098
+ function Lq() {
39099
+ var e;
39100
+ (e = window.getSelection()) == null || e.removeAllRanges();
39101
+ }
39102
+ function Rq(e) {
39103
+ e.focus();
39104
+ }
39050
39105
  qm.create({
39051
39106
  name: "selection",
39052
39107
  addOptions() {
@@ -39056,13 +39111,25 @@ qm.create({
39056
39111
  let { editor: e, options: t } = this;
39057
39112
  return [new B({
39058
39113
  key: new Qi("selection"),
39059
- props: { decorations(n) {
39060
- return n.selection.empty || e.isFocused || !e.isEditable || nm(n.selection) || e.view.dragging ? null : Qu.create(n.doc, [Yu.inline(n.selection.from, n.selection.to, { class: t.className })]);
39061
- } }
39114
+ props: {
39115
+ decorations(n) {
39116
+ return Iq(n, e) ? Qu.create(n.doc, [Yu.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39117
+ },
39118
+ handleDOMEvents: {
39119
+ blur(t) {
39120
+ return Fq(t.state, e) && Lq(), !1;
39121
+ },
39122
+ focus(t) {
39123
+ return Fq(t.state, e) && requestAnimationFrame(() => {
39124
+ !e.isDestroyed && t.hasFocus() && Rq(t);
39125
+ }), !1;
39126
+ }
39127
+ }
39128
+ }
39062
39129
  })];
39063
39130
  }
39064
39131
  });
39065
- function jq({ types: e, node: t }) {
39132
+ function zq({ types: e, node: t }) {
39066
39133
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39067
39134
  }
39068
39135
  qm.create({
@@ -39084,7 +39151,7 @@ qm.create({
39084
39151
  state: {
39085
39152
  init: (e, t) => {
39086
39153
  let r = t.tr.doc.lastChild;
39087
- return !jq({
39154
+ return !zq({
39088
39155
  node: r,
39089
39156
  types: n
39090
39157
  });
@@ -39092,7 +39159,7 @@ qm.create({
39092
39159
  apply: (e, t) => {
39093
39160
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39094
39161
  let r = e.doc.lastChild;
39095
- return !jq({
39162
+ return !zq({
39096
39163
  node: r,
39097
39164
  types: n
39098
39165
  });
@@ -39127,7 +39194,7 @@ qm.create({
39127
39194
  };
39128
39195
  }
39129
39196
  });
39130
- var Mq = zm.create({
39197
+ var Bq = zm.create({
39131
39198
  name: "superscript",
39132
39199
  addOptions() {
39133
39200
  return { HTMLAttributes: {} };
@@ -39157,7 +39224,7 @@ var Mq = zm.create({
39157
39224
  addKeyboardShortcuts() {
39158
39225
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
39159
39226
  }
39160
- }), Nq = zm.create({
39227
+ }), Vq = zm.create({
39161
39228
  name: "subscript",
39162
39229
  addOptions() {
39163
39230
  return { HTMLAttributes: {} };
@@ -39187,7 +39254,7 @@ var Mq = zm.create({
39187
39254
  addKeyboardShortcuts() {
39188
39255
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
39189
39256
  }
39190
- }), Pq = qm.create({
39257
+ }), Hq = qm.create({
39191
39258
  name: "textAlign",
39192
39259
  addOptions() {
39193
39260
  return {
@@ -39229,7 +39296,7 @@ var Mq = zm.create({
39229
39296
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
39230
39297
  };
39231
39298
  }
39232
- }), Fq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Iq = Ch.create({
39299
+ }), Uq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Wq = Ch.create({
39233
39300
  name: "image",
39234
39301
  addOptions() {
39235
39302
  return {
@@ -39272,34 +39339,55 @@ var Mq = zm.create({
39272
39339
  },
39273
39340
  addNodeView() {
39274
39341
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
39275
- let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize;
39276
- return ({ node: i, getPos: a, HTMLAttributes: o, editor: s }) => {
39277
- let c = document.createElement("img");
39278
- Object.entries(o).forEach(([e, t]) => {
39342
+ let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
39343
+ "src",
39344
+ "width",
39345
+ "height"
39346
+ ]);
39347
+ return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
39348
+ let l = document.createElement("img");
39349
+ l.draggable = !1;
39350
+ let u = Dp(this.options.HTMLAttributes, s);
39351
+ Object.entries(u).forEach(([e, t]) => {
39279
39352
  if (t != null) switch (e) {
39353
+ case "src":
39280
39354
  case "width":
39281
39355
  case "height": break;
39282
- default:
39283
- c.setAttribute(e, t);
39284
- break;
39356
+ default: l.setAttribute(e, t);
39285
39357
  }
39286
- }), c.src = o.src;
39287
- let l = new fh({
39288
- element: c,
39289
- editor: s,
39290
- node: i,
39291
- getPos: a,
39358
+ }), u.src !== null && (l.src = u.src);
39359
+ let d = { ...s }, f = (e) => {
39360
+ if (typeof e == "string" && e !== "") {
39361
+ l.getAttribute("src") !== e && (l.src = e);
39362
+ return;
39363
+ }
39364
+ l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
39365
+ };
39366
+ f(s.src);
39367
+ let p = new fh({
39368
+ element: l,
39369
+ editor: c,
39370
+ node: a,
39371
+ getPos: o,
39292
39372
  onResize: (e, t) => {
39293
- c.style.width = `${e}px`, c.style.height = `${t}px`;
39373
+ l.style.width = `${e}px`, l.style.height = `${t}px`;
39294
39374
  },
39295
39375
  onCommit: (e, t) => {
39296
- let n = a();
39376
+ let n = o();
39297
39377
  n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
39298
39378
  width: e,
39299
39379
  height: t
39300
39380
  }).run();
39301
39381
  },
39302
- onUpdate: (e, t, n) => e.type === i.type,
39382
+ onUpdate: (e) => {
39383
+ if (e.type !== a.type) return !1;
39384
+ let t = Op(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
39385
+ return Object.keys(d).forEach((e) => {
39386
+ !i.has(e) && !(e in t) && l.removeAttribute(e);
39387
+ }), Object.entries(t).forEach(([e, t]) => {
39388
+ i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
39389
+ }), f(t.src), d = t, !0;
39390
+ },
39303
39391
  options: {
39304
39392
  directions: e,
39305
39393
  min: {
@@ -39308,10 +39396,10 @@ var Mq = zm.create({
39308
39396
  },
39309
39397
  preserveAspectRatio: r === !0
39310
39398
  }
39311
- }), u = l.dom;
39312
- return u.style.visibility = "hidden", u.style.pointerEvents = "none", c.onload = () => {
39313
- u.style.visibility = "", u.style.pointerEvents = "";
39314
- }, l;
39399
+ }), m = p.dom, h = () => {
39400
+ m.style.visibility = "", m.style.pointerEvents = "";
39401
+ };
39402
+ return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
39315
39403
  };
39316
39404
  },
39317
39405
  addCommands() {
@@ -39322,7 +39410,7 @@ var Mq = zm.create({
39322
39410
  },
39323
39411
  addInputRules() {
39324
39412
  return [lh({
39325
- find: Fq,
39413
+ find: Uq,
39326
39414
  type: this.type,
39327
39415
  getAttributes: (e) => {
39328
39416
  let [, , t, n, r] = e;
@@ -39334,17 +39422,17 @@ var Mq = zm.create({
39334
39422
  }
39335
39423
  })];
39336
39424
  }
39337
- }), Lq = Aq, Rq = {
39425
+ }), Gq = Pq, Kq = {
39338
39426
  position: "bottom",
39339
39427
  alignment: "left",
39340
39428
  alwaysVisible: !1,
39341
39429
  showDone: !0,
39342
39430
  doneOn: "blur"
39343
- }, zq = {
39431
+ }, qq = {
39344
39432
  options: {},
39345
39433
  respAreaToolbar: () => {},
39346
39434
  onHandleAreaChange: () => {}
39347
- }, Bq = [
39435
+ }, Jq = [
39348
39436
  "bold",
39349
39437
  "italic",
39350
39438
  "underline",
@@ -39366,7 +39454,7 @@ var Mq = zm.create({
39366
39454
  "h3",
39367
39455
  "undo",
39368
39456
  "redo"
39369
- ], Vq = {
39457
+ ], Yq = {
39370
39458
  "--white": "#fff",
39371
39459
  "--black": "#2e2b29",
39372
39460
  "--black-contrast": "#110f0e",
@@ -39385,14 +39473,18 @@ var Mq = zm.create({
39385
39473
  "--red": "#ff5c33",
39386
39474
  "--red-light": "#ffebe5",
39387
39475
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
39388
- }, Hq = (e) => {
39476
+ }, Xq = (e) => ({
39477
+ spellcheck: e ? "true" : "false",
39478
+ autocorrect: e ? "on" : "off",
39479
+ autocapitalize: e ? "on" : "off"
39480
+ }), Zq = (e) => {
39389
39481
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Ot([]), [a, o] = Ot(!1), { toolbarOpts: s } = e, c = xt((e) => {
39390
39482
  i((t) => {
39391
39483
  let n = t.filter((t) => t.pos !== e);
39392
39484
  return n.length === 0 && o(!1), n;
39393
39485
  });
39394
39486
  }, [i]), l = {
39395
- ...Rq,
39487
+ ...Kq,
39396
39488
  ...s
39397
39489
  }, u = xt((t) => {
39398
39490
  let n = t.getHTML();
@@ -39403,13 +39495,13 @@ var Mq = zm.create({
39403
39495
  e.onDone,
39404
39496
  l.doneOn
39405
39497
  ]), d = Et(() => ({
39406
- ...zq,
39498
+ ...qq,
39407
39499
  ...e.responseAreaProps,
39408
39500
  onInlineDropdownToolbarClose: u
39409
39501
  }), [e.responseAreaProps, u]), f = Et(() => {
39410
39502
  let { customPlugins: t, ...n } = e.pluginProps || {};
39411
39503
  t ||= [];
39412
- let r = (e.activePlugins || Bq)?.filter((e) => {
39504
+ let r = (e.activePlugins || Jq)?.filter((e) => {
39413
39505
  let t = Ht[e] || e, r = n[t] || {};
39414
39506
  return !r || !r.disabled;
39415
39507
  });
@@ -39427,103 +39519,112 @@ var Mq = zm.create({
39427
39519
  setKeypadInteraction: {},
39428
39520
  media: {}
39429
39521
  });
39430
- }, [e, d.type]), p = FC({
39431
- extensions: [
39432
- Pq.configure({
39433
- types: [
39434
- "heading",
39435
- "paragraph",
39436
- "div",
39437
- "headingParagraph",
39438
- "h1",
39439
- "h2",
39440
- "h3",
39441
- "h4",
39442
- "h5",
39443
- "h6",
39444
- "td",
39445
- "th"
39446
- ],
39447
- alignments: [
39448
- "left",
39449
- "right",
39450
- "center",
39451
- "justify"
39452
- ]
39453
- }),
39454
- hq,
39455
- gq.configure({ limit: e.charactersLimit || 1e6 }),
39456
- aq.configure({ trailingNode: {
39522
+ }, [e, d.type]), p = [
39523
+ Hq.configure({
39524
+ types: [
39525
+ "heading",
39526
+ "paragraph",
39527
+ "div",
39528
+ "headingParagraph",
39529
+ "h1",
39530
+ "h2",
39531
+ "h3",
39532
+ "h4",
39533
+ "h5",
39534
+ "h6",
39535
+ "td",
39536
+ "th"
39537
+ ],
39538
+ alignments: [
39539
+ "left",
39540
+ "right",
39541
+ "center",
39542
+ "justify"
39543
+ ]
39544
+ }),
39545
+ hq,
39546
+ gq.configure({ limit: e.charactersLimit || 1e6 }),
39547
+ aq.configure({
39548
+ trailingNode: {
39457
39549
  node: "paragraph",
39458
39550
  notAfter: ["paragraph", "div"]
39459
- } }),
39460
- oI,
39461
- tS,
39462
- sI,
39463
- nS,
39464
- rS,
39465
- Lq.configure({
39466
- placeholder: e.placeholder,
39467
- showOnlyWhenEditable: !0,
39468
- showOnlyCurrent: !1,
39469
- includeChildren: !0
39470
- }),
39471
- Zx,
39472
- Fx,
39473
- eS,
39474
- $x,
39475
- FA.configure(d),
39476
- IA.configure(d),
39477
- RA.configure(d),
39478
- zA.configure(d),
39479
- LA.configure(d),
39480
- qM.configure({
39481
- toolbarOpts: l,
39482
- math: e.pluginProps?.math || {}
39483
- }),
39484
- Nq,
39485
- Mq,
39486
- Iq,
39487
- aP.configure({
39488
- toolbarOpts: l,
39489
- imageHandling: {
39490
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39491
- onDone: (t) => e.onDone?.(t.getHTML()),
39492
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39493
- let { src: n } = t.attrs;
39494
- e.imageSupport.delete(n, (e) => {
39495
- c(t.pos);
39496
- });
39497
- }),
39498
- insertImageRequested: e.imageSupport && ((t, n, r) => {
39499
- let [o, s] = n, l = (n) => {
39500
- let r;
39501
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39502
- };
39503
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
39504
- let n = r(l), i = tt(() => {
39505
- let e = () => window.removeEventListener("focus", i);
39506
- if (!t._insertingImage) {
39507
- e();
39508
- return;
39509
- }
39510
- c(s), t._insertingImage = !1, e();
39511
- }, 500);
39512
- window.addEventListener("focus", i), e.imageSupport.add(n);
39513
- })();
39514
- }),
39515
- maxImageWidth: e.maxImageWidth,
39516
- maxImageHeight: e.maxImageHeight
39517
- },
39518
- limit: 3
39519
- }),
39520
- cF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39521
- TF.configure({ extraCSSRules: e.extraCSSRules })
39522
- ],
39551
+ },
39552
+ link: {
39553
+ autolink: !1,
39554
+ linkOnPaste: !1
39555
+ }
39556
+ }),
39557
+ oI,
39558
+ tS,
39559
+ sI,
39560
+ nS,
39561
+ rS,
39562
+ Gq.configure({
39563
+ placeholder: e.placeholder,
39564
+ showOnlyWhenEditable: !0,
39565
+ showOnlyCurrent: !1,
39566
+ includeChildren: !0
39567
+ }),
39568
+ Zx,
39569
+ Fx,
39570
+ eS,
39571
+ $x,
39572
+ FA.configure(d),
39573
+ IA.configure(d),
39574
+ RA.configure(d),
39575
+ zA.configure(d),
39576
+ LA.configure(d),
39577
+ qM.configure({
39578
+ toolbarOpts: l,
39579
+ math: e.pluginProps?.math || {}
39580
+ }),
39581
+ Vq,
39582
+ Bq,
39583
+ Wq,
39584
+ aP.configure({
39585
+ toolbarOpts: l,
39586
+ imageHandling: {
39587
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39588
+ onDone: (t) => e.onDone?.(t.getHTML()),
39589
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39590
+ let { src: n } = t.attrs;
39591
+ e.imageSupport.delete(n, (e) => {
39592
+ c(t.pos);
39593
+ });
39594
+ }),
39595
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39596
+ let [o, s] = n, l = (n) => {
39597
+ let r;
39598
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39599
+ };
39600
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39601
+ let n = r(l), i = tt(() => {
39602
+ let e = () => window.removeEventListener("focus", i);
39603
+ if (!t._insertingImage) {
39604
+ e();
39605
+ return;
39606
+ }
39607
+ c(s), t._insertingImage = !1, e();
39608
+ }, 500);
39609
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39610
+ })();
39611
+ }),
39612
+ maxImageWidth: e.maxImageWidth,
39613
+ maxImageHeight: e.maxImageHeight
39614
+ },
39615
+ limit: 3
39616
+ }),
39617
+ cF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39618
+ TF.configure({ extraCSSRules: e.extraCSSRules })
39619
+ ], m = e.spellCheck !== !1, h = FC({
39620
+ extensions: p,
39523
39621
  immediatelyRender: !1,
39524
- editorProps: { handleKeyDown(t, n) {
39525
- return e.onKeyDown ? e.onKeyDown(n) : !1;
39526
- } },
39622
+ editorProps: {
39623
+ attributes: Xq(m),
39624
+ handleKeyDown(t, n) {
39625
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39626
+ }
39627
+ },
39527
39628
  editable: !e.disabled,
39528
39629
  content: qt(e.markup),
39529
39630
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -39534,22 +39635,29 @@ var Mq = zm.create({
39534
39635
  }
39535
39636
  }, [e.charactersLimit]);
39536
39637
  wt(() => {
39537
- e.editorRef && e.editorRef(p);
39538
- }, [e.editorRef, p]), wt(() => {
39539
- p?.setEditable(!e.disabled);
39540
- }, [e.disabled, p]), wt(() => {
39541
- if (!p) return;
39638
+ e.editorRef && e.editorRef(h);
39639
+ }, [e.editorRef, h]), wt(() => {
39640
+ h?.setEditable(!e.disabled);
39641
+ }, [e.disabled, h]), wt(() => {
39642
+ if (!h) return;
39643
+ let e = h.options?.editorProps, t = Xq(m);
39644
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39645
+ ...e,
39646
+ attributes: t
39647
+ } });
39648
+ }, [m, h]), wt(() => {
39649
+ if (!h) return;
39542
39650
  let t = qt(e.markup);
39543
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
39544
- }, [e.markup, p]), wt(() => {
39545
- Object.entries(Vq).forEach(([e, t]) => {
39651
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39652
+ }, [e.markup, h]), wt(() => {
39653
+ Object.entries(Yq).forEach(([e, t]) => {
39546
39654
  document.documentElement.style.setProperty(e, t);
39547
39655
  });
39548
39656
  }, []);
39549
- let m = jC({
39550
- editor: p,
39657
+ let g = jC({
39658
+ editor: h,
39551
39659
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39552
- }), h = Et(() => {
39660
+ }), _ = Et(() => {
39553
39661
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39554
39662
  return {
39555
39663
  width: cI(n),
@@ -39564,20 +39672,20 @@ var Mq = zm.create({
39564
39672
  ...e,
39565
39673
  activePlugins: f,
39566
39674
  toolbarOpts: l,
39567
- editorState: m,
39568
- editor: p,
39569
- children: p && /* @__PURE__ */ N(Uq, {
39675
+ editorState: g,
39676
+ editor: h,
39677
+ children: h && /* @__PURE__ */ N(Qq, {
39570
39678
  style: {
39571
- minHeight: h.minHeight,
39572
- height: h.height,
39573
- maxHeight: h.maxHeight
39679
+ minHeight: _.minHeight,
39680
+ height: _.height,
39681
+ maxHeight: _.maxHeight
39574
39682
  },
39575
39683
  showParagraph: t && !t.disabled,
39576
39684
  separateParagraph: n && !n.disabled,
39577
- editor: p
39685
+ editor: h
39578
39686
  })
39579
39687
  });
39580
- }, Uq = j(OC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39688
+ }, Qq = j(OC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39581
39689
  display: "flex",
39582
39690
  outline: "none !important",
39583
39691
  "& .ProseMirror": {
@@ -39605,13 +39713,13 @@ var Mq = zm.create({
39605
39713
  } },
39606
39714
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39607
39715
  }
39608
- })), Wq = Hq;
39716
+ })), $q = Zq;
39609
39717
  //#endregion
39610
39718
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
39611
- function Gq(e) {
39719
+ function eJ(e) {
39612
39720
  return Oe("MuiInputAdornment", e);
39613
39721
  }
39614
- var Kq = T("MuiInputAdornment", [
39722
+ var tJ = T("MuiInputAdornment", [
39615
39723
  "root",
39616
39724
  "filled",
39617
39725
  "standard",
@@ -39621,7 +39729,7 @@ var Kq = T("MuiInputAdornment", [
39621
39729
  "disablePointerEvents",
39622
39730
  "hiddenLabel",
39623
39731
  "sizeSmall"
39624
- ]), qq, Jq = (e, t) => {
39732
+ ]), nJ, rJ = (e, t) => {
39625
39733
  let { ownerState: n } = e;
39626
39734
  return [
39627
39735
  t.root,
@@ -39629,7 +39737,7 @@ var Kq = T("MuiInputAdornment", [
39629
39737
  n.disablePointerEvents === !0 && t.disablePointerEvents,
39630
39738
  t[n.variant]
39631
39739
  ];
39632
- }, Yq = (e) => {
39740
+ }, iJ = (e) => {
39633
39741
  let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
39634
39742
  return Je({ root: [
39635
39743
  "root",
@@ -39638,11 +39746,11 @@ var Kq = T("MuiInputAdornment", [
39638
39746
  o,
39639
39747
  r && "hiddenLabel",
39640
39748
  a && `size${O(a)}`
39641
- ] }, Gq, t);
39642
- }, Xq = j("div", {
39749
+ ] }, eJ, t);
39750
+ }, aJ = j("div", {
39643
39751
  name: "MuiInputAdornment",
39644
39752
  slot: "Root",
39645
- overridesResolver: Jq
39753
+ overridesResolver: rJ
39646
39754
  })(k(({ theme: e }) => ({
39647
39755
  display: "flex",
39648
39756
  maxHeight: "2em",
@@ -39652,7 +39760,7 @@ var Kq = T("MuiInputAdornment", [
39652
39760
  variants: [
39653
39761
  {
39654
39762
  props: { variant: "filled" },
39655
- style: { [`&.${Kq.positionStart}&:not(.${Kq.hiddenLabel})`]: { marginTop: 16 } }
39763
+ style: { [`&.${tJ.positionStart}&:not(.${tJ.hiddenLabel})`]: { marginTop: 16 } }
39656
39764
  },
39657
39765
  {
39658
39766
  props: { position: "start" },
@@ -39667,7 +39775,7 @@ var Kq = T("MuiInputAdornment", [
39667
39775
  style: { pointerEvents: "none" }
39668
39776
  }
39669
39777
  ]
39670
- }))), Zq = /*#__PURE__*/ M.forwardRef(function(e, t) {
39778
+ }))), oJ = /*#__PURE__*/ M.forwardRef(function(e, t) {
39671
39779
  let r = we({
39672
39780
  props: e,
39673
39781
  name: "MuiInputAdornment"
@@ -39680,10 +39788,10 @@ var Kq = T("MuiInputAdornment", [
39680
39788
  disablePointerEvents: s,
39681
39789
  position: l,
39682
39790
  variant: p
39683
- }, h = Yq(m);
39791
+ }, h = iJ(m);
39684
39792
  return /*#__PURE__*/ N(ae.Provider, {
39685
39793
  value: null,
39686
- children: /*#__PURE__*/ N(Xq, {
39794
+ children: /*#__PURE__*/ N(aJ, {
39687
39795
  as: o,
39688
39796
  ownerState: m,
39689
39797
  className: n(h.root, a),
@@ -39692,7 +39800,7 @@ var Kq = T("MuiInputAdornment", [
39692
39800
  children: typeof i == "string" && !c ? /*#__PURE__*/ N(me, {
39693
39801
  color: "textSecondary",
39694
39802
  children: i
39695
- }) : /*#__PURE__*/ P(M.Fragment, { children: [l === "start" ? qq ||= /*#__PURE__*/ N("span", {
39803
+ }) : /*#__PURE__*/ P(M.Fragment, { children: [l === "start" ? nJ ||= /*#__PURE__*/ N("span", {
39696
39804
  className: "notranslate",
39697
39805
  "aria-hidden": !0,
39698
39806
  children: "​"
@@ -39702,10 +39810,10 @@ var Kq = T("MuiInputAdornment", [
39702
39810
  });
39703
39811
  //#endregion
39704
39812
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
39705
- function Qq(e) {
39813
+ function sJ(e) {
39706
39814
  return Oe("MuiTooltip", e);
39707
39815
  }
39708
- var $q = T("MuiTooltip", [
39816
+ var cJ = T("MuiTooltip", [
39709
39817
  "popper",
39710
39818
  "popperInteractive",
39711
39819
  "popperArrow",
@@ -39721,10 +39829,10 @@ var $q = T("MuiTooltip", [
39721
39829
  ]);
39722
39830
  //#endregion
39723
39831
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
39724
- function eJ(e) {
39832
+ function lJ(e) {
39725
39833
  return Math.round(e * 1e5) / 1e5;
39726
39834
  }
39727
- var tJ = (e) => {
39835
+ var uJ = (e) => {
39728
39836
  let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
39729
39837
  return Je({
39730
39838
  popper: [
@@ -39739,8 +39847,8 @@ var tJ = (e) => {
39739
39847
  `tooltipPlacement${O(a.split("-")[0])}`
39740
39848
  ],
39741
39849
  arrow: ["arrow"]
39742
- }, Qq, t);
39743
- }, nJ = j(kR, {
39850
+ }, sJ, t);
39851
+ }, dJ = j(kR, {
39744
39852
  name: "MuiTooltip",
39745
39853
  slot: "Popper",
39746
39854
  overridesResolver: (e, t) => {
@@ -39767,22 +39875,22 @@ var tJ = (e) => {
39767
39875
  {
39768
39876
  props: ({ ownerState: e }) => e.arrow,
39769
39877
  style: {
39770
- [`&[data-popper-placement*="bottom"] .${$q.arrow}`]: {
39878
+ [`&[data-popper-placement*="bottom"] .${cJ.arrow}`]: {
39771
39879
  top: 0,
39772
39880
  marginTop: "-0.71em",
39773
39881
  "&::before": { transformOrigin: "0 100%" }
39774
39882
  },
39775
- [`&[data-popper-placement*="top"] .${$q.arrow}`]: {
39883
+ [`&[data-popper-placement*="top"] .${cJ.arrow}`]: {
39776
39884
  bottom: 0,
39777
39885
  marginBottom: "-0.71em",
39778
39886
  "&::before": { transformOrigin: "100% 0" }
39779
39887
  },
39780
- [`&[data-popper-placement*="right"] .${$q.arrow}`]: {
39888
+ [`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
39781
39889
  height: "1em",
39782
39890
  width: "0.71em",
39783
39891
  "&::before": { transformOrigin: "100% 100%" }
39784
39892
  },
39785
- [`&[data-popper-placement*="left"] .${$q.arrow}`]: {
39893
+ [`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
39786
39894
  height: "1em",
39787
39895
  width: "0.71em",
39788
39896
  "&::before": { transformOrigin: "0 0" }
@@ -39791,34 +39899,34 @@ var tJ = (e) => {
39791
39899
  },
39792
39900
  {
39793
39901
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
39794
- style: { [`&[data-popper-placement*="right"] .${$q.arrow}`]: {
39902
+ style: { [`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
39795
39903
  left: 0,
39796
39904
  marginLeft: "-0.71em"
39797
39905
  } }
39798
39906
  },
39799
39907
  {
39800
39908
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
39801
- style: { [`&[data-popper-placement*="right"] .${$q.arrow}`]: {
39909
+ style: { [`&[data-popper-placement*="right"] .${cJ.arrow}`]: {
39802
39910
  right: 0,
39803
39911
  marginRight: "-0.71em"
39804
39912
  } }
39805
39913
  },
39806
39914
  {
39807
39915
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
39808
- style: { [`&[data-popper-placement*="left"] .${$q.arrow}`]: {
39916
+ style: { [`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
39809
39917
  right: 0,
39810
39918
  marginRight: "-0.71em"
39811
39919
  } }
39812
39920
  },
39813
39921
  {
39814
39922
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
39815
- style: { [`&[data-popper-placement*="left"] .${$q.arrow}`]: {
39923
+ style: { [`&[data-popper-placement*="left"] .${cJ.arrow}`]: {
39816
39924
  left: 0,
39817
39925
  marginLeft: "-0.71em"
39818
39926
  } }
39819
39927
  }
39820
39928
  ]
39821
- }))), rJ = j("div", {
39929
+ }))), fJ = j("div", {
39822
39930
  name: "MuiTooltip",
39823
39931
  slot: "Tooltip",
39824
39932
  overridesResolver: (e, t) => {
@@ -39841,13 +39949,13 @@ var tJ = (e) => {
39841
39949
  margin: 2,
39842
39950
  wordWrap: "break-word",
39843
39951
  fontWeight: e.typography.fontWeightMedium,
39844
- [`.${$q.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
39845
- [`.${$q.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
39846
- [`.${$q.popper}[data-popper-placement*="top"] &`]: {
39952
+ [`.${cJ.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
39953
+ [`.${cJ.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
39954
+ [`.${cJ.popper}[data-popper-placement*="top"] &`]: {
39847
39955
  transformOrigin: "center bottom",
39848
39956
  marginBottom: "14px"
39849
39957
  },
39850
- [`.${$q.popper}[data-popper-placement*="bottom"] &`]: {
39958
+ [`.${cJ.popper}[data-popper-placement*="bottom"] &`]: {
39851
39959
  transformOrigin: "center top",
39852
39960
  marginTop: "14px"
39853
39961
  },
@@ -39864,48 +39972,48 @@ var tJ = (e) => {
39864
39972
  style: {
39865
39973
  padding: "8px 16px",
39866
39974
  fontSize: e.typography.pxToRem(14),
39867
- lineHeight: `${eJ(16 / 14)}em`,
39975
+ lineHeight: `${lJ(16 / 14)}em`,
39868
39976
  fontWeight: e.typography.fontWeightRegular
39869
39977
  }
39870
39978
  },
39871
39979
  {
39872
39980
  props: ({ ownerState: e }) => !e.isRtl,
39873
39981
  style: {
39874
- [`.${$q.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
39875
- [`.${$q.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
39982
+ [`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
39983
+ [`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
39876
39984
  }
39877
39985
  },
39878
39986
  {
39879
39987
  props: ({ ownerState: e }) => !e.isRtl && e.touch,
39880
39988
  style: {
39881
- [`.${$q.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
39882
- [`.${$q.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
39989
+ [`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
39990
+ [`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
39883
39991
  }
39884
39992
  },
39885
39993
  {
39886
39994
  props: ({ ownerState: e }) => !!e.isRtl,
39887
39995
  style: {
39888
- [`.${$q.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
39889
- [`.${$q.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
39996
+ [`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
39997
+ [`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
39890
39998
  }
39891
39999
  },
39892
40000
  {
39893
40001
  props: ({ ownerState: e }) => !!e.isRtl && e.touch,
39894
40002
  style: {
39895
- [`.${$q.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
39896
- [`.${$q.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
40003
+ [`.${cJ.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
40004
+ [`.${cJ.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
39897
40005
  }
39898
40006
  },
39899
40007
  {
39900
40008
  props: ({ ownerState: e }) => e.touch,
39901
- style: { [`.${$q.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
40009
+ style: { [`.${cJ.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
39902
40010
  },
39903
40011
  {
39904
40012
  props: ({ ownerState: e }) => e.touch,
39905
- style: { [`.${$q.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
40013
+ style: { [`.${cJ.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
39906
40014
  }
39907
40015
  ]
39908
- }))), iJ = j("span", {
40016
+ }))), pJ = j("span", {
39909
40017
  name: "MuiTooltip",
39910
40018
  slot: "Arrow"
39911
40019
  })(k(({ theme: e }) => ({
@@ -39924,16 +40032,16 @@ var tJ = (e) => {
39924
40032
  backgroundColor: "currentColor",
39925
40033
  transform: "rotate(45deg)"
39926
40034
  }
39927
- }))), aJ = !1, oJ = new Ee(), sJ = {
40035
+ }))), mJ = !1, hJ = new Ee(), gJ = {
39928
40036
  x: 0,
39929
40037
  y: 0
39930
40038
  };
39931
- function cJ(e, t) {
40039
+ function _J(e, t) {
39932
40040
  return (n, ...r) => {
39933
40041
  t && t(n, ...r), e(n, ...r);
39934
40042
  };
39935
40043
  }
39936
- var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
40044
+ var vJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
39937
40045
  let i = we({
39938
40046
  props: e,
39939
40047
  name: "MuiTooltip"
@@ -39947,15 +40055,15 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
39947
40055
  });
39948
40056
  M.useEffect(() => ke, [ke]);
39949
40057
  let Ae = (e) => {
39950
- oJ.clear(), aJ = !0, Ee(!0), ee && !A && ee(e);
40058
+ hJ.clear(), mJ = !0, Ee(!0), ee && !A && ee(e);
39951
40059
  }, je = y((e) => {
39952
- oJ.start(800 + S, () => {
39953
- aJ = !1;
40060
+ hJ.start(800 + S, () => {
40061
+ mJ = !1;
39954
40062
  }), Ee(!1), w && A && w(e), ye.start(ue.transitions.duration.shortest, () => {
39955
40063
  _e.current = !1;
39956
40064
  });
39957
40065
  }), Me = (e) => {
39958
- _e.current && e.type !== "touchstart" || (fe && fe.removeAttribute("title"), be.clear(), xe.clear(), g || aJ && _ ? be.start(aJ ? _ : g, () => {
40066
+ _e.current && e.type !== "touchstart" || (fe && fe.removeAttribute("title"), be.clear(), xe.clear(), g || mJ && _ ? be.start(mJ ? _ : g, () => {
39959
40067
  Ae(e);
39960
40068
  }) : Ae(e));
39961
40069
  }, Ne = (e) => {
@@ -39997,7 +40105,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
39997
40105
  !D && D !== 0 && (A = !1);
39998
40106
  let He = M.useRef(), We = (e) => {
39999
40107
  let t = le.props;
40000
- t.onMouseMove && t.onMouseMove(e), sJ = {
40108
+ t.onMouseMove && t.onMouseMove(e), gJ = {
40001
40109
  x: e.clientX,
40002
40110
  y: e.clientY
40003
40111
  }, He.current && He.current.update();
@@ -40012,7 +40120,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
40012
40120
  ref: Ve,
40013
40121
  ...b ? { onMouseMove: We } : {}
40014
40122
  }, Je = {};
40015
- h || (qe.onTouchStart = Re, qe.onTouchEnd = Be), p || (qe.onMouseOver = cJ(Me, qe.onMouseOver), qe.onMouseLeave = cJ(Ne, qe.onMouseLeave), ve || (Je.onMouseOver = Me, Je.onMouseLeave = Ne)), f || (qe.onFocus = cJ(Ie, qe.onFocus), qe.onBlur = cJ(Fe, qe.onBlur), ve || (Je.onFocus = Ie, Je.onBlur = Fe));
40123
+ h || (qe.onTouchStart = Re, qe.onTouchEnd = Be), p || (qe.onMouseOver = _J(Me, qe.onMouseOver), qe.onMouseLeave = _J(Ne, qe.onMouseLeave), ve || (Je.onMouseOver = Me, Je.onMouseLeave = Ne)), f || (qe.onFocus = _J(Ie, qe.onFocus), qe.onBlur = _J(Fe, qe.onBlur), ve || (Je.onFocus = Ie, Je.onBlur = Fe));
40016
40124
  let Ye = {
40017
40125
  ...i,
40018
40126
  isRtl: k,
@@ -40039,7 +40147,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
40039
40147
  me,
40040
40148
  E.popperOptions,
40041
40149
  Xe?.popperOptions
40042
- ]), j = tJ(Ye), $e = typeof ie.transition == "function" ? ie.transition(Ye) : ie.transition, et = {
40150
+ ]), j = uJ(Ye), $e = typeof ie.transition == "function" ? ie.transition(Ye) : ie.transition, et = {
40043
40151
  slots: {
40044
40152
  popper: c.Popper,
40045
40153
  transition: c.Transition ?? se,
@@ -40060,7 +40168,7 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
40060
40168
  }
40061
40169
  }
40062
40170
  }, [tt, nt] = de("popper", {
40063
- elementType: nJ,
40171
+ elementType: dJ,
40064
40172
  externalForwardedProps: et,
40065
40173
  ownerState: Ye,
40066
40174
  className: n(j.popper, E?.className)
@@ -40069,12 +40177,12 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
40069
40177
  externalForwardedProps: et,
40070
40178
  ownerState: Ye
40071
40179
  }), [at, ot] = de("tooltip", {
40072
- elementType: rJ,
40180
+ elementType: fJ,
40073
40181
  className: j.tooltip,
40074
40182
  externalForwardedProps: et,
40075
40183
  ownerState: Ye
40076
40184
  }), [st, ct] = de("arrow", {
40077
- elementType: iJ,
40185
+ elementType: pJ,
40078
40186
  className: j.arrow,
40079
40187
  externalForwardedProps: et,
40080
40188
  ownerState: Ye,
@@ -40084,10 +40192,10 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
40084
40192
  as: ne ?? kR,
40085
40193
  placement: te,
40086
40194
  anchorEl: b ? { getBoundingClientRect: () => ({
40087
- top: sJ.y,
40088
- left: sJ.x,
40089
- right: sJ.x,
40090
- bottom: sJ.y,
40195
+ top: gJ.y,
40196
+ left: gJ.x,
40197
+ right: gJ.x,
40198
+ bottom: gJ.y,
40091
40199
  width: 0,
40092
40200
  height: 0
40093
40201
  }) } : fe,
@@ -40111,10 +40219,10 @@ var lJ = /*#__PURE__*/ M.forwardRef(function(e, r) {
40111
40219
  });
40112
40220
  //#endregion
40113
40221
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
40114
- function uJ(e) {
40222
+ function yJ(e) {
40115
40223
  return Oe("MuiSwitch", e);
40116
40224
  }
40117
- var dJ = T("MuiSwitch", [
40225
+ var bJ = T("MuiSwitch", [
40118
40226
  "root",
40119
40227
  "edgeStart",
40120
40228
  "edgeEnd",
@@ -40128,7 +40236,7 @@ var dJ = T("MuiSwitch", [
40128
40236
  "input",
40129
40237
  "thumb",
40130
40238
  "track"
40131
- ]), fJ = (e) => {
40239
+ ]), xJ = (e) => {
40132
40240
  let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = Je({
40133
40241
  root: [
40134
40242
  "root",
@@ -40144,12 +40252,12 @@ var dJ = T("MuiSwitch", [
40144
40252
  thumb: ["thumb"],
40145
40253
  track: ["track"],
40146
40254
  input: ["input"]
40147
- }, uJ, t);
40255
+ }, yJ, t);
40148
40256
  return {
40149
40257
  ...t,
40150
40258
  ...s
40151
40259
  };
40152
- }, pJ = j("span", {
40260
+ }, SJ = j("span", {
40153
40261
  name: "MuiSwitch",
40154
40262
  slot: "Root",
40155
40263
  overridesResolver: (e, t) => {
@@ -40187,25 +40295,25 @@ var dJ = T("MuiSwitch", [
40187
40295
  width: 40,
40188
40296
  height: 24,
40189
40297
  padding: 7,
40190
- [`& .${dJ.thumb}`]: {
40298
+ [`& .${bJ.thumb}`]: {
40191
40299
  width: 16,
40192
40300
  height: 16
40193
40301
  },
40194
- [`& .${dJ.switchBase}`]: {
40302
+ [`& .${bJ.switchBase}`]: {
40195
40303
  padding: 4,
40196
- [`&.${dJ.checked}`]: { transform: "translateX(16px)" }
40304
+ [`&.${bJ.checked}`]: { transform: "translateX(16px)" }
40197
40305
  }
40198
40306
  }
40199
40307
  }
40200
40308
  ]
40201
- }), mJ = j(Re, {
40309
+ }), CJ = j(Re, {
40202
40310
  name: "MuiSwitch",
40203
40311
  slot: "SwitchBase",
40204
40312
  overridesResolver: (e, t) => {
40205
40313
  let { ownerState: n } = e;
40206
40314
  return [
40207
40315
  t.switchBase,
40208
- { [`& .${dJ.input}`]: t.input },
40316
+ { [`& .${bJ.input}`]: t.input },
40209
40317
  n.color !== "default" && t[`color${O(n.color)}`]
40210
40318
  ];
40211
40319
  }
@@ -40216,11 +40324,11 @@ var dJ = T("MuiSwitch", [
40216
40324
  zIndex: 1,
40217
40325
  color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
40218
40326
  transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
40219
- [`&.${dJ.checked}`]: { transform: "translateX(20px)" },
40220
- [`&.${dJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40221
- [`&.${dJ.checked} + .${dJ.track}`]: { opacity: .5 },
40222
- [`&.${dJ.disabled} + .${dJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40223
- [`& .${dJ.input}`]: {
40327
+ [`&.${bJ.checked}`]: { transform: "translateX(20px)" },
40328
+ [`&.${bJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40329
+ [`&.${bJ.checked} + .${bJ.track}`]: { opacity: .5 },
40330
+ [`&.${bJ.disabled} + .${bJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40331
+ [`& .${bJ.input}`]: {
40224
40332
  left: "-100%",
40225
40333
  width: "300%"
40226
40334
  }
@@ -40232,18 +40340,18 @@ var dJ = T("MuiSwitch", [
40232
40340
  variants: [...Object.entries(e.palette).filter(ee(["light"])).map(([t]) => ({
40233
40341
  props: { color: t },
40234
40342
  style: {
40235
- [`&.${dJ.checked}`]: {
40343
+ [`&.${bJ.checked}`]: {
40236
40344
  color: (e.vars || e).palette[t].main,
40237
40345
  "&:hover": {
40238
40346
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
40239
40347
  "@media (hover: none)": { backgroundColor: "transparent" }
40240
40348
  },
40241
- [`&.${dJ.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)}` }
40349
+ [`&.${bJ.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)}` }
40242
40350
  },
40243
- [`&.${dJ.checked} + .${dJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40351
+ [`&.${bJ.checked} + .${bJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40244
40352
  }
40245
40353
  }))]
40246
- }))), hJ = j("span", {
40354
+ }))), wJ = j("span", {
40247
40355
  name: "MuiSwitch",
40248
40356
  slot: "Track"
40249
40357
  })(k(({ theme: e }) => ({
@@ -40256,7 +40364,7 @@ var dJ = T("MuiSwitch", [
40256
40364
  transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
40257
40365
  backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
40258
40366
  opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
40259
- }))), gJ = j("span", {
40367
+ }))), TJ = j("span", {
40260
40368
  name: "MuiSwitch",
40261
40369
  slot: "Thumb"
40262
40370
  })(k(({ theme: e }) => ({
@@ -40267,7 +40375,7 @@ var dJ = T("MuiSwitch", [
40267
40375
  width: 20,
40268
40376
  height: 20,
40269
40377
  borderRadius: "50%"
40270
- }))), _J = /*#__PURE__*/ M.forwardRef(function(e, t) {
40378
+ }))), EJ = /*#__PURE__*/ M.forwardRef(function(e, t) {
40271
40379
  let r = we({
40272
40380
  props: e,
40273
40381
  name: "MuiSwitch"
@@ -40276,29 +40384,29 @@ var dJ = T("MuiSwitch", [
40276
40384
  color: a,
40277
40385
  edge: o,
40278
40386
  size: s
40279
- }, p = fJ(f), m = u.input, g = {
40387
+ }, p = xJ(f), m = u.input, g = {
40280
40388
  slots: l,
40281
40389
  slotProps: u
40282
40390
  }, [_, v] = de("root", {
40283
40391
  className: n(p.root, i),
40284
- elementType: pJ,
40392
+ elementType: SJ,
40285
40393
  externalForwardedProps: g,
40286
40394
  ownerState: f,
40287
40395
  additionalProps: { sx: c }
40288
40396
  }), [y, b] = de("thumb", {
40289
40397
  className: p.thumb,
40290
- elementType: gJ,
40398
+ elementType: TJ,
40291
40399
  externalForwardedProps: g,
40292
40400
  ownerState: f
40293
40401
  }), x = /*#__PURE__*/ N(y, { ...b }), [S, C] = de("track", {
40294
40402
  className: p.track,
40295
- elementType: hJ,
40403
+ elementType: wJ,
40296
40404
  externalForwardedProps: g,
40297
40405
  ownerState: f
40298
40406
  });
40299
40407
  return /*#__PURE__*/ P(_, {
40300
40408
  ...v,
40301
- children: [/*#__PURE__*/ N(mJ, {
40409
+ children: [/*#__PURE__*/ N(CJ, {
40302
40410
  type: "checkbox",
40303
40411
  icon: x,
40304
40412
  checkedIcon: x,
@@ -40319,15 +40427,15 @@ var dJ = T("MuiSwitch", [
40319
40427
  }
40320
40428
  }), /*#__PURE__*/ N(S, { ...C })]
40321
40429
  });
40322
- }), vJ = j(LP)(() => ({ fontSize: "max(1.25rem, 18px)" })), yJ = j(VP)(() => ({ fontSize: "max(1rem, 14px)" })), bJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: u }) => /* @__PURE__ */ P(DN, {
40430
+ }), DJ = j(LP)(() => ({ fontSize: "max(1.25rem, 18px)" })), OJ = j(VP)(() => ({ fontSize: "max(1rem, 14px)" })), kJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: u }) => /* @__PURE__ */ P(DN, {
40323
40431
  open: i,
40324
40432
  disableAutoFocus: s,
40325
40433
  disableEnforceFocus: c,
40326
40434
  disableRestoreFocus: u,
40327
40435
  onClose: n,
40328
40436
  children: [
40329
- t && /* @__PURE__ */ N(vJ, { children: t }),
40330
- e && /* @__PURE__ */ N(nN, { children: /* @__PURE__ */ N(yJ, { children: e }) }),
40437
+ t && /* @__PURE__ */ N(DJ, { children: t }),
40438
+ e && /* @__PURE__ */ N(nN, { children: /* @__PURE__ */ N(OJ, { children: e }) }),
40331
40439
  /* @__PURE__ */ P(vN, { children: [n && /* @__PURE__ */ N(l, {
40332
40440
  onClick: n,
40333
40441
  color: "primary",
@@ -40340,13 +40448,13 @@ var dJ = T("MuiSwitch", [
40340
40448
  })] })
40341
40449
  ]
40342
40450
  });
40343
- bJ.defaultProps = {
40451
+ kJ.defaultProps = {
40344
40452
  onCloseText: "CANCEL",
40345
40453
  onConfirmText: "OK",
40346
40454
  disableAutoFocus: !1,
40347
40455
  disableEnforceFocus: !1,
40348
40456
  disableRestoreFocus: !1
40349
- }, bJ.propTypes = {
40457
+ }, kJ.propTypes = {
40350
40458
  text: H.default.oneOfType([H.default.string, H.default.object]),
40351
40459
  title: H.default.string,
40352
40460
  onClose: H.default.func,
@@ -40360,18 +40468,18 @@ bJ.defaultProps = {
40360
40468
  };
40361
40469
  //#endregion
40362
40470
  //#region ../../lib-react/config-ui/dist/radio-with-label.js
40363
- var xJ = j(Te)(() => ({ "& .MuiFormControlLabel-label": {
40471
+ var AJ = j(Te)(() => ({ "& .MuiFormControlLabel-label": {
40364
40472
  left: "-5px",
40365
40473
  position: "relative"
40366
- } })), SJ = j(He)(() => ({ color: `${g.tertiary()} !important` })), CJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ N(xJ, {
40474
+ } })), jJ = j(He)(() => ({ color: `${g.tertiary()} !important` })), MJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ N(AJ, {
40367
40475
  value: t,
40368
- control: /* @__PURE__ */ N(SJ, {
40476
+ control: /* @__PURE__ */ N(jJ, {
40369
40477
  checked: n,
40370
40478
  onChange: r
40371
40479
  }),
40372
40480
  label: e
40373
40481
  });
40374
- CJ.propTypes = {
40482
+ MJ.propTypes = {
40375
40483
  label: H.default.string,
40376
40484
  value: H.default.string,
40377
40485
  checked: H.default.bool,
@@ -40379,40 +40487,40 @@ CJ.propTypes = {
40379
40487
  };
40380
40488
  //#endregion
40381
40489
  //#region ../../lib-react/config-ui/dist/inputs.js
40382
- function wJ(e) {
40490
+ function NJ(e) {
40383
40491
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40384
40492
  }
40385
- function TJ(e, t) {
40386
- return !e || wJ(e) ? e : wJ(e.default) ? e.default : t && wJ(e[t]) ? e[t] : t && wJ(e[t]?.default) ? e[t].default : e;
40493
+ function PJ(e, t) {
40494
+ return !e || NJ(e) ? e : NJ(e.default) ? e.default : t && NJ(e[t]) ? e[t] : t && NJ(e[t]?.default) ? e[t].default : e;
40387
40495
  }
40388
- var EJ = TJ(pe, "InputContainer") || TJ(kJ.InputContainer, "InputContainer"), DJ = Be, OJ = DJ.default, kJ = OJ && typeof OJ == "object" ? OJ : DJ, AJ = {
40496
+ var FJ = PJ(pe, "InputContainer") || PJ(RJ.InputContainer, "InputContainer"), IJ = Be, LJ = IJ.default, RJ = LJ && typeof LJ == "object" ? LJ : IJ, zJ = {
40389
40497
  className: H.default.string,
40390
40498
  label: H.default.string,
40391
40499
  checked: H.default.bool,
40392
40500
  onChange: H.default.func,
40393
40501
  disabled: H.default.bool,
40394
40502
  error: H.default.string
40395
- }, jJ = j(_J)(() => ({
40503
+ }, BJ = j(EJ)(() => ({
40396
40504
  justifyContent: "inherit",
40397
40505
  transform: "translate(-20%, 20%)"
40398
- })), MJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ N(EJ, {
40506
+ })), VJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ N(FJ, {
40399
40507
  className: e,
40400
40508
  label: t,
40401
- children: /* @__PURE__ */ N(jJ, {
40509
+ children: /* @__PURE__ */ N(BJ, {
40402
40510
  checked: n,
40403
40511
  onChange: r,
40404
40512
  "aria-label": t
40405
40513
  })
40406
40514
  });
40407
- MJ.propTypes = { ...AJ };
40408
- var NJ = j(Me)(({ theme: e, error: t }) => ({
40515
+ VJ.propTypes = { ...zJ };
40516
+ var HJ = j(Me)(({ theme: e, error: t }) => ({
40409
40517
  transform: "translate(-25%, 20%)",
40410
40518
  color: `${g.tertiary()} !important`,
40411
40519
  ...t && { color: `${e.palette.error.main} !important` }
40412
- })), PJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ N(EJ, {
40520
+ })), UJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ N(FJ, {
40413
40521
  className: e,
40414
40522
  label: t,
40415
- children: /* @__PURE__ */ N(NJ, {
40523
+ children: /* @__PURE__ */ N(HJ, {
40416
40524
  disabled: i,
40417
40525
  checked: n,
40418
40526
  onChange: r,
@@ -40420,15 +40528,15 @@ var NJ = j(Me)(({ theme: e, error: t }) => ({
40420
40528
  error: a
40421
40529
  })
40422
40530
  });
40423
- PJ.propTypes = { ...AJ };
40424
- var FJ = j(He)(({ theme: e, error: t }) => ({
40531
+ UJ.propTypes = { ...zJ };
40532
+ var WJ = j(He)(({ theme: e, error: t }) => ({
40425
40533
  transform: "translate(-20%, 20%)",
40426
40534
  color: `${g.tertiary()} !important`,
40427
40535
  ...t && { color: `${e.palette.error.main} !important` }
40428
- })), IJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ N(EJ, {
40536
+ })), GJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ N(FJ, {
40429
40537
  className: e,
40430
40538
  label: t,
40431
- children: /* @__PURE__ */ N(FJ, {
40539
+ children: /* @__PURE__ */ N(WJ, {
40432
40540
  disabled: i,
40433
40541
  checked: n,
40434
40542
  onChange: r,
@@ -40436,10 +40544,10 @@ var FJ = j(He)(({ theme: e, error: t }) => ({
40436
40544
  error: a
40437
40545
  })
40438
40546
  });
40439
- IJ.propTypes = { ...AJ };
40547
+ GJ.propTypes = { ...zJ };
40440
40548
  //#endregion
40441
40549
  //#region ../../lib-react/config-ui/dist/tabs/index.js
40442
- var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
40550
+ var KJ = j(PP)(() => ({})), qJ = class extends mt.Component {
40443
40551
  static propTypes = {
40444
40552
  className: H.default.string,
40445
40553
  contentClassName: H.default.string,
@@ -40460,7 +40568,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
40460
40568
  indicatorColor: "primary",
40461
40569
  value: e,
40462
40570
  onChange: this.handleChange,
40463
- children: mt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ N(LJ, { label: e.props.title }, t) : null)
40571
+ children: mt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ N(KJ, { label: e.props.title }, t) : null)
40464
40572
  }), /* @__PURE__ */ N("div", {
40465
40573
  className: r,
40466
40574
  style: i,
@@ -40468,7 +40576,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
40468
40576
  })]
40469
40577
  });
40470
40578
  }
40471
- }, zJ = j(Te)(({ theme: e, mini: t }) => ({
40579
+ }, JJ = j(Te)(({ theme: e, mini: t }) => ({
40472
40580
  margin: 0,
40473
40581
  marginLeft: 0,
40474
40582
  padding: 0,
@@ -40482,7 +40590,7 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
40482
40590
  fontSize: e.typography.fontSize - 3
40483
40591
  }
40484
40592
  }
40485
- })), BJ = j(Me)(({ theme: e, mini: t, error: n }) => ({
40593
+ })), YJ = j(Me)(({ theme: e, mini: t, error: n }) => ({
40486
40594
  color: `${g.tertiary()} !important`,
40487
40595
  ...t && {
40488
40596
  margin: 0,
@@ -40491,9 +40599,9 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
40491
40599
  height: e.spacing(3)
40492
40600
  },
40493
40601
  ...n && { color: `${e.palette.error.main} !important` }
40494
- })), VJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ N(zJ, {
40602
+ })), XJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ N(JJ, {
40495
40603
  mini: e,
40496
- control: /* @__PURE__ */ N(BJ, {
40604
+ control: /* @__PURE__ */ N(YJ, {
40497
40605
  checked: t,
40498
40606
  onChange: n,
40499
40607
  value: r,
@@ -40502,21 +40610,21 @@ var LJ = j(PP)(() => ({})), RJ = class extends mt.Component {
40502
40610
  }),
40503
40611
  label: i
40504
40612
  });
40505
- VJ.propTypes = {
40613
+ XJ.propTypes = {
40506
40614
  mini: H.default.bool,
40507
40615
  checked: H.default.bool.isRequired,
40508
40616
  onChange: H.default.func.isRequired,
40509
40617
  value: H.default.string,
40510
40618
  label: H.default.string.isRequired,
40511
40619
  error: H.default.bool
40512
- }, VJ.defaultProps = {
40620
+ }, XJ.defaultProps = {
40513
40621
  value: "",
40514
40622
  mini: !1,
40515
40623
  error: !1
40516
40624
  };
40517
40625
  //#endregion
40518
40626
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40519
- var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({ theme: e }) => ({
40627
+ var ZJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), QJ = j(mN)(({ theme: e }) => ({
40520
40628
  marginRight: e.spacing(1),
40521
40629
  "& .MuiInputLabel-root": {
40522
40630
  width: "auto",
@@ -40538,11 +40646,11 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
40538
40646
  minHeight: "auto",
40539
40647
  padding: "6px 0 7px"
40540
40648
  }
40541
- })), WJ = (e, t) => {
40649
+ })), $J = (e, t) => {
40542
40650
  if (!at(e) && !at(t)) return 0;
40543
40651
  if (!at(e) && at(t)) return t;
40544
40652
  if (at(e)) return e;
40545
- }, GJ = class extends mt.Component {
40653
+ }, eY = class extends mt.Component {
40546
40654
  static propTypes = {
40547
40655
  disabled: H.default.bool,
40548
40656
  className: H.default.string,
@@ -40568,13 +40676,13 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
40568
40676
  this.setState({ value: t });
40569
40677
  }
40570
40678
  clamp(e, t = this.props.min, n = this.props.max) {
40571
- return at(e) ? (at(n) && (e = Math.min(e, n)), at(t) && (e = Math.max(e, t)), e) : WJ(t, n);
40679
+ return at(e) ? (at(n) && (e = Math.min(e, n)), at(t) && (e = Math.max(e, t)), e) : $J(t, n);
40572
40680
  }
40573
40681
  onBlur = (e) => {
40574
40682
  let t = e.target.value, n = parseFloat(t);
40575
- HJ("rawNumber: ", n);
40683
+ ZJ("rawNumber: ", n);
40576
40684
  let r = this.clamp(n);
40577
- HJ("number: ", r), r !== this.state.value && (HJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40685
+ ZJ("number: ", r), r !== this.state.value && (ZJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40578
40686
  this.props.onChange(e, r);
40579
40687
  }));
40580
40688
  };
@@ -40594,7 +40702,7 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
40594
40702
  };
40595
40703
  render() {
40596
40704
  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();
40597
- return /* @__PURE__ */ N(UJ, {
40705
+ return /* @__PURE__ */ N(QJ, {
40598
40706
  variant: s ? "filled" : l || "standard",
40599
40707
  inputRef: (e) => {
40600
40708
  this.inputRef = e;
@@ -40613,7 +40721,7 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
40613
40721
  type: "number",
40614
40722
  className: e,
40615
40723
  slotProps: { input: {
40616
- endAdornment: r && /* @__PURE__ */ N(Zq, {
40724
+ endAdornment: r && /* @__PURE__ */ N(oJ, {
40617
40725
  position: "end",
40618
40726
  children: r
40619
40727
  }),
@@ -40629,19 +40737,19 @@ var HJ = (0, Pt.default)("@pie-lib:config-ui:number-text-field"), UJ = j(mN)(({
40629
40737
  };
40630
40738
  //#endregion
40631
40739
  //#region ../../lib-react/config-ui/dist/two-choice.js
40632
- function KJ(e) {
40740
+ function tY(e) {
40633
40741
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40634
40742
  }
40635
- function qJ(e, t) {
40636
- return !e || KJ(e) ? e : KJ(e.default) ? e.default : t && KJ(e[t]) ? e[t] : t && KJ(e[t]?.default) ? e[t].default : e;
40743
+ function nY(e, t) {
40744
+ return !e || tY(e) ? e : tY(e.default) ? e.default : t && tY(e[t]) ? e[t] : t && tY(e[t]?.default) ? e[t].default : e;
40637
40745
  }
40638
- var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ = Be, XJ = YJ.default, ZJ = XJ && typeof XJ == "object" ? XJ : YJ, QJ = j("div")(({ theme: e, direction: t }) => ({
40746
+ var rY = nY(pe, "InputContainer") || nY(oY.InputContainer, "InputContainer"), iY = Be, aY = iY.default, oY = aY && typeof aY == "object" ? aY : iY, sY = j("div")(({ theme: e, direction: t }) => ({
40639
40747
  display: "flex",
40640
40748
  flexWrap: "wrap",
40641
40749
  paddingLeft: 0,
40642
40750
  marginTop: e.spacing(1),
40643
40751
  ...t === "vertical" && { flexDirection: "column" }
40644
- })), $J = class extends mt.Component {
40752
+ })), cY = class extends mt.Component {
40645
40753
  static propTypes = {
40646
40754
  header: H.default.string.isRequired,
40647
40755
  className: H.default.string,
@@ -40658,11 +40766,11 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
40658
40766
  let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
40659
40767
  label: e,
40660
40768
  value: e
40661
- } : e), s = n || CJ;
40662
- return /* @__PURE__ */ N(JJ, {
40769
+ } : e), s = n || MJ;
40770
+ return /* @__PURE__ */ N(rY, {
40663
40771
  label: e,
40664
40772
  className: t,
40665
- children: /* @__PURE__ */ N(QJ, {
40773
+ children: /* @__PURE__ */ N(sY, {
40666
40774
  direction: a,
40667
40775
  children: o.map((e, t) => /* @__PURE__ */ N(s, {
40668
40776
  value: e.value,
@@ -40673,7 +40781,7 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
40673
40781
  })
40674
40782
  });
40675
40783
  }
40676
- }, eY = H.default.shape({
40784
+ }, lY = H.default.shape({
40677
40785
  label: H.default.string,
40678
40786
  value: H.default.string
40679
40787
  });
@@ -40682,14 +40790,14 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
40682
40790
  header: H.default.string.isRequired,
40683
40791
  value: H.default.string.isRequired,
40684
40792
  onChange: H.default.func.isRequired,
40685
- one: H.default.oneOfType([eY, H.default.string]),
40686
- two: H.default.oneOfType([eY, H.default.string]),
40793
+ one: H.default.oneOfType([lY, H.default.string]),
40794
+ two: H.default.oneOfType([lY, H.default.string]),
40687
40795
  className: H.default.string,
40688
40796
  customLabel: H.default.func
40689
40797
  };
40690
40798
  render() {
40691
40799
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
40692
- return /* @__PURE__ */ N($J, {
40800
+ return /* @__PURE__ */ N(cY, {
40693
40801
  customLabel: i,
40694
40802
  header: n,
40695
40803
  className: r,
@@ -40701,16 +40809,16 @@ var JJ = qJ(pe, "InputContainer") || qJ(ZJ.InputContainer, "InputContainer"), YJ
40701
40809
  });
40702
40810
  //#endregion
40703
40811
  //#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Feedback.js
40704
- var tY = m(/*#__PURE__*/ N("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");
40812
+ var uY = m(/*#__PURE__*/ N("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");
40705
40813
  //#endregion
40706
40814
  //#region ../../lib-react/config-ui/dist/choice-configuration/feedback-menu.js
40707
- function nY(e) {
40815
+ function dY(e) {
40708
40816
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40709
40817
  }
40710
- function rY(e, t) {
40711
- return !e || nY(e) ? e : nY(e.default) ? e.default : t && nY(e[t]) ? e[t] : t && nY(e[t]?.default) ? e[t].default : e;
40818
+ function fY(e, t) {
40819
+ return !e || dY(e) ? e : dY(e.default) ? e.default : t && dY(e[t]) ? e[t] : t && dY(e[t]?.default) ? e[t].default : e;
40712
40820
  }
40713
- var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY = aY.default, sY = oY && typeof oY == "object" ? oY : aY, cY = class extends mt.Component {
40821
+ var pY = fY(ve, "InlineMenu") || fY(gY.InlineMenu, "InlineMenu"), mY = Be, hY = mY.default, gY = hY && typeof hY == "object" ? hY : mY, _Y = class extends mt.Component {
40714
40822
  static propTypes = {
40715
40823
  opts: H.default.object,
40716
40824
  onClick: H.default.func.isRequired,
@@ -40738,7 +40846,7 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
40738
40846
  return /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("div", {
40739
40847
  onClick: this.handleClick,
40740
40848
  children: this.props.iconButtonElement
40741
- }), /* @__PURE__ */ N(iY, {
40849
+ }), /* @__PURE__ */ N(pY, {
40742
40850
  id: "simple-menu",
40743
40851
  anchorEl: this.state.anchorEl,
40744
40852
  open: this.state.open,
@@ -40753,7 +40861,7 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
40753
40861
  }, n))
40754
40862
  })] });
40755
40863
  }
40756
- }, lY = class extends mt.Component {
40864
+ }, vY = class extends mt.Component {
40757
40865
  static propTypes = {
40758
40866
  value: H.default.object,
40759
40867
  onChange: H.default.func.isRequired,
@@ -40762,12 +40870,12 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
40762
40870
  static defaultProps = { classes: {} };
40763
40871
  render() {
40764
40872
  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";
40765
- return /* @__PURE__ */ N(cY, {
40873
+ return /* @__PURE__ */ N(_Y, {
40766
40874
  iconButtonElement: /* @__PURE__ */ N(uS, {
40767
40875
  className: n.icon,
40768
40876
  "aria-label": a,
40769
40877
  size: "large",
40770
- children: /* @__PURE__ */ N(tY, { color: i })
40878
+ children: /* @__PURE__ */ N(uY, { color: i })
40771
40879
  }),
40772
40880
  onClick: (e) => t(e),
40773
40881
  opts: {
@@ -40777,19 +40885,19 @@ var iY = rY(ve, "InlineMenu") || rY(sY.InlineMenu, "InlineMenu"), aY = Be, oY =
40777
40885
  }
40778
40886
  });
40779
40887
  }
40780
- }, uY = m(/*#__PURE__*/ N("path", { d: "m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z" }), "SubdirectoryArrowRight");
40888
+ }, yY = m(/*#__PURE__*/ N("path", { d: "m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z" }), "SubdirectoryArrowRight");
40781
40889
  //#endregion
40782
40890
  //#region ../../lib-react/config-ui/dist/choice-configuration/index.js
40783
- function dY(e) {
40891
+ function bY(e) {
40784
40892
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40785
40893
  }
40786
- function fY(e, t) {
40787
- return !e || dY(e) ? e : dY(e.default) ? e.default : t && dY(e[t]) ? e[t] : t && dY(e[t]?.default) ? e[t].default : e;
40894
+ function xY(e, t) {
40895
+ return !e || bY(e) ? e : bY(e.default) ? e.default : t && bY(e[t]) ? e[t] : t && bY(e[t]?.default) ? e[t].default : e;
40788
40896
  }
40789
- var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY = Be, hY = mY.default, gY = hY && typeof hY == "object" ? hY : mY, _Y = j("div")(({ theme: e }) => ({ marginTop: e.spacing(2) })), vY = ({ 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__ */ N(pY, {
40897
+ var SY = xY(pe, "InputContainer") || xY(TY.InputContainer, "InputContainer"), CY = Be, wY = CY.default, TY = wY && typeof wY == "object" ? wY : CY, EY = j("div")(({ theme: e }) => ({ marginTop: e.spacing(2) })), DY = ({ 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__ */ N(SY, {
40790
40898
  label: e,
40791
40899
  className: r,
40792
- children: /* @__PURE__ */ N(_Y, { children: /* @__PURE__ */ N(Wq, {
40900
+ children: /* @__PURE__ */ N(EY, { children: /* @__PURE__ */ N($q, {
40793
40901
  markup: n || "",
40794
40902
  disabled: o,
40795
40903
  spellCheck: s,
@@ -40806,65 +40914,65 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
40806
40914
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
40807
40915
  mathMlOptions: h
40808
40916
  }) })
40809
- }), yY = j("div")(() => ({ position: "relative" })), bY = j(uY)(() => ({
40917
+ }), OY = j("div")(() => ({ position: "relative" })), kY = j(yY)(() => ({
40810
40918
  fill: g.border(),
40811
40919
  left: -56,
40812
40920
  position: "absolute",
40813
40921
  top: 40
40814
- })), xY = j(mN)(({ theme: e }) => ({
40922
+ })), AY = j(mN)(({ theme: e }) => ({
40815
40923
  width: "100%",
40816
40924
  marginTop: e.spacing(2)
40817
- })), SY = j(vY)(({ theme: e }) => ({
40925
+ })), jY = j(DY)(({ theme: e }) => ({
40818
40926
  width: "100%",
40819
40927
  marginTop: e.spacing(2)
40820
- })), CY = ({ value: e, onChange: t, type: n, correct: r, defaults: i, toolbarOpts: a, mathMlOptions: o = {} }) => !n || n === "none" ? null : n === "default" ? /* @__PURE__ */ P(yY, { children: [/* @__PURE__ */ N(bY, {}), /* @__PURE__ */ N(xY, {
40928
+ })), MY = ({ value: e, onChange: t, type: n, correct: r, defaults: i, toolbarOpts: a, mathMlOptions: o = {} }) => !n || n === "none" ? null : n === "default" ? /* @__PURE__ */ P(OY, { children: [/* @__PURE__ */ N(kY, {}), /* @__PURE__ */ N(AY, {
40821
40929
  label: "Feedback Text",
40822
40930
  value: r ? i.correct : i.incorrect,
40823
40931
  variant: "standard"
40824
- })] }) : /* @__PURE__ */ P(yY, { children: [/* @__PURE__ */ N(bY, {}), /* @__PURE__ */ N(SY, {
40932
+ })] }) : /* @__PURE__ */ P(OY, { children: [/* @__PURE__ */ N(kY, {}), /* @__PURE__ */ N(jY, {
40825
40933
  label: "Feedback Text",
40826
40934
  value: e,
40827
40935
  onChange: t,
40828
40936
  toolbarOpts: a,
40829
40937
  mathMlOptions: o
40830
- })] }), wY = j("span")(({ theme: e }) => ({
40938
+ })] }), NY = j("span")(({ theme: e }) => ({
40831
40939
  paddingRight: e.spacing(1),
40832
40940
  paddingTop: e.spacing(3)
40833
- })), TY = j("div")(() => ({
40941
+ })), PY = j("div")(() => ({
40834
40942
  display: "flex",
40835
40943
  alignItems: "center"
40836
- })), EY = j("div")(({ theme: e }) => ({
40944
+ })), FY = j("div")(({ theme: e }) => ({
40837
40945
  flex: "0 1 auto",
40838
40946
  paddingTop: e.spacing(.5),
40839
40947
  paddingBottom: 0,
40840
40948
  marginRight: 0,
40841
40949
  marginLeft: e.spacing(1)
40842
- })), DY = j("div")(({ theme: e }) => ({
40950
+ })), IY = j("div")(({ theme: e }) => ({
40843
40951
  flex: "0 1 auto",
40844
40952
  paddingTop: e.spacing(2),
40845
40953
  paddingLeft: 0,
40846
40954
  marginLeft: 0,
40847
40955
  marginRight: e.spacing(1)
40848
- })), OY = j("div")(() => ({
40956
+ })), LY = j("div")(() => ({
40849
40957
  margin: 0,
40850
40958
  width: "inherit"
40851
- })), kY = j("div")(() => ({
40959
+ })), RY = j("div")(() => ({
40852
40960
  margin: 0,
40853
40961
  width: "inherit"
40854
- })), AY = j("div")(({ theme: e }) => ({
40962
+ })), zY = j("div")(({ theme: e }) => ({
40855
40963
  flex: "0 1 auto",
40856
40964
  paddingTop: e.spacing(2),
40857
40965
  paddingLeft: 0,
40858
40966
  marginLeft: 0
40859
- })), jY = j("div")(({ theme: e }) => ({
40967
+ })), BY = j("div")(({ theme: e }) => ({
40860
40968
  display: "flex",
40861
40969
  flex: 1,
40862
40970
  flexDirection: "column",
40863
40971
  marginRight: e.spacing(1)
40864
- })), MY = j("div")(({ theme: e }) => ({
40972
+ })), VY = j("div")(({ theme: e }) => ({
40865
40973
  fontSize: e.typography.fontSize - 2,
40866
40974
  color: e.palette.error.main
40867
- })), NY = class extends mt.Component {
40975
+ })), HY = class extends mt.Component {
40868
40976
  static propTypes = {
40869
40977
  noLabels: H.default.bool,
40870
40978
  useLetterOrdering: H.default.bool,
@@ -40946,20 +41054,20 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
40946
41054
  });
40947
41055
  };
40948
41056
  render() {
40949
- 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" ? PJ : IJ;
40950
- return /* @__PURE__ */ P(TY, { children: [
40951
- i > 0 && /* @__PURE__ */ N(wY, {
41057
+ 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" ? UJ : GJ;
41058
+ return /* @__PURE__ */ P(PY, { children: [
41059
+ i > 0 && /* @__PURE__ */ N(NY, {
40952
41060
  type: "title",
40953
41061
  children: s ? String.fromCharCode(96 + i).toUpperCase() : i
40954
41062
  }),
40955
- /* @__PURE__ */ N(EY, { children: /* @__PURE__ */ N(C, {
41063
+ /* @__PURE__ */ N(FY, { children: /* @__PURE__ */ N(C, {
40956
41064
  onChange: this.onCheckedChange,
40957
41065
  label: o ? "" : "Correct",
40958
41066
  checked: !!e.correct,
40959
41067
  error: v
40960
41068
  }) }),
40961
- /* @__PURE__ */ P(jY, { children: [
40962
- /* @__PURE__ */ N(vY, {
41069
+ /* @__PURE__ */ P(BY, { children: [
41070
+ /* @__PURE__ */ N(DY, {
40963
41071
  label: o ? "" : "Label",
40964
41072
  value: e.label,
40965
41073
  onChange: this.onLabelChange,
@@ -40976,8 +41084,8 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
40976
41084
  maxImageWidth: b,
40977
41085
  maxImageHeight: x
40978
41086
  }),
40979
- _ && /* @__PURE__ */ N(MY, { children: _ }),
40980
- p && /* @__PURE__ */ N(CY, {
41087
+ _ && /* @__PURE__ */ N(VY, { children: _ }),
41088
+ p && /* @__PURE__ */ N(MY, {
40981
41089
  ...e.feedback,
40982
41090
  correct: e.correct,
40983
41091
  defaults: r,
@@ -40985,16 +41093,16 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
40985
41093
  toolbarOpts: g
40986
41094
  })
40987
41095
  ] }),
40988
- p && /* @__PURE__ */ N(DY, { children: /* @__PURE__ */ N(pY, {
41096
+ p && /* @__PURE__ */ N(IY, { children: /* @__PURE__ */ N(SY, {
40989
41097
  label: o ? "" : "Feedback",
40990
- children: /* @__PURE__ */ N(OY, { children: /* @__PURE__ */ N(lY, {
41098
+ children: /* @__PURE__ */ N(LY, { children: /* @__PURE__ */ N(vY, {
40991
41099
  onChange: this.onFeedbackTypeChange,
40992
41100
  value: e.feedback
40993
41101
  }) })
40994
41102
  }) }),
40995
- m && /* @__PURE__ */ N(AY, { children: /* @__PURE__ */ N(pY, {
41103
+ m && /* @__PURE__ */ N(zY, { children: /* @__PURE__ */ N(SY, {
40996
41104
  label: o ? "" : "Delete",
40997
- children: /* @__PURE__ */ N(kY, { children: /* @__PURE__ */ N(uS, {
41105
+ children: /* @__PURE__ */ N(RY, { children: /* @__PURE__ */ N(uS, {
40998
41106
  "aria-label": "delete",
40999
41107
  onClick: n,
41000
41108
  size: "large",
@@ -41003,21 +41111,21 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
41003
41111
  }) })
41004
41112
  ] });
41005
41113
  }
41006
- }, PY = Object.defineProperty, FY = (e, t) => {
41114
+ }, UY = Object.defineProperty, WY = (e, t) => {
41007
41115
  let n = {};
41008
- for (var r in e) PY(n, r, {
41116
+ for (var r in e) UY(n, r, {
41009
41117
  get: e[r],
41010
41118
  enumerable: !0
41011
41119
  });
41012
- return t || PY(n, Symbol.toStringTag, { value: "Module" }), n;
41013
- }, IY = j("div")(() => ({
41120
+ return t || UY(n, Symbol.toStringTag, { value: "Module" }), n;
41121
+ }, GY = j("div")(() => ({
41014
41122
  display: "flex",
41015
41123
  flexDirection: "column",
41016
41124
  position: "relative"
41017
- })), LY = j("div")(() => ({
41125
+ })), KY = j("div")(() => ({
41018
41126
  display: "flex",
41019
41127
  justifyContent: "space-between"
41020
- })), RY = j("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), zY = j("div")(() => ({ flex: "1" })), BY = j("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), VY = class extends mt.Component {
41128
+ })), qY = j("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), JY = j("div")(() => ({ flex: "1" })), YY = j("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), XY = class extends mt.Component {
41021
41129
  static propTypes = {
41022
41130
  mode: H.default.oneOf(["tabbed", "inline"]),
41023
41131
  secondary: H.default.oneOfType([H.default.arrayOf(H.default.node), H.default.node]),
@@ -41035,7 +41143,7 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
41035
41143
  } catch (e) {
41036
41144
  console.log(e.toString());
41037
41145
  }
41038
- return /* @__PURE__ */ P(IY, {
41146
+ return /* @__PURE__ */ P(GY, {
41039
41147
  style: {
41040
41148
  minHeight: i,
41041
41149
  minWidth: a,
@@ -41043,28 +41151,28 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
41043
41151
  maxWidth: s
41044
41152
  },
41045
41153
  children: [
41046
- e === "inline" && /* @__PURE__ */ P(LY, { children: [/* @__PURE__ */ N(zY, {
41154
+ e === "inline" && /* @__PURE__ */ P(KY, { children: [/* @__PURE__ */ N(JY, {
41047
41155
  className: "design-container",
41048
41156
  children: n
41049
- }), l && /* @__PURE__ */ N(BY, {
41157
+ }), l && /* @__PURE__ */ N(YY, {
41050
41158
  className: "settings-container",
41051
41159
  children: t
41052
41160
  })] }),
41053
- e === "tabbed" && l && /* @__PURE__ */ P(RJ, {
41161
+ e === "tabbed" && l && /* @__PURE__ */ P(qJ, {
41054
41162
  onChange: this.onTabsChange,
41055
41163
  contentClassName: "content-container",
41056
41164
  indicatorColor: "primary",
41057
- children: [/* @__PURE__ */ N(RY, {
41165
+ children: [/* @__PURE__ */ N(qY, {
41058
41166
  title: "Design",
41059
41167
  className: "design-container",
41060
41168
  children: n
41061
- }), /* @__PURE__ */ N(RY, {
41169
+ }), /* @__PURE__ */ N(qY, {
41062
41170
  title: "Settings",
41063
41171
  className: "settings-container",
41064
41172
  children: t
41065
41173
  })]
41066
41174
  }),
41067
- e === "tabbed" && !l && /* @__PURE__ */ N(RY, {
41175
+ e === "tabbed" && !l && /* @__PURE__ */ N(qY, {
41068
41176
  className: "design-container",
41069
41177
  children: n
41070
41178
  })
@@ -41074,18 +41182,18 @@ var pY = fY(pe, "InputContainer") || fY(gY.InputContainer, "InputContainer"), mY
41074
41182
  };
41075
41183
  //#endregion
41076
41184
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
41077
- function HY() {
41078
- return HY = Object.assign ? Object.assign.bind() : function(e) {
41185
+ function ZY() {
41186
+ return ZY = Object.assign ? Object.assign.bind() : function(e) {
41079
41187
  for (var t = 1; t < arguments.length; t++) {
41080
41188
  var n = arguments[t];
41081
41189
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
41082
41190
  }
41083
41191
  return e;
41084
- }, HY.apply(null, arguments);
41192
+ }, ZY.apply(null, arguments);
41085
41193
  }
41086
41194
  //#endregion
41087
41195
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
41088
- function UY(e, t) {
41196
+ function QY(e, t) {
41089
41197
  if (e == null) return {};
41090
41198
  var n = {};
41091
41199
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -41096,19 +41204,19 @@ function UY(e, t) {
41096
41204
  }
41097
41205
  //#endregion
41098
41206
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
41099
- function WY(e, t) {
41100
- return WY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41207
+ function $Y(e, t) {
41208
+ return $Y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41101
41209
  return e.__proto__ = t, e;
41102
- }, WY(e, t);
41210
+ }, $Y(e, t);
41103
41211
  }
41104
41212
  //#endregion
41105
41213
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
41106
- function GY(e, t) {
41107
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, WY(e, t);
41214
+ function eX(e, t) {
41215
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, $Y(e, t);
41108
41216
  }
41109
41217
  //#endregion
41110
41218
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
41111
- var KY = (function() {
41219
+ var tX = (function() {
41112
41220
  if (typeof Map < "u") return Map;
41113
41221
  function e(e, t) {
41114
41222
  var n = -1;
@@ -41147,34 +41255,34 @@ var KY = (function() {
41147
41255
  }
41148
41256
  }, t;
41149
41257
  }();
41150
- })(), qY = typeof window < "u" && typeof document < "u" && window.document === document, JY = (function() {
41258
+ })(), nX = typeof window < "u" && typeof document < "u" && window.document === document, rX = (function() {
41151
41259
  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")();
41152
- })(), YY = (function() {
41153
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(JY) : function(e) {
41260
+ })(), iX = (function() {
41261
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(rX) : function(e) {
41154
41262
  return setTimeout(function() {
41155
41263
  return e(Date.now());
41156
41264
  }, 1e3 / 60);
41157
41265
  };
41158
- })(), XY = 2;
41159
- function ZY(e, t) {
41266
+ })(), aX = 2;
41267
+ function oX(e, t) {
41160
41268
  var n = !1, r = !1, i = 0;
41161
41269
  function a() {
41162
41270
  n && (n = !1, e()), r && s();
41163
41271
  }
41164
41272
  function o() {
41165
- YY(a);
41273
+ iX(a);
41166
41274
  }
41167
41275
  function s() {
41168
41276
  var e = Date.now();
41169
41277
  if (n) {
41170
- if (e - i < XY) return;
41278
+ if (e - i < aX) return;
41171
41279
  r = !0;
41172
41280
  } else n = !0, r = !1, setTimeout(o, t);
41173
41281
  i = e;
41174
41282
  }
41175
41283
  return s;
41176
41284
  }
41177
- var QY = 20, $Y = [
41285
+ var sX = 20, cX = [
41178
41286
  "top",
41179
41287
  "right",
41180
41288
  "bottom",
@@ -41183,9 +41291,9 @@ var QY = 20, $Y = [
41183
41291
  "height",
41184
41292
  "size",
41185
41293
  "weight"
41186
- ], eX = typeof MutationObserver < "u", tX = function() {
41294
+ ], lX = typeof MutationObserver < "u", uX = function() {
41187
41295
  function e() {
41188
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = ZY(this.refresh.bind(this), QY);
41296
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = oX(this.refresh.bind(this), sX);
41189
41297
  }
41190
41298
  return e.prototype.addObserver = function(e) {
41191
41299
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -41202,23 +41310,23 @@ var QY = 20, $Y = [
41202
41310
  return e.broadcastActive();
41203
41311
  }), e.length > 0;
41204
41312
  }, e.prototype.connect_ = function() {
41205
- !qY || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), eX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41313
+ !nX || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), lX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41206
41314
  attributes: !0,
41207
41315
  childList: !0,
41208
41316
  characterData: !0,
41209
41317
  subtree: !0
41210
41318
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
41211
41319
  }, e.prototype.disconnect_ = function() {
41212
- !qY || !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);
41320
+ !nX || !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);
41213
41321
  }, e.prototype.onTransitionEnd_ = function(e) {
41214
41322
  var t = e.propertyName, n = t === void 0 ? "" : t;
41215
- $Y.some(function(e) {
41323
+ cX.some(function(e) {
41216
41324
  return !!~n.indexOf(e);
41217
41325
  }) && this.refresh();
41218
41326
  }, e.getInstance = function() {
41219
41327
  return this.instance_ ||= new e(), this.instance_;
41220
41328
  }, e.instance_ = null, e;
41221
- }(), nX = (function(e, t) {
41329
+ }(), dX = (function(e, t) {
41222
41330
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
41223
41331
  var i = r[n];
41224
41332
  Object.defineProperty(e, i, {
@@ -41229,19 +41337,19 @@ var QY = 20, $Y = [
41229
41337
  });
41230
41338
  }
41231
41339
  return e;
41232
- }), rX = (function(e) {
41233
- return e && e.ownerDocument && e.ownerDocument.defaultView || JY;
41234
- }), iX = mX(0, 0, 0, 0);
41235
- function aX(e) {
41340
+ }), fX = (function(e) {
41341
+ return e && e.ownerDocument && e.ownerDocument.defaultView || rX;
41342
+ }), pX = CX(0, 0, 0, 0);
41343
+ function mX(e) {
41236
41344
  return parseFloat(e) || 0;
41237
41345
  }
41238
- function oX(e) {
41346
+ function hX(e) {
41239
41347
  return [...arguments].slice(1).reduce(function(t, n) {
41240
41348
  var r = e["border-" + n + "-width"];
41241
- return t + aX(r);
41349
+ return t + mX(r);
41242
41350
  }, 0);
41243
41351
  }
41244
- function sX(e) {
41352
+ function gX(e) {
41245
41353
  for (var t = [
41246
41354
  "top",
41247
41355
  "right",
@@ -41249,40 +41357,40 @@ function sX(e) {
41249
41357
  "left"
41250
41358
  ], n = {}, r = 0, i = t; r < i.length; r++) {
41251
41359
  var a = i[r], o = e["padding-" + a];
41252
- n[a] = aX(o);
41360
+ n[a] = mX(o);
41253
41361
  }
41254
41362
  return n;
41255
41363
  }
41256
- function cX(e) {
41364
+ function _X(e) {
41257
41365
  var t = e.getBBox();
41258
- return mX(0, 0, t.width, t.height);
41366
+ return CX(0, 0, t.width, t.height);
41259
41367
  }
41260
- function lX(e) {
41368
+ function vX(e) {
41261
41369
  var t = e.clientWidth, n = e.clientHeight;
41262
- if (!t && !n) return iX;
41263
- var r = rX(e).getComputedStyle(e), i = sX(r), a = i.left + i.right, o = i.top + i.bottom, s = aX(r.width), c = aX(r.height);
41264
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= oX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= oX(r, "top", "bottom") + o)), !dX(e)) {
41370
+ if (!t && !n) return pX;
41371
+ var r = fX(e).getComputedStyle(e), i = gX(r), a = i.left + i.right, o = i.top + i.bottom, s = mX(r.width), c = mX(r.height);
41372
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= hX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= hX(r, "top", "bottom") + o)), !bX(e)) {
41265
41373
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
41266
41374
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
41267
41375
  }
41268
- return mX(i.left, i.top, s, c);
41376
+ return CX(i.left, i.top, s, c);
41269
41377
  }
41270
- var uX = (function() {
41378
+ var yX = (function() {
41271
41379
  return typeof SVGGraphicsElement < "u" ? function(e) {
41272
- return e instanceof rX(e).SVGGraphicsElement;
41380
+ return e instanceof fX(e).SVGGraphicsElement;
41273
41381
  } : function(e) {
41274
- return e instanceof rX(e).SVGElement && typeof e.getBBox == "function";
41382
+ return e instanceof fX(e).SVGElement && typeof e.getBBox == "function";
41275
41383
  };
41276
41384
  })();
41277
- function dX(e) {
41278
- return e === rX(e).document.documentElement;
41385
+ function bX(e) {
41386
+ return e === fX(e).document.documentElement;
41279
41387
  }
41280
- function fX(e) {
41281
- return qY ? uX(e) ? cX(e) : lX(e) : iX;
41388
+ function xX(e) {
41389
+ return nX ? yX(e) ? _X(e) : vX(e) : pX;
41282
41390
  }
41283
- function pX(e) {
41391
+ function SX(e) {
41284
41392
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
41285
- return nX(a, {
41393
+ return dX(a, {
41286
41394
  x: t,
41287
41395
  y: n,
41288
41396
  width: r,
@@ -41293,7 +41401,7 @@ function pX(e) {
41293
41401
  left: t
41294
41402
  }), a;
41295
41403
  }
41296
- function mX(e, t, n, r) {
41404
+ function CX(e, t, n, r) {
41297
41405
  return {
41298
41406
  x: e,
41299
41407
  y: t,
@@ -41301,42 +41409,42 @@ function mX(e, t, n, r) {
41301
41409
  height: r
41302
41410
  };
41303
41411
  }
41304
- var hX = function() {
41412
+ var wX = function() {
41305
41413
  function e(e) {
41306
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = mX(0, 0, 0, 0), this.target = e;
41414
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = CX(0, 0, 0, 0), this.target = e;
41307
41415
  }
41308
41416
  return e.prototype.isActive = function() {
41309
- var e = fX(this.target);
41417
+ var e = xX(this.target);
41310
41418
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41311
41419
  }, e.prototype.broadcastRect = function() {
41312
41420
  var e = this.contentRect_;
41313
41421
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41314
41422
  }, e;
41315
- }(), gX = function() {
41423
+ }(), TX = function() {
41316
41424
  function e(e, t) {
41317
- var n = pX(t);
41318
- nX(this, {
41425
+ var n = SX(t);
41426
+ dX(this, {
41319
41427
  target: e,
41320
41428
  contentRect: n
41321
41429
  });
41322
41430
  }
41323
41431
  return e;
41324
- }(), _X = function() {
41432
+ }(), EX = function() {
41325
41433
  function e(e, t, n) {
41326
- if (this.activeObservations_ = [], this.observations_ = new KY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41434
+ if (this.activeObservations_ = [], this.observations_ = new tX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41327
41435
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41328
41436
  }
41329
41437
  return e.prototype.observe = function(e) {
41330
41438
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41331
41439
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41332
- if (!(e instanceof rX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41440
+ if (!(e instanceof fX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41333
41441
  var t = this.observations_;
41334
- t.has(e) || (t.set(e, new hX(e)), this.controller_.addObserver(this), this.controller_.refresh());
41442
+ t.has(e) || (t.set(e, new wX(e)), this.controller_.addObserver(this), this.controller_.refresh());
41335
41443
  }
41336
41444
  }, e.prototype.unobserve = function(e) {
41337
41445
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41338
41446
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41339
- if (!(e instanceof rX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41447
+ if (!(e instanceof fX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41340
41448
  var t = this.observations_;
41341
41449
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41342
41450
  }
@@ -41350,7 +41458,7 @@ var hX = function() {
41350
41458
  }, e.prototype.broadcastActive = function() {
41351
41459
  if (this.hasActive()) {
41352
41460
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41353
- return new gX(e.target, e.broadcastRect());
41461
+ return new TX(e.target, e.broadcastRect());
41354
41462
  });
41355
41463
  this.callback_.call(e, t, e), this.clearActive();
41356
41464
  }
@@ -41359,12 +41467,12 @@ var hX = function() {
41359
41467
  }, e.prototype.hasActive = function() {
41360
41468
  return this.activeObservations_.length > 0;
41361
41469
  }, e;
41362
- }(), vX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new KY(), yX = function() {
41470
+ }(), DX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new tX(), OX = function() {
41363
41471
  function e(t) {
41364
41472
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41365
41473
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41366
- var n = new _X(t, tX.getInstance(), this);
41367
- vX.set(this, n);
41474
+ var n = new EX(t, uX.getInstance(), this);
41475
+ DX.set(this, n);
41368
41476
  }
41369
41477
  return e;
41370
41478
  }();
@@ -41373,27 +41481,27 @@ var hX = function() {
41373
41481
  "unobserve",
41374
41482
  "disconnect"
41375
41483
  ].forEach(function(e) {
41376
- yX.prototype[e] = function() {
41484
+ OX.prototype[e] = function() {
41377
41485
  var t;
41378
- return (t = vX.get(this))[e].apply(t, arguments);
41486
+ return (t = DX.get(this))[e].apply(t, arguments);
41379
41487
  };
41380
41488
  });
41381
- var bX = (function() {
41382
- return JY.ResizeObserver === void 0 ? yX : JY.ResizeObserver;
41383
- })(), xX = [
41489
+ var kX = (function() {
41490
+ return rX.ResizeObserver === void 0 ? OX : rX.ResizeObserver;
41491
+ })(), AX = [
41384
41492
  "client",
41385
41493
  "offset",
41386
41494
  "scroll",
41387
41495
  "bounds",
41388
41496
  "margin"
41389
41497
  ];
41390
- function SX(e) {
41498
+ function jX(e) {
41391
41499
  var t = [];
41392
- return xX.forEach(function(n) {
41500
+ return AX.forEach(function(n) {
41393
41501
  e[n] && t.push(n);
41394
41502
  }), t;
41395
41503
  }
41396
- function CX(e, t) {
41504
+ function MX(e, t) {
41397
41505
  var n = {};
41398
41506
  if (t.indexOf("client") > -1 && (n.client = {
41399
41507
  top: e.clientTop,
@@ -41432,14 +41540,14 @@ function CX(e, t) {
41432
41540
  }
41433
41541
  return n;
41434
41542
  }
41435
- function wX(e) {
41543
+ function NX(e) {
41436
41544
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
41437
41545
  }
41438
- function TX(e) {
41546
+ function PX(e) {
41439
41547
  return function(t) {
41440
41548
  var n, r;
41441
41549
  return r = n = /*#__PURE__*/ function(n) {
41442
- GY(r, n);
41550
+ eX(r, n);
41443
41551
  function r() {
41444
41552
  var t, r = [...arguments];
41445
41553
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -41450,24 +41558,24 @@ function TX(e) {
41450
41558
  bounds: {},
41451
41559
  margin: {}
41452
41560
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
41453
- var r = CX(t._node, e || SX(t.props));
41561
+ var r = MX(t._node, e || jX(t.props));
41454
41562
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
41455
41563
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
41456
41564
  });
41457
41565
  }, t._handleRef = function(e) {
41458
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = wX(t._node);
41566
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = NX(t._node);
41459
41567
  var n = t.props.innerRef;
41460
41568
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
41461
41569
  }, t;
41462
41570
  }
41463
41571
  var i = r.prototype;
41464
41572
  return i.componentDidMount = function() {
41465
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new bX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(CX(this._node, e || SX(this.props))));
41573
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new kX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(MX(this._node, e || jX(this.props))));
41466
41574
  }, i.componentWillUnmount = function() {
41467
41575
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
41468
41576
  }, i.render = function() {
41469
41577
  var e = this.props;
41470
- return e.innerRef, e.onResize, _t(t, HY({}, UY(e, ["innerRef", "onResize"]), {
41578
+ return e.innerRef, e.onResize, _t(t, ZY({}, QY(e, ["innerRef", "onResize"]), {
41471
41579
  measureRef: this._handleRef,
41472
41580
  measure: this.measure,
41473
41581
  contentRect: this.state.contentRect
@@ -41484,7 +41592,7 @@ function TX(e) {
41484
41592
  }, r;
41485
41593
  };
41486
41594
  }
41487
- var EX = TX()(function(e) {
41595
+ var FX = PX()(function(e) {
41488
41596
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
41489
41597
  return i({
41490
41598
  measure: t,
@@ -41492,10 +41600,10 @@ var EX = TX()(function(e) {
41492
41600
  contentRect: r
41493
41601
  });
41494
41602
  });
41495
- EX.displayName = "Measure", EX.propTypes.children = H.default.func;
41603
+ FX.displayName = "Measure", FX.propTypes.children = H.default.func;
41496
41604
  //#endregion
41497
41605
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
41498
- var DX = j("div")(() => ({
41606
+ var IX = j("div")(() => ({
41499
41607
  backgroundColor: g.white(),
41500
41608
  border: `2px solid ${g.border()}`,
41501
41609
  display: "flex",
@@ -41505,7 +41613,7 @@ var DX = j("div")(() => ({
41505
41613
  maxWidth: "300px",
41506
41614
  padding: "20px 4px 4px 20px",
41507
41615
  zIndex: 99
41508
- })), OX = class extends mt.Component {
41616
+ })), LX = class extends mt.Component {
41509
41617
  static propTypes = {
41510
41618
  className: H.default.string,
41511
41619
  children: H.default.oneOfType([H.default.arrayOf(H.default.node), H.default.node]).isRequired
@@ -41513,19 +41621,19 @@ var DX = j("div")(() => ({
41513
41621
  static defaultProps = {};
41514
41622
  render() {
41515
41623
  let { className: e, children: t } = this.props;
41516
- return /* @__PURE__ */ N(DX, {
41624
+ return /* @__PURE__ */ N(IX, {
41517
41625
  className: e,
41518
41626
  children: t
41519
41627
  });
41520
41628
  }
41521
- }, kX = o({
41629
+ }, RX = o({
41522
41630
  typography: { fontFamily: "inherit" },
41523
41631
  components: { MuiButton: { styleOverrides: { contained: {
41524
41632
  backgroundColor: "#e0e0e0",
41525
41633
  color: "#000000",
41526
41634
  "&:hover": { backgroundColor: "#bdbdbd" }
41527
41635
  } } } }
41528
- }), AX = class extends mt.Component {
41636
+ }), zX = class extends mt.Component {
41529
41637
  static propTypes = {
41530
41638
  children: H.default.oneOfType([
41531
41639
  H.default.string,
@@ -41558,19 +41666,19 @@ var DX = j("div")(() => ({
41558
41666
  return /* @__PURE__ */ N(S, {
41559
41667
  injectFirst: !0,
41560
41668
  children: /* @__PURE__ */ N(qe, {
41561
- theme: kX,
41562
- children: /* @__PURE__ */ N(EX, {
41669
+ theme: RX,
41670
+ children: /* @__PURE__ */ N(FX, {
41563
41671
  bounds: !0,
41564
41672
  onResize: this.onResize,
41565
41673
  children: ({ measureRef: e }) => {
41566
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ N(OX, {
41674
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ N(LX, {
41567
41675
  className: "settings-box",
41568
41676
  children: n
41569
41677
  }) : n;
41570
41678
  return /* @__PURE__ */ P("div", {
41571
41679
  ref: e,
41572
41680
  className: "main-container extraCSSRules",
41573
- children: [a?.rules ? /* @__PURE__ */ N("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ N(VY, {
41681
+ children: [a?.rules ? /* @__PURE__ */ N("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ N(XY, {
41574
41682
  mode: o,
41575
41683
  secondary: s,
41576
41684
  dimensions: i,
@@ -41582,36 +41690,36 @@ var DX = j("div")(() => ({
41582
41690
  })
41583
41691
  });
41584
41692
  }
41585
- }, jX = TX("bounds")(AX), MX = /* @__PURE__ */ FY({
41586
- ConfigLayout: () => jX,
41587
- LayoutContents: () => VY
41588
- }), NX = /* @__PURE__ */ FY({
41589
- firstAvailableIndex: () => FX,
41590
- normalizeChoices: () => PX
41591
- }), PX = (e) => {
41693
+ }, BX = PX("bounds")(zX), VX = /* @__PURE__ */ WY({
41694
+ ConfigLayout: () => BX,
41695
+ LayoutContents: () => XY
41696
+ }), HX = /* @__PURE__ */ WY({
41697
+ firstAvailableIndex: () => WX,
41698
+ normalizeChoices: () => UX
41699
+ }), UX = (e) => {
41592
41700
  let t = e.choices.map((e, t) => (e.value ||= `${t}`, e));
41593
41701
  return {
41594
41702
  ...e,
41595
41703
  choices: t
41596
41704
  };
41597
- }, FX = (e, t) => ct(e, `${t}`) ? FX(e, t + 1) : `${t}`, IX = j("div")(() => ({
41705
+ }, WX = (e, t) => ct(e, `${t}`) ? WX(e, t + 1) : `${t}`, GX = j("div")(() => ({
41598
41706
  display: "flex",
41599
41707
  width: "100%",
41600
41708
  justifyContent: "space-between"
41601
- })), LX = j(ge)(({ theme: e }) => ({
41709
+ })), KX = j(ge)(({ theme: e }) => ({
41602
41710
  color: "rgba(0, 0, 0, 0.89)",
41603
41711
  fontSize: e.typography.fontSize,
41604
41712
  paddingTop: e.spacing(2)
41605
- })), RX = j(_J)(({ checked: e }) => ({
41713
+ })), qX = j(EJ)(({ checked: e }) => ({
41606
41714
  "&.Mui-checked .MuiSwitch-thumb": { color: `${g.tertiary()} !important` },
41607
41715
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${g.tertiaryLight()} !important` },
41608
41716
  "& .MuiSwitch-track": { backgroundColor: e ? `${g.tertiaryLight()} !important` : void 0 }
41609
- })), zX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ P(IX, { children: [/* @__PURE__ */ N(LX, { children: n }), /* @__PURE__ */ N(RX, {
41717
+ })), JX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ P(GX, { children: [/* @__PURE__ */ N(KX, { children: n }), /* @__PURE__ */ N(qX, {
41610
41718
  checked: e,
41611
41719
  disabled: t,
41612
41720
  onChange: (e) => r(e.target.checked)
41613
41721
  })] });
41614
- zX.propTypes = {
41722
+ JX.propTypes = {
41615
41723
  checked: H.default.bool,
41616
41724
  disabled: H.default.bool,
41617
41725
  label: H.default.string.isRequired,
@@ -41619,20 +41727,20 @@ zX.propTypes = {
41619
41727
  };
41620
41728
  //#endregion
41621
41729
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
41622
- var BX = j(Te)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41730
+ var YX = j(Te)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41623
41731
  color: "rgba(0, 0, 0, 0.89)",
41624
41732
  fontSize: e.typography.fontSize - 2,
41625
41733
  left: "-5px",
41626
41734
  position: "relative"
41627
- } })), VX = j(He)(() => ({ color: `${g.tertiary()} !important` })), HX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ N(BX, {
41735
+ } })), XX = j(He)(() => ({ color: `${g.tertiary()} !important` })), ZX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ N(YX, {
41628
41736
  value: t,
41629
- control: /* @__PURE__ */ N(VX, {
41737
+ control: /* @__PURE__ */ N(XX, {
41630
41738
  checked: n,
41631
41739
  onChange: r
41632
41740
  }),
41633
41741
  label: e
41634
41742
  });
41635
- HX.propTypes = {
41743
+ ZX.propTypes = {
41636
41744
  label: H.default.string,
41637
41745
  value: H.default.string,
41638
41746
  checked: H.default.bool,
@@ -41640,26 +41748,26 @@ HX.propTypes = {
41640
41748
  };
41641
41749
  //#endregion
41642
41750
  //#region ../../lib-react/config-ui/dist/settings/panel.js
41643
- var UX = (0, Pt.default)("pie-lib:config-ui:settings:panel"), WX = {
41751
+ var QX = (0, Pt.default)("pie-lib:config-ui:settings:panel"), $X = {
41644
41752
  label: H.default.string,
41645
41753
  value: H.default.string
41646
- }, GX = {
41754
+ }, eZ = {
41647
41755
  label: H.default.string,
41648
41756
  value: H.default.string,
41649
41757
  onChange: H.default.func
41650
- }, KX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ N(VJ, {
41758
+ }, tZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ N(XJ, {
41651
41759
  checked: t,
41652
41760
  label: e,
41653
41761
  onChange: (e) => {
41654
41762
  n(e.target.checked);
41655
41763
  }
41656
41764
  });
41657
- KX.propTypes = {
41765
+ tZ.propTypes = {
41658
41766
  label: H.default.string,
41659
41767
  value: H.default.bool,
41660
41768
  onChange: H.default.func
41661
41769
  };
41662
- var qX = j($J)(({ theme: e }) => ({
41770
+ var nZ = j(cY)(({ theme: e }) => ({
41663
41771
  marginTop: e.spacing(.5),
41664
41772
  paddingBottom: e.spacing(.5),
41665
41773
  width: "100%",
@@ -41670,29 +41778,29 @@ var qX = j($J)(({ theme: e }) => ({
41670
41778
  marginTop: e.spacing(2.5)
41671
41779
  },
41672
41780
  "& > div": { marginTop: e.spacing(2.5) }
41673
- })), JX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ N(qX, {
41781
+ })), rZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ N(nZ, {
41674
41782
  direction: "horizontal",
41675
- customLabel: HX,
41783
+ customLabel: ZX,
41676
41784
  value: t,
41677
41785
  header: e,
41678
41786
  opts: r,
41679
41787
  onChange: n
41680
41788
  });
41681
- JX.propTypes = {
41682
- ...GX,
41683
- choices: H.default.arrayOf(H.default.shape(WX))
41789
+ rZ.propTypes = {
41790
+ ...eZ,
41791
+ choices: H.default.arrayOf(H.default.shape($X))
41684
41792
  };
41685
- var YX = JX, XX = j("p")(({ theme: e }) => ({
41793
+ var iZ = rZ, aZ = j("p")(({ theme: e }) => ({
41686
41794
  margin: 0,
41687
41795
  fontSize: e.typography.fontSize
41688
- })), ZX = j(oM)(({ theme: e }) => ({
41796
+ })), oZ = j(oM)(({ theme: e }) => ({
41689
41797
  marginTop: e.spacing(.5),
41690
41798
  border: "2px solid lightgrey",
41691
41799
  padding: `0 ${e.spacing(1)}`,
41692
41800
  borderRadius: "4px"
41693
- })), QX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41801
+ })), sZ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41694
41802
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
41695
- return /* @__PURE__ */ P("div", { children: [e && /* @__PURE__ */ N(XX, { children: e }), /* @__PURE__ */ N(ZX, {
41803
+ return /* @__PURE__ */ P("div", { children: [e && /* @__PURE__ */ N(aZ, { children: e }), /* @__PURE__ */ N(oZ, {
41696
41804
  value: t || r && r[0],
41697
41805
  onChange: ({ target: e }) => n(e.value),
41698
41806
  input: /* @__PURE__ */ N(Lj, { id: `dropdown-${e}` }),
@@ -41707,14 +41815,14 @@ var YX = JX, XX = j("p")(({ theme: e }) => ({
41707
41815
  }, t))
41708
41816
  })] });
41709
41817
  };
41710
- QX.propTypes = {
41711
- ...GX,
41818
+ sZ.propTypes = {
41819
+ ...eZ,
41712
41820
  choices: H.default.arrayOf(H.default.string)
41713
41821
  };
41714
- var $X = j(me)(({ theme: e }) => ({
41822
+ var cZ = j(me)(({ theme: e }) => ({
41715
41823
  marginRight: e.spacing(3),
41716
41824
  marginTop: e.spacing(1)
41717
- })), eZ = ({ label: e }) => /* @__PURE__ */ N($X, { children: e }), tZ = j(GJ)(({ theme: e }) => ({
41825
+ })), lZ = ({ label: e }) => /* @__PURE__ */ N(cZ, { children: e }), uZ = j(eY)(({ theme: e }) => ({
41718
41826
  width: "35%",
41719
41827
  marginRight: e.spacing(3),
41720
41828
  marginTop: e.spacing(1),
@@ -41725,7 +41833,7 @@ var $X = j(me)(({ theme: e }) => ({
41725
41833
  padding: `0 ${e.spacing(1)}`,
41726
41834
  backgroundColor: "transparent"
41727
41835
  }
41728
- })), nZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ N(tZ, {
41836
+ })), dZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ N(uZ, {
41729
41837
  variant: "standard",
41730
41838
  label: e || "Label",
41731
41839
  value: t,
@@ -41736,45 +41844,45 @@ var $X = j(me)(({ theme: e }) => ({
41736
41844
  showErrorWhenOutsideRange: !0,
41737
41845
  disableUnderline: !0
41738
41846
  });
41739
- nZ.propTypes = {
41740
- ...GX,
41847
+ dZ.propTypes = {
41848
+ ...eZ,
41741
41849
  suffix: H.default.string,
41742
41850
  min: H.default.number,
41743
41851
  max: H.default.number,
41744
41852
  value: H.default.number
41745
- }, eZ.propTypes = { ...GX };
41746
- var rZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ N(zX, {
41853
+ }, lZ.propTypes = { ...eZ };
41854
+ var fZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ N(JX, {
41747
41855
  label: t,
41748
41856
  checked: !!n,
41749
41857
  disabled: !!e,
41750
41858
  toggle: r
41751
41859
  });
41752
- rZ.propTypes = {
41753
- ...GX,
41860
+ fZ.propTypes = {
41861
+ ...eZ,
41754
41862
  value: H.default.bool
41755
41863
  };
41756
- var iZ = {
41757
- toggle: rZ,
41758
- radio: YX,
41759
- dropdown: QX,
41760
- numberField: nZ,
41761
- checkbox: KX,
41762
- textField: eZ
41763
- }, aZ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), oZ = j("div")(({ theme: e }) => ({
41864
+ var pZ = {
41865
+ toggle: fZ,
41866
+ radio: iZ,
41867
+ dropdown: sZ,
41868
+ numberField: dZ,
41869
+ checkbox: tZ,
41870
+ textField: lZ
41871
+ }, mZ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), hZ = j("div")(({ theme: e }) => ({
41764
41872
  color: "#495B8F",
41765
41873
  fontSize: e.typography.fontSize + 2,
41766
41874
  fontWeight: 600,
41767
41875
  marginBottom: e.spacing(1)
41768
- })), sZ = j("p")(({ theme: e }) => ({
41876
+ })), gZ = j("p")(({ theme: e }) => ({
41769
41877
  fontSize: e.typography.fontSize,
41770
41878
  marginBottom: 0
41771
- })), cZ = (e) => {
41879
+ })), _Z = (e) => {
41772
41880
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
41773
41881
  let { isConfigProperty: o, ...s } = ot(e, r || n), c = ot(o ? i : t, n), l = {
41774
41882
  ...s,
41775
41883
  key: n,
41776
41884
  value: c
41777
- }, u = iZ[l.type];
41885
+ }, u = pZ[l.type];
41778
41886
  return /* @__PURE__ */ N(u, {
41779
41887
  ...l,
41780
41888
  onChange: (e) => a(n, e, o)
@@ -41783,18 +41891,18 @@ var iZ = {
41783
41891
  let n = e[t];
41784
41892
  if (!n) return null;
41785
41893
  let { type: r, label: i, fields: a, choices: s } = n;
41786
- return r === "numberFields" ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(sZ, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41894
+ return r === "numberFields" ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N(gZ, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41787
41895
  };
41788
- return /* @__PURE__ */ P(aZ, { children: [/* @__PURE__ */ N(oZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41896
+ return /* @__PURE__ */ P(mZ, { children: [/* @__PURE__ */ N(hZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41789
41897
  };
41790
- cZ.propTypes = {
41898
+ _Z.propTypes = {
41791
41899
  model: H.default.object,
41792
41900
  label: H.default.string,
41793
41901
  group: H.default.object,
41794
41902
  configuration: H.default.object,
41795
41903
  onChange: H.default.func
41796
41904
  };
41797
- var lZ = class extends mt.Component {
41905
+ var vZ = class extends mt.Component {
41798
41906
  static propTypes = {
41799
41907
  model: H.default.object,
41800
41908
  configuration: H.default.object,
@@ -41808,13 +41916,13 @@ var lZ = class extends mt.Component {
41808
41916
  onChangeConfiguration: () => {}
41809
41917
  };
41810
41918
  change = (e, t, n = !1) => {
41811
- UX("[changeModel]", e, t);
41919
+ QX("[changeModel]", e, t);
41812
41920
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41813
41921
  n ? (ut(o, e, t), i(o, e)) : (ut(a, e, t), r(a, e));
41814
41922
  };
41815
41923
  render() {
41816
41924
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
41817
- return UX("render:", t), /* @__PURE__ */ P("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ N(cZ, {
41925
+ return QX("render:", t), /* @__PURE__ */ P("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ N(_Z, {
41818
41926
  label: r,
41819
41927
  model: t,
41820
41928
  configuration: n,
@@ -41822,59 +41930,59 @@ var lZ = class extends mt.Component {
41822
41930
  onChange: this.change
41823
41931
  }, r) : null), r] });
41824
41932
  }
41825
- }, uZ = /* @__PURE__ */ FY({
41826
- Panel: () => lZ,
41827
- checkbox: () => vZ,
41828
- checkboxes: () => yZ,
41829
- dropdown: () => hZ,
41830
- numberField: () => gZ,
41831
- numberFields: () => _Z,
41832
- radio: () => mZ,
41833
- textField: () => dZ,
41834
- toggle: () => fZ
41835
- }), dZ = (e, t = !0) => ({
41933
+ }, yZ = /* @__PURE__ */ WY({
41934
+ Panel: () => vZ,
41935
+ checkbox: () => DZ,
41936
+ checkboxes: () => OZ,
41937
+ dropdown: () => wZ,
41938
+ numberField: () => TZ,
41939
+ numberFields: () => EZ,
41940
+ radio: () => CZ,
41941
+ textField: () => bZ,
41942
+ toggle: () => xZ
41943
+ }), bZ = (e, t = !0) => ({
41836
41944
  label: e,
41837
41945
  type: "textField",
41838
41946
  isConfigProperty: t
41839
- }), fZ = (e, t = !1, n = !1) => ({
41947
+ }), xZ = (e, t = !1, n = !1) => ({
41840
41948
  type: "toggle",
41841
41949
  label: e,
41842
41950
  isConfigProperty: t,
41843
41951
  disabled: n
41844
- }), pZ = (e) => typeof e == "string" ? {
41952
+ }), SZ = (e) => typeof e == "string" ? {
41845
41953
  label: e,
41846
41954
  value: e
41847
- } : e, mZ = function() {
41955
+ } : e, CZ = function() {
41848
41956
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41849
41957
  return {
41850
41958
  type: "radio",
41851
41959
  label: e,
41852
- choices: t && t.map((e) => pZ(e)),
41960
+ choices: t && t.map((e) => SZ(e)),
41853
41961
  isConfigProperty: n
41854
41962
  };
41855
- }, hZ = (e, t, n = !1) => ({
41963
+ }, wZ = (e, t, n = !1) => ({
41856
41964
  type: "dropdown",
41857
41965
  label: e,
41858
41966
  choices: t,
41859
41967
  isConfigProperty: n
41860
- }), gZ = (e, t, n = !1) => ({
41968
+ }), TZ = (e, t, n = !1) => ({
41861
41969
  ...t,
41862
41970
  label: e,
41863
41971
  type: "numberField",
41864
41972
  isConfigProperty: n
41865
- }), _Z = (e, t, n = !1) => (Object.keys(t).map((e) => {
41866
- t[e] = gZ(t[e].label, t[e], n);
41973
+ }), EZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
41974
+ t[e] = TZ(t[e].label, t[e], n);
41867
41975
  }), {
41868
41976
  type: "numberFields",
41869
41977
  label: e,
41870
41978
  fields: t
41871
- }), vZ = (e, t, n = !1) => ({
41979
+ }), DZ = (e, t, n = !1) => ({
41872
41980
  ...t,
41873
41981
  label: e,
41874
41982
  type: "checkbox",
41875
41983
  isConfigProperty: n
41876
- }), yZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
41877
- t[e] = vZ(t[e].label, t[e], n);
41984
+ }), OZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
41985
+ t[e] = DZ(t[e].label, t[e], n);
41878
41986
  }), {
41879
41987
  type: "checkboxes",
41880
41988
  label: e,
@@ -41882,88 +41990,88 @@ var lZ = class extends mt.Component {
41882
41990
  });
41883
41991
  //#endregion
41884
41992
  //#region ../../lib-react/config-ui/dist/index.js
41885
- function bZ(e) {
41993
+ function kZ(e) {
41886
41994
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41887
41995
  }
41888
- function xZ(e, t) {
41889
- return !e || bZ(e) ? e : bZ(e.default) ? e.default : t && bZ(e[t]) ? e[t] : t && bZ(e[t]?.default) ? e[t].default : e;
41996
+ function AZ(e, t) {
41997
+ return !e || kZ(e) ? e : kZ(e.default) ? e.default : t && kZ(e[t]) ? e[t] : t && kZ(e[t]?.default) ? e[t].default : e;
41890
41998
  }
41891
- var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ = Be, wZ = CZ.default, TZ = wZ && typeof wZ == "object" ? wZ : CZ, EZ = m(/*#__PURE__*/ N("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"), DZ = (e) => {
41999
+ var jZ = AZ(pe, "InputContainer") || AZ(PZ.InputContainer, "InputContainer"), MZ = Be, NZ = MZ.default, PZ = NZ && typeof NZ == "object" ? NZ : MZ, FZ = m(/*#__PURE__*/ N("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"), IZ = (e) => {
41892
42000
  let { minAnswerChoices: t, maxAnswerChoices: n } = e;
41893
42001
  return "Validation requirements:" + (`\nThere should be at least ${t} ` + (n ? `and at most ${n} ` : "") + "answer choices defined.\nEvery answer choice should be non-blank and unique.") + "\nA correct answer must be defined.";
41894
- }, { Panel: OZ, toggle: kZ, radio: AZ, dropdown: jZ } = uZ, MZ = 9, NZ = j(SZ)(({ theme: e }) => ({
42002
+ }, { Panel: LZ, toggle: RZ, radio: zZ, dropdown: BZ } = yZ, VZ = 9, HZ = j(jZ)(({ theme: e }) => ({
41895
42003
  width: "100%",
41896
42004
  paddingTop: e.spacing(2),
41897
42005
  marginBottom: e.spacing(2)
41898
- })), PZ = j(SZ)(({ theme: e }) => ({
42006
+ })), UZ = j(jZ)(({ theme: e }) => ({
41899
42007
  flex: 1,
41900
42008
  marginTop: e.spacing(1.5),
41901
42009
  paddingTop: e.spacing(2),
41902
42010
  marginLeft: e.spacing(3.5)
41903
- })), FZ = j(SZ)(({ theme: e }) => ({
42011
+ })), WZ = j(jZ)(({ theme: e }) => ({
41904
42012
  display: "flex",
41905
42013
  flexDirection: "column",
41906
42014
  marginBottom: e.spacing(1),
41907
42015
  width: "100%"
41908
- })), IZ = j(l)(({ theme: e }) => ({
42016
+ })), GZ = j(l)(({ theme: e }) => ({
41909
42017
  marginTop: e.spacing(1),
41910
42018
  float: "right"
41911
- })), LZ = j(IZ)({
42019
+ })), KZ = j(GZ)({
41912
42020
  cursor: "not-allowed",
41913
42021
  pointerEvents: "all",
41914
42022
  backgroundColor: g.disabled(),
41915
42023
  "&:hover": { backgroundColor: g.disabled() },
41916
42024
  "&:focus": { backgroundColor: g.disabled() }
41917
- }), RZ = j(Pe)({
42025
+ }), qZ = j(Pe)({
41918
42026
  display: "flex",
41919
42027
  alignItems: "center"
41920
- }), zZ = j(me)(({ theme: e }) => ({
42028
+ }), JZ = j(me)(({ theme: e }) => ({
41921
42029
  fontSize: e.typography.fontSize + 2,
41922
42030
  marginRight: e.spacing(1)
41923
- })), BZ = j(lJ)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
42031
+ })), YZ = j(vJ)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
41924
42032
  fontSize: e.typography.fontSize - 2,
41925
42033
  whiteSpace: "pre",
41926
42034
  maxWidth: "500px"
41927
- } })), VZ = j("div")(({ theme: e }) => ({
42035
+ } })), XZ = j("div")(({ theme: e }) => ({
41928
42036
  fontSize: e.typography.fontSize - 2,
41929
42037
  color: e.palette.error.main,
41930
42038
  paddingTop: e.spacing(1)
41931
- })), HZ = (e) => {
42039
+ })), ZZ = (e) => {
41932
42040
  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: ne, maxImageWidth: E = {}, maxImageHeight: re = {}, prompt: ie = {}, withRubric: ae = {}, mathMlOptions: oe = {}, language: D = {}, languageChoices: se = {} } = n || {}, { maxAnswerChoices: O } = n || {}, { limitChoicesNumber: ce, teacherInstructionsEnabled: le, rationaleEnabled: ue, feedbackEnabled: k, promptEnabled: de, spellCheckEnabled: fe, choices: pe, errors: me, toolbarEditorPosition: he, extraCSSRules: ge } = t || {}, { answerChoices: _e, choices: ve, correctResponse: ye, prompt: be, rationale: xe, teacherInstructions: Se } = me || {}, Ce = pe?.length ? Array.from({ length: pe.length }, (e, t) => `${t + 1}`) : [], { baseInputConfiguration: we = {} } = n, Te = { position: he === "top" ? "top" : "bottom" };
41933
- ce && (O = MZ);
42041
+ ce && (O = VZ);
41934
42042
  let Ee = (e = {}) => ({
41935
42043
  ...we,
41936
42044
  ...e
41937
- }), A = DZ(n), De = E && E.prompt, Oe = re && re.prompt, ke = O && pe?.length >= O ? `Only ${O} allowed maximum` : "", Ae = {
41938
- choiceMode: g.settings && AZ(g.label, ["checkbox", "radio"]),
41939
- "sequentialChoiceLabels.enabled": w.settings && kZ(w.label, !0),
41940
- choicePrefix: _.settings && AZ(_.label, ["numbers", "letters"]),
41941
- partialScoring: v.settings && kZ(v.label),
41942
- lockChoiceOrder: y.settings && kZ(y.label),
41943
- feedbackEnabled: m.settings && kZ(m.label),
41944
- choicesLayout: T.settings && jZ(T.label, [
42045
+ }), A = IZ(n), De = E && E.prompt, Oe = re && re.prompt, ke = O && pe?.length >= O ? `Only ${O} allowed maximum` : "", Ae = {
42046
+ choiceMode: g.settings && zZ(g.label, ["checkbox", "radio"]),
42047
+ "sequentialChoiceLabels.enabled": w.settings && RZ(w.label, !0),
42048
+ choicePrefix: _.settings && zZ(_.label, ["numbers", "letters"]),
42049
+ partialScoring: v.settings && RZ(v.label),
42050
+ lockChoiceOrder: y.settings && RZ(y.label),
42051
+ feedbackEnabled: m.settings && RZ(m.label),
42052
+ choicesLayout: T.settings && BZ(T.label, [
41945
42053
  "vertical",
41946
42054
  "grid",
41947
42055
  "horizontal"
41948
42056
  ]),
41949
- gridColumns: T.settings && t.choicesLayout === "grid" && Ce.length > 0 && jZ(ne.label, Ce),
41950
- "language.enabled": D.settings && kZ(D.label, !0),
41951
- language: D.settings && D.enabled && jZ(se.label, se.options)
42057
+ gridColumns: T.settings && t.choicesLayout === "grid" && Ce.length > 0 && BZ(ne.label, Ce),
42058
+ "language.enabled": D.settings && RZ(D.label, !0),
42059
+ language: D.settings && D.enabled && BZ(se.label, se.options)
41952
42060
  }, je = {
41953
- teacherInstructionsEnabled: b.settings && kZ(b.label),
41954
- studentInstructionsEnabled: x.settings && kZ(x.label),
41955
- promptEnabled: ie.settings && kZ(ie.label),
41956
- rationaleEnabled: S.settings && kZ(S.label),
41957
- spellCheckEnabled: te.settings && kZ(te.label),
41958
- scoringType: C.settings && AZ(C.label, ["auto", "rubric"]),
41959
- rubricEnabled: ae?.settings && kZ(ae?.label)
41960
- };
41961
- return /* @__PURE__ */ P(MX.ConfigLayout, {
42061
+ teacherInstructionsEnabled: b.settings && RZ(b.label),
42062
+ studentInstructionsEnabled: x.settings && RZ(x.label),
42063
+ promptEnabled: ie.settings && RZ(ie.label),
42064
+ rationaleEnabled: S.settings && RZ(S.label),
42065
+ spellCheckEnabled: te.settings && RZ(te.label),
42066
+ scoringType: C.settings && zZ(C.label, ["auto", "rubric"]),
42067
+ rubricEnabled: ae?.settings && RZ(ae?.label)
42068
+ };
42069
+ return /* @__PURE__ */ P(VX.ConfigLayout, {
41962
42070
  dimensions: p,
41963
42071
  hideSettings: ee,
41964
42072
  extraCSSRules: ge,
41965
42073
  classes: {},
41966
- settings: /* @__PURE__ */ N(OZ, {
42074
+ settings: /* @__PURE__ */ N(LZ, {
41967
42075
  model: t,
41968
42076
  onChangeModel: l,
41969
42077
  configuration: n,
@@ -41974,9 +42082,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
41974
42082
  }
41975
42083
  }),
41976
42084
  children: [
41977
- le && /* @__PURE__ */ P(NZ, {
42085
+ le && /* @__PURE__ */ P(HZ, {
41978
42086
  label: b.label,
41979
- children: [/* @__PURE__ */ N(Wq, {
42087
+ children: [/* @__PURE__ */ N($q, {
41980
42088
  markup: t.teacherInstructions || "",
41981
42089
  onChange: d,
41982
42090
  imageSupport: s,
@@ -41991,11 +42099,11 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
41991
42099
  uploadSoundSupport: c,
41992
42100
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
41993
42101
  mathMlOptions: oe
41994
- }), Se && /* @__PURE__ */ N(VZ, { children: Se })]
42102
+ }), Se && /* @__PURE__ */ N(XZ, { children: Se })]
41995
42103
  }),
41996
- de && /* @__PURE__ */ P(NZ, {
42104
+ de && /* @__PURE__ */ P(HZ, {
41997
42105
  label: ie.label,
41998
- children: [/* @__PURE__ */ N(Wq, {
42106
+ children: [/* @__PURE__ */ N($q, {
41999
42107
  markup: t.prompt,
42000
42108
  onChange: r,
42001
42109
  imageSupport: s,
@@ -42010,22 +42118,22 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42010
42118
  uploadSoundSupport: c,
42011
42119
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42012
42120
  mathMlOptions: oe
42013
- }), be && /* @__PURE__ */ N(VZ, { children: be })]
42121
+ }), be && /* @__PURE__ */ N(XZ, { children: be })]
42014
42122
  }),
42015
- /* @__PURE__ */ P(RZ, { children: [/* @__PURE__ */ N(zZ, {
42123
+ /* @__PURE__ */ P(qZ, { children: [/* @__PURE__ */ N(JZ, {
42016
42124
  component: "div",
42017
42125
  children: "Choices"
42018
- }), /* @__PURE__ */ N(BZ, {
42126
+ }), /* @__PURE__ */ N(YZ, {
42019
42127
  disableFocusListener: !0,
42020
42128
  disableTouchListener: !0,
42021
42129
  placement: "right",
42022
42130
  title: A,
42023
- children: /* @__PURE__ */ N(EZ, {
42131
+ children: /* @__PURE__ */ N(FZ, {
42024
42132
  fontSize: "small",
42025
42133
  color: "primary"
42026
42134
  })
42027
42135
  })] }),
42028
- pe.map((e, r) => /* @__PURE__ */ P(FZ, { children: [/* @__PURE__ */ N(NY, {
42136
+ pe.map((e, r) => /* @__PURE__ */ P(WZ, { children: [/* @__PURE__ */ N(HY, {
42029
42137
  index: r + 1,
42030
42138
  useLetterOrdering: t.choicePrefix === "letters",
42031
42139
  mode: t.choiceMode,
@@ -42047,9 +42155,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42047
42155
  maxImageHeight: re && re.choices || Oe,
42048
42156
  uploadSoundSupport: c,
42049
42157
  mathMlOptions: oe
42050
- }, r), ue && /* @__PURE__ */ P(PZ, {
42158
+ }, r), ue && /* @__PURE__ */ P(UZ, {
42051
42159
  label: S.label,
42052
- children: [/* @__PURE__ */ N(Wq, {
42160
+ children: [/* @__PURE__ */ N($q, {
42053
42161
  markup: e.rationale || "",
42054
42162
  onChange: (t) => i(r, {
42055
42163
  ...e,
@@ -42065,19 +42173,19 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42065
42173
  uploadSoundSupport: c,
42066
42174
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42067
42175
  mathMlOptions: oe
42068
- }), xe?.[e.value] && /* @__PURE__ */ N(VZ, { children: xe?.[e.value] })]
42176
+ }), xe?.[e.value] && /* @__PURE__ */ N(XZ, { children: xe?.[e.value] })]
42069
42177
  }, `rationale-${r}`)] }, `choice-${r}`)),
42070
- ye && /* @__PURE__ */ N(VZ, { children: ye }),
42071
- _e && /* @__PURE__ */ N(VZ, { children: _e }),
42072
- f.settings && /* @__PURE__ */ N(BZ, {
42178
+ ye && /* @__PURE__ */ N(XZ, { children: ye }),
42179
+ _e && /* @__PURE__ */ N(XZ, { children: _e }),
42180
+ f.settings && /* @__PURE__ */ N(YZ, {
42073
42181
  title: ke,
42074
- children: O && pe?.length >= O ? /* @__PURE__ */ N(LZ, {
42182
+ children: O && pe?.length >= O ? /* @__PURE__ */ N(KZ, {
42075
42183
  variant: "contained",
42076
42184
  color: "primary",
42077
42185
  onClick: o,
42078
42186
  disabled: !0,
42079
42187
  children: f.label
42080
- }) : /* @__PURE__ */ N(IZ, {
42188
+ }) : /* @__PURE__ */ N(GZ, {
42081
42189
  variant: "contained",
42082
42190
  color: "primary",
42083
42191
  onClick: o,
@@ -42086,7 +42194,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42086
42194
  })
42087
42195
  ]
42088
42196
  });
42089
- }, UZ = class extends mt.Component {
42197
+ }, QZ = class extends mt.Component {
42090
42198
  static propTypes = {
42091
42199
  model: H.default.object.isRequired,
42092
42200
  configuration: H.default.object.isRequired,
@@ -42109,9 +42217,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42109
42217
  };
42110
42218
  onAddChoice = () => {
42111
42219
  let { model: e, configuration: t, onModelChanged: n } = this.props, { maxAnswerChoices: r } = t || {}, { limitChoicesNumber: i } = e || {};
42112
- i && (r = MZ), !(r && e.choices.length >= r) && (e.choices.push({
42220
+ i && (r = VZ), !(r && e.choices.length >= r) && (e.choices.push({
42113
42221
  label: "",
42114
- value: NX.firstAvailableIndex(e.choices.map((e) => e.value), 0),
42222
+ value: HX.firstAvailableIndex(e.choices.map((e) => e.value), 0),
42115
42223
  feedback: { type: "none" }
42116
42224
  }), n({ choices: e.choices }));
42117
42225
  };
@@ -42145,12 +42253,12 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42145
42253
  };
42146
42254
  render() {
42147
42255
  let { configuration: { minAnswerChoices: e } = {} } = this.props, { showWarning: t } = this.state;
42148
- return /* @__PURE__ */ P(mt.Fragment, { children: [/* @__PURE__ */ N(bJ, {
42256
+ return /* @__PURE__ */ P(mt.Fragment, { children: [/* @__PURE__ */ N(kJ, {
42149
42257
  open: t,
42150
42258
  title: "Warning",
42151
42259
  text: `There can't be less than ${e || 0} choices.`,
42152
42260
  onConfirm: () => this.setState({ showWarning: !1 })
42153
- }), /* @__PURE__ */ N(HZ, {
42261
+ }), /* @__PURE__ */ N(ZZ, {
42154
42262
  ...this.props,
42155
42263
  onChangeModel: this.onModelChanged,
42156
42264
  onRemoveChoice: this.onRemoveChoice,
@@ -42160,7 +42268,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42160
42268
  onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
42161
42269
  })] });
42162
42270
  }
42163
- }, WZ = {
42271
+ }, $Z = {
42164
42272
  model: {
42165
42273
  choiceMode: "checkbox",
42166
42274
  choicePrefix: "letters",
@@ -42307,7 +42415,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42307
42415
  options: []
42308
42416
  }
42309
42417
  }
42310
- }, GZ = (0, Pt.default)("multiple-choice:configure"), KZ = (e, t = 0) => {
42418
+ }, eQ = (0, Pt.default)("multiple-choice:configure"), tQ = (e, t = 0) => {
42311
42419
  if (!e || e.length === 0) {
42312
42420
  let e = [];
42313
42421
  for (let n = 0; n < t; n++) e.push({
@@ -42321,35 +42429,35 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42321
42429
  return e;
42322
42430
  }
42323
42431
  return e;
42324
- }, qZ = (e, t) => {
42325
- let n = rt(e, WZ.configuration);
42432
+ }, nQ = (e, t) => {
42433
+ let n = rt(e, $Z.configuration);
42326
42434
  return {
42327
42435
  configuration: n,
42328
42436
  model: {
42329
42437
  ...t,
42330
- choices: KZ(t && t.choices || [], n && n.answerChoiceCount)
42438
+ choices: tQ(t && t.choices || [], n && n.answerChoiceCount)
42331
42439
  }
42332
42440
  };
42333
- }, JZ = class e extends HTMLElement {
42441
+ }, rQ = class e extends HTMLElement {
42334
42442
  static createDefaultModel = (e = {}) => {
42335
- let t = NX.normalizeChoices({
42336
- ...WZ.model,
42443
+ let t = HX.normalizeChoices({
42444
+ ...$Z.model,
42337
42445
  ...e,
42338
- choices: KZ(e && e.choices || [])
42446
+ choices: tQ(e && e.choices || [])
42339
42447
  });
42340
- return t.choicesLayout = e.choicesLayout || e.verticalMode === !1 && "horizontal" || WZ.model.choicesLayout, t;
42448
+ return t.choicesLayout = e.choicesLayout || e.verticalMode === !1 && "horizontal" || $Z.model.choicesLayout, t;
42341
42449
  };
42342
42450
  constructor() {
42343
- super(), this._root = null, this._reactContainer = null, this._model = e.createDefaultModel(), this._configuration = WZ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42451
+ super(), this._root = null, this._reactContainer = null, this._model = e.createDefaultModel(), this._configuration = $Z.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42344
42452
  }
42345
42453
  set model(t) {
42346
42454
  this._model = e.createDefaultModel(t), this._render();
42347
42455
  }
42348
42456
  set configuration(e) {
42349
- let t = qZ(e, this._model);
42457
+ let t = nQ(e, this._model);
42350
42458
  this.onModelChanged(t.model);
42351
42459
  let n = {
42352
- ...WZ.configuration,
42460
+ ...$Z.configuration,
42353
42461
  ...t.configuration
42354
42462
  };
42355
42463
  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 +42479,7 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42371
42479
  }, this._render(), this.dispatchModelUpdated(t);
42372
42480
  }
42373
42481
  onConfigurationChanged(e) {
42374
- this._configuration = qZ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42482
+ this._configuration = nQ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42375
42483
  }
42376
42484
  insertImage(e) {
42377
42485
  this.dispatchEvent(new Lt(e));
@@ -42386,9 +42494,9 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42386
42494
  this.dispatchEvent(new Rt(e, t));
42387
42495
  }
42388
42496
  _render() {
42389
- GZ("_render - Starting render"), GZ("_render - Model:", this._model ? "present" : "missing"), GZ("_render - Configuration:", this._configuration ? "present" : "missing"), GZ("_render - Root exists:", !!this._root);
42497
+ eQ("_render - Starting render"), eQ("_render - Model:", this._model ? "present" : "missing"), eQ("_render - Configuration:", this._configuration ? "present" : "missing"), eQ("_render - Root exists:", !!this._root);
42390
42498
  try {
42391
- let e = mt.createElement(UZ, {
42499
+ let e = mt.createElement(QZ, {
42392
42500
  model: this._model,
42393
42501
  configuration: this._configuration,
42394
42502
  onModelChanged: this.onModelChanged,
@@ -42403,19 +42511,19 @@ var SZ = xZ(pe, "InputContainer") || xZ(TZ.InputContainer, "InputContainer"), CZ
42403
42511
  delete: this.onDeleteSound.bind(this)
42404
42512
  }
42405
42513
  });
42406
- this._root || (GZ("_render - Creating React container"), this._reactContainer = document.createElement("div"), this._reactContainer.className = "pie-configure-wrapper", this.appendChild(this._reactContainer), GZ("_render - Creating new React root"), this._root = Nt(this._reactContainer), GZ("_render - React root created successfully")), GZ("_render - Calling root.render()"), this._root.render(e), GZ("_render - Render completed successfully");
42514
+ this._root || (eQ("_render - Creating React container"), this._reactContainer = document.createElement("div"), this._reactContainer.className = "pie-configure-wrapper", this.appendChild(this._reactContainer), eQ("_render - Creating new React root"), this._root = Nt(this._reactContainer), eQ("_render - React root created successfully")), eQ("_render - Calling root.render()"), this._root.render(e), eQ("_render - Render completed successfully");
42407
42515
  } catch (e) {
42408
42516
  throw console.error("❌ [multiple-choice-configure] Render error:", e), console.error("Error stack:", e.stack), e;
42409
42517
  }
42410
42518
  }
42411
42519
  connectedCallback() {
42412
- GZ("connectedCallback - Component connected to DOM"), GZ("connectedCallback - Model:", this._model ? "present" : "missing"), GZ("connectedCallback - Configuration:", this._configuration ? "present" : "missing"), this._render();
42520
+ eQ("connectedCallback - Component connected to DOM"), eQ("connectedCallback - Model:", this._model ? "present" : "missing"), eQ("connectedCallback - Configuration:", this._configuration ? "present" : "missing"), this._render();
42413
42521
  }
42414
42522
  disconnectedCallback() {
42415
- GZ("disconnectedCallback - Component disconnected from DOM"), this._root &&= (GZ("disconnectedCallback - Unmounting React root"), this._root.unmount(), null), this._reactContainer &&= null;
42523
+ eQ("disconnectedCallback - Component disconnected from DOM"), this._root &&= (eQ("disconnectedCallback - Unmounting React root"), this._root.unmount(), null), this._reactContainer &&= null;
42416
42524
  }
42417
42525
  };
42418
42526
  //#endregion
42419
- export { JZ as default };
42527
+ export { rQ as default };
42420
42528
 
42421
42529
  //# sourceMappingURL=index.js.map