@pie-element/matrix 4.1.2-next.6 → 4.1.2-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { i as e, r as t, t as n } from "../rolldown-runtime-CWhphoD1.js";
2
- import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, Ot as C, P as w, Q as ee, R as te, S as ne, St as T, Tt as re, U as ie, V as E, W as ae, X as oe, Y as se, Z as ce, _ as le, _t as ue, a as de, at as fe, b as pe, bt as me, c as he, ct as ge, dt as _e, et as ve, f as ye, ft as be, g as xe, gt as Se, h as Ce, ht as we, i as Te, it as D, j as Ee, k as De, kt as Oe, l as O, lt as ke, m as Ae, mt as k, n as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, w as Je, wt as Ye, x as Xe, xt as Ze, yt as Qe, z as $e } from "../Radio-DpBKqGy9.js";
2
+ import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, N as x, O as S, Ot as C, P as w, Q as ee, R as te, S as ne, St as T, Tt as re, U as ie, V as E, W as ae, X as oe, Y as se, Z as ce, _ as le, _t as ue, a as de, at as fe, b as pe, bt as me, c as he, ct as ge, dt as _e, et as ve, f as ye, ft as be, g as xe, gt as Se, h as Ce, ht as we, i as Te, it as D, j as Ee, k as De, kt as Oe, l as O, lt as ke, m as Ae, mt as k, n as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as Ge, v as Ke, vt as qe, w as Je, wt as Ye, x as Xe, xt as Ze, yt as Qe, z as $e } from "../Radio-DOR4NyIK.js";
3
3
  import { a as et, c as tt, d as nt, f as rt, i as it, l as at, n as ot, o as st, r as ct, s as lt, t as ut, u as dt } from "../dist-Do2L8-B6.js";
4
4
  import * as A from "react";
5
5
  import ft, { Component as pt, createContext as mt, createElement as ht, createRef as gt, forwardRef as _t, memo as vt, useCallback as yt, useContext as bt, useDebugValue as xt, useEffect as St, useLayoutEffect as Ct, useMemo as wt, useRef as Tt, useState as Et, version as Dt } from "react";
@@ -39069,8 +39069,8 @@ Jm.create({
39069
39069
  })) ?? null };
39070
39070
  }
39071
39071
  });
39072
- var Sq = "placeholder", Cq = new $i("tiptap__placeholder"), wq = 200;
39073
- function Tq(e) {
39072
+ var Sq = "placeholder", Cq = new $i("tiptap__placeholder");
39073
+ function wq(e) {
39074
39074
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
39075
39075
  return o && u.push(l), Xu.node(i, i + a.nodeSize, {
39076
39076
  class: u.join(" "),
@@ -39082,156 +39082,198 @@ function Tq(e) {
39082
39082
  }) : n
39083
39083
  });
39084
39084
  }
