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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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-RCwd5oLH.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 {
@@ -40154,34 +40221,55 @@ var nJ = Gx.create({
40154
40221
  },
40155
40222
  addNodeView() {
40156
40223
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
40157
- let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize;
40158
- return ({ node: i, getPos: a, HTMLAttributes: o, editor: s }) => {
40159
- let c = document.createElement("img");
40160
- Object.entries(o).forEach(([e, t]) => {
40224
+ let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
40225
+ "src",
40226
+ "width",
40227
+ "height"
40228
+ ]);
40229
+ return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
40230
+ let l = document.createElement("img");
40231
+ l.draggable = !1;
40232
+ let u = Nb(this.options.HTMLAttributes, s);
40233
+ Object.entries(u).forEach(([e, t]) => {
40161
40234
  if (t != null) switch (e) {
40235
+ case "src":
40162
40236
  case "width":
40163
40237
  case "height": break;
40164
- default:
40165
- c.setAttribute(e, t);
40166
- break;
40238
+ default: l.setAttribute(e, t);
40167
40239
  }
40168
- }), c.src = o.src;
40169
- let l = new vS({
40170
- element: c,
40171
- editor: s,
40172
- node: i,
40173
- getPos: a,
40240
+ }), u.src !== null && (l.src = u.src);
40241
+ let d = { ...s }, f = (e) => {
40242
+ if (typeof e == "string" && e !== "") {
40243
+ l.getAttribute("src") !== e && (l.src = e);
40244
+ return;
40245
+ }
40246
+ l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
40247
+ };
40248
+ f(s.src);
40249
+ let p = new vS({
40250
+ element: l,
40251
+ editor: c,
40252
+ node: a,
40253
+ getPos: o,
40174
40254
  onResize: (e, t) => {
40175
- c.style.width = `${e}px`, c.style.height = `${t}px`;
40255
+ l.style.width = `${e}px`, l.style.height = `${t}px`;
40176
40256
  },
40177
40257
  onCommit: (e, t) => {
40178
- let n = a();
40258
+ let n = o();
40179
40259
  n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
40180
40260
  width: e,
40181
40261
  height: t
40182
40262
  }).run();
40183
40263
  },
40184
- onUpdate: (e, t, n) => e.type === i.type,
40264
+ onUpdate: (e) => {
40265
+ if (e.type !== a.type) return !1;
40266
+ let t = Pb(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
40267
+ return Object.keys(d).forEach((e) => {
40268
+ !i.has(e) && !(e in t) && l.removeAttribute(e);
40269
+ }), Object.entries(t).forEach(([e, t]) => {
40270
+ i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
40271
+ }), f(t.src), d = t, !0;
40272
+ },
40185
40273
  options: {
40186
40274
  directions: e,
40187
40275
  min: {
@@ -40190,10 +40278,10 @@ var nJ = Gx.create({
40190
40278
  },
40191
40279
  preserveAspectRatio: r === !0
40192
40280
  }
40193
- }), u = l.dom;
40194
- return u.style.visibility = "hidden", u.style.pointerEvents = "none", c.onload = () => {
40195
- u.style.visibility = "", u.style.pointerEvents = "";
40196
- }, l;
40281
+ }), m = p.dom, h = () => {
40282
+ m.style.visibility = "", m.style.pointerEvents = "";
40283
+ };
40284
+ return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
40197
40285
  };
40198
40286
  },
40199
40287
  addCommands() {
@@ -40204,7 +40292,7 @@ var nJ = Gx.create({
40204
40292
  },
40205
40293
  addInputRules() {
40206
40294
  return [hS({
40207
- find: aJ,
40295
+ find: pJ,
40208
40296
  type: this.type,
40209
40297
  getAttributes: (e) => {
40210
40298
  let [, , t, n, r] = e;
@@ -40216,17 +40304,17 @@ var nJ = Gx.create({
40216
40304
  }
40217
40305
  })];
40218
40306
  }
40219
- }), sJ = eJ, cJ = {
40307
+ }), hJ = iJ, gJ = {
40220
40308
  position: "bottom",
40221
40309
  alignment: "left",
40222
40310
  alwaysVisible: !1,
40223
40311
  showDone: !0,
40224
40312
  doneOn: "blur"
40225
- }, lJ = {
40313
+ }, _J = {
40226
40314
  options: {},
40227
40315
  respAreaToolbar: () => {},
40228
40316
  onHandleAreaChange: () => {}
40229
- }, uJ = [
40317
+ }, vJ = [
40230
40318
  "bold",
40231
40319
  "italic",
40232
40320
  "underline",
@@ -40248,7 +40336,7 @@ var nJ = Gx.create({
40248
40336
  "h3",
40249
40337
  "undo",
40250
40338
  "redo"
40251
- ], dJ = {
40339
+ ], yJ = {
40252
40340
  "--white": "#fff",
40253
40341
  "--black": "#2e2b29",
40254
40342
  "--black-contrast": "#110f0e",
@@ -40267,14 +40355,18 @@ var nJ = Gx.create({
40267
40355
  "--red": "#ff5c33",
40268
40356
  "--red-light": "#ffebe5",
40269
40357
  "--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) => {
40358
+ }, bJ = (e) => ({
40359
+ spellcheck: e ? "true" : "false",
40360
+ autocorrect: e ? "on" : "off",
40361
+ autocapitalize: e ? "on" : "off"
40362
+ }), xJ = (e) => {
40271
40363
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Ft([]), [a, o] = Ft(!1), { toolbarOpts: s } = e, c = Ot((e) => {
40272
40364
  i((t) => {
40273
40365
  let n = t.filter((t) => t.pos !== e);
40274
40366
  return n.length === 0 && o(!1), n;
40275
40367
  });
40276
40368
  }, [i]), l = {
40277
- ...cJ,
40369
+ ...gJ,
40278
40370
  ...s
40279
40371
  }, u = Ot((t) => {
40280
40372
  let n = t.getHTML();
@@ -40285,13 +40377,13 @@ var nJ = Gx.create({
40285
40377
  e.onDone,
40286
40378
  l.doneOn
40287
40379
  ]), d = Nt(() => ({
40288
- ...lJ,
40380
+ ..._J,
40289
40381
  ...e.responseAreaProps,
40290
40382
  onInlineDropdownToolbarClose: u
40291
40383
  }), [e.responseAreaProps, u]), p = Nt(() => {
40292
40384
  let { customPlugins: t, ...n } = e.pluginProps || {};
40293
40385
  t ||= [];
40294
- let r = (e.activePlugins || uJ)?.filter((e) => {
40386
+ let r = (e.activePlugins || vJ)?.filter((e) => {
40295
40387
  let t = Xc[e] || e, r = n[t] || {};
40296
40388
  return !r || !r.disabled;
40297
40389
  });
@@ -40309,103 +40401,112 @@ var nJ = Gx.create({
40309
40401
  setKeypadInteraction: {},
40310
40402
  media: {}
40311
40403
  });
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: {
40404
+ }, [e, d.type]), m = [
40405
+ fJ.configure({
40406
+ types: [
40407
+ "heading",
40408
+ "paragraph",
40409
+ "div",
40410
+ "headingParagraph",
40411
+ "h1",
40412
+ "h2",
40413
+ "h3",
40414
+ "h4",
40415
+ "h5",
40416
+ "h6",
40417
+ "td",
40418
+ "th"
40419
+ ],
40420
+ alignments: [
40421
+ "left",
40422
+ "right",
40423
+ "center",
40424
+ "justify"
40425
+ ]
40426
+ }),
40427
+ zq,
40428
+ Bq.configure({ limit: e.charactersLimit || 1e6 }),
40429
+ kq.configure({
40430
+ trailingNode: {
40339
40431
  node: "paragraph",
40340
40432
  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
- ],
40433
+ },
40434
+ link: {
40435
+ autolink: !1,
40436
+ linkOnPaste: !1
40437
+ }
40438
+ }),
40439
+ NR,
40440
+ sk,
40441
+ PR,
40442
+ ck,
40443
+ lk,
40444
+ hJ.configure({
40445
+ placeholder: e.placeholder,
40446
+ showOnlyWhenEditable: !0,
40447
+ showOnlyCurrent: !1,
40448
+ includeChildren: !0
40449
+ }),
40450
+ rk,
40451
+ VO,
40452
+ ok,
40453
+ ak,
40454
+ _I.configure(d),
40455
+ vI.configure(d),
40456
+ bI.configure(d),
40457
+ xI.configure(d),
40458
+ yI.configure(d),
40459
+ iL.configure({
40460
+ toolbarOpts: l,
40461
+ math: e.pluginProps?.math || {}
40462
+ }),
40463
+ dJ,
40464
+ uJ,
40465
+ mJ,
40466
+ TL.configure({
40467
+ toolbarOpts: l,
40468
+ imageHandling: {
40469
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
40470
+ onDone: (t) => e.onDone?.(t.getHTML()),
40471
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
40472
+ let { src: n } = t.attrs;
40473
+ e.imageSupport.delete(n, (e) => {
40474
+ c(t.pos);
40475
+ });
40476
+ }),
40477
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
40478
+ let [o, s] = n, l = (n) => {
40479
+ let r;
40480
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
40481
+ };
40482
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
40483
+ let n = r(l), i = f(() => {
40484
+ let e = () => window.removeEventListener("focus", i);
40485
+ if (!t._insertingImage) {
40486
+ e();
40487
+ return;
40488
+ }
40489
+ c(s), t._insertingImage = !1, e();
40490
+ }, 500);
40491
+ window.addEventListener("focus", i), e.imageSupport.add(n);
40492
+ })();
40493
+ }),
40494
+ maxImageWidth: e.maxImageWidth,
40495
+ maxImageHeight: e.maxImageHeight
40496
+ },
40497
+ limit: 3
40498
+ }),
40499
+ KL.configure({ uploadSoundSupport: e.uploadSoundSupport }),
40500
+ QL.configure({ extraCSSRules: e.extraCSSRules })
40501
+ ], h = e.spellCheck !== !1, g = FA({
40502
+ extensions: m,
40405
40503
  immediatelyRender: !1,
40406
- editorProps: { handleKeyDown(t, n) {
40407
- return e.onKeyDown ? e.onKeyDown(n) : !1;
40408
- } },
40504
+ editorProps: {
40505
+ attributes: bJ(h),
40506
+ handleKeyDown(t, n) {
40507
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
40508
+ }
40509
+ },
40409
40510
  editable: !e.disabled,
40410
40511
  content: tl(e.markup),
40411
40512
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -40416,22 +40517,29 @@ var nJ = Gx.create({
40416
40517
  }
40417
40518
  }, [e.charactersLimit]);
40418
40519
  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;
40520
+ e.editorRef && e.editorRef(g);
40521
+ }, [e.editorRef, g]), jt(() => {
40522
+ g?.setEditable(!e.disabled);
40523
+ }, [e.disabled, g]), jt(() => {
40524
+ if (!g) return;
40525
+ let e = g.options?.editorProps, t = bJ(h);
40526
+ e?.attributes?.spellcheck !== t.spellcheck && g.setOptions({ editorProps: {
40527
+ ...e,
40528
+ attributes: t
40529
+ } });
40530
+ }, [h, g]), jt(() => {
40531
+ if (!g) return;
40424
40532
  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]) => {
40533
+ t !== g.getHTML() && g.commands.setContent(t, { emitUpdate: !1 });
40534
+ }, [e.markup, g]), jt(() => {
40535
+ Object.entries(yJ).forEach(([e, t]) => {
40428
40536
  document.documentElement.style.setProperty(e, t);
40429
40537
  });
40430
40538
  }, []);
40431
- let h = jA({
40432
- editor: m,
40539
+ let _ = jA({
40540
+ editor: g,
40433
40541
  selector: (e) => ({ isFocused: e.editor?.isFocused })
40434
- }), g = Nt(() => {
40542
+ }), v = Nt(() => {
40435
40543
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
40436
40544
  return {
40437
40545
  width: FR(n),
@@ -40446,20 +40554,20 @@ var nJ = Gx.create({
40446
40554
  ...e,
40447
40555
  activePlugins: p,
40448
40556
  toolbarOpts: l,
40449
- editorState: h,
40450
- editor: m,
40451
- children: m && /* @__PURE__ */ F(pJ, {
40557
+ editorState: _,
40558
+ editor: g,
40559
+ children: g && /* @__PURE__ */ F(SJ, {
40452
40560
  style: {
40453
- minHeight: g.minHeight,
40454
- height: g.height,
40455
- maxHeight: g.maxHeight
40561
+ minHeight: v.minHeight,
40562
+ height: v.height,
40563
+ maxHeight: v.maxHeight
40456
40564
  },
40457
40565
  showParagraph: t && !t.disabled,
40458
40566
  separateParagraph: n && !n.disabled,
40459
- editor: m
40567
+ editor: g
40460
40568
  })
40461
40569
  });
40462
- }, pJ = N(OA, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
40570
+ }, SJ = N(OA, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
40463
40571
  display: "flex",
40464
40572
  outline: "none !important",
40465
40573
  "& .ProseMirror": {
@@ -40487,43 +40595,43 @@ var nJ = Gx.create({
40487
40595
  } },
40488
40596
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
40489
40597
  }
40490
- })), mJ = fJ;
40598
+ })), CJ = xJ;
40491
40599
  //#endregion
40492
40600
  //#region ../../lib-react/config-ui/dist/inputs.js
40493
- function hJ(e) {
40601
+ function wJ(e) {
40494
40602
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40495
40603
  }
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;
40604
+ function TJ(e, t) {
40605
+ 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
40606
  }
40499
- var _J = gJ(Ie, "InputContainer") || gJ(bJ.InputContainer, "InputContainer"), vJ = tt, yJ = vJ.default, bJ = yJ && typeof yJ == "object" ? yJ : vJ, xJ = {
40607
+ var EJ = TJ(Ie, "InputContainer") || TJ(kJ.InputContainer, "InputContainer"), DJ = tt, OJ = DJ.default, kJ = OJ && typeof OJ == "object" ? OJ : DJ, AJ = {
40500
40608
  className: L.default.string,
40501
40609
  label: L.default.string,
40502
40610
  checked: L.default.bool,
40503
40611
  onChange: L.default.func,
40504
40612
  disabled: L.default.bool,
40505
40613
  error: L.default.string
40506
- }, SJ = N(oc)(() => ({
40614
+ }, jJ = N(oc)(() => ({
40507
40615
  justifyContent: "inherit",
40508
40616
  transform: "translate(-20%, 20%)"
40509
- })), CJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ F(_J, {
40617
+ })), MJ = ({ className: e, label: t, checked: n, onChange: r }) => /* @__PURE__ */ F(EJ, {
40510
40618
  className: e,
40511
40619
  label: t,
40512
- children: /* @__PURE__ */ F(SJ, {
40620
+ children: /* @__PURE__ */ F(jJ, {
40513
40621
  checked: n,
40514
40622
  onChange: r,
40515
40623
  "aria-label": t
40516
40624
  })
40517
40625
  });
40518
- CJ.propTypes = { ...xJ };
40519
- var wJ = N(Zi)(({ theme: e, error: t }) => ({
40626
+ MJ.propTypes = { ...AJ };
40627
+ var NJ = N(Zi)(({ theme: e, error: t }) => ({
40520
40628
  transform: "translate(-25%, 20%)",
40521
40629
  color: `${k.tertiary()} !important`,
40522
40630
  ...t && { color: `${e.palette.error.main} !important` }
40523
- })), TJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(_J, {
40631
+ })), PJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(EJ, {
40524
40632
  className: e,
40525
40633
  label: t,
40526
- children: /* @__PURE__ */ F(wJ, {
40634
+ children: /* @__PURE__ */ F(NJ, {
40527
40635
  disabled: i,
40528
40636
  checked: n,
40529
40637
  onChange: r,
@@ -40531,15 +40639,15 @@ var wJ = N(Zi)(({ theme: e, error: t }) => ({
40531
40639
  error: a
40532
40640
  })
40533
40641
  });
40534
- TJ.propTypes = { ...xJ };
40535
- var EJ = N(Ls)(({ theme: e, error: t }) => ({
40642
+ PJ.propTypes = { ...AJ };
40643
+ var FJ = N(Ls)(({ theme: e, error: t }) => ({
40536
40644
  transform: "translate(-20%, 20%)",
40537
40645
  color: `${k.tertiary()} !important`,
40538
40646
  ...t && { color: `${e.palette.error.main} !important` }
40539
- })), DJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(_J, {
40647
+ })), IJ = ({ className: e, label: t, checked: n, onChange: r, disabled: i, error: a }) => /* @__PURE__ */ F(EJ, {
40540
40648
  className: e,
40541
40649
  label: t,
40542
- children: /* @__PURE__ */ F(EJ, {
40650
+ children: /* @__PURE__ */ F(FJ, {
40543
40651
  disabled: i,
40544
40652
  checked: n,
40545
40653
  onChange: r,
@@ -40547,10 +40655,10 @@ var EJ = N(Ls)(({ theme: e, error: t }) => ({
40547
40655
  error: a
40548
40656
  })
40549
40657
  });
40550
- DJ.propTypes = { ...xJ };
40658
+ IJ.propTypes = { ...AJ };
40551
40659
  //#endregion
40552
40660
  //#region ../../lib-react/config-ui/dist/tabs/index.js
40553
- var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40661
+ var LJ = N(dc)(() => ({})), RJ = class extends xt.Component {
40554
40662
  static propTypes = {
40555
40663
  className: L.default.string,
40556
40664
  contentClassName: L.default.string,
@@ -40571,7 +40679,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40571
40679
  indicatorColor: "primary",
40572
40680
  value: e,
40573
40681
  onChange: this.handleChange,
40574
- children: xt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(OJ, { label: e.props.title }, t) : null)
40682
+ children: xt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ F(LJ, { label: e.props.title }, t) : null)
40575
40683
  }), /* @__PURE__ */ F("div", {
40576
40684
  className: r,
40577
40685
  style: i,
@@ -40579,7 +40687,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40579
40687
  })]
40580
40688
  });
40581
40689
  }
40582
- }, AJ = N(Pa)(({ theme: e, mini: t }) => ({
40690
+ }, zJ = N(Pa)(({ theme: e, mini: t }) => ({
40583
40691
  margin: 0,
40584
40692
  marginLeft: 0,
40585
40693
  padding: 0,
@@ -40593,7 +40701,7 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40593
40701
  fontSize: e.typography.fontSize - 3
40594
40702
  }
40595
40703
  }
40596
- })), jJ = N(Zi)(({ theme: e, mini: t, error: n }) => ({
40704
+ })), BJ = N(Zi)(({ theme: e, mini: t, error: n }) => ({
40597
40705
  color: `${k.tertiary()} !important`,
40598
40706
  ...t && {
40599
40707
  margin: 0,
@@ -40602,9 +40710,9 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40602
40710
  height: e.spacing(3)
40603
40711
  },
40604
40712
  ...n && { color: `${e.palette.error.main} !important` }
40605
- })), MJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(AJ, {
40713
+ })), VJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ F(zJ, {
40606
40714
  mini: e,
40607
- control: /* @__PURE__ */ F(jJ, {
40715
+ control: /* @__PURE__ */ F(BJ, {
40608
40716
  checked: t,
40609
40717
  onChange: n,
40610
40718
  value: r,
@@ -40613,32 +40721,32 @@ var OJ = N(dc)(() => ({})), kJ = class extends xt.Component {
40613
40721
  }),
40614
40722
  label: i
40615
40723
  });
40616
- MJ.propTypes = {
40724
+ VJ.propTypes = {
40617
40725
  mini: L.default.bool,
40618
40726
  checked: L.default.bool.isRequired,
40619
40727
  onChange: L.default.func.isRequired,
40620
40728
  value: L.default.string,
40621
40729
  label: L.default.string.isRequired,
40622
40730
  error: L.default.bool
40623
- }, MJ.defaultProps = {
40731
+ }, VJ.defaultProps = {
40624
40732
  value: "",
40625
40733
  mini: !1,
40626
40734
  error: !1
40627
40735
  };
40628
40736
  //#endregion
40629
40737
  //#region ../../lib-react/config-ui/dist/form-section.js
40630
- var NJ = N("div")(({ theme: e }) => ({
40738
+ var HJ = N("div")(({ theme: e }) => ({
40631
40739
  marginTop: e.spacing(2),
40632
40740
  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, {
40741
+ })), UJ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(1) })), WJ = ({ className: e, label: t, children: n, labelExtraStyle: r }) => /* @__PURE__ */ I(HJ, {
40634
40742
  className: e,
40635
- children: [/* @__PURE__ */ F(PJ, {
40743
+ children: [/* @__PURE__ */ F(UJ, {
40636
40744
  variant: "subtitle1",
40637
40745
  style: r,
40638
40746
  children: t
40639
40747
  }), n]
40640
40748
  });
40641
- FJ.propTypes = {
40749
+ WJ.propTypes = {
40642
40750
  className: L.default.string,
40643
40751
  label: L.default.string,
40644
40752
  children: L.default.node,
@@ -40646,7 +40754,7 @@ FJ.propTypes = {
40646
40754
  };
40647
40755
  //#endregion
40648
40756
  //#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 }) => ({
40757
+ var GJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), KJ = N(Bc)(({ theme: e }) => ({
40650
40758
  marginRight: e.spacing(1),
40651
40759
  "& .MuiInputLabel-root": {
40652
40760
  width: "auto",
@@ -40668,11 +40776,11 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40668
40776
  minHeight: "auto",
40669
40777
  padding: "6px 0 7px"
40670
40778
  }
40671
- })), RJ = (e, t) => {
40779
+ })), qJ = (e, t) => {
40672
40780
  if (!p(e) && !p(t)) return 0;
40673
40781
  if (!p(e) && p(t)) return t;
40674
40782
  if (p(e)) return e;
40675
- }, zJ = class extends xt.Component {
40783
+ }, JJ = class extends xt.Component {
40676
40784
  static propTypes = {
40677
40785
  disabled: L.default.bool,
40678
40786
  className: L.default.string,
@@ -40698,13 +40806,13 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40698
40806
  this.setState({ value: t });
40699
40807
  }
40700
40808
  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);
40809
+ return p(e) ? (p(n) && (e = Math.min(e, n)), p(t) && (e = Math.max(e, t)), e) : qJ(t, n);
40702
40810
  }
40703
40811
  onBlur = (e) => {
40704
40812
  let t = e.target.value, n = parseFloat(t);
40705
- IJ("rawNumber: ", n);
40813
+ GJ("rawNumber: ", n);
40706
40814
  let r = this.clamp(n);
40707
- IJ("number: ", r), r !== this.state.value && (IJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40815
+ GJ("number: ", r), r !== this.state.value && (GJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40708
40816
  this.props.onChange(e, r);
40709
40817
  }));
40710
40818
  };
@@ -40724,7 +40832,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40724
40832
  };
40725
40833
  render() {
40726
40834
  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, {
40835
+ return /* @__PURE__ */ F(KJ, {
40728
40836
  variant: s ? "filled" : l || "standard",
40729
40837
  inputRef: (e) => {
40730
40838
  this.inputRef = e;
@@ -40756,12 +40864,12 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40756
40864
  margin: "normal"
40757
40865
  });
40758
40866
  }
40759
- }, BJ = (e) => typeof e == "object" && !!e && typeof e.n == "number" && typeof e.d == "number", VJ = (e) => {
40867
+ }, YJ = (e) => typeof e == "object" && !!e && typeof e.n == "number" && typeof e.d == "number", XJ = (e) => {
40760
40868
  if (typeof e == "number") return e;
40761
- if (BJ(e)) return (e.s ?? 1) * e.n / e.d;
40869
+ if (YJ(e)) return (e.s ?? 1) * e.n / e.d;
40762
40870
  let t = String(e).trim(), n = t.match(/^([+-]?\d+)\s*\/\s*([+-]?\d+)$/);
40763
40871
  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)(() => ({
40872
+ }, 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
40873
  "& input[type=number]": { MozAppearance: "textfield" },
40766
40874
  "& input[type=number]::-webkit-outer-spin-button": {
40767
40875
  WebkitAppearance: "none",
@@ -40771,11 +40879,11 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40771
40879
  WebkitAppearance: "none",
40772
40880
  margin: 0
40773
40881
  }
40774
- })), GJ = N(en)(() => ({ padding: "2px" })), KJ = (e, t) => {
40882
+ })), eY = N(en)(() => ({ padding: "2px" })), tY = (e, t) => {
40775
40883
  if (!p(e) && !p(t)) return 0;
40776
40884
  if (!p(e) && p(t)) return t;
40777
40885
  if (p(e)) return e;
40778
- }, qJ = class extends xt.Component {
40886
+ }, nY = class extends xt.Component {
40779
40887
  static propTypes = {
40780
40888
  className: L.default.string,
40781
40889
  customValues: L.default.array,
@@ -40819,7 +40927,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40819
40927
  }
40820
40928
  clamp(e, t = this.props.min, n = this.props.max) {
40821
40929
  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);
40930
+ 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
40931
  }
40824
40932
  normalizeValueAndIndex = (e, t, n, r) => {
40825
40933
  let { type: i } = this.props, a = this.clamp(t, n, r), o = (e || []).findIndex((e) => e === a);
@@ -40842,7 +40950,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40842
40950
  value: e[0],
40843
40951
  index: 0
40844
40952
  });
40845
- getClosestFractionValue = (e, t) => e.reduce((e, n, r) => Math.abs(VJ(n) - VJ(t)) < Math.abs(VJ(e.value) - VJ(t)) ? {
40953
+ getClosestFractionValue = (e, t) => e.reduce((e, n, r) => Math.abs(XJ(n) - XJ(t)) < Math.abs(XJ(e.value) - XJ(t)) ? {
40846
40954
  value: n,
40847
40955
  index: r
40848
40956
  } : e, {
@@ -40890,7 +40998,7 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40890
40998
  }
40891
40999
  render() {
40892
41000
  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, {
41001
+ 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
41002
  variant: u,
40895
41003
  inputRef: (e) => this.inputRef = e,
40896
41004
  disabled: n,
@@ -40914,20 +41022,20 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40914
41022
  disableUnderline: c,
40915
41023
  startAdornment: /* @__PURE__ */ F(to, {
40916
41024
  position: "start",
40917
- children: /* @__PURE__ */ F(GJ, {
41025
+ children: /* @__PURE__ */ F(eY, {
40918
41026
  disabled: n || g,
40919
41027
  onClick: (e) => this.changeValue(e, -1, !0),
40920
41028
  size: "large",
40921
- children: /* @__PURE__ */ F(HJ, { fontSize: "small" })
41029
+ children: /* @__PURE__ */ F(ZJ, { fontSize: "small" })
40922
41030
  })
40923
41031
  }),
40924
41032
  endAdornment: /* @__PURE__ */ F(to, {
40925
41033
  position: "end",
40926
- children: /* @__PURE__ */ F(GJ, {
41034
+ children: /* @__PURE__ */ F(eY, {
40927
41035
  disabled: n || _,
40928
41036
  onClick: (e) => this.changeValue(e, 1, !0),
40929
41037
  size: "large",
40930
- children: /* @__PURE__ */ F(UJ, { fontSize: "small" })
41038
+ children: /* @__PURE__ */ F(QJ, { fontSize: "small" })
40931
41039
  })
40932
41040
  })
40933
41041
  },
@@ -40941,19 +41049,19 @@ var IJ = (0, Wc.default)("@pie-lib:config-ui:number-text-field"), LJ = N(Bc)(({
40941
41049
  };
40942
41050
  //#endregion
40943
41051
  //#region ../../lib-react/config-ui/dist/two-choice.js
40944
- function JJ(e) {
41052
+ function rY(e) {
40945
41053
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40946
41054
  }
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;
41055
+ function iY(e, t) {
41056
+ 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
41057
  }
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 }) => ({
41058
+ 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
41059
  display: "flex",
40952
41060
  flexWrap: "wrap",
40953
41061
  paddingLeft: 0,
40954
41062
  marginTop: e.spacing(1),
40955
41063
  ...t === "vertical" && { flexDirection: "column" }
40956
- })), tY = class extends xt.Component {
41064
+ })), uY = class extends xt.Component {
40957
41065
  static propTypes = {
40958
41066
  header: L.default.string.isRequired,
40959
41067
  className: L.default.string,
@@ -40971,10 +41079,10 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
40971
41079
  label: e,
40972
41080
  value: e
40973
41081
  } : e), s = n || qc;
40974
- return /* @__PURE__ */ F(XJ, {
41082
+ return /* @__PURE__ */ F(aY, {
40975
41083
  label: e,
40976
41084
  className: t,
40977
- children: /* @__PURE__ */ F(eY, {
41085
+ children: /* @__PURE__ */ F(lY, {
40978
41086
  direction: a,
40979
41087
  children: o.map((e, t) => /* @__PURE__ */ F(s, {
40980
41088
  value: e.value,
@@ -40985,7 +41093,7 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
40985
41093
  })
40986
41094
  });
40987
41095
  }
40988
- }, nY = L.default.shape({
41096
+ }, dY = L.default.shape({
40989
41097
  label: L.default.string,
40990
41098
  value: L.default.string
40991
41099
  });
@@ -40994,14 +41102,14 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
40994
41102
  header: L.default.string.isRequired,
40995
41103
  value: L.default.string.isRequired,
40996
41104
  onChange: L.default.func.isRequired,
40997
- one: L.default.oneOfType([nY, L.default.string]),
40998
- two: L.default.oneOfType([nY, L.default.string]),
41105
+ one: L.default.oneOfType([dY, L.default.string]),
41106
+ two: L.default.oneOfType([dY, L.default.string]),
40999
41107
  className: L.default.string,
41000
41108
  customLabel: L.default.func
41001
41109
  };
41002
41110
  render() {
41003
41111
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
41004
- return /* @__PURE__ */ F(tY, {
41112
+ return /* @__PURE__ */ F(uY, {
41005
41113
  customLabel: i,
41006
41114
  header: n,
41007
41115
  className: r,
@@ -41013,21 +41121,21 @@ var XJ = YJ(Ie, "InputContainer") || YJ($J.InputContainer, "InputContainer"), ZJ
41013
41121
  });
41014
41122
  //#endregion
41015
41123
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
41016
- var rY = Object.defineProperty, iY = (e, t) => {
41124
+ var fY = Object.defineProperty, pY = (e, t) => {
41017
41125
  let n = {};
41018
- for (var r in e) rY(n, r, {
41126
+ for (var r in e) fY(n, r, {
41019
41127
  get: e[r],
41020
41128
  enumerable: !0
41021
41129
  });
41022
- return t || rY(n, Symbol.toStringTag, { value: "Module" }), n;
41023
- }, aY = N("div")(() => ({
41130
+ return t || fY(n, Symbol.toStringTag, { value: "Module" }), n;
41131
+ }, mY = N("div")(() => ({
41024
41132
  display: "flex",
41025
41133
  flexDirection: "column",
41026
41134
  position: "relative"
41027
- })), oY = N("div")(() => ({
41135
+ })), hY = N("div")(() => ({
41028
41136
  display: "flex",
41029
41137
  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 {
41138
+ })), 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
41139
  static propTypes = {
41032
41140
  mode: L.default.oneOf(["tabbed", "inline"]),
41033
41141
  secondary: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]),
@@ -41045,7 +41153,7 @@ var rY = Object.defineProperty, iY = (e, t) => {
41045
41153
  } catch (e) {
41046
41154
  console.log(e.toString());
41047
41155
  }
41048
- return /* @__PURE__ */ I(aY, {
41156
+ return /* @__PURE__ */ I(mY, {
41049
41157
  style: {
41050
41158
  minHeight: i,
41051
41159
  minWidth: a,
@@ -41053,28 +41161,28 @@ var rY = Object.defineProperty, iY = (e, t) => {
41053
41161
  maxWidth: s
41054
41162
  },
41055
41163
  children: [
41056
- e === "inline" && /* @__PURE__ */ I(oY, { children: [/* @__PURE__ */ F(cY, {
41164
+ e === "inline" && /* @__PURE__ */ I(hY, { children: [/* @__PURE__ */ F(_Y, {
41057
41165
  className: "design-container",
41058
41166
  children: n
41059
- }), l && /* @__PURE__ */ F(lY, {
41167
+ }), l && /* @__PURE__ */ F(vY, {
41060
41168
  className: "settings-container",
41061
41169
  children: t
41062
41170
  })] }),
41063
- e === "tabbed" && l && /* @__PURE__ */ I(kJ, {
41171
+ e === "tabbed" && l && /* @__PURE__ */ I(RJ, {
41064
41172
  onChange: this.onTabsChange,
41065
41173
  contentClassName: "content-container",
41066
41174
  indicatorColor: "primary",
41067
- children: [/* @__PURE__ */ F(sY, {
41175
+ children: [/* @__PURE__ */ F(gY, {
41068
41176
  title: "Design",
41069
41177
  className: "design-container",
41070
41178
  children: n
41071
- }), /* @__PURE__ */ F(sY, {
41179
+ }), /* @__PURE__ */ F(gY, {
41072
41180
  title: "Settings",
41073
41181
  className: "settings-container",
41074
41182
  children: t
41075
41183
  })]
41076
41184
  }),
41077
- e === "tabbed" && !l && /* @__PURE__ */ F(sY, {
41185
+ e === "tabbed" && !l && /* @__PURE__ */ F(gY, {
41078
41186
  className: "design-container",
41079
41187
  children: n
41080
41188
  })
@@ -41084,18 +41192,18 @@ var rY = Object.defineProperty, iY = (e, t) => {
41084
41192
  };
41085
41193
  //#endregion
41086
41194
  //#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) {
41195
+ function bY() {
41196
+ return bY = Object.assign ? Object.assign.bind() : function(e) {
41089
41197
  for (var t = 1; t < arguments.length; t++) {
41090
41198
  var n = arguments[t];
41091
41199
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
41092
41200
  }
41093
41201
  return e;
41094
- }, dY.apply(null, arguments);
41202
+ }, bY.apply(null, arguments);
41095
41203
  }
41096
41204
  //#endregion
41097
41205
  //#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) {
41206
+ function xY(e, t) {
41099
41207
  if (e == null) return {};
41100
41208
  var n = {};
41101
41209
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -41106,19 +41214,19 @@ function fY(e, t) {
41106
41214
  }
41107
41215
  //#endregion
41108
41216
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
41109
- function pY(e, t) {
41110
- return pY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41217
+ function SY(e, t) {
41218
+ return SY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41111
41219
  return e.__proto__ = t, e;
41112
- }, pY(e, t);
41220
+ }, SY(e, t);
41113
41221
  }
41114
41222
  //#endregion
41115
41223
  //#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);
41224
+ function CY(e, t) {
41225
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, SY(e, t);
41118
41226
  }
41119
41227
  //#endregion
41120
41228
  //#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() {
41229
+ var wY = (function() {
41122
41230
  if (typeof Map < "u") return Map;
41123
41231
  function e(e, t) {
41124
41232
  var n = -1;
@@ -41157,34 +41265,34 @@ var hY = (function() {
41157
41265
  }
41158
41266
  }, t;
41159
41267
  }();
41160
- })(), gY = typeof window < "u" && typeof document < "u" && window.document === document, _Y = (function() {
41268
+ })(), TY = typeof window < "u" && typeof document < "u" && window.document === document, EY = (function() {
41161
41269
  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) {
41270
+ })(), DY = (function() {
41271
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(EY) : function(e) {
41164
41272
  return setTimeout(function() {
41165
41273
  return e(Date.now());
41166
41274
  }, 1e3 / 60);
41167
41275
  };
41168
- })(), yY = 2;
41169
- function bY(e, t) {
41276
+ })(), OY = 2;
41277
+ function kY(e, t) {
41170
41278
  var n = !1, r = !1, i = 0;
41171
41279
  function a() {
41172
41280
  n && (n = !1, e()), r && s();
41173
41281
  }
41174
41282
  function o() {
41175
- vY(a);
41283
+ DY(a);
41176
41284
  }
41177
41285
  function s() {
41178
41286
  var e = Date.now();
41179
41287
  if (n) {
41180
- if (e - i < yY) return;
41288
+ if (e - i < OY) return;
41181
41289
  r = !0;
41182
41290
  } else n = !0, r = !1, setTimeout(o, t);
41183
41291
  i = e;
41184
41292
  }
41185
41293
  return s;
41186
41294
  }
41187
- var xY = 20, SY = [
41295
+ var AY = 20, jY = [
41188
41296
  "top",
41189
41297
  "right",
41190
41298
  "bottom",
@@ -41193,9 +41301,9 @@ var xY = 20, SY = [
41193
41301
  "height",
41194
41302
  "size",
41195
41303
  "weight"
41196
- ], CY = typeof MutationObserver < "u", wY = function() {
41304
+ ], MY = typeof MutationObserver < "u", NY = function() {
41197
41305
  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);
41306
+ 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
41307
  }
41200
41308
  return e.prototype.addObserver = function(e) {
41201
41309
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -41212,23 +41320,23 @@ var xY = 20, SY = [
41212
41320
  return e.broadcastActive();
41213
41321
  }), e.length > 0;
41214
41322
  }, 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, {
41323
+ !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
41324
  attributes: !0,
41217
41325
  childList: !0,
41218
41326
  characterData: !0,
41219
41327
  subtree: !0
41220
41328
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
41221
41329
  }, 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);
41330
+ !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
41331
  }, e.prototype.onTransitionEnd_ = function(e) {
41224
41332
  var t = e.propertyName, n = t === void 0 ? "" : t;
41225
- SY.some(function(e) {
41333
+ jY.some(function(e) {
41226
41334
  return !!~n.indexOf(e);
41227
41335
  }) && this.refresh();
41228
41336
  }, e.getInstance = function() {
41229
41337
  return this.instance_ ||= new e(), this.instance_;
41230
41338
  }, e.instance_ = null, e;
41231
- }(), TY = (function(e, t) {
41339
+ }(), PY = (function(e, t) {
41232
41340
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
41233
41341
  var i = r[n];
41234
41342
  Object.defineProperty(e, i, {
@@ -41239,19 +41347,19 @@ var xY = 20, SY = [
41239
41347
  });
41240
41348
  }
41241
41349
  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) {
41350
+ }), FY = (function(e) {
41351
+ return e && e.ownerDocument && e.ownerDocument.defaultView || EY;
41352
+ }), IY = KY(0, 0, 0, 0);
41353
+ function LY(e) {
41246
41354
  return parseFloat(e) || 0;
41247
41355
  }
41248
- function kY(e) {
41356
+ function RY(e) {
41249
41357
  return [...arguments].slice(1).reduce(function(t, n) {
41250
41358
  var r = e["border-" + n + "-width"];
41251
- return t + OY(r);
41359
+ return t + LY(r);
41252
41360
  }, 0);
41253
41361
  }
41254
- function AY(e) {
41362
+ function zY(e) {
41255
41363
  for (var t = [
41256
41364
  "top",
41257
41365
  "right",
@@ -41259,40 +41367,40 @@ function AY(e) {
41259
41367
  "left"
41260
41368
  ], n = {}, r = 0, i = t; r < i.length; r++) {
41261
41369
  var a = i[r], o = e["padding-" + a];
41262
- n[a] = OY(o);
41370
+ n[a] = LY(o);
41263
41371
  }
41264
41372
  return n;
41265
41373
  }
41266
- function jY(e) {
41374
+ function BY(e) {
41267
41375
  var t = e.getBBox();
41268
- return LY(0, 0, t.width, t.height);
41376
+ return KY(0, 0, t.width, t.height);
41269
41377
  }
41270
- function MY(e) {
41378
+ function VY(e) {
41271
41379
  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)) {
41380
+ if (!t && !n) return IY;
41381
+ 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);
41382
+ 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
41383
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
41276
41384
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
41277
41385
  }
41278
- return LY(i.left, i.top, s, c);
41386
+ return KY(i.left, i.top, s, c);
41279
41387
  }
41280
- var NY = (function() {
41388
+ var HY = (function() {
41281
41389
  return typeof SVGGraphicsElement < "u" ? function(e) {
41282
- return e instanceof EY(e).SVGGraphicsElement;
41390
+ return e instanceof FY(e).SVGGraphicsElement;
41283
41391
  } : function(e) {
41284
- return e instanceof EY(e).SVGElement && typeof e.getBBox == "function";
41392
+ return e instanceof FY(e).SVGElement && typeof e.getBBox == "function";
41285
41393
  };
41286
41394
  })();
41287
- function PY(e) {
41288
- return e === EY(e).document.documentElement;
41395
+ function UY(e) {
41396
+ return e === FY(e).document.documentElement;
41289
41397
  }
41290
- function FY(e) {
41291
- return gY ? NY(e) ? jY(e) : MY(e) : DY;
41398
+ function WY(e) {
41399
+ return TY ? HY(e) ? BY(e) : VY(e) : IY;
41292
41400
  }
41293
- function IY(e) {
41401
+ function GY(e) {
41294
41402
  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, {
41403
+ return PY(a, {
41296
41404
  x: t,
41297
41405
  y: n,
41298
41406
  width: r,
@@ -41303,7 +41411,7 @@ function IY(e) {
41303
41411
  left: t
41304
41412
  }), a;
41305
41413
  }
41306
- function LY(e, t, n, r) {
41414
+ function KY(e, t, n, r) {
41307
41415
  return {
41308
41416
  x: e,
41309
41417
  y: t,
@@ -41311,42 +41419,42 @@ function LY(e, t, n, r) {
41311
41419
  height: r
41312
41420
  };
41313
41421
  }
41314
- var RY = function() {
41422
+ var qY = function() {
41315
41423
  function e(e) {
41316
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = LY(0, 0, 0, 0), this.target = e;
41424
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = KY(0, 0, 0, 0), this.target = e;
41317
41425
  }
41318
41426
  return e.prototype.isActive = function() {
41319
- var e = FY(this.target);
41427
+ var e = WY(this.target);
41320
41428
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41321
41429
  }, e.prototype.broadcastRect = function() {
41322
41430
  var e = this.contentRect_;
41323
41431
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41324
41432
  }, e;
41325
- }(), zY = function() {
41433
+ }(), JY = function() {
41326
41434
  function e(e, t) {
41327
- var n = IY(t);
41328
- TY(this, {
41435
+ var n = GY(t);
41436
+ PY(this, {
41329
41437
  target: e,
41330
41438
  contentRect: n
41331
41439
  });
41332
41440
  }
41333
41441
  return e;
41334
- }(), BY = function() {
41442
+ }(), YY = function() {
41335
41443
  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.");
41444
+ if (this.activeObservations_ = [], this.observations_ = new wY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41337
41445
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41338
41446
  }
41339
41447
  return e.prototype.observe = function(e) {
41340
41448
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41341
41449
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41342
- if (!(e instanceof EY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41450
+ if (!(e instanceof FY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41343
41451
  var t = this.observations_;
41344
- t.has(e) || (t.set(e, new RY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41452
+ t.has(e) || (t.set(e, new qY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41345
41453
  }
41346
41454
  }, e.prototype.unobserve = function(e) {
41347
41455
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41348
41456
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41349
- if (!(e instanceof EY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41457
+ if (!(e instanceof FY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41350
41458
  var t = this.observations_;
41351
41459
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41352
41460
  }
@@ -41360,7 +41468,7 @@ var RY = function() {
41360
41468
  }, e.prototype.broadcastActive = function() {
41361
41469
  if (this.hasActive()) {
41362
41470
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41363
- return new zY(e.target, e.broadcastRect());
41471
+ return new JY(e.target, e.broadcastRect());
41364
41472
  });
41365
41473
  this.callback_.call(e, t, e), this.clearActive();
41366
41474
  }
@@ -41369,12 +41477,12 @@ var RY = function() {
41369
41477
  }, e.prototype.hasActive = function() {
41370
41478
  return this.activeObservations_.length > 0;
41371
41479
  }, e;
41372
- }(), VY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new hY(), HY = function() {
41480
+ }(), XY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new wY(), ZY = function() {
41373
41481
  function e(t) {
41374
41482
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41375
41483
  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);
41484
+ var n = new YY(t, NY.getInstance(), this);
41485
+ XY.set(this, n);
41378
41486
  }
41379
41487
  return e;
41380
41488
  }();
@@ -41383,27 +41491,27 @@ var RY = function() {
41383
41491
  "unobserve",
41384
41492
  "disconnect"
41385
41493
  ].forEach(function(e) {
41386
- HY.prototype[e] = function() {
41494
+ ZY.prototype[e] = function() {
41387
41495
  var t;
41388
- return (t = VY.get(this))[e].apply(t, arguments);
41496
+ return (t = XY.get(this))[e].apply(t, arguments);
41389
41497
  };
41390
41498
  });
41391
- var UY = (function() {
41392
- return _Y.ResizeObserver === void 0 ? HY : _Y.ResizeObserver;
41393
- })(), WY = [
41499
+ var QY = (function() {
41500
+ return EY.ResizeObserver === void 0 ? ZY : EY.ResizeObserver;
41501
+ })(), $Y = [
41394
41502
  "client",
41395
41503
  "offset",
41396
41504
  "scroll",
41397
41505
  "bounds",
41398
41506
  "margin"
41399
41507
  ];
41400
- function GY(e) {
41508
+ function eX(e) {
41401
41509
  var t = [];
41402
- return WY.forEach(function(n) {
41510
+ return $Y.forEach(function(n) {
41403
41511
  e[n] && t.push(n);
41404
41512
  }), t;
41405
41513
  }
41406
- function KY(e, t) {
41514
+ function tX(e, t) {
41407
41515
  var n = {};
41408
41516
  if (t.indexOf("client") > -1 && (n.client = {
41409
41517
  top: e.clientTop,
@@ -41442,14 +41550,14 @@ function KY(e, t) {
41442
41550
  }
41443
41551
  return n;
41444
41552
  }
41445
- function qY(e) {
41553
+ function nX(e) {
41446
41554
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
41447
41555
  }
41448
- function JY(e) {
41556
+ function rX(e) {
41449
41557
  return function(t) {
41450
41558
  var n, r;
41451
41559
  return r = n = /*#__PURE__*/ function(n) {
41452
- mY(r, n);
41560
+ CY(r, n);
41453
41561
  function r() {
41454
41562
  var t, r = [...arguments];
41455
41563
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -41460,24 +41568,24 @@ function JY(e) {
41460
41568
  bounds: {},
41461
41569
  margin: {}
41462
41570
  } }, 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));
41571
+ var r = tX(t._node, e || eX(t.props));
41464
41572
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
41465
41573
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
41466
41574
  });
41467
41575
  }, t._handleRef = function(e) {
41468
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = qY(t._node);
41576
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = nX(t._node);
41469
41577
  var n = t.props.innerRef;
41470
41578
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
41471
41579
  }, t;
41472
41580
  }
41473
41581
  var i = r.prototype;
41474
41582
  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))));
41583
+ 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
41584
  }, i.componentWillUnmount = function() {
41477
41585
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
41478
41586
  }, i.render = function() {
41479
41587
  var e = this.props;
41480
- return e.innerRef, e.onResize, wt(t, dY({}, fY(e, ["innerRef", "onResize"]), {
41588
+ return e.innerRef, e.onResize, wt(t, bY({}, xY(e, ["innerRef", "onResize"]), {
41481
41589
  measureRef: this._handleRef,
41482
41590
  measure: this.measure,
41483
41591
  contentRect: this.state.contentRect
@@ -41494,7 +41602,7 @@ function JY(e) {
41494
41602
  }, r;
41495
41603
  };
41496
41604
  }
41497
- var YY = JY()(function(e) {
41605
+ var iX = rX()(function(e) {
41498
41606
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
41499
41607
  return i({
41500
41608
  measure: t,
@@ -41502,10 +41610,10 @@ var YY = JY()(function(e) {
41502
41610
  contentRect: r
41503
41611
  });
41504
41612
  });
41505
- YY.displayName = "Measure", YY.propTypes.children = L.default.func;
41613
+ iX.displayName = "Measure", iX.propTypes.children = L.default.func;
41506
41614
  //#endregion
41507
41615
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
41508
- var XY = N("div")(() => ({
41616
+ var aX = N("div")(() => ({
41509
41617
  backgroundColor: k.white(),
41510
41618
  border: `2px solid ${k.border()}`,
41511
41619
  display: "flex",
@@ -41515,7 +41623,7 @@ var XY = N("div")(() => ({
41515
41623
  maxWidth: "300px",
41516
41624
  padding: "20px 4px 4px 20px",
41517
41625
  zIndex: 99
41518
- })), ZY = class extends xt.Component {
41626
+ })), oX = class extends xt.Component {
41519
41627
  static propTypes = {
41520
41628
  className: L.default.string,
41521
41629
  children: L.default.oneOfType([L.default.arrayOf(L.default.node), L.default.node]).isRequired
@@ -41523,19 +41631,19 @@ var XY = N("div")(() => ({
41523
41631
  static defaultProps = {};
41524
41632
  render() {
41525
41633
  let { className: e, children: t } = this.props;
41526
- return /* @__PURE__ */ F(XY, {
41634
+ return /* @__PURE__ */ F(aX, {
41527
41635
  className: e,
41528
41636
  children: t
41529
41637
  });
41530
41638
  }
41531
- }, QY = yt({
41639
+ }, sX = yt({
41532
41640
  typography: { fontFamily: "inherit" },
41533
41641
  components: { MuiButton: { styleOverrides: { contained: {
41534
41642
  backgroundColor: "#e0e0e0",
41535
41643
  color: "#000000",
41536
41644
  "&:hover": { backgroundColor: "#bdbdbd" }
41537
41645
  } } } }
41538
- }), $Y = class extends xt.Component {
41646
+ }), cX = class extends xt.Component {
41539
41647
  static propTypes = {
41540
41648
  children: L.default.oneOfType([
41541
41649
  L.default.string,
@@ -41568,19 +41676,19 @@ var XY = N("div")(() => ({
41568
41676
  return /* @__PURE__ */ F(de, {
41569
41677
  injectFirst: !0,
41570
41678
  children: /* @__PURE__ */ F(it, {
41571
- theme: QY,
41572
- children: /* @__PURE__ */ F(YY, {
41679
+ theme: sX,
41680
+ children: /* @__PURE__ */ F(iX, {
41573
41681
  bounds: !0,
41574
41682
  onResize: this.onResize,
41575
41683
  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, {
41684
+ 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
41685
  className: "settings-box",
41578
41686
  children: n
41579
41687
  }) : n;
41580
41688
  return /* @__PURE__ */ I("div", {
41581
41689
  ref: e,
41582
41690
  className: "main-container extraCSSRules",
41583
- children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(uY, {
41691
+ children: [a?.rules ? /* @__PURE__ */ F("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ F(yY, {
41584
41692
  mode: o,
41585
41693
  secondary: s,
41586
41694
  dimensions: i,
@@ -41592,27 +41700,27 @@ var XY = N("div")(() => ({
41592
41700
  })
41593
41701
  });
41594
41702
  }
41595
- }, eX = JY("bounds")($Y), tX = /* @__PURE__ */ iY({
41596
- ConfigLayout: () => eX,
41597
- LayoutContents: () => uY
41598
- }), nX = N("div")(() => ({
41703
+ }, lX = rX("bounds")(cX), uX = /* @__PURE__ */ pY({
41704
+ ConfigLayout: () => lX,
41705
+ LayoutContents: () => yY
41706
+ }), dX = N("div")(() => ({
41599
41707
  display: "flex",
41600
41708
  width: "100%",
41601
41709
  justifyContent: "space-between"
41602
- })), rX = N(Qe)(({ theme: e }) => ({
41710
+ })), fX = N(Qe)(({ theme: e }) => ({
41603
41711
  color: "rgba(0, 0, 0, 0.89)",
41604
41712
  fontSize: e.typography.fontSize,
41605
41713
  paddingTop: e.spacing(2)
41606
- })), iX = N(oc)(({ checked: e }) => ({
41714
+ })), pX = N(oc)(({ checked: e }) => ({
41607
41715
  "&.Mui-checked .MuiSwitch-thumb": { color: `${k.tertiary()} !important` },
41608
41716
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${k.tertiaryLight()} !important` },
41609
41717
  "& .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, {
41718
+ })), mX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ I(dX, { children: [/* @__PURE__ */ F(fX, { children: n }), /* @__PURE__ */ F(pX, {
41611
41719
  checked: e,
41612
41720
  disabled: t,
41613
41721
  onChange: (e) => r(e.target.checked)
41614
41722
  })] });
41615
- aX.propTypes = {
41723
+ mX.propTypes = {
41616
41724
  checked: L.default.bool,
41617
41725
  disabled: L.default.bool,
41618
41726
  label: L.default.string.isRequired,
@@ -41620,20 +41728,20 @@ aX.propTypes = {
41620
41728
  };
41621
41729
  //#endregion
41622
41730
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
41623
- var oX = N(Pa)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41731
+ var hX = N(Pa)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41624
41732
  color: "rgba(0, 0, 0, 0.89)",
41625
41733
  fontSize: e.typography.fontSize - 2,
41626
41734
  left: "-5px",
41627
41735
  position: "relative"
41628
- } })), sX = N(Ls)(() => ({ color: `${k.tertiary()} !important` })), cX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(oX, {
41736
+ } })), gX = N(Ls)(() => ({ color: `${k.tertiary()} !important` })), _X = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ F(hX, {
41629
41737
  value: t,
41630
- control: /* @__PURE__ */ F(sX, {
41738
+ control: /* @__PURE__ */ F(gX, {
41631
41739
  checked: n,
41632
41740
  onChange: r
41633
41741
  }),
41634
41742
  label: e
41635
41743
  });
41636
- cX.propTypes = {
41744
+ _X.propTypes = {
41637
41745
  label: L.default.string,
41638
41746
  value: L.default.string,
41639
41747
  checked: L.default.bool,
@@ -41641,26 +41749,26 @@ cX.propTypes = {
41641
41749
  };
41642
41750
  //#endregion
41643
41751
  //#region ../../lib-react/config-ui/dist/settings/panel.js
41644
- var lX = (0, Wc.default)("pie-lib:config-ui:settings:panel"), uX = {
41752
+ var vX = (0, Wc.default)("pie-lib:config-ui:settings:panel"), yX = {
41645
41753
  label: L.default.string,
41646
41754
  value: L.default.string
41647
- }, dX = {
41755
+ }, bX = {
41648
41756
  label: L.default.string,
41649
41757
  value: L.default.string,
41650
41758
  onChange: L.default.func
41651
- }, fX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(MJ, {
41759
+ }, xX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ F(VJ, {
41652
41760
  checked: t,
41653
41761
  label: e,
41654
41762
  onChange: (e) => {
41655
41763
  n(e.target.checked);
41656
41764
  }
41657
41765
  });
41658
- fX.propTypes = {
41766
+ xX.propTypes = {
41659
41767
  label: L.default.string,
41660
41768
  value: L.default.bool,
41661
41769
  onChange: L.default.func
41662
41770
  };
41663
- var pX = N(tY)(({ theme: e }) => ({
41771
+ var SX = N(uY)(({ theme: e }) => ({
41664
41772
  marginTop: e.spacing(.5),
41665
41773
  paddingBottom: e.spacing(.5),
41666
41774
  width: "100%",
@@ -41671,29 +41779,29 @@ var pX = N(tY)(({ theme: e }) => ({
41671
41779
  marginTop: e.spacing(2.5)
41672
41780
  },
41673
41781
  "& > div": { marginTop: e.spacing(2.5) }
41674
- })), mX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(pX, {
41782
+ })), CX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ F(SX, {
41675
41783
  direction: "horizontal",
41676
- customLabel: cX,
41784
+ customLabel: _X,
41677
41785
  value: t,
41678
41786
  header: e,
41679
41787
  opts: r,
41680
41788
  onChange: n
41681
41789
  });
41682
- mX.propTypes = {
41683
- ...dX,
41684
- choices: L.default.arrayOf(L.default.shape(uX))
41790
+ CX.propTypes = {
41791
+ ...bX,
41792
+ choices: L.default.arrayOf(L.default.shape(yX))
41685
41793
  };
41686
- var hX = mX, gX = N("p")(({ theme: e }) => ({
41794
+ var wX = CX, TX = N("p")(({ theme: e }) => ({
41687
41795
  margin: 0,
41688
41796
  fontSize: e.typography.fontSize
41689
- })), _X = N(gs)(({ theme: e }) => ({
41797
+ })), EX = N(gs)(({ theme: e }) => ({
41690
41798
  marginTop: e.spacing(.5),
41691
41799
  border: "2px solid lightgrey",
41692
41800
  padding: `0 ${e.spacing(1)}`,
41693
41801
  borderRadius: "4px"
41694
- })), vX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41802
+ })), DX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41695
41803
  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, {
41804
+ return /* @__PURE__ */ I("div", { children: [e && /* @__PURE__ */ F(TX, { children: e }), /* @__PURE__ */ F(EX, {
41697
41805
  value: t || r && r[0],
41698
41806
  onChange: ({ target: e }) => n(e.value),
41699
41807
  input: /* @__PURE__ */ F(Ja, { id: `dropdown-${e}` }),
@@ -41708,14 +41816,14 @@ var hX = mX, gX = N("p")(({ theme: e }) => ({
41708
41816
  }, t))
41709
41817
  })] });
41710
41818
  };
41711
- vX.propTypes = {
41712
- ...dX,
41819
+ DX.propTypes = {
41820
+ ...bX,
41713
41821
  choices: L.default.arrayOf(L.default.string)
41714
41822
  };
41715
- var yX = N(cn)(({ theme: e }) => ({
41823
+ var OX = N(cn)(({ theme: e }) => ({
41716
41824
  marginRight: e.spacing(3),
41717
41825
  marginTop: e.spacing(1)
41718
- })), bX = ({ label: e }) => /* @__PURE__ */ F(yX, { children: e }), xX = N(zJ)(({ theme: e }) => ({
41826
+ })), kX = ({ label: e }) => /* @__PURE__ */ F(OX, { children: e }), AX = N(JJ)(({ theme: e }) => ({
41719
41827
  width: "35%",
41720
41828
  marginRight: e.spacing(3),
41721
41829
  marginTop: e.spacing(1),
@@ -41726,7 +41834,7 @@ var yX = N(cn)(({ theme: e }) => ({
41726
41834
  padding: `0 ${e.spacing(1)}`,
41727
41835
  backgroundColor: "transparent"
41728
41836
  }
41729
- })), SX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(xX, {
41837
+ })), jX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ F(AX, {
41730
41838
  variant: "standard",
41731
41839
  label: e || "Label",
41732
41840
  value: t,
@@ -41737,45 +41845,45 @@ var yX = N(cn)(({ theme: e }) => ({
41737
41845
  showErrorWhenOutsideRange: !0,
41738
41846
  disableUnderline: !0
41739
41847
  });
41740
- SX.propTypes = {
41741
- ...dX,
41848
+ jX.propTypes = {
41849
+ ...bX,
41742
41850
  suffix: L.default.string,
41743
41851
  min: L.default.number,
41744
41852
  max: L.default.number,
41745
41853
  value: L.default.number
41746
- }, bX.propTypes = { ...dX };
41747
- var CX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(aX, {
41854
+ }, kX.propTypes = { ...bX };
41855
+ var MX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ F(mX, {
41748
41856
  label: t,
41749
41857
  checked: !!n,
41750
41858
  disabled: !!e,
41751
41859
  toggle: r
41752
41860
  });
41753
- CX.propTypes = {
41754
- ...dX,
41861
+ MX.propTypes = {
41862
+ ...bX,
41755
41863
  value: L.default.bool
41756
41864
  };
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 }) => ({
41865
+ var NX = {
41866
+ toggle: MX,
41867
+ radio: wX,
41868
+ dropdown: DX,
41869
+ numberField: jX,
41870
+ checkbox: xX,
41871
+ textField: kX
41872
+ }, PX = N("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), FX = N("div")(({ theme: e }) => ({
41765
41873
  color: "#495B8F",
41766
41874
  fontSize: e.typography.fontSize + 2,
41767
41875
  fontWeight: 600,
41768
41876
  marginBottom: e.spacing(1)
41769
- })), DX = N("p")(({ theme: e }) => ({
41877
+ })), IX = N("p")(({ theme: e }) => ({
41770
41878
  fontSize: e.typography.fontSize,
41771
41879
  marginBottom: 0
41772
- })), OX = (e) => {
41880
+ })), LX = (e) => {
41773
41881
  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 = {
41882
+ let { isConfigProperty: o, ...s } = v(e, r || n), c = v(o ? i : t, n), l = {
41775
41883
  ...s,
41776
41884
  key: n,
41777
41885
  value: c
41778
- }, u = wX[l.type];
41886
+ }, u = NX[l.type];
41779
41887
  return /* @__PURE__ */ F(u, {
41780
41888
  ...l,
41781
41889
  onChange: (e) => a(n, e, o)
@@ -41784,18 +41892,18 @@ var wX = {
41784
41892
  let n = e[t];
41785
41893
  if (!n) return null;
41786
41894
  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);
41895
+ 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
41896
  };
41789
- return /* @__PURE__ */ I(TX, { children: [/* @__PURE__ */ F(EX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41897
+ return /* @__PURE__ */ I(PX, { children: [/* @__PURE__ */ F(FX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41790
41898
  };
41791
- OX.propTypes = {
41899
+ LX.propTypes = {
41792
41900
  model: L.default.object,
41793
41901
  label: L.default.string,
41794
41902
  group: L.default.object,
41795
41903
  configuration: L.default.object,
41796
41904
  onChange: L.default.func
41797
41905
  };
41798
- var kX = class extends xt.Component {
41906
+ var RX = class extends xt.Component {
41799
41907
  static propTypes = {
41800
41908
  model: L.default.object,
41801
41909
  configuration: L.default.object,
@@ -41809,13 +41917,13 @@ var kX = class extends xt.Component {
41809
41917
  onChangeConfiguration: () => {}
41810
41918
  };
41811
41919
  change = (e, t, n = !1) => {
41812
- lX("[changeModel]", e, t);
41920
+ vX("[changeModel]", e, t);
41813
41921
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41814
41922
  n ? (d(o, e, t), i(o, e)) : (d(a, e, t), r(a, e));
41815
41923
  };
41816
41924
  render() {
41817
41925
  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, {
41926
+ return vX("render:", t), /* @__PURE__ */ I("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ F(LX, {
41819
41927
  label: r,
41820
41928
  model: t,
41821
41929
  configuration: n,
@@ -41823,59 +41931,59 @@ var kX = class extends xt.Component {
41823
41931
  onChange: this.change
41824
41932
  }, r) : null), r] });
41825
41933
  }
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) => ({
41934
+ }, zX = /* @__PURE__ */ pY({
41935
+ Panel: () => RX,
41936
+ checkbox: () => qX,
41937
+ checkboxes: () => JX,
41938
+ dropdown: () => WX,
41939
+ numberField: () => GX,
41940
+ numberFields: () => KX,
41941
+ radio: () => UX,
41942
+ textField: () => BX,
41943
+ toggle: () => VX
41944
+ }), BX = (e, t = !0) => ({
41837
41945
  label: e,
41838
41946
  type: "textField",
41839
41947
  isConfigProperty: t
41840
- }), MX = (e, t = !1, n = !1) => ({
41948
+ }), VX = (e, t = !1, n = !1) => ({
41841
41949
  type: "toggle",
41842
41950
  label: e,
41843
41951
  isConfigProperty: t,
41844
41952
  disabled: n
41845
- }), NX = (e) => typeof e == "string" ? {
41953
+ }), HX = (e) => typeof e == "string" ? {
41846
41954
  label: e,
41847
41955
  value: e
41848
- } : e, PX = function() {
41956
+ } : e, UX = function() {
41849
41957
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41850
41958
  return {
41851
41959
  type: "radio",
41852
41960
  label: e,
41853
- choices: t && t.map((e) => NX(e)),
41961
+ choices: t && t.map((e) => HX(e)),
41854
41962
  isConfigProperty: n
41855
41963
  };
41856
- }, FX = (e, t, n = !1) => ({
41964
+ }, WX = (e, t, n = !1) => ({
41857
41965
  type: "dropdown",
41858
41966
  label: e,
41859
41967
  choices: t,
41860
41968
  isConfigProperty: n
41861
- }), IX = (e, t, n = !1) => ({
41969
+ }), GX = (e, t, n = !1) => ({
41862
41970
  ...t,
41863
41971
  label: e,
41864
41972
  type: "numberField",
41865
41973
  isConfigProperty: n
41866
- }), LX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41867
- t[e] = IX(t[e].label, t[e], n);
41974
+ }), KX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41975
+ t[e] = GX(t[e].label, t[e], n);
41868
41976
  }), {
41869
41977
  type: "numberFields",
41870
41978
  label: e,
41871
41979
  fields: t
41872
- }), RX = (e, t, n = !1) => ({
41980
+ }), qX = (e, t, n = !1) => ({
41873
41981
  ...t,
41874
41982
  label: e,
41875
41983
  type: "checkbox",
41876
41984
  isConfigProperty: n
41877
- }), zX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41878
- t[e] = RX(t[e].label, t[e], n);
41985
+ }), JX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41986
+ t[e] = qX(t[e].label, t[e], n);
41879
41987
  }), {
41880
41988
  type: "checkboxes",
41881
41989
  label: e,
@@ -41883,42 +41991,42 @@ var kX = class extends xt.Component {
41883
41991
  });
41884
41992
  //#endregion
41885
41993
  //#region ../../lib-react/config-ui/dist/index.js
41886
- function BX(e) {
41994
+ function YX(e) {
41887
41995
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41888
41996
  }
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;
41997
+ function XX(e, t) {
41998
+ 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
41999
  }
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, {
42000
+ 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) }));
42001
+ N(JJ)({ maxWidth: "100px" });
42002
+ var nZ = (e) => /* @__PURE__ */ F(tZ, {
41895
42003
  ...e,
41896
42004
  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")({
42005
+ }), 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
42006
  display: "flex",
41899
42007
  justifyContent: "space-between"
41900
- }), XX = N("div")({
42008
+ }), aZ = N("div")({
41901
42009
  display: "flex",
41902
42010
  alignItems: "center"
41903
- }), ZX = N(en)({
42011
+ }), oZ = N(en)({
41904
42012
  margin: 0,
41905
42013
  padding: 0
41906
- }), QX = (e) => {
42014
+ }), sZ = (e) => {
41907
42015
  let { header: t, children: n, mini: r, info: i } = e;
41908
- return /* @__PURE__ */ I(YX, { children: [/* @__PURE__ */ I(XX, { children: [/* @__PURE__ */ F(cn, {
42016
+ return /* @__PURE__ */ I(iZ, { children: [/* @__PURE__ */ I(aZ, { children: [/* @__PURE__ */ F(cn, {
41909
42017
  variant: r ? "subheading" : "h5",
41910
42018
  children: t
41911
42019
  }), i] }), n && /* @__PURE__ */ F(Qs, {
41912
42020
  title: n,
41913
42021
  slotProps: { tooltip: { sx: (e) => ({ fontSize: e.typography.fontSize - 2 }) } },
41914
- children: /* @__PURE__ */ F(ZX, {
42022
+ children: /* @__PURE__ */ F(oZ, {
41915
42023
  "aria-label": "Delete",
41916
42024
  size: "large",
41917
- children: /* @__PURE__ */ F(JX, {})
42025
+ children: /* @__PURE__ */ F(rZ, {})
41918
42026
  })
41919
42027
  })] });
41920
42028
  };
41921
- QX.propTypes = {
42029
+ sZ.propTypes = {
41922
42030
  mini: L.default.bool,
41923
42031
  header: L.default.string,
41924
42032
  children: L.default.node,
@@ -41926,24 +42034,24 @@ QX.propTypes = {
41926
42034
  };
41927
42035
  //#endregion
41928
42036
  //#region src/author/size.tsx
41929
- var $X = N("div")({
42037
+ var cZ = N("div")({
41930
42038
  display: "flex",
41931
42039
  alignItems: "center",
41932
42040
  gap: "10px"
41933
- }), eZ = N("div")({
42041
+ }), lZ = N("div")({
41934
42042
  display: "flex",
41935
42043
  flexFlow: "column"
41936
- }), tZ = N("label")({
42044
+ }), uZ = N("label")({
41937
42045
  fontSize: "small",
41938
42046
  color: "gray"
41939
- }), nZ = N(qJ)({ "& input": { cursor: "default" } }), rZ = (e) => {
42047
+ }), dZ = N(nY)({ "& input": { cursor: "default" } }), fZ = (e) => {
41940
42048
  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: [
42049
+ return /* @__PURE__ */ I(cZ, { children: [/* @__PURE__ */ I(lZ, { children: [/* @__PURE__ */ F("label", { children: "Width (px)" }), /* @__PURE__ */ I(uZ, { children: [
41942
42050
  "Min ",
41943
42051
  n,
41944
42052
  ", Max ",
41945
42053
  r
41946
- ] })] }), /* @__PURE__ */ F(nZ, {
42054
+ ] })] }), /* @__PURE__ */ F(dZ, {
41947
42055
  value: t.width,
41948
42056
  min: n,
41949
42057
  max: r,
@@ -41956,7 +42064,7 @@ var $X = N("div")({
41956
42064
  variant: "outlined"
41957
42065
  })] });
41958
42066
  };
41959
- rZ.propTypes = {
42067
+ fZ.propTypes = {
41960
42068
  size: L.default.shape({
41961
42069
  width: L.default.number,
41962
42070
  height: L.default.number
@@ -41968,18 +42076,18 @@ rZ.propTypes = {
41968
42076
  };
41969
42077
  //#endregion
41970
42078
  //#region src/author/domain.tsx
41971
- var iZ = "domainBegin", aZ = "domainEnd", oZ = N("div")({
42079
+ var pZ = "domainBegin", mZ = "domainEnd", hZ = N("div")({
41972
42080
  display: "flex",
41973
42081
  gap: "20px"
41974
- }), sZ = N("div")({
42082
+ }), gZ = N("div")({
41975
42083
  display: "flex",
41976
42084
  alignItems: "center",
41977
42085
  gap: "10px",
41978
42086
  ".MuiInputBase-input": { padding: "16.5px 14px !important" }
41979
- }), cZ = (e) => e.min <= e.max ? e : {
42087
+ }), _Z = (e) => e.min <= e.max ? e : {
41980
42088
  min: e.max,
41981
42089
  max: e.min
41982
- }, lZ = class extends xt.Component {
42090
+ }, vZ = class extends xt.Component {
41983
42091
  constructor(e) {
41984
42092
  super(e), this.changeMin = this.change.bind(this, "min"), this.changeMax = this.change.bind(this, "max");
41985
42093
  }
@@ -41988,26 +42096,26 @@ var iZ = "domainBegin", aZ = "domainEnd", oZ = N("div")({
41988
42096
  i = e === "min" && n === this.props.domain.max || e === "max" && n === this.props.domain.min ? { ...this.props.domain } : {
41989
42097
  ...this.props.domain,
41990
42098
  [e]: n
41991
- }, r(cZ(i));
42099
+ }, r(_Z(i));
41992
42100
  }
41993
42101
  render() {
41994
42102
  let { domain: e } = this.props;
41995
- return /* @__PURE__ */ I(oZ, { children: [/* @__PURE__ */ I(sZ, { children: [/* @__PURE__ */ F("label", { children: "Min Value" }), /* @__PURE__ */ F(qX, {
42103
+ return /* @__PURE__ */ I(hZ, { children: [/* @__PURE__ */ I(gZ, { children: [/* @__PURE__ */ F("label", { children: "Min Value" }), /* @__PURE__ */ F(nZ, {
41996
42104
  min: -1e5,
41997
42105
  max: 99999,
41998
42106
  value: e.min,
41999
- name: iZ,
42107
+ name: pZ,
42000
42108
  onChange: this.changeMin
42001
- })] }), /* @__PURE__ */ I(sZ, { children: [/* @__PURE__ */ F("label", { children: "Max Value" }), /* @__PURE__ */ F(qX, {
42109
+ })] }), /* @__PURE__ */ I(gZ, { children: [/* @__PURE__ */ F("label", { children: "Max Value" }), /* @__PURE__ */ F(nZ, {
42002
42110
  min: -99999,
42003
42111
  max: 1e5,
42004
42112
  value: e.max,
42005
- name: aZ,
42113
+ name: mZ,
42006
42114
  onChange: this.changeMax
42007
42115
  })] })] });
42008
42116
  }
42009
42117
  };
42010
- lZ.propTypes = {
42118
+ vZ.propTypes = {
42011
42119
  domain: L.default.shape({
42012
42120
  min: L.default.number,
42013
42121
  max: L.default.number
@@ -42016,11 +42124,11 @@ lZ.propTypes = {
42016
42124
  };
42017
42125
  //#endregion
42018
42126
  //#region src/author/arrows.tsx
42019
- var uZ = N("div")({
42127
+ var yZ = N("div")({
42020
42128
  display: "flex",
42021
42129
  alignItems: "center",
42022
42130
  gap: "10px"
42023
- }), dZ = N("div")(({ theme: e }) => ({
42131
+ }), bZ = N("div")(({ theme: e }) => ({
42024
42132
  paddingTop: e.spacing(2),
42025
42133
  display: "flex",
42026
42134
  gap: e.spacing(2),
@@ -42043,7 +42151,7 @@ var uZ = N("div")({
42043
42151
  width: "auto",
42044
42152
  flexShrink: 0
42045
42153
  }
42046
- })), fZ = class extends xt.Component {
42154
+ })), xZ = class extends xt.Component {
42047
42155
  static propTypes = {
42048
42156
  arrows: L.default.shape({
42049
42157
  left: L.default.bool,
@@ -42066,20 +42174,20 @@ var uZ = N("div")({
42066
42174
  }
42067
42175
  render() {
42068
42176
  let { arrows: e } = this.props;
42069
- return /* @__PURE__ */ I(uZ, { children: [/* @__PURE__ */ F("label", { children: "Arrows" }), /* @__PURE__ */ I(dZ, { children: [/* @__PURE__ */ F(TJ, {
42177
+ return /* @__PURE__ */ I(yZ, { children: [/* @__PURE__ */ F("label", { children: "Arrows" }), /* @__PURE__ */ I(bZ, { children: [/* @__PURE__ */ F(PJ, {
42070
42178
  label: "Left",
42071
42179
  checked: e.left,
42072
42180
  onChange: this.changeLeft
42073
- }), /* @__PURE__ */ F(TJ, {
42181
+ }), /* @__PURE__ */ F(PJ, {
42074
42182
  label: "Right",
42075
42183
  checked: e.right,
42076
42184
  onChange: this.changeRight
42077
42185
  })] })] });
42078
42186
  }
42079
- }, { Point: pZ } = S, mZ = N("div")(({ theme: e }) => ({
42187
+ }, { Point: SZ } = S, CZ = N("div")(({ theme: e }) => ({
42080
42188
  paddingTop: e.spacing(2.5),
42081
42189
  "& > :first-child": { marginRight: e.spacing(1) }
42082
- })), hZ = class e extends xt.Component {
42190
+ })), wZ = class e extends xt.Component {
42083
42191
  static propTypes = {
42084
42192
  onSelectionChange: L.default.func,
42085
42193
  selection: L.default.object,
@@ -42105,11 +42213,11 @@ var uZ = N("div")({
42105
42213
  }
42106
42214
  render() {
42107
42215
  let { availableTools: e, hideButtons: t = !1 } = this.props;
42108
- return /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", { children: (e || []).map((e) => /* @__PURE__ */ F(pZ, {
42216
+ return /* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F("div", { children: (e || []).map((e) => /* @__PURE__ */ F(SZ, {
42109
42217
  iconKey: e.toLowerCase(),
42110
42218
  onClick: this.toggle.bind(this, e),
42111
42219
  active: this.active(e)
42112
- }, e.toLowerCase())) }), /* @__PURE__ */ I(mZ, {
42220
+ }, e.toLowerCase())) }), /* @__PURE__ */ I(CZ, {
42113
42221
  hidden: t,
42114
42222
  children: [/* @__PURE__ */ F(Ce, {
42115
42223
  variant: "outlined",
@@ -42125,7 +42233,7 @@ var uZ = N("div")({
42125
42233
  })] });
42126
42234
  }
42127
42235
  };
42128
- hZ.types = [
42236
+ wZ.types = [
42129
42237
  "PF",
42130
42238
  "LFF",
42131
42239
  "LEF",
@@ -42138,102 +42246,102 @@ hZ.types = [
42138
42246
  ];
42139
42247
  //#endregion
42140
42248
  //#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")({
42249
+ 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
42250
  display: "flex",
42143
42251
  flexFlow: "column",
42144
42252
  gap: "10px",
42145
42253
  width: "65%"
42146
- }), yZ = N("div")({
42254
+ }), OZ = N("div")({
42147
42255
  display: "flex",
42148
42256
  flexFlow: "column",
42149
42257
  gap: "10px"
42150
- }), bZ = N("tr")({
42258
+ }), kZ = N("tr")({
42151
42259
  display: "flex",
42152
42260
  alignItems: "center",
42153
42261
  paddingTop: "5px",
42154
42262
  paddingBottom: "5px"
42155
- }), xZ = N("table")({
42263
+ }), AZ = N("table")({
42156
42264
  tableLayout: "fixed",
42157
42265
  width: "100%"
42158
- }), SZ = N("td")({ width: "35%" }), CZ = N(Ls)({ color: `${k.tertiary()} !important` }), wZ = N(qJ)({ "& input": {
42266
+ }), jZ = N("td")({ width: "35%" }), MZ = N(Ls)({ color: `${k.tertiary()} !important` }), NZ = N(nY)({ "& input": {
42159
42267
  maxWidth: "145px",
42160
42268
  cursor: "default"
42161
- } }), TZ = [
42269
+ } }), PZ = [
42162
42270
  "Integer",
42163
42271
  "Fraction",
42164
42272
  "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, {
42273
+ ], FZ = (e) => {
42274
+ 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;
42275
+ return /* @__PURE__ */ I(EZ, { children: [/* @__PURE__ */ I(DZ, { children: [/* @__PURE__ */ F("label", { children: "Tick Interval" }), /* @__PURE__ */ F(Bs, {
42168
42276
  "aria-label": "tick-interval-type",
42169
42277
  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 }));
42278
+ value: t.tickIntervalType,
42279
+ onChange: (e, n) => {
42280
+ 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
42281
  },
42174
- children: /* @__PURE__ */ F(xZ, { children: /* @__PURE__ */ I("tbody", { children: [
42175
- /* @__PURE__ */ I(bZ, { children: [/* @__PURE__ */ F(SZ, { children: /* @__PURE__ */ F(Pa, {
42282
+ children: /* @__PURE__ */ F(AZ, { children: /* @__PURE__ */ I("tbody", { children: [
42283
+ /* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
42176
42284
  value: "Integer",
42177
- control: /* @__PURE__ */ F(CZ, { checked: r.tickIntervalType === "Integer" }),
42285
+ control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Integer" }),
42178
42286
  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)),
42287
+ disabled: o.max < 1
42288
+ }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
42289
+ value: t.integerTick,
42290
+ min: u(n(o.min)),
42291
+ max: u(i(o.max)),
42184
42292
  step: 1,
42185
42293
  onlyIntegersAllowed: !0,
42186
- onChange: (e, t) => {
42187
- r.tickIntervalType === "Integer" && (r.integerTick = t, r.minor = t, i({ ticks: r }));
42294
+ onChange: (e, n) => {
42295
+ t.tickIntervalType === "Integer" && (t.integerTick = n, t.minor = n, a({ ticks: t }));
42188
42296
  },
42189
42297
  variant: "outlined",
42190
42298
  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, {
42299
+ disabled: t.tickIntervalType !== "Integer" || o.max < 1
42300
+ }, t.tickIntervalType !== "Integer" || o.max < 1 ? "integerDisabled" : "integerEnabled") })] }),
42301
+ /* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
42194
42302
  value: "Fraction",
42195
- control: /* @__PURE__ */ F(CZ, { checked: r.tickIntervalType === "Fraction" }),
42303
+ control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Fraction" }),
42196
42304
  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 }));
42305
+ disabled: s.fraction.length === 0
42306
+ }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
42307
+ value: t.fractionTick,
42308
+ customValues: s.fraction,
42309
+ onChange: (e, n) => {
42310
+ t.tickIntervalType === "Fraction" && (t.fractionTick = n, t.minor = u(r(n)), a({ ticks: t }));
42203
42311
  },
42204
42312
  variant: "outlined",
42205
42313
  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, {
42314
+ disabled: t.tickIntervalType !== "Fraction" || s.fraction.length === 0
42315
+ }, t.tickIntervalType !== "Fraction" || s.fraction.length === 0 ? "fractionDisabled" : "fractionEnabled") })] }),
42316
+ /* @__PURE__ */ I(kZ, { children: [/* @__PURE__ */ F(jZ, { children: /* @__PURE__ */ F(Pa, {
42209
42317
  value: "Decimal",
42210
- control: /* @__PURE__ */ F(CZ, { checked: r.tickIntervalType === "Decimal" }),
42318
+ control: /* @__PURE__ */ F(MZ, { checked: t.tickIntervalType === "Decimal" }),
42211
42319
  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 }));
42320
+ disabled: s.decimal.length === 0
42321
+ }) }), /* @__PURE__ */ F("td", { children: /* @__PURE__ */ F(NZ, {
42322
+ value: t.decimalTick,
42323
+ customValues: s.decimal,
42324
+ onChange: (e, n) => {
42325
+ t.tickIntervalType === "Decimal" && (t.decimalTick = n, t.minor = n, a({ ticks: t }));
42218
42326
  },
42219
42327
  variant: "outlined",
42220
42328
  type: "number",
42221
- disabled: r.tickIntervalType !== "Decimal" || o.decimal.length === 0
42222
- }, r.tickIntervalType !== "Decimal" || o.decimal.length === 0 ? "decimalDisabled" : "decimalEnabled") })] })
42329
+ disabled: t.tickIntervalType !== "Decimal" || s.decimal.length === 0
42330
+ }, t.tickIntervalType !== "Decimal" || s.decimal.length === 0 ? "decimalDisabled" : "decimalEnabled") })] })
42223
42331
  ] }) })
42224
- })] }), /* @__PURE__ */ I(yZ, { children: [/* @__PURE__ */ F("label", { children: "Label Interval" }), /* @__PURE__ */ F(wZ, {
42225
- value: r.tickIntervalType === "Fraction" ? l : r.major,
42332
+ })] }), /* @__PURE__ */ I(OZ, { children: [/* @__PURE__ */ F("label", { children: "Label Interval" }), /* @__PURE__ */ F(NZ, {
42333
+ value: t.tickIntervalType === "Fraction" ? d : t.major,
42226
42334
  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 }));
42335
+ customValues: t.tickIntervalType === "Fraction" ? c.fraction : c.decimal,
42336
+ type: t.tickIntervalType === "Fraction" ? "text" : "number",
42337
+ onChange: t.tickIntervalType === "Fraction" ? (e, n) => {
42338
+ t.tickIntervalType === "Fraction" && (t.major = u(r(n)), a({ ticks: t }));
42339
+ } : (e, n) => {
42340
+ (t.tickIntervalType === "Decimal" || t.tickIntervalType === "Integer") && (t.major = n, a({ ticks: t }));
42233
42341
  }
42234
42342
  })] })] });
42235
42343
  };
42236
- EZ.propTypes = {
42344
+ FZ.propTypes = {
42237
42345
  onChange: L.default.func,
42238
42346
  ticks: L.default.object,
42239
42347
  minorLimits: L.default.object,
@@ -42242,7 +42350,7 @@ EZ.propTypes = {
42242
42350
  };
42243
42351
  //#endregion
42244
42352
  //#region src/author/defaults.ts
42245
- var DZ = {
42353
+ var IZ = {
42246
42354
  correctResponse: [],
42247
42355
  feedback: {
42248
42356
  correct: {
@@ -42288,7 +42396,7 @@ var DZ = {
42288
42396
  teacherInstructionsEnabled: !0,
42289
42397
  toolbarEditorPosition: "bottom",
42290
42398
  widthEnabled: !0
42291
- }, OZ = {
42399
+ }, LZ = {
42292
42400
  baseInputConfiguration: {
42293
42401
  h3: { disabled: !0 },
42294
42402
  audio: { disabled: !1 },
@@ -42382,7 +42490,7 @@ var DZ = {
42382
42490
  "REP"
42383
42491
  ],
42384
42492
  settingsPanelDisabled: !1
42385
- }, kZ = () => "Validation requirements:\nThe correct answer should include at least one number line object.", AZ = (e) => ({
42493
+ }, RZ = () => "Validation requirements:\nThe correct answer should include at least one number line object.", zZ = (e) => ({
42386
42494
  ...e,
42387
42495
  feedback: void 0,
42388
42496
  prompt: void 0,
@@ -42393,35 +42501,35 @@ var DZ = {
42393
42501
  disabled: !0
42394
42502
  },
42395
42503
  correctResponse: void 0
42396
- }), { lineIsSwitched: jZ, switchGraphLine: MZ, toGraphFormat: NZ, toSessionFormat: PZ } = ye, { Panel: FZ, toggle: IZ } = AX, LZ = {}, RZ = {}, zZ = {}, BZ = N(qX)({
42504
+ }), { lineIsSwitched: BZ, switchGraphLine: VZ, toGraphFormat: HZ, toSessionFormat: UZ } = ye, { Panel: WZ, toggle: GZ } = zX, KZ = {}, qZ = {}, JZ = {}, YZ = N(nZ)({
42397
42505
  width: "150px",
42398
42506
  ".MuiInputBase-input": { padding: "16.5px 14px" }
42399
- }), VZ = N("div")(({ theme: e }) => ({
42507
+ }), XZ = N("div")(({ theme: e }) => ({
42400
42508
  display: "flex",
42401
42509
  flexWrap: "wrap",
42402
42510
  "& > *": { paddingRight: e.spacing(2) }
42403
- })), HZ = N("div")(({ theme: e }) => ({ margin: `${e.spacing(2.5)} 0` })), UZ = N(HX)(({ theme: e }) => ({
42511
+ })), ZZ = N("div")(({ theme: e }) => ({ margin: `${e.spacing(2.5)} 0` })), QZ = N(ZX)(({ theme: e }) => ({
42404
42512
  paddingTop: e.spacing(2),
42405
42513
  marginBottom: e.spacing(2),
42406
42514
  width: "100%"
42407
- })), WZ = N(FJ)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), GZ = N("div")(({ theme: e }) => ({
42515
+ })), $Z = N(WJ)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), eQ = N("div")(({ theme: e }) => ({
42408
42516
  fontSize: e.typography.fontSize - 2,
42409
42517
  color: e.palette.error.main,
42410
42518
  paddingTop: e.spacing(1)
42411
- })), KZ = N("div")({
42519
+ })), tQ = N("div")({
42412
42520
  display: "flex",
42413
42521
  alignItems: "center",
42414
42522
  gap: "10px"
42415
- }), qZ = N(FJ)({
42523
+ }), nQ = N(WJ)({
42416
42524
  display: "flex",
42417
42525
  alignItems: "center",
42418
42526
  gap: "10px"
42419
- }), JZ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), YZ = (e) => {
42527
+ }), rQ = N(cn)(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), iQ = (e) => {
42420
42528
  function t(e) {
42421
42529
  return e.pointType ? e.direction ? `${e.pointType[0]}${e.direction[0]}` : e.pointType[0] : `${e.leftPoint[0]}${e.rightPoint[0]}`;
42422
42530
  }
42423
42531
  return `${e.type[0]}${t(e)}`.toUpperCase();
42424
- }, XZ = class extends xt.Component {
42532
+ }, aQ = class extends xt.Component {
42425
42533
  static propTypes = {
42426
42534
  model: L.default.object.isRequired,
42427
42535
  configuration: L.default.object.isRequired,
@@ -42506,62 +42614,62 @@ var DZ = {
42506
42614
  correctResponse: i
42507
42615
  });
42508
42616
  };
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 = {
42617
+ reloadTicksData = (e) => {
42618
+ let { domain: t, ticks: a, width: o } = e;
42619
+ 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
42620
  decimal: [],
42513
42621
  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) {
42622
+ }, a.fractionTick = "0", a.decimalTick = 0;
42623
+ else if (KZ.min >= 0 && KZ.max < 1) {
42624
+ a.tickIntervalType === "Integer" && (a.tickIntervalType = "Fraction"), qZ = ie(KZ);
42625
+ let e = u(r(qZ.fraction[0])), t = u(r(qZ.fraction[qZ.fraction.length - 1]));
42626
+ if (a.minor < e || a.minor > t) switch (a.tickIntervalType) {
42519
42627
  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];
42628
+ a.minor = u(r(qZ.fraction[qZ.fraction.length - 1])), a.fractionTick = qZ.fraction[qZ.fraction.length - 1], a.decimalTick = qZ.decimal[0];
42521
42629
  break;
42522
42630
  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];
42631
+ case "Integer": a.minor = qZ.decimal[qZ.decimal.length - 1], a.decimalTick = qZ.decimal[qZ.decimal.length - 1], a.fractionTick = qZ.fraction[0];
42524
42632
  }
42525
- else switch (i.tickIntervalType) {
42633
+ else switch (a.tickIntervalType) {
42526
42634
  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];
42635
+ let e = r(u(a.minor));
42636
+ a.fractionTick = e.n + "/" + e.d, a.decimalTick = a.decimalTick ? a.decimalTick : qZ.decimal[0];
42529
42637
  break;
42530
42638
  case "Decimal":
42531
- case "Integer": i.decimalTick = i.minor, i.fractionTick = i.fractionTick ? i.fractionTick : RZ.fraction[0];
42639
+ case "Integer": a.decimalTick = a.minor, a.fractionTick = a.fractionTick ? a.fractionTick : qZ.fraction[0];
42532
42640
  }
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) {
42641
+ a.integerTick = 1;
42642
+ } else if (KZ.min < 1 && KZ.max >= 1) if (qZ = ie(KZ), a.minor >= KZ.min && a.minor <= KZ.max) switch (a.tickIntervalType) {
42535
42643
  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];
42644
+ a.integerTick = a.minor, a.decimalTick = KZ.min > .5 ? 0 : qZ.decimal[0], a.fractionTick = KZ.min > .5 ? "0" : qZ.fraction[0];
42537
42645
  break;
42538
42646
  case "Decimal":
42539
- i.integerTick = 1, i.decimalTick = i.minor, i.fractionTick = RZ.fraction[0];
42647
+ a.integerTick = 1, a.decimalTick = a.minor, a.fractionTick = qZ.fraction[0];
42540
42648
  break;
42541
42649
  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;
42650
+ a.integerTick = 1, a.decimalTick = qZ.decimal[0];
42651
+ let e = r(u(a.minor));
42652
+ a.fractionTick = e.n + "/" + e.d;
42545
42653
  }
42546
- else switch (LZ.min > .5 && (i.tickIntervalType = "Integer"), i.tickIntervalType) {
42654
+ else switch (KZ.min > .5 && (a.tickIntervalType = "Integer"), a.tickIntervalType) {
42547
42655
  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];
42656
+ 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
42657
  break;
42550
42658
  case "Decimal":
42551
- i.minor = RZ.decimal[0], i.integerTick = 1, i.decimalTick = i.minor, i.fractionTick = RZ.fraction[0];
42659
+ a.minor = qZ.decimal[0], a.integerTick = 1, a.decimalTick = a.minor, a.fractionTick = qZ.fraction[0];
42552
42660
  break;
42553
- case "Fraction": i.minor = u(v(RZ.fraction[0])), i.integerTick = 1, i.decimalTick = RZ.decimal[0], i.fractionTick = RZ.fraction[0];
42661
+ case "Fraction": a.minor = u(r(qZ.fraction[0])), a.integerTick = 1, a.decimalTick = qZ.decimal[0], a.fractionTick = qZ.fraction[0];
42554
42662
  }
42555
42663
  return this.updateMajorValue({
42556
- ...t,
42557
- ticks: i
42664
+ ...e,
42665
+ ticks: a
42558
42666
  });
42559
42667
  };
42560
42668
  updateMajorValue = (e) => {
42561
42669
  let { domain: t, ticks: n, width: r } = e;
42562
- if (zZ = O(n.minor, t, r), zZ.decimal.indexOf(n.major) === -1) {
42670
+ if (JZ = O(n.minor, t, r), JZ.decimal.indexOf(n.major) === -1) {
42563
42671
  let e = 0;
42564
- e = n.tickIntervalType === "Integer" && zZ.decimal.length > 4 ? 4 : zZ.decimal.length - 1, n.major = zZ.decimal[e];
42672
+ e = n.tickIntervalType === "Integer" && JZ.decimal.length > 4 ? 4 : JZ.decimal.length - 1, n.major = JZ.decimal[e];
42565
42673
  }
42566
42674
  return e.fraction = n.tickIntervalType === "Fraction" && n.major < 1, {
42567
42675
  ...e,
@@ -42570,20 +42678,20 @@ var DZ = {
42570
42678
  };
42571
42679
  changeArrows = (e) => this.graphChange({ arrows: e });
42572
42680
  setDefaults = () => {
42573
- let { graph: { availableTypes: e, maxNumberOfPoints: t } } = DZ, n = this.getAdjustedHeight(e, t), r = {
42574
- ...l(DZ.graph),
42681
+ let { graph: { availableTypes: e, maxNumberOfPoints: t } } = IZ, n = this.getAdjustedHeight(e, t), r = {
42682
+ ...l(IZ.graph),
42575
42683
  height: n
42576
42684
  };
42577
42685
  this.props.onChange({ graph: r });
42578
42686
  };
42579
42687
  moveCorrectResponse = (e, t, n) => {
42580
42688
  t.position = n;
42581
- let { onChange: r, model: i } = this.props, a = PZ(t.type === "line" && jZ(t) ? MZ(t) : t), o = [...i.correctResponse];
42689
+ let { onChange: r, model: i } = this.props, a = UZ(t.type === "line" && BZ(t) ? VZ(t) : t), o = [...i.correctResponse];
42582
42690
  o[e] = a, r({ correctResponse: o });
42583
42691
  };
42584
42692
  availableTypesChange = (e) => {
42585
42693
  let { model: t, onChange: n } = this.props, { correctResponse: r, graph: { maxNumberOfPoints: i } } = t;
42586
- new Set(r.map(YZ)).forEach((t) => {
42694
+ new Set(r.map(iQ)).forEach((t) => {
42587
42695
  e[t] = !0;
42588
42696
  });
42589
42697
  let a = this.getAdjustedHeight(e, i);
@@ -42599,7 +42707,7 @@ var DZ = {
42599
42707
  };
42600
42708
  addCorrectResponse = (e) => {
42601
42709
  let { model: t, onChange: n } = this.props, r = [...t.correctResponse];
42602
- r.push(PZ(e)), n({ correctResponse: r });
42710
+ r.push(UZ(e)), n({ correctResponse: r });
42603
42711
  };
42604
42712
  clearCorrectResponse = () => {
42605
42713
  let { onChange: e } = this.props;
@@ -42612,23 +42720,23 @@ var DZ = {
42612
42720
  render() {
42613
42721
  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
42722
  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);
42723
+ 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
42724
  pe.disabled = !0;
42617
42725
  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)
42726
+ teacherInstructionsEnabled: u.settings && GZ(u.label),
42727
+ titleEnabled: d.settings && GZ(d.label),
42728
+ promptEnabled: f.settings && GZ(f.label),
42729
+ rationaleEnabled: p.settings && GZ(p.label),
42730
+ spellCheckEnabled: m.settings && GZ(m.label)
42623
42731
  }, k = (e = {}) => ({
42624
42732
  ...o,
42625
42733
  ...e
42626
42734
  });
42627
- return /* @__PURE__ */ I(tX.ConfigLayout, {
42735
+ return /* @__PURE__ */ I(uX.ConfigLayout, {
42628
42736
  extraCSSRules: S,
42629
42737
  dimensions: s,
42630
42738
  hideSettings: b,
42631
- settings: /* @__PURE__ */ F(FZ, {
42739
+ settings: /* @__PURE__ */ F(WZ, {
42632
42740
  model: e,
42633
42741
  configuration: n,
42634
42742
  onChangeModel: t,
@@ -42636,14 +42744,14 @@ var DZ = {
42636
42744
  groups: { Properties: he }
42637
42745
  }),
42638
42746
  children: [
42639
- /* @__PURE__ */ F(JZ, {
42747
+ /* @__PURE__ */ F(rQ, {
42640
42748
  component: "div",
42641
42749
  type: "body1",
42642
42750
  children: c.label
42643
42751
  }),
42644
- T && /* @__PURE__ */ I(UZ, {
42752
+ T && /* @__PURE__ */ I(QZ, {
42645
42753
  label: u.label,
42646
- children: [/* @__PURE__ */ F(mJ, {
42754
+ children: [/* @__PURE__ */ F(CJ, {
42647
42755
  markup: e.teacherInstructions || "",
42648
42756
  onChange: (e) => t({ teacherInstructions: e }),
42649
42757
  nonEmpty: !1,
@@ -42656,11 +42764,11 @@ var DZ = {
42656
42764
  uploadSoundSupport: i,
42657
42765
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42658
42766
  mathMlOptions: h
42659
- }), le && /* @__PURE__ */ F(GZ, { children: le })]
42767
+ }), le && /* @__PURE__ */ F(eQ, { children: le })]
42660
42768
  }),
42661
- ee && /* @__PURE__ */ I(UZ, {
42769
+ ee && /* @__PURE__ */ I(QZ, {
42662
42770
  label: f.label,
42663
- children: [/* @__PURE__ */ F(mJ, {
42771
+ children: [/* @__PURE__ */ F(CJ, {
42664
42772
  markup: e.prompt || "",
42665
42773
  onChange: (e) => t({ prompt: e }),
42666
42774
  nonEmpty: !1,
@@ -42673,9 +42781,9 @@ var DZ = {
42673
42781
  uploadSoundSupport: i,
42674
42782
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42675
42783
  mathMlOptions: h
42676
- }), se && /* @__PURE__ */ F(GZ, { children: se })]
42784
+ }), se && /* @__PURE__ */ F(eQ, { children: se })]
42677
42785
  }),
42678
- /* @__PURE__ */ F(QX, {
42786
+ /* @__PURE__ */ F(sZ, {
42679
42787
  header: "Set Up Number Line",
42680
42788
  info: /* @__PURE__ */ F(Qs, {
42681
42789
  disableFocusListener: !0,
@@ -42687,7 +42795,7 @@ var DZ = {
42687
42795
  whiteSpace: "pre",
42688
42796
  maxWidth: "500px"
42689
42797
  }) } },
42690
- children: /* @__PURE__ */ F(gZ, {
42798
+ children: /* @__PURE__ */ F(TZ, {
42691
42799
  fontSize: "small",
42692
42800
  color: "primary",
42693
42801
  style: { marginLeft: "8px" }
@@ -42695,22 +42803,22 @@ var DZ = {
42695
42803
  }),
42696
42804
  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
42805
  }),
42698
- /* @__PURE__ */ F(VZ, { children: /* @__PURE__ */ F(lZ, {
42806
+ /* @__PURE__ */ F(XZ, { children: /* @__PURE__ */ F(vZ, {
42699
42807
  domain: O.domain,
42700
42808
  errors: x,
42701
42809
  onChange: (e) => this.graphChange({ domain: e })
42702
42810
  }) }),
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, {
42811
+ ae && /* @__PURE__ */ F(eQ, { children: ae }),
42812
+ ie && /* @__PURE__ */ F(eQ, { children: ie }),
42813
+ /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F(WJ, { children: /* @__PURE__ */ F(FZ, {
42706
42814
  ticks: O.ticks,
42707
- minorLimits: LZ,
42708
- minorValues: RZ,
42709
- majorValues: zZ,
42815
+ minorLimits: KZ,
42816
+ minorValues: qZ,
42817
+ majorValues: JZ,
42710
42818
  onChange: this.changeTicks
42711
42819
  }) }) }),
42712
- /* @__PURE__ */ I(KZ, { children: [
42713
- e.widthEnabled && /* @__PURE__ */ F(rZ, {
42820
+ /* @__PURE__ */ I(tQ, { children: [
42821
+ e.widthEnabled && /* @__PURE__ */ F(fZ, {
42714
42822
  size: O,
42715
42823
  min: g.min,
42716
42824
  max: g.max,
@@ -42718,12 +42826,12 @@ var DZ = {
42718
42826
  onChange: this.changeSize
42719
42827
  }),
42720
42828
  /* @__PURE__ */ F("div", {}),
42721
- /* @__PURE__ */ F(fZ, {
42829
+ /* @__PURE__ */ F(xZ, {
42722
42830
  arrows: O.arrows,
42723
42831
  onChange: this.changeArrows
42724
42832
  })
42725
42833
  ] }),
42726
- ue && /* @__PURE__ */ F(GZ, { children: ue }),
42834
+ ue && /* @__PURE__ */ F(eQ, { children: ue }),
42727
42835
  /* @__PURE__ */ F($e, {
42728
42836
  onMoveElement: () => {},
42729
42837
  onDeleteElements: () => {},
@@ -42733,11 +42841,11 @@ var DZ = {
42733
42841
  minWidth: g.min,
42734
42842
  maxWidth: g.max,
42735
42843
  maxHeight: 70,
42736
- model: AZ(pe)
42844
+ model: zZ(pe)
42737
42845
  }),
42738
- E && /* @__PURE__ */ F(WZ, {
42846
+ E && /* @__PURE__ */ F($Z, {
42739
42847
  label: d?.label || "Title",
42740
- children: /* @__PURE__ */ F(mJ, {
42848
+ children: /* @__PURE__ */ F(CJ, {
42741
42849
  markup: O.title || "",
42742
42850
  onChange: this.changeGraphTitle,
42743
42851
  toolbarOpts: me,
@@ -42761,31 +42869,31 @@ var DZ = {
42761
42869
  })
42762
42870
  }),
42763
42871
  !O.exhibitOnly && /* @__PURE__ */ I(xt.Fragment, { children: [
42764
- /* @__PURE__ */ I(QX, {
42872
+ /* @__PURE__ */ I(sZ, {
42765
42873
  header: "Define Tool Set and Correct Response",
42766
42874
  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
42875
  }),
42768
- /* @__PURE__ */ F(QX, {
42876
+ /* @__PURE__ */ F(sZ, {
42769
42877
  header: "Available Tools",
42770
42878
  mini: !0,
42771
42879
  children: "Click on the input options to be displayed to the students. All inputs will display by default."
42772
42880
  }),
42773
- /* @__PURE__ */ F(HZ, { children: /* @__PURE__ */ F(hZ, {
42881
+ /* @__PURE__ */ F(ZZ, { children: /* @__PURE__ */ F(wZ, {
42774
42882
  onSelectionChange: this.availableTypesChange,
42775
42883
  selection: O.availableTypes,
42776
42884
  availableTools: y,
42777
42885
  hideButtons: v
42778
42886
  }) }),
42779
- /* @__PURE__ */ I(qZ, { children: [
42887
+ /* @__PURE__ */ I(nQ, { children: [
42780
42888
  /* @__PURE__ */ F("label", { children: "Max No of Elements" }),
42781
- /* @__PURE__ */ F(BZ, {
42889
+ /* @__PURE__ */ F(YZ, {
42782
42890
  min: 1,
42783
42891
  max: _,
42784
42892
  onlyIntegersAllowed: !0,
42785
42893
  value: O.maxNumberOfPoints,
42786
42894
  onChange: this.changeMaxNoOfPoints
42787
42895
  }),
42788
- oe && /* @__PURE__ */ F(GZ, { children: oe })
42896
+ oe && /* @__PURE__ */ F(eQ, { children: oe })
42789
42897
  ] }),
42790
42898
  /* @__PURE__ */ F("label", { children: "Correct Answer" }),
42791
42899
  /* @__PURE__ */ F($e, {
@@ -42797,9 +42905,9 @@ var DZ = {
42797
42905
  minWidth: g.min,
42798
42906
  maxWidth: g.max,
42799
42907
  answer: fe,
42800
- model: AZ(e)
42908
+ model: zZ(e)
42801
42909
  }),
42802
- re && /* @__PURE__ */ F(GZ, { children: re })
42910
+ re && /* @__PURE__ */ F(eQ, { children: re })
42803
42911
  ] }),
42804
42912
  /* @__PURE__ */ F(Uc, {
42805
42913
  open: te.open,
@@ -42822,9 +42930,9 @@ var DZ = {
42822
42930
  onConfirmText: "OK",
42823
42931
  onCloseText: "Cancel"
42824
42932
  }),
42825
- D && /* @__PURE__ */ I(UZ, {
42933
+ D && /* @__PURE__ */ I(QZ, {
42826
42934
  label: p.label || "Rationale",
42827
- children: [/* @__PURE__ */ F(mJ, {
42935
+ children: [/* @__PURE__ */ F(CJ, {
42828
42936
  markup: e.rationale || "",
42829
42937
  onChange: (e) => t({ rationale: e }),
42830
42938
  error: ce,
@@ -42835,12 +42943,12 @@ var DZ = {
42835
42943
  uploadSoundSupport: i,
42836
42944
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42837
42945
  mathMlOptions: h
42838
- }), ce && /* @__PURE__ */ F(GZ, { children: ce })]
42946
+ }), ce && /* @__PURE__ */ F(eQ, { children: ce })]
42839
42947
  })
42840
42948
  ]
42841
42949
  });
42842
42950
  }
42843
- }, ZZ = class e extends CustomEvent {
42951
+ }, oQ = class e extends CustomEvent {
42844
42952
  static {
42845
42953
  this.TYPE = "model.updated";
42846
42954
  }
@@ -42853,7 +42961,7 @@ var DZ = {
42853
42961
  }
42854
42962
  }), this.update = t, this.reset = n;
42855
42963
  }
42856
- }, QZ = class e extends CustomEvent {
42964
+ }, sQ = class e extends CustomEvent {
42857
42965
  static {
42858
42966
  this.TYPE = "delete.image";
42859
42967
  }
@@ -42866,7 +42974,7 @@ var DZ = {
42866
42974
  }
42867
42975
  }), this.src = t, this.done = n;
42868
42976
  }
42869
- }, $Z = class e extends CustomEvent {
42977
+ }, cQ = class e extends CustomEvent {
42870
42978
  static {
42871
42979
  this.TYPE = "insert.image";
42872
42980
  }
@@ -42876,7 +42984,7 @@ var DZ = {
42876
42984
  detail: t
42877
42985
  }), this.handler = t;
42878
42986
  }
42879
- }, eQ = class e extends CustomEvent {
42987
+ }, lQ = class e extends CustomEvent {
42880
42988
  static {
42881
42989
  this.TYPE = "delete.sound";
42882
42990
  }
@@ -42889,7 +42997,7 @@ var DZ = {
42889
42997
  }
42890
42998
  }), this.src = t, this.done = n;
42891
42999
  }
42892
- }, tQ = class e extends CustomEvent {
43000
+ }, uQ = class e extends CustomEvent {
42893
43001
  static {
42894
43002
  this.TYPE = "insert.sound";
42895
43003
  }
@@ -42899,7 +43007,7 @@ var DZ = {
42899
43007
  detail: t
42900
43008
  }), this.handler = t;
42901
43009
  }
42902
- }, nQ = (e) => {
43010
+ }, dQ = (e) => {
42903
43011
  let { graph: { domain: t, labelStep: n, ticks: r = {} } = {} } = e, { minor: i, major: a } = r;
42904
43012
  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
43013
  e.graph.fraction = !0, r.tickIntervalType = "Fraction";
@@ -42907,17 +43015,17 @@ var DZ = {
42907
43015
  t !== a && (r.major = t, r.minor = t / (a / i));
42908
43016
  }
42909
43017
  return e;
42910
- }, rQ = class e extends HTMLElement {
43018
+ }, fQ = class e extends HTMLElement {
42911
43019
  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,
43020
+ let t = LZ, n = e.language || "";
43021
+ return !n && t.language && t.language.enabled && t.languageChoices?.options?.length && (n = t.languageChoices.options[0].value), dQ({
43022
+ ...IZ,
42915
43023
  ...e,
42916
43024
  language: n
42917
43025
  });
42918
43026
  };
42919
43027
  constructor() {
42920
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = OZ;
43028
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = LZ;
42921
43029
  }
42922
43030
  set model(t) {
42923
43031
  this._model = e.createDefaultModel(t), this._modelCopy = l(this._model), this._rerender();
@@ -42928,7 +43036,7 @@ var DZ = {
42928
43036
  };
42929
43037
  set configuration(e) {
42930
43038
  let t = {
42931
- ...OZ,
43039
+ ...LZ,
42932
43040
  ...e
42933
43041
  };
42934
43042
  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 +43048,25 @@ var DZ = {
42940
43048
  this._model = {
42941
43049
  ...this._model,
42942
43050
  ...e
42943
- }, this.dispatchEvent(new ZZ(this._model)), this._rerender();
43051
+ }, this.dispatchEvent(new oQ(this._model)), this._rerender();
42944
43052
  };
42945
43053
  onConfigurationChanged = (e) => {
42946
43054
  this._configuration = e, this._render();
42947
43055
  };
42948
43056
  insertImage(e) {
42949
- this.dispatchEvent(new $Z(e));
43057
+ this.dispatchEvent(new cQ(e));
42950
43058
  }
42951
43059
  onDeleteImage(e, t) {
42952
- this.dispatchEvent(new QZ(e, t));
43060
+ this.dispatchEvent(new sQ(e, t));
42953
43061
  }
42954
43062
  insertSound(e) {
42955
- this.dispatchEvent(new tQ(e));
43063
+ this.dispatchEvent(new uQ(e));
42956
43064
  }
42957
43065
  onDeleteSound(e, t) {
42958
- this.dispatchEvent(new eQ(e, t));
43066
+ this.dispatchEvent(new lQ(e, t));
42959
43067
  }
42960
43068
  _rerender() {
42961
- let e = xt.createElement(XZ, {
43069
+ let e = xt.createElement(aQ, {
42962
43070
  model: this._model,
42963
43071
  configuration: this._configuration,
42964
43072
  onChange: this.onChange,
@@ -42982,6 +43090,6 @@ var DZ = {
42982
43090
  }
42983
43091
  };
42984
43092
  //#endregion
42985
- export { rQ as default };
43093
+ export { fQ as default };
42986
43094
 
42987
43095
  //# sourceMappingURL=index.js.map