@pie-element/number-line 13.1.2-next.7 → 13.1.2-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { Et as e, Fs as t, In as n, Ls as r, Rs as i, _ as a, b as o, c as s, g as c, h as l, li as u, o as d, p as f, s as p, t as m, u as h, v as g, y as _, zn as v } from "../dist-DkCincUw.js";
2
- import { $ as y, A as b, At as x, B as S, C, Ct as w, D as T, Dt as E, E as ee, Et as D, F as O, Ft as te, G as ne, H as re, I as ie, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, Nt as pe, O as me, Ot as he, P as k, Pt as ge, Q as _e, R as ve, Rt as ye, S as be, St as xe, T as Se, Tt as A, U as j, V as Ce, W as we, X as Te, Y as Ee, Z as De, _ as Oe, _t as ke, a as Ae, at as je, b as Me, bt as Ne, c as Pe, ct as Fe, d as Ie, dt as Le, et as Re, f as ze, ft as M, g as Be, gt as Ve, h as He, ht as Ue, i as We, it as Ge, j as Ke, jt as qe, k as Je, kt as Ye, l as Xe, lt as Ze, m as Qe, mt as N, n as $e, nt as et, o as tt, ot as nt, p as rt, pt as it, q as at, rt as ot, s as st, st as ct, tt as lt, u as ut, ut as dt, v as ft, vt as pt, w as mt, wt as ht, x as gt, xt as _t, y as vt, yt } from "../delivery-CO2qrOqk.js";
3
- import { t as bt } from "../impureFunctionsAny.generated-DlzbJQpQ.js";
1
+ import { Ds as e, Es as t, Et as n, Ln as r, Pn as i, _ as a, b as o, c as s, g as c, h as l, ni as u, o as d, p as f, s as p, t as m, u as h, v as g, ws as _, y as v } from "../dist-clbS3pcd.js";
2
+ import { $ as y, A as b, At as x, B as S, C, Ct as w, D as T, Dt as E, E as ee, Et as D, F as O, Ft as te, G as ne, H as re, I as ie, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, Nt as pe, O as me, Ot as he, P as k, Pt as ge, Q as _e, R as ve, Rt as ye, S as be, St as xe, T as Se, Tt as A, U as j, V as Ce, W as we, X as Te, Y as Ee, Z as De, _ as Oe, _t as ke, a as Ae, at as je, b as Me, bt as Ne, c as Pe, ct as Fe, d as Ie, dt as Le, et as Re, f as ze, ft as M, g as Be, gt as Ve, h as He, ht as Ue, i as We, it as Ge, j as Ke, jt as qe, k as Je, kt as Ye, l as Xe, lt as Ze, m as Qe, mt as N, n as $e, nt as et, o as tt, ot as nt, p as rt, pt as it, q as at, rt as ot, s as st, st as ct, tt as lt, u as ut, ut as dt, v as ft, vt as pt, w as mt, wt as ht, x as gt, xt as _t, y as vt, yt } from "../delivery-CZfH4Rjb.js";
3
+ import { t as bt } from "../impureFunctionsAny.generated-DOBSXSdK.js";
4
4
  import * as P from "react";
5
5
  import xt, { Component as St, createContext as Ct, createElement as wt, createRef as Tt, forwardRef as Et, memo as Dt, useCallback as Ot, useContext as kt, useDebugValue as At, useEffect as jt, useLayoutEffect as Mt, useMemo as Nt, useRef as Pt, useState as Ft, version as It } from "react";
6
6
  import { Fragment as Lt, jsx as F, jsxs as I } from "react/jsx-runtime";
@@ -6644,7 +6644,7 @@ var Lc = {
6644
6644
  })
6645
6645
  ]
6646
6646
  });