39085
- function Eq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
39085
+ function Tq(e, t) {
39086
+ return typeof e == "function" ? e(t) : e;
39087
+ }
39088
+ function Eq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
39089
+ let { anchor: s } = i, c = [], l = e.isEmpty;
39090
+ return r.nodesBetween(a, o, (r, i) => {
39091
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && nm(r);
39092
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(wq({
39093
+ editor: e,
39094
+ isEmptyDoc: l,
39095
+ dataAttribute: n,
39096
+ hasAnchor: a,
39097
+ placeholder: t.placeholder,
39098
+ classes: {
39099
+ emptyEditor: t.emptyEditorClass,
39100
+ emptyNode: Tq(t.emptyNodeClass, {
39101
+ editor: e,
39102
+ node: r,
39103
+ pos: i,
39104
+ hasAnchor: a
39105
+ })
39106
+ },
39107
+ node: r,
39108
+ pos: i
39109
+ })), t.includeChildren;
39110
+ }), c;
39111
+ }
39112
+ function Dq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
39086
39113
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
39087
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
39088
- emptyEditor: t.emptyEditorClass,
39089
- emptyNode: t.emptyNodeClass
39090
- };
39114
+ let { anchor: a } = i, o = [], s = e.isEmpty;
39091
39115
  if (t.showOnlyCurrent && !t.includeChildren) {
39092
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
39093
- if (l && l.type.isTextblock && nm(l)) {
39094
- let r = a >= u && a <= u + l.nodeSize;
39095
- o.push(Tq({
39116
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
39117
+ if (c && c.type.isTextblock && nm(c)) {
39118
+ let r = a >= l && a <= l + c.nodeSize;
39119
+ o.push(wq({
39096
39120
  editor: e,
39097
39121
  isEmptyDoc: s,
39098
39122
  dataAttribute: n,
39099
39123
  hasAnchor: r,
39100
39124
  placeholder: t.placeholder,
39101
- classes: c,
39102
- node: l,
39103
- pos: u
39125
+ classes: {
39126
+ emptyEditor: t.emptyEditorClass,
39127
+ emptyNode: Tq(t.emptyNodeClass, {
39128
+ editor: e,
39129
+ node: c,
39130
+ pos: l,
39131
+ hasAnchor: r
39132
+ })
39133
+ },
39134
+ node: c,
39135
+ pos: l
39104
39136
  }));
39105
39137
  }
39106
- } else {
39107
- let i = Cq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
39108
- r.nodesBetween(l, u, (r, i) => {
39109
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && nm(r);
39110
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(Tq({
39111
- editor: e,
39112
- isEmptyDoc: s,
39113
- dataAttribute: n,
39114
- hasAnchor: l,
39115
- placeholder: t.placeholder,
39116
- classes: c,
39117
- node: r,
39118
- pos: i
39119
- })), t.includeChildren;
39120
- });
39121
- }
39138
+ } else o.push(...Eq({
39139
+ editor: e,
39140
+ options: t,
39141
+ dataAttribute: n,
39142
+ doc: r,
39143
+ selection: i,
39144
+ from: 0,
39145
+ to: r.content.size
39146
+ }));
39122
39147
  return $u.create(r, o);
39123
39148
  }
39124
- function Dq(e) {
39125
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39149
+ function Oq(e, t) {
39150
+ let n = e.resolve(t);
39151
+ if (n.depth === 0) {
39152
+ let e = n.nodeAfter ?? n.nodeBefore;
39153
+ if (!e) return {
39154
+ from: t,
39155
+ to: t
39156
+ };
39157
+ let r = n.nodeAfter ? t : t - e.nodeSize;
39158
+ return {
39159
+ from: r,
39160
+ to: r + e.nodeSize
39161
+ };
39162
+ }
39163
+ let r = n.before(1);
39164
+ return {
39165
+ from: r,
39166
+ to: r + n.node(1).nodeSize
39167
+ };
39126
39168
  }
39127
- function Oq(e) {
39128
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
39129
- return /auto|scroll|overlay/.test(n);
39169
+ function kq(e, t) {
39170
+ return {
39171
+ from: Math.max(0, t.from - 1),
39172
+ to: Math.min(e.content.size, t.to - 1)
39173
+ };
39130
39174
  }
39131
- function kq(e) {
39132
- let t = e;
39133
- for (; t;) {
39134
- if (Oq(t)) return t;
39135
- let e = t.parentElement;
39136
- if (!e) {
39137
- let e = t.getRootNode();
39138
- if (e instanceof ShadowRoot) {
39139
- t = e.host;
39140
- continue;
39141
- }
39142
- return window;
39143
- }
39144
- t = e;
39175
+ function Aq(e, t, n) {
39176
+ let r = [];
39177
+ return e.forEach((e, i) => {
39178
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
39179
+ s < n && c > t && r.push({
39180
+ from: a,
39181
+ to: o
39182
+ });
39183
+ }), r;
39184
+ }
39185
+ function jq(e) {
39186
+ if (e.length === 0) return [];
39187
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
39188
+ for (let e = 1; e < t.length; e += 1) {
39189
+ let r = n[n.length - 1], i = t[e];
39190
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
39145
39191
  }
39146
- return window;
39192
+ return n;
39147
39193
  }
39148
- function Aq(e) {
39149
- return e === window ? {
39150
- top: 0,
39151
- bottom: window.innerHeight
39152
- } : e.getBoundingClientRect();
39194
+ function Mq(e, t) {
39195
+ let n = Aq(e, t.from, t.to);
39196
+ return n.push(kq(e, Oq(e, t.from))), t.to > t.from ? n.push(kq(e, Oq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(kq(e, Oq(e, Math.min(t.from + 1, e.content.size)))), n;
39153
39197
  }
39154
- function jq({ doc: e, view: t, scrollContainer: n }) {
39155
- let r = t.dom.getBoundingClientRect(), i = n ? Aq(n) : {
39156
- top: 0,
39157
- bottom: window.innerHeight
39158
- }, a = Math.max(r.top, i.top) - wq, o = Math.min(r.bottom, i.bottom) + wq;
39159
- if (a >= o) return {
39160
- top: 0,
39161
- bottom: e.content.size
39162
- };
39163
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
39164
- left: s,
39165
- top: a + 2
39166
- }), l = t.posAtCoords({
39167
- left: s,
39168
- top: o - 2
39169
- });
39170
- return {
39171
- top: c ? c.pos : 0,
39172
- bottom: l ? l.pos : e.content.size
39173
- };
39198
+ function Nq(e, t, n) {
39199
+ let r = [];
39200
+ if (e.docChanged) {
39201
+ let t = Gp(e);
39202
+ for (let e of t) r.push(...Mq(n.doc, e.newRange));
39203
+ }
39204
+ return e.selectionSet && (r.push(kq(n.doc, Oq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(kq(n.doc, Oq(n.doc, n.selection.anchor)))), jq(r);
39174
39205
  }
39175
- var Mq = {
39176
- init() {
39177
- return {
39178
- topPos: null,
39179
- bottomPos: null
39180
- };
39181
- },
39182
- apply(e, t) {
39183
- let n = e.getMeta(Cq);
39184
- return n?.positions ? {
39185
- topPos: n.positions.top,
39186
- bottomPos: n.positions.bottom
39187
- } : e.docChanged ? {
39188
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
39189
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
39190
- } : t;
39206
+ function Pq(e, t, n) {
39207
+ let r = Math.max(0, Math.min(e, n.content.size));
39208
+ return {
39209
+ from: r,
39210
+ to: Math.max(r, Math.min(t, n.content.size))
39211
+ };
39212
+ }
39213
+ function Fq({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
39214
+ let s = e;
39215
+ for (let e of t) {
39216
+ let { from: t, to: c } = Pq(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
39217
+ l.length && (s = s.remove(l));
39218
+ let u = Eq({
39219
+ editor: n,
39220
+ options: r,
39221
+ dataAttribute: i,
39222
+ doc: a,
39223
+ selection: o,
39224
+ from: t,
39225
+ to: c
39226
+ });
39227
+ u.length && (s = s.add(a, u));
39191
39228
  }
39192
- };
39193
- function Nq(e) {
39194
- let t = kq(e.dom), n = () => {
39195
- let n = jq({
39196
- view: e,
39197
- doc: e.state.doc,
39198
- scrollContainer: t
39199
- }), r = Cq.getState(e.state);
39200
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
39201
- let i = e.state.tr.setMeta(Cq, { positions: n });
39202
- e.dispatch(i);
39203
- }, r = null, i = 0, a = () => {
39204
- r === null && (r = requestAnimationFrame(() => {
39205
- r = null;
39206
- let e = performance.now();
39207
- e - i >= 150 ? (i = e, n()) : a();
39208
- }));
39209
- };
39210
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
39211
- update(t, n) {
39212
- e.state.doc.content.size !== n.doc.content.size && a();
39229
+ return s;
39230
+ }
39231
+ function Iq({ editor: e, options: t, dataAttribute: n }) {
39232
+ return {
39233
+ init(r, i) {
39234
+ return Dq({
39235
+ editor: e,
39236
+ options: t,
39237
+ dataAttribute: n,
39238
+ doc: i.doc,
39239
+ selection: i.selection
39240
+ }) ?? $u.empty;
39213
39241
  },
39214
- destroy: () => {
39215
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39242
+ apply(r, i, a, o) {
39243
+ return !r.docChanged && !r.selectionSet ? i : Fq({
39244
+ decorations: i.map(r.mapping, r.doc),
39245
+ ranges: Nq(r, a, o),
39246
+ editor: e,
39247
+ options: t,
39248
+ dataAttribute: n,
39249
+ doc: o.doc,
39250
+ selection: o.selection
39251
+ });
39216
39252
  }
39217
39253
  };
39218
39254
  }
39219
- function Pq({ editor: e, options: t }) {
39220
- let n = t.dataAttribute ? `data-${Dq(t.dataAttribute)}` : `data-${Sq}`;
39255
+ function Lq(e) {
39256
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39257
+ }
39258
+ function Rq({ editor: e, options: t }) {
39259
+ let n = t.dataAttribute ? `data-${Lq(t.dataAttribute)}` : `data-${Sq}`, r = t.showOnlyCurrent && !t.includeChildren;
39221
39260
  return new R({
39222
39261
  key: Cq,
39223
- state: Mq,
39224
- view: Nq,
39225
- props: { decorations: ({ doc: r, selection: i }) => Eq({
39262
+ ...r ? {} : { state: Iq({
39263
+ editor: e,
39264
+ options: t,
39265
+ dataAttribute: n
39266
+ }) },
39267
+ props: { decorations: r ? ({ doc: r, selection: i }) => Dq({
39226
39268
  editor: e,
39227
39269
  options: t,
39228
39270
  dataAttribute: n,
39229
39271
  doc: r,
39230
39272
  selection: i
39231
- }) }
39273
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? $u.empty : Cq.getState(n) ?? $u.empty }
39232
39274
  });
39233
39275
  }
39234
- var Fq = Jm.create({
39276
+ var zq = Jm.create({
39235
39277
  name: "placeholder",
39236
39278
  addOptions() {
39237
39279
  return {
@@ -39245,12 +39287,25 @@ var Fq = Jm.create({
39245
39287
  };
39246
39288
  },
39247
39289
  addProseMirrorPlugins() {
39248
- return [Pq({
39290
+ return [Rq({
39249
39291
  editor: this.editor,
39250
39292
  options: this.options
39251
39293
  })];
39252
39294
  }
39253
39295
  });
39296
+ function Bq(e, t) {
39297
+ return !e.selection.empty && !rm(e.selection) && t.isEditable;
39298
+ }
39299
+ function Vq(e, t) {
39300
+ return Bq(e, t) && !t.isFocused && !t.view.dragging;
39301
+ }
39302
+ function Hq() {
39303
+ var e;
39304
+ (e = window.getSelection()) == null || e.removeAllRanges();
39305
+ }
39306
+ function Uq(e) {
39307
+ e.focus();
39308
+ }
39254
39309
  Jm.create({
39255
39310
  name: "selection",
39256
39311
  addOptions() {
@@ -39260,13 +39315,25 @@ Jm.create({
39260
39315
  let { editor: e, options: t } = this;
39261
39316
  return [new R({
39262
39317
  key: new $i("selection"),
39263
- props: { decorations(n) {
39264
- return n.selection.empty || e.isFocused || !e.isEditable || rm(n.selection) || e.view.dragging ? null : $u.create(n.doc, [Xu.inline(n.selection.from, n.selection.to, { class: t.className })]);
39265
- } }
39318
+ props: {
39319
+ decorations(n) {
39320
+ return Vq(n, e) ? $u.create(n.doc, [Xu.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39321
+ },
39322
+ handleDOMEvents: {
39323
+ blur(t) {
39324
+ return Bq(t.state, e) && Hq(), !1;
39325
+ },
39326
+ focus(t) {
39327
+ return Bq(t.state, e) && requestAnimationFrame(() => {
39328
+ !e.isDestroyed && t.hasFocus() && Uq(t);
39329
+ }), !1;
39330
+ }
39331
+ }
39332
+ }
39266
39333
  })];
39267
39334
  }
39268
39335
  });
39269
- function Iq({ types: e, node: t }) {
39336
+ function Wq({ types: e, node: t }) {
39270
39337
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39271
39338
  }
39272
39339
  Jm.create({
@@ -39288,7 +39355,7 @@ Jm.create({
39288
39355
  state: {
39289
39356
  init: (e, t) => {
39290
39357
  let r = t.tr.doc.lastChild;
39291
- return !Iq({
39358
+ return !Wq({
39292
39359
  node: r,
39293
39360
  types: n
39294
39361
  });
@@ -39296,7 +39363,7 @@ Jm.create({
39296
39363
  apply: (e, t) => {
39297
39364
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39298
39365
  let r = e.doc.lastChild;
39299
- return !Iq({
39366
+ return !Wq({
39300
39367
  node: r,
39301
39368
  types: n
39302
39369
  });
@@ -39331,7 +39398,7 @@ Jm.create({
39331
39398
  };
39332
39399
  }
39333
39400
  });
39334
- var Lq = Bm.create({
39401
+ var Gq = Bm.create({
39335
39402
  name: "superscript",
39336
39403
  addOptions() {
39337
39404
  return { HTMLAttributes: {} };
@@ -39361,7 +39428,7 @@ var Lq = Bm.create({
39361
39428
  addKeyboardShortcuts() {
39362
39429
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
39363
39430
  }
39364
- }), Rq = Bm.create({
39431
+ }), Kq = Bm.create({
39365
39432
  name: "subscript",
39366
39433
  addOptions() {
39367
39434
  return { HTMLAttributes: {} };
@@ -39391,7 +39458,7 @@ var Lq = Bm.create({
39391
39458
  addKeyboardShortcuts() {
39392
39459
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
39393
39460
  }
39394
- }), zq = Jm.create({
39461
+ }), qq = Jm.create({
39395
39462
  name: "textAlign",
39396
39463
  addOptions() {
39397
39464
  return {
@@ -39433,7 +39500,7 @@ var Lq = Bm.create({
39433
39500
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
39434
39501
  };
39435
39502
  }
39436
- }), Bq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Vq = wh.create({
39503
+ }), Jq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Yq = wh.create({
39437
39504
  name: "image",
39438
39505
  addOptions() {
39439
39506
  return {
@@ -39526,7 +39593,7 @@ var Lq = Bm.create({
39526
39593
  },
39527
39594
  addInputRules() {
39528
39595
  return [uh({
39529
- find: Bq,
39596
+ find: Jq,
39530
39597
  type: this.type,
39531
39598
  getAttributes: (e) => {
39532
39599
  let [, , t, n, r] = e;
@@ -39538,17 +39605,17 @@ var Lq = Bm.create({
39538
39605
  }
39539
39606
  })];
39540
39607
  }
39541
- }), Hq = Fq, Uq = {
39608
+ }), Xq = zq, Zq = {
39542
39609
  position: "bottom",
39543
39610
  alignment: "left",
39544
39611
  alwaysVisible: !1,
39545
39612
  showDone: !0,
39546
39613
  doneOn: "blur"
39547
- }, Wq = {
39614
+ }, Qq = {
39548
39615
  options: {},
39549
39616
  respAreaToolbar: () => {},
39550
39617
  onHandleAreaChange: () => {}
39551
- }, Gq = [
39618
+ }, $q = [
39552
39619
  "bold",
39553
39620
  "italic",
39554
39621
  "underline",
@@ -39570,7 +39637,7 @@ var Lq = Bm.create({
39570
39637
  "h3",
39571
39638
  "undo",
39572
39639
  "redo"
39573
- ], Kq = {
39640
+ ], eJ = {
39574
39641
  "--white": "#fff",
39575
39642
  "--black": "#2e2b29",
39576
39643
  "--black-contrast": "#110f0e",
@@ -39589,14 +39656,18 @@ var Lq = Bm.create({
39589
39656
  "--red": "#ff5c33",
39590
39657
  "--red-light": "#ffebe5",
39591
39658
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
39592
- }, qq = (e) => {
39659
+ }, tJ = (e) => ({
39660
+ spellcheck: e ? "true" : "false",
39661
+ autocorrect: e ? "on" : "off",
39662
+ autocapitalize: e ? "on" : "off"
39663
+ }), nJ = (e) => {
39593
39664
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Et([]), [a, o] = Et(!1), { toolbarOpts: s } = e, c = yt((e) => {
39594
39665
  i((t) => {
39595
39666
  let n = t.filter((t) => t.pos !== e);
39596
39667
  return n.length === 0 && o(!1), n;
39597
39668
  });
39598
39669
  }, [i]), l = {
39599
- ...Uq,
39670
+ ...Zq,
39600
39671
  ...s
39601
39672
  }, u = yt((t) => {
39602
39673
  let n = t.getHTML();
@@ -39607,13 +39678,13 @@ var Lq = Bm.create({
39607
39678
  e.onDone,
39608
39679
  l.doneOn
39609
39680
  ]), d = wt(() => ({
39610
- ...Wq,
39681
+ ...Qq,
39611
39682
  ...e.responseAreaProps,
39612
39683
  onInlineDropdownToolbarClose: u
39613
39684
  }), [e.responseAreaProps, u]), f = wt(() => {
39614
39685
  let { customPlugins: t, ...n } = e.pluginProps || {};
39615
39686
  t ||= [];
39616
- let r = (e.activePlugins || Gq)?.filter((e) => {
39687
+ let r = (e.activePlugins || $q)?.filter((e) => {
39617
39688
  let t = Ut[e] || e, r = n[t] || {};
39618
39689
  return !r || !r.disabled;
39619
39690
  });
@@ -39631,103 +39702,112 @@ var Lq = Bm.create({
39631
39702
  setKeypadInteraction: {},
39632
39703
  media: {}
39633
39704
  });
39634
- }, [e, d.type]), p = IC({
39635
- extensions: [
39636
- zq.configure({
39637
- types: [
39638
- "heading",
39639
- "paragraph",
39640
- "div",
39641
- "headingParagraph",
39642
- "h1",
39643
- "h2",
39644
- "h3",
39645
- "h4",
39646
- "h5",
39647
- "h6",
39648
- "td",
39649
- "th"
39650
- ],
39651
- alignments: [
39652
- "left",
39653
- "right",
39654
- "center",
39655
- "justify"
39656
- ]
39657
- }),
39658
- bq,
39659
- xq.configure({ limit: e.charactersLimit || 1e6 }),
39660
- uq.configure({ trailingNode: {
39705
+ }, [e, d.type]), p = [
39706
+ qq.configure({
39707
+ types: [
39708
+ "heading",
39709
+ "paragraph",
39710
+ "div",
39711
+ "headingParagraph",
39712
+ "h1",
39713
+ "h2",
39714
+ "h3",
39715
+ "h4",
39716
+ "h5",
39717
+ "h6",
39718
+ "td",
39719
+ "th"
39720
+ ],
39721
+ alignments: [
39722
+ "left",
39723
+ "right",
39724
+ "center",
39725
+ "justify"
39726
+ ]
39727
+ }),
39728
+ bq,
39729
+ xq.configure({ limit: e.charactersLimit || 1e6 }),
39730
+ uq.configure({
39731
+ trailingNode: {
39661
39732
  node: "paragraph",
39662
39733
  notAfter: ["paragraph", "div"]
39663
- } }),
39664
- fI,
39665
- nS,
39666
- pI,
39667
- rS,
39668
- iS,
39669
- Hq.configure({
39670
- placeholder: e.placeholder,
39671
- showOnlyWhenEditable: !0,
39672
- showOnlyCurrent: !1,
39673
- includeChildren: !0
39674
- }),
39675
- Qx,
39676
- Ix,
39677
- tS,
39678
- eS,
39679
- PA.configure(d),
39680
- FA.configure(d),
39681
- LA.configure(d),
39682
- RA.configure(d),
39683
- IA.configure(d),
39684
- $M.configure({
39685
- toolbarOpts: l,
39686
- math: e.pluginProps?.math || {}
39687
- }),
39688
- Rq,
39689
- Lq,
39690
- Vq,
39691
- dP.configure({
39692
- toolbarOpts: l,
39693
- imageHandling: {
39694
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39695
- onDone: (t) => e.onDone?.(t.getHTML()),
39696
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39697
- let { src: n } = t.attrs;
39698
- e.imageSupport.delete(n, (e) => {
39699
- c(t.pos);
39700
- });
39701
- }),
39702
- insertImageRequested: e.imageSupport && ((t, n, r) => {
39703
- let [o, s] = n, l = (n) => {
39704
- let r;
39705
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39706
- };
39707
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
39708
- let n = r(l), i = st(() => {
39709
- let e = () => window.removeEventListener("focus", i);
39710
- if (!t._insertingImage) {
39711
- e();
39712
- return;
39713
- }
39714
- c(s), t._insertingImage = !1, e();
39715
- }, 500);
39716
- window.addEventListener("focus", i), e.imageSupport.add(n);
39717
- })();
39718
- }),
39719
- maxImageWidth: e.maxImageWidth,
39720
- maxImageHeight: e.maxImageHeight
39721
- },
39722
- limit: 3
39723
- }),
39724
- mF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39725
- jF.configure({ extraCSSRules: e.extraCSSRules })
39726
- ],
39734
+ },
39735
+ link: {
39736
+ autolink: !1,
39737
+ linkOnPaste: !1
39738
+ }
39739
+ }),
39740
+ fI,
39741
+ nS,
39742
+ pI,
39743
+ rS,
39744
+ iS,
39745
+ Xq.configure({
39746
+ placeholder: e.placeholder,
39747
+ showOnlyWhenEditable: !0,
39748
+ showOnlyCurrent: !1,
39749
+ includeChildren: !0
39750
+ }),
39751
+ Qx,
39752
+ Ix,
39753
+ tS,
39754
+ eS,
39755
+ PA.configure(d),
39756
+ FA.configure(d),
39757
+ LA.configure(d),
39758
+ RA.configure(d),
39759
+ IA.configure(d),
39760
+ $M.configure({
39761
+ toolbarOpts: l,
39762
+ math: e.pluginProps?.math || {}
39763
+ }),
39764
+ Kq,
39765
+ Gq,
39766
+ Yq,
39767
+ dP.configure({
39768
+ toolbarOpts: l,
39769
+ imageHandling: {
39770
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39771
+ onDone: (t) => e.onDone?.(t.getHTML()),
39772
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39773
+ let { src: n } = t.attrs;
39774
+ e.imageSupport.delete(n, (e) => {
39775
+ c(t.pos);
39776
+ });
39777
+ }),
39778
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39779
+ let [o, s] = n, l = (n) => {
39780
+ let r;
39781
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39782
+ };
39783
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39784
+ let n = r(l), i = st(() => {
39785
+ let e = () => window.removeEventListener("focus", i);
39786
+ if (!t._insertingImage) {
39787
+ e();
39788
+ return;
39789
+ }
39790
+ c(s), t._insertingImage = !1, e();
39791
+ }, 500);
39792
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39793
+ })();
39794
+ }),
39795
+ maxImageWidth: e.maxImageWidth,
39796
+ maxImageHeight: e.maxImageHeight
39797
+ },
39798
+ limit: 3
39799
+ }),
39800
+ mF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39801
+ jF.configure({ extraCSSRules: e.extraCSSRules })
39802
+ ], m = e.spellCheck !== !1, h = IC({
39803
+ extensions: p,
39727
39804
  immediatelyRender: !1,
39728
- editorProps: { handleKeyDown(t, n) {
39729
- return e.onKeyDown ? e.onKeyDown(n) : !1;
39730
- } },
39805
+ editorProps: {
39806
+ attributes: tJ(m),
39807
+ handleKeyDown(t, n) {
39808
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39809
+ }
39810
+ },
39731
39811
  editable: !e.disabled,
39732
39812
  content: Jt(e.markup),
39733
39813
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -39738,22 +39818,29 @@ var Lq = Bm.create({
39738
39818
  }
39739
39819
  }, [e.charactersLimit]);
39740
39820
  St(() => {
39741
- e.editorRef && e.editorRef(p);
39742
- }, [e.editorRef, p]), St(() => {
39743
- p?.setEditable(!e.disabled);
39744
- }, [e.disabled, p]), St(() => {
39745
- if (!p) return;
39821
+ e.editorRef && e.editorRef(h);
39822
+ }, [e.editorRef, h]), St(() => {
39823
+ h?.setEditable(!e.disabled);
39824
+ }, [e.disabled, h]), St(() => {
39825
+ if (!h) return;
39826
+ let e = h.options?.editorProps, t = tJ(m);
39827
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39828
+ ...e,
39829
+ attributes: t
39830
+ } });
39831
+ }, [m, h]), St(() => {
39832
+ if (!h) return;
39746
39833
  let t = Jt(e.markup);
39747
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
39748
- }, [e.markup, p]), St(() => {
39749
- Object.entries(Kq).forEach(([e, t]) => {
39834
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39835
+ }, [e.markup, h]), St(() => {
39836
+ Object.entries(eJ).forEach(([e, t]) => {
39750
39837
  document.documentElement.style.setProperty(e, t);
39751
39838
  });
39752
39839
  }, []);
39753
- let m = MC({
39754
- editor: p,
39840
+ let g = MC({
39841
+ editor: h,
39755
39842
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39756
- }), h = wt(() => {
39843
+ }), _ = wt(() => {
39757
39844
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39758
39845
  return {
39759
39846
  width: mI(n),
@@ -39768,20 +39855,20 @@ var Lq = Bm.create({
39768
39855
  ...e,
39769
39856
  activePlugins: f,
39770
39857
  toolbarOpts: l,
39771
- editorState: m,
39772
- editor: p,
39773
- children: p && /* @__PURE__ */ j(Jq, {
39858
+ editorState: g,
39859
+ editor: h,
39860
+ children: h && /* @__PURE__ */ j(rJ, {
39774
39861
  style: {
39775
- minHeight: h.minHeight,
39776
- height: h.height,
39777
- maxHeight: h.maxHeight
39862
+ minHeight: _.minHeight,
39863
+ height: _.height,
39864
+ maxHeight: _.maxHeight
39778
39865
  },
39779
39866
  showParagraph: t && !t.disabled,
39780
39867
  separateParagraph: n && !n.disabled,
39781
- editor: p
39868
+ editor: h
39782
39869
  })
39783
39870
  });
39784
- }, Jq = D(kC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39871
+ }, rJ = D(kC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39785
39872
  display: "flex",
39786
39873
  outline: "none !important",
39787
39874
  "& .ProseMirror": {
@@ -39809,13 +39896,13 @@ var Lq = Bm.create({
39809
39896
  } },
39810
39897
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39811
39898
  }
39812
- })), Yq = qq, Xq = w(/*#__PURE__*/ j("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), Zq = w(/*#__PURE__*/ j("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), Qq = w(/*#__PURE__*/ j("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
39899
+ })), iJ = nJ, aJ = w(/*#__PURE__*/ j("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), oJ = w(/*#__PURE__*/ j("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), sJ = w(/*#__PURE__*/ j("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
39813
39900
  //#endregion
39814
39901
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
39815
- function $q(e) {
39902
+ function cJ(e) {
39816
39903
  return we("MuiCheckbox", e);
39817
39904
  }
39818
- var eJ = k("MuiCheckbox", [
39905
+ var lJ = k("MuiCheckbox", [
39819
39906
  "root",
39820
39907
  "checked",
39821
39908
  "disabled",
@@ -39824,18 +39911,18 @@ var eJ = k("MuiCheckbox", [
39824
39911
  "colorSecondary",
39825
39912
  "sizeSmall",
39826
39913
  "sizeMedium"
39827
- ]), tJ = (e) => {
39914
+ ]), uJ = (e) => {
39828
39915
  let { classes: t, indeterminate: n, color: r, size: i } = e, a = Ge({ root: [
39829
39916
  "root",
39830
39917
  n && "indeterminate",
39831
39918
  `color${p(r)}`,
39832
39919
  `size${p(i)}`
39833
- ] }, $q, t);
39920
+ ] }, cJ, t);
39834
39921
  return {
39835
39922
  ...t,
39836
39923
  ...a
39837
39924
  };
39838
- }, nJ = D(Re, {
39925
+ }, dJ = D(Re, {
39839
39926
  shouldForwardProp: (e) => fe(e) || e === "classes",
39840
39927
  name: "MuiCheckbox",
39841
39928
  slot: "Root",
@@ -39868,8 +39955,8 @@ var eJ = k("MuiCheckbox", [
39868
39955
  ...Object.entries(e.palette).filter(s()).map(([t]) => ({
39869
39956
  props: { color: t },
39870
39957
  style: {
39871
- [`&.${eJ.checked}, &.${eJ.indeterminate}`]: { color: (e.vars || e).palette[t].main },
39872
- [`&.${eJ.disabled}`]: { color: (e.vars || e).palette.action.disabled }
39958
+ [`&.${lJ.checked}, &.${lJ.indeterminate}`]: { color: (e.vars || e).palette[t].main },
39959
+ [`&.${lJ.disabled}`]: { color: (e.vars || e).palette.action.disabled }
39873
39960
  }
39874
39961
  })),
39875
39962
  {
@@ -39877,19 +39964,19 @@ var eJ = k("MuiCheckbox", [
39877
39964
  style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
39878
39965
  }
39879
39966
  ]
39880
- }))), rJ = /*#__PURE__*/ j(Zq, {}), iJ = /*#__PURE__*/ j(Xq, {}), aJ = /*#__PURE__*/ j(Qq, {}), oJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
39967
+ }))), fJ = /*#__PURE__*/ j(oJ, {}), pJ = /*#__PURE__*/ j(aJ, {}), mJ = /*#__PURE__*/ j(sJ, {}), hJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
39881
39968
  let n = Ue({
39882
39969
  props: e,
39883
39970
  name: "MuiCheckbox"
39884
- }), { checkedIcon: r = rJ, color: i = "primary", icon: a = iJ, indeterminate: o = !1, indeterminateIcon: s = aJ, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: f = {}, slotProps: p = {}, ...m } = n, h = o ? s : a, g = o ? s : r, _ = {
39971
+ }), { checkedIcon: r = fJ, color: i = "primary", icon: a = pJ, indeterminate: o = !1, indeterminateIcon: s = mJ, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: f = {}, slotProps: p = {}, ...m } = n, h = o ? s : a, g = o ? s : r, _ = {
39885
39972
  ...n,
39886
39973
  disableRipple: u,
39887
39974
  color: i,
39888
39975
  indeterminate: o,
39889
39976
  size: l
39890
- }, v = tJ(_), y = p.input ?? c, [b, x] = E("root", {
39977
+ }, v = uJ(_), y = p.input ?? c, [b, x] = E("root", {
39891
39978
  ref: t,
39892
- elementType: nJ,
39979
+ elementType: dJ,
39893
39980
  className: Se(v.root, d),
39894
39981
  shouldForwardComponentProp: !0,
39895
39982
  externalForwardedProps: {
@@ -39917,10 +40004,10 @@ var eJ = k("MuiCheckbox", [
39917
40004
  });
39918
40005
  //#endregion
39919
40006
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
39920
- function sJ(e) {
40007
+ function gJ(e) {
39921
40008
  return we("MuiFormControlLabel", e);
39922
40009
  }
39923
- var cJ = k("MuiFormControlLabel", [
40010
+ var _J = k("MuiFormControlLabel", [
39924
40011
  "root",
39925
40012
  "labelPlacementStart",
39926
40013
  "labelPlacementTop",
@@ -39930,7 +40017,7 @@ var cJ = k("MuiFormControlLabel", [
39930
40017
  "error",
39931
40018
  "required",
39932
40019
  "asterisk"
39933
- ]), lJ = (e) => {
40020
+ ]), vJ = (e) => {
39934
40021
  let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
39935
40022
  return Ge({
39936
40023
  root: [
@@ -39942,14 +40029,14 @@ var cJ = k("MuiFormControlLabel", [
39942
40029
  ],
39943
40030
  label: ["label", n && "disabled"],
39944
40031
  asterisk: ["asterisk", i && "error"]
39945
- }, sJ, t);
39946
- }, uJ = D("label", {
40032
+ }, gJ, t);
40033
+ }, yJ = D("label", {
39947
40034
  name: "MuiFormControlLabel",
39948
40035
  slot: "Root",
39949
40036
  overridesResolver: (e, t) => {
39950
40037
  let { ownerState: n } = e;
39951
40038
  return [
39952
- { [`& .${cJ.label}`]: t.label },
40039
+ { [`& .${_J.label}`]: t.label },
39953
40040
  t.root,
39954
40041
  t[`labelPlacement${p(n.labelPlacement)}`]
39955
40042
  ];
@@ -39962,8 +40049,8 @@ var cJ = k("MuiFormControlLabel", [
39962
40049
  WebkitTapHighlightColor: "transparent",
39963
40050
  marginLeft: -11,
39964
40051
  marginRight: 16,
39965
- [`&.${cJ.disabled}`]: { cursor: "default" },
39966
- [`& .${cJ.label}`]: { [`&.${cJ.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
40052
+ [`&.${_J.disabled}`]: { cursor: "default" },
40053
+ [`& .${_J.label}`]: { [`&.${_J.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
39967
40054
  variants: [
39968
40055
  {
39969
40056
  props: { labelPlacement: "start" },
@@ -39985,10 +40072,10 @@ var cJ = k("MuiFormControlLabel", [
39985
40072
  style: { marginLeft: 16 }
39986
40073
  }
39987
40074
  ]
39988
- }))), dJ = D("span", {
40075
+ }))), bJ = D("span", {
39989
40076
  name: "MuiFormControlLabel",
39990
40077
  slot: "Asterisk"
39991
- })(h(({ theme: e }) => ({ [`&.${cJ.error}`]: { color: (e.vars || e).palette.error.main } }))), fJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40078
+ })(h(({ theme: e }) => ({ [`&.${_J.error}`]: { color: (e.vars || e).palette.error.main } }))), xJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
39992
40079
  let n = Ue({
39993
40080
  props: e,
39994
40081
  name: "MuiFormControlLabel"
@@ -40015,7 +40102,7 @@ var cJ = k("MuiFormControlLabel", [
40015
40102
  labelPlacement: d,
40016
40103
  required: x,
40017
40104
  error: C.error
40018
- }, ee = lJ(w), [te, ne] = E("typography", {
40105
+ }, ee = vJ(w), [te, ne] = E("typography", {
40019
40106
  elementType: JA,
40020
40107
  externalForwardedProps: {
40021
40108
  slots: h,
@@ -40031,12 +40118,12 @@ var cJ = k("MuiFormControlLabel", [
40031
40118
  ...ne,
40032
40119
  className: Se(ee.label, ne?.className),
40033
40120
  children: T
40034
- })), /*#__PURE__*/ M(uJ, {
40121
+ })), /*#__PURE__*/ M(yJ, {
40035
40122
  className: Se(ee.root, i),
40036
40123
  ownerState: w,
40037
40124
  ref: t,
40038
40125
  ...v,
40039
- children: [/*#__PURE__*/ A.cloneElement(o, S), x ? /*#__PURE__*/ M("div", { children: [T, /*#__PURE__*/ M(dJ, {
40126
+ children: [/*#__PURE__*/ A.cloneElement(o, S), x ? /*#__PURE__*/ M("div", { children: [T, /*#__PURE__*/ M(bJ, {
40040
40127
  ownerState: w,
40041
40128
  "aria-hidden": !0,
40042
40129
  className: ee.asterisk,
@@ -40046,7 +40133,7 @@ var cJ = k("MuiFormControlLabel", [
40046
40133
  });
40047
40134
  //#endregion
40048
40135
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/formGroupClasses.js
40049
- function pJ(e) {
40136
+ function SJ(e) {
40050
40137
  return we("MuiFormGroup", e);
40051
40138
  }
40052
40139
  k("MuiFormGroup", [
@@ -40056,14 +40143,14 @@ k("MuiFormGroup", [
40056
40143
  ]);
40057
40144
  //#endregion
40058
40145
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/FormGroup.js
40059
- var mJ = (e) => {
40146
+ var CJ = (e) => {
40060
40147
  let { classes: t, row: n, error: r } = e;
40061
40148
  return Ge({ root: [
40062
40149
  "root",
40063
40150
  n && "row",
40064
40151
  r && "error"
40065
- ] }, pJ, t);
40066
- }, hJ = D("div", {
40152
+ ] }, SJ, t);
40153
+ }, wJ = D("div", {
40067
40154
  name: "MuiFormGroup",
40068
40155
  slot: "Root",
40069
40156
  overridesResolver: (e, t) => {
@@ -40078,7 +40165,7 @@ var mJ = (e) => {
40078
40165
  props: { row: !0 },
40079
40166
  style: { flexDirection: "row" }
40080
40167
  }]
40081
- }), gJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40168
+ }), TJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40082
40169
  let n = Ue({
40083
40170
  props: e,
40084
40171
  name: "MuiFormGroup"
@@ -40091,8 +40178,8 @@ var mJ = (e) => {
40091
40178
  row: i,
40092
40179
  error: o.error
40093
40180
  };
40094
- return /*#__PURE__*/ j(hJ, {
40095
- className: Se(mJ(s).root, r),
40181
+ return /*#__PURE__*/ j(wJ, {
40182
+ className: Se(CJ(s).root, r),
40096
40183
  ownerState: s,
40097
40184
  ref: t,
40098
40185
  ...a
@@ -40100,10 +40187,10 @@ var mJ = (e) => {
40100
40187
  });
40101
40188
  //#endregion
40102
40189
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
40103
- function _J(e) {
40190
+ function EJ(e) {
40104
40191
  return we("MuiInputAdornment", e);
40105
40192
  }
40106
- var vJ = k("MuiInputAdornment", [
40193
+ var DJ = k("MuiInputAdornment", [
40107
40194
  "root",
40108
40195
  "filled",
40109
40196
  "standard",
@@ -40113,7 +40200,7 @@ var vJ = k("MuiInputAdornment", [
40113
40200
  "disablePointerEvents",
40114
40201
  "hiddenLabel",
40115
40202
  "sizeSmall"
40116
- ]), yJ, bJ = (e, t) => {
40203
+ ]), OJ, kJ = (e, t) => {
40117
40204
  let { ownerState: n } = e;
40118
40205
  return [
40119
40206
  t.root,
@@ -40121,7 +40208,7 @@ var vJ = k("MuiInputAdornment", [
40121
40208
  n.disablePointerEvents === !0 && t.disablePointerEvents,
40122
40209
  t[n.variant]
40123
40210
  ];
40124
- }, xJ = (e) => {
40211
+ }, AJ = (e) => {
40125
40212
  let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
40126
40213
  return Ge({ root: [
40127
40214
  "root",
@@ -40130,11 +40217,11 @@ var vJ = k("MuiInputAdornment", [
40130
40217
  o,
40131
40218
  r && "hiddenLabel",
40132
40219
  a && `size${p(a)}`
40133
- ] }, _J, t);
40134
- }, SJ = D("div", {
40220
+ ] }, EJ, t);
40221
+ }, jJ = D("div", {
40135
40222
  name: "MuiInputAdornment",
40136
40223
  slot: "Root",
40137
- overridesResolver: bJ
40224
+ overridesResolver: kJ
40138
40225
  })(h(({ theme: e }) => ({
40139
40226
  display: "flex",
40140
40227
  maxHeight: "2em",
@@ -40144,7 +40231,7 @@ var vJ = k("MuiInputAdornment", [
40144
40231
  variants: [
40145
40232
  {
40146
40233
  props: { variant: "filled" },
40147
- style: { [`&.${vJ.positionStart}&:not(.${vJ.hiddenLabel})`]: { marginTop: 16 } }
40234
+ style: { [`&.${DJ.positionStart}&:not(.${DJ.hiddenLabel})`]: { marginTop: 16 } }
40148
40235
  },
40149
40236
  {
40150
40237
  props: { position: "start" },
@@ -40159,7 +40246,7 @@ var vJ = k("MuiInputAdornment", [
40159
40246
  style: { pointerEvents: "none" }
40160
40247
  }
40161
40248
  ]
40162
- }))), CJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40249
+ }))), MJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40163
40250
  let n = Ue({
40164
40251
  props: e,
40165
40252
  name: "MuiInputAdornment"
@@ -40172,10 +40259,10 @@ var vJ = k("MuiInputAdornment", [
40172
40259
  disablePointerEvents: o,
40173
40260
  position: c,
40174
40261
  variant: f
40175
- }, m = xJ(p);
40262
+ }, m = AJ(p);
40176
40263
  return /*#__PURE__*/ j(le.Provider, {
40177
40264
  value: null,
40178
- children: /*#__PURE__*/ j(SJ, {
40265
+ children: /*#__PURE__*/ j(jJ, {
40179
40266
  as: a,
40180
40267
  ownerState: p,
40181
40268
  className: Se(m.root, i),
@@ -40184,7 +40271,7 @@ var vJ = k("MuiInputAdornment", [
40184
40271
  children: typeof r == "string" && !s ? /*#__PURE__*/ j(JA, {
40185
40272
  color: "textSecondary",
40186
40273
  children: r
40187
- }) : /*#__PURE__*/ M(A.Fragment, { children: [c === "start" ? yJ ||= /*#__PURE__*/ j("span", {
40274
+ }) : /*#__PURE__*/ M(A.Fragment, { children: [c === "start" ? OJ ||= /*#__PURE__*/ j("span", {
40188
40275
  className: "notranslate",
40189
40276
  "aria-hidden": !0,
40190
40277
  children: "​"
@@ -40194,7 +40281,7 @@ var vJ = k("MuiInputAdornment", [
40194
40281
  });
40195
40282
  //#endregion
40196
40283
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/radioGroupClasses.js
40197
- function wJ(e) {
40284
+ function NJ(e) {
40198
40285
  return we("MuiRadioGroup", e);
40199
40286
  }
40200
40287
  k("MuiRadioGroup", [
@@ -40204,15 +40291,15 @@ k("MuiRadioGroup", [
40204
40291
  ]);
40205
40292
  //#endregion
40206
40293
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroup.js
40207
- var TJ = (e) => {
40294
+ var PJ = (e) => {
40208
40295
  let { classes: t, row: n, error: r } = e;
40209
40296
  return Ge({ root: [
40210
40297
  "root",
40211
40298
  n && "row",
40212
40299
  r && "error"
40213
- ] }, wJ, t);
40214
- }, EJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40215
- let { actions: n, children: r, className: a, defaultValue: o, name: s, onChange: c, value: l, ...u } = e, d = A.useRef(null), f = TJ(e), [p, m] = i({
40300
+ ] }, NJ, t);
40301
+ }, FJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40302
+ let { actions: n, children: r, className: a, defaultValue: o, name: s, onChange: c, value: l, ...u } = e, d = A.useRef(null), f = PJ(e), [p, m] = i({
40216
40303
  controlled: l,
40217
40304
  default: o,
40218
40305
  name: "RadioGroup"
@@ -40235,7 +40322,7 @@ var TJ = (e) => {
40235
40322
  ]);
40236
40323
  return /*#__PURE__*/ j(je.Provider, {
40237
40324
  value: _,
40238
- children: /*#__PURE__*/ j(gJ, {
40325
+ children: /*#__PURE__*/ j(TJ, {
40239
40326
  role: "radiogroup",
40240
40327
  ref: h,
40241
40328
  className: Se(f.root, a),
@@ -40246,10 +40333,10 @@ var TJ = (e) => {
40246
40333
  });
40247
40334
  //#endregion
40248
40335
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
40249
- function DJ(e) {
40336
+ function IJ(e) {
40250
40337
  return we("MuiSwitch", e);
40251
40338
  }
40252
- var OJ = k("MuiSwitch", [
40339
+ var LJ = k("MuiSwitch", [
40253
40340
  "root",
40254
40341
  "edgeStart",
40255
40342
  "edgeEnd",
@@ -40263,7 +40350,7 @@ var OJ = k("MuiSwitch", [
40263
40350
  "input",
40264
40351
  "thumb",
40265
40352
  "track"
40266
- ]), kJ = (e) => {
40353
+ ]), RJ = (e) => {
40267
40354
  let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = Ge({
40268
40355
  root: [
40269
40356
  "root",
@@ -40279,12 +40366,12 @@ var OJ = k("MuiSwitch", [
40279
40366
  thumb: ["thumb"],
40280
40367
  track: ["track"],
40281
40368
  input: ["input"]
40282
- }, DJ, t);
40369
+ }, IJ, t);
40283
40370
  return {
40284
40371
  ...t,
40285
40372
  ...s
40286
40373
  };
40287
- }, AJ = D("span", {
40374
+ }, zJ = D("span", {
40288
40375
  name: "MuiSwitch",
40289
40376
  slot: "Root",
40290
40377
  overridesResolver: (e, t) => {
@@ -40322,25 +40409,25 @@ var OJ = k("MuiSwitch", [
40322
40409
  width: 40,
40323
40410
  height: 24,
40324
40411
  padding: 7,
40325
- [`& .${OJ.thumb}`]: {
40412
+ [`& .${LJ.thumb}`]: {
40326
40413
  width: 16,
40327
40414
  height: 16
40328
40415
  },
40329
- [`& .${OJ.switchBase}`]: {
40416
+ [`& .${LJ.switchBase}`]: {
40330
40417
  padding: 4,
40331
- [`&.${OJ.checked}`]: { transform: "translateX(16px)" }
40418
+ [`&.${LJ.checked}`]: { transform: "translateX(16px)" }
40332
40419
  }
40333
40420
  }
40334
40421
  }
40335
40422
  ]
40336
- }), jJ = D(Re, {
40423
+ }), BJ = D(Re, {
40337
40424
  name: "MuiSwitch",
40338
40425
  slot: "SwitchBase",
40339
40426
  overridesResolver: (e, t) => {
40340
40427
  let { ownerState: n } = e;
40341
40428
  return [
40342
40429
  t.switchBase,
40343
- { [`& .${OJ.input}`]: t.input },
40430
+ { [`& .${LJ.input}`]: t.input },
40344
40431
  n.color !== "default" && t[`color${p(n.color)}`]
40345
40432
  ];
40346
40433
  }
@@ -40351,11 +40438,11 @@ var OJ = k("MuiSwitch", [
40351
40438
  zIndex: 1,
40352
40439
  color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
40353
40440
  transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
40354
- [`&.${OJ.checked}`]: { transform: "translateX(20px)" },
40355
- [`&.${OJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40356
- [`&.${OJ.checked} + .${OJ.track}`]: { opacity: .5 },
40357
- [`&.${OJ.disabled} + .${OJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40358
- [`& .${OJ.input}`]: {
40441
+ [`&.${LJ.checked}`]: { transform: "translateX(20px)" },
40442
+ [`&.${LJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40443
+ [`&.${LJ.checked} + .${LJ.track}`]: { opacity: .5 },
40444
+ [`&.${LJ.disabled} + .${LJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40445
+ [`& .${LJ.input}`]: {
40359
40446
  left: "-100%",
40360
40447
  width: "300%"
40361
40448
  }
@@ -40367,18 +40454,18 @@ var OJ = k("MuiSwitch", [
40367
40454
  variants: [...Object.entries(e.palette).filter(s(["light"])).map(([t]) => ({
40368
40455
  props: { color: t },
40369
40456
  style: {
40370
- [`&.${OJ.checked}`]: {
40457
+ [`&.${LJ.checked}`]: {
40371
40458
  color: (e.vars || e).palette[t].main,
40372
40459
  "&:hover": {
40373
40460
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
40374
40461
  "@media (hover: none)": { backgroundColor: "transparent" }
40375
40462
  },
40376
- [`&.${OJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
40463
+ [`&.${LJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
40377
40464
  },
40378
- [`&.${OJ.checked} + .${OJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40465
+ [`&.${LJ.checked} + .${LJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40379
40466
  }
40380
40467
  }))]
40381
- }))), MJ = D("span", {
40468
+ }))), VJ = D("span", {
40382
40469
  name: "MuiSwitch",
40383
40470
  slot: "Track"
40384
40471
  })(h(({ theme: e }) => ({
@@ -40391,7 +40478,7 @@ var OJ = k("MuiSwitch", [
40391
40478
  transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
40392
40479
  backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
40393
40480
  opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
40394
- }))), NJ = D("span", {
40481
+ }))), HJ = D("span", {
40395
40482
  name: "MuiSwitch",
40396
40483
  slot: "Thumb"
40397
40484
  })(h(({ theme: e }) => ({
@@ -40402,7 +40489,7 @@ var OJ = k("MuiSwitch", [
40402
40489
  width: 20,
40403
40490
  height: 20,
40404
40491
  borderRadius: "50%"
40405
- }))), PJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40492
+ }))), UJ = /*#__PURE__*/ A.forwardRef(function(e, t) {
40406
40493
  let n = Ue({
40407
40494
  props: e,
40408
40495
  name: "MuiSwitch"
@@ -40411,29 +40498,29 @@ var OJ = k("MuiSwitch", [
40411
40498
  color: i,
40412
40499
  edge: a,
40413
40500
  size: o
40414
- }, f = kJ(d), p = l.input, m = {
40501
+ }, f = RJ(d), p = l.input, m = {
40415
40502
  slots: c,
40416
40503
  slotProps: l
40417
40504
  }, [h, g] = E("root", {
40418
40505
  className: Se(f.root, r),
40419
- elementType: AJ,
40506
+ elementType: zJ,
40420
40507
  externalForwardedProps: m,
40421
40508
  ownerState: d,
40422
40509
  additionalProps: { sx: s }
40423
40510
  }), [_, v] = E("thumb", {
40424
40511
  className: f.thumb,
40425
- elementType: NJ,
40512
+ elementType: HJ,
40426
40513
  externalForwardedProps: m,
40427
40514
  ownerState: d
40428
40515
  }), y = /*#__PURE__*/ j(_, { ...v }), [b, x] = E("track", {
40429
40516
  className: f.track,
40430
- elementType: MJ,
40517
+ elementType: VJ,
40431
40518
  externalForwardedProps: m,
40432
40519
  ownerState: d
40433
40520
  });
40434
40521
  return /*#__PURE__*/ M(h, {
40435
40522
  ...g,
40436
- children: [/*#__PURE__*/ j(jJ, {
40523
+ children: [/*#__PURE__*/ j(BJ, {
40437
40524
  type: "checkbox",
40438
40525
  icon: y,
40439
40526
  checkedIcon: y,
@@ -40454,18 +40541,18 @@ var OJ = k("MuiSwitch", [
40454
40541
  }
40455
40542
  }), /*#__PURE__*/ j(b, { ...x })]
40456
40543
  });
40457
- }), FJ = D(fJ)(() => ({ "& .MuiFormControlLabel-label": {
40544
+ }), WJ = D(xJ)(() => ({ "& .MuiFormControlLabel-label": {
40458
40545
  left: "-5px",
40459
40546
  position: "relative"
40460
- } })), IJ = D(He)(() => ({ color: `${f.tertiary()} !important` })), LJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ j(FJ, {
40547
+ } })), GJ = D(He)(() => ({ color: `${f.tertiary()} !important` })), KJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ j(WJ, {
40461
40548
  value: t,
40462
- control: /* @__PURE__ */ j(IJ, {
40549
+ control: /* @__PURE__ */ j(GJ, {
40463
40550
  checked: n,
40464
40551
  onChange: r
40465
40552
  }),
40466
40553
  label: e
40467
40554
  });
40468
- LJ.propTypes = {
40555
+ KJ.propTypes = {
40469
40556
  label: B.default.string,
40470
40557
  value: B.default.string,
40471
40558
  checked: B.default.bool,
@@ -40473,7 +40560,7 @@ LJ.propTypes = {
40473
40560
  };
40474
40561
  //#endregion
40475
40562
  //#region ../../lib-react/config-ui/dist/tabs/index.js
40476
- var RJ = D(BP)(() => ({})), zJ = class extends ft.Component {
40563
+ var qJ = D(BP)(() => ({})), JJ = class extends ft.Component {
40477
40564
  static propTypes = {
40478
40565
  className: B.default.string,
40479
40566
  contentClassName: B.default.string,
@@ -40494,7 +40581,7 @@ var RJ = D(BP)(() => ({})), zJ = class extends ft.Component {
40494
40581
  indicatorColor: "primary",
40495
40582
  value: e,
40496
40583
  onChange: this.handleChange,
40497
- children: ft.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ j(RJ, { label: e.props.title }, t) : null)
40584
+ children: ft.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ j(qJ, { label: e.props.title }, t) : null)
40498
40585
  }), /* @__PURE__ */ j("div", {
40499
40586
  className: r,
40500
40587
  style: i,
@@ -40502,7 +40589,7 @@ var RJ = D(BP)(() => ({})), zJ = class extends ft.Component {
40502
40589
  })]
40503
40590
  });
40504
40591
  }
40505
- }, BJ = D(fJ)(({ theme: e, mini: t }) => ({
40592
+ }, YJ = D(xJ)(({ theme: e, mini: t }) => ({
40506
40593
  margin: 0,
40507
40594
  marginLeft: 0,
40508
40595
  padding: 0,
@@ -40516,7 +40603,7 @@ var RJ = D(BP)(() => ({})), zJ = class extends ft.Component {
40516
40603
  fontSize: e.typography.fontSize - 3
40517
40604
  }
40518
40605
  }
40519
- })), VJ = D(oJ)(({ theme: e, mini: t, error: n }) => ({
40606
+ })), XJ = D(hJ)(({ theme: e, mini: t, error: n }) => ({
40520
40607
  color: `${f.tertiary()} !important`,
40521
40608
  ...t && {
40522
40609
  margin: 0,
@@ -40525,9 +40612,9 @@ var RJ = D(BP)(() => ({})), zJ = class extends ft.Component {
40525
40612
  height: e.spacing(3)
40526
40613
  },
40527
40614
  ...n && { color: `${e.palette.error.main} !important` }
40528
- })), HJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ j(BJ, {
40615
+ })), ZJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ j(YJ, {
40529
40616
  mini: e,
40530
- control: /* @__PURE__ */ j(VJ, {
40617
+ control: /* @__PURE__ */ j(XJ, {
40531
40618
  checked: t,
40532
40619
  onChange: n,
40533
40620
  value: r,
@@ -40536,21 +40623,21 @@ var RJ = D(BP)(() => ({})), zJ = class extends ft.Component {
40536
40623
  }),
40537
40624
  label: i
40538
40625
  });
40539
- HJ.propTypes = {
40626
+ ZJ.propTypes = {
40540
40627
  mini: B.default.bool,
40541
40628
  checked: B.default.bool.isRequired,
40542
40629
  onChange: B.default.func.isRequired,
40543
40630
  value: B.default.string,
40544
40631
  label: B.default.string.isRequired,
40545
40632
  error: B.default.bool
40546
- }, HJ.defaultProps = {
40633
+ }, ZJ.defaultProps = {
40547
40634
  value: "",
40548
40635
  mini: !1,
40549
40636
  error: !1
40550
40637
  };
40551
40638
  //#endregion
40552
40639
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40553
- var UJ = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), WJ = D(bN)(({ theme: e }) => ({
40640
+ var QJ = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), $J = D(bN)(({ theme: e }) => ({
40554
40641
  marginRight: e.spacing(1),
40555
40642
  "& .MuiInputLabel-root": {
40556
40643
  width: "auto",
@@ -40572,11 +40659,11 @@ var UJ = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), WJ = D(bN)(({
40572
40659
  minHeight: "auto",
40573
40660
  padding: "6px 0 7px"
40574
40661
  }
40575
- })), GJ = (e, t) => {
40662
+ })), eY = (e, t) => {
40576
40663
  if (!ct(e) && !ct(t)) return 0;
40577
40664
  if (!ct(e) && ct(t)) return t;
40578
40665
  if (ct(e)) return e;
40579
- }, KJ = class extends ft.Component {
40666
+ }, tY = class extends ft.Component {
40580
40667
  static propTypes = {
40581
40668
  disabled: B.default.bool,
40582
40669
  className: B.default.string,
@@ -40602,13 +40689,13 @@ var UJ = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), WJ = D(bN)(({
40602
40689
  this.setState({ value: t });
40603
40690
  }
40604
40691
  clamp(e, t = this.props.min, n = this.props.max) {
40605
- return ct(e) ? (ct(n) && (e = Math.min(e, n)), ct(t) && (e = Math.max(e, t)), e) : GJ(t, n);
40692
+ return ct(e) ? (ct(n) && (e = Math.min(e, n)), ct(t) && (e = Math.max(e, t)), e) : eY(t, n);
40606
40693
  }
40607
40694
  onBlur = (e) => {
40608
40695
  let t = e.target.value, n = parseFloat(t);
40609
- UJ("rawNumber: ", n);
40696
+ QJ("rawNumber: ", n);
40610
40697
  let r = this.clamp(n);
40611
- UJ("number: ", r), r !== this.state.value && (UJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40698
+ QJ("number: ", r), r !== this.state.value && (QJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40612
40699
  this.props.onChange(e, r);
40613
40700
  }));
40614
40701
  };
@@ -40628,7 +40715,7 @@ var UJ = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), WJ = D(bN)(({
40628
40715
  };
40629
40716
  render() {
40630
40717
  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();
40631
- return /* @__PURE__ */ j(WJ, {
40718
+ return /* @__PURE__ */ j($J, {
40632
40719
  variant: s ? "filled" : l || "standard",
40633
40720
  inputRef: (e) => {
40634
40721
  this.inputRef = e;
@@ -40647,7 +40734,7 @@ var UJ = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), WJ = D(bN)(({
40647
40734
  type: "number",
40648
40735
  className: e,
40649
40736
  slotProps: { input: {
40650
- endAdornment: r && /* @__PURE__ */ j(CJ, {
40737
+ endAdornment: r && /* @__PURE__ */ j(MJ, {
40651
40738
  position: "end",
40652
40739
  children: r
40653
40740
  }),
@@ -40660,22 +40747,22 @@ var UJ = (0, Lt.default)("@pie-lib:config-ui:number-text-field"), WJ = D(bN)(({
40660
40747
  margin: "normal"
40661
40748
  });
40662
40749
  }
40663
- }, qJ = w(/*#__PURE__*/ j("path", { d: "M19 13H5v-2h14z" }), "Remove"), JJ = w(/*#__PURE__*/ j("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
40750
+ }, nY = w(/*#__PURE__*/ j("path", { d: "M19 13H5v-2h14z" }), "Remove"), rY = w(/*#__PURE__*/ j("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
40664
40751
  //#endregion
40665
40752
  //#region ../../lib-react/config-ui/dist/two-choice.js
40666
- function YJ(e) {
40753
+ function iY(e) {
40667
40754
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40668
40755
  }
40669
- function XJ(e, t) {
40670
- return !e || YJ(e) ? e : YJ(e.default) ? e.default : t && YJ(e[t]) ? e[t] : t && YJ(e[t]?.default) ? e[t].default : e;
40756
+ function aY(e, t) {
40757
+ return !e || iY(e) ? e : iY(e.default) ? e.default : t && iY(e[t]) ? e[t] : t && iY(e[t]?.default) ? e[t].default : e;
40671
40758
  }
40672
- var ZJ = XJ(ye, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ = de, $J = QJ.default, eY = $J && typeof $J == "object" ? $J : QJ, tY = D("div")(({ theme: e, direction: t }) => ({
40759
+ var oY = aY(ye, "InputContainer") || aY(lY.InputContainer, "InputContainer"), sY = de, cY = sY.default, lY = cY && typeof cY == "object" ? cY : sY, uY = D("div")(({ theme: e, direction: t }) => ({
40673
40760
  display: "flex",
40674
40761
  flexWrap: "wrap",
40675
40762
  paddingLeft: 0,
40676
40763
  marginTop: e.spacing(1),
40677
40764
  ...t === "vertical" && { flexDirection: "column" }
40678
- })), nY = class extends ft.Component {
40765
+ })), dY = class extends ft.Component {
40679
40766
  static propTypes = {
40680
40767
  header: B.default.string.isRequired,
40681
40768
  className: B.default.string,
@@ -40692,11 +40779,11 @@ var ZJ = XJ(ye, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ
40692
40779
  let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
40693
40780
  label: e,
40694
40781
  value: e
40695
- } : e), s = n || LJ;
40696
- return /* @__PURE__ */ j(ZJ, {
40782
+ } : e), s = n || KJ;
40783
+ return /* @__PURE__ */ j(oY, {
40697
40784
  label: e,
40698
40785
  className: t,
40699
- children: /* @__PURE__ */ j(tY, {
40786
+ children: /* @__PURE__ */ j(uY, {
40700
40787
  direction: a,
40701
40788
  children: o.map((e, t) => /* @__PURE__ */ j(s, {
40702
40789
  value: e.value,
@@ -40707,7 +40794,7 @@ var ZJ = XJ(ye, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ
40707
40794
  })
40708
40795
  });
40709
40796
  }
40710
- }, rY = B.default.shape({
40797
+ }, fY = B.default.shape({
40711
40798
  label: B.default.string,
40712
40799
  value: B.default.string
40713
40800
  });
@@ -40716,14 +40803,14 @@ var ZJ = XJ(ye, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ
40716
40803
  header: B.default.string.isRequired,
40717
40804
  value: B.default.string.isRequired,
40718
40805
  onChange: B.default.func.isRequired,
40719
- one: B.default.oneOfType([rY, B.default.string]),
40720
- two: B.default.oneOfType([rY, B.default.string]),
40806
+ one: B.default.oneOfType([fY, B.default.string]),
40807
+ two: B.default.oneOfType([fY, B.default.string]),
40721
40808
  className: B.default.string,
40722
40809
  customLabel: B.default.func
40723
40810
  };
40724
40811
  render() {
40725
40812
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
40726
- return /* @__PURE__ */ j(nY, {
40813
+ return /* @__PURE__ */ j(dY, {
40727
40814
  customLabel: i,
40728
40815
  header: n,
40729
40816
  className: r,
@@ -40735,21 +40822,21 @@ var ZJ = XJ(ye, "InputContainer") || XJ(eY.InputContainer, "InputContainer"), QJ
40735
40822
  });
40736
40823
  //#endregion
40737
40824
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
40738
- var iY = Object.defineProperty, aY = (e, t) => {
40825
+ var pY = Object.defineProperty, mY = (e, t) => {
40739
40826
  let n = {};
40740
- for (var r in e) iY(n, r, {
40827
+ for (var r in e) pY(n, r, {
40741
40828
  get: e[r],
40742
40829
  enumerable: !0
40743
40830
  });
40744
- return t || iY(n, Symbol.toStringTag, { value: "Module" }), n;
40745
- }, oY = D("div")(() => ({
40831
+ return t || pY(n, Symbol.toStringTag, { value: "Module" }), n;
40832
+ }, hY = D("div")(() => ({
40746
40833
  display: "flex",
40747
40834
  flexDirection: "column",
40748
40835
  position: "relative"
40749
- })), sY = D("div")(() => ({
40836
+ })), gY = D("div")(() => ({
40750
40837
  display: "flex",
40751
40838
  justifyContent: "space-between"
40752
- })), cY = D("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), lY = D("div")(() => ({ flex: "1" })), uY = D("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), dY = class extends ft.Component {
40839
+ })), _Y = D("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), vY = D("div")(() => ({ flex: "1" })), yY = D("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), bY = class extends ft.Component {
40753
40840
  static propTypes = {
40754
40841
  mode: B.default.oneOf(["tabbed", "inline"]),
40755
40842
  secondary: B.default.oneOfType([B.default.arrayOf(B.default.node), B.default.node]),
@@ -40767,7 +40854,7 @@ var iY = Object.defineProperty, aY = (e, t) => {
40767
40854
  } catch (e) {
40768
40855
  console.log(e.toString());
40769
40856
  }
40770
- return /* @__PURE__ */ M(oY, {
40857
+ return /* @__PURE__ */ M(hY, {
40771
40858
  style: {
40772
40859
  minHeight: i,
40773
40860
  minWidth: a,
@@ -40775,28 +40862,28 @@ var iY = Object.defineProperty, aY = (e, t) => {
40775
40862
  maxWidth: s
40776
40863
  },
40777
40864
  children: [
40778
- e === "inline" && /* @__PURE__ */ M(sY, { children: [/* @__PURE__ */ j(lY, {
40865
+ e === "inline" && /* @__PURE__ */ M(gY, { children: [/* @__PURE__ */ j(vY, {
40779
40866
  className: "design-container",
40780
40867
  children: n
40781
- }), l && /* @__PURE__ */ j(uY, {
40868
+ }), l && /* @__PURE__ */ j(yY, {
40782
40869
  className: "settings-container",
40783
40870
  children: t
40784
40871
  })] }),
40785
- e === "tabbed" && l && /* @__PURE__ */ M(zJ, {
40872
+ e === "tabbed" && l && /* @__PURE__ */ M(JJ, {
40786
40873
  onChange: this.onTabsChange,
40787
40874
  contentClassName: "content-container",
40788
40875
  indicatorColor: "primary",
40789
- children: [/* @__PURE__ */ j(cY, {
40876
+ children: [/* @__PURE__ */ j(_Y, {
40790
40877
  title: "Design",
40791
40878
  className: "design-container",
40792
40879
  children: n
40793
- }), /* @__PURE__ */ j(cY, {
40880
+ }), /* @__PURE__ */ j(_Y, {
40794
40881
  title: "Settings",
40795
40882
  className: "settings-container",
40796
40883
  children: t
40797
40884
  })]
40798
40885
  }),
40799
- e === "tabbed" && !l && /* @__PURE__ */ j(cY, {
40886
+ e === "tabbed" && !l && /* @__PURE__ */ j(_Y, {
40800
40887
  className: "design-container",
40801
40888
  children: n
40802
40889
  })
@@ -40806,18 +40893,18 @@ var iY = Object.defineProperty, aY = (e, t) => {
40806
40893
  };
40807
40894
  //#endregion
40808
40895
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
40809
- function fY() {
40810
- return fY = Object.assign ? Object.assign.bind() : function(e) {
40896
+ function xY() {
40897
+ return xY = Object.assign ? Object.assign.bind() : function(e) {
40811
40898
  for (var t = 1; t < arguments.length; t++) {
40812
40899
  var n = arguments[t];
40813
40900
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
40814
40901
  }
40815
40902
  return e;
40816
- }, fY.apply(null, arguments);
40903
+ }, xY.apply(null, arguments);
40817
40904
  }
40818
40905
  //#endregion
40819
40906
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
40820
- function pY(e, t) {
40907
+ function SY(e, t) {
40821
40908
  if (e == null) return {};
40822
40909
  var n = {};
40823
40910
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -40828,19 +40915,19 @@ function pY(e, t) {
40828
40915
  }
40829
40916
  //#endregion
40830
40917
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
40831
- function mY(e, t) {
40832
- return mY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40918
+ function CY(e, t) {
40919
+ return CY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40833
40920
  return e.__proto__ = t, e;
40834
- }, mY(e, t);
40921
+ }, CY(e, t);
40835
40922
  }
40836
40923
  //#endregion
40837
40924
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
40838
- function hY(e, t) {
40839
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, mY(e, t);
40925
+ function wY(e, t) {
40926
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, CY(e, t);
40840
40927
  }
40841
40928
  //#endregion
40842
40929
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
40843
- var gY = (function() {
40930
+ var TY = (function() {
40844
40931
  if (typeof Map < "u") return Map;
40845
40932
  function e(e, t) {
40846
40933
  var n = -1;
@@ -40879,34 +40966,34 @@ var gY = (function() {
40879
40966
  }
40880
40967
  }, t;
40881
40968
  }();
40882
- })(), _Y = typeof window < "u" && typeof document < "u" && window.document === document, vY = (function() {
40969
+ })(), EY = typeof window < "u" && typeof document < "u" && window.document === document, DY = (function() {
40883
40970
  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")();
40884
- })(), yY = (function() {
40885
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(vY) : function(e) {
40971
+ })(), OY = (function() {
40972
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(DY) : function(e) {
40886
40973
  return setTimeout(function() {
40887
40974
  return e(Date.now());
40888
40975
  }, 1e3 / 60);
40889
40976
  };
40890
- })(), bY = 2;
40891
- function xY(e, t) {
40977
+ })(), kY = 2;
40978
+ function AY(e, t) {
40892
40979
  var n = !1, r = !1, i = 0;
40893
40980
  function a() {
40894
40981
  n && (n = !1, e()), r && s();
40895
40982
  }
40896
40983
  function o() {
40897
- yY(a);
40984
+ OY(a);
40898
40985
  }
40899
40986
  function s() {
40900
40987
  var e = Date.now();
40901
40988
  if (n) {
40902
- if (e - i < bY) return;
40989
+ if (e - i < kY) return;
40903
40990
  r = !0;
40904
40991
  } else n = !0, r = !1, setTimeout(o, t);
40905
40992
  i = e;
40906
40993
  }
40907
40994
  return s;
40908
40995
  }
40909
- var SY = 20, CY = [
40996
+ var jY = 20, MY = [
40910
40997
  "top",
40911
40998
  "right",
40912
40999
  "bottom",
@@ -40915,9 +41002,9 @@ var SY = 20, CY = [
40915
41002
  "height",
40916
41003
  "size",
40917
41004
  "weight"
40918
- ], wY = typeof MutationObserver < "u", TY = function() {
41005
+ ], NY = typeof MutationObserver < "u", PY = function() {
40919
41006
  function e() {
40920
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = xY(this.refresh.bind(this), SY);
41007
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = AY(this.refresh.bind(this), jY);
40921
41008
  }
40922
41009
  return e.prototype.addObserver = function(e) {
40923
41010
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -40934,23 +41021,23 @@ var SY = 20, CY = [
40934
41021
  return e.broadcastActive();
40935
41022
  }), e.length > 0;
40936
41023
  }, e.prototype.connect_ = function() {
40937
- !_Y || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), wY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41024
+ !EY || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), NY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40938
41025
  attributes: !0,
40939
41026
  childList: !0,
40940
41027
  characterData: !0,
40941
41028
  subtree: !0
40942
41029
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
40943
41030
  }, e.prototype.disconnect_ = function() {
40944
- !_Y || !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);
41031
+ !EY || !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);
40945
41032
  }, e.prototype.onTransitionEnd_ = function(e) {
40946
41033
  var t = e.propertyName, n = t === void 0 ? "" : t;
40947
- CY.some(function(e) {
41034
+ MY.some(function(e) {
40948
41035
  return !!~n.indexOf(e);
40949
41036
  }) && this.refresh();
40950
41037
  }, e.getInstance = function() {
40951
41038
  return this.instance_ ||= new e(), this.instance_;
40952
41039
  }, e.instance_ = null, e;
40953
- }(), EY = (function(e, t) {
41040
+ }(), FY = (function(e, t) {
40954
41041
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
40955
41042
  var i = r[n];
40956
41043
  Object.defineProperty(e, i, {
@@ -40961,19 +41048,19 @@ var SY = 20, CY = [
40961
41048
  });
40962
41049
  }
40963
41050
  return e;
40964
- }), DY = (function(e) {
40965
- return e && e.ownerDocument && e.ownerDocument.defaultView || vY;
40966
- }), OY = RY(0, 0, 0, 0);
40967
- function kY(e) {
41051
+ }), IY = (function(e) {
41052
+ return e && e.ownerDocument && e.ownerDocument.defaultView || DY;
41053
+ }), LY = qY(0, 0, 0, 0);
41054
+ function RY(e) {
40968
41055
  return parseFloat(e) || 0;
40969
41056
  }
40970
- function AY(e) {
41057
+ function zY(e) {
40971
41058
  return [...arguments].slice(1).reduce(function(t, n) {
40972
41059
  var r = e["border-" + n + "-width"];
40973
- return t + kY(r);
41060
+ return t + RY(r);
40974
41061
  }, 0);
40975
41062
  }
40976
- function jY(e) {
41063
+ function BY(e) {
40977
41064
  for (var t = [
40978
41065
  "top",
40979
41066
  "right",
@@ -40981,40 +41068,40 @@ function jY(e) {
40981
41068
  "left"
40982
41069
  ], n = {}, r = 0, i = t; r < i.length; r++) {
40983
41070
  var a = i[r], o = e["padding-" + a];
40984
- n[a] = kY(o);
41071
+ n[a] = RY(o);
40985
41072
  }
40986
41073
  return n;
40987
41074
  }
40988
- function MY(e) {
41075
+ function VY(e) {
40989
41076
  var t = e.getBBox();
40990
- return RY(0, 0, t.width, t.height);
41077
+ return qY(0, 0, t.width, t.height);
40991
41078
  }
40992
- function NY(e) {
41079
+ function HY(e) {
40993
41080
  var t = e.clientWidth, n = e.clientHeight;
40994
- if (!t && !n) return OY;
40995
- var r = DY(e).getComputedStyle(e), i = jY(r), a = i.left + i.right, o = i.top + i.bottom, s = kY(r.width), c = kY(r.height);
40996
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= AY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= AY(r, "top", "bottom") + o)), !FY(e)) {
41081
+ if (!t && !n) return LY;
41082
+ var r = IY(e).getComputedStyle(e), i = BY(r), a = i.left + i.right, o = i.top + i.bottom, s = RY(r.width), c = RY(r.height);
41083
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= zY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= zY(r, "top", "bottom") + o)), !WY(e)) {
40997
41084
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
40998
41085
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
40999
41086
  }
41000
- return RY(i.left, i.top, s, c);
41087
+ return qY(i.left, i.top, s, c);
41001
41088
  }
41002
- var PY = (function() {
41089
+ var UY = (function() {
41003
41090
  return typeof SVGGraphicsElement < "u" ? function(e) {
41004
- return e instanceof DY(e).SVGGraphicsElement;
41091
+ return e instanceof IY(e).SVGGraphicsElement;
41005
41092
  } : function(e) {
41006
- return e instanceof DY(e).SVGElement && typeof e.getBBox == "function";
41093
+ return e instanceof IY(e).SVGElement && typeof e.getBBox == "function";
41007
41094
  };
41008
41095
  })();
41009
- function FY(e) {
41010
- return e === DY(e).document.documentElement;
41096
+ function WY(e) {
41097
+ return e === IY(e).document.documentElement;
41011
41098
  }
41012
- function IY(e) {
41013
- return _Y ? PY(e) ? MY(e) : NY(e) : OY;
41099
+ function GY(e) {
41100
+ return EY ? UY(e) ? VY(e) : HY(e) : LY;
41014
41101
  }
41015
- function LY(e) {
41102
+ function KY(e) {
41016
41103
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
41017
- return EY(a, {
41104
+ return FY(a, {
41018
41105
  x: t,
41019
41106
  y: n,
41020
41107
  width: r,
@@ -41025,7 +41112,7 @@ function LY(e) {
41025
41112
  left: t
41026
41113
  }), a;
41027
41114
  }
41028
- function RY(e, t, n, r) {
41115
+ function qY(e, t, n, r) {
41029
41116
  return {
41030
41117
  x: e,
41031
41118
  y: t,
@@ -41033,42 +41120,42 @@ function RY(e, t, n, r) {
41033
41120
  height: r
41034
41121
  };
41035
41122
  }
41036
- var zY = function() {
41123
+ var JY = function() {
41037
41124
  function e(e) {
41038
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = RY(0, 0, 0, 0), this.target = e;
41125
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = qY(0, 0, 0, 0), this.target = e;
41039
41126
  }
41040
41127
  return e.prototype.isActive = function() {
41041
- var e = IY(this.target);
41128
+ var e = GY(this.target);
41042
41129
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41043
41130
  }, e.prototype.broadcastRect = function() {
41044
41131
  var e = this.contentRect_;
41045
41132
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41046
41133
  }, e;
41047
- }(), BY = function() {
41134
+ }(), YY = function() {
41048
41135
  function e(e, t) {
41049
- var n = LY(t);
41050
- EY(this, {
41136
+ var n = KY(t);
41137
+ FY(this, {
41051
41138
  target: e,
41052
41139
  contentRect: n
41053
41140
  });
41054
41141
  }
41055
41142
  return e;
41056
- }(), VY = function() {
41143
+ }(), XY = function() {
41057
41144
  function e(e, t, n) {
41058
- if (this.activeObservations_ = [], this.observations_ = new gY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41145
+ if (this.activeObservations_ = [], this.observations_ = new TY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41059
41146
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41060
41147
  }
41061
41148
  return e.prototype.observe = function(e) {
41062
41149
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41063
41150
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41064
- if (!(e instanceof DY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41151
+ if (!(e instanceof IY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41065
41152
  var t = this.observations_;
41066
- t.has(e) || (t.set(e, new zY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41153
+ t.has(e) || (t.set(e, new JY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41067
41154
  }
41068
41155
  }, e.prototype.unobserve = function(e) {
41069
41156
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41070
41157
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41071
- if (!(e instanceof DY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41158
+ if (!(e instanceof IY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41072
41159
  var t = this.observations_;
41073
41160
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41074
41161
  }
@@ -41082,7 +41169,7 @@ var zY = function() {
41082
41169
  }, e.prototype.broadcastActive = function() {
41083
41170
  if (this.hasActive()) {
41084
41171
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41085
- return new BY(e.target, e.broadcastRect());
41172
+ return new YY(e.target, e.broadcastRect());
41086
41173
  });
41087
41174
  this.callback_.call(e, t, e), this.clearActive();
41088
41175
  }
@@ -41091,12 +41178,12 @@ var zY = function() {
41091
41178
  }, e.prototype.hasActive = function() {
41092
41179
  return this.activeObservations_.length > 0;
41093
41180
  }, e;
41094
- }(), HY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new gY(), UY = function() {
41181
+ }(), ZY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new TY(), QY = function() {
41095
41182
  function e(t) {
41096
41183
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41097
41184
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41098
- var n = new VY(t, TY.getInstance(), this);
41099
- HY.set(this, n);
41185
+ var n = new XY(t, PY.getInstance(), this);
41186
+ ZY.set(this, n);
41100
41187
  }
41101
41188
  return e;
41102
41189
  }();
@@ -41105,27 +41192,27 @@ var zY = function() {
41105
41192
  "unobserve",
41106
41193
  "disconnect"
41107
41194
  ].forEach(function(e) {
41108
- UY.prototype[e] = function() {
41195
+ QY.prototype[e] = function() {
41109
41196
  var t;
41110
- return (t = HY.get(this))[e].apply(t, arguments);
41197
+ return (t = ZY.get(this))[e].apply(t, arguments);
41111
41198
  };
41112
41199
  });
41113
- var WY = (function() {
41114
- return vY.ResizeObserver === void 0 ? UY : vY.ResizeObserver;
41115
- })(), GY = [
41200
+ var $Y = (function() {
41201
+ return DY.ResizeObserver === void 0 ? QY : DY.ResizeObserver;
41202
+ })(), eX = [
41116
41203
  "client",
41117
41204
  "offset",
41118
41205
  "scroll",
41119
41206
  "bounds",
41120
41207
  "margin"
41121
41208
  ];
41122
- function KY(e) {
41209
+ function tX(e) {
41123
41210
  var t = [];
41124
- return GY.forEach(function(n) {
41211
+ return eX.forEach(function(n) {
41125
41212
  e[n] && t.push(n);
41126
41213
  }), t;
41127
41214
  }
41128
- function qY(e, t) {
41215
+ function nX(e, t) {
41129
41216
  var n = {};
41130
41217
  if (t.indexOf("client") > -1 && (n.client = {
41131
41218
  top: e.clientTop,
@@ -41164,14 +41251,14 @@ function qY(e, t) {
41164
41251
  }
41165
41252
  return n;
41166
41253
  }
41167
- function JY(e) {
41254
+ function rX(e) {
41168
41255
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
41169
41256
  }
41170
- function YY(e) {
41257
+ function iX(e) {
41171
41258
  return function(t) {
41172
41259
  var n, r;
41173
41260
  return r = n = /*#__PURE__*/ function(n) {
41174
- hY(r, n);
41261
+ wY(r, n);
41175
41262
  function r() {
41176
41263
  var t, r = [...arguments];
41177
41264
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -41182,24 +41269,24 @@ function YY(e) {
41182
41269
  bounds: {},
41183
41270
  margin: {}
41184
41271
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
41185
- var r = qY(t._node, e || KY(t.props));
41272
+ var r = nX(t._node, e || tX(t.props));
41186
41273
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
41187
41274
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
41188
41275
  });
41189
41276
  }, t._handleRef = function(e) {
41190
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = JY(t._node);
41277
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = rX(t._node);
41191
41278
  var n = t.props.innerRef;
41192
41279
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
41193
41280
  }, t;
41194
41281
  }
41195
41282
  var i = r.prototype;
41196
41283
  return i.componentDidMount = function() {
41197
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new WY(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(qY(this._node, e || KY(this.props))));
41284
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new $Y(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(nX(this._node, e || tX(this.props))));
41198
41285
  }, i.componentWillUnmount = function() {
41199
41286
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
41200
41287
  }, i.render = function() {
41201
41288
  var e = this.props;
41202
- return e.innerRef, e.onResize, ht(t, fY({}, pY(e, ["innerRef", "onResize"]), {
41289
+ return e.innerRef, e.onResize, ht(t, xY({}, SY(e, ["innerRef", "onResize"]), {
41203
41290
  measureRef: this._handleRef,
41204
41291
  measure: this.measure,
41205
41292
  contentRect: this.state.contentRect
@@ -41216,7 +41303,7 @@ function YY(e) {
41216
41303
  }, r;
41217
41304
  };
41218
41305
  }
41219
- var XY = YY()(function(e) {
41306
+ var aX = iX()(function(e) {
41220
41307
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
41221
41308
  return i({
41222
41309
  measure: t,
@@ -41224,10 +41311,10 @@ var XY = YY()(function(e) {
41224
41311
  contentRect: r
41225
41312
  });
41226
41313
  });
41227
- XY.displayName = "Measure", XY.propTypes.children = B.default.func;
41314
+ aX.displayName = "Measure", aX.propTypes.children = B.default.func;
41228
41315
  //#endregion
41229
41316
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
41230
- var ZY = D("div")(() => ({
41317
+ var oX = D("div")(() => ({
41231
41318
  backgroundColor: f.white(),
41232
41319
  border: `2px solid ${f.border()}`,
41233
41320
  display: "flex",
@@ -41237,7 +41324,7 @@ var ZY = D("div")(() => ({
41237
41324
  maxWidth: "300px",
41238
41325
  padding: "20px 4px 4px 20px",
41239
41326
  zIndex: 99
41240
- })), QY = class extends ft.Component {
41327
+ })), sX = class extends ft.Component {
41241
41328
  static propTypes = {
41242
41329
  className: B.default.string,
41243
41330
  children: B.default.oneOfType([B.default.arrayOf(B.default.node), B.default.node]).isRequired
@@ -41245,19 +41332,19 @@ var ZY = D("div")(() => ({
41245
41332
  static defaultProps = {};
41246
41333
  render() {
41247
41334
  let { className: e, children: t } = this.props;
41248
- return /* @__PURE__ */ j(ZY, {
41335
+ return /* @__PURE__ */ j(oX, {
41249
41336
  className: e,
41250
41337
  children: t
41251
41338
  });
41252
41339
  }
41253
- }, $Y = ke({
41340
+ }, cX = ke({
41254
41341
  typography: { fontFamily: "inherit" },
41255
41342
  components: { MuiButton: { styleOverrides: { contained: {
41256
41343
  backgroundColor: "#e0e0e0",
41257
41344
  color: "#000000",
41258
41345
  "&:hover": { backgroundColor: "#bdbdbd" }
41259
41346
  } } } }
41260
- }), eX = class extends ft.Component {
41347
+ }), lX = class extends ft.Component {
41261
41348
  static propTypes = {
41262
41349
  children: B.default.oneOfType([
41263
41350
  B.default.string,
@@ -41290,19 +41377,19 @@ var ZY = D("div")(() => ({
41290
41377
  return /* @__PURE__ */ j(Ze, {
41291
41378
  injectFirst: !0,
41292
41379
  children: /* @__PURE__ */ j(ze, {
41293
- theme: $Y,
41294
- children: /* @__PURE__ */ j(XY, {
41380
+ theme: cX,
41381
+ children: /* @__PURE__ */ j(aX, {
41295
41382
  bounds: !0,
41296
41383
  onResize: this.onResize,
41297
41384
  children: ({ measureRef: e }) => {
41298
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ j(QY, {
41385
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ j(sX, {
41299
41386
  className: "settings-box",
41300
41387
  children: n
41301
41388
  }) : n;
41302
41389
  return /* @__PURE__ */ M("div", {
41303
41390
  ref: e,
41304
41391
  className: "main-container extraCSSRules",
41305
- children: [a?.rules ? /* @__PURE__ */ j("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ j(dY, {
41392
+ children: [a?.rules ? /* @__PURE__ */ j("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ j(bY, {
41306
41393
  mode: o,
41307
41394
  secondary: s,
41308
41395
  dimensions: i,
@@ -41314,27 +41401,27 @@ var ZY = D("div")(() => ({
41314
41401
  })
41315
41402
  });
41316
41403
  }
41317
- }, tX = YY("bounds")(eX), nX = /* @__PURE__ */ aY({
41318
- ConfigLayout: () => tX,
41319
- LayoutContents: () => dY
41320
- }), rX = D("div")(() => ({
41404
+ }, uX = iX("bounds")(lX), dX = /* @__PURE__ */ mY({
41405
+ ConfigLayout: () => uX,
41406
+ LayoutContents: () => bY
41407
+ }), fX = D("div")(() => ({
41321
41408
  display: "flex",
41322
41409
  width: "100%",
41323
41410
  justifyContent: "space-between"
41324
- })), iX = D(Ce)(({ theme: e }) => ({
41411
+ })), pX = D(Ce)(({ theme: e }) => ({
41325
41412
  color: "rgba(0, 0, 0, 0.89)",
41326
41413
  fontSize: e.typography.fontSize,
41327
41414
  paddingTop: e.spacing(2)
41328
- })), aX = D(PJ)(({ checked: e }) => ({
41415
+ })), mX = D(UJ)(({ checked: e }) => ({
41329
41416
  "&.Mui-checked .MuiSwitch-thumb": { color: `${f.tertiary()} !important` },
41330
41417
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${f.tertiaryLight()} !important` },
41331
41418
  "& .MuiSwitch-track": { backgroundColor: e ? `${f.tertiaryLight()} !important` : void 0 }
41332
- })), oX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ M(rX, { children: [/* @__PURE__ */ j(iX, { children: n }), /* @__PURE__ */ j(aX, {
41419
+ })), hX = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ M(fX, { children: [/* @__PURE__ */ j(pX, { children: n }), /* @__PURE__ */ j(mX, {
41333
41420
  checked: e,
41334
41421
  disabled: t,
41335
41422
  onChange: (e) => r(e.target.checked)
41336
41423
  })] });
41337
- oX.propTypes = {
41424
+ hX.propTypes = {
41338
41425
  checked: B.default.bool,
41339
41426
  disabled: B.default.bool,
41340
41427
  label: B.default.string.isRequired,
@@ -41342,20 +41429,20 @@ oX.propTypes = {
41342
41429
  };
41343
41430
  //#endregion
41344
41431
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
41345
- var sX = D(fJ)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41432
+ var gX = D(xJ)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41346
41433
  color: "rgba(0, 0, 0, 0.89)",
41347
41434
  fontSize: e.typography.fontSize - 2,
41348
41435
  left: "-5px",
41349
41436
  position: "relative"
41350
- } })), cX = D(He)(() => ({ color: `${f.tertiary()} !important` })), lX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ j(sX, {
41437
+ } })), _X = D(He)(() => ({ color: `${f.tertiary()} !important` })), vX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ j(gX, {
41351
41438
  value: t,
41352
- control: /* @__PURE__ */ j(cX, {
41439
+ control: /* @__PURE__ */ j(_X, {
41353
41440
  checked: n,
41354
41441
  onChange: r
41355
41442
  }),
41356
41443
  label: e
41357
41444
  });
41358
- lX.propTypes = {
41445
+ vX.propTypes = {
41359
41446
  label: B.default.string,
41360
41447
  value: B.default.string,
41361
41448
  checked: B.default.bool,
@@ -41363,26 +41450,26 @@ lX.propTypes = {
41363
41450
  };
41364
41451
  //#endregion
41365
41452
  //#region ../../lib-react/config-ui/dist/settings/panel.js
41366
- var uX = (0, Lt.default)("pie-lib:config-ui:settings:panel"), dX = {
41453
+ var yX = (0, Lt.default)("pie-lib:config-ui:settings:panel"), bX = {
41367
41454
  label: B.default.string,
41368
41455
  value: B.default.string
41369
- }, fX = {
41456
+ }, xX = {
41370
41457
  label: B.default.string,
41371
41458
  value: B.default.string,
41372
41459
  onChange: B.default.func
41373
- }, pX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ j(HJ, {
41460
+ }, SX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ j(ZJ, {
41374
41461
  checked: t,
41375
41462
  label: e,
41376
41463
  onChange: (e) => {
41377
41464
  n(e.target.checked);
41378
41465
  }
41379
41466
  });
41380
- pX.propTypes = {
41467
+ SX.propTypes = {
41381
41468
  label: B.default.string,
41382
41469
  value: B.default.bool,
41383
41470
  onChange: B.default.func
41384
41471
  };
41385
- var mX = D(nY)(({ theme: e }) => ({
41472
+ var CX = D(dY)(({ theme: e }) => ({
41386
41473
  marginTop: e.spacing(.5),
41387
41474
  paddingBottom: e.spacing(.5),
41388
41475
  width: "100%",
@@ -41393,29 +41480,29 @@ var mX = D(nY)(({ theme: e }) => ({
41393
41480
  marginTop: e.spacing(2.5)
41394
41481
  },
41395
41482
  "& > div": { marginTop: e.spacing(2.5) }
41396
- })), hX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ j(mX, {
41483
+ })), wX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ j(CX, {
41397
41484
  direction: "horizontal",
41398
- customLabel: lX,
41485
+ customLabel: vX,
41399
41486
  value: t,
41400
41487
  header: e,
41401
41488
  opts: r,
41402
41489
  onChange: n
41403
41490
  });
41404
- hX.propTypes = {
41405
- ...fX,
41406
- choices: B.default.arrayOf(B.default.shape(dX))
41491
+ wX.propTypes = {
41492
+ ...xX,
41493
+ choices: B.default.arrayOf(B.default.shape(bX))
41407
41494
  };
41408
- var gX = hX, _X = D("p")(({ theme: e }) => ({
41495
+ var TX = wX, EX = D("p")(({ theme: e }) => ({
41409
41496
  margin: 0,
41410
41497
  fontSize: e.typography.fontSize
41411
- })), vX = D(fM)(({ theme: e }) => ({
41498
+ })), DX = D(fM)(({ theme: e }) => ({
41412
41499
  marginTop: e.spacing(.5),
41413
41500
  border: "2px solid lightgrey",
41414
41501
  padding: `0 ${e.spacing(1)}`,
41415
41502
  borderRadius: "4px"
41416
- })), yX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41503
+ })), OX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41417
41504
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
41418
- return /* @__PURE__ */ M("div", { children: [e && /* @__PURE__ */ j(_X, { children: e }), /* @__PURE__ */ j(vX, {
41505
+ return /* @__PURE__ */ M("div", { children: [e && /* @__PURE__ */ j(EX, { children: e }), /* @__PURE__ */ j(DX, {
41419
41506
  value: t || r && r[0],
41420
41507
  onChange: ({ target: e }) => n(e.value),
41421
41508
  input: /* @__PURE__ */ j(Uj, { id: `dropdown-${e}` }),
@@ -41430,14 +41517,14 @@ var gX = hX, _X = D("p")(({ theme: e }) => ({
41430
41517
  }, t))
41431
41518
  })] });
41432
41519
  };
41433
- yX.propTypes = {
41434
- ...fX,
41520
+ OX.propTypes = {
41521
+ ...xX,
41435
41522
  choices: B.default.arrayOf(B.default.string)
41436
41523
  };
41437
- var bX = D(JA)(({ theme: e }) => ({
41524
+ var kX = D(JA)(({ theme: e }) => ({
41438
41525
  marginRight: e.spacing(3),
41439
41526
  marginTop: e.spacing(1)
41440
- })), xX = ({ label: e }) => /* @__PURE__ */ j(bX, { children: e }), SX = D(KJ)(({ theme: e }) => ({
41527
+ })), AX = ({ label: e }) => /* @__PURE__ */ j(kX, { children: e }), jX = D(tY)(({ theme: e }) => ({
41441
41528
  width: "35%",
41442
41529
  marginRight: e.spacing(3),
41443
41530
  marginTop: e.spacing(1),
@@ -41448,7 +41535,7 @@ var bX = D(JA)(({ theme: e }) => ({
41448
41535
  padding: `0 ${e.spacing(1)}`,
41449
41536
  backgroundColor: "transparent"
41450
41537
  }
41451
- })), CX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ j(SX, {
41538
+ })), MX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ j(jX, {
41452
41539
  variant: "standard",
41453
41540
  label: e || "Label",
41454
41541
  value: t,
@@ -41459,45 +41546,45 @@ var bX = D(JA)(({ theme: e }) => ({
41459
41546
  showErrorWhenOutsideRange: !0,
41460
41547
  disableUnderline: !0
41461
41548
  });
41462
- CX.propTypes = {
41463
- ...fX,
41549
+ MX.propTypes = {
41550
+ ...xX,
41464
41551
  suffix: B.default.string,
41465
41552
  min: B.default.number,
41466
41553
  max: B.default.number,
41467
41554
  value: B.default.number
41468
- }, xX.propTypes = { ...fX };
41469
- var wX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ j(oX, {
41555
+ }, AX.propTypes = { ...xX };
41556
+ var NX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ j(hX, {
41470
41557
  label: t,
41471
41558
  checked: !!n,
41472
41559
  disabled: !!e,
41473
41560
  toggle: r
41474
41561
  });
41475
- wX.propTypes = {
41476
- ...fX,
41562
+ NX.propTypes = {
41563
+ ...xX,
41477
41564
  value: B.default.bool
41478
41565
  };
41479
- var TX = {
41480
- toggle: wX,
41481
- radio: gX,
41482
- dropdown: yX,
41483
- numberField: CX,
41484
- checkbox: pX,
41485
- textField: xX
41486
- }, EX = D("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), DX = D("div")(({ theme: e }) => ({
41566
+ var PX = {
41567
+ toggle: NX,
41568
+ radio: TX,
41569
+ dropdown: OX,
41570
+ numberField: MX,
41571
+ checkbox: SX,
41572
+ textField: AX
41573
+ }, FX = D("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), IX = D("div")(({ theme: e }) => ({
41487
41574
  color: "#495B8F",
41488
41575
  fontSize: e.typography.fontSize + 2,
41489
41576
  fontWeight: 600,
41490
41577
  marginBottom: e.spacing(1)
41491
- })), OX = D("p")(({ theme: e }) => ({
41578
+ })), LX = D("p")(({ theme: e }) => ({
41492
41579
  fontSize: e.typography.fontSize,
41493
41580
  marginBottom: 0
41494
- })), kX = (e) => {
41581
+ })), RX = (e) => {
41495
41582
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
41496
41583
  let { isConfigProperty: o, ...s } = nt(e, r || n), c = nt(o ? i : t, n), l = {
41497
41584
  ...s,
41498
41585
  key: n,
41499
41586
  value: c
41500
- }, u = TX[l.type];
41587
+ }, u = PX[l.type];
41501
41588
  return /* @__PURE__ */ j(u, {
41502
41589
  ...l,
41503
41590
  onChange: (e) => a(n, e, o)
@@ -41506,18 +41593,18 @@ var TX = {
41506
41593
  let n = e[t];
41507
41594
  if (!n) return null;
41508
41595
  let { type: r, label: i, fields: a, choices: s } = n;
41509
- return r === "numberFields" ? /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j(OX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41596
+ return r === "numberFields" ? /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j(LX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41510
41597
  };
41511
- return /* @__PURE__ */ M(EX, { children: [/* @__PURE__ */ j(DX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41598
+ return /* @__PURE__ */ M(FX, { children: [/* @__PURE__ */ j(IX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41512
41599
  };
41513
- kX.propTypes = {
41600
+ RX.propTypes = {
41514
41601
  model: B.default.object,
41515
41602
  label: B.default.string,
41516
41603
  group: B.default.object,
41517
41604
  configuration: B.default.object,
41518
41605
  onChange: B.default.func
41519
41606
  };
41520
- var AX = class extends ft.Component {
41607
+ var zX = class extends ft.Component {
41521
41608
  static propTypes = {
41522
41609
  model: B.default.object,
41523
41610
  configuration: B.default.object,
@@ -41531,13 +41618,13 @@ var AX = class extends ft.Component {
41531
41618
  onChangeConfiguration: () => {}
41532
41619
  };
41533
41620
  change = (e, t, n = !1) => {
41534
- uX("[changeModel]", e, t);
41621
+ yX("[changeModel]", e, t);
41535
41622
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41536
41623
  n ? (ot(o, e, t), i(o, e)) : (ot(a, e, t), r(a, e));
41537
41624
  };
41538
41625
  render() {
41539
41626
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
41540
- return uX("render:", t), /* @__PURE__ */ M("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ j(kX, {
41627
+ return yX("render:", t), /* @__PURE__ */ M("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ j(RX, {
41541
41628
  label: r,
41542
41629
  model: t,
41543
41630
  configuration: n,
@@ -41545,59 +41632,59 @@ var AX = class extends ft.Component {
41545
41632
  onChange: this.change
41546
41633
  }, r) : null), r] });
41547
41634
  }
41548
- }, jX = /* @__PURE__ */ aY({
41549
- Panel: () => AX,
41550
- checkbox: () => zX,
41551
- checkboxes: () => BX,
41552
- dropdown: () => IX,
41553
- numberField: () => LX,
41554
- numberFields: () => RX,
41555
- radio: () => FX,
41556
- textField: () => MX,
41557
- toggle: () => NX
41558
- }), MX = (e, t = !0) => ({
41635
+ }, BX = /* @__PURE__ */ mY({
41636
+ Panel: () => zX,
41637
+ checkbox: () => JX,
41638
+ checkboxes: () => YX,
41639
+ dropdown: () => GX,
41640
+ numberField: () => KX,
41641
+ numberFields: () => qX,
41642
+ radio: () => WX,
41643
+ textField: () => VX,
41644
+ toggle: () => HX
41645
+ }), VX = (e, t = !0) => ({
41559
41646
  label: e,
41560
41647
  type: "textField",
41561
41648
  isConfigProperty: t
41562
- }), NX = (e, t = !1, n = !1) => ({
41649
+ }), HX = (e, t = !1, n = !1) => ({
41563
41650
  type: "toggle",
41564
41651
  label: e,
41565
41652
  isConfigProperty: t,
41566
41653
  disabled: n
41567
- }), PX = (e) => typeof e == "string" ? {
41654
+ }), UX = (e) => typeof e == "string" ? {
41568
41655
  label: e,
41569
41656
  value: e
41570
- } : e, FX = function() {
41657
+ } : e, WX = function() {
41571
41658
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41572
41659
  return {
41573
41660
  type: "radio",
41574
41661
  label: e,
41575
- choices: t && t.map((e) => PX(e)),
41662
+ choices: t && t.map((e) => UX(e)),
41576
41663
  isConfigProperty: n
41577
41664
  };
41578
- }, IX = (e, t, n = !1) => ({
41665
+ }, GX = (e, t, n = !1) => ({
41579
41666
  type: "dropdown",
41580
41667
  label: e,
41581
41668
  choices: t,
41582
41669
  isConfigProperty: n
41583
- }), LX = (e, t, n = !1) => ({
41670
+ }), KX = (e, t, n = !1) => ({
41584
41671
  ...t,
41585
41672
  label: e,
41586
41673
  type: "numberField",
41587
41674
  isConfigProperty: n
41588
- }), RX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41589
- t[e] = LX(t[e].label, t[e], n);
41675
+ }), qX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41676
+ t[e] = KX(t[e].label, t[e], n);
41590
41677
  }), {
41591
41678
  type: "numberFields",
41592
41679
  label: e,
41593
41680
  fields: t
41594
- }), zX = (e, t, n = !1) => ({
41681
+ }), JX = (e, t, n = !1) => ({
41595
41682
  ...t,
41596
41683
  label: e,
41597
41684
  type: "checkbox",
41598
41685
  isConfigProperty: n
41599
- }), BX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41600
- t[e] = zX(t[e].label, t[e], n);
41686
+ }), YX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41687
+ t[e] = JX(t[e].label, t[e], n);
41601
41688
  }), {
41602
41689
  type: "checkboxes",
41603
41690
  label: e,
@@ -41605,28 +41692,28 @@ var AX = class extends ft.Component {
41605
41692
  });
41606
41693
  //#endregion
41607
41694
  //#region ../../lib-react/config-ui/dist/index.js
41608
- function VX(e) {
41695
+ function XX(e) {
41609
41696
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41610
41697
  }
41611
- function HX(e, t) {
41612
- return !e || VX(e) ? e : VX(e.default) ? e.default : t && VX(e[t]) ? e[t] : t && VX(e[t]?.default) ? e[t].default : e;
41698
+ function ZX(e, t) {
41699
+ return !e || XX(e) ? e : XX(e.default) ? e.default : t && XX(e[t]) ? e[t] : t && XX(e[t]?.default) ? e[t].default : e;
41613
41700
  }
41614
- var UX = HX(ye, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX = de, GX = WX.default, KX = GX && typeof GX == "object" ? GX : WX, qX = Te.div`
41701
+ var QX = ZX(ye, "InputContainer") || ZX(tZ.InputContainer, "InputContainer"), $X = de, eZ = $X.default, tZ = eZ && typeof eZ == "object" ? eZ : $X, nZ = Te.div`
41615
41702
  display: flex;
41616
41703
  flex-direction: column;
41617
41704
  align-items: center;
41618
- `, JX = Te.p`
41705
+ `, rZ = Te.p`
41619
41706
  margin: 10px 0;
41620
41707
  color: #c3c3c3;
41621
41708
  font-size: 12px;
41622
- `, YX = Te.div`
41709
+ `, iZ = Te.div`
41623
41710
  display: flex;
41624
41711
  align-items: center;
41625
41712
  justify-content: space-between;
41626
41713
  width: 110px;
41627
- `, XX = Te.div`
41714
+ `, aZ = Te.div`
41628
41715
  cursor: pointer;
41629
- `, ZX = {
41716
+ `, oZ = {
41630
41717
  agreement: "agreement",
41631
41718
  frequency: "frequency",
41632
41719
  yesNo: "yesNo",
@@ -41634,8 +41721,8 @@ var UX = HX(ye, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
41634
41721
  likelihood: "likelihood",
41635
41722
  like: "like",
41636
41723
  custom: "custom"
41637
- }, QX = ({ model: e, onChangeModel: t }) => /* @__PURE__ */ M(qX, { children: [/* @__PURE__ */ j(JX, { children: "Matrix Columns" }), /* @__PURE__ */ M(YX, { children: [
41638
- /* @__PURE__ */ j(XX, { children: /* @__PURE__ */ j(qJ, { onClick: () => {
41724
+ }, sZ = ({ model: e, onChangeModel: t }) => /* @__PURE__ */ M(nZ, { children: [/* @__PURE__ */ j(rZ, { children: "Matrix Columns" }), /* @__PURE__ */ M(iZ, { children: [
41725
+ /* @__PURE__ */ j(aZ, { children: /* @__PURE__ */ j(nY, { onClick: () => {
41639
41726
  let n = e.columnLabels.length;
41640
41727
  if (n <= 1) return;
41641
41728
  let r = [...e.columnLabels];
@@ -41647,26 +41734,26 @@ var UX = HX(ye, "InputContainer") || HX(KX.InputContainer, "InputContainer"), WX
41647
41734
  ...e,
41648
41735
  columnLabels: r,
41649
41736
  matrixValues: i,
41650
- labelType: ZX.custom
41737
+ labelType: oZ.custom
41651
41738
  });
41652
41739
  } }) }),
41653
41740
  /* @__PURE__ */ j("p", { children: e.columnLabels.length }),
41654
- /* @__PURE__ */ j(XX, { children: /* @__PURE__ */ j(JJ, { onClick: () => {
41741
+ /* @__PURE__ */ j(aZ, { children: /* @__PURE__ */ j(rY, { onClick: () => {
41655
41742
  t({
41656
41743
  ...e,
41657
41744
  columnLabels: [...e.columnLabels, `COLUMN ${e.columnLabels.length + 1}`],
41658
- labelType: ZX.custom
41745
+ labelType: oZ.custom
41659
41746
  });
41660
41747
  } }) })
41661
41748
  ] })] });
41662
- QX.propTypes = {
41749
+ sZ.propTypes = {
41663
41750
  model: B.default.object.isRequired,
41664
41751
  onChangeModel: B.default.func.isRequired
41665
41752
  };
41666
41753
  //#endregion
41667
41754
  //#region src/author/MatrixRowsSizeHeaderInput.tsx
41668
- var $X = ({ model: e, onChangeModel: t }) => /* @__PURE__ */ M(qX, { children: [/* @__PURE__ */ j(JX, { children: "Matrix Rows" }), /* @__PURE__ */ M(YX, { children: [
41669
- /* @__PURE__ */ j(XX, { children: /* @__PURE__ */ j(qJ, { onClick: () => {
41755
+ var cZ = ({ model: e, onChangeModel: t }) => /* @__PURE__ */ M(nZ, { children: [/* @__PURE__ */ j(rZ, { children: "Matrix Rows" }), /* @__PURE__ */ M(iZ, { children: [
41756
+ /* @__PURE__ */ j(aZ, { children: /* @__PURE__ */ j(nY, { onClick: () => {
41670
41757
  let n = e.rowLabels.length;
41671
41758
  if (n <= 1) return;
41672
41759
  let r = [...e.rowLabels];
@@ -41678,59 +41765,59 @@ var $X = ({ model: e, onChangeModel: t }) => /* @__PURE__ */ M(qX, { children: [
41678
41765
  ...e,
41679
41766
  rowLabels: r,
41680
41767
  matrixValues: i,
41681
- labelType: ZX.custom
41768
+ labelType: oZ.custom
41682
41769
  });
41683
41770
  } }) }),
41684
41771
  /* @__PURE__ */ j("p", { children: e.rowLabels.length }),
41685
- /* @__PURE__ */ j(XX, { children: /* @__PURE__ */ j(JJ, { onClick: () => {
41772
+ /* @__PURE__ */ j(aZ, { children: /* @__PURE__ */ j(rY, { onClick: () => {
41686
41773
  t({
41687
41774
  ...e,
41688
41775
  rowLabels: [...e.rowLabels, `STATEMENT ${e.rowLabels.length + 1}`],
41689
- labelType: ZX.custom
41776
+ labelType: oZ.custom
41690
41777
  });
41691
41778
  } }) })
41692
41779
  ] })] });
41693
- $X.propTypes = {
41780
+ cZ.propTypes = {
41694
41781
  model: B.default.object.isRequired,
41695
41782
  onChangeModel: B.default.func.isRequired
41696
41783
  };
41697
41784
  //#endregion
41698
41785
  //#region src/author/columnLabelsGenerator.ts
41699
- var eZ = [
41786
+ var lZ = [
41700
41787
  "Disagree",
41701
41788
  "Unsure",
41702
41789
  "Agree"
41703
- ], tZ = [
41790
+ ], uZ = [
41704
41791
  "Strongly Disagree",
41705
- ...eZ,
41792
+ ...lZ,
41706
41793
  "Strongly Agree"
41707
- ], nZ = [
41794
+ ], dZ = [
41708
41795
  "Extremely Disagree",
41709
- ...tZ,
41796
+ ...uZ,
41710
41797
  "Extremely Agree"
41711
- ], rZ = [
41798
+ ], fZ = [
41712
41799
  "Infrequently",
41713
41800
  "Unsure",
41714
41801
  "Frequently"
41715
- ], iZ = [
41802
+ ], pZ = [
41716
41803
  "Very Infrequently",
41717
- ...rZ,
41804
+ ...fZ,
41718
41805
  "Very Frequently"
41719
- ], aZ = [
41806
+ ], mZ = [
41720
41807
  "Never",
41721
- ...iZ,
41808
+ ...pZ,
41722
41809
  "Always"
41723
- ], oZ = [
41810
+ ], hZ = [
41724
41811
  "No",
41725
41812
  "Unsure",
41726
41813
  "Yes"
41727
- ], sZ = [
41814
+ ], gZ = [
41728
41815
  "No",
41729
41816
  "Not really",
41730
41817
  "Unsure",
41731
41818
  "Sometimes",
41732
41819
  "Yes"
41733
- ], cZ = [
41820
+ ], _Z = [
41734
41821
  "No",
41735
41822
  "Rarely",
41736
41823
  "Not really",
@@ -41738,146 +41825,146 @@ var eZ = [
41738
41825
  "Sometimes",
41739
41826
  "Very Often",
41740
41827
  "Always"
41741
- ], lZ = [
41828
+ ], vZ = [
41742
41829
  "Not Likely",
41743
41830
  "Unsure",
41744
41831
  "Likely"
41745
- ], uZ = [
41832
+ ], yZ = [
41746
41833
  "Very Unlikely",
41747
- ...lZ,
41834
+ ...vZ,
41748
41835
  "Very Likely"
41749
- ], dZ = [
41836
+ ], bZ = [
41750
41837
  "Extremely Unlikely",
41751
- ...uZ,
41838
+ ...yZ,
41752
41839
  "Extremely Likely"
41753
- ], fZ = [
41840
+ ], xZ = [
41754
41841
  "Not Important",
41755
41842
  "Unsure",
41756
41843
  "Important"
41757
- ], pZ = [
41844
+ ], SZ = [
41758
41845
  "Very Not Important",
41759
- ...fZ,
41846
+ ...xZ,
41760
41847
  "Very Important"
41761
- ], mZ = [
41848
+ ], CZ = [
41762
41849
  "Extremely Not Important",
41763
- ...pZ,
41850
+ ...SZ,
41764
41851
  "Extremely Important"
41765
- ], hZ = [
41852
+ ], wZ = [
41766
41853
  "Dislike",
41767
41854
  "Unsure",
41768
41855
  "Like"
41769
- ], gZ = [
41856
+ ], TZ = [
41770
41857
  "Really Dislike",
41771
- ...hZ,
41858
+ ...wZ,
41772
41859
  "Really Like"
41773
- ], _Z = {
41774
- agreement_3: eZ,
41775
- agreement_5: tZ,
41776
- agreement_7: nZ,
41777
- frequency_3: rZ,
41778
- frequency_5: iZ,
41779
- frequency_7: aZ,
41780
- yesNo_3: oZ,
41781
- yesNo_5: sZ,
41782
- yesNo_7: cZ,
41783
- likelihood_3: lZ,
41784
- likelihood_5: uZ,
41785
- likelihood_7: dZ,
41786
- importance_3: fZ,
41787
- importance_5: pZ,
41788
- importance_7: mZ,
41789
- like_3: hZ,
41790
- like_5: gZ,
41860
+ ], EZ = {
41861
+ agreement_3: lZ,
41862
+ agreement_5: uZ,
41863
+ agreement_7: dZ,
41864
+ frequency_3: fZ,
41865
+ frequency_5: pZ,
41866
+ frequency_7: mZ,
41867
+ yesNo_3: hZ,
41868
+ yesNo_5: gZ,
41869
+ yesNo_7: _Z,
41870
+ likelihood_3: vZ,
41871
+ likelihood_5: yZ,
41872
+ likelihood_7: bZ,
41873
+ importance_3: xZ,
41874
+ importance_5: SZ,
41875
+ importance_7: CZ,
41876
+ like_3: wZ,
41877
+ like_5: TZ,
41791
41878
  like_7: [
41792
41879
  "Extremely Dislike",
41793
- ...gZ,
41880
+ ...TZ,
41794
41881
  "Extremely Like"
41795
41882
  ]
41796
- }, vZ = (e, t) => _Z[`${e}_${t}`], yZ = D("div")({ display: "flex" }), bZ = D(He)({ "&.MuiRadio-root": { color: `${f.tertiary()} !important` } }), xZ = ({ model: e, onChangeModel: t }) => {
41883
+ }, DZ = (e, t) => EZ[`${e}_${t}`], OZ = D("div")({ display: "flex" }), kZ = D(He)({ "&.MuiRadio-root": { color: `${f.tertiary()} !important` } }), AZ = ({ model: e, onChangeModel: t }) => {
41797
41884
  let n = (n) => {
41798
41885
  let r = n.target.value, i = {
41799
41886
  ...e,
41800
41887
  labelType: r
41801
41888
  };
41802
- r !== ZX.custom && (i.columnLabels = vZ(r, e.columnLabels.length)), t(i);
41889
+ r !== oZ.custom && (i.columnLabels = DZ(r, e.columnLabels.length)), t(i);
41803
41890
  }, r = [
41804
41891
  3,
41805
41892
  5,
41806
41893
  7
41807
41894
  ].includes(e.columnLabels.length);
41808
- return /* @__PURE__ */ M(qX, { children: [/* @__PURE__ */ j(JX, { children: "Matrix Type" }), /* @__PURE__ */ M(yZ, { children: [
41809
- /* @__PURE__ */ M(EJ, {
41895
+ return /* @__PURE__ */ M(nZ, { children: [/* @__PURE__ */ j(rZ, { children: "Matrix Type" }), /* @__PURE__ */ M(OZ, { children: [
41896
+ /* @__PURE__ */ M(FJ, {
41810
41897
  "aria-label": "matrixLabelType",
41811
41898
  name: "matrixLabelType",
41812
41899
  value: e.labelType,
41813
41900
  onChange: n,
41814
41901
  children: [
41815
- /* @__PURE__ */ j(fJ, {
41902
+ /* @__PURE__ */ j(xJ, {
41816
41903
  disabled: !r,
41817
- value: ZX.agreement,
41818
- control: /* @__PURE__ */ j(bZ, {}),
41904
+ value: oZ.agreement,
41905
+ control: /* @__PURE__ */ j(kZ, {}),
41819
41906
  label: "Agreement"
41820
41907
  }),
41821
- /* @__PURE__ */ j(fJ, {
41908
+ /* @__PURE__ */ j(xJ, {
41822
41909
  disabled: !r,
41823
- value: ZX.frequency,
41824
- control: /* @__PURE__ */ j(bZ, {}),
41910
+ value: oZ.frequency,
41911
+ control: /* @__PURE__ */ j(kZ, {}),
41825
41912
  label: "Frequency"
41826
41913
  }),
41827
- /* @__PURE__ */ j(fJ, {
41914
+ /* @__PURE__ */ j(xJ, {
41828
41915
  disabled: !r,
41829
- value: ZX.yesNo,
41830
- control: /* @__PURE__ */ j(bZ, {}),
41916
+ value: oZ.yesNo,
41917
+ control: /* @__PURE__ */ j(kZ, {}),
41831
41918
  label: "Yes/No"
41832
41919
  })
41833
41920
  ]
41834
41921
  }),
41835
- /* @__PURE__ */ M(EJ, {
41922
+ /* @__PURE__ */ M(FJ, {
41836
41923
  "aria-label": "matrixLabelType",
41837
41924
  name: "matrixLabelType",
41838
41925
  value: e.labelType,
41839
41926
  onChange: n,
41840
41927
  children: [
41841
- /* @__PURE__ */ j(fJ, {
41928
+ /* @__PURE__ */ j(xJ, {
41842
41929
  disabled: !r,
41843
- value: ZX.importance,
41844
- control: /* @__PURE__ */ j(bZ, {}),
41930
+ value: oZ.importance,
41931
+ control: /* @__PURE__ */ j(kZ, {}),
41845
41932
  label: "Importance"
41846
41933
  }),
41847
- /* @__PURE__ */ j(fJ, {
41934
+ /* @__PURE__ */ j(xJ, {
41848
41935
  disabled: !r,
41849
- value: ZX.likelihood,
41850
- control: /* @__PURE__ */ j(bZ, {}),
41936
+ value: oZ.likelihood,
41937
+ control: /* @__PURE__ */ j(kZ, {}),
41851
41938
  label: "Likelihood"
41852
41939
  }),
41853
- /* @__PURE__ */ j(fJ, {
41940
+ /* @__PURE__ */ j(xJ, {
41854
41941
  disabled: !r,
41855
- value: ZX.like,
41856
- control: /* @__PURE__ */ j(bZ, {}),
41942
+ value: oZ.like,
41943
+ control: /* @__PURE__ */ j(kZ, {}),
41857
41944
  label: "Like"
41858
41945
  })
41859
41946
  ]
41860
41947
  }),
41861
- /* @__PURE__ */ j(EJ, {
41948
+ /* @__PURE__ */ j(FJ, {
41862
41949
  "aria-label": "matrixLabelType",
41863
41950
  name: "matrixLabelType",
41864
41951
  value: e.labelType,
41865
41952
  onChange: n,
41866
- children: /* @__PURE__ */ j(fJ, {
41867
- value: ZX.custom,
41868
- control: /* @__PURE__ */ j(bZ, {}),
41953
+ children: /* @__PURE__ */ j(xJ, {
41954
+ value: oZ.custom,
41955
+ control: /* @__PURE__ */ j(kZ, {}),
41869
41956
  label: "Custom"
41870
41957
  })
41871
41958
  })
41872
41959
  ] })] });
41873
41960
  };
41874
- xZ.propTypes = {
41961
+ AZ.propTypes = {
41875
41962
  model: B.default.object.isRequired,
41876
41963
  onChangeModel: B.default.func.isRequired
41877
41964
  };
41878
41965
  //#endregion
41879
41966
  //#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/KeyboardArrowDown.js
41880
- var SZ = w(/*#__PURE__*/ j("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z" }), "KeyboardArrowDown"), CZ = D("div")`
41967
+ var jZ = w(/*#__PURE__*/ j("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z" }), "KeyboardArrowDown"), MZ = D("div")`
41881
41968
  width: 100%;
41882
41969
  height: 100%;
41883
41970
  input[type='number'] {
@@ -41888,7 +41975,7 @@ var SZ = w(/*#__PURE__*/ j("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6
41888
41975
  input::-webkit-inner-spin-button {
41889
41976
  -webkit-appearance: none;
41890
41977
  }
41891
- `, wZ = D(bN)({
41978
+ `, NZ = D(bN)({
41892
41979
  "& .MuiOutlinedInput-root": {
41893
41980
  fontSize: "16px",
41894
41981
  textAlign: "center!important",
@@ -41910,9 +41997,9 @@ var SZ = w(/*#__PURE__*/ j("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6
41910
41997
  borderWidth: "1px !important",
41911
41998
  borderColor: "#d6d6d6 !important"
41912
41999
  }
41913
- }), TZ = (e) => {
42000
+ }), PZ = (e) => {
41914
42001
  let { onFieldUpdate: t, name: n, placeholder: r, fieldValue: i } = e;
41915
- return /* @__PURE__ */ j(CZ, { children: /* @__PURE__ */ j(wZ, {
42002
+ return /* @__PURE__ */ j(MZ, { children: /* @__PURE__ */ j(NZ, {
41916
42003
  name: n,
41917
42004
  value: i.value,
41918
42005
  inputRef: i.ref,
@@ -41924,7 +42011,7 @@ var SZ = w(/*#__PURE__*/ j("path", { d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6
41924
42011
  variant: "outlined"
41925
42012
  }) });
41926
42013
  };
41927
- TZ.propTypes = {
42014
+ PZ.propTypes = {
41928
42015
  name: B.default.string.isRequired,
41929
42016
  placeholder: B.default.string.isRequired,
41930
42017
  fieldValue: B.default.object.isRequired,
@@ -41932,16 +42019,16 @@ TZ.propTypes = {
41932
42019
  };
41933
42020
  //#endregion
41934
42021
  //#region src/author/isNumeric.ts
41935
- var EZ = (e) => /^-?\d+$/.test(e);
42022
+ var FZ = (e) => /^-?\d+$/.test(e);
41936
42023
  //#endregion
41937
42024
  //#region src/author/MatrixLabelEditableButton.tsx
41938
- function DZ(e) {
42025
+ function IZ(e) {
41939
42026
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41940
42027
  }
41941
- function OZ(e, t) {
41942
- return !e || DZ(e) ? e : DZ(e.default) ? e.default : t && DZ(e[t]) ? e[t] : t && DZ(e[t]?.default) ? e[t].default : e;
42028
+ function LZ(e, t) {
42029
+ return !e || IZ(e) ? e : IZ(e.default) ? e.default : t && IZ(e[t]) ? e[t] : t && IZ(e[t]?.default) ? e[t].default : e;
41943
42030
  }
41944
- var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ = AZ.default, MZ = jZ && typeof jZ == "object" ? jZ : AZ, NZ = Te.div`
42031
+ var RZ = LZ(Ne, "InlineMenu") || LZ(VZ.InlineMenu, "InlineMenu"), zZ = de, BZ = zZ.default, VZ = BZ && typeof BZ == "object" ? BZ : zZ, HZ = Te.div`
41945
42032
  width: 100%;
41946
42033
  height: 50px;
41947
42034
  margin: 1px;
@@ -41953,13 +42040,13 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
41953
42040
  display: flex;
41954
42041
  align-items: center;
41955
42042
  justify-content: space-between;
41956
- `, PZ = Te.div`
42043
+ `, UZ = Te.div`
41957
42044
  padding: 0 5px 0 12px;
41958
42045
  width: 100%;
41959
42046
  display: flex;
41960
42047
  align-items: center;
41961
42048
  overflow: hidden;
41962
- `, FZ = Te.p`
42049
+ `, WZ = Te.p`
41963
42050
  margin: 0;
41964
42051
  padding: 3px 0 3px 4px;
41965
42052
  cursor: pointer;
@@ -41974,7 +42061,7 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
41974
42061
  }
41975
42062
 
41976
42063
  transition: all 0.1s ease-in-out;
41977
- `, IZ = Te.div`
42064
+ `, GZ = Te.div`
41978
42065
  padding: 0 3px;
41979
42066
  height: 100%;
41980
42067
  cursor: pointer;
@@ -41987,9 +42074,9 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
41987
42074
  border-bottom-right-radius: 5px;
41988
42075
  }
41989
42076
  transition: all 0.1s ease-in-out;
41990
- `, LZ = Te.div`
42077
+ `, KZ = Te.div`
41991
42078
  font-size: 18px;
41992
- `, RZ = Te.input`
42079
+ `, qZ = Te.input`
41993
42080
  margin: 0;
41994
42081
  padding: 0 0 0 4px;
41995
42082
  font-size: 14px;
@@ -42002,24 +42089,24 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
42002
42089
  height: 22px;
42003
42090
  display: flex;
42004
42091
  align-items: center;
42005
- `, zZ = Te.div`
42092
+ `, JZ = Te.div`
42006
42093
  display: flex;
42007
42094
  align-items: center;
42008
- `, BZ = Te.div`
42095
+ `, YZ = Te.div`
42009
42096
  width: 50px;
42010
42097
  margin-left: 10px;
42011
- `, VZ = {
42098
+ `, XZ = {
42012
42099
  clear: "clear",
42013
42100
  sortAscending: "sortAscending",
42014
42101
  sortDescending: "sortDescending",
42015
42102
  set: "set"
42016
- }, HZ = (e) => {
42103
+ }, ZZ = (e) => {
42017
42104
  let { onLabelUpdate: t, value: n, resourceIndex: r, onAction: i, spellCheck: a } = e, [o, s] = Et(null), [c, l] = Et(""), [u, d] = Et(!1), [f, p] = ft.useState(null), [m] = ft.useState(ft.createRef()), h = !!f, g = (e) => {
42018
42105
  p(e.currentTarget);
42019
42106
  }, _ = (e) => {
42020
42107
  e.stopPropagation(), p(null), l("");
42021
42108
  };
42022
- return /* @__PURE__ */ M(NZ, { children: [/* @__PURE__ */ j(PZ, { children: u ? /* @__PURE__ */ j(RZ, {
42109
+ return /* @__PURE__ */ M(HZ, { children: [/* @__PURE__ */ j(UZ, { children: u ? /* @__PURE__ */ j(qZ, {
42023
42110
  autoFocus: !0,
42024
42111
  value: o,
42025
42112
  onChange: (e) => s(e.target.value),
@@ -42028,14 +42115,14 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
42028
42115
  e && t(e), s(null), d(!1);
42029
42116
  },
42030
42117
  spellCheck: a
42031
- }) : /* @__PURE__ */ j(FZ, {
42118
+ }) : /* @__PURE__ */ j(WZ, {
42032
42119
  onClick: () => {
42033
42120
  d(!0), s(n);
42034
42121
  },
42035
42122
  children: n
42036
- }) }), /* @__PURE__ */ M(IZ, {
42123
+ }) }), /* @__PURE__ */ M(GZ, {
42037
42124
  onClick: g,
42038
- children: [/* @__PURE__ */ j(LZ, { children: /* @__PURE__ */ j(SZ, { fontSize: "inherit" }) }), /* @__PURE__ */ M(kZ, {
42125
+ children: [/* @__PURE__ */ j(KZ, { children: /* @__PURE__ */ j(jZ, { fontSize: "inherit" }) }), /* @__PURE__ */ M(RZ, {
42039
42126
  anchorEl: f,
42040
42127
  open: h,
42041
42128
  onClose: _,
@@ -42049,7 +42136,7 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
42049
42136
  onClick: (e) => {
42050
42137
  _(e), i({
42051
42138
  resourceIndex: r,
42052
- actionType: VZ.clear
42139
+ actionType: XZ.clear
42053
42140
  });
42054
42141
  },
42055
42142
  children: "Clear Scores"
@@ -42059,7 +42146,7 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
42059
42146
  onClick: (e) => {
42060
42147
  _(e), i({
42061
42148
  resourceIndex: r,
42062
- actionType: VZ.sortAscending
42149
+ actionType: XZ.sortAscending
42063
42150
  });
42064
42151
  },
42065
42152
  children: "Set Scores Ascending"
@@ -42069,28 +42156,28 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
42069
42156
  onClick: (e) => {
42070
42157
  _(e), i({
42071
42158
  resourceIndex: r,
42072
- actionType: VZ.sortDescending
42159
+ actionType: XZ.sortDescending
42073
42160
  });
42074
42161
  },
42075
42162
  children: "Set Scores Descending"
42076
42163
  }, "item3"),
42077
42164
  /* @__PURE__ */ j(_M, {
42078
42165
  selected: !1,
42079
- children: /* @__PURE__ */ M(zZ, { children: [/* @__PURE__ */ j("p", {
42166
+ children: /* @__PURE__ */ M(JZ, { children: [/* @__PURE__ */ j("p", {
42080
42167
  onClick: () => {
42081
42168
  m.current.focus();
42082
42169
  },
42083
42170
  children: "Set Scores To"
42084
- }), /* @__PURE__ */ j(BZ, { children: /* @__PURE__ */ j(TZ, {
42171
+ }), /* @__PURE__ */ j(YZ, { children: /* @__PURE__ */ j(PZ, {
42085
42172
  onFieldUpdate: (e) => {
42086
- if (!EZ(e)) {
42173
+ if (!FZ(e)) {
42087
42174
  l("");
42088
42175
  return;
42089
42176
  }
42090
42177
  let t = parseInt(e, 10);
42091
42178
  l(t), i({
42092
42179
  resourceIndex: r,
42093
- actionType: VZ.set,
42180
+ actionType: XZ.set,
42094
42181
  setValue: t
42095
42182
  });
42096
42183
  },
@@ -42106,7 +42193,7 @@ var kZ = OZ(Ne, "InlineMenu") || OZ(MZ.InlineMenu, "InlineMenu"), AZ = de, jZ =
42106
42193
  })]
42107
42194
  })] });
42108
42195
  };
42109
- HZ.propTypes = {
42196
+ ZZ.propTypes = {
42110
42197
  value: B.default.string.isRequired,
42111
42198
  resourceIndex: B.default.number.isRequired,
42112
42199
  onLabelUpdate: B.default.func.isRequired,
@@ -42115,56 +42202,56 @@ HZ.propTypes = {
42115
42202
  };
42116
42203
  //#endregion
42117
42204
  //#region src/author/MatrixValues.tsx
42118
- var UZ = "120px", WZ = Te.div`
42205
+ var QZ = "120px", $Z = Te.div`
42119
42206
  display: grid;
42120
42207
  grid-template-columns: min-content min-content auto;
42121
- `, GZ = Te.div`
42208
+ `, eQ = Te.div`
42122
42209
  display: flex;
42123
42210
  justify-content: space-between;
42124
42211
  padding: 5px;
42125
- `, KZ = Te.div`
42126
- width: ${UZ};
42212
+ `, tQ = Te.div`
42213
+ width: ${QZ};
42127
42214
  display: flex;
42128
42215
  align-items: center;
42129
42216
  justify-content: center;
42130
- `, qZ = Te.div`
42217
+ `, nQ = Te.div`
42131
42218
  width: 200px;
42132
42219
  display: flex;
42133
42220
  align-items: center;
42134
42221
  justify-content: center;
42135
- `, JZ = Te.div`
42222
+ `, rQ = Te.div`
42136
42223
  display: flex;
42137
42224
  justify-content: space-between;
42138
- `, YZ = Te.div`
42139
- width: ${UZ};
42225
+ `, iQ = Te.div`
42226
+ width: ${QZ};
42140
42227
  height: 50px;
42141
42228
  margin: 1px;
42142
42229
  display: flex;
42143
42230
  align-items: center;
42144
42231
  justify-content: center;
42145
- `, XZ = Te.div`
42232
+ `, aQ = Te.div`
42146
42233
  display: flex;
42147
42234
  flex-direction: column;
42148
42235
  justify-content: space-between;
42149
42236
  padding: 5px;
42150
- `, ZZ = Te.div`
42237
+ `, oQ = Te.div`
42151
42238
  width: 60px;
42152
42239
  justify-self: center;
42153
42240
  align-self: center;
42154
- `, QZ = Te.div`
42241
+ `, sQ = Te.div`
42155
42242
  background: gray;
42156
42243
  width: 100%;
42157
42244
  height: 1px;
42158
- `, $Z = Te.div`
42245
+ `, cQ = Te.div`
42159
42246
  background: gray;
42160
42247
  width: 1px;
42161
42248
  height: 100%;
42162
- `, eQ = Te.div`
42249
+ `, lQ = Te.div`
42163
42250
  padding: 5px;
42164
- `, tQ = (e) => {
42251
+ `, uQ = (e) => {
42165
42252
  let { model: t, onChangeModel: n } = e, { rowLabels: r, columnLabels: i, matrixValues: a, spellCheckEnabled: o } = t, s = (e, r) => {
42166
42253
  let i = { ...a };
42167
- EZ(r) ? i[e] = parseInt(r, 10) : delete i[e], n({
42254
+ FZ(r) ? i[e] = parseInt(r, 10) : delete i[e], n({
42168
42255
  ...t,
42169
42256
  matrixValues: i
42170
42257
  });
@@ -42184,16 +42271,16 @@ var UZ = "120px", WZ = Te.div`
42184
42271
  let s = e, c = { ...a };
42185
42272
  r.forEach((e, t) => {
42186
42273
  switch (i) {
42187
- case VZ.clear:
42274
+ case XZ.clear:
42188
42275
  delete c[`${t}-${s}`];
42189
42276
  break;
42190
- case VZ.sortAscending:
42277
+ case XZ.sortAscending:
42191
42278
  c[`${t}-${s}`] = t + 1;
42192
42279
  break;
42193
- case VZ.sortDescending:
42280
+ case XZ.sortDescending:
42194
42281
  c[`${t}-${s}`] = r.length - t;
42195
42282
  break;
42196
- case VZ.set:
42283
+ case XZ.set:
42197
42284
  c[`${t}-${s}`] = o;
42198
42285
  break;
42199
42286
  default: throw "Incorrect actionType";
@@ -42206,16 +42293,16 @@ var UZ = "120px", WZ = Te.div`
42206
42293
  let c = e, l = { ...a };
42207
42294
  i.forEach((e, t) => {
42208
42295
  switch (o) {
42209
- case VZ.clear:
42296
+ case XZ.clear:
42210
42297
  delete l[`${c}-${t}`];
42211
42298
  break;
42212
- case VZ.sortAscending:
42299
+ case XZ.sortAscending:
42213
42300
  l[`${c}-${t}`] = c + 1;
42214
42301
  break;
42215
- case VZ.sortDescending:
42302
+ case XZ.sortDescending:
42216
42303
  l[`${c}-${t}`] = r.length - c;
42217
42304
  break;
42218
- case VZ.set:
42305
+ case XZ.set:
42219
42306
  l[`${c}-${t}`] = s;
42220
42307
  break;
42221
42308
  default: throw "Incorrect actionType";
@@ -42225,73 +42312,73 @@ var UZ = "120px", WZ = Te.div`
42225
42312
  matrixValues: l
42226
42313
  });
42227
42314
  };
42228
- return /* @__PURE__ */ M(WZ, { children: [
42315
+ return /* @__PURE__ */ M($Z, { children: [
42229
42316
  /* @__PURE__ */ j("div", {}),
42230
- /* @__PURE__ */ j($Z, {}),
42231
- /* @__PURE__ */ j(GZ, { children: i.map((e, t) => /* @__PURE__ */ j(KZ, { children: /* @__PURE__ */ j(HZ, {
42317
+ /* @__PURE__ */ j(cQ, {}),
42318
+ /* @__PURE__ */ j(eQ, { children: i.map((e, t) => /* @__PURE__ */ j(tQ, { children: /* @__PURE__ */ j(ZZ, {
42232
42319
  resourceIndex: t,
42233
42320
  onAction: u,
42234
42321
  value: e,
42235
42322
  onLabelUpdate: (e) => c(t, e),
42236
42323
  spellCheck: o
42237
42324
  }) }, t)) }),
42238
- /* @__PURE__ */ j(QZ, {}),
42239
- /* @__PURE__ */ j($Z, {}),
42240
- /* @__PURE__ */ j(QZ, {}),
42241
- /* @__PURE__ */ j(XZ, { children: r.map((e, t) => /* @__PURE__ */ j(qZ, { children: /* @__PURE__ */ j(HZ, {
42325
+ /* @__PURE__ */ j(sQ, {}),
42326
+ /* @__PURE__ */ j(cQ, {}),
42327
+ /* @__PURE__ */ j(sQ, {}),
42328
+ /* @__PURE__ */ j(aQ, { children: r.map((e, t) => /* @__PURE__ */ j(nQ, { children: /* @__PURE__ */ j(ZZ, {
42242
42329
  resourceIndex: t,
42243
42330
  onAction: d,
42244
42331
  value: e,
42245
42332
  onLabelUpdate: (e) => l(t, e),
42246
42333
  spellCheck: o
42247
42334
  }) }, t)) }),
42248
- /* @__PURE__ */ j($Z, {}),
42249
- /* @__PURE__ */ j(eQ, { children: r.map((e, t) => /* @__PURE__ */ j(JZ, { children: i.map((e, n) => {
42335
+ /* @__PURE__ */ j(cQ, {}),
42336
+ /* @__PURE__ */ j(lQ, { children: r.map((e, t) => /* @__PURE__ */ j(rQ, { children: i.map((e, n) => {
42250
42337
  let r = `${t}-${n}`;
42251
- return /* @__PURE__ */ j(YZ, { children: /* @__PURE__ */ j(ZZ, { children: /* @__PURE__ */ j(TZ, {
42338
+ return /* @__PURE__ */ j(iQ, { children: /* @__PURE__ */ j(oQ, { children: /* @__PURE__ */ j(PZ, {
42252
42339
  onFieldUpdate: (e) => s(r, e),
42253
42340
  name: r,
42254
42341
  placeholder: "#",
42255
- fieldValue: { value: EZ(a[r]) ? a[r] : "" }
42342
+ fieldValue: { value: FZ(a[r]) ? a[r] : "" }
42256
42343
  }) }) }, n);
42257
42344
  }) }, t)) })
42258
42345
  ] });
42259
42346
  };
42260
- tQ.propTypes = {
42347
+ uQ.propTypes = {
42261
42348
  model: B.default.object.isRequired,
42262
42349
  onChangeModel: B.default.func.isRequired
42263
42350
  };
42264
42351
  //#endregion
42265
42352
  //#region src/author/Main.tsx
42266
- var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42353
+ var { Panel: dQ, toggle: fQ, radio: pQ } = BX, mQ = D(QX)(({ theme: e }) => ({
42267
42354
  width: "100%",
42268
42355
  paddingTop: e.spacing(1),
42269
42356
  marginTop: e.spacing(2),
42270
42357
  marginBottom: e.spacing(2)
42271
- })), oQ = D("div")(({ theme: e }) => ({
42358
+ })), hQ = D("div")(({ theme: e }) => ({
42272
42359
  display: "flex",
42273
42360
  flexWrap: "wrap",
42274
42361
  width: "100%",
42275
42362
  paddingBottom: e.spacing(2.5),
42276
42363
  justifyContent: "space-around"
42277
- })), sQ = D("div")(({ theme: e }) => ({
42364
+ })), gQ = D("div")(({ theme: e }) => ({
42278
42365
  fontSize: e.typography.fontSize - 2,
42279
42366
  color: e.palette.error.main,
42280
42367
  paddingTop: e.spacing(1)
42281
- })), cQ = (e) => {
42368
+ })), _Q = (e) => {
42282
42369
  let { model: t, configuration: n, onPromptChanged: r, imageSupport: i, uploadSoundSupport: a, onChangeModel: o, onConfigurationChanged: s, onTeacherInstructionsChanged: c } = e, { baseInputConfiguration: l = {}, contentDimensions: u = {}, prompt: d = {}, scoringType: f = {}, settingsPanelDisabled: p, spellCheck: m = {}, teacherInstructions: h = {} } = n || {}, { errors: g = {}, extraCSSRules: _, teacherInstructionsEnabled: v, spellCheckEnabled: y } = t || {}, { prompt: b, teacherInstructions: x } = g, S = {
42283
- teacherInstructionsEnabled: h.settings && rQ(h.label),
42284
- spellCheckEnabled: m.settings && rQ(m.label),
42285
- scoringType: f.settings && iQ(f.label, ["auto", "rubric"])
42370
+ teacherInstructionsEnabled: h.settings && fQ(h.label),
42371
+ spellCheckEnabled: m.settings && fQ(m.label),
42372
+ scoringType: f.settings && pQ(f.label, ["auto", "rubric"])
42286
42373
  }, C = (e = {}) => ({
42287
42374
  ...l,
42288
42375
  ...e
42289
42376
  });
42290
- return /* @__PURE__ */ M(nX.ConfigLayout, {
42377
+ return /* @__PURE__ */ M(dX.ConfigLayout, {
42291
42378
  extraCSSRules: _,
42292
42379
  dimensions: u,
42293
42380
  hideSettings: p,
42294
- settings: /* @__PURE__ */ j(nQ, {
42381
+ settings: /* @__PURE__ */ j(dQ, {
42295
42382
  model: t,
42296
42383
  onChangeModel: o,
42297
42384
  configuration: n,
@@ -42299,9 +42386,9 @@ var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42299
42386
  groups: { Properties: S }
42300
42387
  }),
42301
42388
  children: [
42302
- v && /* @__PURE__ */ M(aQ, {
42389
+ v && /* @__PURE__ */ M(mQ, {
42303
42390
  label: h.label,
42304
- children: [/* @__PURE__ */ j(Yq, {
42391
+ children: [/* @__PURE__ */ j(iJ, {
42305
42392
  markup: t.teacherInstructions || "",
42306
42393
  onChange: c,
42307
42394
  imageSupport: i,
@@ -42310,11 +42397,11 @@ var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42310
42397
  nonEmpty: !1,
42311
42398
  spellCheck: y,
42312
42399
  uploadSoundSupport: a
42313
- }), x && /* @__PURE__ */ j(sQ, { children: x })]
42400
+ }), x && /* @__PURE__ */ j(gQ, { children: x })]
42314
42401
  }),
42315
- /* @__PURE__ */ M(aQ, {
42402
+ /* @__PURE__ */ M(mQ, {
42316
42403
  label: d.label,
42317
- children: [/* @__PURE__ */ j(Yq, {
42404
+ children: [/* @__PURE__ */ j(iJ, {
42318
42405
  markup: t.prompt,
42319
42406
  onChange: r,
42320
42407
  imageSupport: i,
@@ -42324,29 +42411,29 @@ var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42324
42411
  spellCheck: y,
42325
42412
  uploadSoundSupport: a,
42326
42413
  disableUnderline: !0
42327
- }), b && /* @__PURE__ */ j(sQ, { children: b })]
42414
+ }), b && /* @__PURE__ */ j(gQ, { children: b })]
42328
42415
  }),
42329
- /* @__PURE__ */ M(oQ, { children: [
42330
- /* @__PURE__ */ j($X, {
42416
+ /* @__PURE__ */ M(hQ, { children: [
42417
+ /* @__PURE__ */ j(cZ, {
42331
42418
  model: t,
42332
42419
  onChangeModel: o
42333
42420
  }),
42334
- /* @__PURE__ */ j(QX, {
42421
+ /* @__PURE__ */ j(sZ, {
42335
42422
  model: t,
42336
42423
  onChangeModel: o
42337
42424
  }),
42338
- /* @__PURE__ */ j(xZ, {
42425
+ /* @__PURE__ */ j(AZ, {
42339
42426
  model: t,
42340
42427
  onChangeModel: o
42341
42428
  })
42342
42429
  ] }),
42343
- /* @__PURE__ */ j(tQ, {
42430
+ /* @__PURE__ */ j(uQ, {
42344
42431
  model: t,
42345
42432
  onChangeModel: o
42346
42433
  })
42347
42434
  ]
42348
42435
  });
42349
- }, lQ = class extends ft.Component {
42436
+ }, vQ = class extends ft.Component {
42350
42437
  static propTypes = {
42351
42438
  model: B.default.object.isRequired,
42352
42439
  disableSidePanel: B.default.bool,
@@ -42376,14 +42463,14 @@ var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42376
42463
  });
42377
42464
  };
42378
42465
  render() {
42379
- return /* @__PURE__ */ j(cQ, {
42466
+ return /* @__PURE__ */ j(_Q, {
42380
42467
  ...this.props,
42381
42468
  onChangeModel: this.props.onModelChanged,
42382
42469
  onPromptChanged: this.onPromptChanged,
42383
42470
  onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
42384
42471
  });
42385
42472
  }
42386
- }, uQ = {
42473
+ }, yQ = {
42387
42474
  model: {
42388
42475
  columnLabels: [
42389
42476
  "COLUMN 1",
@@ -42435,22 +42522,22 @@ var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42435
42522
  required: !1
42436
42523
  }
42437
42524
  }
42438
- }, dQ = (0, Lt.default)("matrix:configure"), fQ = (e, t) => ({
42439
- configuration: at(e, uQ.configuration),
42525
+ }, bQ = (0, Lt.default)("matrix:configure"), xQ = (e, t) => ({
42526
+ configuration: at(e, yQ.configuration),
42440
42527
  model: t
42441
- }), pQ = class e extends HTMLElement {
42528
+ }), SQ = class e extends HTMLElement {
42442
42529
  static createDefaultModel = (e = {}) => ({
42443
- ...uQ.model,
42530
+ ...yQ.model,
42444
42531
  ...e
42445
42532
  });
42446
42533
  constructor() {
42447
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = uQ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42534
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = yQ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42448
42535
  }
42449
42536
  set model(t) {
42450
42537
  this._model = e.createDefaultModel(t), this._render();
42451
42538
  }
42452
42539
  set configuration(e) {
42453
- let t = fQ(e, this._model);
42540
+ let t = xQ(e, this._model);
42454
42541
  this.onModelChanged(t.model), this._configuration = t.configuration, this._render();
42455
42542
  }
42456
42543
  set disableSidePanel(e) {
@@ -42464,7 +42551,7 @@ var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42464
42551
  this._model = e, this._render(), this.dispatchModelUpdated(t);
42465
42552
  }
42466
42553
  onConfigurationChanged(e) {
42467
- this._configuration = fQ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42554
+ this._configuration = xQ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42468
42555
  }
42469
42556
  insertSound(e) {
42470
42557
  this.dispatchEvent(new Bt(e));
@@ -42473,8 +42560,8 @@ var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42473
42560
  this.dispatchEvent(new zt(e, t));
42474
42561
  }
42475
42562
  _render() {
42476
- dQ("_render");
42477
- let e = ft.createElement(lQ, {
42563
+ bQ("_render");
42564
+ let e = ft.createElement(vQ, {
42478
42565
  model: this._model,
42479
42566
  configuration: this._configuration,
42480
42567
  onModelChanged: this.onModelChanged,
@@ -42495,6 +42582,6 @@ var { Panel: nQ, toggle: rQ, radio: iQ } = jX, aQ = D(UX)(({ theme: e }) => ({
42495
42582
  }
42496
42583
  };
42497
42584
  //#endregion
42498
- export { pQ as default };
42585
+ export { SQ as default };
42499
42586
 
42500
42587
  //# sourceMappingURL=index.js.map