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

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