6647
- }), L = /* @__PURE__ */ i(pe(), 1), Vc = N(Ca)(() => ({ fontSize: "max(1.25rem, 18px)" })), Hc = N(ba)(() => ({ fontSize: "max(1rem, 14px)" })), Uc = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ I(oa, {
6647
+ }), L = /* @__PURE__ */ e(pe(), 1), Vc = N(Ca)(() => ({ fontSize: "max(1.25rem, 18px)" })), Hc = N(ba)(() => ({ fontSize: "max(1rem, 14px)" })), Uc = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ I(oa, {
6648
6648
  open: i,
6649
6649
  disableAutoFocus: s,
6650
6650
  disableEnforceFocus: c,
@@ -6685,7 +6685,7 @@ Uc.defaultProps = {
6685
6685
  };
6686
6686
  //#endregion
6687
6687
  //#region ../../lib-react/config-ui/dist/radio-with-label.js
6688
- var Wc = /* @__PURE__ */ i(be(), 1), Gc = N(Pa)(() => ({ "& .MuiFormControlLabel-label": {
6688
+ var Wc = /* @__PURE__ */ e(be(), 1), Gc = N(Pa)(() => ({ "& .MuiFormControlLabel-label": {
6689
6689
  left: "-5px",
6690
6690
  position: "relative"
6691
6691
  } })), Kc = N(Ls)(() => ({ color: `${k.tertiary()} !important` })), qc = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(Gc, {
@@ -24003,12 +24003,12 @@ function yk(e) {
24003
24003
  var bk = (e, t) => {
24004
24004
  let n = !!t;
24005
24005
  e._toolbarOpened !== n && (e._toolbarOpened = n, e?.view && e?.state?.tr && e.view.dispatch(e.state.tr.setMeta("toolbarOpenedChanged", !0)));
24006
- }, xk = /* @__PURE__ */ t(((e) => {
24007
- var t = r("react");
24008
- function n(e, t) {
24006
+ }, xk = /* @__PURE__ */ _(((e) => {
24007
+ var n = t("react");
24008
+ function r(e, t) {
24009
24009
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
24010
24010
  }
24011
- var i = typeof Object.is == "function" ? Object.is : n, a = t.useState, o = t.useEffect, s = t.useLayoutEffect, c = t.useDebugValue;
24011
+ var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
24012
24012
  function l(e, t) {
24013
24013
  var n = t(), r = a({ inst: {
24014
24014
  value: n,
@@ -24040,8 +24040,8 @@ var bk = (e, t) => {
24040
24040
  return t();
24041
24041
  }
24042
24042
  var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
24043
- e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? f : t.useSyncExternalStore;
24044
- })), Sk = /* @__PURE__ */ t(((e, t) => {
24043
+ e.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
24044
+ })), Sk = /* @__PURE__ */ _(((e, t) => {
24045
24045
  t.exports = xk();
24046
24046
  })), Ck = Sk(), { getOwnPropertyNames: wk, getOwnPropertySymbols: Tk } = Object, { hasOwnProperty: Ek } = Object.prototype;
24047
24047
  function Dk(e, t) {
@@ -24307,12 +24307,12 @@ function bA(e = {}) {
24307
24307
  }
24308
24308
  //#endregion
24309
24309
  //#region ../../../node_modules/.bun/use-sync-external-store@1.6.0+f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
24310
- var xA = /* @__PURE__ */ t(((e) => {
24311
- var t = r("react"), n = Sk();
24310
+ var xA = /* @__PURE__ */ _(((e) => {
24311
+ var n = t("react"), r = Sk();
24312
24312
  function i(e, t) {
24313
24313
  return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
24314
24314
  }
24315
- var a = typeof Object.is == "function" ? Object.is : i, o = n.useSyncExternalStore, s = t.useRef, c = t.useEffect, l = t.useMemo, u = t.useDebugValue;
24315
+ var a = typeof Object.is == "function" ? Object.is : i, o = r.useSyncExternalStore, s = n.useRef, c = n.useEffect, l = n.useMemo, u = n.useDebugValue;
24316
24316
  e.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
24317
24317
  var d = s(null);
24318
24318
  if (d.current === null) {
@@ -24352,7 +24352,7 @@ var xA = /* @__PURE__ */ t(((e) => {
24352
24352
  f.hasValue = !0, f.value = p;
24353
24353
  }, [p]), u(p), p;
24354
24354
  };
24355
- })), SA = (/* @__PURE__ */ t(((e, t) => {
24355
+ })), SA = (/* @__PURE__ */ _(((e, t) => {
24356
24356
  t.exports = xA();
24357
24357
  })))(), CA = (...e) => (t) => {
24358
24358
  e.forEach((e) => {
@@ -33163,9 +33163,9 @@ function iz({ editor: e, opts: t, onClose: n }) {
33163
33163
  hideDoneButtonBackground: !0,
33164
33164
  layoutForKeyPad: u,
33165
33165
  additionalKeys: l.characters.reduce((e, t) => (e = [...e, ...t.map((e) => ({
33166
- name: _(e, "name") || e,
33167
- write: _(e, "write") || e,
33168
- label: _(e, "label") || e,
33166
+ name: v(e, "name") || e,
33167
+ write: v(e, "write") || e,
33168
+ label: v(e, "label") || e,
33169
33169
  category: "character",
33170
33170
  extraClass: "character",
33171
33171
  extraProps: {
@@ -39747,8 +39747,8 @@ $x.create({
39747
39747
  })) ?? null };
39748
39748
  }
39749
39749
  });
39750
- var Vq = "placeholder", Hq = new sf("tiptap__placeholder"), Uq = 200;
39751
- function Wq(e) {
39750
+ var Vq = "placeholder", Hq = new sf("tiptap__placeholder");
39751
+ function Uq(e) {
39752
39752
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
39753
39753
  return o && u.push(l), nv.node(i, i + a.nodeSize, {
39754
39754
  class: u.join(" "),
@@ -39760,156 +39760,198 @@ function Wq(e) {
39760
39760
  }) : n
39761
39761
  });
39762
39762
  }
39763
- function Gq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
39763
+ function Wq(e, t) {
39764
+ return typeof e == "function" ? e(t) : e;
39765
+ }
39766
+ function Gq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
39767
+ let { anchor: s } = i, c = [], l = e.isEmpty;
39768
+ return r.nodesBetween(a, o, (r, i) => {
39769
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && sx(r);
39770
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(Uq({
39771
+ editor: e,
39772
+ isEmptyDoc: l,
39773
+ dataAttribute: n,
39774
+ hasAnchor: a,
39775
+ placeholder: t.placeholder,
39776
+ classes: {
39777
+ emptyEditor: t.emptyEditorClass,
39778
+ emptyNode: Wq(t.emptyNodeClass, {
39779
+ editor: e,
39780
+ node: r,
39781
+ pos: i,
39782
+ hasAnchor: a
39783
+ })
39784
+ },
39785
+ node: r,
39786
+ pos: i
39787
+ })), t.includeChildren;
39788
+ }), c;
39789
+ }
39790
+ function Kq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
39764
39791
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
39765
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
39766
- emptyEditor: t.emptyEditorClass,
39767
- emptyNode: t.emptyNodeClass
39768
- };
39792
+ let { anchor: a } = i, o = [], s = e.isEmpty;
39769
39793
  if (t.showOnlyCurrent && !t.includeChildren) {
39770
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
39771
- if (l && l.type.isTextblock && sx(l)) {
39772
- let r = a >= u && a <= u + l.nodeSize;
39773
- o.push(Wq({
39794
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
39795
+ if (c && c.type.isTextblock && sx(c)) {
39796
+ let r = a >= l && a <= l + c.nodeSize;
39797
+ o.push(Uq({
39774
39798
  editor: e,
39775
39799
  isEmptyDoc: s,
39776
39800
  dataAttribute: n,
39777
39801
  hasAnchor: r,
39778
39802
  placeholder: t.placeholder,
39779
- classes: c,
39780
- node: l,
39781
- pos: u
39803
+ classes: {
39804
+ emptyEditor: t.emptyEditorClass,
39805
+ emptyNode: Wq(t.emptyNodeClass, {
39806
+ editor: e,
39807
+ node: c,
39808
+ pos: l,
39809
+ hasAnchor: r
39810
+ })
39811
+ },
39812
+ node: c,
39813
+ pos: l
39782
39814
  }));
39783
39815
  }
39784
- } else {
39785
- let i = Hq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
39786
- r.nodesBetween(l, u, (r, i) => {
39787
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && sx(r);
39788
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(Wq({
39789
- editor: e,
39790
- isEmptyDoc: s,
39791
- dataAttribute: n,
39792
- hasAnchor: l,
39793
- placeholder: t.placeholder,
39794
- classes: c,
39795
- node: r,
39796
- pos: i
39797
- })), t.includeChildren;
39798
- });
39799
- }
39816
+ } else o.push(...Gq({
39817
+ editor: e,
39818
+ options: t,
39819
+ dataAttribute: n,
39820
+ doc: r,
39821
+ selection: i,
39822
+ from: 0,
39823
+ to: r.content.size
39824
+ }));
39800
39825
  return av.create(r, o);
39801
39826
  }
39802
- function Kq(e) {
39803
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39827
+ function qq(e, t) {
39828
+ let n = e.resolve(t);
39829
+ if (n.depth === 0) {
39830
+ let e = n.nodeAfter ?? n.nodeBefore;
39831
+ if (!e) return {
39832
+ from: t,
39833
+ to: t
39834
+ };
39835
+ let r = n.nodeAfter ? t : t - e.nodeSize;
39836
+ return {
39837
+ from: r,
39838
+ to: r + e.nodeSize
39839
+ };
39840
+ }
39841
+ let r = n.before(1);
39842
+ return {
39843
+ from: r,
39844
+ to: r + n.node(1).nodeSize
39845
+ };
39804
39846
  }
39805
- function qq(e) {
39806
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
39807
- return /auto|scroll|overlay/.test(n);
39847
+ function Jq(e, t) {
39848
+ return {
39849
+ from: Math.max(0, t.from - 1),
39850
+ to: Math.min(e.content.size, t.to - 1)
39851
+ };
39808
39852
  }
39809
- function Jq(e) {
39810
- let t = e;
39811
- for (; t;) {
39812
- if (qq(t)) return t;
39813
- let e = t.parentElement;
39814
- if (!e) {
39815
- let e = t.getRootNode();
39816
- if (e instanceof ShadowRoot) {
39817
- t = e.host;
39818
- continue;
39819
- }
39820
- return window;
39821
- }
39822
- t = e;
39853
+ function Yq(e, t, n) {
39854
+ let r = [];
39855
+ return e.forEach((e, i) => {
39856
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
39857
+ s < n && c > t && r.push({
39858
+ from: a,
39859
+ to: o
39860
+ });
39861
+ }), r;
39862
+ }
39863
+ function Xq(e) {
39864
+ if (e.length === 0) return [];
39865
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
39866
+ for (let e = 1; e < t.length; e += 1) {
39867
+ let r = n[n.length - 1], i = t[e];
39868
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
39823
39869
  }
39824
- return window;
39870
+ return n;
39825
39871
  }
39826
- function Yq(e) {
39827
- return e === window ? {
39828
- top: 0,
39829
- bottom: window.innerHeight
39830
- } : e.getBoundingClientRect();
39872
+ function Zq(e, t) {
39873
+ let n = Yq(e, t.from, t.to);
39874
+ return n.push(Jq(e, qq(e, t.from))), t.to > t.from ? n.push(Jq(e, qq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(Jq(e, qq(e, Math.min(t.from + 1, e.content.size)))), n;
39831
39875
  }
39832
- function Xq({ doc: e, view: t, scrollContainer: n }) {
39833
- let r = t.dom.getBoundingClientRect(), i = n ? Yq(n) : {
39834
- top: 0,
39835
- bottom: window.innerHeight
39836
- }, a = Math.max(r.top, i.top) - Uq, o = Math.min(r.bottom, i.bottom) + Uq;
39837
- if (a >= o) return {
39838
- top: 0,
39839
- bottom: e.content.size
39840
- };
39841
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
39842
- left: s,
39843
- top: a + 2
39844
- }), l = t.posAtCoords({
39845
- left: s,
39846
- top: o - 2
39847
- });
39848
- return {
39849
- top: c ? c.pos : 0,
39850
- bottom: l ? l.pos : e.content.size
39851
- };
39876
+ function Qq(e, t, n) {
39877
+ let r = [];
39878
+ if (e.docChanged) {
39879
+ let t = Xb(e);
39880
+ for (let e of t) r.push(...Zq(n.doc, e.newRange));
39881
+ }
39882
+ return e.selectionSet && (r.push(Jq(n.doc, qq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(Jq(n.doc, qq(n.doc, n.selection.anchor)))), Xq(r);
39852
39883
  }
39853
- var Zq = {
39854
- init() {
39855
- return {
39856
- topPos: null,
39857
- bottomPos: null
39858
- };
39859
- },
39860
- apply(e, t) {
39861
- let n = e.getMeta(Hq);
39862
- return n?.positions ? {
39863
- topPos: n.positions.top,
39864
- bottomPos: n.positions.bottom
39865
- } : e.docChanged ? {
39866
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
39867
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
39868
- } : t;
39884
+ function $q(e, t, n) {
39885
+ let r = Math.max(0, Math.min(e, n.content.size));
39886
+ return {
39887
+ from: r,
39888
+ to: Math.max(r, Math.min(t, n.content.size))
39889
+ };
39890
+ }
39891
+ function eJ({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
39892
+ let s = e;
39893
+ for (let e of t) {
39894
+ let { from: t, to: c } = $q(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
39895
+ l.length && (s = s.remove(l));
39896
+ let u = Gq({
39897
+ editor: n,
39898
+ options: r,
39899
+ dataAttribute: i,
39900
+ doc: a,
39901
+ selection: o,
39902
+ from: t,
39903
+ to: c
39904
+ });
39905
+ u.length && (s = s.add(a, u));
39869
39906
  }
39870
- };
39871
- function Qq(e) {
39872
- let t = Jq(e.dom), n = () => {
39873
- let n = Xq({
39874
- view: e,
39875
- doc: e.state.doc,
39876
- scrollContainer: t
39877
- }), r = Hq.getState(e.state);
39878
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
39879
- let i = e.state.tr.setMeta(Hq, { positions: n });
39880
- e.dispatch(i);
39881
- }, r = null, i = 0, a = () => {
39882
- r === null && (r = requestAnimationFrame(() => {
39883
- r = null;
39884
- let e = performance.now();
39885
- e - i >= 150 ? (i = e, n()) : a();
39886
- }));
39887
- };
39888
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
39889
- update(t, n) {
39890
- e.state.doc.content.size !== n.doc.content.size && a();
39907
+ return s;
39908
+ }
39909
+ function tJ({ editor: e, options: t, dataAttribute: n }) {
39910
+ return {
39911
+ init(r, i) {
39912
+ return Kq({
39913
+ editor: e,
39914
+ options: t,
39915
+ dataAttribute: n,
39916
+ doc: i.doc,
39917
+ selection: i.selection
39918
+ }) ?? av.empty;
39891
39919
  },
39892
- destroy: () => {
39893
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39920
+ apply(r, i, a, o) {
39921
+ return !r.docChanged && !r.selectionSet ? i : eJ({
39922
+ decorations: i.map(r.mapping, r.doc),
39923
+ ranges: Qq(r, a, o),
39924
+ editor: e,
39925
+ options: t,
39926
+ dataAttribute: n,
39927
+ doc: o.doc,
39928
+ selection: o.selection
39929
+ });
39894
39930
  }
39895
39931
  };
39896
39932
  }
39897
- function $q({ editor: e, options: t }) {
39898
- let n = t.dataAttribute ? `data-${Kq(t.dataAttribute)}` : `data-${Vq}`;
39933
+ function nJ(e) {
39934
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39935
+ }
39936
+ function rJ({ editor: e, options: t }) {
39937
+ let n = t.dataAttribute ? `data-${nJ(t.dataAttribute)}` : `data-${Vq}`, r = t.showOnlyCurrent && !t.includeChildren;
39899
39938
  return new rf({
39900
39939
  key: Hq,
39901
- state: Zq,
39902
- view: Qq,
39903
- props: { decorations: ({ doc: r, selection: i }) => Gq({
39940
+ ...r ? {} : { state: tJ({
39941
+ editor: e,
39942
+ options: t,
39943
+ dataAttribute: n
39944
+ }) },
39945
+ props: { decorations: r ? ({ doc: r, selection: i }) => Kq({
39904
39946
  editor: e,
39905
39947
  options: t,
39906
39948
  dataAttribute: n,
39907
39949
  doc: r,
39908
39950
  selection: i
39909
- }) }
39951
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? av.empty : Hq.getState(n) ?? av.empty }
39910
39952
  });
39911
39953
  }
39912
- var eJ = $x.create({
39954
+ var iJ = $x.create({
39913
39955
  name: "placeholder",
39914
39956
  addOptions() {
39915
39957
  return {
@@ -39923,12 +39965,25 @@ var eJ = $x.create({
39923
39965
  };
39924
39966
  },
39925
39967
  addProseMirrorPlugins() {
39926
- return [$q({
39968
+ return [rJ({
39927
39969
  editor: this.editor,
39928
39970
  options: this.options
39929
39971
  })];
39930
39972
  }
39931
39973
  });
39974
+ function aJ(e, t) {
39975
+ return !e.selection.empty && !cx(e.selection) && t.isEditable;
39976
+ }
39977
+ function oJ(e, t) {
39978
+ return aJ(e, t) && !t.isFocused && !t.view.dragging;
39979
+ }
39980
+ function sJ() {
39981
+ var e;
39982
+ (e = window.getSelection()) == null || e.removeAllRanges();
39983
+ }
39984
+ function cJ(e) {
39985
+ e.focus();
39986
+ }
39932
39987
  $x.create({
39933
39988
  name: "selection",
39934
39989
  addOptions() {
@@ -39938,13 +39993,25 @@ $x.create({
39938
39993
  let { editor: e, options: t } = this;
39939
39994
  return [new rf({
39940
39995
  key: new sf("selection"),
39941
- props: { decorations(n) {
39942
- return n.selection.empty || e.isFocused || !e.isEditable || cx(n.selection) || e.view.dragging ? null : av.create(n.doc, [nv.inline(n.selection.from, n.selection.to, { class: t.className })]);
39943
- } }
39996
+ props: {
39997
+ decorations(n) {
39998
+ return oJ(n, e) ? av.create(n.doc, [nv.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39999
+ },
40000
+ handleDOMEvents: {
40001
+ blur(t) {
40002
+ return aJ(t.state, e) && sJ(), !1;
40003
+ },
40004
+ focus(t) {
40005
+ return aJ(t.state, e) && requestAnimationFrame(() => {
40006
+ !e.isDestroyed && t.hasFocus() && cJ(t);
40007
+ }), !1;
40008
+ }
40009
+ }
40010
+ }
39944
40011
  })];
39945
40012
  }
39946
40013
  });
39947
- function tJ({ types: e, node: t }) {
40014
+ function lJ({ types: e, node: t }) {
39948
40015
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39949
40016
  }
39950
40017
  $x.create({
@@ -39966,7 +40033,7 @@ $x.create({
39966
40033
  state: {
39967
40034
  init: (e, t) => {
39968
40035
  let r = t.tr.doc.lastChild;
39969
- return !tJ({
40036
+ return !lJ({
39970
40037
  node: r,
39971
40038
  types: n
39972
40039
  });
@@ -39974,7 +40041,7 @@ $x.create({
39974
40041
  apply: (e, t) => {
39975
40042
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39976
40043
  let r = e.doc.lastChild;
39977
- return !tJ({
40044
+ return !lJ({
39978
40045
  node: r,
39979
40046
  types: n
39980
40047
  });
@@ -40009,7 +40076,7 @@ $x.create({
40009
40076
  };
40010
40077
  }
40011
40078
  });
40012
- var nJ = Gx.create({
40079
+ var uJ = Gx.create({
40013
40080
  name: "superscript",
40014
40081
  addOptions() {
40015
40082
  return { HTMLAttributes: {} };
@@ -40039,7 +40106,7 @@ var nJ = Gx.create({
40039
40106
  addKeyboardShortcuts() {
40040
40107
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
40041
40108
  }
40042
- }), rJ = Gx.create({
40109
+ }), dJ = Gx.create({
40043
40110
  name: "subscript",
40044
40111
  addOptions() {
40045
40112
  return { HTMLAttributes: {} };
@@ -40069,7 +40136,7 @@ var nJ = Gx.create({
40069
40136
  addKeyboardShortcuts() {
40070
40137
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
40071
40138
  }
40072
- }), iJ = $x.create({
40139
+ }), fJ = $x.create({
40073
40140
  name: "textAlign",
40074
40141
  addOptions() {
40075
40142
  return {
@@ -40111,7 +40178,7 @@ var nJ = Gx.create({
40111
40178
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
40112
40179
  };
40113
40180
  }
40114
- }), aJ = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, oJ = kS.create({
40181
+ }), pJ = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mJ = kS.create({
40115
40182
  name: "image",
40116
40183
  addOptions() {
40117
40184
  return {
@@ -40204,7 +40271,7 @@ var nJ = Gx.create({
40204
40271
  },
40205
40272
  addInputRules() {
40206
40273
  return [hS({
40207
- find: aJ,
40274
+ find: pJ,
40208
40275
  type: this.type,
40209
40276
  getAttributes: (e) => {
40210
40277
  let [, , t, n, r] = e;
@@ -40216,17 +40283,17 @@ var nJ = Gx.create({
40216
40283
  }
40217
40284
  })];
40218
40285
  }
40219
- }), sJ = eJ, cJ = {
40286
+ }), hJ = iJ, gJ = {
40220
40287
  position: "bottom",
40221
40288
  alignment: "left",
40222
40289
  alwaysVisible: !1,
40223
40290
  showDone: !0,
40224
40291
  doneOn: "blur"
40225
- }, lJ = {
40292
+ }, _J = {
40226
40293
  options: {},
40227
40294
  respAreaToolbar: () => {},
40228
40295
  onHandleAreaChange: () => {}
40229
- }, uJ = [
40296
+ }, vJ = [
40230
40297
  "bold",
40231
40298
  "italic",
40232
40299
  "underline",
@@ -40248,7 +40315,7 @@ var nJ = Gx.create({
40248
40315
  "h3",
40249
40316
  "undo",
40250
40317
  "redo"
40251
- ], dJ = {
40318
+ ], yJ = {
40252
40319
  "--white": "#fff",
40253
40320
  "--black": "#2e2b29",
40254
40321
  "--black-contrast": "#110f0e",
@@ -40267,14 +40334,18 @@ var nJ = Gx.create({
40267
40334
  "--red": "#ff5c33",
40268
40335
  "--red-light": "#ffebe5",
40269
40336
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
40270
- }, fJ = (e) => {
40337
+ }, bJ = (e) => ({
40338
+ spellcheck: e ? "true" : "false",
40339
+ autocorrect: e ? "on" : "off",
40340
+ autocapitalize: e ? "on" : "off"
40341
+ }), xJ = (e) => {
40271
40342
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Ft([]), [a, o] = Ft(!1), { toolbarOpts: s } = e, c = Ot((e) => {
40272
40343
  i((t) => {
40273
40344
  let n = t.filter((t) => t.pos !== e);
40274
40345
  return n.length === 0 && o(!1), n;
40275
40346
  });
40276
40347
  }, [i]), l = {
40277
- ...cJ,
40348
+ ...gJ,
40278
40349
  ...s
40279
40350
  }, u = Ot((t) => {
40280
40351
  let n = t.getHTML();
@@ -40285,13 +40356,13 @@ var nJ = Gx.create({
40285
40356
  e.onDone,
40286
40357
  l.doneOn
40287
40358
  ]), d = Nt(() => ({
40288
- ...lJ,
40359
+ ..._J,
40289
40360
  ...e.responseAreaProps,
40290
40361
  onInlineDropdownToolbarClose: u
40291
40362
  }), [e.responseAreaProps, u]), p = Nt(() => {
40292
40363
  let { customPlugins: t, ...n } = e.pluginProps || {};
40293
40364
  t ||= [];
40294
- let r = (e.activePlugins || uJ)?.filter((e) => {
40365
+ let r = (e.activePlugins || vJ)?.filter((e) => {
40295
40366
  let t = Xc[e] || e, r = n[t] || {};
40296
40367
  return !r || !r.disabled;
40297
40368
  });
@@ -40309,103 +40380,112 @@ var nJ = Gx.create({
40309
40380
  setKeypadInteraction: {},
40310
40381
  media: {}
40311
40382
  });
40312
- }, [e, d.type]), m = FA({
40313
- extensions: [
40314
- iJ.configure({
40315
- types: [
40316
- "heading",
40317
- "paragraph",
40318
- "div",
40319
- "headingParagraph",
40320
- "h1",
40321
- "h2",
40322
- "h3",
40323
- "h4",
40324
- "h5",
40325
- "h6",
40326
- "td",
40327
- "th"
40328
- ],
40329
- alignments: [
40330
- "left",
40331
- "right",
40332
- "center",
40333
- "justify"
40334
- ]
40335
- }),
40336
- zq,
40337
- Bq.configure({ limit: e.charactersLimit || 1e6 }),
40338
- kq.configure({ trailingNode: {
40383
+ }, [e, d.type]), m = [
40384
+ fJ.configure({
40385
+ types: [
40386
+ "heading",
40387
+ "paragraph",
40388
+ "div",
40389
+ "headingParagraph",
40390
+ "h1",
40391
+ "h2",
40392
+ "h3",
40393
+ "h4",
40394
+ "h5",
40395
+ "h6",
40396
+ "td",
40397
+ "th"
40398
+ ],
40399
+ alignments: [
40400
+ "left",
40401
+ "right",
40402
+ "center",
40403
+ "justify"
40404
+ ]
40405
+ }),
40406
+ zq,
40407
+ Bq.configure({ limit: e.charactersLimit || 1e6 }),
40408
+ kq.configure({
40409
+ trailingNode: {
40339
40410
  node: "paragraph",
40340
40411
  notAfter: ["paragraph", "div"]
40341
- } }),
40342
- NR,
40343
- sk,
40344
- PR,
40345
- ck,
40346
- lk,
40347
- sJ.configure({
40348
- placeholder: e.placeholder,
40349
- showOnlyWhenEditable: !0,
40350
- showOnlyCurrent: !1,
40351
- includeChildren: !0
40352
- }),
40353
- rk,
40354
- VO,
40355
- ok,
40356
- ak,
40357
- _I.configure(d),
40358
- vI.configure(d),
40359
- bI.configure(d),
40360
- xI.configure(d),
40361
- yI.configure(d),
40362
- iL.configure({
40363
- toolbarOpts: l,
40364
- math: e.pluginProps?.math || {}
40365
- }),
40366
- rJ,
40367
- nJ,
40368
- oJ,
40369
- TL.configure({
40370
- toolbarOpts: l,
40371
- imageHandling: {
40372
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
40373
- onDone: (t) => e.onDone?.(t.getHTML()),
40374
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
40375
- let { src: n } = t.attrs;
40376
- e.imageSupport.delete(n, (e) => {
40377
- c(t.pos);
40378
- });
40379
- }),
40380
- insertImageRequested: e.imageSupport && ((t, n, r) => {
40381
- let [o, s] = n, l = (n) => {
40382
- let r;
40383
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
40384
- };
40385
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
40386
- let n = r(l), i = f(() => {
40387
- let e = () => window.removeEventListener("focus", i);
40388
- if (!t._insertingImage) {
40389
- e();
40390
- return;
40391
- }
40392
- c(s), t._insertingImage = !1, e();
40393
- }, 500);
40394
- window.addEventListener("focus", i), e.imageSupport.add(n);
40395
- })();
40396
- }),
40397
- maxImageWidth: e.maxImageWidth,
40398
- maxImageHeight: e.maxImageHeight
40399
- },
40400
- limit: 3
40401
- }),
40402
- KL.configure({ uploadSoundSupport: e.uploadSoundSupport }),
40403
- QL.configure({ extraCSSRules: e.extraCSSRules })
40404
- ],
40412
+ },
40413
+ link: {
40414
+ autolink: !1,
40415
+ linkOnPaste: !1
40416
+ }
40417
+ }),
40418
+ NR,
40419
+ sk,
40420
+ PR,
40421
+ ck,
40422
+ lk,
40423
+ hJ.configure({
40424
+ placeholder: e.placeholder,
40425
+ showOnlyWhenEditable: !0,
40426
+ showOnlyCurrent: !1,
40427
+ includeChildren: !0
40428
+ }),
40429
+ rk,
40430
+ VO,
40431
+ ok,
40432
+ ak,
40433
+ _I.configure(d),
40434
+ vI.configure(d),
40435
+ bI.configure(d),
40436
+ xI.configure(d),
40437
+ yI.configure(d),
40438
+ iL.configure({
40439
+ toolbarOpts: l,
40440
+ math: e.pluginProps?.math || {}
40441
+ }),
40442
+ dJ,
40443
+ uJ,
40444
+ mJ,
40445
+ TL.configure({
40446
+ toolbarOpts: l,
40447
+ imageHandling: {
40448
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
40449
+ onDone: (t) => e.onDone?.(t.getHTML()),
40450
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
40451
+ let { src: n } = t.attrs;
40452
+ e.imageSupport.delete(n, (e) => {
40453
+ c(t.pos);
40454
+ });
40455
+ }),
40456
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
40457
+ let [o, s] = n, l = (n) => {
40458
+ let r;
40459
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
40460
+ };
40461
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
40462
+ let n = r(l), i = f(() => {
40463
+ let e = () => window.removeEventListener("focus", i);
40464
+ if (!t._insertingImage) {
40465
+ e();
40466
+ return;
40467
+ }
40468
+ c(s), t._insertingImage = !1, e();
40469
+ }, 500);
40470
+ window.addEventListener("focus", i), e.imageSupport.add(n);
40471
+ })();
40472
+ }),
40473
+ maxImageWidth: e.maxImageWidth,
40474
+ maxImageHeight: e.maxImageHeight
40475
+ },
40476
+ limit: 3
40477
+ }),
40478
+ KL.configure({ uploadSoundSupport: e.uploadSoundSupport }),
40479
+ QL.configure({ extraCSSRules: e.extraCSSRules })
40480
+ ], h = e.spellCheck !== !1, g = FA({
40481
+ extensions: m,
40405
40482
  immediatelyRender: !1,
40406
- editorProps: { handleKeyDown(t, n) {
40407
- return e.onKeyDown ? e.onKeyDown(n) : !1;
40408
- } },
40483
+ editorProps: {
40484
+ attributes: bJ(h),
40485
+ handleKeyDown(t, n) {
40486
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
40487
+ }
40488
+ },
40409
40489
  editable: !e.disabled,
40410
40490
  content: tl(e.markup),
40411
40491
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -40416,22 +40496,29 @@ var nJ = Gx.create({
40416
40496
  }
40417
40497
  }, [e.charactersLimit]);
40418
40498
  jt(() => {
40419
- e.editorRef && e.editorRef(m);
40420
- }, [e.editorRef, m]), jt(() => {
40421
- m?.setEditable(!e.disabled);
40422
- }, [e.disabled, m]), jt(() => {
40423
- if (!m) return;
40499
+ e.editorRef && e.editorRef(g);
40500
+ }, [e.editorRef, g]), jt(() => {
40501
+ g?.setEditable(!e.disabled);
40502
+ }, [e.disabled, g]), jt(() => {
40503
+ if (!g) return;
40504
+ let e = g.options?.editorProps, t = bJ(h);
40505
+ e?.attributes?.spellcheck !== t.spellcheck && g.setOptions({ editorProps: {
40506
+ ...e,
40507
+ attributes: t
40508
+ } });
40509
+ }, [h, g]), jt(() => {
40510
+ if (!g) return;
40424
40511
  let t = tl(e.markup);
40425
- t !== m.getHTML() && m.commands.setContent(t, { emitUpdate: !1 });
40426
- }, [e.markup, m]), jt(() => {
40427
- Object.entries(dJ).forEach(([e, t]) => {
40512
+ t !== g.getHTML() && g.commands.setContent(t, { emitUpdate: !1 });
40513
+ }, [e.markup, g]), jt(() => {
40514
+ Object.entries(yJ).forEach(([e, t]) => {
40428
40515
  document.documentElement.style.setProperty(e, t);
40429
40516
  });
40430
40517
  }, []);
40431
- let h = jA({
40432
- editor: m,
40518
+ let _ = jA({
40519
+ editor: g,
40433
40520
  selector: (e) => ({ isFocused: e.editor?.isFocused })
40434
- }), g = Nt(() => {
40521
+ }), v = Nt(() => {
40435
40522
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
40436
40523
  return {
40437
40524
  width: FR(n),
@@ -40446,20 +40533,20 @@ var nJ = Gx.create({
40446
40533
  ...e,
40447
40534
  activePlugins: p,
40448
40535
  toolbarOpts: l,
40449
- editorState: h,
40450
- editor: m,
40451
- children: m && /* @__PURE__ */ F(pJ, {
40536
+ editorState: _,
40537
+ editor: g,
40538
+ children: g && /* @__PURE__ */ F(SJ, {
40452
40539
  style: {
40453
- minHeight: g.minHeight,
40454
- height: g.height,
40455
- maxHeight: g.maxHeight
40540
+ minHeight: v.minHeight,
40541
+ height: v.height,
40542
+ maxHeight: v.maxHeight
40456
40543
  },
40457
40544
  showParagraph: t && !t.disabled,
40458
40545
  separateParagraph: n && !n.disabled,
40459
- editor: m
40546
+ editor: g
40460
40547
  })
40461
40548
  });
40462
- }, pJ = N(OA, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
40549
+ }, SJ = N(OA, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
40463
40550
  display: "flex",
40464
40551
  outline: "none !important",
40465
40552
  "& .ProseMirror": {
@@ -40487,43 +40574,43 @@ var nJ = Gx.create({
40487
40574
  } },
40488
40575
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
40489
40576
  }
40490
- })), mJ = fJ;
40577
+ })), CJ = xJ;
40491
40578
  //#endregion
40492
40579
  //#region ../../lib-react/config-ui/dist/inputs.js
40493
- function hJ(e) {
40580
+ function wJ(e) {
40494
40581
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40495
40582
  }
40496
- function gJ(e, t) {
40497
- return !e || hJ(e) ? e : hJ(e.default) ? e.default : t && hJ(e[t]) ? e[t] : t && hJ(e[t]?.default) ? e[t].default : e;
40583
+ function TJ(e, t) {
40584
+ return !e || wJ(e) ? e : wJ(e.default) ? e.default : t && wJ(e[t]) ? e[t] : t && wJ(e[t]?.default) ? e[t].default : e;
40498
40585
  }
40499
- var _J = gJ(Ie, "InputContainer") || gJ(bJ.InputContainer, "InputContainer"), vJ = tt, yJ = vJ.default, bJ = yJ && typeof yJ == "object" ? yJ : vJ, xJ = {
40586
+ var EJ = TJ(Ie, "InputContainer") || TJ(kJ.InputContainer, "InputContainer"), DJ = tt, OJ = DJ.default, kJ = OJ && typeof OJ == "object" ? OJ : DJ, AJ = {
40500
40587
  className: L.default.string,
40501
40588
  label: L.default.string,
40502
40589
  checked: L.default.bool,
40503
40590
  onChange: L.default.func,
40504
40591
  disabled: L.default.bool,
40505
40592
  error: L.default.string
40506
- }, SJ = N(oc)(() => ({
40593
+ }, jJ = N(oc)(() => ({
40507
40594
  justifyContent: "inherit",
40508
40595
  transform: "translate(-20%, 20%)"
40509
- })), CJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ F(_J, {
40596
+ })), MJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ F(EJ, {
40510
40597
  className: e,
40511
40598
  label: t,
40512
- children: /* @__PURE__ */ F(SJ, {
40599
+ children: /* @__PURE__ */ F(jJ, {
40513
40600
  checked: n,
40514
40601
  onChange: r,
40515
40602
  "aria-label": t
40516
40603
  })
40517
40604
  });
40518
- CJ.propTypes = { ...xJ };
40519
- var wJ = N(Zi)(({ theme: e, error: t }) => ({
40605
+ MJ.propTypes = { ...AJ };
40606
+ var NJ = N(Zi)(({ theme: e, error: t }) => ({
40520
40607
  transform: "translate(-25%, 20%)",
40521
40608
  color: `${k.tertiary()} !important`,
40522
40609
  ...t && { color: `${e.palette.error.main} !important` }
40523
- })), TJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(_J, {
40610
+ })), PJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(EJ, {
40524
40611
  className: e,
40525
40612
  label: t,
40526
- children: /* @__PURE__ */ F(wJ, {
40613
+ children: /* @__PURE__ */ F(NJ, {
40527
40614
  disabled: i,
40528
40615
  checked: n,
40529
40616
  onChange: r,
@@ -40531,15 +40618,15 @@ var wJ = N(Zi)(({ theme: e, error: t }) => ({
40531
40618
  error: a
40532
40619
  })
40533
40620
  });
40534
- TJ.propTypes = { ...xJ };
40535
- var EJ = N(Ls)(({ theme: e, error: t }) => ({
40621
+ PJ.propTypes = { ...AJ };
40622
+ var FJ = N(Ls)(({ theme: e, error: t }) => ({
40536
40623
  transform: "translate(-20%, 20%)",
40537
40624
  color: `${k.tertiary()} !important`,
40538
40625
  ...t && { color: `${e.palette.error.main} !important` }
40539
- })), DJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(_J, {
40626
+ })), IJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(EJ, {
40540
40627
  className: e,
40541
40628
  label: t,
40542
- children: /* @__PURE__ */ F(EJ, {
40629
+ children: /* @__PURE__ */ F(FJ, {
40543
40630
  disabled: i,
40544
40631
  checked: n,
40545
40632
  onChange: r,
@@ -40547,10 +40634,10 @@ var EJ = N(Ls)(({ theme: e, error: t }) => ({
40547
40634
  error: a
40548
40635
  })
40549
40636
  });
40550
- DJ.propTypes = { ...xJ };
40637
+ IJ.propTypes = { ...AJ };
40551
40638
  //#endregion
40552
40639
  //#region ../../lib-react/config-ui/dist/tabs/index.js
40553
- var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40640
+ var LJ = N(dc)(() => ({})), RJ = class extends xt.Component {
40554
40641
  static propTypes = {
40555
40642
  className: L.default.string,
40556
40643
  contentClassName: L.default.string,
@@ -40571,7 +40658,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40571
40658
  indicatorColor: "primary",
40572
40659
  value: e,
40573
40660
  onChange: this.handleChange,
40574
- children: xt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(OJ, { label: e.props.title }, t) : null)
40661
+ children: xt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(LJ, { label: e.props.title }, t) : null)
40575
40662
  }), /* @__PURE__ */ F("div", {
40576
40663
  className: r,
40577
40664
  style: i,
@@ -40579,7 +40666,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40579
40666
  })]
40580
40667
  });
40581
40668
  }
40582
- }, AJ = N(Pa)(({ theme: e, mini: t }) => ({
40669
+ }, zJ = N(Pa)(({ theme: e, mini: t }) => ({
40583
40670
  margin: 0,
40584
40671
  marginLeft: 0,
40585
40672
  padding: 0,
@@ -40593,7 +40680,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40593
40680
  fontSize: e.typography.fontSize - 3
40594
40681
  }
40595
40682
  }
40596
- })), jJ = N(Zi)(({ theme: e, mini: t, error: n }) => ({
40683
+ })), BJ = N(Zi)(({ theme: e, mini: t, error: n }) => ({
40597
40684
  color: `${k.tertiary()} !important`,
40598
40685
  ...t && {
40599
40686
  margin: 0,
@@ -40602,9 +40689,9 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40602
40689
  height: e.spacing(3)
40603
40690
  },
40604
40691
  ...n && { color: `${e.palette.error.main} !important` }
40605
- })), MJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(AJ, {
40692
+ })), VJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(zJ, {
40606
40693
  mini: e,
40607
- control: /* @__PURE__ */ F(jJ, {
40694
+ control: /* @__PURE__ */ F(BJ, {
40608
40695
  checked: t,
40609
40696
  onChange: n,
40610
40697
  value: r,
@@ -40613,32 +40700,32 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40613
40700
  }),
40614
40701
  label: i
40615
40702
  });
40616
- MJ.propTypes = {
40703
+ VJ.propTypes = {
40617
40704
  mini: L.default.bool,
40618
40705
  checked: L.default.bool.isRequired,
40619
40706
  onChange: L.default.func.isRequired,
40620
40707
  value: L.default.string,
40621
40708
  label: L.default.string.isRequired,
40622
40709
  error: L.default.bool
40623
- }, MJ.defaultProps = {
40710
+ }, VJ.defaultProps = {
40624
40711
  value: "",
40625
40712
  mini: !1,
40626
40713
  error: !1
40627
40714
  };
40628
40715
  //#endregion
40629
40716
  //#region ../../lib-react/config-ui/dist/form-section.js
40630
- var NJ = N("div")(({ theme: e }) => ({
40717
+ var HJ = N("div")(({ theme: e }) => ({
40631
40718
  marginTop: e.spacing(2),
40632
40719
  marginBottom: e.spacing(2)
40633
- })), PJ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(1) })), FJ = ({ className: e, label: t, children: n, labelExtraStyle: r }) => /* @__PURE__ */ I(NJ, {
40720
+ })), UJ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(1) })), WJ = ({ className: e, label: t, children: n, labelExtraStyle: r }) => /* @__PURE__ */ I(HJ, {
40634
40721
  className: e,
40635
- children: [/* @__PURE__ */ F(PJ, {
40722
+ children: [/* @__PURE__ */ F(UJ, {
40636
40723
  variant: "subtitle1",
40637
40724
  style: r,
40638
40725
  children: t
40639
40726
  }), n]
40640
40727
  });
40641
- FJ.propTypes = {
40728
+ WJ.propTypes = {
40642
40729
  className: L.default.string,
40643
40730
  label: L.default.string,
40644
40731
  children: L.default.node,
@@ -40646,7 +40733,7 @@ FJ.propTypes = {
40646
40733
  };
40647
40734
  //#endregion
40648
40735
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40649
- var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({ theme: e }) => ({
40736
+ var GJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), KJ = N(Bc)(({ theme: e }) => ({
40650
40737
  marginRight: e.spacing(1),
40651
40738
  "& .MuiInputLabel-root": {
40652
40739
  width: "auto",
@@ -40668,11 +40755,11 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40668
40755
  minHeight: "auto",
40669
40756
  padding: "6px 0 7px"
40670
40757
  }
40671
- })), RJ = (e, t) => {
40758
+ })), qJ = (e, t) => {
40672
40759
  if (!p(e) && !p(t)) return 0;
40673
40760
  if (!p(e) && p(t)) return t;
40674
40761
  if (p(e)) return e;
40675
- }, zJ = class extends xt.Component {
40762
+ }, JJ = class extends xt.Component {
40676
40763
  static propTypes = {
40677
40764
  disabled: L.default.bool,
40678
40765
  className: L.default.string,
@@ -40698,13 +40785,13 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40698
40785
  this.setState({ value: t });
40699
40786
  }
40700
40787
  clamp(e, t = this.props.min, n = this.props.max) {
40701
- return p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) : RJ(t, n);
40788
+ return p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) : qJ(t, n);
40702
40789
  }
40703
40790
  onBlur = (e) => {
40704
40791
  let t = e.target.value, n = parseFloat(t);
40705
- IJ("rawNumber: ", n);
40792
+ GJ("rawNumber: ", n);
40706
40793
  let r = this.clamp(n);
40707
- IJ("number: ", r), r !== this.state.value && (IJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40794
+ GJ("number: ", r), r !== this.state.value && (GJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40708
40795
  this.props.onChange(e, r);
40709
40796
  }));
40710
40797
  };
@@ -40724,7 +40811,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40724
40811
  };
40725
40812
  render() {
40726
40813
  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();
40727
- return /* @__PURE__ */ F(LJ, {
40814
+ return /* @__PURE__ */ F(KJ, {
40728
40815
  variant: s ? "filled" : l || "standard",
40729
40816
  inputRef: (e) => {
40730
40817
  this.inputRef = e;
@@ -40756,12 +40843,12 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40756
40843
  margin: "normal"
40757
40844
  });
40758
40845
  }
40759
- }, BJ = (e) => typeof e == "object" && !!e && typeof e.n == "number" && typeof e.d == "number", VJ = (e) => {
40846
+ }, YJ = (e) => typeof e == "object" && !!e && typeof e.n == "number" && typeof e.d == "number", XJ = (e) => {
40760
40847
  if (typeof e == "number") return e;
40761
- if (BJ(e)) return (e.s ?? 1) * e.n / e.d;
40848
+ if (YJ(e)) return (e.s ?? 1) * e.n / e.d;
40762
40849
  let t = String(e).trim(), n = t.match(/^([+-]?\d+)\s*\/\s*([+-]?\d+)$/);
40763
40850
  return n ? Number.parseInt(n[1] ?? "0", 10) / Number.parseInt(n[2] ?? "1", 10) : Number(t);
40764
- }, HJ = Fe(/*#__PURE__*/ F("path", { d: "M19 13H5v-2h14z" }), "Remove"), UJ = Fe(/*#__PURE__*/ F("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add"), WJ = N(Bc)(() => ({
40851
+ }, ZJ = Fe(/*#__PURE__*/ F("path", { d: "M19 13H5v-2h14z" }), "Remove"), QJ = Fe(/*#__PURE__*/ F("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add"), $J = N(Bc)(() => ({
40765
40852
  "& input[type=number]": { MozAppearance: "textfield" },
40766
40853
  "& input[type=number]::-webkit-outer-spin-button": {
40767
40854
  WebkitAppearance: "none",
@@ -40771,11 +40858,11 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40771
40858
  WebkitAppearance: "none",
40772
40859
  margin: 0
40773
40860
  }
40774
- })), GJ = N(en)(() => ({ padding: "2px" })), KJ = (e, t) => {
40861
+ })), eY = N(en)(() => ({ padding: "2px" })), tY = (e, t) => {
40775
40862
  if (!p(e) && !p(t)) return 0;
40776
40863
  if (!p(e) && p(t)) return t;
40777
40864
  if (p(e)) return e;
40778
- }, qJ = class extends xt.Component {
40865
+ }, nY = class extends xt.Component {
40779
40866
  static propTypes = {
40780
40867
  className: L.default.string,
40781
40868
  customValues: L.default.array,
@@ -40819,7 +40906,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40819
40906
  }
40820
40907
  clamp(e, t = this.props.min, n = this.props.max) {
40821
40908
  let { customValues: r } = this.props;
40822
- return (r || []).length > 0 ? e : p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) : KJ(t, n);
40909
+ return (r || []).length > 0 ? e : p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) : tY(t, n);
40823
40910
  }
40824
40911
  normalizeValueAndIndex = (e, t, n, r) => {
40825
40912
  let { type: i } = this.props, a = this.clamp(t, n, r), o = (e || []).findIndex((e) => e === a);
@@ -40842,7 +40929,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40842
40929
  value: e[0],
40843
40930
  index: 0
40844
40931
  });
40845
- getClosestFractionValue = (e, t) => e.reduce((e, n, r) => Math.abs(VJ(n) - VJ(t)) < Math.abs(VJ(e.value) - VJ(t)) ? {
40932
+ getClosestFractionValue = (e, t) => e.reduce((e, n, r) => Math.abs(XJ(n) - XJ(t)) < Math.abs(XJ(e.value) - XJ(t)) ? {
40846
40933
  value: n,
40847
40934
  index: r
40848
40935
  } : e, {
@@ -40890,7 +40977,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40890
40977
  }
40891
40978
  render() {
40892
40979
  let { className: e, label: t, disabled: n, error: r, min: i, max: a, customValues: o, inputClassName: s, disableUnderline: c, helperText: l, variant: u, textAlign: d, type: f = "number" } = this.props, { value: m } = this.state, h = e, g = !1, _ = !1;
40893
- return o.length > 0 ? (g = m === o[0], _ = m === o[o.length - 1]) : p(i) && p(a) && (g = m === i, _ = m === a), /* @__PURE__ */ F(WJ, {
40980
+ return o.length > 0 ? (g = m === o[0], _ = m === o[o.length - 1]) : p(i) && p(a) && (g = m === i, _ = m === a), /* @__PURE__ */ F($J, {
40894
40981
  variant: u,
40895
40982
  inputRef: (e) => this.inputRef = e,
40896
40983
  disabled: n,
@@ -40914,20 +41001,20 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40914
41001
  disableUnderline: c,
40915
41002
  startAdornment: /* @__PURE__ */ F(to, {
40916
41003
  position: "start",
40917
- children: /* @__PURE__ */ F(GJ, {
41004
+ children: /* @__PURE__ */ F(eY, {
40918
41005
  disabled: n || g,
40919
41006
  onClick: (e) => this.changeValue(e, -1, !0),
40920
41007
  size: "large",
40921
- children: /* @__PURE__ */ F(HJ, { fontSize: "small" })
41008
+ children: /* @__PURE__ */ F(ZJ, { fontSize: "small" })
40922
41009
  })
40923
41010
  }),
40924
41011
  endAdornment: /* @__PURE__ */ F(to, {
40925
41012
  position: "end",
40926
- children: /* @__PURE__ */ F(GJ, {
41013
+ children: /* @__PURE__ */ F(eY, {
40927
41014
  disabled: n || _,
40928
41015
  onClick: (e) => this.changeValue(e, 1, !0),
40929
41016
  size: "large",
40930
- children: /* @__PURE__ */ F(UJ, { fontSize: "small" })
41017
+ children: /* @__PURE__ */ F(QJ, { fontSize: "small" })
40931
41018
  })
40932
41019
  })
40933
41020
  },
@@ -40941,19 +41028,19 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40941
41028
  };
40942
41029
  //#endregion
40943
41030
  //#region ../../lib-react/config-ui/dist/two-choice.js
40944
- function JJ(e) {
41031
+ function rY(e) {
40945
41032
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40946
41033
  }
40947
- function YJ(e, t) {
40948
- return !e || JJ(e) ? e : JJ(e.default) ? e.default : t && JJ(e[t]) ? e[t] : t && JJ(e[t]?.default) ? e[t].default : e;
41034
+ function iY(e, t) {
41035
+ return !e || rY(e) ? e : rY(e.default) ? e.default : t && rY(e[t]) ? e[t] : t && rY(e[t]?.default) ? e[t].default : e;
40949
41036
  }
40950
- var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ = tt, QJ = ZJ.default, $J = QJ && typeof QJ == "object" ? QJ : ZJ, eY = N("div")(({ theme: e, direction: t }) => ({
41037
+ var aY = iY(Ie, "InputContainer") || iY(cY.InputContainer, "InputContainer"), oY = tt, sY = oY.default, cY = sY && typeof sY == "object" ? sY : oY, lY = N("div")(({ theme: e, direction: t }) => ({
40951
41038
  display: "flex",
40952
41039
  flexWrap: "wrap",
40953
41040
  paddingLeft: 0,
40954
41041
  marginTop: e.spacing(1),
40955
41042
  ...t === "vertical" && { flexDirection: "column" }
40956
- })), tY = class extends xt.Component {
41043
+ })), uY = class extends xt.Component {
40957
41044
  static propTypes = {
40958
41045
  header: L.default.string.isRequired,
40959
41046
  className: L.default.string,
@@ -40971,10 +41058,10 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
40971
41058
  label: e,
40972
41059
  value: e
40973
41060
  } : e), s = n || qc;
40974
- return /* @__PURE__ */ F(XJ, {
41061
+ return /* @__PURE__ */ F(aY, {
40975
41062
  label: e,
40976
41063
  className: t,
40977
- children: /* @__PURE__ */ F(eY, {
41064
+ children: /* @__PURE__ */ F(lY, {
40978
41065
  direction: a,
40979
41066
  children: o.map((e, t) => /* @__PURE__ */ F(s, {
40980
41067
  value: e.value,
@@ -40985,7 +41072,7 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
40985
41072
  })
40986
41073
  });
40987
41074
  }
40988
- }, nY = L.default.shape({
41075
+ }, dY = L.default.shape({
40989
41076
  label: L.default.string,
40990
41077
  value: L.default.string
40991
41078
  });
@@ -40994,14 +41081,14 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
40994
41081
  header: L.default.string.isRequired,
40995
41082
  value: L.default.string.isRequired,
40996
41083
  onChange: L.default.func.isRequired,
40997
- one: L.default.oneOfType([nY, L.default.string]),
40998
- two: L.default.oneOfType([nY, L.default.string]),
41084
+ one: L.default.oneOfType([dY, L.default.string]),
41085
+ two: L.default.oneOfType([dY, L.default.string]),
40999
41086
  className: L.default.string,
41000
41087
  customLabel: L.default.func
41001
41088
  };
41002
41089
  render() {
41003
41090
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
41004
- return /* @__PURE__ */ F(tY, {
41091
+ return /* @__PURE__ */ F(uY, {
41005
41092
  customLabel: i,
41006
41093
  header: n,
41007
41094
  className: r,
@@ -41013,21 +41100,21 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
41013
41100
  });
41014
41101
  //#endregion
41015
41102
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
41016
- var rY = Object.defineProperty, iY = (e, t) => {
41103
+ var fY = Object.defineProperty, pY = (e, t) => {
41017
41104
  let n = {};
41018
- for (var r in e) rY(n, r, {
41105
+ for (var r in e) fY(n, r, {
41019
41106
  get: e[r],
41020
41107
  enumerable: !0
41021
41108
  });
41022
- return t || rY(n, Symbol.toStringTag, { value: "Module" }), n;
41023
- }, aY = N("div")(() => ({
41109
+ return t || fY(n, Symbol.toStringTag, { value: "Module" }), n;
41110
+ }, mY = N("div")(() => ({
41024
41111
  display: "flex",
41025
41112
  flexDirection: "column",
41026
41113
  position: "relative"
41027
- })), oY = N("div")(() => ({
41114
+ })), hY = N("div")(() => ({
41028
41115
  display: "flex",
41029
41116
  justifyContent: "space-between"
41030
- })), sY = N("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), cY = N("div")(() => ({ flex: "1" })), lY = N("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), uY = class extends xt.Component {
41117
+ })), gY = N("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), _Y = N("div")(() => ({ flex: "1" })), vY = N("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), yY = class extends xt.Component {
41031
41118
  static propTypes = {
41032
41119
  mode: L.default.oneOf(["tabbed", "inline"]),
41033
41120
  secondary: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]),
@@ -41045,7 +41132,7 @@ var rY = Object.defineProperty, iY = (e, t) => {
41045
41132
  } catch (e) {
41046
41133
  console.log(e.toString());
41047
41134
  }
41048
- return /* @__PURE__ */ I(aY, {
41135
+ return /* @__PURE__ */ I(mY, {
41049
41136
  style: {
41050
41137
  minHeight: i,
41051
41138
  minWidth: a,
@@ -41053,28 +41140,28 @@ var rY = Object.defineProperty, iY = (e, t) => {
41053
41140
  maxWidth: s
41054
41141
  },
41055
41142
  children: [
41056
- e === "inline" && /* @__PURE__ */ I(oY, { children: [/* @__PURE__ */ F(cY, {
41143
+ e === "inline" && /* @__PURE__ */ I(hY, { children: [/* @__PURE__ */ F(_Y, {
41057
41144
  className: "design-container",
41058
41145
  children: n
41059
- }), l && /* @__PURE__ */ F(lY, {
41146
+ }), l && /* @__PURE__ */ F(vY, {
41060
41147
  className: "settings-container",
41061
41148
  children: t
41062
41149
  })] }),
41063
- e === "tabbed" && l && /* @__PURE__ */ I(kJ, {
41150
+ e === "tabbed" && l && /* @__PURE__ */ I(RJ, {
41064
41151
  onChange: this.onTabsChange,
41065
41152
  contentClassName: "content-container",
41066
41153
  indicatorColor: "primary",
41067
- children: [/* @__PURE__ */ F(sY, {
41154
+ children: [/* @__PURE__ */ F(gY, {
41068
41155
  title: "Design",
41069
41156
  className: "design-container",
41070
41157
  children: n
41071
- }), /* @__PURE__ */ F(sY, {
41158
+ }), /* @__PURE__ */ F(gY, {
41072
41159
  title: "Settings",
41073
41160
  className: "settings-container",
41074
41161
  children: t
41075
41162
  })]
41076
41163
  }),
41077
- e === "tabbed" && !l && /* @__PURE__ */ F(sY, {
41164
+ e === "tabbed" && !l && /* @__PURE__ */ F(gY, {
41078
41165
  className: "design-container",
41079
41166
  children: n
41080
41167
  })
@@ -41084,18 +41171,18 @@ var rY = Object.defineProperty, iY = (e, t) => {
41084
41171
  };
41085
41172
  //#endregion
41086
41173
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
41087
- function dY() {
41088
- return dY = Object.assign ? Object.assign.bind() : function(e) {
41174
+ function bY() {
41175
+ return bY = Object.assign ? Object.assign.bind() : function(e) {
41089
41176
  for (var t = 1; t < arguments.length; t++) {
41090
41177
  var n = arguments[t];
41091
41178
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
41092
41179
  }
41093
41180
  return e;
41094
- }, dY.apply(null, arguments);
41181
+ }, bY.apply(null, arguments);
41095
41182
  }
41096
41183
  //#endregion
41097
41184
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
41098
- function fY(e, t) {
41185
+ function xY(e, t) {
41099
41186
  if (e == null) return {};
41100
41187
  var n = {};
41101
41188
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -41106,19 +41193,19 @@ function fY(e, t) {
41106
41193
  }
41107
41194
  //#endregion
41108
41195
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
41109
- function pY(e, t) {
41110
- return pY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41196
+ function SY(e, t) {
41197
+ return SY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41111
41198
  return e.__proto__ = t, e;
41112
- }, pY(e, t);
41199
+ }, SY(e, t);
41113
41200
  }
41114
41201
  //#endregion
41115
41202
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
41116
- function mY(e, t) {
41117
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, pY(e, t);
41203
+ function CY(e, t) {
41204
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, SY(e, t);
41118
41205
  }
41119
41206
  //#endregion
41120
41207
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
41121
- var hY = (function() {
41208
+ var wY = (function() {
41122
41209
  if (typeof Map < "u") return Map;
41123
41210
  function e(e, t) {
41124
41211
  var n = -1;
@@ -41157,34 +41244,34 @@ var hY = (function() {
41157
41244
  }
41158
41245
  }, t;
41159
41246
  }();
41160
- })(), gY = typeof window < "u" && typeof document < "u" && window.document === document, _Y = (function() {
41247
+ })(), TY = typeof window < "u" && typeof document < "u" && window.document === document, EY = (function() {
41161
41248
  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")();
41162
- })(), vY = (function() {
41163
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(_Y) : function(e) {
41249
+ })(), DY = (function() {
41250
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(EY) : function(e) {
41164
41251
  return setTimeout(function() {
41165
41252
  return e(Date.now());
41166
41253
  }, 1e3 / 60);
41167
41254
  };
41168
- })(), yY = 2;
41169
- function bY(e, t) {
41255
+ })(), OY = 2;
41256
+ function kY(e, t) {
41170
41257
  var n = !1, r = !1, i = 0;
41171
41258
  function a() {
41172
41259
  n && (n = !1, e()), r && s();
41173
41260
  }
41174
41261
  function o() {
41175
- vY(a);
41262
+ DY(a);
41176
41263
  }
41177
41264
  function s() {
41178
41265
  var e = Date.now();
41179
41266
  if (n) {
41180
- if (e - i < yY) return;
41267
+ if (e - i < OY) return;
41181
41268
  r = !0;
41182
41269
  } else n = !0, r = !1, setTimeout(o, t);
41183
41270
  i = e;
41184
41271
  }
41185
41272
  return s;
41186
41273
  }
41187
- var xY = 20, SY = [
41274
+ var AY = 20, jY = [
41188
41275
  "top",
41189
41276
  "right",
41190
41277
  "bottom",
@@ -41193,9 +41280,9 @@ var xY = 20, SY = [
41193
41280
  "height",
41194
41281
  "size",
41195
41282
  "weight"
41196
- ], CY = typeof MutationObserver < "u", wY = function() {
41283
+ ], MY = typeof MutationObserver < "u", NY = function() {
41197
41284
  function e() {
41198
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = bY(this.refresh.bind(this), xY);
41285
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = kY(this.refresh.bind(this), AY);
41199
41286
  }
41200
41287
  return e.prototype.addObserver = function(e) {
41201
41288
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -41212,23 +41299,23 @@ var xY = 20, SY = [
41212
41299
  return e.broadcastActive();
41213
41300
  }), e.length > 0;
41214
41301
  }, e.prototype.connect_ = function() {
41215
- !gY || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), CY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41302
+ !TY || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), MY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41216
41303
  attributes: !0,
41217
41304
  childList: !0,
41218
41305
  characterData: !0,
41219
41306
  subtree: !0
41220
41307
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
41221
41308
  }, e.prototype.disconnect_ = function() {
41222
- !gY || !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);
41309
+ !TY || !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);
41223
41310
  }, e.prototype.onTransitionEnd_ = function(e) {
41224
41311
  var t = e.propertyName, n = t === void 0 ? "" : t;
41225
- SY.some(function(e) {
41312
+ jY.some(function(e) {
41226
41313
  return !!~n.indexOf(e);
41227
41314
  }) && this.refresh();
41228
41315
  }, e.getInstance = function() {
41229
41316
  return this.instance_ ||= new e(), this.instance_;
41230
41317
  }, e.instance_ = null, e;
41231
- }(), TY = (function(e, t) {
41318
+ }(), PY = (function(e, t) {
41232
41319
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
41233
41320
  var i = r[n];
41234
41321
  Object.defineProperty(e, i, {
@@ -41239,19 +41326,19 @@ var xY = 20, SY = [
41239
41326
  });
41240
41327
  }
41241
41328
  return e;
41242
- }), EY = (function(e) {
41243
- return e && e.ownerDocument && e.ownerDocument.defaultView || _Y;
41244
- }), DY = LY(0, 0, 0, 0);
41245
- function OY(e) {
41329
+ }), FY = (function(e) {
41330
+ return e && e.ownerDocument && e.ownerDocument.defaultView || EY;
41331
+ }), IY = KY(0, 0, 0, 0);
41332
+ function LY(e) {
41246
41333
  return parseFloat(e) || 0;
41247
41334
  }
41248
- function kY(e) {
41335
+ function RY(e) {
41249
41336
  return [...arguments].slice(1).reduce(function(t, n) {
41250
41337
  var r = e["border-" + n + "-width"];
41251
- return t + OY(r);
41338
+ return t + LY(r);
41252
41339
  }, 0);
41253
41340
  }
41254
- function AY(e) {
41341
+ function zY(e) {
41255
41342
  for (var t = [
41256
41343
  "top",
41257
41344
  "right",
@@ -41259,40 +41346,40 @@ function AY(e) {
41259
41346
  "left"
41260
41347
  ], n = {}, r = 0, i = t; r < i.length; r++) {
41261
41348
  var a = i[r], o = e["padding-" + a];
41262
- n[a] = OY(o);
41349
+ n[a] = LY(o);
41263
41350
  }
41264
41351
  return n;
41265
41352
  }
41266
- function jY(e) {
41353
+ function BY(e) {
41267
41354
  var t = e.getBBox();
41268
- return LY(0, 0, t.width, t.height);
41355
+ return KY(0, 0, t.width, t.height);
41269
41356
  }
41270
- function MY(e) {
41357
+ function VY(e) {
41271
41358
  var t = e.clientWidth, n = e.clientHeight;
41272
- if (!t && !n) return DY;
41273
- var r = EY(e).getComputedStyle(e), i = AY(r), a = i.left + i.right, o = i.top + i.bottom, s = OY(r.width), c = OY(r.height);
41274
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= kY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= kY(r, "top", "bottom") + o)), !PY(e)) {
41359
+ if (!t && !n) return IY;
41360
+ var r = FY(e).getComputedStyle(e), i = zY(r), a = i.left + i.right, o = i.top + i.bottom, s = LY(r.width), c = LY(r.height);
41361
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= RY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= RY(r, "top", "bottom") + o)), !UY(e)) {
41275
41362
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
41276
41363
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
41277
41364
  }
41278
- return LY(i.left, i.top, s, c);
41365
+ return KY(i.left, i.top, s, c);
41279
41366
  }
41280
- var NY = (function() {
41367
+ var HY = (function() {
41281
41368
  return typeof SVGGraphicsElement < "u" ? function(e) {
41282
- return e instanceof EY(e).SVGGraphicsElement;
41369
+ return e instanceof FY(e).SVGGraphicsElement;
41283
41370
  } : function(e) {
41284
- return e instanceof EY(e).SVGElement && typeof e.getBBox == "function";
41371
+ return e instanceof FY(e).SVGElement && typeof e.getBBox == "function";
41285
41372
  };
41286
41373
  })();
41287
- function PY(e) {
41288
- return e === EY(e).document.documentElement;
41374
+ function UY(e) {
41375
+ return e === FY(e).document.documentElement;
41289
41376
  }
41290
- function FY(e) {
41291
- return gY ? NY(e) ? jY(e) : MY(e) : DY;
41377
+ function WY(e) {
41378
+ return TY ? HY(e) ? BY(e) : VY(e) : IY;
41292
41379
  }
41293
- function IY(e) {
41380
+ function GY(e) {
41294
41381
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
41295
- return TY(a, {
41382
+ return PY(a, {
41296
41383
  x: t,
41297
41384
  y: n,
41298
41385
  width: r,
@@ -41303,7 +41390,7 @@ function IY(e) {
41303
41390
  left: t
41304
41391
  }), a;
41305
41392
  }
41306
- function LY(e, t, n, r) {
41393
+ function KY(e, t, n, r) {
41307
41394
  return {
41308
41395
  x: e,
41309
41396
  y: t,
@@ -41311,42 +41398,42 @@ function LY(e, t, n, r) {
41311
41398
  height: r
41312
41399
  };
41313
41400
  }
41314
- var RY = function() {
41401
+ var qY = function() {
41315
41402
  function e(e) {
41316
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = LY(0, 0, 0, 0), this.target = e;
41403
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = KY(0, 0, 0, 0), this.target = e;
41317
41404
  }
41318
41405
  return e.prototype.isActive = function() {
41319
- var e = FY(this.target);
41406
+ var e = WY(this.target);
41320
41407
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41321
41408
  }, e.prototype.broadcastRect = function() {
41322
41409
  var e = this.contentRect_;
41323
41410
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41324
41411
  }, e;
41325
- }(), zY = function() {
41412
+ }(), JY = function() {
41326
41413
  function e(e, t) {
41327
- var n = IY(t);
41328
- TY(this, {
41414
+ var n = GY(t);
41415
+ PY(this, {
41329
41416
  target: e,
41330
41417
  contentRect: n
41331
41418
  });
41332
41419
  }
41333
41420
  return e;
41334
- }(), BY = function() {
41421
+ }(), YY = function() {
41335
41422
  function e(e, t, n) {
41336
- if (this.activeObservations_ = [], this.observations_ = new hY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41423
+ if (this.activeObservations_ = [], this.observations_ = new wY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41337
41424
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41338
41425
  }
41339
41426
  return e.prototype.observe = function(e) {
41340
41427
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41341
41428
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41342
- if (!(e instanceof EY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41429
+ if (!(e instanceof FY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41343
41430
  var t = this.observations_;
41344
- t.has(e) || (t.set(e, new RY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41431
+ t.has(e) || (t.set(e, new qY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41345
41432
  }
41346
41433
  }, e.prototype.unobserve = function(e) {
41347
41434
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41348
41435
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41349
- if (!(e instanceof EY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41436
+ if (!(e instanceof FY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41350
41437
  var t = this.observations_;
41351
41438
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41352
41439
  }
@@ -41360,7 +41447,7 @@ var RY = function() {
41360
41447
  }, e.prototype.broadcastActive = function() {
41361
41448
  if (this.hasActive()) {
41362
41449
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41363
- return new zY(e.target, e.broadcastRect());
41450
+ return new JY(e.target, e.broadcastRect());
41364
41451
  });
41365
41452
  this.callback_.call(e, t, e), this.clearActive();
41366
41453
  }
@@ -41369,12 +41456,12 @@ var RY = function() {
41369
41456
  }, e.prototype.hasActive = function() {
41370
41457
  return this.activeObservations_.length > 0;
41371
41458
  }, e;
41372
- }(), VY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new hY(), HY = function() {
41459
+ }(), XY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new wY(), ZY = function() {
41373
41460
  function e(t) {
41374
41461
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41375
41462
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41376
- var n = new BY(t, wY.getInstance(), this);
41377
- VY.set(this, n);
41463
+ var n = new YY(t, NY.getInstance(), this);
41464
+ XY.set(this, n);
41378
41465
  }
41379
41466
  return e;
41380
41467
  }();
@@ -41383,27 +41470,27 @@ var RY = function() {
41383
41470
  "unobserve",
41384
41471
  "disconnect"
41385
41472
  ].forEach(function(e) {
41386
- HY.prototype[e] = function() {
41473
+ ZY.prototype[e] = function() {
41387
41474
  var t;
41388
- return (t = VY.get(this))[e].apply(t, arguments);
41475
+ return (t = XY.get(this))[e].apply(t, arguments);
41389
41476
  };
41390
41477
  });
41391
- var UY = (function() {
41392
- return _Y.ResizeObserver === void 0 ? HY : _Y.ResizeObserver;
41393
- })(), WY = [
41478
+ var QY = (function() {
41479
+ return EY.ResizeObserver === void 0 ? ZY : EY.ResizeObserver;
41480
+ })(), $Y = [
41394
41481
  "client",
41395
41482
  "offset",
41396
41483
  "scroll",
41397
41484
  "bounds",
41398
41485
  "margin"
41399
41486
  ];
41400
- function GY(e) {
41487
+ function eX(e) {
41401
41488
  var t = [];
41402
- return WY.forEach(function(n) {
41489
+ return $Y.forEach(function(n) {
41403
41490
  e[n] && t.push(n);
41404
41491
  }), t;
41405
41492
  }
41406
- function KY(e, t) {
41493
+ function tX(e, t) {
41407
41494
  var n = {};
41408
41495
  if (t.indexOf("client") > -1 && (n.client = {
41409
41496
  top: e.clientTop,
@@ -41442,14 +41529,14 @@ function KY(e, t) {
41442
41529
  }
41443
41530
  return n;
41444
41531
  }
41445
- function qY(e) {
41532
+ function nX(e) {
41446
41533
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
41447
41534
  }
41448
- function JY(e) {
41535
+ function rX(e) {
41449
41536
  return function(t) {
41450
41537
  var n, r;
41451
41538
  return r = n = /*#__PURE__*/ function(n) {
41452
- mY(r, n);
41539
+ CY(r, n);
41453
41540
  function r() {
41454
41541
  var t, r = [...arguments];
41455
41542
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -41460,24 +41547,24 @@ function JY(e) {
41460
41547
  bounds: {},
41461
41548
  margin: {}
41462
41549
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
41463
- var r = KY(t._node, e || GY(t.props));
41550
+ var r = tX(t._node, e || eX(t.props));
41464
41551
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
41465
41552
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
41466
41553
  });
41467
41554
  }, t._handleRef = function(e) {
41468
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = qY(t._node);
41555
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = nX(t._node);
41469
41556
  var n = t.props.innerRef;
41470
41557
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
41471
41558
  }, t;
41472
41559
  }
41473
41560
  var i = r.prototype;
41474
41561
  return i.componentDidMount = function() {
41475
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new UY(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(KY(this._node, e || GY(this.props))));
41562
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new QY(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(tX(this._node, e || eX(this.props))));
41476
41563
  }, i.componentWillUnmount = function() {
41477
41564
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
41478
41565
  }, i.render = function() {
41479
41566
  var e = this.props;
41480
- return e.innerRef, e.onResize, wt(t, dY({}, fY(e, ["innerRef", "onResize"]), {
41567
+ return e.innerRef, e.onResize, wt(t, bY({}, xY(e, ["innerRef", "onResize"]), {
41481
41568
  measureRef: this._handleRef,
41482
41569
  measure: this.measure,
41483
41570
  contentRect: this.state.contentRect
@@ -41494,7 +41581,7 @@ function JY(e) {
41494
41581
  }, r;
41495
41582
  };
41496
41583
  }
41497
- var YY = JY()(function(e) {
41584
+ var iX = rX()(function(e) {
41498
41585
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
41499
41586
  return i({
41500
41587
  measure: t,
@@ -41502,10 +41589,10 @@ var YY = JY()(function(e) {
41502
41589
  contentRect: r
41503
41590
  });
41504
41591
  });
41505
- YY.displayName = "Measure", YY.propTypes.children = L.default.func;
41592
+ iX.displayName = "Measure", iX.propTypes.children = L.default.func;
41506
41593
  //#endregion
41507
41594
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
41508
- var XY = N("div")(() => ({
41595
+ var aX = N("div")(() => ({
41509
41596
  backgroundColor: k.white(),
41510
41597
  border: `2px solid ${k.border()}`,
41511
41598
  display: "flex",
@@ -41515,7 +41602,7 @@ var XY = N("div")(() => ({
41515
41602
  maxWidth: "300px",
41516
41603
  padding: "20px 4px 4px 20px",
41517
41604
  zIndex: 99
41518
- })), ZY = class extends xt.Component {
41605
+ })), oX = class extends xt.Component {
41519
41606
  static propTypes = {
41520
41607
  className: L.default.string,
41521
41608
  children: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]).isRequired
@@ -41523,19 +41610,19 @@ var XY = N("div")(() => ({
41523
41610
  static defaultProps = {};
41524
41611
  render() {
41525
41612
  let { className: e, children: t } = this.props;
41526
- return /* @__PURE__ */ F(XY, {
41613
+ return /* @__PURE__ */ F(aX, {
41527
41614
  className: e,
41528
41615
  children: t
41529
41616
  });
41530
41617
  }
41531
- }, QY = yt({
41618
+ }, sX = yt({
41532
41619
  typography: { fontFamily: "inherit" },
41533
41620
  components: { MuiButton: { styleOverrides: { contained: {
41534
41621
  backgroundColor: "#e0e0e0",
41535
41622
  color: "#000000",
41536
41623
  "&:hover": { backgroundColor: "#bdbdbd" }
41537
41624
  } } } }
41538
- }), $Y = class extends xt.Component {
41625
+ }), cX = class extends xt.Component {
41539
41626
  static propTypes = {
41540
41627
  children: L.default.oneOfType([
41541
41628
  L.default.string,
@@ -41568,19 +41655,19 @@ var XY = N("div")(() => ({
41568
41655
  return /* @__PURE__ */ F(de, {
41569
41656
  injectFirst: !0,
41570
41657
  children: /* @__PURE__ */ F(it, {
41571
- theme: QY,
41572
- children: /* @__PURE__ */ F(YY, {
41658
+ theme: sX,
41659
+ children: /* @__PURE__ */ F(iX, {
41573
41660
  bounds: !0,
41574
41661
  onResize: this.onResize,
41575
41662
  children: ({ measureRef: e }) => {
41576
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(ZY, {
41663
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ F(oX, {
41577
41664
  className: "settings-box",
41578
41665
  children: n
41579
41666
  }) : n;
41580
41667
  return /* @__PURE__ */ I("div", {
41581
41668
  ref: e,
41582
41669
  className: "main-container extraCSSRules",
41583
- children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(uY, {
41670
+ children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(yY, {
41584
41671
  mode: o,
41585
41672
  secondary: s,
41586
41673
  dimensions: i,
@@ -41592,27 +41679,27 @@ var XY = N("div")(() => ({
41592
41679
  })
41593
41680
  });
41594
41681
  }
41595
- }, eX = JY("bounds")($Y), tX = /* @__PURE__ */ iY({
41596
- ConfigLayout: () => eX,
41597
- LayoutContents: () => uY
41598
- }), nX = N("div")(() => ({
41682
+ }, lX = rX("bounds")(cX), uX = /* @__PURE__ */ pY({
41683
+ ConfigLayout: () => lX,
41684
+ LayoutContents: () => yY
41685
+ }), dX = N("div")(() => ({
41599
41686
  display: "flex",
41600
41687
  width: "100%",
41601
41688
  justifyContent: "space-between"
41602
- })), rX = N(Qe)(({ theme: e }) => ({
41689
+ })), fX = N(Qe)(({ theme: e }) => ({
41603
41690
  color: "rgba(0, 0, 0, 0.89)",
41604
41691
  fontSize: e.typography.fontSize,
41605
41692
  paddingTop: e.spacing(2)
41606
- })), iX = N(oc)(({ checked: e }) => ({
41693
+ })), pX = N(oc)(({ checked: e }) => ({
41607
41694
  "&.Mui-checked .MuiSwitch-thumb": { color: `${k.tertiary()} !important` },
41608
41695
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${k.tertiaryLight()} !important` },
41609
41696
  "& .MuiSwitch-track": { backgroundColor: e ? `${k.tertiaryLight()} !important` : void 0 }
41610
- })), aX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I(nX, { children: [/* @__PURE__ */ F(rX, { children: n }), /* @__PURE__ */ F(iX, {
41697
+ })), mX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I(dX, { children: [/* @__PURE__ */ F(fX, { children: n }), /* @__PURE__ */ F(pX, {
41611
41698
  checked: e,
41612
41699
  disabled: t,
41613
41700
  onChange: (e) => r(e.target.checked)
41614
41701
  })] });
41615
- aX.propTypes = {
41702
+ mX.propTypes = {
41616
41703
  checked: L.default.bool,
41617
41704
  disabled: L.default.bool,
41618
41705
  label: L.default.string.isRequired,
@@ -41620,20 +41707,20 @@ aX.propTypes = {
41620
41707
  };
41621
41708
  //#endregion
41622
41709
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
41623
- var oX = N(Pa)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41710
+ var hX = N(Pa)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41624
41711
  color: "rgba(0, 0, 0, 0.89)",
41625
41712
  fontSize: e.typography.fontSize - 2,
41626
41713
  left: "-5px",
41627
41714
  position: "relative"
41628
- } })), sX = N(Ls)(() => ({ color: `${k.tertiary()} !important` })), cX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(oX, {
41715
+ } })), gX = N(Ls)(() => ({ color: `${k.tertiary()} !important` })), _X = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(hX, {
41629
41716
  value: t,
41630
- control: /* @__PURE__ */ F(sX, {
41717
+ control: /* @__PURE__ */ F(gX, {
41631
41718
  checked: n,
41632
41719
  onChange: r
41633
41720
  }),
41634
41721
  label: e
41635
41722
  });
41636
- cX.propTypes = {
41723
+ _X.propTypes = {
41637
41724
  label: L.default.string,
41638
41725
  value: L.default.string,
41639
41726
  checked: L.default.bool,
@@ -41641,26 +41728,26 @@ cX.propTypes = {
41641
41728
  };
41642
41729
  //#endregion
41643
41730
  //#region ../../lib-react/config-ui/dist/settings/panel.js
41644
- var lX = (0, Wc.default)("pie-lib:config-ui:settings:panel"), uX = {
41731
+ var vX = (0, Wc.default)("pie-lib:config-ui:settings:panel"), yX = {
41645
41732
  label: L.default.string,
41646
41733
  value: L.default.string
41647
- }, dX = {
41734
+ }, bX = {
41648
41735
  label: L.default.string,
41649
41736
  value: L.default.string,
41650
41737
  onChange: L.default.func
41651
- }, fX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(MJ, {
41738
+ }, xX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(VJ, {
41652
41739
  checked: t,
41653
41740
  label: e,
41654
41741
  onChange: (e) => {
41655
41742
  n(e.target.checked);
41656
41743
  }
41657
41744
  });
41658
- fX.propTypes = {
41745
+ xX.propTypes = {
41659
41746
  label: L.default.string,
41660
41747
  value: L.default.bool,
41661
41748
  onChange: L.default.func
41662
41749
  };
41663
- var pX = N(tY)(({ theme: e }) => ({
41750
+ var SX = N(uY)(({ theme: e }) => ({
41664
41751
  marginTop: e.spacing(.5),
41665
41752
  paddingBottom: e.spacing(.5),
41666
41753
  width: "100%",
@@ -41671,29 +41758,29 @@ var pX = N(tY)(({ theme: e }) => ({
41671
41758
  marginTop: e.spacing(2.5)
41672
41759
  },
41673
41760
  "& > div": { marginTop: e.spacing(2.5) }
41674
- })), mX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(pX, {
41761
+ })), CX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(SX, {
41675
41762
  direction: "horizontal",
41676
- customLabel: cX,
41763
+ customLabel: _X,
41677
41764
  value: t,
41678
41765
  header: e,
41679
41766
  opts: r,
41680
41767
  onChange: n
41681
41768
  });
41682
- mX.propTypes = {
41683
- ...dX,
41684
- choices: L.default.arrayOf(L.default.shape(uX))
41769
+ CX.propTypes = {
41770
+ ...bX,
41771
+ choices: L.default.arrayOf(L.default.shape(yX))
41685
41772
  };
41686
- var hX = mX, gX = N("p")(({ theme: e }) => ({
41773
+ var wX = CX, TX = N("p")(({ theme: e }) => ({
41687
41774
  margin: 0,
41688
41775
  fontSize: e.typography.fontSize
41689
- })), _X = N(gs)(({ theme: e }) => ({
41776
+ })), EX = N(gs)(({ theme: e }) => ({
41690
41777
  marginTop: e.spacing(.5),
41691
41778
  border: "2px solid lightgrey",
41692
41779
  padding: `0 ${e.spacing(1)}`,
41693
41780
  borderRadius: "4px"
41694
- })), vX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41781
+ })), DX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41695
41782
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
41696
- return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(gX, { children: e }), /* @__PURE__ */ F(_X, {
41783
+ return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(TX, { children: e }), /* @__PURE__ */ F(EX, {
41697
41784
  value: t || r && r[0],
41698
41785
  onChange: ({ target: e }) => n(e.value),
41699
41786
  input: /* @__PURE__ */ F(Ja, { id: `dropdown-${e}` }),
@@ -41708,14 +41795,14 @@ var hX = mX, gX = N("p")(({ theme: e }) => ({
41708
41795
  }, t))
41709
41796
  })] });
41710
41797
  };
41711
- vX.propTypes = {
41712
- ...dX,
41798
+ DX.propTypes = {
41799
+ ...bX,
41713
41800
  choices: L.default.arrayOf(L.default.string)
41714
41801
  };
41715
- var yX = N(cn)(({ theme: e }) => ({
41802
+ var OX = N(cn)(({ theme: e }) => ({
41716
41803
  marginRight: e.spacing(3),
41717
41804
  marginTop: e.spacing(1)
41718
- })), bX = ({ label: e }) => /* @__PURE__ */ F(yX, { children: e }), xX = N(zJ)(({ theme: e }) => ({
41805
+ })), kX = ({ label: e }) => /* @__PURE__ */ F(OX, { children: e }), AX = N(JJ)(({ theme: e }) => ({
41719
41806
  width: "35%",
41720
41807
  marginRight: e.spacing(3),
41721
41808
  marginTop: e.spacing(1),
@@ -41726,7 +41813,7 @@ var yX = N(cn)(({ theme: e }) => ({
41726
41813
  padding: `0 ${e.spacing(1)}`,
41727
41814
  backgroundColor: "transparent"
41728
41815
  }
41729
- })), SX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(xX, {
41816
+ })), jX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(AX, {
41730
41817
  variant: "standard",
41731
41818
  label: e || "Label",
41732
41819
  value: t,
@@ -41737,45 +41824,45 @@ var yX = N(cn)(({ theme: e }) => ({
41737
41824
  showErrorWhenOutsideRange: !0,
41738
41825
  disableUnderline: !0
41739
41826
  });
41740
- SX.propTypes = {
41741
- ...dX,
41827
+ jX.propTypes = {
41828
+ ...bX,
41742
41829
  suffix: L.default.string,
41743
41830
  min: L.default.number,
41744
41831
  max: L.default.number,
41745
41832
  value: L.default.number
41746
- }, bX.propTypes = { ...dX };
41747
- var CX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(aX, {
41833
+ }, kX.propTypes = { ...bX };
41834
+ var MX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(mX, {
41748
41835
  label: t,
41749
41836
  checked: !!n,
41750
41837
  disabled: !!e,
41751
41838
  toggle: r
41752
41839
  });
41753
- CX.propTypes = {
41754
- ...dX,
41840
+ MX.propTypes = {
41841
+ ...bX,
41755
41842
  value: L.default.bool
41756
41843
  };
41757
- var wX = {
41758
- toggle: CX,
41759
- radio: hX,
41760
- dropdown: vX,
41761
- numberField: SX,
41762
- checkbox: fX,
41763
- textField: bX
41764
- }, TX = N("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), EX = N("div")(({ theme: e }) => ({
41844
+ var NX = {
41845
+ toggle: MX,
41846
+ radio: wX,
41847
+ dropdown: DX,
41848
+ numberField: jX,
41849
+ checkbox: xX,
41850
+ textField: kX
41851
+ }, PX = N("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), FX = N("div")(({ theme: e }) => ({
41765
41852
  color: "#495B8F",
41766
41853
  fontSize: e.typography.fontSize + 2,
41767
41854
  fontWeight: 600,
41768
41855
  marginBottom: e.spacing(1)
41769
- })), DX = N("p")(({ theme: e }) => ({
41856
+ })), IX = N("p")(({ theme: e }) => ({
41770
41857
  fontSize: e.typography.fontSize,
41771
41858
  marginBottom: 0
41772
- })), OX = (e) => {
41859
+ })), LX = (e) => {
41773
41860
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
41774
- let { isConfigProperty: o, ...s } = _(e, r || n), c = _(o ? i : t, n), l = {
41861
+ let { isConfigProperty: o, ...s } = v(e, r || n), c = v(o ? i : t, n), l = {
41775
41862
  ...s,
41776
41863
  key: n,
41777
41864
  value: c
41778
- }, u = wX[l.type];
41865
+ }, u = NX[l.type];
41779
41866
  return /* @__PURE__ */ F(u, {
41780
41867
  ...l,
41781
41868
  onChange: (e) => a(n, e, o)
@@ -41784,18 +41871,18 @@ var wX = {
41784
41871
  let n = e[t];
41785
41872
  if (!n) return null;
41786
41873
  let { type: r, label: i, fields: a, choices: s } = n;
41787
- return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(DX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41874
+ return r === "numberFields" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(IX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41788
41875
  };
41789
- return /* @__PURE__ */ I(TX, { children: [/* @__PURE__ */ F(EX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41876
+ return /* @__PURE__ */ I(PX, { children: [/* @__PURE__ */ F(FX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41790
41877
  };
41791
- OX.propTypes = {
41878
+ LX.propTypes = {
41792
41879
  model: L.default.object,
41793
41880
  label: L.default.string,
41794
41881
  group: L.default.object,
41795
41882
  configuration: L.default.object,
41796
41883
  onChange: L.default.func
41797
41884
  };
41798
- var kX = class extends xt.Component {
41885
+ var RX = class extends xt.Component {
41799
41886
  static propTypes = {
41800
41887
  model: L.default.object,
41801
41888
  configuration: L.default.object,
@@ -41809,13 +41896,13 @@ var kX = class extends xt.Component {
41809
41896
  onChangeConfiguration: () => {}
41810
41897
  };
41811
41898
  change = (e, t, n = !1) => {
41812
- lX("[changeModel]", e, t);
41899
+ vX("[changeModel]", e, t);
41813
41900
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41814
41901
  n ? (d(o, e, t), i(o, e)) : (d(a, e, t), r(a, e));
41815
41902
  };
41816
41903
  render() {
41817
41904
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
41818
- return lX("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(OX, {
41905
+ return vX("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(LX, {
41819
41906
  label: r,
41820
41907
  model: t,
41821
41908
  configuration: n,
@@ -41823,59 +41910,59 @@ var kX = class extends xt.Component {
41823
41910
  onChange: this.change
41824
41911
  }, r) : null), r] });
41825
41912
  }
41826
- }, AX = /* @__PURE__ */ iY({
41827
- Panel: () => kX,
41828
- checkbox: () => RX,
41829
- checkboxes: () => zX,
41830
- dropdown: () => FX,
41831
- numberField: () => IX,
41832
- numberFields: () => LX,
41833
- radio: () => PX,
41834
- textField: () => jX,
41835
- toggle: () => MX
41836
- }), jX = (e, t = !0) => ({
41913
+ }, zX = /* @__PURE__ */ pY({
41914
+ Panel: () => RX,
41915
+ checkbox: () => qX,
41916
+ checkboxes: () => JX,
41917
+ dropdown: () => WX,
41918
+ numberField: () => GX,
41919
+ numberFields: () => KX,
41920
+ radio: () => UX,
41921
+ textField: () => BX,
41922
+ toggle: () => VX
41923
+ }), BX = (e, t = !0) => ({
41837
41924
  label: e,
41838
41925
  type: "textField",
41839
41926
  isConfigProperty: t
41840
- }), MX = (e, t = !1, n = !1) => ({
41927
+ }), VX = (e, t = !1, n = !1) => ({
41841
41928
  type: "toggle",
41842
41929
  label: e,
41843
41930
  isConfigProperty: t,
41844
41931
  disabled: n
41845
- }), NX = (e) => typeof e == "string" ? {
41932
+ }), HX = (e) => typeof e == "string" ? {
41846
41933
  label: e,
41847
41934
  value: e
41848
- } : e, PX = function() {
41935
+ } : e, UX = function() {
41849
41936
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41850
41937
  return {
41851
41938
  type: "radio",
41852
41939
  label: e,
41853
- choices: t && t.map((e) => NX(e)),
41940
+ choices: t && t.map((e) => HX(e)),
41854
41941
  isConfigProperty: n
41855
41942
  };
41856
- }, FX = (e, t, n = !1) => ({
41943
+ }, WX = (e, t, n = !1) => ({
41857
41944
  type: "dropdown",
41858
41945
  label: e,
41859
41946
  choices: t,
41860
41947
  isConfigProperty: n
41861
- }), IX = (e, t, n = !1) => ({
41948
+ }), GX = (e, t, n = !1) => ({
41862
41949
  ...t,
41863
41950
  label: e,
41864
41951
  type: "numberField",
41865
41952
  isConfigProperty: n
41866
- }), LX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41867
- t[e] = IX(t[e].label, t[e], n);
41953
+ }), KX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41954
+ t[e] = GX(t[e].label, t[e], n);
41868
41955
  }), {
41869
41956
  type: "numberFields",
41870
41957
  label: e,
41871
41958
  fields: t
41872
- }), RX = (e, t, n = !1) => ({
41959
+ }), qX = (e, t, n = !1) => ({
41873
41960
  ...t,
41874
41961
  label: e,
41875
41962
  type: "checkbox",
41876
41963
  isConfigProperty: n
41877
- }), zX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41878
- t[e] = RX(t[e].label, t[e], n);
41964
+ }), JX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41965
+ t[e] = qX(t[e].label, t[e], n);
41879
41966
  }), {
41880
41967
  type: "checkboxes",
41881
41968
  label: e,
@@ -41883,42 +41970,42 @@ var kX = class extends xt.Component {
41883
41970
  });
41884
41971
  //#endregion
41885
41972
  //#region ../../lib-react/config-ui/dist/index.js
41886
- function BX(e) {
41973
+ function YX(e) {
41887
41974
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41888
41975
  }
41889
- function VX(e, t) {
41890
- return !e || BX(e) ? e : BX(e.default) ? e.default : t && BX(e[t]) ? e[t] : t && BX(e[t]?.default) ? e[t].default : e;
41976
+ function XX(e, t) {
41977
+ return !e || YX(e) ? e : YX(e.default) ? e.default : t && YX(e[t]) ? e[t] : t && YX(e[t]?.default) ? e[t].default : e;
41891
41978
  }
41892
- var HX = VX(Ie, "InputContainer") || VX(GX.InputContainer, "InputContainer"), UX = tt, WX = UX.default, GX = WX && typeof WX == "object" ? WX : UX, KX = N(zJ)(({ theme: e }) => ({ marginLeft: e.spacing(1) }));
41893
- N(zJ)({ maxWidth: "100px" });
41894
- var qX = (e) => /* @__PURE__ */ F(KX, {
41979
+ var ZX = XX(Ie, "InputContainer") || XX(eZ.InputContainer, "InputContainer"), QX = tt, $X = QX.default, eZ = $X && typeof $X == "object" ? $X : QX, tZ = N(JJ)(({ theme: e }) => ({ marginLeft: e.spacing(1) }));
41980
+ N(JJ)({ maxWidth: "100px" });
41981
+ var nZ = (e) => /* @__PURE__ */ F(tZ, {
41895
41982
  ...e,
41896
41983
  variant: "outlined"
41897
- }), JX = Fe(/*#__PURE__*/ F("path", { d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4" }), "HelpOutline"), YX = N("div")({
41984
+ }), rZ = Fe(/*#__PURE__*/ F("path", { d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4" }), "HelpOutline"), iZ = N("div")({
41898
41985
  display: "flex",
41899
41986
  justifyContent: "space-between"
41900
- }), XX = N("div")({
41987
+ }), aZ = N("div")({
41901
41988
  display: "flex",
41902
41989
  alignItems: "center"
41903
- }), ZX = N(en)({
41990
+ }), oZ = N(en)({
41904
41991
  margin: 0,
41905
41992
  padding: 0
41906
- }), QX = (e) => {
41993
+ }), sZ = (e) => {
41907
41994
  let { header: t, children: n, mini: r, info: i } = e;
41908
- return /* @__PURE__ */ I(YX, { children: [/* @__PURE__ */ I(XX, { children: [/* @__PURE__ */ F(cn, {
41995
+ return /* @__PURE__ */ I(iZ, { children: [/* @__PURE__ */ I(aZ, { children: [/* @__PURE__ */ F(cn, {
41909
41996
  variant: r ? "subheading" : "h5",
41910
41997
  children: t
41911
41998
  }), i] }), n && /* @__PURE__ */ F(Qs, {
41912
41999
  title: n,
41913
42000
  slotProps: { tooltip: { sx: (e) => ({ fontSize: e.typography.fontSize - 2 }) } },
41914
- children: /* @__PURE__ */ F(ZX, {
42001
+ children: /* @__PURE__ */ F(oZ, {
41915
42002
  "aria-label": "Delete",
41916
42003
  size: "large",
41917
- children: /* @__PURE__ */ F(JX, {})
42004
+ children: /* @__PURE__ */ F(rZ, {})
41918
42005
  })
41919
42006
  })] });
41920
42007
  };
41921
- QX.propTypes = {
42008
+ sZ.propTypes = {
41922
42009
  mini: L.default.bool,
41923
42010
  header: L.default.string,
41924
42011
  children: L.default.node,
@@ -41926,24 +42013,24 @@ QX.propTypes = {
41926
42013
  };
41927
42014
  //#endregion
41928
42015
  //#region src/author/size.tsx
41929
- var $X = N("div")({
42016
+ var cZ = N("div")({
41930
42017
  display: "flex",
41931
42018
  alignItems: "center",
41932
42019
  gap: "10px"
41933
- }), eZ = N("div")({
42020
+ }), lZ = N("div")({
41934
42021
  display: "flex",
41935
42022
  flexFlow: "column"
41936
- }), tZ = N("label")({
42023
+ }), uZ = N("label")({
41937
42024
  fontSize: "small",
41938
42025
  color: "gray"
41939
- }), nZ = N(qJ)({ "& input": { cursor: "default" } }), rZ = (e) => {
42026
+ }), dZ = N(nY)({ "& input": { cursor: "default" } }), fZ = (e) => {
41940
42027
  let { size: t = { width: 500 }, min: n = 150, max: r = 800, step: i = 20, onChange: a } = e;
41941
- return /* @__PURE__ */ I($X, { children: [/* @__PURE__ */ I(eZ, { children: [/* @__PURE__ */ F("label", { children: "Width (px)" }), /* @__PURE__ */ I(tZ, { children: [
42028
+ return /* @__PURE__ */ I(cZ, { children: [/* @__PURE__ */ I(lZ, { children: [/* @__PURE__ */ F("label", { children: "Width (px)" }), /* @__PURE__ */ I(uZ, { children: [
41942
42029
  "Min ",
41943
42030
  n,
41944
42031
  ", Max ",
41945
42032
  r
41946
- ] })] }), /* @__PURE__ */ F(nZ, {
42033
+ ] })] }), /* @__PURE__ */ F(dZ, {
41947
42034
  value: t.width,
41948
42035
  min: n,
41949
42036
  max: r,
@@ -41956,7 +42043,7 @@ var $X = N("div")({
41956
42043
  variant: "outlined"
41957
42044
  })] });
41958
42045
  };
41959
- rZ.propTypes = {
42046
+ fZ.propTypes = {
41960
42047
  size: L.default.shape({
41961
42048
  width: L.default.number,
41962
42049
  height: L.default.number
@@ -41968,18 +42055,18 @@ rZ.propTypes = {
41968
42055
  };
41969
42056
  //#endregion
41970
42057
  //#region src/author/domain.tsx
41971
- var iZ = "domainBegin", aZ = "domainEnd", oZ = N("div")({
42058
+ var pZ = "domainBegin", mZ = "domainEnd", hZ = N("div")({
41972
42059
  display: "flex",
41973
42060
  gap: "20px"
41974
- }), sZ = N("div")({
42061
+ }), gZ = N("div")({
41975
42062
  display: "flex",
41976
42063
  alignItems: "center",
41977
42064
  gap: "10px",
41978
42065
  ".MuiInputBase-input": { padding: "16.5px 14px !important" }
41979
- }), cZ = (e) => e.min <= e.max ? e : {
42066
+ }), _Z = (e) => e.min <= e.max ? e : {
41980
42067
  min: e.max,
41981
42068
  max: e.min
41982
- }, lZ = class extends xt.Component {
42069
+ }, vZ = class extends xt.Component {
41983
42070
  constructor(e) {
41984
42071
  super(e), this.changeMin = this.change.bind(this, "min"), this.changeMax = this.change.bind(this, "max");
41985
42072
  }
@@ -41988,26 +42075,26 @@ var iZ = "domainBegin", aZ = "domainEnd", oZ = N("div")({
41988
42075
  i = e === "min" && n === this.props.domain.max || e === "max" && n === this.props.domain.min ? { ...this.props.domain } : {
41989
42076
  ...this.props.domain,
41990
42077
  [e]: n
41991
- }, r(cZ(i));
42078
+ }, r(_Z(i));
41992
42079
  }
41993
42080
  render() {
41994
42081
  let { domain: e } = this.props;
41995
- return /* @__PURE__ */ I(oZ, { children: [/* @__PURE__ */ I(sZ, { children: [/* @__PURE__ */ F("label", { children: "Min Value" }), /* @__PURE__ */ F(qX, {
42082
+ return /* @__PURE__ */ I(hZ, { children: [/* @__PURE__ */ I(gZ, { children: [/* @__PURE__ */ F("label", { children: "Min Value" }), /* @__PURE__ */ F(nZ, {
41996
42083
  min: -1e5,
41997
42084
  max: 99999,
41998
42085
  value: e.min,
41999
- name: iZ,
42086
+ name: pZ,
42000
42087
  onChange: this.changeMin
42001
- })] }), /* @__PURE__ */ I(sZ, { children: [/* @__PURE__ */ F("label", { children: "Max Value" }), /* @__PURE__ */ F(qX, {
42088
+ })] }), /* @__PURE__ */ I(gZ, { children: [/* @__PURE__ */ F("label", { children: "Max Value" }), /* @__PURE__ */ F(nZ, {
42002
42089
  min: -99999,
42003
42090
  max: 1e5,
42004
42091
  value: e.max,
42005
- name: aZ,
42092
+ name: mZ,
42006
42093
  onChange: this.changeMax
42007
42094
  })] })] });
42008
42095
  }
42009
42096
  };
42010
- lZ.propTypes = {
42097
+ vZ.propTypes = {
42011
42098
  domain: L.default.shape({
42012
42099
  min: L.default.number,
42013
42100
  max: L.default.number
@@ -42016,11 +42103,11 @@ lZ.propTypes = {
42016
42103
  };
42017
42104
  //#endregion
42018
42105
  //#region src/author/arrows.tsx
42019
- var uZ = N("div")({
42106
+ var yZ = N("div")({
42020
42107
  display: "flex",
42021
42108
  alignItems: "center",
42022
42109
  gap: "10px"
42023
- }), dZ = N("div")(({ theme: e }) => ({
42110
+ }), bZ = N("div")(({ theme: e }) => ({
42024
42111
  paddingTop: e.spacing(2),
42025
42112
  display: "flex",
42026
42113
  gap: e.spacing(2),
@@ -42043,7 +42130,7 @@ var uZ = N("div")({
42043
42130
  width: "auto",
42044
42131
  flexShrink: 0
42045
42132
  }
42046
- })), fZ = class extends xt.Component {
42133
+ })), xZ = class extends xt.Component {
42047
42134
  static propTypes = {
42048
42135
  arrows: L.default.shape({
42049
42136
  left: L.default.bool,
@@ -42066,20 +42153,20 @@ var uZ = N("div")({
42066
42153
  }
42067
42154
  render() {
42068
42155
  let { arrows: e } = this.props;
42069
- return /* @__PURE__ */ I(uZ, { children: [/* @__PURE__ */ F("label", { children: "Arrows" }), /* @__PURE__ */ I(dZ, { children: [/* @__PURE__ */ F(TJ, {
42156
+ return /* @__PURE__ */ I(yZ, { children: [/* @__PURE__ */ F("label", { children: "Arrows" }), /* @__PURE__ */ I(bZ, { children: [/* @__PURE__ */ F(PJ, {
42070
42157
  label: "Left",
42071
42158
  checked: e.left,
42072
42159
  onChange: this.changeLeft
42073
- }), /* @__PURE__ */ F(TJ, {
42160
+ }), /* @__PURE__ */ F(PJ, {
42074
42161
  label: "Right",
42075
42162
  checked: e.right,
42076
42163
  onChange: this.changeRight
42077
42164
  })] })] });
42078
42165
  }
42079
- }, { Point: pZ } = S, mZ = N("div")(({ theme: e }) => ({
42166
+ }, { Point: SZ } = S, CZ = N("div")(({ theme: e }) => ({
42080
42167
  paddingTop: e.spacing(2.5),
42081
42168
  "& > :first-child": { marginRight: e.spacing(1) }
42082
- })), hZ = class e extends xt.Component {
42169
+ })), wZ = class e extends xt.Component {
42083
42170
  static propTypes = {
42084
42171
  onSelectionChange: L.default.func,
42085
42172
  selection: L.default.object,
@@ -42105,11 +42192,11 @@ var uZ = N("div")({
42105
42192
  }
42106
42193
  render() {
42107
42194
  let { availableTools: e, hideButtons: t = !1 } = this.props;
42108
- return /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", { children: (e || []).map((e) => /* @__PURE__ */ F(pZ, {
42195
+ return /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", { children: (e || []).map((e) => /* @__PURE__ */ F(SZ, {
42109
42196
  iconKey: e.toLowerCase(),
42110
42197
  onClick: this.toggle.bind(this, e),
42111
42198
  active: this.active(e)
42112
- }, e.toLowerCase())) }), /* @__PURE__ */ I(mZ, {
42199
+ }, e.toLowerCase())) }), /* @__PURE__ */ I(CZ, {
42113
42200
  hidden: t,
42114
42201
  children: [/* @__PURE__ */ F(Ce, {
42115
42202
  variant: "outlined",
@@ -42125,7 +42212,7 @@ var uZ = N("div")({
42125
42212
  })] });
42126
42213
  }
42127
42214
  };
42128
- hZ.types = [
42215
+ wZ.types = [
42129
42216
  "PF",
42130
42217
  "LFF",
42131
42218
  "LEF",
@@ -42138,102 +42225,102 @@ hZ.types = [
42138
42225
  ];
42139
42226
  //#endregion
42140
42227
  //#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/Info.js
42141
- var gZ = Fe(/*#__PURE__*/ F("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), _Z = N("div")({ display: "flex" }), vZ = N("div")({
42228
+ var TZ = Fe(/*#__PURE__*/ F("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), EZ = N("div")({ display: "flex" }), DZ = N("div")({
42142
42229
  display: "flex",
42143
42230
  flexFlow: "column",
42144
42231
  gap: "10px",
42145
42232
  width: "65%"
42146
- }), yZ = N("div")({
42233
+ }), OZ = N("div")({
42147
42234
  display: "flex",
42148
42235
  flexFlow: "column",
42149
42236
  gap: "10px"
42150
- }), bZ = N("tr")({
42237
+ }), kZ = N("tr")({
42151
42238
  display: "flex",
42152
42239
  alignItems: "center",
42153
42240
  paddingTop: "5px",
42154
42241
  paddingBottom: "5px"
42155
- }), xZ = N("table")({
42242
+ }), AZ = N("table")({
42156
42243
  tableLayout: "fixed",
42157
42244
  width: "100%"
42158
- }), SZ = N("td")({ width: "35%" }), CZ = N(Ls)({ color: `${k.tertiary()} !important` }), wZ = N(qJ)({ "& input": {
42245
+ }), jZ = N("td")({ width: "35%" }), MZ = N(Ls)({ color: `${k.tertiary()} !important` }), NZ = N(nY)({ "& input": {
42159
42246
  maxWidth: "145px",
42160
42247
  cursor: "default"
42161
- } }), TZ = [
42248
+ } }), PZ = [
42162
42249
  "Integer",
42163
42250
  "Fraction",
42164
42251
  "Decimal"
42165
- ], EZ = (t) => {
42166
- let { ticks: r, onChange: i, minorLimits: a, minorValues: o, majorValues: s } = t, c = v(u(r.major)), l = c.d === 1 ? c.n.toString() : c.n + "/" + c.d;
42167
- return /* @__PURE__ */ I(_Z, { children: [/* @__PURE__ */ I(vZ, { children: [/* @__PURE__ */ F("label", { children: "Tick Interval" }), /* @__PURE__ */ F(Bs, {
42252
+ ], FZ = (e) => {
42253
+ let { ticks: t, onChange: a, minorLimits: o, minorValues: s, majorValues: c } = e, l = r(u(t.major)), d = l.d === 1 ? l.n.toString() : l.n + "/" + l.d;
42254
+ return /* @__PURE__ */ I(EZ, { children: [/* @__PURE__ */ I(DZ, { children: [/* @__PURE__ */ F("label", { children: "Tick Interval" }), /* @__PURE__ */ F(Bs, {
42168
42255
  "aria-label": "tick-interval-type",
42169
42256
  name: "tickIntervalType",
42170
- value: r.tickIntervalType,
42171
- onChange: (e, t) => {
42172
- TZ.includes(t) && (t === "Integer" ? r.minor = r.integerTick : t === "Decimal" ? r.minor = r.decimalTick : t === "Fraction" && (r.minor = u(v(r.fractionTick))), r.tickIntervalType = t, i({ ticks: r }));
42257
+ value: t.tickIntervalType,
42258
+ onChange: (e, n) => {
42259
+ PZ.includes(n) && (n === "Integer" ? t.minor = t.integerTick : n === "Decimal" ? t.minor = t.decimalTick : n === "Fraction" && (t.minor = u(r(t.fractionTick))), t.tickIntervalType = n, a({ ticks: t }));
42173
42260
  },
42174
- children: /* @__PURE__ */ F(xZ, { children: /* @__PURE__ */ I("tbody", { children: [
42175
- /* @__PURE__ */ I(bZ, { children: [/* @__PURE__ */ F(SZ, { children: /* @__PURE__ */ F(Pa, {
42261
+ children: /* @__PURE__ */ F(AZ, { children: /* @__PURE__ */ I("tbody", { children: [
42262
+ /* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
42176
42263
  value: "Integer",
42177
- control: /* @__PURE__ */ F(CZ, { checked: r.tickIntervalType === "Integer" }),
42264
+ control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Integer" }),
42178
42265
  label: "Integer",
42179
- disabled: a.max < 1
42180
- }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(wZ, {
42181
- value: r.integerTick,
42182
- min: u(e(a.min)),
42183
- max: u(n(a.max)),
42266
+ disabled: o.max < 1
42267
+ }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
42268
+ value: t.integerTick,
42269
+ min: u(n(o.min)),
42270
+ max: u(i(o.max)),
42184
42271
  step: 1,
42185
42272
  onlyIntegersAllowed: !0,
42186
- onChange: (e, t) => {
42187
- r.tickIntervalType === "Integer" && (r.integerTick = t, r.minor = t, i({ ticks: r }));
42273
+ onChange: (e, n) => {
42274
+ t.tickIntervalType === "Integer" && (t.integerTick = n, t.minor = n, a({ ticks: t }));
42188
42275
  },
42189
42276
  variant: "outlined",
42190
42277
  type: "number",
42191
- disabled: r.tickIntervalType !== "Integer" || a.max < 1
42192
- }, r.tickIntervalType !== "Integer" || a.max < 1 ? "integerDisabled" : "integerEnabled") })] }),
42193
- /* @__PURE__ */ I(bZ, { children: [/* @__PURE__ */ F(SZ, { children: /* @__PURE__ */ F(Pa, {
42278
+ disabled: t.tickIntervalType !== "Integer" || o.max < 1
42279
+ }, t.tickIntervalType !== "Integer" || o.max < 1 ? "integerDisabled" : "integerEnabled") })] }),
42280
+ /* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
42194
42281
  value: "Fraction",
42195
- control: /* @__PURE__ */ F(CZ, { checked: r.tickIntervalType === "Fraction" }),
42282
+ control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Fraction" }),
42196
42283
  label: "Unit Fraction",
42197
- disabled: o.fraction.length === 0
42198
- }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(wZ, {
42199
- value: r.fractionTick,
42200
- customValues: o.fraction,
42201
- onChange: (e, t) => {
42202
- r.tickIntervalType === "Fraction" && (r.fractionTick = t, r.minor = u(v(t)), i({ ticks: r }));
42284
+ disabled: s.fraction.length === 0
42285
+ }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
42286
+ value: t.fractionTick,
42287
+ customValues: s.fraction,
42288
+ onChange: (e, n) => {
42289
+ t.tickIntervalType === "Fraction" && (t.fractionTick = n, t.minor = u(r(n)), a({ ticks: t }));
42203
42290
  },
42204
42291
  variant: "outlined",
42205
42292
  type: "text",
42206
- disabled: r.tickIntervalType !== "Fraction" || o.fraction.length === 0
42207
- }, r.tickIntervalType !== "Fraction" || o.fraction.length === 0 ? "fractionDisabled" : "fractionEnabled") })] }),
42208
- /* @__PURE__ */ I(bZ, { children: [/* @__PURE__ */ F(SZ, { children: /* @__PURE__ */ F(Pa, {
42293
+ disabled: t.tickIntervalType !== "Fraction" || s.fraction.length === 0
42294
+ }, t.tickIntervalType !== "Fraction" || s.fraction.length === 0 ? "fractionDisabled" : "fractionEnabled") })] }),
42295
+ /* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
42209
42296
  value: "Decimal",
42210
- control: /* @__PURE__ */ F(CZ, { checked: r.tickIntervalType === "Decimal" }),
42297
+ control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Decimal" }),
42211
42298
  label: "Decimal",
42212
- disabled: o.decimal.length === 0
42213
- }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(wZ, {
42214
- value: r.decimalTick,
42215
- customValues: o.decimal,
42216
- onChange: (e, t) => {
42217
- r.tickIntervalType === "Decimal" && (r.decimalTick = t, r.minor = t, i({ ticks: r }));
42299
+ disabled: s.decimal.length === 0
42300
+ }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
42301
+ value: t.decimalTick,
42302
+ customValues: s.decimal,
42303
+ onChange: (e, n) => {
42304
+ t.tickIntervalType === "Decimal" && (t.decimalTick = n, t.minor = n, a({ ticks: t }));
42218
42305
  },
42219
42306
  variant: "outlined",
42220
42307
  type: "number",
42221
- disabled: r.tickIntervalType !== "Decimal" || o.decimal.length === 0
42222
- }, r.tickIntervalType !== "Decimal" || o.decimal.length === 0 ? "decimalDisabled" : "decimalEnabled") })] })
42308
+ disabled: t.tickIntervalType !== "Decimal" || s.decimal.length === 0
42309
+ }, t.tickIntervalType !== "Decimal" || s.decimal.length === 0 ? "decimalDisabled" : "decimalEnabled") })] })
42223
42310
  ] }) })
42224
- })] }), /* @__PURE__ */ I(yZ, { children: [/* @__PURE__ */ F("label", { children: "Label Interval" }), /* @__PURE__ */ F(wZ, {
42225
- value: r.tickIntervalType === "Fraction" ? l : r.major,
42311
+ })] }), /* @__PURE__ */ I(OZ, { children: [/* @__PURE__ */ F("label", { children: "Label Interval" }), /* @__PURE__ */ F(NZ, {
42312
+ value: t.tickIntervalType === "Fraction" ? d : t.major,
42226
42313
  variant: "outlined",
42227
- customValues: r.tickIntervalType === "Fraction" ? s.fraction : s.decimal,
42228
- type: r.tickIntervalType === "Fraction" ? "text" : "number",
42229
- onChange: r.tickIntervalType === "Fraction" ? (e, t) => {
42230
- r.tickIntervalType === "Fraction" && (r.major = u(v(t)), i({ ticks: r }));
42231
- } : (e, t) => {
42232
- (r.tickIntervalType === "Decimal" || r.tickIntervalType === "Integer") && (r.major = t, i({ ticks: r }));
42314
+ customValues: t.tickIntervalType === "Fraction" ? c.fraction : c.decimal,
42315
+ type: t.tickIntervalType === "Fraction" ? "text" : "number",
42316
+ onChange: t.tickIntervalType === "Fraction" ? (e, n) => {
42317
+ t.tickIntervalType === "Fraction" && (t.major = u(r(n)), a({ ticks: t }));
42318
+ } : (e, n) => {
42319
+ (t.tickIntervalType === "Decimal" || t.tickIntervalType === "Integer") && (t.major = n, a({ ticks: t }));
42233
42320
  }
42234
42321
  })] })] });
42235
42322
  };
42236
- EZ.propTypes = {
42323
+ FZ.propTypes = {
42237
42324
  onChange: L.default.func,
42238
42325
  ticks: L.default.object,
42239
42326
  minorLimits: L.default.object,
@@ -42242,7 +42329,7 @@ EZ.propTypes = {
42242
42329
  };
42243
42330
  //#endregion
42244
42331
  //#region src/author/defaults.ts
42245
- var DZ = {
42332
+ var IZ = {
42246
42333
  correctResponse: [],
42247
42334
  feedback: {
42248
42335
  correct: {
@@ -42288,7 +42375,7 @@ var DZ = {
42288
42375
  teacherInstructionsEnabled: !0,
42289
42376
  toolbarEditorPosition: "bottom",
42290
42377
  widthEnabled: !0
42291
- }, OZ = {
42378
+ }, LZ = {
42292
42379
  baseInputConfiguration: {
42293
42380
  h3: { disabled: !0 },
42294
42381
  audio: { disabled: !1 },
@@ -42382,7 +42469,7 @@ var DZ = {
42382
42469
  "REP"
42383
42470
  ],
42384
42471
  settingsPanelDisabled: !1
42385
- }, kZ = () => "Validation requirements:\nThe correct answer should include at least one number line object.", AZ = (e) => ({
42472
+ }, RZ = () => "Validation requirements:\nThe correct answer should include at least one number line object.", zZ = (e) => ({
42386
42473
  ...e,
42387
42474
  feedback: void 0,
42388
42475
  prompt: void 0,
@@ -42393,35 +42480,35 @@ var DZ = {
42393
42480
  disabled: !0
42394
42481
  },
42395
42482
  correctResponse: void 0
42396
- }), { lineIsSwitched: jZ, switchGraphLine: MZ, toGraphFormat: NZ, toSessionFormat: PZ } = ye, { Panel: FZ, toggle: IZ } = AX, LZ = {}, RZ = {}, zZ = {}, BZ = N(qX)({
42483
+ }), { lineIsSwitched: BZ, switchGraphLine: VZ, toGraphFormat: HZ, toSessionFormat: UZ } = ye, { Panel: WZ, toggle: GZ } = zX, KZ = {}, qZ = {}, JZ = {}, YZ = N(nZ)({
42397
42484
  width: "150px",
42398
42485
  ".MuiInputBase-input": { padding: "16.5px 14px" }
42399
- }), VZ = N("div")(({ theme: e }) => ({
42486
+ }), XZ = N("div")(({ theme: e }) => ({
42400
42487
  display: "flex",
42401
42488
  flexWrap: "wrap",
42402
42489
  "& > *": { paddingRight: e.spacing(2) }
42403
- })), HZ = N("div")(({ theme: e }) => ({ margin: `${e.spacing(2.5)} 0` })), UZ = N(HX)(({ theme: e }) => ({
42490
+ })), ZZ = N("div")(({ theme: e }) => ({ margin: `${e.spacing(2.5)} 0` })), QZ = N(ZX)(({ theme: e }) => ({
42404
42491
  paddingTop: e.spacing(2),
42405
42492
  marginBottom: e.spacing(2),
42406
42493
  width: "100%"
42407
- })), WZ = N(FJ)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), GZ = N("div")(({ theme: e }) => ({
42494
+ })), $Z = N(WJ)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), eQ = N("div")(({ theme: e }) => ({
42408
42495
  fontSize: e.typography.fontSize - 2,
42409
42496
  color: e.palette.error.main,
42410
42497
  paddingTop: e.spacing(1)
42411
- })), KZ = N("div")({
42498
+ })), tQ = N("div")({
42412
42499
  display: "flex",
42413
42500
  alignItems: "center",
42414
42501
  gap: "10px"
42415
- }), qZ = N(FJ)({
42502
+ }), nQ = N(WJ)({
42416
42503
  display: "flex",
42417
42504
  alignItems: "center",
42418
42505
  gap: "10px"
42419
- }), JZ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), YZ = (e) => {
42506
+ }), rQ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), iQ = (e) => {
42420
42507
  function t(e) {
42421
42508
  return e.pointType ? e.direction ? `${e.pointType[0]}${e.direction[0]}` : e.pointType[0] : `${e.leftPoint[0]}${e.rightPoint[0]}`;
42422
42509
  }
42423
42510
  return `${e.type[0]}${t(e)}`.toUpperCase();
42424
- }, XZ = class extends xt.Component {
42511
+ }, aQ = class extends xt.Component {
42425
42512
  static propTypes = {
42426
42513
  model: L.default.object.isRequired,
42427
42514
  configuration: L.default.object.isRequired,
@@ -42506,62 +42593,62 @@ var DZ = {
42506
42593
  correctResponse: i
42507
42594
  });
42508
42595
  };
42509
- reloadTicksData = (t) => {
42510
- let { domain: r, ticks: i, width: a } = t;
42511
- if (i.tickIntervalType || (i.minor > .5 ? i.tickIntervalType = "Integer" : i.tickIntervalType = "Decimal"), LZ = ce(r, a), LZ.min >= 1) i.tickIntervalType = "Integer", i.minor = i.minor < 1 ? u(e(LZ.min)) : i.minor >= u(e(LZ.min)) && i.minor <= u(n(LZ.max)) ? i.minor : u(e(LZ.min)), i.integerTick = i.minor, RZ = {
42596
+ reloadTicksData = (e) => {
42597
+ let { domain: t, ticks: a, width: o } = e;
42598
+ if (a.tickIntervalType || (a.minor > .5 ? a.tickIntervalType = "Integer" : a.tickIntervalType = "Decimal"), KZ = ce(t, o), KZ.min >= 1) a.tickIntervalType = "Integer", a.minor = a.minor < 1 ? u(n(KZ.min)) : a.minor >= u(n(KZ.min)) && a.minor <= u(i(KZ.max)) ? a.minor : u(n(KZ.min)), a.integerTick = a.minor, qZ = {
42512
42599
  decimal: [],
42513
42600
  fraction: []
42514
- }, i.fractionTick = "0", i.decimalTick = 0;
42515
- else if (LZ.min >= 0 && LZ.max < 1) {
42516
- i.tickIntervalType === "Integer" && (i.tickIntervalType = "Fraction"), RZ = ie(LZ);
42517
- let e = u(v(RZ.fraction[0])), t = u(v(RZ.fraction[RZ.fraction.length - 1]));
42518
- if (i.minor < e || i.minor > t) switch (i.tickIntervalType) {
42601
+ }, a.fractionTick = "0", a.decimalTick = 0;
42602
+ else if (KZ.min >= 0 && KZ.max < 1) {
42603
+ a.tickIntervalType === "Integer" && (a.tickIntervalType = "Fraction"), qZ = ie(KZ);
42604
+ let e = u(r(qZ.fraction[0])), t = u(r(qZ.fraction[qZ.fraction.length - 1]));
42605
+ if (a.minor < e || a.minor > t) switch (a.tickIntervalType) {
42519
42606
  case "Fraction":
42520
- i.minor = u(v(RZ.fraction[RZ.fraction.length - 1])), i.fractionTick = RZ.fraction[RZ.fraction.length - 1], i.decimalTick = RZ.decimal[0];
42607
+ a.minor = u(r(qZ.fraction[qZ.fraction.length - 1])), a.fractionTick = qZ.fraction[qZ.fraction.length - 1], a.decimalTick = qZ.decimal[0];
42521
42608
  break;
42522
42609
  case "Decimal":
42523
- case "Integer": i.minor = RZ.decimal[RZ.decimal.length - 1], i.decimalTick = RZ.decimal[RZ.decimal.length - 1], i.fractionTick = RZ.fraction[0];
42610
+ case "Integer": a.minor = qZ.decimal[qZ.decimal.length - 1], a.decimalTick = qZ.decimal[qZ.decimal.length - 1], a.fractionTick = qZ.fraction[0];
42524
42611
  }
42525
- else switch (i.tickIntervalType) {
42612
+ else switch (a.tickIntervalType) {
42526
42613
  case "Fraction":
42527
- let e = v(u(i.minor));
42528
- i.fractionTick = e.n + "/" + e.d, i.decimalTick = i.decimalTick ? i.decimalTick : RZ.decimal[0];
42614
+ let e = r(u(a.minor));
42615
+ a.fractionTick = e.n + "/" + e.d, a.decimalTick = a.decimalTick ? a.decimalTick : qZ.decimal[0];
42529
42616
  break;
42530
42617
  case "Decimal":
42531
- case "Integer": i.decimalTick = i.minor, i.fractionTick = i.fractionTick ? i.fractionTick : RZ.fraction[0];
42618
+ case "Integer": a.decimalTick = a.minor, a.fractionTick = a.fractionTick ? a.fractionTick : qZ.fraction[0];
42532
42619
  }
42533
- i.integerTick = 1;
42534
- } else if (LZ.min < 1 && LZ.max >= 1) if (RZ = ie(LZ), i.minor >= LZ.min && i.minor <= LZ.max) switch (i.tickIntervalType) {
42620
+ a.integerTick = 1;
42621
+ } else if (KZ.min < 1 && KZ.max >= 1) if (qZ = ie(KZ), a.minor >= KZ.min && a.minor <= KZ.max) switch (a.tickIntervalType) {
42535
42622
  case "Integer":
42536
- i.integerTick = i.minor, i.decimalTick = LZ.min > .5 ? 0 : RZ.decimal[0], i.fractionTick = LZ.min > .5 ? "0" : RZ.fraction[0];
42623
+ a.integerTick = a.minor, a.decimalTick = KZ.min > .5 ? 0 : qZ.decimal[0], a.fractionTick = KZ.min > .5 ? "0" : qZ.fraction[0];
42537
42624
  break;
42538
42625
  case "Decimal":
42539
- i.integerTick = 1, i.decimalTick = i.minor, i.fractionTick = RZ.fraction[0];
42626
+ a.integerTick = 1, a.decimalTick = a.minor, a.fractionTick = qZ.fraction[0];
42540
42627
  break;
42541
42628
  case "Fraction":
42542
- i.integerTick = 1, i.decimalTick = RZ.decimal[0];
42543
- let e = v(u(i.minor));
42544
- i.fractionTick = e.n + "/" + e.d;
42629
+ a.integerTick = 1, a.decimalTick = qZ.decimal[0];
42630
+ let e = r(u(a.minor));
42631
+ a.fractionTick = e.n + "/" + e.d;
42545
42632
  }
42546
- else switch (LZ.min > .5 && (i.tickIntervalType = "Integer"), i.tickIntervalType) {
42633
+ else switch (KZ.min > .5 && (a.tickIntervalType = "Integer"), a.tickIntervalType) {
42547
42634
  case "Integer":
42548
- i.minor = u(e(LZ.min)), i.integerTick = i.minor, i.decimalTick = LZ.min > .5 ? 0 : RZ.decimal[0], i.fractionTick = LZ.min > .5 ? "0" : RZ.fraction[0];
42635
+ a.minor = u(n(KZ.min)), a.integerTick = a.minor, a.decimalTick = KZ.min > .5 ? 0 : qZ.decimal[0], a.fractionTick = KZ.min > .5 ? "0" : qZ.fraction[0];
42549
42636
  break;
42550
42637
  case "Decimal":
42551
- i.minor = RZ.decimal[0], i.integerTick = 1, i.decimalTick = i.minor, i.fractionTick = RZ.fraction[0];
42638
+ a.minor = qZ.decimal[0], a.integerTick = 1, a.decimalTick = a.minor, a.fractionTick = qZ.fraction[0];
42552
42639
  break;
42553
- case "Fraction": i.minor = u(v(RZ.fraction[0])), i.integerTick = 1, i.decimalTick = RZ.decimal[0], i.fractionTick = RZ.fraction[0];
42640
+ case "Fraction": a.minor = u(r(qZ.fraction[0])), a.integerTick = 1, a.decimalTick = qZ.decimal[0], a.fractionTick = qZ.fraction[0];
42554
42641
  }
42555
42642
  return this.updateMajorValue({
42556
- ...t,
42557
- ticks: i
42643
+ ...e,
42644
+ ticks: a
42558
42645
  });
42559
42646
  };
42560
42647
  updateMajorValue = (e) => {
42561
42648
  let { domain: t, ticks: n, width: r } = e;
42562
- if (zZ = O(n.minor, t, r), zZ.decimal.indexOf(n.major) === -1) {
42649
+ if (JZ = O(n.minor, t, r), JZ.decimal.indexOf(n.major) === -1) {
42563
42650
  let e = 0;
42564
- e = n.tickIntervalType === "Integer" && zZ.decimal.length > 4 ? 4 : zZ.decimal.length - 1, n.major = zZ.decimal[e];
42651
+ e = n.tickIntervalType === "Integer" && JZ.decimal.length > 4 ? 4 : JZ.decimal.length - 1, n.major = JZ.decimal[e];
42565
42652
  }
42566
42653
  return e.fraction = n.tickIntervalType === "Fraction" && n.major < 1, {
42567
42654
  ...e,
@@ -42570,20 +42657,20 @@ var DZ = {
42570
42657
  };
42571
42658
  changeArrows = (e) => this.graphChange({ arrows: e });
42572
42659
  setDefaults = () => {
42573
- let { graph: { availableTypes: e, maxNumberOfPoints: t } } = DZ, n = this.getAdjustedHeight(e, t), r = {
42574
- ...l(DZ.graph),
42660
+ let { graph: { availableTypes: e, maxNumberOfPoints: t } } = IZ, n = this.getAdjustedHeight(e, t), r = {
42661
+ ...l(IZ.graph),
42575
42662
  height: n
42576
42663
  };
42577
42664
  this.props.onChange({ graph: r });
42578
42665
  };
42579
42666
  moveCorrectResponse = (e, t, n) => {
42580
42667
  t.position = n;
42581
- let { onChange: r, model: i } = this.props, a = PZ(t.type === "line" && jZ(t) ? MZ(t) : t), o = [...i.correctResponse];
42668
+ let { onChange: r, model: i } = this.props, a = UZ(t.type === "line" && BZ(t) ? VZ(t) : t), o = [...i.correctResponse];
42582
42669
  o[e] = a, r({ correctResponse: o });
42583
42670
  };
42584
42671
  availableTypesChange = (e) => {
42585
42672
  let { model: t, onChange: n } = this.props, { correctResponse: r, graph: { maxNumberOfPoints: i } } = t;
42586
- new Set(r.map(YZ)).forEach((t) => {
42673
+ new Set(r.map(iQ)).forEach((t) => {
42587
42674
  e[t] = !0;
42588
42675
  });
42589
42676
  let a = this.getAdjustedHeight(e, i);
@@ -42599,7 +42686,7 @@ var DZ = {
42599
42686
  };
42600
42687
  addCorrectResponse = (e) => {
42601
42688
  let { model: t, onChange: n } = this.props, r = [...t.correctResponse];
42602
- r.push(PZ(e)), n({ correctResponse: r });
42689
+ r.push(UZ(e)), n({ correctResponse: r });
42603
42690
  };
42604
42691
  clearCorrectResponse = () => {
42605
42692
  let { onChange: e } = this.props;
@@ -42612,23 +42699,23 @@ var DZ = {
42612
42699
  render() {
42613
42700
  let { model: e, onChange: t, configuration: n, onConfigurationChanged: r, uploadSoundSupport: i, imageSupport: a } = this.props, { baseInputConfiguration: o = {}, contentDimensions: s = {}, instruction: c = {}, teacherInstructions: u = {}, title: d = {}, prompt: f = {}, rationale: p = {}, spellCheck: m = {}, mathMlOptions: h = {}, numberLineDimensions: g = {}, maxMaxElements: _ = 20, hidePointConfigButtons: v = !1, availableTools: y = ["PF"], settingsPanelDisabled: b = !1 } = n || {}, { errors: x = {}, extraCSSRules: S, spellCheckEnabled: C, toolbarEditorPosition: w, teacherInstructionsEnabled: T, titleEnabled: E, promptEnabled: ee, rationaleEnabled: D } = e || {}, { graph: O } = e;
42614
42701
  O = this.reloadTicksData(O);
42615
- let { dialog: te, correctAnswerDialog: ne } = this.state, { correctResponseError: re, domainError: ie, maxError: ae, pointsError: oe, prompt: se, rationale: ce, teacherInstructions: le, widthError: ue } = x || {}, de = kZ(), fe = l(e.correctResponse || []).map(NZ), pe = l(e);
42702
+ let { dialog: te, correctAnswerDialog: ne } = this.state, { correctResponseError: re, domainError: ie, maxError: ae, pointsError: oe, prompt: se, rationale: ce, teacherInstructions: le, widthError: ue } = x || {}, de = RZ(), fe = l(e.correctResponse || []).map(HZ), pe = l(e);
42616
42703
  pe.disabled = !0;
42617
42704
  let me = { position: w === "top" ? "top" : "bottom" }, he = {
42618
- teacherInstructionsEnabled: u.settings && IZ(u.label),
42619
- titleEnabled: d.settings && IZ(d.label),
42620
- promptEnabled: f.settings && IZ(f.label),
42621
- rationaleEnabled: p.settings && IZ(p.label),
42622
- spellCheckEnabled: m.settings && IZ(m.label)
42705
+ teacherInstructionsEnabled: u.settings && GZ(u.label),
42706
+ titleEnabled: d.settings && GZ(d.label),
42707
+ promptEnabled: f.settings && GZ(f.label),
42708
+ rationaleEnabled: p.settings && GZ(p.label),
42709
+ spellCheckEnabled: m.settings && GZ(m.label)
42623
42710
  }, k = (e = {}) => ({
42624
42711
  ...o,
42625
42712
  ...e
42626
42713
  });
42627
- return /* @__PURE__ */ I(tX.ConfigLayout, {
42714
+ return /* @__PURE__ */ I(uX.ConfigLayout, {
42628
42715
  extraCSSRules: S,
42629
42716
  dimensions: s,
42630
42717
  hideSettings: b,
42631
- settings: /* @__PURE__ */ F(FZ, {
42718
+ settings: /* @__PURE__ */ F(WZ, {
42632
42719
  model: e,
42633
42720
  configuration: n,
42634
42721
  onChangeModel: t,
@@ -42636,14 +42723,14 @@ var DZ = {
42636
42723
  groups: { Properties: he }
42637
42724
  }),
42638
42725
  children: [
42639
- /* @__PURE__ */ F(JZ, {
42726
+ /* @__PURE__ */ F(rQ, {
42640
42727
  component: "div",
42641
42728
  type: "body1",
42642
42729
  children: c.label
42643
42730
  }),
42644
- T && /* @__PURE__ */ I(UZ, {
42731
+ T && /* @__PURE__ */ I(QZ, {
42645
42732
  label: u.label,
42646
- children: [/* @__PURE__ */ F(mJ, {
42733
+ children: [/* @__PURE__ */ F(CJ, {
42647
42734
  markup: e.teacherInstructions || "",
42648
42735
  onChange: (e) => t({ teacherInstructions: e }),
42649
42736
  nonEmpty: !1,
@@ -42656,11 +42743,11 @@ var DZ = {
42656
42743
  uploadSoundSupport: i,
42657
42744
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42658
42745
  mathMlOptions: h
42659
- }), le && /* @__PURE__ */ F(GZ, { children: le })]
42746
+ }), le && /* @__PURE__ */ F(eQ, { children: le })]
42660
42747
  }),
42661
- ee && /* @__PURE__ */ I(UZ, {
42748
+ ee && /* @__PURE__ */ I(QZ, {
42662
42749
  label: f.label,
42663
- children: [/* @__PURE__ */ F(mJ, {
42750
+ children: [/* @__PURE__ */ F(CJ, {
42664
42751
  markup: e.prompt || "",
42665
42752
  onChange: (e) => t({ prompt: e }),
42666
42753
  nonEmpty: !1,
@@ -42673,9 +42760,9 @@ var DZ = {
42673
42760
  uploadSoundSupport: i,
42674
42761
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42675
42762
  mathMlOptions: h
42676
- }), se && /* @__PURE__ */ F(GZ, { children: se })]
42763
+ }), se && /* @__PURE__ */ F(eQ, { children: se })]
42677
42764
  }),
42678
- /* @__PURE__ */ F(QX, {
42765
+ /* @__PURE__ */ F(sZ, {
42679
42766
  header: "Set Up Number Line",
42680
42767
  info: /* @__PURE__ */ F(Qs, {
42681
42768
  disableFocusListener: !0,
@@ -42687,7 +42774,7 @@ var DZ = {
42687
42774
  whiteSpace: "pre",
42688
42775
  maxWidth: "500px"
42689
42776
  }) } },
42690
- children: /* @__PURE__ */ F(gZ, {
42777
+ children: /* @__PURE__ */ F(TZ, {
42691
42778
  fontSize: "small",
42692
42779
  color: "primary",
42693
42780
  style: { marginLeft: "8px" }
@@ -42695,22 +42782,22 @@ var DZ = {
42695
42782
  }),
42696
42783
  children: "Set up the number line by entering the domain and number of tick marks to display. Labels on the number line can be edited or removed by clicking on the label."
42697
42784
  }),
42698
- /* @__PURE__ */ F(VZ, { children: /* @__PURE__ */ F(lZ, {
42785
+ /* @__PURE__ */ F(XZ, { children: /* @__PURE__ */ F(vZ, {
42699
42786
  domain: O.domain,
42700
42787
  errors: x,
42701
42788
  onChange: (e) => this.graphChange({ domain: e })
42702
42789
  }) }),
42703
- ae && /* @__PURE__ */ F(GZ, { children: ae }),
42704
- ie && /* @__PURE__ */ F(GZ, { children: ie }),
42705
- /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(FJ, { children: /* @__PURE__ */ F(EZ, {
42790
+ ae && /* @__PURE__ */ F(eQ, { children: ae }),
42791
+ ie && /* @__PURE__ */ F(eQ, { children: ie }),
42792
+ /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(WJ, { children: /* @__PURE__ */ F(FZ, {
42706
42793
  ticks: O.ticks,
42707
- minorLimits: LZ,
42708
- minorValues: RZ,
42709
- majorValues: zZ,
42794
+ minorLimits: KZ,
42795
+ minorValues: qZ,
42796
+ majorValues: JZ,
42710
42797
  onChange: this.changeTicks
42711
42798
  }) }) }),
42712
- /* @__PURE__ */ I(KZ, { children: [
42713
- e.widthEnabled && /* @__PURE__ */ F(rZ, {
42799
+ /* @__PURE__ */ I(tQ, { children: [
42800
+ e.widthEnabled && /* @__PURE__ */ F(fZ, {
42714
42801
  size: O,
42715
42802
  min: g.min,
42716
42803
  max: g.max,
@@ -42718,12 +42805,12 @@ var DZ = {
42718
42805
  onChange: this.changeSize
42719
42806
  }),
42720
42807
  /* @__PURE__ */ F("div", {}),
42721
- /* @__PURE__ */ F(fZ, {
42808
+ /* @__PURE__ */ F(xZ, {
42722
42809
  arrows: O.arrows,
42723
42810
  onChange: this.changeArrows
42724
42811
  })
42725
42812
  ] }),
42726
- ue && /* @__PURE__ */ F(GZ, { children: ue }),
42813
+ ue && /* @__PURE__ */ F(eQ, { children: ue }),
42727
42814
  /* @__PURE__ */ F($e, {
42728
42815
  onMoveElement: () => {},
42729
42816
  onDeleteElements: () => {},
@@ -42733,11 +42820,11 @@ var DZ = {
42733
42820
  minWidth: g.min,
42734
42821
  maxWidth: g.max,
42735
42822
  maxHeight: 70,
42736
- model: AZ(pe)
42823
+ model: zZ(pe)
42737
42824
  }),
42738
- E && /* @__PURE__ */ F(WZ, {
42825
+ E && /* @__PURE__ */ F($Z, {
42739
42826
  label: d?.label || "Title",
42740
- children: /* @__PURE__ */ F(mJ, {
42827
+ children: /* @__PURE__ */ F(CJ, {
42741
42828
  markup: O.title || "",
42742
42829
  onChange: this.changeGraphTitle,
42743
42830
  toolbarOpts: me,
@@ -42761,31 +42848,31 @@ var DZ = {
42761
42848
  })
42762
42849
  }),
42763
42850
  !O.exhibitOnly && /* @__PURE__ */ I(xt.Fragment, { children: [
42764
- /* @__PURE__ */ I(QX, {
42851
+ /* @__PURE__ */ I(sZ, {
42765
42852
  header: "Define Tool Set and Correct Response",
42766
42853
  children: ["Select answer type and place it on the number line. Intersecting points, line segments and/or rays will appear above the number line. ", /* @__PURE__ */ F("i", { children: "Note: A maximum of 20 points, line segments or rays may be plotted." })]
42767
42854
  }),
42768
- /* @__PURE__ */ F(QX, {
42855
+ /* @__PURE__ */ F(sZ, {
42769
42856
  header: "Available Tools",
42770
42857
  mini: !0,
42771
42858
  children: "Click on the input options to be displayed to the students. All inputs will display by default."
42772
42859
  }),
42773
- /* @__PURE__ */ F(HZ, { children: /* @__PURE__ */ F(hZ, {
42860
+ /* @__PURE__ */ F(ZZ, { children: /* @__PURE__ */ F(wZ, {
42774
42861
  onSelectionChange: this.availableTypesChange,
42775
42862
  selection: O.availableTypes,
42776
42863
  availableTools: y,
42777
42864
  hideButtons: v
42778
42865
  }) }),
42779
- /* @__PURE__ */ I(qZ, { children: [
42866
+ /* @__PURE__ */ I(nQ, { children: [
42780
42867
  /* @__PURE__ */ F("label", { children: "Max No of Elements" }),
42781
- /* @__PURE__ */ F(BZ, {
42868
+ /* @__PURE__ */ F(YZ, {
42782
42869
  min: 1,
42783
42870
  max: _,
42784
42871
  onlyIntegersAllowed: !0,
42785
42872
  value: O.maxNumberOfPoints,
42786
42873
  onChange: this.changeMaxNoOfPoints
42787
42874
  }),
42788
- oe && /* @__PURE__ */ F(GZ, { children: oe })
42875
+ oe && /* @__PURE__ */ F(eQ, { children: oe })
42789
42876
  ] }),
42790
42877
  /* @__PURE__ */ F("label", { children: "Correct Answer" }),
42791
42878
  /* @__PURE__ */ F($e, {
@@ -42797,9 +42884,9 @@ var DZ = {
42797
42884
  minWidth: g.min,
42798
42885
  maxWidth: g.max,
42799
42886
  answer: fe,
42800
- model: AZ(e)
42887
+ model: zZ(e)
42801
42888
  }),
42802
- re && /* @__PURE__ */ F(GZ, { children: re })
42889
+ re && /* @__PURE__ */ F(eQ, { children: re })
42803
42890
  ] }),
42804
42891
  /* @__PURE__ */ F(Uc, {
42805
42892
  open: te.open,
@@ -42822,9 +42909,9 @@ var DZ = {
42822
42909
  onConfirmText: "OK",
42823
42910
  onCloseText: "Cancel"
42824
42911
  }),
42825
- D && /* @__PURE__ */ I(UZ, {
42912
+ D && /* @__PURE__ */ I(QZ, {
42826
42913
  label: p.label || "Rationale",
42827
- children: [/* @__PURE__ */ F(mJ, {
42914
+ children: [/* @__PURE__ */ F(CJ, {
42828
42915
  markup: e.rationale || "",
42829
42916
  onChange: (e) => t({ rationale: e }),
42830
42917
  error: ce,
@@ -42835,12 +42922,12 @@ var DZ = {
42835
42922
  uploadSoundSupport: i,
42836
42923
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42837
42924
  mathMlOptions: h
42838
- }), ce && /* @__PURE__ */ F(GZ, { children: ce })]
42925
+ }), ce && /* @__PURE__ */ F(eQ, { children: ce })]
42839
42926
  })
42840
42927
  ]
42841
42928
  });
42842
42929
  }
42843
- }, ZZ = class e extends CustomEvent {
42930
+ }, oQ = class e extends CustomEvent {
42844
42931
  static {
42845
42932
  this.TYPE = "model.updated";
42846
42933
  }
@@ -42853,7 +42940,7 @@ var DZ = {
42853
42940
  }
42854
42941
  }), this.update = t, this.reset = n;
42855
42942
  }
42856
- }, QZ = class e extends CustomEvent {
42943
+ }, sQ = class e extends CustomEvent {
42857
42944
  static {
42858
42945
  this.TYPE = "delete.image";
42859
42946
  }
@@ -42866,7 +42953,7 @@ var DZ = {
42866
42953
  }
42867
42954
  }), this.src = t, this.done = n;
42868
42955
  }
42869
- }, $Z = class e extends CustomEvent {
42956
+ }, cQ = class e extends CustomEvent {
42870
42957
  static {
42871
42958
  this.TYPE = "insert.image";
42872
42959
  }
@@ -42876,7 +42963,7 @@ var DZ = {
42876
42963
  detail: t
42877
42964
  }), this.handler = t;
42878
42965
  }
42879
- }, eQ = class e extends CustomEvent {
42966
+ }, lQ = class e extends CustomEvent {
42880
42967
  static {
42881
42968
  this.TYPE = "delete.sound";
42882
42969
  }
@@ -42889,7 +42976,7 @@ var DZ = {
42889
42976
  }
42890
42977
  }), this.src = t, this.done = n;
42891
42978
  }
42892
- }, tQ = class e extends CustomEvent {
42979
+ }, uQ = class e extends CustomEvent {
42893
42980
  static {
42894
42981
  this.TYPE = "insert.sound";
42895
42982
  }
@@ -42899,7 +42986,7 @@ var DZ = {
42899
42986
  detail: t
42900
42987
  }), this.handler = t;
42901
42988
  }
42902
- }, nQ = (e) => {
42989
+ }, dQ = (e) => {
42903
42990
  let { graph: { domain: t, labelStep: n, ticks: r = {} } = {} } = e, { minor: i, major: a } = r;
42904
42991
  if (t && (t.min = Number((t.min || 0).toFixed(2)), t.max = Number((t.max || 0).toFixed(2))), n && typeof n == "string" && n.match(/^[1-9][0-9]*\/[1-9][0-9]*$/g)) {
42905
42992
  e.graph.fraction = !0, r.tickIntervalType = "Fraction";
@@ -42907,17 +42994,17 @@ var DZ = {
42907
42994
  t !== a && (r.major = t, r.minor = t / (a / i));
42908
42995
  }
42909
42996
  return e;
42910
- }, rQ = class e extends HTMLElement {
42997
+ }, fQ = class e extends HTMLElement {
42911
42998
  static createDefaultModel = (e = {}) => {
42912
- let t = OZ, n = e.language || "";
42913
- return !n && t.language && t.language.enabled && t.languageChoices?.options?.length && (n = t.languageChoices.options[0].value), nQ({
42914
- ...DZ,
42999
+ let t = LZ, n = e.language || "";
43000
+ return !n && t.language && t.language.enabled && t.languageChoices?.options?.length && (n = t.languageChoices.options[0].value), dQ({
43001
+ ...IZ,
42915
43002
  ...e,
42916
43003
  language: n
42917
43004
  });
42918
43005
  };
42919
43006
  constructor() {
42920
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = OZ;
43007
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = LZ;
42921
43008
  }
42922
43009
  set model(t) {
42923
43010
  this._model = e.createDefaultModel(t), this._modelCopy = l(this._model), this._rerender();
@@ -42928,7 +43015,7 @@ var DZ = {
42928
43015
  };
42929
43016
  set configuration(e) {
42930
43017
  let t = {
42931
- ...OZ,
43018
+ ...LZ,
42932
43019
  ...e
42933
43020
  };
42934
43021
  this._configuration = t, this.resetModelAfterConfigurationIsSet(), t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
@@ -42940,25 +43027,25 @@ var DZ = {
42940
43027
  this._model = {
42941
43028
  ...this._model,
42942
43029
  ...e
42943
- }, this.dispatchEvent(new ZZ(this._model)), this._rerender();
43030
+ }, this.dispatchEvent(new oQ(this._model)), this._rerender();
42944
43031
  };
42945
43032
  onConfigurationChanged = (e) => {
42946
43033
  this._configuration = e, this._render();
42947
43034
  };
42948
43035
  insertImage(e) {
42949
- this.dispatchEvent(new $Z(e));
43036
+ this.dispatchEvent(new cQ(e));
42950
43037
  }
42951
43038
  onDeleteImage(e, t) {
42952
- this.dispatchEvent(new QZ(e, t));
43039
+ this.dispatchEvent(new sQ(e, t));
42953
43040
  }
42954
43041
  insertSound(e) {
42955
- this.dispatchEvent(new tQ(e));
43042
+ this.dispatchEvent(new uQ(e));
42956
43043
  }
42957
43044
  onDeleteSound(e, t) {
42958
- this.dispatchEvent(new eQ(e, t));
43045
+ this.dispatchEvent(new lQ(e, t));
42959
43046
  }
42960
43047
  _rerender() {
42961
- let e = xt.createElement(XZ, {
43048
+ let e = xt.createElement(aQ, {
42962
43049
  model: this._model,
42963
43050
  configuration: this._configuration,
42964
43051
  onChange: this.onChange,
@@ -42982,6 +43069,6 @@ var DZ = {
42982
43069
  }
42983
43070
  };
42984
43071
  //#endregion
42985
- export { rQ as default };
43072
+ export { fQ as default };
42986
43073
 
42987
43074
  //# sourceMappingURL=index.js.map