@pie-element/likert 4.1.2-next.7 → 4.1.2-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { $ as e, A as t, B as n, C as r, Ct as i, D as a, Dt as o, E as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as S, S as C, St as w, Tt as ee, U as T, V as te, W as E, X as ne, Y as re, Z as ie, _ as ae, _t as D, a as oe, at as se, b as ce, bt as le, c as ue, ct as de, dt as fe, et as pe, f as me, ft as he, g as ge, gt as O, h as _e, ht as ve, i as ye, it as be, j as xe, k as Se, kt as Ce, l as we, lt as Te, m as Ee, mt as De, n as Oe, nt as ke, o as Ae, ot as je, p as Me, pt as Ne, q as Pe, r as Fe, rt as Ie, s as Le, st as k, t as Re, tt as ze, u as Be, ut as Ve, v as He, vt as Ue, w as We, wt as A, x as Ge, xt as Ke, yt as qe, z as Je } from "../Radio-_hwynMjE.js";
1
+ import { $ as e, A as t, B as n, C as r, Ct as i, D as a, Dt as o, E as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as S, S as C, St as w, Tt as ee, U as T, V as te, W as E, X as ne, Y as re, Z as ie, _ as ae, _t as D, a as oe, at as se, b as ce, bt as le, c as ue, ct as de, dt as fe, et as pe, f as me, ft as he, g as ge, gt as O, h as _e, ht as ve, i as ye, it as be, j as xe, k as Se, kt as Ce, l as we, lt as Te, m as Ee, mt as De, n as Oe, nt as ke, o as Ae, ot as je, p as Me, pt as Ne, q as Pe, r as Fe, rt as Ie, s as Le, st as k, t as Re, tt as ze, u as Be, ut as Ve, v as He, vt as Ue, w as We, wt as A, x as Ge, xt as Ke, yt as qe, z as Je } from "../Radio-CS9QkG4K.js";
2
2
  import * as j from "react";
3
3
  import Ye, { Component as Xe, createContext as Ze, createElement as Qe, createRef as $e, forwardRef as et, memo as tt, useCallback as nt, useContext as rt, useDebugValue as it, useEffect as at, useLayoutEffect as ot, useMemo as st, useRef as ct, useState as lt, version as ut } from "react";
4
4
  import { Fragment as dt, jsx as M, jsxs as N } from "react/jsx-runtime";
@@ -38971,8 +38971,8 @@ Wm.create({
38971
38971
  })) ?? null };
38972
38972
  }
38973
38973
  });
38974
- var fq = "placeholder", pq = new Yi("tiptap__placeholder"), mq = 200;
38975
- function hq(e) {
38974
+ var fq = "placeholder", pq = new Yi("tiptap__placeholder");
38975
+ function mq(e) {
38976
38976
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
38977
38977
  return o && u.push(l), Ku.node(i, i + a.nodeSize, {
38978
38978
  class: u.join(" "),
@@ -38984,156 +38984,198 @@ function hq(e) {
38984
38984
  }) : n
38985
38985
  });
38986
38986
  }
38987
- function gq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38987
+ function hq(e, t) {
38988
+ return typeof e == "function" ? e(t) : e;
38989
+ }
38990
+ function gq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
38991
+ let { anchor: s } = i, c = [], l = e.isEmpty;
38992
+ return r.nodesBetween(a, o, (r, i) => {
38993
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && Qp(r);
38994
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(mq({
38995
+ editor: e,
38996
+ isEmptyDoc: l,
38997
+ dataAttribute: n,
38998
+ hasAnchor: a,
38999
+ placeholder: t.placeholder,
39000
+ classes: {
39001
+ emptyEditor: t.emptyEditorClass,
39002
+ emptyNode: hq(t.emptyNodeClass, {
39003
+ editor: e,
39004
+ node: r,
39005
+ pos: i,
39006
+ hasAnchor: a
39007
+ })
39008
+ },
39009
+ node: r,
39010
+ pos: i
39011
+ })), t.includeChildren;
39012
+ }), c;
39013
+ }
39014
+ function _q({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38988
39015
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
38989
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
38990
- emptyEditor: t.emptyEditorClass,
38991
- emptyNode: t.emptyNodeClass
38992
- };
39016
+ let { anchor: a } = i, o = [], s = e.isEmpty;
38993
39017
  if (t.showOnlyCurrent && !t.includeChildren) {
38994
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
38995
- if (l && l.type.isTextblock && Qp(l)) {
38996
- let r = a >= u && a <= u + l.nodeSize;
38997
- o.push(hq({
39018
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
39019
+ if (c && c.type.isTextblock && Qp(c)) {
39020
+ let r = a >= l && a <= l + c.nodeSize;
39021
+ o.push(mq({
38998
39022
  editor: e,
38999
39023
  isEmptyDoc: s,
39000
39024
  dataAttribute: n,
39001
39025
  hasAnchor: r,
39002
39026
  placeholder: t.placeholder,
39003
- classes: c,
39004
- node: l,
39005
- pos: u
39027
+ classes: {
39028
+ emptyEditor: t.emptyEditorClass,
39029
+ emptyNode: hq(t.emptyNodeClass, {
39030
+ editor: e,
39031
+ node: c,
39032
+ pos: l,
39033
+ hasAnchor: r
39034
+ })
39035
+ },
39036
+ node: c,
39037
+ pos: l
39006
39038
  }));
39007
39039
  }
39008
- } else {
39009
- let i = pq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
39010
- r.nodesBetween(l, u, (r, i) => {
39011
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && Qp(r);
39012
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(hq({
39013
- editor: e,
39014
- isEmptyDoc: s,
39015
- dataAttribute: n,
39016
- hasAnchor: l,
39017
- placeholder: t.placeholder,
39018
- classes: c,
39019
- node: r,
39020
- pos: i
39021
- })), t.includeChildren;
39022
- });
39023
- }
39040
+ } else o.push(...gq({
39041
+ editor: e,
39042
+ options: t,
39043
+ dataAttribute: n,
39044
+ doc: r,
39045
+ selection: i,
39046
+ from: 0,
39047
+ to: r.content.size
39048
+ }));
39024
39049
  return Yu.create(r, o);
39025
39050
  }
39026
- function _q(e) {
39027
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39051
+ function vq(e, t) {
39052
+ let n = e.resolve(t);
39053
+ if (n.depth === 0) {
39054
+ let e = n.nodeAfter ?? n.nodeBefore;
39055
+ if (!e) return {
39056
+ from: t,
39057
+ to: t
39058
+ };
39059
+ let r = n.nodeAfter ? t : t - e.nodeSize;
39060
+ return {
39061
+ from: r,
39062
+ to: r + e.nodeSize
39063
+ };
39064
+ }
39065
+ let r = n.before(1);
39066
+ return {
39067
+ from: r,
39068
+ to: r + n.node(1).nodeSize
39069
+ };
39028
39070
  }
39029
- function vq(e) {
39030
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
39031
- return /auto|scroll|overlay/.test(n);
39071
+ function yq(e, t) {
39072
+ return {
39073
+ from: Math.max(0, t.from - 1),
39074
+ to: Math.min(e.content.size, t.to - 1)
39075
+ };
39032
39076
  }
39033
- function yq(e) {
39034
- let t = e;
39035
- for (; t;) {
39036
- if (vq(t)) return t;
39037
- let e = t.parentElement;
39038
- if (!e) {
39039
- let e = t.getRootNode();
39040
- if (e instanceof ShadowRoot) {
39041
- t = e.host;
39042
- continue;
39043
- }
39044
- return window;
39045
- }
39046
- t = e;
39077
+ function bq(e, t, n) {
39078
+ let r = [];
39079
+ return e.forEach((e, i) => {
39080
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
39081
+ s < n && c > t && r.push({
39082
+ from: a,
39083
+ to: o
39084
+ });
39085
+ }), r;
39086
+ }
39087
+ function xq(e) {
39088
+ if (e.length === 0) return [];
39089
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
39090
+ for (let e = 1; e < t.length; e += 1) {
39091
+ let r = n[n.length - 1], i = t[e];
39092
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
39047
39093
  }
39048
- return window;
39094
+ return n;
39049
39095
  }
39050
- function bq(e) {
39051
- return e === window ? {
39052
- top: 0,
39053
- bottom: window.innerHeight
39054
- } : e.getBoundingClientRect();
39096
+ function Sq(e, t) {
39097
+ let n = bq(e, t.from, t.to);
39098
+ return n.push(yq(e, vq(e, t.from))), t.to > t.from ? n.push(yq(e, vq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(yq(e, vq(e, Math.min(t.from + 1, e.content.size)))), n;
39055
39099
  }
39056
- function xq({ doc: e, view: t, scrollContainer: n }) {
39057
- let r = t.dom.getBoundingClientRect(), i = n ? bq(n) : {
39058
- top: 0,
39059
- bottom: window.innerHeight
39060
- }, a = Math.max(r.top, i.top) - mq, o = Math.min(r.bottom, i.bottom) + mq;
39061
- if (a >= o) return {
39062
- top: 0,
39063
- bottom: e.content.size
39064
- };
39065
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
39066
- left: s,
39067
- top: a + 2
39068
- }), l = t.posAtCoords({
39069
- left: s,
39070
- top: o - 2
39071
- });
39072
- return {
39073
- top: c ? c.pos : 0,
39074
- bottom: l ? l.pos : e.content.size
39075
- };
39100
+ function Cq(e, t, n) {
39101
+ let r = [];
39102
+ if (e.docChanged) {
39103
+ let t = Vp(e);
39104
+ for (let e of t) r.push(...Sq(n.doc, e.newRange));
39105
+ }
39106
+ return e.selectionSet && (r.push(yq(n.doc, vq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(yq(n.doc, vq(n.doc, n.selection.anchor)))), xq(r);
39076
39107
  }
39077
- var Sq = {
39078
- init() {
39079
- return {
39080
- topPos: null,
39081
- bottomPos: null
39082
- };
39083
- },
39084
- apply(e, t) {
39085
- let n = e.getMeta(pq);
39086
- return n?.positions ? {
39087
- topPos: n.positions.top,
39088
- bottomPos: n.positions.bottom
39089
- } : e.docChanged ? {
39090
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
39091
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
39092
- } : t;
39108
+ function wq(e, t, n) {
39109
+ let r = Math.max(0, Math.min(e, n.content.size));
39110
+ return {
39111
+ from: r,
39112
+ to: Math.max(r, Math.min(t, n.content.size))
39113
+ };
39114
+ }
39115
+ function Tq({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
39116
+ let s = e;
39117
+ for (let e of t) {
39118
+ let { from: t, to: c } = wq(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
39119
+ l.length && (s = s.remove(l));
39120
+ let u = gq({
39121
+ editor: n,
39122
+ options: r,
39123
+ dataAttribute: i,
39124
+ doc: a,
39125
+ selection: o,
39126
+ from: t,
39127
+ to: c
39128
+ });
39129
+ u.length && (s = s.add(a, u));
39093
39130
  }
39094
- };
39095
- function Cq(e) {
39096
- let t = yq(e.dom), n = () => {
39097
- let n = xq({
39098
- view: e,
39099
- doc: e.state.doc,
39100
- scrollContainer: t
39101
- }), r = pq.getState(e.state);
39102
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
39103
- let i = e.state.tr.setMeta(pq, { positions: n });
39104
- e.dispatch(i);
39105
- }, r = null, i = 0, a = () => {
39106
- r === null && (r = requestAnimationFrame(() => {
39107
- r = null;
39108
- let e = performance.now();
39109
- e - i >= 150 ? (i = e, n()) : a();
39110
- }));
39111
- };
39112
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
39113
- update(t, n) {
39114
- e.state.doc.content.size !== n.doc.content.size && a();
39131
+ return s;
39132
+ }
39133
+ function Eq({ editor: e, options: t, dataAttribute: n }) {
39134
+ return {
39135
+ init(r, i) {
39136
+ return _q({
39137
+ editor: e,
39138
+ options: t,
39139
+ dataAttribute: n,
39140
+ doc: i.doc,
39141
+ selection: i.selection
39142
+ }) ?? Yu.empty;
39115
39143
  },
39116
- destroy: () => {
39117
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39144
+ apply(r, i, a, o) {
39145
+ return !r.docChanged && !r.selectionSet ? i : Tq({
39146
+ decorations: i.map(r.mapping, r.doc),
39147
+ ranges: Cq(r, a, o),
39148
+ editor: e,
39149
+ options: t,
39150
+ dataAttribute: n,
39151
+ doc: o.doc,
39152
+ selection: o.selection
39153
+ });
39118
39154
  }
39119
39155
  };
39120
39156
  }
39121
- function wq({ editor: e, options: t }) {
39122
- let n = t.dataAttribute ? `data-${_q(t.dataAttribute)}` : `data-${fq}`;
39157
+ function Dq(e) {
39158
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39159
+ }
39160
+ function Oq({ editor: e, options: t }) {
39161
+ let n = t.dataAttribute ? `data-${Dq(t.dataAttribute)}` : `data-${fq}`, r = t.showOnlyCurrent && !t.includeChildren;
39123
39162
  return new z({
39124
39163
  key: pq,
39125
- state: Sq,
39126
- view: Cq,
39127
- props: { decorations: ({ doc: r, selection: i }) => gq({
39164
+ ...r ? {} : { state: Eq({
39165
+ editor: e,
39166
+ options: t,
39167
+ dataAttribute: n
39168
+ }) },
39169
+ props: { decorations: r ? ({ doc: r, selection: i }) => _q({
39128
39170
  editor: e,
39129
39171
  options: t,
39130
39172
  dataAttribute: n,
39131
39173
  doc: r,
39132
39174
  selection: i
39133
- }) }
39175
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? Yu.empty : pq.getState(n) ?? Yu.empty }
39134
39176
  });
39135
39177
  }
39136
- var Tq = Wm.create({
39178
+ var kq = Wm.create({
39137
39179
  name: "placeholder",
39138
39180
  addOptions() {
39139
39181
  return {
@@ -39147,12 +39189,25 @@ var Tq = Wm.create({
39147
39189
  };
39148
39190
  },
39149
39191
  addProseMirrorPlugins() {
39150
- return [wq({
39192
+ return [Oq({
39151
39193
  editor: this.editor,
39152
39194
  options: this.options
39153
39195
  })];
39154
39196
  }
39155
39197
  });
39198
+ function Aq(e, t) {
39199
+ return !e.selection.empty && !$p(e.selection) && t.isEditable;
39200
+ }
39201
+ function jq(e, t) {
39202
+ return Aq(e, t) && !t.isFocused && !t.view.dragging;
39203
+ }
39204
+ function Mq() {
39205
+ var e;
39206
+ (e = window.getSelection()) == null || e.removeAllRanges();
39207
+ }
39208
+ function Nq(e) {
39209
+ e.focus();
39210
+ }
39156
39211
  Wm.create({
39157
39212
  name: "selection",
39158
39213
  addOptions() {
@@ -39162,13 +39217,25 @@ Wm.create({
39162
39217
  let { editor: e, options: t } = this;
39163
39218
  return [new z({
39164
39219
  key: new Yi("selection"),
39165
- props: { decorations(n) {
39166
- return n.selection.empty || e.isFocused || !e.isEditable || $p(n.selection) || e.view.dragging ? null : Yu.create(n.doc, [Ku.inline(n.selection.from, n.selection.to, { class: t.className })]);
39167
- } }
39220
+ props: {
39221
+ decorations(n) {
39222
+ return jq(n, e) ? Yu.create(n.doc, [Ku.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39223
+ },
39224
+ handleDOMEvents: {
39225
+ blur(t) {
39226
+ return Aq(t.state, e) && Mq(), !1;
39227
+ },
39228
+ focus(t) {
39229
+ return Aq(t.state, e) && requestAnimationFrame(() => {
39230
+ !e.isDestroyed && t.hasFocus() && Nq(t);
39231
+ }), !1;
39232
+ }
39233
+ }
39234
+ }
39168
39235
  })];
39169
39236
  }
39170
39237
  });
39171
- function Eq({ types: e, node: t }) {
39238
+ function Pq({ types: e, node: t }) {
39172
39239
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39173
39240
  }
39174
39241
  Wm.create({
@@ -39190,7 +39257,7 @@ Wm.create({
39190
39257
  state: {
39191
39258
  init: (e, t) => {
39192
39259
  let r = t.tr.doc.lastChild;
39193
- return !Eq({
39260
+ return !Pq({
39194
39261
  node: r,
39195
39262
  types: n
39196
39263
  });
@@ -39198,7 +39265,7 @@ Wm.create({
39198
39265
  apply: (e, t) => {
39199
39266
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39200
39267
  let r = e.doc.lastChild;
39201
- return !Eq({
39268
+ return !Pq({
39202
39269
  node: r,
39203
39270
  types: n
39204
39271
  });
@@ -39233,7 +39300,7 @@ Wm.create({
39233
39300
  };
39234
39301
  }
39235
39302
  });
39236
- var Dq = Im.create({
39303
+ var Fq = Im.create({
39237
39304
  name: "superscript",
39238
39305
  addOptions() {
39239
39306
  return { HTMLAttributes: {} };
@@ -39263,7 +39330,7 @@ var Dq = Im.create({
39263
39330
  addKeyboardShortcuts() {
39264
39331
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
39265
39332
  }
39266
- }), Oq = Im.create({
39333
+ }), Iq = Im.create({
39267
39334
  name: "subscript",
39268
39335
  addOptions() {
39269
39336
  return { HTMLAttributes: {} };
@@ -39293,7 +39360,7 @@ var Dq = Im.create({
39293
39360
  addKeyboardShortcuts() {
39294
39361
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
39295
39362
  }
39296
- }), kq = Wm.create({
39363
+ }), Lq = Wm.create({
39297
39364
  name: "textAlign",
39298
39365
  addOptions() {
39299
39366
  return {
@@ -39335,7 +39402,7 @@ var Dq = Im.create({
39335
39402
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
39336
39403
  };
39337
39404
  }
39338
- }), Aq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, jq = bh.create({
39405
+ }), Rq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, zq = bh.create({
39339
39406
  name: "image",
39340
39407
  addOptions() {
39341
39408
  return {
@@ -39378,34 +39445,55 @@ var Dq = Im.create({
39378
39445
  },
39379
39446
  addNodeView() {
39380
39447
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
39381
- let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize;
39382
- return ({ node: i, getPos: a, HTMLAttributes: o, editor: s }) => {
39383
- let c = document.createElement("img");
39384
- Object.entries(o).forEach(([e, t]) => {
39448
+ let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
39449
+ "src",
39450
+ "width",
39451
+ "height"
39452
+ ]);
39453
+ return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
39454
+ let l = document.createElement("img");
39455
+ l.draggable = !1;
39456
+ let u = wp(this.options.HTMLAttributes, s);
39457
+ Object.entries(u).forEach(([e, t]) => {
39385
39458
  if (t != null) switch (e) {
39459
+ case "src":
39386
39460
  case "width":
39387
39461
  case "height": break;
39388
- default:
39389
- c.setAttribute(e, t);
39390
- break;
39462
+ default: l.setAttribute(e, t);
39391
39463
  }
39392
- }), c.src = o.src;
39393
- let l = new lh({
39394
- element: c,
39395
- editor: s,
39396
- node: i,
39397
- getPos: a,
39464
+ }), u.src !== null && (l.src = u.src);
39465
+ let d = { ...s }, f = (e) => {
39466
+ if (typeof e == "string" && e !== "") {
39467
+ l.getAttribute("src") !== e && (l.src = e);
39468
+ return;
39469
+ }
39470
+ l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
39471
+ };
39472
+ f(s.src);
39473
+ let p = new lh({
39474
+ element: l,
39475
+ editor: c,
39476
+ node: a,
39477
+ getPos: o,
39398
39478
  onResize: (e, t) => {
39399
- c.style.width = `${e}px`, c.style.height = `${t}px`;
39479
+ l.style.width = `${e}px`, l.style.height = `${t}px`;
39400
39480
  },
39401
39481
  onCommit: (e, t) => {
39402
- let n = a();
39482
+ let n = o();
39403
39483
  n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
39404
39484
  width: e,
39405
39485
  height: t
39406
39486
  }).run();
39407
39487
  },
39408
- onUpdate: (e, t, n) => e.type === i.type,
39488
+ onUpdate: (e) => {
39489
+ if (e.type !== a.type) return !1;
39490
+ let t = Tp(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
39491
+ return Object.keys(d).forEach((e) => {
39492
+ !i.has(e) && !(e in t) && l.removeAttribute(e);
39493
+ }), Object.entries(t).forEach(([e, t]) => {
39494
+ i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
39495
+ }), f(t.src), d = t, !0;
39496
+ },
39409
39497
  options: {
39410
39498
  directions: e,
39411
39499
  min: {
@@ -39414,10 +39502,10 @@ var Dq = Im.create({
39414
39502
  },
39415
39503
  preserveAspectRatio: r === !0
39416
39504
  }
39417
- }), u = l.dom;
39418
- return u.style.visibility = "hidden", u.style.pointerEvents = "none", c.onload = () => {
39419
- u.style.visibility = "", u.style.pointerEvents = "";
39420
- }, l;
39505
+ }), m = p.dom, h = () => {
39506
+ m.style.visibility = "", m.style.pointerEvents = "";
39507
+ };
39508
+ return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
39421
39509
  };
39422
39510
  },
39423
39511
  addCommands() {
@@ -39428,7 +39516,7 @@ var Dq = Im.create({
39428
39516
  },
39429
39517
  addInputRules() {
39430
39518
  return [oh({
39431
- find: Aq,
39519
+ find: Rq,
39432
39520
  type: this.type,
39433
39521
  getAttributes: (e) => {
39434
39522
  let [, , t, n, r] = e;
@@ -39440,17 +39528,17 @@ var Dq = Im.create({
39440
39528
  }
39441
39529
  })];
39442
39530
  }
39443
- }), Mq = Tq, Nq = {
39531
+ }), Bq = kq, Vq = {
39444
39532
  position: "bottom",
39445
39533
  alignment: "left",
39446
39534
  alwaysVisible: !1,
39447
39535
  showDone: !0,
39448
39536
  doneOn: "blur"
39449
- }, Pq = {
39537
+ }, Hq = {
39450
39538
  options: {},
39451
39539
  respAreaToolbar: () => {},
39452
39540
  onHandleAreaChange: () => {}
39453
- }, Fq = [
39541
+ }, Uq = [
39454
39542
  "bold",
39455
39543
  "italic",
39456
39544
  "underline",
@@ -39472,7 +39560,7 @@ var Dq = Im.create({
39472
39560
  "h3",
39473
39561
  "undo",
39474
39562
  "redo"
39475
- ], Iq = {
39563
+ ], Wq = {
39476
39564
  "--white": "#fff",
39477
39565
  "--black": "#2e2b29",
39478
39566
  "--black-contrast": "#110f0e",
@@ -39491,14 +39579,18 @@ var Dq = Im.create({
39491
39579
  "--red": "#ff5c33",
39492
39580
  "--red-light": "#ffebe5",
39493
39581
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
39494
- }, Lq = (e) => {
39582
+ }, Gq = (e) => ({
39583
+ spellcheck: e ? "true" : "false",
39584
+ autocorrect: e ? "on" : "off",
39585
+ autocapitalize: e ? "on" : "off"
39586
+ }), Kq = (e) => {
39495
39587
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = lt([]), [a, o] = lt(!1), { toolbarOpts: s } = e, c = nt((e) => {
39496
39588
  i((t) => {
39497
39589
  let n = t.filter((t) => t.pos !== e);
39498
39590
  return n.length === 0 && o(!1), n;
39499
39591
  });
39500
39592
  }, [i]), l = {
39501
- ...Nq,
39593
+ ...Vq,
39502
39594
  ...s
39503
39595
  }, u = nt((t) => {
39504
39596
  let n = t.getHTML();
@@ -39509,13 +39601,13 @@ var Dq = Im.create({
39509
39601
  e.onDone,
39510
39602
  l.doneOn
39511
39603
  ]), d = st(() => ({
39512
- ...Pq,
39604
+ ...Hq,
39513
39605
  ...e.responseAreaProps,
39514
39606
  onInlineDropdownToolbarClose: u
39515
39607
  }), [e.responseAreaProps, u]), f = st(() => {
39516
39608
  let { customPlugins: t, ...n } = e.pluginProps || {};
39517
39609
  t ||= [];
39518
- let r = (e.activePlugins || Fq)?.filter((e) => {
39610
+ let r = (e.activePlugins || Uq)?.filter((e) => {
39519
39611
  let t = zt[e] || e, r = n[t] || {};
39520
39612
  return !r || !r.disabled;
39521
39613
  });
@@ -39533,103 +39625,112 @@ var Dq = Im.create({
39533
39625
  setKeypadInteraction: {},
39534
39626
  media: {}
39535
39627
  });
39536
- }, [e, d.type]), p = MC({
39537
- extensions: [
39538
- kq.configure({
39539
- types: [
39540
- "heading",
39541
- "paragraph",
39542
- "div",
39543
- "headingParagraph",
39544
- "h1",
39545
- "h2",
39546
- "h3",
39547
- "h4",
39548
- "h5",
39549
- "h6",
39550
- "td",
39551
- "th"
39552
- ],
39553
- alignments: [
39554
- "left",
39555
- "right",
39556
- "center",
39557
- "justify"
39558
- ]
39559
- }),
39560
- uq,
39561
- dq.configure({ limit: e.charactersLimit || 1e6 }),
39562
- eq.configure({ trailingNode: {
39628
+ }, [e, d.type]), p = [
39629
+ Lq.configure({
39630
+ types: [
39631
+ "heading",
39632
+ "paragraph",
39633
+ "div",
39634
+ "headingParagraph",
39635
+ "h1",
39636
+ "h2",
39637
+ "h3",
39638
+ "h4",
39639
+ "h5",
39640
+ "h6",
39641
+ "td",
39642
+ "th"
39643
+ ],
39644
+ alignments: [
39645
+ "left",
39646
+ "right",
39647
+ "center",
39648
+ "justify"
39649
+ ]
39650
+ }),
39651
+ uq,
39652
+ dq.configure({ limit: e.charactersLimit || 1e6 }),
39653
+ eq.configure({
39654
+ trailingNode: {
39563
39655
  node: "paragraph",
39564
39656
  notAfter: ["paragraph", "div"]
39565
- } }),
39566
- nI,
39567
- Qx,
39568
- rI,
39569
- $x,
39570
- eS,
39571
- Mq.configure({
39572
- placeholder: e.placeholder,
39573
- showOnlyWhenEditable: !0,
39574
- showOnlyCurrent: !1,
39575
- includeChildren: !0
39576
- }),
39577
- Jx,
39578
- Mx,
39579
- Zx,
39580
- Xx,
39581
- jA.configure(d),
39582
- MA.configure(d),
39583
- PA.configure(d),
39584
- FA.configure(d),
39585
- NA.configure(d),
39586
- UM.configure({
39587
- toolbarOpts: l,
39588
- math: e.pluginProps?.math || {}
39589
- }),
39590
- Oq,
39591
- Dq,
39592
- jq,
39593
- tP.configure({
39594
- toolbarOpts: l,
39595
- imageHandling: {
39596
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39597
- onDone: (t) => e.onDone?.(t.getHTML()),
39598
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39599
- let { src: n } = t.attrs;
39600
- e.imageSupport.delete(n, (e) => {
39601
- c(t.pos);
39602
- });
39603
- }),
39604
- insertImageRequested: e.imageSupport && ((t, n, r) => {
39605
- let [o, s] = n, l = (n) => {
39606
- let r;
39607
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39608
- };
39609
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
39610
- let n = r(l), i = wt(() => {
39611
- let e = () => window.removeEventListener("focus", i);
39612
- if (!t._insertingImage) {
39613
- e();
39614
- return;
39615
- }
39616
- c(s), t._insertingImage = !1, e();
39617
- }, 500);
39618
- window.addEventListener("focus", i), e.imageSupport.add(n);
39619
- })();
39620
- }),
39621
- maxImageWidth: e.maxImageWidth,
39622
- maxImageHeight: e.maxImageHeight
39623
- },
39624
- limit: 3
39625
- }),
39626
- iF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39627
- xF.configure({ extraCSSRules: e.extraCSSRules })
39628
- ],
39657
+ },
39658
+ link: {
39659
+ autolink: !1,
39660
+ linkOnPaste: !1
39661
+ }
39662
+ }),
39663
+ nI,
39664
+ Qx,
39665
+ rI,
39666
+ $x,
39667
+ eS,
39668
+ Bq.configure({
39669
+ placeholder: e.placeholder,
39670
+ showOnlyWhenEditable: !0,
39671
+ showOnlyCurrent: !1,
39672
+ includeChildren: !0
39673
+ }),
39674
+ Jx,
39675
+ Mx,
39676
+ Zx,
39677
+ Xx,
39678
+ jA.configure(d),
39679
+ MA.configure(d),
39680
+ PA.configure(d),
39681
+ FA.configure(d),
39682
+ NA.configure(d),
39683
+ UM.configure({
39684
+ toolbarOpts: l,
39685
+ math: e.pluginProps?.math || {}
39686
+ }),
39687
+ Iq,
39688
+ Fq,
39689
+ zq,
39690
+ tP.configure({
39691
+ toolbarOpts: l,
39692
+ imageHandling: {
39693
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39694
+ onDone: (t) => e.onDone?.(t.getHTML()),
39695
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39696
+ let { src: n } = t.attrs;
39697
+ e.imageSupport.delete(n, (e) => {
39698
+ c(t.pos);
39699
+ });
39700
+ }),
39701
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39702
+ let [o, s] = n, l = (n) => {
39703
+ let r;
39704
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39705
+ };
39706
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39707
+ let n = r(l), i = wt(() => {
39708
+ let e = () => window.removeEventListener("focus", i);
39709
+ if (!t._insertingImage) {
39710
+ e();
39711
+ return;
39712
+ }
39713
+ c(s), t._insertingImage = !1, e();
39714
+ }, 500);
39715
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39716
+ })();
39717
+ }),
39718
+ maxImageWidth: e.maxImageWidth,
39719
+ maxImageHeight: e.maxImageHeight
39720
+ },
39721
+ limit: 3
39722
+ }),
39723
+ iF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39724
+ xF.configure({ extraCSSRules: e.extraCSSRules })
39725
+ ], m = e.spellCheck !== !1, h = MC({
39726
+ extensions: p,
39629
39727
  immediatelyRender: !1,
39630
- editorProps: { handleKeyDown(t, n) {
39631
- return e.onKeyDown ? e.onKeyDown(n) : !1;
39632
- } },
39728
+ editorProps: {
39729
+ attributes: Gq(m),
39730
+ handleKeyDown(t, n) {
39731
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39732
+ }
39733
+ },
39633
39734
  editable: !e.disabled,
39634
39735
  content: Wt(e.markup),
39635
39736
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -39640,22 +39741,29 @@ var Dq = Im.create({
39640
39741
  }
39641
39742
  }, [e.charactersLimit]);
39642
39743
  at(() => {
39643
- e.editorRef && e.editorRef(p);
39644
- }, [e.editorRef, p]), at(() => {
39645
- p?.setEditable(!e.disabled);
39646
- }, [e.disabled, p]), at(() => {
39647
- if (!p) return;
39744
+ e.editorRef && e.editorRef(h);
39745
+ }, [e.editorRef, h]), at(() => {
39746
+ h?.setEditable(!e.disabled);
39747
+ }, [e.disabled, h]), at(() => {
39748
+ if (!h) return;
39749
+ let e = h.options?.editorProps, t = Gq(m);
39750
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39751
+ ...e,
39752
+ attributes: t
39753
+ } });
39754
+ }, [m, h]), at(() => {
39755
+ if (!h) return;
39648
39756
  let t = Wt(e.markup);
39649
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
39650
- }, [e.markup, p]), at(() => {
39651
- Object.entries(Iq).forEach(([e, t]) => {
39757
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39758
+ }, [e.markup, h]), at(() => {
39759
+ Object.entries(Wq).forEach(([e, t]) => {
39652
39760
  document.documentElement.style.setProperty(e, t);
39653
39761
  });
39654
39762
  }, []);
39655
- let m = OC({
39656
- editor: p,
39763
+ let g = OC({
39764
+ editor: h,
39657
39765
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39658
- }), h = st(() => {
39766
+ }), _ = st(() => {
39659
39767
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39660
39768
  return {
39661
39769
  width: iI(n),
@@ -39670,20 +39778,20 @@ var Dq = Im.create({
39670
39778
  ...e,
39671
39779
  activePlugins: f,
39672
39780
  toolbarOpts: l,
39673
- editorState: m,
39674
- editor: p,
39675
- children: p && /* @__PURE__ */ M(Rq, {
39781
+ editorState: g,
39782
+ editor: h,
39783
+ children: h && /* @__PURE__ */ M(qq, {
39676
39784
  style: {
39677
- minHeight: h.minHeight,
39678
- height: h.height,
39679
- maxHeight: h.maxHeight
39785
+ minHeight: _.minHeight,
39786
+ height: _.height,
39787
+ maxHeight: _.maxHeight
39680
39788
  },
39681
39789
  showParagraph: t && !t.disabled,
39682
39790
  separateParagraph: n && !n.disabled,
39683
- editor: p
39791
+ editor: h
39684
39792
  })
39685
39793
  });
39686
- }, Rq = k(TC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39794
+ }, qq = k(TC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39687
39795
  display: "flex",
39688
39796
  outline: "none !important",
39689
39797
  "& .ProseMirror": {
@@ -39711,10 +39819,10 @@ var Dq = Im.create({
39711
39819
  } },
39712
39820
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39713
39821
  }
39714
- })), zq = Lq;
39822
+ })), Jq = Kq;
39715
39823
  //#endregion
39716
39824
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/formGroupClasses.js
39717
- function Bq(e) {
39825
+ function Yq(e) {
39718
39826
  return D("MuiFormGroup", e);
39719
39827
  }
39720
39828
  O("MuiFormGroup", [
@@ -39724,14 +39832,14 @@ O("MuiFormGroup", [
39724
39832
  ]);
39725
39833
  //#endregion
39726
39834
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormGroup/FormGroup.js
39727
- var Vq = (e) => {
39835
+ var Xq = (e) => {
39728
39836
  let { classes: t, row: n, error: r } = e;
39729
39837
  return he({ root: [
39730
39838
  "root",
39731
39839
  n && "row",
39732
39840
  r && "error"
39733
- ] }, Bq, t);
39734
- }, Hq = k("div", {
39841
+ ] }, Yq, t);
39842
+ }, Zq = k("div", {
39735
39843
  name: "MuiFormGroup",
39736
39844
  slot: "Root",
39737
39845
  overridesResolver: (e, t) => {
@@ -39746,7 +39854,7 @@ var Vq = (e) => {
39746
39854
  props: { row: !0 },
39747
39855
  style: { flexDirection: "row" }
39748
39856
  }]
39749
- }), Uq = /*#__PURE__*/ j.forwardRef(function(e, t) {
39857
+ }), Qq = /*#__PURE__*/ j.forwardRef(function(e, t) {
39750
39858
  let n = Ie({
39751
39859
  props: e,
39752
39860
  name: "MuiFormGroup"
@@ -39759,8 +39867,8 @@ var Vq = (e) => {
39759
39867
  row: i,
39760
39868
  error: o.error
39761
39869
  };
39762
- return /*#__PURE__*/ M(Hq, {
39763
- className: Ue(Vq(s).root, r),
39870
+ return /*#__PURE__*/ M(Zq, {
39871
+ className: Ue(Xq(s).root, r),
39764
39872
  ownerState: s,
39765
39873
  ref: t,
39766
39874
  ...a
@@ -39768,7 +39876,7 @@ var Vq = (e) => {
39768
39876
  });
39769
39877
  //#endregion
39770
39878
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/radioGroupClasses.js
39771
- function Wq(e) {
39879
+ function $q(e) {
39772
39880
  return D("MuiRadioGroup", e);
39773
39881
  }
39774
39882
  O("MuiRadioGroup", [
@@ -39778,15 +39886,15 @@ O("MuiRadioGroup", [
39778
39886
  ]);
39779
39887
  //#endregion
39780
39888
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroup.js
39781
- var Gq = (e) => {
39889
+ var eJ = (e) => {
39782
39890
  let { classes: t, row: n, error: r } = e;
39783
39891
  return he({ root: [
39784
39892
  "root",
39785
39893
  n && "row",
39786
39894
  r && "error"
39787
- ] }, Wq, t);
39788
- }, Kq = /*#__PURE__*/ j.forwardRef(function(e, t) {
39789
- let { actions: n, children: r, className: i, defaultValue: a, name: o, onChange: s, value: c, ...l } = e, u = j.useRef(null), d = Gq(e), [f, m] = g({
39895
+ ] }, $q, t);
39896
+ }, tJ = /*#__PURE__*/ j.forwardRef(function(e, t) {
39897
+ let { actions: n, children: r, className: i, defaultValue: a, name: o, onChange: s, value: c, ...l } = e, u = j.useRef(null), d = eJ(e), [f, m] = g({
39790
39898
  controlled: c,
39791
39899
  default: a,
39792
39900
  name: "RadioGroup"
@@ -39809,7 +39917,7 @@ var Gq = (e) => {
39809
39917
  ]);
39810
39918
  return /*#__PURE__*/ M(Oe.Provider, {
39811
39919
  value: y,
39812
- children: /*#__PURE__*/ M(Uq, {
39920
+ children: /*#__PURE__*/ M(Qq, {
39813
39921
  role: "radiogroup",
39814
39922
  ref: h,
39815
39923
  className: Ue(d.root, i),
@@ -39817,13 +39925,13 @@ var Gq = (e) => {
39817
39925
  children: r
39818
39926
  })
39819
39927
  });
39820
- }), qq = f(/*#__PURE__*/ M("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"), Jq = f(/*#__PURE__*/ M("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"), Yq = f(/*#__PURE__*/ M("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");
39928
+ }), nJ = f(/*#__PURE__*/ M("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"), rJ = f(/*#__PURE__*/ M("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"), iJ = f(/*#__PURE__*/ M("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");
39821
39929
  //#endregion
39822
39930
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
39823
- function Xq(e) {
39931
+ function aJ(e) {
39824
39932
  return D("MuiCheckbox", e);
39825
39933
  }
39826
- var Zq = O("MuiCheckbox", [
39934
+ var oJ = O("MuiCheckbox", [
39827
39935
  "root",
39828
39936
  "checked",
39829
39937
  "disabled",
@@ -39832,18 +39940,18 @@ var Zq = O("MuiCheckbox", [
39832
39940
  "colorSecondary",
39833
39941
  "sizeSmall",
39834
39942
  "sizeMedium"
39835
- ]), Qq = (e) => {
39943
+ ]), sJ = (e) => {
39836
39944
  let { classes: t, indeterminate: n, color: r, size: i } = e, a = he({ root: [
39837
39945
  "root",
39838
39946
  n && "indeterminate",
39839
39947
  `color${h(r)}`,
39840
39948
  `size${h(i)}`
39841
- ] }, Xq, t);
39949
+ ] }, aJ, t);
39842
39950
  return {
39843
39951
  ...t,
39844
39952
  ...a
39845
39953
  };
39846
- }, $q = k(Fe, {
39954
+ }, cJ = k(Fe, {
39847
39955
  shouldForwardProp: (e) => de(e) || e === "classes",
39848
39956
  name: "MuiCheckbox",
39849
39957
  slot: "Root",
@@ -39876,8 +39984,8 @@ var Zq = O("MuiCheckbox", [
39876
39984
  ...Object.entries(e.palette).filter(r()).map(([t]) => ({
39877
39985
  props: { color: t },
39878
39986
  style: {
39879
- [`&.${Zq.checked}, &.${Zq.indeterminate}`]: { color: (e.vars || e).palette[t].main },
39880
- [`&.${Zq.disabled}`]: { color: (e.vars || e).palette.action.disabled }
39987
+ [`&.${oJ.checked}, &.${oJ.indeterminate}`]: { color: (e.vars || e).palette[t].main },
39988
+ [`&.${oJ.disabled}`]: { color: (e.vars || e).palette.action.disabled }
39881
39989
  }
39882
39990
  })),
39883
39991
  {
@@ -39885,19 +39993,19 @@ var Zq = O("MuiCheckbox", [
39885
39993
  style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
39886
39994
  }
39887
39995
  ]
39888
- }))), eJ = /*#__PURE__*/ M(Jq, {}), tJ = /*#__PURE__*/ M(qq, {}), nJ = /*#__PURE__*/ M(Yq, {}), rJ = /*#__PURE__*/ j.forwardRef(function(e, n) {
39996
+ }))), lJ = /*#__PURE__*/ M(rJ, {}), uJ = /*#__PURE__*/ M(nJ, {}), dJ = /*#__PURE__*/ M(iJ, {}), fJ = /*#__PURE__*/ j.forwardRef(function(e, n) {
39889
39997
  let r = Ie({
39890
39998
  props: e,
39891
39999
  name: "MuiCheckbox"
39892
- }), { checkedIcon: i = eJ, color: a = "primary", icon: o = tJ, indeterminate: s = !1, indeterminateIcon: c = nJ, inputProps: l, size: u = "medium", disableRipple: d = !1, className: f, slots: p = {}, slotProps: m = {}, ...h } = r, g = s ? c : o, _ = s ? c : i, v = {
40000
+ }), { checkedIcon: i = lJ, color: a = "primary", icon: o = uJ, indeterminate: s = !1, indeterminateIcon: c = dJ, inputProps: l, size: u = "medium", disableRipple: d = !1, className: f, slots: p = {}, slotProps: m = {}, ...h } = r, g = s ? c : o, _ = s ? c : i, v = {
39893
40001
  ...r,
39894
40002
  disableRipple: d,
39895
40003
  color: a,
39896
40004
  indeterminate: s,
39897
40005
  size: u
39898
- }, y = Qq(v), b = m.input ?? l, [x, S] = T("root", {
40006
+ }, y = sJ(v), b = m.input ?? l, [x, S] = T("root", {
39899
40007
  ref: n,
39900
- elementType: $q,
40008
+ elementType: cJ,
39901
40009
  className: Ue(y.root, f),
39902
40010
  shouldForwardComponentProp: !0,
39903
40011
  externalForwardedProps: {
@@ -39925,10 +40033,10 @@ var Zq = O("MuiCheckbox", [
39925
40033
  });
39926
40034
  //#endregion
39927
40035
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
39928
- function iJ(e) {
40036
+ function pJ(e) {
39929
40037
  return D("MuiInputAdornment", e);
39930
40038
  }
39931
- var aJ = O("MuiInputAdornment", [
40039
+ var mJ = O("MuiInputAdornment", [
39932
40040
  "root",
39933
40041
  "filled",
39934
40042
  "standard",
@@ -39938,7 +40046,7 @@ var aJ = O("MuiInputAdornment", [
39938
40046
  "disablePointerEvents",
39939
40047
  "hiddenLabel",
39940
40048
  "sizeSmall"
39941
- ]), oJ, sJ = (e, t) => {
40049
+ ]), hJ, gJ = (e, t) => {
39942
40050
  let { ownerState: n } = e;
39943
40051
  return [
39944
40052
  t.root,
@@ -39946,7 +40054,7 @@ var aJ = O("MuiInputAdornment", [
39946
40054
  n.disablePointerEvents === !0 && t.disablePointerEvents,
39947
40055
  t[n.variant]
39948
40056
  ];
39949
- }, cJ = (e) => {
40057
+ }, _J = (e) => {
39950
40058
  let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
39951
40059
  return he({ root: [
39952
40060
  "root",
@@ -39955,11 +40063,11 @@ var aJ = O("MuiInputAdornment", [
39955
40063
  o,
39956
40064
  r && "hiddenLabel",
39957
40065
  a && `size${h(a)}`
39958
- ] }, iJ, t);
39959
- }, lJ = k("div", {
40066
+ ] }, pJ, t);
40067
+ }, vJ = k("div", {
39960
40068
  name: "MuiInputAdornment",
39961
40069
  slot: "Root",
39962
- overridesResolver: sJ
40070
+ overridesResolver: gJ
39963
40071
  })(E(({ theme: e }) => ({
39964
40072
  display: "flex",
39965
40073
  maxHeight: "2em",
@@ -39969,7 +40077,7 @@ var aJ = O("MuiInputAdornment", [
39969
40077
  variants: [
39970
40078
  {
39971
40079
  props: { variant: "filled" },
39972
- style: { [`&.${aJ.positionStart}&:not(.${aJ.hiddenLabel})`]: { marginTop: 16 } }
40080
+ style: { [`&.${mJ.positionStart}&:not(.${mJ.hiddenLabel})`]: { marginTop: 16 } }
39973
40081
  },
39974
40082
  {
39975
40083
  props: { position: "start" },
@@ -39984,7 +40092,7 @@ var aJ = O("MuiInputAdornment", [
39984
40092
  style: { pointerEvents: "none" }
39985
40093
  }
39986
40094
  ]
39987
- }))), uJ = /*#__PURE__*/ j.forwardRef(function(e, t) {
40095
+ }))), yJ = /*#__PURE__*/ j.forwardRef(function(e, t) {
39988
40096
  let n = Ie({
39989
40097
  props: e,
39990
40098
  name: "MuiInputAdornment"
@@ -39997,10 +40105,10 @@ var aJ = O("MuiInputAdornment", [
39997
40105
  disablePointerEvents: o,
39998
40106
  position: c,
39999
40107
  variant: f
40000
- }, m = cJ(p);
40108
+ }, m = _J(p);
40001
40109
  return /*#__PURE__*/ M(ae.Provider, {
40002
40110
  value: null,
40003
- children: /*#__PURE__*/ M(lJ, {
40111
+ children: /*#__PURE__*/ M(vJ, {
40004
40112
  as: a,
40005
40113
  ownerState: p,
40006
40114
  className: Ue(m.root, i),
@@ -40009,7 +40117,7 @@ var aJ = O("MuiInputAdornment", [
40009
40117
  children: typeof r == "string" && !s ? /*#__PURE__*/ M(oe, {
40010
40118
  color: "textSecondary",
40011
40119
  children: r
40012
- }) : /*#__PURE__*/ N(j.Fragment, { children: [c === "start" ? oJ ||= /*#__PURE__*/ M("span", {
40120
+ }) : /*#__PURE__*/ N(j.Fragment, { children: [c === "start" ? hJ ||= /*#__PURE__*/ M("span", {
40013
40121
  className: "notranslate",
40014
40122
  "aria-hidden": !0,
40015
40123
  children: "​"
@@ -40019,10 +40127,10 @@ var aJ = O("MuiInputAdornment", [
40019
40127
  });
40020
40128
  //#endregion
40021
40129
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
40022
- function dJ(e) {
40130
+ function bJ(e) {
40023
40131
  return D("MuiSwitch", e);
40024
40132
  }
40025
- var fJ = O("MuiSwitch", [
40133
+ var xJ = O("MuiSwitch", [
40026
40134
  "root",
40027
40135
  "edgeStart",
40028
40136
  "edgeEnd",
@@ -40036,7 +40144,7 @@ var fJ = O("MuiSwitch", [
40036
40144
  "input",
40037
40145
  "thumb",
40038
40146
  "track"
40039
- ]), pJ = (e) => {
40147
+ ]), SJ = (e) => {
40040
40148
  let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = he({
40041
40149
  root: [
40042
40150
  "root",
@@ -40052,12 +40160,12 @@ var fJ = O("MuiSwitch", [
40052
40160
  thumb: ["thumb"],
40053
40161
  track: ["track"],
40054
40162
  input: ["input"]
40055
- }, dJ, t);
40163
+ }, bJ, t);
40056
40164
  return {
40057
40165
  ...t,
40058
40166
  ...s
40059
40167
  };
40060
- }, mJ = k("span", {
40168
+ }, CJ = k("span", {
40061
40169
  name: "MuiSwitch",
40062
40170
  slot: "Root",
40063
40171
  overridesResolver: (e, t) => {
@@ -40095,25 +40203,25 @@ var fJ = O("MuiSwitch", [
40095
40203
  width: 40,
40096
40204
  height: 24,
40097
40205
  padding: 7,
40098
- [`& .${fJ.thumb}`]: {
40206
+ [`& .${xJ.thumb}`]: {
40099
40207
  width: 16,
40100
40208
  height: 16
40101
40209
  },
40102
- [`& .${fJ.switchBase}`]: {
40210
+ [`& .${xJ.switchBase}`]: {
40103
40211
  padding: 4,
40104
- [`&.${fJ.checked}`]: { transform: "translateX(16px)" }
40212
+ [`&.${xJ.checked}`]: { transform: "translateX(16px)" }
40105
40213
  }
40106
40214
  }
40107
40215
  }
40108
40216
  ]
40109
- }), hJ = k(Fe, {
40217
+ }), wJ = k(Fe, {
40110
40218
  name: "MuiSwitch",
40111
40219
  slot: "SwitchBase",
40112
40220
  overridesResolver: (e, t) => {
40113
40221
  let { ownerState: n } = e;
40114
40222
  return [
40115
40223
  t.switchBase,
40116
- { [`& .${fJ.input}`]: t.input },
40224
+ { [`& .${xJ.input}`]: t.input },
40117
40225
  n.color !== "default" && t[`color${h(n.color)}`]
40118
40226
  ];
40119
40227
  }
@@ -40124,11 +40232,11 @@ var fJ = O("MuiSwitch", [
40124
40232
  zIndex: 1,
40125
40233
  color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
40126
40234
  transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
40127
- [`&.${fJ.checked}`]: { transform: "translateX(20px)" },
40128
- [`&.${fJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40129
- [`&.${fJ.checked} + .${fJ.track}`]: { opacity: .5 },
40130
- [`&.${fJ.disabled} + .${fJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40131
- [`& .${fJ.input}`]: {
40235
+ [`&.${xJ.checked}`]: { transform: "translateX(20px)" },
40236
+ [`&.${xJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40237
+ [`&.${xJ.checked} + .${xJ.track}`]: { opacity: .5 },
40238
+ [`&.${xJ.disabled} + .${xJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40239
+ [`& .${xJ.input}`]: {
40132
40240
  left: "-100%",
40133
40241
  width: "300%"
40134
40242
  }
@@ -40140,18 +40248,18 @@ var fJ = O("MuiSwitch", [
40140
40248
  variants: [...Object.entries(e.palette).filter(r(["light"])).map(([t]) => ({
40141
40249
  props: { color: t },
40142
40250
  style: {
40143
- [`&.${fJ.checked}`]: {
40251
+ [`&.${xJ.checked}`]: {
40144
40252
  color: (e.vars || e).palette[t].main,
40145
40253
  "&:hover": {
40146
40254
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
40147
40255
  "@media (hover: none)": { backgroundColor: "transparent" }
40148
40256
  },
40149
- [`&.${fJ.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)}` }
40257
+ [`&.${xJ.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)}` }
40150
40258
  },
40151
- [`&.${fJ.checked} + .${fJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40259
+ [`&.${xJ.checked} + .${xJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40152
40260
  }
40153
40261
  }))]
40154
- }))), gJ = k("span", {
40262
+ }))), TJ = k("span", {
40155
40263
  name: "MuiSwitch",
40156
40264
  slot: "Track"
40157
40265
  })(E(({ theme: e }) => ({
@@ -40164,7 +40272,7 @@ var fJ = O("MuiSwitch", [
40164
40272
  transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
40165
40273
  backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
40166
40274
  opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
40167
- }))), _J = k("span", {
40275
+ }))), EJ = k("span", {
40168
40276
  name: "MuiSwitch",
40169
40277
  slot: "Thumb"
40170
40278
  })(E(({ theme: e }) => ({
@@ -40175,7 +40283,7 @@ var fJ = O("MuiSwitch", [
40175
40283
  width: 20,
40176
40284
  height: 20,
40177
40285
  borderRadius: "50%"
40178
- }))), vJ = /*#__PURE__*/ j.forwardRef(function(e, n) {
40286
+ }))), DJ = /*#__PURE__*/ j.forwardRef(function(e, n) {
40179
40287
  let r = Ie({
40180
40288
  props: e,
40181
40289
  name: "MuiSwitch"
@@ -40184,29 +40292,29 @@ var fJ = O("MuiSwitch", [
40184
40292
  color: a,
40185
40293
  edge: o,
40186
40294
  size: s
40187
- }, p = pJ(f), m = u.input, h = {
40295
+ }, p = SJ(f), m = u.input, h = {
40188
40296
  slots: l,
40189
40297
  slotProps: u
40190
40298
  }, [g, _] = T("root", {
40191
40299
  className: Ue(p.root, i),
40192
- elementType: mJ,
40300
+ elementType: CJ,
40193
40301
  externalForwardedProps: h,
40194
40302
  ownerState: f,
40195
40303
  additionalProps: { sx: c }
40196
40304
  }), [v, y] = T("thumb", {
40197
40305
  className: p.thumb,
40198
- elementType: _J,
40306
+ elementType: EJ,
40199
40307
  externalForwardedProps: h,
40200
40308
  ownerState: f
40201
40309
  }), b = /*#__PURE__*/ M(v, { ...y }), [x, S] = T("track", {
40202
40310
  className: p.track,
40203
- elementType: gJ,
40311
+ elementType: TJ,
40204
40312
  externalForwardedProps: h,
40205
40313
  ownerState: f
40206
40314
  });
40207
40315
  return /*#__PURE__*/ N(g, {
40208
40316
  ..._,
40209
- children: [/*#__PURE__*/ M(hJ, {
40317
+ children: [/*#__PURE__*/ M(wJ, {
40210
40318
  type: "checkbox",
40211
40319
  icon: b,
40212
40320
  checkedIcon: b,
@@ -40227,18 +40335,18 @@ var fJ = O("MuiSwitch", [
40227
40335
  }
40228
40336
  }), /*#__PURE__*/ M(x, { ...S })]
40229
40337
  });
40230
- }), yJ = k(ye)(() => ({ "& .MuiFormControlLabel-label": {
40338
+ }), OJ = k(ye)(() => ({ "& .MuiFormControlLabel-label": {
40231
40339
  left: "-5px",
40232
40340
  position: "relative"
40233
- } })), bJ = k(Re)(() => ({ color: `${A.tertiary()} !important` })), xJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ M(yJ, {
40341
+ } })), kJ = k(Re)(() => ({ color: `${A.tertiary()} !important` })), AJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ M(OJ, {
40234
40342
  value: t,
40235
- control: /* @__PURE__ */ M(bJ, {
40343
+ control: /* @__PURE__ */ M(kJ, {
40236
40344
  checked: n,
40237
40345
  onChange: r
40238
40346
  }),
40239
40347
  label: e
40240
40348
  });
40241
- xJ.propTypes = {
40349
+ AJ.propTypes = {
40242
40350
  label: V.default.string,
40243
40351
  value: V.default.string,
40244
40352
  checked: V.default.bool,
@@ -40246,7 +40354,7 @@ xJ.propTypes = {
40246
40354
  };
40247
40355
  //#endregion
40248
40356
  //#region ../../lib-react/config-ui/dist/tabs/index.js
40249
- var SJ = k(AP)(() => ({})), CJ = class extends Ye.Component {
40357
+ var jJ = k(AP)(() => ({})), MJ = class extends Ye.Component {
40250
40358
  static propTypes = {
40251
40359
  className: V.default.string,
40252
40360
  contentClassName: V.default.string,
@@ -40267,7 +40375,7 @@ var SJ = k(AP)(() => ({})), CJ = class extends Ye.Component {
40267
40375
  indicatorColor: "primary",
40268
40376
  value: e,
40269
40377
  onChange: this.handleChange,
40270
- children: Ye.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ M(SJ, { label: e.props.title }, t) : null)
40378
+ children: Ye.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ M(jJ, { label: e.props.title }, t) : null)
40271
40379
  }), /* @__PURE__ */ M("div", {
40272
40380
  className: r,
40273
40381
  style: i,
@@ -40275,7 +40383,7 @@ var SJ = k(AP)(() => ({})), CJ = class extends Ye.Component {
40275
40383
  })]
40276
40384
  });
40277
40385
  }
40278
- }, wJ = k(ye)(({ theme: e, mini: t }) => ({
40386
+ }, NJ = k(ye)(({ theme: e, mini: t }) => ({
40279
40387
  margin: 0,
40280
40388
  marginLeft: 0,
40281
40389
  padding: 0,
@@ -40289,7 +40397,7 @@ var SJ = k(AP)(() => ({})), CJ = class extends Ye.Component {
40289
40397
  fontSize: e.typography.fontSize - 3
40290
40398
  }
40291
40399
  }
40292
- })), TJ = k(rJ)(({ theme: e, mini: t, error: n }) => ({
40400
+ })), PJ = k(fJ)(({ theme: e, mini: t, error: n }) => ({
40293
40401
  color: `${A.tertiary()} !important`,
40294
40402
  ...t && {
40295
40403
  margin: 0,
@@ -40298,9 +40406,9 @@ var SJ = k(AP)(() => ({})), CJ = class extends Ye.Component {
40298
40406
  height: e.spacing(3)
40299
40407
  },
40300
40408
  ...n && { color: `${e.palette.error.main} !important` }
40301
- })), EJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ M(wJ, {
40409
+ })), FJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ M(NJ, {
40302
40410
  mini: e,
40303
- control: /* @__PURE__ */ M(TJ, {
40411
+ control: /* @__PURE__ */ M(PJ, {
40304
40412
  checked: t,
40305
40413
  onChange: n,
40306
40414
  value: r,
@@ -40309,21 +40417,21 @@ var SJ = k(AP)(() => ({})), CJ = class extends Ye.Component {
40309
40417
  }),
40310
40418
  label: i
40311
40419
  });
40312
- EJ.propTypes = {
40420
+ FJ.propTypes = {
40313
40421
  mini: V.default.bool,
40314
40422
  checked: V.default.bool.isRequired,
40315
40423
  onChange: V.default.func.isRequired,
40316
40424
  value: V.default.string,
40317
40425
  label: V.default.string.isRequired,
40318
40426
  error: V.default.bool
40319
- }, EJ.defaultProps = {
40427
+ }, FJ.defaultProps = {
40320
40428
  value: "",
40321
40429
  mini: !1,
40322
40430
  error: !1
40323
40431
  };
40324
40432
  //#endregion
40325
40433
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40326
- var DJ = (0, ht.default)("@pie-lib:config-ui:number-text-field"), OJ = k(uN)(({ theme: e }) => ({
40434
+ var IJ = (0, ht.default)("@pie-lib:config-ui:number-text-field"), LJ = k(uN)(({ theme: e }) => ({
40327
40435
  marginRight: e.spacing(1),
40328
40436
  "& .MuiInputLabel-root": {
40329
40437
  width: "auto",
@@ -40345,11 +40453,11 @@ var DJ = (0, ht.default)("@pie-lib:config-ui:number-text-field"), OJ = k(uN)(({
40345
40453
  minHeight: "auto",
40346
40454
  padding: "6px 0 7px"
40347
40455
  }
40348
- })), kJ = (e, t) => {
40456
+ })), RJ = (e, t) => {
40349
40457
  if (!jt(e) && !jt(t)) return 0;
40350
40458
  if (!jt(e) && jt(t)) return t;
40351
40459
  if (jt(e)) return e;
40352
- }, AJ = class extends Ye.Component {
40460
+ }, zJ = class extends Ye.Component {
40353
40461
  static propTypes = {
40354
40462
  disabled: V.default.bool,
40355
40463
  className: V.default.string,
@@ -40375,13 +40483,13 @@ var DJ = (0, ht.default)("@pie-lib:config-ui:number-text-field"), OJ = k(uN)(({
40375
40483
  this.setState({ value: t });
40376
40484
  }
40377
40485
  clamp(e, t = this.props.min, n = this.props.max) {
40378
- return jt(e) ? (jt(n) && (e = Math.min(e, n)), jt(t) && (e = Math.max(e, t)), e) : kJ(t, n);
40486
+ return jt(e) ? (jt(n) && (e = Math.min(e, n)), jt(t) && (e = Math.max(e, t)), e) : RJ(t, n);
40379
40487
  }
40380
40488
  onBlur = (e) => {
40381
40489
  let t = e.target.value, n = parseFloat(t);
40382
- DJ("rawNumber: ", n);
40490
+ IJ("rawNumber: ", n);
40383
40491
  let r = this.clamp(n);
40384
- DJ("number: ", r), r !== this.state.value && (DJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40492
+ IJ("number: ", r), r !== this.state.value && (IJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40385
40493
  this.props.onChange(e, r);
40386
40494
  }));
40387
40495
  };
@@ -40401,7 +40509,7 @@ var DJ = (0, ht.default)("@pie-lib:config-ui:number-text-field"), OJ = k(uN)(({
40401
40509
  };
40402
40510
  render() {
40403
40511
  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();
40404
- return /* @__PURE__ */ M(OJ, {
40512
+ return /* @__PURE__ */ M(LJ, {
40405
40513
  variant: s ? "filled" : l || "standard",
40406
40514
  inputRef: (e) => {
40407
40515
  this.inputRef = e;
@@ -40420,7 +40528,7 @@ var DJ = (0, ht.default)("@pie-lib:config-ui:number-text-field"), OJ = k(uN)(({
40420
40528
  type: "number",
40421
40529
  className: e,
40422
40530
  slotProps: { input: {
40423
- endAdornment: r && /* @__PURE__ */ M(uJ, {
40531
+ endAdornment: r && /* @__PURE__ */ M(yJ, {
40424
40532
  position: "end",
40425
40533
  children: r
40426
40534
  }),
@@ -40436,19 +40544,19 @@ var DJ = (0, ht.default)("@pie-lib:config-ui:number-text-field"), OJ = k(uN)(({
40436
40544
  };
40437
40545
  //#endregion
40438
40546
  //#region ../../lib-react/config-ui/dist/two-choice.js
40439
- function jJ(e) {
40547
+ function BJ(e) {
40440
40548
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40441
40549
  }
40442
- function MJ(e, t) {
40443
- return !e || jJ(e) ? e : jJ(e.default) ? e.default : t && jJ(e[t]) ? e[t] : t && jJ(e[t]?.default) ? e[t].default : e;
40550
+ function VJ(e, t) {
40551
+ return !e || BJ(e) ? e : BJ(e.default) ? e.default : t && BJ(e[t]) ? e[t] : t && BJ(e[t]?.default) ? e[t].default : e;
40444
40552
  }
40445
- var NJ = MJ(me, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ = Ae, FJ = PJ.default, IJ = FJ && typeof FJ == "object" ? FJ : PJ, LJ = k("div")(({ theme: e, direction: t }) => ({
40553
+ var HJ = VJ(me, "InputContainer") || VJ(GJ.InputContainer, "InputContainer"), UJ = Ae, WJ = UJ.default, GJ = WJ && typeof WJ == "object" ? WJ : UJ, KJ = k("div")(({ theme: e, direction: t }) => ({
40446
40554
  display: "flex",
40447
40555
  flexWrap: "wrap",
40448
40556
  paddingLeft: 0,
40449
40557
  marginTop: e.spacing(1),
40450
40558
  ...t === "vertical" && { flexDirection: "column" }
40451
- })), RJ = class extends Ye.Component {
40559
+ })), qJ = class extends Ye.Component {
40452
40560
  static propTypes = {
40453
40561
  header: V.default.string.isRequired,
40454
40562
  className: V.default.string,
@@ -40465,11 +40573,11 @@ var NJ = MJ(me, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ
40465
40573
  let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
40466
40574
  label: e,
40467
40575
  value: e
40468
- } : e), s = n || xJ;
40469
- return /* @__PURE__ */ M(NJ, {
40576
+ } : e), s = n || AJ;
40577
+ return /* @__PURE__ */ M(HJ, {
40470
40578
  label: e,
40471
40579
  className: t,
40472
- children: /* @__PURE__ */ M(LJ, {
40580
+ children: /* @__PURE__ */ M(KJ, {
40473
40581
  direction: a,
40474
40582
  children: o.map((e, t) => /* @__PURE__ */ M(s, {
40475
40583
  value: e.value,
@@ -40480,7 +40588,7 @@ var NJ = MJ(me, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ
40480
40588
  })
40481
40589
  });
40482
40590
  }
40483
- }, zJ = V.default.shape({
40591
+ }, JJ = V.default.shape({
40484
40592
  label: V.default.string,
40485
40593
  value: V.default.string
40486
40594
  });
@@ -40489,14 +40597,14 @@ var NJ = MJ(me, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ
40489
40597
  header: V.default.string.isRequired,
40490
40598
  value: V.default.string.isRequired,
40491
40599
  onChange: V.default.func.isRequired,
40492
- one: V.default.oneOfType([zJ, V.default.string]),
40493
- two: V.default.oneOfType([zJ, V.default.string]),
40600
+ one: V.default.oneOfType([JJ, V.default.string]),
40601
+ two: V.default.oneOfType([JJ, V.default.string]),
40494
40602
  className: V.default.string,
40495
40603
  customLabel: V.default.func
40496
40604
  };
40497
40605
  render() {
40498
40606
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
40499
- return /* @__PURE__ */ M(RJ, {
40607
+ return /* @__PURE__ */ M(qJ, {
40500
40608
  customLabel: i,
40501
40609
  header: n,
40502
40610
  className: r,
@@ -40508,21 +40616,21 @@ var NJ = MJ(me, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ
40508
40616
  });
40509
40617
  //#endregion
40510
40618
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
40511
- var BJ = Object.defineProperty, VJ = (e, t) => {
40619
+ var YJ = Object.defineProperty, XJ = (e, t) => {
40512
40620
  let n = {};
40513
- for (var r in e) BJ(n, r, {
40621
+ for (var r in e) YJ(n, r, {
40514
40622
  get: e[r],
40515
40623
  enumerable: !0
40516
40624
  });
40517
- return t || BJ(n, Symbol.toStringTag, { value: "Module" }), n;
40518
- }, HJ = k("div")(() => ({
40625
+ return t || YJ(n, Symbol.toStringTag, { value: "Module" }), n;
40626
+ }, ZJ = k("div")(() => ({
40519
40627
  display: "flex",
40520
40628
  flexDirection: "column",
40521
40629
  position: "relative"
40522
- })), UJ = k("div")(() => ({
40630
+ })), QJ = k("div")(() => ({
40523
40631
  display: "flex",
40524
40632
  justifyContent: "space-between"
40525
- })), WJ = k("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), GJ = k("div")(() => ({ flex: "1" })), KJ = k("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), qJ = class extends Ye.Component {
40633
+ })), $J = k("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), eY = k("div")(() => ({ flex: "1" })), tY = k("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), nY = class extends Ye.Component {
40526
40634
  static propTypes = {
40527
40635
  mode: V.default.oneOf(["tabbed", "inline"]),
40528
40636
  secondary: V.default.oneOfType([V.default.arrayOf(V.default.node), V.default.node]),
@@ -40540,7 +40648,7 @@ var BJ = Object.defineProperty, VJ = (e, t) => {
40540
40648
  } catch (e) {
40541
40649
  console.log(e.toString());
40542
40650
  }
40543
- return /* @__PURE__ */ N(HJ, {
40651
+ return /* @__PURE__ */ N(ZJ, {
40544
40652
  style: {
40545
40653
  minHeight: i,
40546
40654
  minWidth: a,
@@ -40548,28 +40656,28 @@ var BJ = Object.defineProperty, VJ = (e, t) => {
40548
40656
  maxWidth: s
40549
40657
  },
40550
40658
  children: [
40551
- e === "inline" && /* @__PURE__ */ N(UJ, { children: [/* @__PURE__ */ M(GJ, {
40659
+ e === "inline" && /* @__PURE__ */ N(QJ, { children: [/* @__PURE__ */ M(eY, {
40552
40660
  className: "design-container",
40553
40661
  children: n
40554
- }), l && /* @__PURE__ */ M(KJ, {
40662
+ }), l && /* @__PURE__ */ M(tY, {
40555
40663
  className: "settings-container",
40556
40664
  children: t
40557
40665
  })] }),
40558
- e === "tabbed" && l && /* @__PURE__ */ N(CJ, {
40666
+ e === "tabbed" && l && /* @__PURE__ */ N(MJ, {
40559
40667
  onChange: this.onTabsChange,
40560
40668
  contentClassName: "content-container",
40561
40669
  indicatorColor: "primary",
40562
- children: [/* @__PURE__ */ M(WJ, {
40670
+ children: [/* @__PURE__ */ M($J, {
40563
40671
  title: "Design",
40564
40672
  className: "design-container",
40565
40673
  children: n
40566
- }), /* @__PURE__ */ M(WJ, {
40674
+ }), /* @__PURE__ */ M($J, {
40567
40675
  title: "Settings",
40568
40676
  className: "settings-container",
40569
40677
  children: t
40570
40678
  })]
40571
40679
  }),
40572
- e === "tabbed" && !l && /* @__PURE__ */ M(WJ, {
40680
+ e === "tabbed" && !l && /* @__PURE__ */ M($J, {
40573
40681
  className: "design-container",
40574
40682
  children: n
40575
40683
  })
@@ -40579,18 +40687,18 @@ var BJ = Object.defineProperty, VJ = (e, t) => {
40579
40687
  };
40580
40688
  //#endregion
40581
40689
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
40582
- function JJ() {
40583
- return JJ = Object.assign ? Object.assign.bind() : function(e) {
40690
+ function rY() {
40691
+ return rY = Object.assign ? Object.assign.bind() : function(e) {
40584
40692
  for (var t = 1; t < arguments.length; t++) {
40585
40693
  var n = arguments[t];
40586
40694
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
40587
40695
  }
40588
40696
  return e;
40589
- }, JJ.apply(null, arguments);
40697
+ }, rY.apply(null, arguments);
40590
40698
  }
40591
40699
  //#endregion
40592
40700
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
40593
- function YJ(e, t) {
40701
+ function iY(e, t) {
40594
40702
  if (e == null) return {};
40595
40703
  var n = {};
40596
40704
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -40601,19 +40709,19 @@ function YJ(e, t) {
40601
40709
  }
40602
40710
  //#endregion
40603
40711
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
40604
- function XJ(e, t) {
40605
- return XJ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40712
+ function aY(e, t) {
40713
+ return aY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40606
40714
  return e.__proto__ = t, e;
40607
- }, XJ(e, t);
40715
+ }, aY(e, t);
40608
40716
  }
40609
40717
  //#endregion
40610
40718
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
40611
- function ZJ(e, t) {
40612
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, XJ(e, t);
40719
+ function oY(e, t) {
40720
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, aY(e, t);
40613
40721
  }
40614
40722
  //#endregion
40615
40723
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
40616
- var QJ = (function() {
40724
+ var sY = (function() {
40617
40725
  if (typeof Map < "u") return Map;
40618
40726
  function e(e, t) {
40619
40727
  var n = -1;
@@ -40652,34 +40760,34 @@ var QJ = (function() {
40652
40760
  }
40653
40761
  }, t;
40654
40762
  }();
40655
- })(), $J = typeof window < "u" && typeof document < "u" && window.document === document, eY = (function() {
40763
+ })(), cY = typeof window < "u" && typeof document < "u" && window.document === document, lY = (function() {
40656
40764
  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")();
40657
- })(), tY = (function() {
40658
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(eY) : function(e) {
40765
+ })(), uY = (function() {
40766
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(lY) : function(e) {
40659
40767
  return setTimeout(function() {
40660
40768
  return e(Date.now());
40661
40769
  }, 1e3 / 60);
40662
40770
  };
40663
- })(), nY = 2;
40664
- function rY(e, t) {
40771
+ })(), dY = 2;
40772
+ function fY(e, t) {
40665
40773
  var n = !1, r = !1, i = 0;
40666
40774
  function a() {
40667
40775
  n && (n = !1, e()), r && s();
40668
40776
  }
40669
40777
  function o() {
40670
- tY(a);
40778
+ uY(a);
40671
40779
  }
40672
40780
  function s() {
40673
40781
  var e = Date.now();
40674
40782
  if (n) {
40675
- if (e - i < nY) return;
40783
+ if (e - i < dY) return;
40676
40784
  r = !0;
40677
40785
  } else n = !0, r = !1, setTimeout(o, t);
40678
40786
  i = e;
40679
40787
  }
40680
40788
  return s;
40681
40789
  }
40682
- var iY = 20, aY = [
40790
+ var pY = 20, mY = [
40683
40791
  "top",
40684
40792
  "right",
40685
40793
  "bottom",
@@ -40688,9 +40796,9 @@ var iY = 20, aY = [
40688
40796
  "height",
40689
40797
  "size",
40690
40798
  "weight"
40691
- ], oY = typeof MutationObserver < "u", sY = function() {
40799
+ ], hY = typeof MutationObserver < "u", gY = function() {
40692
40800
  function e() {
40693
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = rY(this.refresh.bind(this), iY);
40801
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = fY(this.refresh.bind(this), pY);
40694
40802
  }
40695
40803
  return e.prototype.addObserver = function(e) {
40696
40804
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -40707,23 +40815,23 @@ var iY = 20, aY = [
40707
40815
  return e.broadcastActive();
40708
40816
  }), e.length > 0;
40709
40817
  }, e.prototype.connect_ = function() {
40710
- !$J || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), oY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40818
+ !cY || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), hY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40711
40819
  attributes: !0,
40712
40820
  childList: !0,
40713
40821
  characterData: !0,
40714
40822
  subtree: !0
40715
40823
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
40716
40824
  }, e.prototype.disconnect_ = function() {
40717
- !$J || !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);
40825
+ !cY || !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);
40718
40826
  }, e.prototype.onTransitionEnd_ = function(e) {
40719
40827
  var t = e.propertyName, n = t === void 0 ? "" : t;
40720
- aY.some(function(e) {
40828
+ mY.some(function(e) {
40721
40829
  return !!~n.indexOf(e);
40722
40830
  }) && this.refresh();
40723
40831
  }, e.getInstance = function() {
40724
40832
  return this.instance_ ||= new e(), this.instance_;
40725
40833
  }, e.instance_ = null, e;
40726
- }(), cY = (function(e, t) {
40834
+ }(), _Y = (function(e, t) {
40727
40835
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
40728
40836
  var i = r[n];
40729
40837
  Object.defineProperty(e, i, {
@@ -40734,19 +40842,19 @@ var iY = 20, aY = [
40734
40842
  });
40735
40843
  }
40736
40844
  return e;
40737
- }), lY = (function(e) {
40738
- return e && e.ownerDocument && e.ownerDocument.defaultView || eY;
40739
- }), uY = bY(0, 0, 0, 0);
40740
- function dY(e) {
40845
+ }), vY = (function(e) {
40846
+ return e && e.ownerDocument && e.ownerDocument.defaultView || lY;
40847
+ }), yY = kY(0, 0, 0, 0);
40848
+ function bY(e) {
40741
40849
  return parseFloat(e) || 0;
40742
40850
  }
40743
- function fY(e) {
40851
+ function xY(e) {
40744
40852
  return [...arguments].slice(1).reduce(function(t, n) {
40745
40853
  var r = e["border-" + n + "-width"];
40746
- return t + dY(r);
40854
+ return t + bY(r);
40747
40855
  }, 0);
40748
40856
  }
40749
- function pY(e) {
40857
+ function SY(e) {
40750
40858
  for (var t = [
40751
40859
  "top",
40752
40860
  "right",
@@ -40754,40 +40862,40 @@ function pY(e) {
40754
40862
  "left"
40755
40863
  ], n = {}, r = 0, i = t; r < i.length; r++) {
40756
40864
  var a = i[r], o = e["padding-" + a];
40757
- n[a] = dY(o);
40865
+ n[a] = bY(o);
40758
40866
  }
40759
40867
  return n;
40760
40868
  }
40761
- function mY(e) {
40869
+ function CY(e) {
40762
40870
  var t = e.getBBox();
40763
- return bY(0, 0, t.width, t.height);
40871
+ return kY(0, 0, t.width, t.height);
40764
40872
  }
40765
- function hY(e) {
40873
+ function wY(e) {
40766
40874
  var t = e.clientWidth, n = e.clientHeight;
40767
- if (!t && !n) return uY;
40768
- var r = lY(e).getComputedStyle(e), i = pY(r), a = i.left + i.right, o = i.top + i.bottom, s = dY(r.width), c = dY(r.height);
40769
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= fY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= fY(r, "top", "bottom") + o)), !_Y(e)) {
40875
+ if (!t && !n) return yY;
40876
+ var r = vY(e).getComputedStyle(e), i = SY(r), a = i.left + i.right, o = i.top + i.bottom, s = bY(r.width), c = bY(r.height);
40877
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= xY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= xY(r, "top", "bottom") + o)), !EY(e)) {
40770
40878
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
40771
40879
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
40772
40880
  }
40773
- return bY(i.left, i.top, s, c);
40881
+ return kY(i.left, i.top, s, c);
40774
40882
  }
40775
- var gY = (function() {
40883
+ var TY = (function() {
40776
40884
  return typeof SVGGraphicsElement < "u" ? function(e) {
40777
- return e instanceof lY(e).SVGGraphicsElement;
40885
+ return e instanceof vY(e).SVGGraphicsElement;
40778
40886
  } : function(e) {
40779
- return e instanceof lY(e).SVGElement && typeof e.getBBox == "function";
40887
+ return e instanceof vY(e).SVGElement && typeof e.getBBox == "function";
40780
40888
  };
40781
40889
  })();
40782
- function _Y(e) {
40783
- return e === lY(e).document.documentElement;
40890
+ function EY(e) {
40891
+ return e === vY(e).document.documentElement;
40784
40892
  }
40785
- function vY(e) {
40786
- return $J ? gY(e) ? mY(e) : hY(e) : uY;
40893
+ function DY(e) {
40894
+ return cY ? TY(e) ? CY(e) : wY(e) : yY;
40787
40895
  }
40788
- function yY(e) {
40896
+ function OY(e) {
40789
40897
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
40790
- return cY(a, {
40898
+ return _Y(a, {
40791
40899
  x: t,
40792
40900
  y: n,
40793
40901
  width: r,
@@ -40798,7 +40906,7 @@ function yY(e) {
40798
40906
  left: t
40799
40907
  }), a;
40800
40908
  }
40801
- function bY(e, t, n, r) {
40909
+ function kY(e, t, n, r) {
40802
40910
  return {
40803
40911
  x: e,
40804
40912
  y: t,
@@ -40806,42 +40914,42 @@ function bY(e, t, n, r) {
40806
40914
  height: r
40807
40915
  };
40808
40916
  }
40809
- var xY = function() {
40917
+ var AY = function() {
40810
40918
  function e(e) {
40811
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = bY(0, 0, 0, 0), this.target = e;
40919
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = kY(0, 0, 0, 0), this.target = e;
40812
40920
  }
40813
40921
  return e.prototype.isActive = function() {
40814
- var e = vY(this.target);
40922
+ var e = DY(this.target);
40815
40923
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
40816
40924
  }, e.prototype.broadcastRect = function() {
40817
40925
  var e = this.contentRect_;
40818
40926
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
40819
40927
  }, e;
40820
- }(), SY = function() {
40928
+ }(), jY = function() {
40821
40929
  function e(e, t) {
40822
- var n = yY(t);
40823
- cY(this, {
40930
+ var n = OY(t);
40931
+ _Y(this, {
40824
40932
  target: e,
40825
40933
  contentRect: n
40826
40934
  });
40827
40935
  }
40828
40936
  return e;
40829
- }(), CY = function() {
40937
+ }(), MY = function() {
40830
40938
  function e(e, t, n) {
40831
- if (this.activeObservations_ = [], this.observations_ = new QJ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
40939
+ if (this.activeObservations_ = [], this.observations_ = new sY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
40832
40940
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
40833
40941
  }
40834
40942
  return e.prototype.observe = function(e) {
40835
40943
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40836
40944
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
40837
- if (!(e instanceof lY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40945
+ if (!(e instanceof vY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40838
40946
  var t = this.observations_;
40839
- t.has(e) || (t.set(e, new xY(e)), this.controller_.addObserver(this), this.controller_.refresh());
40947
+ t.has(e) || (t.set(e, new AY(e)), this.controller_.addObserver(this), this.controller_.refresh());
40840
40948
  }
40841
40949
  }, e.prototype.unobserve = function(e) {
40842
40950
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40843
40951
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
40844
- if (!(e instanceof lY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40952
+ if (!(e instanceof vY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40845
40953
  var t = this.observations_;
40846
40954
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
40847
40955
  }
@@ -40855,7 +40963,7 @@ var xY = function() {
40855
40963
  }, e.prototype.broadcastActive = function() {
40856
40964
  if (this.hasActive()) {
40857
40965
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
40858
- return new SY(e.target, e.broadcastRect());
40966
+ return new jY(e.target, e.broadcastRect());
40859
40967
  });
40860
40968
  this.callback_.call(e, t, e), this.clearActive();
40861
40969
  }
@@ -40864,12 +40972,12 @@ var xY = function() {
40864
40972
  }, e.prototype.hasActive = function() {
40865
40973
  return this.activeObservations_.length > 0;
40866
40974
  }, e;
40867
- }(), wY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new QJ(), TY = function() {
40975
+ }(), NY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new sY(), PY = function() {
40868
40976
  function e(t) {
40869
40977
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
40870
40978
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40871
- var n = new CY(t, sY.getInstance(), this);
40872
- wY.set(this, n);
40979
+ var n = new MY(t, gY.getInstance(), this);
40980
+ NY.set(this, n);
40873
40981
  }
40874
40982
  return e;
40875
40983
  }();
@@ -40878,27 +40986,27 @@ var xY = function() {
40878
40986
  "unobserve",
40879
40987
  "disconnect"
40880
40988
  ].forEach(function(e) {
40881
- TY.prototype[e] = function() {
40989
+ PY.prototype[e] = function() {
40882
40990
  var t;
40883
- return (t = wY.get(this))[e].apply(t, arguments);
40991
+ return (t = NY.get(this))[e].apply(t, arguments);
40884
40992
  };
40885
40993
  });
40886
- var EY = (function() {
40887
- return eY.ResizeObserver === void 0 ? TY : eY.ResizeObserver;
40888
- })(), DY = [
40994
+ var FY = (function() {
40995
+ return lY.ResizeObserver === void 0 ? PY : lY.ResizeObserver;
40996
+ })(), IY = [
40889
40997
  "client",
40890
40998
  "offset",
40891
40999
  "scroll",
40892
41000
  "bounds",
40893
41001
  "margin"
40894
41002
  ];
40895
- function OY(e) {
41003
+ function LY(e) {
40896
41004
  var t = [];
40897
- return DY.forEach(function(n) {
41005
+ return IY.forEach(function(n) {
40898
41006
  e[n] && t.push(n);
40899
41007
  }), t;
40900
41008
  }
40901
- function kY(e, t) {
41009
+ function RY(e, t) {
40902
41010
  var n = {};
40903
41011
  if (t.indexOf("client") > -1 && (n.client = {
40904
41012
  top: e.clientTop,
@@ -40937,14 +41045,14 @@ function kY(e, t) {
40937
41045
  }
40938
41046
  return n;
40939
41047
  }
40940
- function AY(e) {
41048
+ function zY(e) {
40941
41049
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
40942
41050
  }
40943
- function jY(e) {
41051
+ function BY(e) {
40944
41052
  return function(t) {
40945
41053
  var n, r;
40946
41054
  return r = n = /*#__PURE__*/ function(n) {
40947
- ZJ(r, n);
41055
+ oY(r, n);
40948
41056
  function r() {
40949
41057
  var t, r = [...arguments];
40950
41058
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -40955,24 +41063,24 @@ function jY(e) {
40955
41063
  bounds: {},
40956
41064
  margin: {}
40957
41065
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
40958
- var r = kY(t._node, e || OY(t.props));
41066
+ var r = RY(t._node, e || LY(t.props));
40959
41067
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
40960
41068
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
40961
41069
  });
40962
41070
  }, t._handleRef = function(e) {
40963
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = AY(t._node);
41071
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = zY(t._node);
40964
41072
  var n = t.props.innerRef;
40965
41073
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
40966
41074
  }, t;
40967
41075
  }
40968
41076
  var i = r.prototype;
40969
41077
  return i.componentDidMount = function() {
40970
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new EY(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(kY(this._node, e || OY(this.props))));
41078
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new FY(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(RY(this._node, e || LY(this.props))));
40971
41079
  }, i.componentWillUnmount = function() {
40972
41080
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
40973
41081
  }, i.render = function() {
40974
41082
  var e = this.props;
40975
- return e.innerRef, e.onResize, Qe(t, JJ({}, YJ(e, ["innerRef", "onResize"]), {
41083
+ return e.innerRef, e.onResize, Qe(t, rY({}, iY(e, ["innerRef", "onResize"]), {
40976
41084
  measureRef: this._handleRef,
40977
41085
  measure: this.measure,
40978
41086
  contentRect: this.state.contentRect
@@ -40989,7 +41097,7 @@ function jY(e) {
40989
41097
  }, r;
40990
41098
  };
40991
41099
  }
40992
- var MY = jY()(function(e) {
41100
+ var VY = BY()(function(e) {
40993
41101
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
40994
41102
  return i({
40995
41103
  measure: t,
@@ -40997,10 +41105,10 @@ var MY = jY()(function(e) {
40997
41105
  contentRect: r
40998
41106
  });
40999
41107
  });
41000
- MY.displayName = "Measure", MY.propTypes.children = V.default.func;
41108
+ VY.displayName = "Measure", VY.propTypes.children = V.default.func;
41001
41109
  //#endregion
41002
41110
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
41003
- var NY = k("div")(() => ({
41111
+ var HY = k("div")(() => ({
41004
41112
  backgroundColor: A.white(),
41005
41113
  border: `2px solid ${A.border()}`,
41006
41114
  display: "flex",
@@ -41010,7 +41118,7 @@ var NY = k("div")(() => ({
41010
41118
  maxWidth: "300px",
41011
41119
  padding: "20px 4px 4px 20px",
41012
41120
  zIndex: 99
41013
- })), PY = class extends Ye.Component {
41121
+ })), UY = class extends Ye.Component {
41014
41122
  static propTypes = {
41015
41123
  className: V.default.string,
41016
41124
  children: V.default.oneOfType([V.default.arrayOf(V.default.node), V.default.node]).isRequired
@@ -41018,19 +41126,19 @@ var NY = k("div")(() => ({
41018
41126
  static defaultProps = {};
41019
41127
  render() {
41020
41128
  let { className: e, children: t } = this.props;
41021
- return /* @__PURE__ */ M(NY, {
41129
+ return /* @__PURE__ */ M(HY, {
41022
41130
  className: e,
41023
41131
  children: t
41024
41132
  });
41025
41133
  }
41026
- }, FY = fe({
41134
+ }, WY = fe({
41027
41135
  typography: { fontFamily: "inherit" },
41028
41136
  components: { MuiButton: { styleOverrides: { contained: {
41029
41137
  backgroundColor: "#e0e0e0",
41030
41138
  color: "#000000",
41031
41139
  "&:hover": { backgroundColor: "#bdbdbd" }
41032
41140
  } } } }
41033
- }), IY = class extends Ye.Component {
41141
+ }), GY = class extends Ye.Component {
41034
41142
  static propTypes = {
41035
41143
  children: V.default.oneOfType([
41036
41144
  V.default.string,
@@ -41063,19 +41171,19 @@ var NY = k("div")(() => ({
41063
41171
  return /* @__PURE__ */ M(le, {
41064
41172
  injectFirst: !0,
41065
41173
  children: /* @__PURE__ */ M(je, {
41066
- theme: FY,
41067
- children: /* @__PURE__ */ M(MY, {
41174
+ theme: WY,
41175
+ children: /* @__PURE__ */ M(VY, {
41068
41176
  bounds: !0,
41069
41177
  onResize: this.onResize,
41070
41178
  children: ({ measureRef: e }) => {
41071
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ M(PY, {
41179
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ M(UY, {
41072
41180
  className: "settings-box",
41073
41181
  children: n
41074
41182
  }) : n;
41075
41183
  return /* @__PURE__ */ N("div", {
41076
41184
  ref: e,
41077
41185
  className: "main-container extraCSSRules",
41078
- children: [a?.rules ? /* @__PURE__ */ M("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ M(qJ, {
41186
+ children: [a?.rules ? /* @__PURE__ */ M("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ M(nY, {
41079
41187
  mode: o,
41080
41188
  secondary: s,
41081
41189
  dimensions: i,
@@ -41087,27 +41195,27 @@ var NY = k("div")(() => ({
41087
41195
  })
41088
41196
  });
41089
41197
  }
41090
- }, LY = jY("bounds")(IY), RY = /* @__PURE__ */ VJ({
41091
- ConfigLayout: () => LY,
41092
- LayoutContents: () => qJ
41093
- }), zY = k("div")(() => ({
41198
+ }, KY = BY("bounds")(GY), qY = /* @__PURE__ */ XJ({
41199
+ ConfigLayout: () => KY,
41200
+ LayoutContents: () => nY
41201
+ }), JY = k("div")(() => ({
41094
41202
  display: "flex",
41095
41203
  width: "100%",
41096
41204
  justifyContent: "space-between"
41097
- })), BY = k(_e)(({ theme: e }) => ({
41205
+ })), YY = k(_e)(({ theme: e }) => ({
41098
41206
  color: "rgba(0, 0, 0, 0.89)",
41099
41207
  fontSize: e.typography.fontSize,
41100
41208
  paddingTop: e.spacing(2)
41101
- })), VY = k(vJ)(({ checked: e }) => ({
41209
+ })), XY = k(DJ)(({ checked: e }) => ({
41102
41210
  "&.Mui-checked .MuiSwitch-thumb": { color: `${A.tertiary()} !important` },
41103
41211
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${A.tertiaryLight()} !important` },
41104
41212
  "& .MuiSwitch-track": { backgroundColor: e ? `${A.tertiaryLight()} !important` : void 0 }
41105
- })), HY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ N(zY, { children: [/* @__PURE__ */ M(BY, { children: n }), /* @__PURE__ */ M(VY, {
41213
+ })), ZY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ N(JY, { children: [/* @__PURE__ */ M(YY, { children: n }), /* @__PURE__ */ M(XY, {
41106
41214
  checked: e,
41107
41215
  disabled: t,
41108
41216
  onChange: (e) => r(e.target.checked)
41109
41217
  })] });
41110
- HY.propTypes = {
41218
+ ZY.propTypes = {
41111
41219
  checked: V.default.bool,
41112
41220
  disabled: V.default.bool,
41113
41221
  label: V.default.string.isRequired,
@@ -41115,20 +41223,20 @@ HY.propTypes = {
41115
41223
  };
41116
41224
  //#endregion
41117
41225
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
41118
- var UY = k(ye)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41226
+ var QY = k(ye)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41119
41227
  color: "rgba(0, 0, 0, 0.89)",
41120
41228
  fontSize: e.typography.fontSize - 2,
41121
41229
  left: "-5px",
41122
41230
  position: "relative"
41123
- } })), WY = k(Re)(() => ({ color: `${A.tertiary()} !important` })), GY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ M(UY, {
41231
+ } })), $Y = k(Re)(() => ({ color: `${A.tertiary()} !important` })), eX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ M(QY, {
41124
41232
  value: t,
41125
- control: /* @__PURE__ */ M(WY, {
41233
+ control: /* @__PURE__ */ M($Y, {
41126
41234
  checked: n,
41127
41235
  onChange: r
41128
41236
  }),
41129
41237
  label: e
41130
41238
  });
41131
- GY.propTypes = {
41239
+ eX.propTypes = {
41132
41240
  label: V.default.string,
41133
41241
  value: V.default.string,
41134
41242
  checked: V.default.bool,
@@ -41136,26 +41244,26 @@ GY.propTypes = {
41136
41244
  };
41137
41245
  //#endregion
41138
41246
  //#region ../../lib-react/config-ui/dist/settings/panel.js
41139
- var KY = (0, ht.default)("pie-lib:config-ui:settings:panel"), qY = {
41247
+ var tX = (0, ht.default)("pie-lib:config-ui:settings:panel"), nX = {
41140
41248
  label: V.default.string,
41141
41249
  value: V.default.string
41142
- }, JY = {
41250
+ }, rX = {
41143
41251
  label: V.default.string,
41144
41252
  value: V.default.string,
41145
41253
  onChange: V.default.func
41146
- }, YY = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ M(EJ, {
41254
+ }, iX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ M(FJ, {
41147
41255
  checked: t,
41148
41256
  label: e,
41149
41257
  onChange: (e) => {
41150
41258
  n(e.target.checked);
41151
41259
  }
41152
41260
  });
41153
- YY.propTypes = {
41261
+ iX.propTypes = {
41154
41262
  label: V.default.string,
41155
41263
  value: V.default.bool,
41156
41264
  onChange: V.default.func
41157
41265
  };
41158
- var XY = k(RJ)(({ theme: e }) => ({
41266
+ var aX = k(qJ)(({ theme: e }) => ({
41159
41267
  marginTop: e.spacing(.5),
41160
41268
  paddingBottom: e.spacing(.5),
41161
41269
  width: "100%",
@@ -41166,29 +41274,29 @@ var XY = k(RJ)(({ theme: e }) => ({
41166
41274
  marginTop: e.spacing(2.5)
41167
41275
  },
41168
41276
  "& > div": { marginTop: e.spacing(2.5) }
41169
- })), ZY = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ M(XY, {
41277
+ })), oX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ M(aX, {
41170
41278
  direction: "horizontal",
41171
- customLabel: GY,
41279
+ customLabel: eX,
41172
41280
  value: t,
41173
41281
  header: e,
41174
41282
  opts: r,
41175
41283
  onChange: n
41176
41284
  });
41177
- ZY.propTypes = {
41178
- ...JY,
41179
- choices: V.default.arrayOf(V.default.shape(qY))
41285
+ oX.propTypes = {
41286
+ ...rX,
41287
+ choices: V.default.arrayOf(V.default.shape(nX))
41180
41288
  };
41181
- var QY = ZY, $Y = k("p")(({ theme: e }) => ({
41289
+ var sX = oX, cX = k("p")(({ theme: e }) => ({
41182
41290
  margin: 0,
41183
41291
  fontSize: e.typography.fontSize
41184
- })), eX = k(nM)(({ theme: e }) => ({
41292
+ })), lX = k(nM)(({ theme: e }) => ({
41185
41293
  marginTop: e.spacing(.5),
41186
41294
  border: "2px solid lightgrey",
41187
41295
  padding: `0 ${e.spacing(1)}`,
41188
41296
  borderRadius: "4px"
41189
- })), tX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41297
+ })), uX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41190
41298
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
41191
- return /* @__PURE__ */ N("div", { children: [e && /* @__PURE__ */ M($Y, { children: e }), /* @__PURE__ */ M(eX, {
41299
+ return /* @__PURE__ */ N("div", { children: [e && /* @__PURE__ */ M(cX, { children: e }), /* @__PURE__ */ M(lX, {
41192
41300
  value: t || r && r[0],
41193
41301
  onChange: ({ target: e }) => n(e.value),
41194
41302
  input: /* @__PURE__ */ M(Nj, { id: `dropdown-${e}` }),
@@ -41203,14 +41311,14 @@ var QY = ZY, $Y = k("p")(({ theme: e }) => ({
41203
41311
  }, t))
41204
41312
  })] });
41205
41313
  };
41206
- tX.propTypes = {
41207
- ...JY,
41314
+ uX.propTypes = {
41315
+ ...rX,
41208
41316
  choices: V.default.arrayOf(V.default.string)
41209
41317
  };
41210
- var nX = k(oe)(({ theme: e }) => ({
41318
+ var dX = k(oe)(({ theme: e }) => ({
41211
41319
  marginRight: e.spacing(3),
41212
41320
  marginTop: e.spacing(1)
41213
- })), rX = ({ label: e }) => /* @__PURE__ */ M(nX, { children: e }), iX = k(AJ)(({ theme: e }) => ({
41321
+ })), fX = ({ label: e }) => /* @__PURE__ */ M(dX, { children: e }), pX = k(zJ)(({ theme: e }) => ({
41214
41322
  width: "35%",
41215
41323
  marginRight: e.spacing(3),
41216
41324
  marginTop: e.spacing(1),
@@ -41221,7 +41329,7 @@ var nX = k(oe)(({ theme: e }) => ({
41221
41329
  padding: `0 ${e.spacing(1)}`,
41222
41330
  backgroundColor: "transparent"
41223
41331
  }
41224
- })), aX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ M(iX, {
41332
+ })), mX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ M(pX, {
41225
41333
  variant: "standard",
41226
41334
  label: e || "Label",
41227
41335
  value: t,
@@ -41232,45 +41340,45 @@ var nX = k(oe)(({ theme: e }) => ({
41232
41340
  showErrorWhenOutsideRange: !0,
41233
41341
  disableUnderline: !0
41234
41342
  });
41235
- aX.propTypes = {
41236
- ...JY,
41343
+ mX.propTypes = {
41344
+ ...rX,
41237
41345
  suffix: V.default.string,
41238
41346
  min: V.default.number,
41239
41347
  max: V.default.number,
41240
41348
  value: V.default.number
41241
- }, rX.propTypes = { ...JY };
41242
- var oX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ M(HY, {
41349
+ }, fX.propTypes = { ...rX };
41350
+ var hX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ M(ZY, {
41243
41351
  label: t,
41244
41352
  checked: !!n,
41245
41353
  disabled: !!e,
41246
41354
  toggle: r
41247
41355
  });
41248
- oX.propTypes = {
41249
- ...JY,
41356
+ hX.propTypes = {
41357
+ ...rX,
41250
41358
  value: V.default.bool
41251
41359
  };
41252
- var sX = {
41253
- toggle: oX,
41254
- radio: QY,
41255
- dropdown: tX,
41256
- numberField: aX,
41257
- checkbox: YY,
41258
- textField: rX
41259
- }, cX = k("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), lX = k("div")(({ theme: e }) => ({
41360
+ var gX = {
41361
+ toggle: hX,
41362
+ radio: sX,
41363
+ dropdown: uX,
41364
+ numberField: mX,
41365
+ checkbox: iX,
41366
+ textField: fX
41367
+ }, _X = k("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), vX = k("div")(({ theme: e }) => ({
41260
41368
  color: "#495B8F",
41261
41369
  fontSize: e.typography.fontSize + 2,
41262
41370
  fontWeight: 600,
41263
41371
  marginBottom: e.spacing(1)
41264
- })), uX = k("p")(({ theme: e }) => ({
41372
+ })), yX = k("p")(({ theme: e }) => ({
41265
41373
  fontSize: e.typography.fontSize,
41266
41374
  marginBottom: 0
41267
- })), dX = (e) => {
41375
+ })), bX = (e) => {
41268
41376
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
41269
41377
  let { isConfigProperty: o, ...s } = Dt(e, r || n), c = Dt(o ? i : t, n), l = {
41270
41378
  ...s,
41271
41379
  key: n,
41272
41380
  value: c
41273
- }, u = sX[l.type];
41381
+ }, u = gX[l.type];
41274
41382
  return /* @__PURE__ */ M(u, {
41275
41383
  ...l,
41276
41384
  onChange: (e) => a(n, e, o)
@@ -41279,18 +41387,18 @@ var sX = {
41279
41387
  let n = e[t];
41280
41388
  if (!n) return null;
41281
41389
  let { type: r, label: i, fields: a, choices: s } = n;
41282
- return r === "numberFields" ? /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M(uX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41390
+ return r === "numberFields" ? /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M(yX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41283
41391
  };
41284
- return /* @__PURE__ */ N(cX, { children: [/* @__PURE__ */ M(lX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41392
+ return /* @__PURE__ */ N(_X, { children: [/* @__PURE__ */ M(vX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41285
41393
  };
41286
- dX.propTypes = {
41394
+ bX.propTypes = {
41287
41395
  model: V.default.object,
41288
41396
  label: V.default.string,
41289
41397
  group: V.default.object,
41290
41398
  configuration: V.default.object,
41291
41399
  onChange: V.default.func
41292
41400
  };
41293
- var fX = class extends Ye.Component {
41401
+ var xX = class extends Ye.Component {
41294
41402
  static propTypes = {
41295
41403
  model: V.default.object,
41296
41404
  configuration: V.default.object,
@@ -41304,13 +41412,13 @@ var fX = class extends Ye.Component {
41304
41412
  onChangeConfiguration: () => {}
41305
41413
  };
41306
41414
  change = (e, t, n = !1) => {
41307
- KY("[changeModel]", e, t);
41415
+ tX("[changeModel]", e, t);
41308
41416
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41309
41417
  n ? (Pt(o, e, t), i(o, e)) : (Pt(a, e, t), r(a, e));
41310
41418
  };
41311
41419
  render() {
41312
41420
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
41313
- return KY("render:", t), /* @__PURE__ */ N("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ M(dX, {
41421
+ return tX("render:", t), /* @__PURE__ */ N("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ M(bX, {
41314
41422
  label: r,
41315
41423
  model: t,
41316
41424
  configuration: n,
@@ -41318,59 +41426,59 @@ var fX = class extends Ye.Component {
41318
41426
  onChange: this.change
41319
41427
  }, r) : null), r] });
41320
41428
  }
41321
- }, pX = /* @__PURE__ */ VJ({
41322
- Panel: () => fX,
41323
- checkbox: () => xX,
41324
- checkboxes: () => SX,
41325
- dropdown: () => vX,
41326
- numberField: () => yX,
41327
- numberFields: () => bX,
41328
- radio: () => _X,
41329
- textField: () => mX,
41330
- toggle: () => hX
41331
- }), mX = (e, t = !0) => ({
41429
+ }, SX = /* @__PURE__ */ XJ({
41430
+ Panel: () => xX,
41431
+ checkbox: () => AX,
41432
+ checkboxes: () => jX,
41433
+ dropdown: () => DX,
41434
+ numberField: () => OX,
41435
+ numberFields: () => kX,
41436
+ radio: () => EX,
41437
+ textField: () => CX,
41438
+ toggle: () => wX
41439
+ }), CX = (e, t = !0) => ({
41332
41440
  label: e,
41333
41441
  type: "textField",
41334
41442
  isConfigProperty: t
41335
- }), hX = (e, t = !1, n = !1) => ({
41443
+ }), wX = (e, t = !1, n = !1) => ({
41336
41444
  type: "toggle",
41337
41445
  label: e,
41338
41446
  isConfigProperty: t,
41339
41447
  disabled: n
41340
- }), gX = (e) => typeof e == "string" ? {
41448
+ }), TX = (e) => typeof e == "string" ? {
41341
41449
  label: e,
41342
41450
  value: e
41343
- } : e, _X = function() {
41451
+ } : e, EX = function() {
41344
41452
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41345
41453
  return {
41346
41454
  type: "radio",
41347
41455
  label: e,
41348
- choices: t && t.map((e) => gX(e)),
41456
+ choices: t && t.map((e) => TX(e)),
41349
41457
  isConfigProperty: n
41350
41458
  };
41351
- }, vX = (e, t, n = !1) => ({
41459
+ }, DX = (e, t, n = !1) => ({
41352
41460
  type: "dropdown",
41353
41461
  label: e,
41354
41462
  choices: t,
41355
41463
  isConfigProperty: n
41356
- }), yX = (e, t, n = !1) => ({
41464
+ }), OX = (e, t, n = !1) => ({
41357
41465
  ...t,
41358
41466
  label: e,
41359
41467
  type: "numberField",
41360
41468
  isConfigProperty: n
41361
- }), bX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41362
- t[e] = yX(t[e].label, t[e], n);
41469
+ }), kX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41470
+ t[e] = OX(t[e].label, t[e], n);
41363
41471
  }), {
41364
41472
  type: "numberFields",
41365
41473
  label: e,
41366
41474
  fields: t
41367
- }), xX = (e, t, n = !1) => ({
41475
+ }), AX = (e, t, n = !1) => ({
41368
41476
  ...t,
41369
41477
  label: e,
41370
41478
  type: "checkbox",
41371
41479
  isConfigProperty: n
41372
- }), SX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41373
- t[e] = xX(t[e].label, t[e], n);
41480
+ }), jX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41481
+ t[e] = AX(t[e].label, t[e], n);
41374
41482
  }), {
41375
41483
  type: "checkboxes",
41376
41484
  label: e,
@@ -41378,27 +41486,27 @@ var fX = class extends Ye.Component {
41378
41486
  });
41379
41487
  //#endregion
41380
41488
  //#region ../../lib-react/config-ui/dist/index.js
41381
- function CX(e) {
41489
+ function MX(e) {
41382
41490
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41383
41491
  }
41384
- function wX(e, t) {
41385
- return !e || CX(e) ? e : CX(e.default) ? e.default : t && CX(e[t]) ? e[t] : t && CX(e[t]?.default) ? e[t].default : e;
41492
+ function NX(e, t) {
41493
+ return !e || MX(e) ? e : MX(e.default) ? e.default : t && MX(e[t]) ? e[t] : t && MX(e[t]?.default) ? e[t].default : e;
41386
41494
  }
41387
- var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX = Ae, DX = EX.default, OX = DX && typeof DX == "object" ? DX : EX, kX = {
41495
+ var PX = NX(me, "InputContainer") || NX(LX.InputContainer, "InputContainer"), FX = Ae, IX = FX.default, LX = IX && typeof IX == "object" ? IX : FX, RX = {
41388
41496
  likert3: "likert3",
41389
41497
  likert5: "likert5",
41390
41498
  likert7: "likert7"
41391
- }, AX = {
41499
+ }, zX = {
41392
41500
  agreement: "agreement",
41393
41501
  frequency: "frequency",
41394
41502
  yesNo: "yesNo",
41395
41503
  importance: "importance",
41396
41504
  likelihood: "likelihood",
41397
41505
  like: "like"
41398
- }, jX = {
41506
+ }, BX = {
41399
41507
  horizontal: "horizontal",
41400
41508
  vertical: "vertical"
41401
- }, MX = [
41509
+ }, VX = [
41402
41510
  {
41403
41511
  label: "Disagree",
41404
41512
  value: -1
@@ -41411,27 +41519,27 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41411
41519
  label: "Agree",
41412
41520
  value: 1
41413
41521
  }
41414
- ], NX = [
41522
+ ], HX = [
41415
41523
  {
41416
41524
  label: "Strongly Disagree",
41417
41525
  value: -2
41418
41526
  },
41419
- ...MX,
41527
+ ...VX,
41420
41528
  {
41421
41529
  label: "Strongly Agree",
41422
41530
  value: 2
41423
41531
  }
41424
- ], PX = [
41532
+ ], UX = [
41425
41533
  {
41426
41534
  label: "Extremely Disagree",
41427
41535
  value: -3
41428
41536
  },
41429
- ...NX,
41537
+ ...HX,
41430
41538
  {
41431
41539
  label: "Extremely Agree",
41432
41540
  value: 3
41433
41541
  }
41434
- ], FX = [
41542
+ ], WX = [
41435
41543
  {
41436
41544
  label: "Infrequently",
41437
41545
  value: -1
@@ -41444,27 +41552,27 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41444
41552
  label: "Frequently",
41445
41553
  value: 1
41446
41554
  }
41447
- ], IX = [
41555
+ ], GX = [
41448
41556
  {
41449
41557
  label: "Very Infrequently",
41450
41558
  value: -2
41451
41559
  },
41452
- ...FX,
41560
+ ...WX,
41453
41561
  {
41454
41562
  label: "Very Frequently",
41455
41563
  value: 2
41456
41564
  }
41457
- ], LX = [
41565
+ ], KX = [
41458
41566
  {
41459
41567
  label: "Never",
41460
41568
  value: -3
41461
41569
  },
41462
- ...IX,
41570
+ ...GX,
41463
41571
  {
41464
41572
  label: "Always",
41465
41573
  value: 3
41466
41574
  }
41467
- ], RX = [
41575
+ ], qX = [
41468
41576
  {
41469
41577
  label: "No",
41470
41578
  value: -1
@@ -41477,7 +41585,7 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41477
41585
  label: "Yes",
41478
41586
  value: 1
41479
41587
  }
41480
- ], zX = [
41588
+ ], JX = [
41481
41589
  {
41482
41590
  label: "No",
41483
41591
  value: -2
@@ -41498,7 +41606,7 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41498
41606
  label: "Yes",
41499
41607
  value: 2
41500
41608
  }
41501
- ], BX = [
41609
+ ], YX = [
41502
41610
  {
41503
41611
  label: "No",
41504
41612
  value: -3
@@ -41527,7 +41635,7 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41527
41635
  label: "Always",
41528
41636
  value: 3
41529
41637
  }
41530
- ], VX = [
41638
+ ], XX = [
41531
41639
  {
41532
41640
  label: "Not Likely",
41533
41641
  value: -1
@@ -41540,27 +41648,27 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41540
41648
  label: "Likely",
41541
41649
  value: 1
41542
41650
  }
41543
- ], HX = [
41651
+ ], ZX = [
41544
41652
  {
41545
41653
  label: "Very Unlikely",
41546
41654
  value: -2
41547
41655
  },
41548
- ...VX,
41656
+ ...XX,
41549
41657
  {
41550
41658
  label: "Very Likely",
41551
41659
  value: 2
41552
41660
  }
41553
- ], UX = [
41661
+ ], QX = [
41554
41662
  {
41555
41663
  label: "Extremely Unlikely",
41556
41664
  value: -3
41557
41665
  },
41558
- ...HX,
41666
+ ...ZX,
41559
41667
  {
41560
41668
  label: "Extremely Likely",
41561
41669
  value: 3
41562
41670
  }
41563
- ], WX = [
41671
+ ], $X = [
41564
41672
  {
41565
41673
  label: "Not Important",
41566
41674
  value: -1
@@ -41573,27 +41681,27 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41573
41681
  label: "Important",
41574
41682
  value: 1
41575
41683
  }
41576
- ], GX = [
41684
+ ], eZ = [
41577
41685
  {
41578
41686
  label: "Very Not Important",
41579
41687
  value: -2
41580
41688
  },
41581
- ...WX,
41689
+ ...$X,
41582
41690
  {
41583
41691
  label: "Very Important",
41584
41692
  value: 2
41585
41693
  }
41586
- ], KX = [
41694
+ ], tZ = [
41587
41695
  {
41588
41696
  label: "Extremely Not Important",
41589
41697
  value: -3
41590
41698
  },
41591
- ...GX,
41699
+ ...eZ,
41592
41700
  {
41593
41701
  label: "Extremely Important",
41594
41702
  value: 3
41595
41703
  }
41596
- ], qX = [
41704
+ ], nZ = [
41597
41705
  {
41598
41706
  label: "Dislike",
41599
41707
  value: -1
@@ -41606,90 +41714,90 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41606
41714
  label: "Like",
41607
41715
  value: 1
41608
41716
  }
41609
- ], JX = [
41717
+ ], rZ = [
41610
41718
  {
41611
41719
  label: "Really Dislike",
41612
41720
  value: -2
41613
41721
  },
41614
- ...qX,
41722
+ ...nZ,
41615
41723
  {
41616
41724
  label: "Really Like",
41617
41725
  value: 2
41618
41726
  }
41619
- ], YX = [
41727
+ ], iZ = [
41620
41728
  {
41621
41729
  label: "Extremely Dislike",
41622
41730
  value: -3
41623
41731
  },
41624
- ...JX,
41732
+ ...rZ,
41625
41733
  {
41626
41734
  label: "Extremely Like",
41627
41735
  value: 3
41628
41736
  }
41629
- ], XX = (e, t) => {
41737
+ ], aZ = (e, t) => {
41630
41738
  switch (`${e}-${t}`) {
41631
- case `${kX.likert3}-${AX.agreement}`: return [...MX];
41632
- case `${kX.likert5}-${AX.agreement}`: return [...NX];
41633
- case `${kX.likert7}-${AX.agreement}`: return [...PX];
41634
- case `${kX.likert3}-${AX.frequency}`: return [...FX];
41635
- case `${kX.likert5}-${AX.frequency}`: return [...IX];
41636
- case `${kX.likert7}-${AX.frequency}`: return [...LX];
41637
- case `${kX.likert3}-${AX.yesNo}`: return [...RX];
41638
- case `${kX.likert5}-${AX.yesNo}`: return [...zX];
41639
- case `${kX.likert7}-${AX.yesNo}`: return [...BX];
41640
- case `${kX.likert3}-${AX.likelihood}`: return [...VX];
41641
- case `${kX.likert5}-${AX.likelihood}`: return [...HX];
41642
- case `${kX.likert7}-${AX.likelihood}`: return [...UX];
41643
- case `${kX.likert3}-${AX.importance}`: return [...WX];
41644
- case `${kX.likert5}-${AX.importance}`: return [...GX];
41645
- case `${kX.likert7}-${AX.importance}`: return [...KX];
41646
- case `${kX.likert3}-${AX.like}`: return [...qX];
41647
- case `${kX.likert5}-${AX.like}`: return [...JX];
41648
- case `${kX.likert7}-${AX.like}`: return [...YX];
41739
+ case `${RX.likert3}-${zX.agreement}`: return [...VX];
41740
+ case `${RX.likert5}-${zX.agreement}`: return [...HX];
41741
+ case `${RX.likert7}-${zX.agreement}`: return [...UX];
41742
+ case `${RX.likert3}-${zX.frequency}`: return [...WX];
41743
+ case `${RX.likert5}-${zX.frequency}`: return [...GX];
41744
+ case `${RX.likert7}-${zX.frequency}`: return [...KX];
41745
+ case `${RX.likert3}-${zX.yesNo}`: return [...qX];
41746
+ case `${RX.likert5}-${zX.yesNo}`: return [...JX];
41747
+ case `${RX.likert7}-${zX.yesNo}`: return [...YX];
41748
+ case `${RX.likert3}-${zX.likelihood}`: return [...XX];
41749
+ case `${RX.likert5}-${zX.likelihood}`: return [...ZX];
41750
+ case `${RX.likert7}-${zX.likelihood}`: return [...QX];
41751
+ case `${RX.likert3}-${zX.importance}`: return [...$X];
41752
+ case `${RX.likert5}-${zX.importance}`: return [...eZ];
41753
+ case `${RX.likert7}-${zX.importance}`: return [...tZ];
41754
+ case `${RX.likert3}-${zX.like}`: return [...nZ];
41755
+ case `${RX.likert5}-${zX.like}`: return [...rZ];
41756
+ case `${RX.likert7}-${zX.like}`: return [...iZ];
41649
41757
  default: return [];
41650
41758
  }
41651
- }, { Panel: ZX, toggle: QX, radio: $X } = pX, eZ = k(TX)(({ theme: e }) => ({
41759
+ }, { Panel: oZ, toggle: sZ, radio: cZ } = SX, lZ = k(PX)(({ theme: e }) => ({
41652
41760
  width: "100%",
41653
41761
  paddingTop: e.spacing(2),
41654
41762
  marginBottom: e.spacing(2)
41655
- })), tZ = k("div")({
41763
+ })), uZ = k("div")({
41656
41764
  display: "flex",
41657
41765
  flexDirection: "column"
41658
- }), nZ = k("p")(({ theme: e }) => ({
41766
+ }), dZ = k("p")(({ theme: e }) => ({
41659
41767
  color: A.text(),
41660
41768
  fontSize: e.typography.fontSize - 2
41661
- })), rZ = k("div")(({ theme: e }) => ({
41769
+ })), fZ = k("div")(({ theme: e }) => ({
41662
41770
  display: "flex",
41663
41771
  width: "100%",
41664
41772
  alignItems: "flex-start",
41665
41773
  marginBottom: e.spacing(2)
41666
- })), iZ = k("div")(({ theme: e }) => ({
41774
+ })), pZ = k("div")(({ theme: e }) => ({
41667
41775
  display: "flex",
41668
41776
  width: "100%",
41669
41777
  justifyContent: "space-around",
41670
41778
  marginBottom: e.spacing(2.5)
41671
- })), aZ = k(TX)({
41779
+ })), mZ = k(PX)({
41672
41780
  width: "calc(100% - 200px)",
41673
41781
  marginRight: 0
41674
- }), oZ = k("p")(({ theme: e }) => ({
41782
+ }), hZ = k("p")(({ theme: e }) => ({
41675
41783
  color: e.palette.error.main,
41676
41784
  fontSize: e.typography.fontSize - 2
41677
- })), sZ = k(AJ)({ width: "100%" }), cZ = k("div")({
41785
+ })), gZ = k(zJ)({ width: "100%" }), _Z = k("div")({
41678
41786
  display: "flex",
41679
41787
  flexDirection: "row"
41680
- }), lZ = k("div")(({ theme: e }) => ({
41788
+ }), vZ = k("div")(({ theme: e }) => ({
41681
41789
  paddingLeft: e.spacing(2.5),
41682
41790
  width: "150px"
41683
- })), uZ = k(zq)(({ theme: e }) => ({ paddingTop: e.spacing(2) })), dZ = k("span")(({ theme: e }) => ({
41791
+ })), yZ = k(Jq)(({ theme: e }) => ({ paddingTop: e.spacing(2) })), bZ = k("span")(({ theme: e }) => ({
41684
41792
  width: "30px",
41685
41793
  paddingTop: e.spacing(4)
41686
- })), fZ = k("div")(({ theme: e }) => ({
41794
+ })), xZ = k("div")(({ theme: e }) => ({
41687
41795
  fontSize: e.typography.fontSize - 2,
41688
41796
  color: e.palette.error.main,
41689
41797
  paddingTop: e.spacing(1)
41690
- })), pZ = k(Re)({ color: `${A.tertiary()} !important` }), mZ = (e) => {
41798
+ })), SZ = k(Re)({ color: `${A.tertiary()} !important` }), CZ = (e) => {
41691
41799
  let { model: t, onChangeModel: n } = e;
41692
- return /* @__PURE__ */ N(tZ, { children: [/* @__PURE__ */ M(nZ, { children: "Likert Orientation" }), /* @__PURE__ */ N(Kq, {
41800
+ return /* @__PURE__ */ N(uZ, { children: [/* @__PURE__ */ M(dZ, { children: "Likert Orientation" }), /* @__PURE__ */ N(tJ, {
41693
41801
  "aria-label": "likertOrientation",
41694
41802
  name: "likertOrientation",
41695
41803
  value: t.likertOrientation,
@@ -41701,18 +41809,18 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41701
41809
  });
41702
41810
  },
41703
41811
  children: [/* @__PURE__ */ M(ye, {
41704
- value: jX.horizontal,
41705
- control: /* @__PURE__ */ M(pZ, {}),
41812
+ value: BX.horizontal,
41813
+ control: /* @__PURE__ */ M(SZ, {}),
41706
41814
  label: "Horizontal"
41707
41815
  }), /* @__PURE__ */ M(ye, {
41708
- value: jX.vertical,
41709
- control: /* @__PURE__ */ M(pZ, {}),
41816
+ value: BX.vertical,
41817
+ control: /* @__PURE__ */ M(SZ, {}),
41710
41818
  label: "Vertical"
41711
41819
  })]
41712
41820
  })] });
41713
- }, hZ = (e) => {
41821
+ }, wZ = (e) => {
41714
41822
  let { model: t, onChangeModel: n } = e;
41715
- return /* @__PURE__ */ N(tZ, { children: [/* @__PURE__ */ M(nZ, { children: "Likert Scale" }), /* @__PURE__ */ N(Kq, {
41823
+ return /* @__PURE__ */ N(uZ, { children: [/* @__PURE__ */ M(dZ, { children: "Likert Scale" }), /* @__PURE__ */ N(tJ, {
41716
41824
  "aria-label": "likertScale",
41717
41825
  name: "likertScale",
41718
41826
  value: t.likertScale,
@@ -41721,98 +41829,98 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41721
41829
  n({
41722
41830
  ...t,
41723
41831
  likertScale: r,
41724
- choices: XX(r, t.likertType)
41832
+ choices: aZ(r, t.likertType)
41725
41833
  });
41726
41834
  },
41727
41835
  children: [
41728
41836
  /* @__PURE__ */ M(ye, {
41729
- value: kX.likert3,
41730
- control: /* @__PURE__ */ M(pZ, {}),
41837
+ value: RX.likert3,
41838
+ control: /* @__PURE__ */ M(SZ, {}),
41731
41839
  label: "Likert 3"
41732
41840
  }),
41733
41841
  /* @__PURE__ */ M(ye, {
41734
- value: kX.likert5,
41735
- control: /* @__PURE__ */ M(pZ, {}),
41842
+ value: RX.likert5,
41843
+ control: /* @__PURE__ */ M(SZ, {}),
41736
41844
  label: "Likert 5"
41737
41845
  }),
41738
41846
  /* @__PURE__ */ M(ye, {
41739
- value: kX.likert7,
41740
- control: /* @__PURE__ */ M(pZ, {}),
41847
+ value: RX.likert7,
41848
+ control: /* @__PURE__ */ M(SZ, {}),
41741
41849
  label: "Likert 7"
41742
41850
  })
41743
41851
  ]
41744
41852
  })] });
41745
- }, gZ = (e) => {
41853
+ }, TZ = (e) => {
41746
41854
  let { model: t, onChangeModel: n } = e, r = (e) => {
41747
41855
  let r = e.target.value;
41748
41856
  n({
41749
41857
  ...t,
41750
41858
  likertType: r,
41751
- choices: XX(t.likertScale, r)
41859
+ choices: aZ(t.likertScale, r)
41752
41860
  });
41753
41861
  };
41754
- return /* @__PURE__ */ N(tZ, { children: [/* @__PURE__ */ M(nZ, { children: "Label Type" }), /* @__PURE__ */ N(cZ, { children: [/* @__PURE__ */ N(Kq, {
41862
+ return /* @__PURE__ */ N(uZ, { children: [/* @__PURE__ */ M(dZ, { children: "Label Type" }), /* @__PURE__ */ N(_Z, { children: [/* @__PURE__ */ N(tJ, {
41755
41863
  "aria-label": "likertLabelType",
41756
41864
  name: "likertLabelType",
41757
41865
  value: t.likertType,
41758
41866
  onChange: r,
41759
41867
  children: [
41760
41868
  /* @__PURE__ */ M(ye, {
41761
- value: AX.agreement,
41762
- control: /* @__PURE__ */ M(pZ, {}),
41869
+ value: zX.agreement,
41870
+ control: /* @__PURE__ */ M(SZ, {}),
41763
41871
  label: "Agreement"
41764
41872
  }),
41765
41873
  /* @__PURE__ */ M(ye, {
41766
- value: AX.frequency,
41767
- control: /* @__PURE__ */ M(pZ, {}),
41874
+ value: zX.frequency,
41875
+ control: /* @__PURE__ */ M(SZ, {}),
41768
41876
  label: "Frequency"
41769
41877
  }),
41770
41878
  /* @__PURE__ */ M(ye, {
41771
- value: AX.yesNo,
41772
- control: /* @__PURE__ */ M(pZ, {}),
41879
+ value: zX.yesNo,
41880
+ control: /* @__PURE__ */ M(SZ, {}),
41773
41881
  label: "Yes/No"
41774
41882
  })
41775
41883
  ]
41776
- }), /* @__PURE__ */ N(Kq, {
41884
+ }), /* @__PURE__ */ N(tJ, {
41777
41885
  "aria-label": "likertLabelType",
41778
41886
  name: "likertLabelType",
41779
41887
  value: t.likertType,
41780
41888
  onChange: r,
41781
41889
  children: [
41782
41890
  /* @__PURE__ */ M(ye, {
41783
- value: AX.importance,
41784
- control: /* @__PURE__ */ M(pZ, {}),
41891
+ value: zX.importance,
41892
+ control: /* @__PURE__ */ M(SZ, {}),
41785
41893
  label: "Importance"
41786
41894
  }),
41787
41895
  /* @__PURE__ */ M(ye, {
41788
- value: AX.likelihood,
41789
- control: /* @__PURE__ */ M(pZ, {}),
41896
+ value: zX.likelihood,
41897
+ control: /* @__PURE__ */ M(SZ, {}),
41790
41898
  label: "Likelihood"
41791
41899
  }),
41792
41900
  /* @__PURE__ */ M(ye, {
41793
- value: AX.like,
41794
- control: /* @__PURE__ */ M(pZ, {}),
41901
+ value: zX.like,
41902
+ control: /* @__PURE__ */ M(SZ, {}),
41795
41903
  label: "Like"
41796
41904
  })
41797
41905
  ]
41798
41906
  })] })] });
41799
- }, _Z = (e) => e.choices.reduce((e, t) => {
41907
+ }, EZ = (e) => e.choices.reduce((e, t) => {
41800
41908
  let n = { ...e }, r = parseInt(t.value);
41801
41909
  return n[r] || (n[r] = 0), {
41802
41910
  ...n,
41803
41911
  [r]: n[r] + 1
41804
41912
  };
41805
- }, {}), vZ = (e) => {
41806
- let { configuration: t, imageSupport: n, model: r, onChangeModel: i, onChoiceChanged: a, onConfigurationChanged: o, onPromptChanged: s, onTeacherInstructionsChanged: c, uploadSoundSupport: l } = e, { contentDimensions: u = {}, prompt: d = {}, scoringType: f = {}, settingsPanelDisabled: p, spellCheck: m = {}, teacherInstructions: h = {}, baseInputConfiguration: g = {}, likertChoice: _ = {} } = t || {}, { errors: v = {}, extraCSSRules: y, spellCheckEnabled: b, teacherInstructionsEnabled: x } = r || {}, { prompt: S, teacherInstructions: C } = v, w = _Z(r), ee = {
41807
- teacherInstructionsEnabled: h.settings && QX(h.label),
41808
- spellCheckEnabled: m.settings && QX(m.label),
41809
- scoringType: f.settings && $X(f.label, ["auto", "rubric"])
41913
+ }, {}), DZ = (e) => {
41914
+ let { configuration: t, imageSupport: n, model: r, onChangeModel: i, onChoiceChanged: a, onConfigurationChanged: o, onPromptChanged: s, onTeacherInstructionsChanged: c, uploadSoundSupport: l } = e, { contentDimensions: u = {}, prompt: d = {}, scoringType: f = {}, settingsPanelDisabled: p, spellCheck: m = {}, teacherInstructions: h = {}, baseInputConfiguration: g = {}, likertChoice: _ = {} } = t || {}, { errors: v = {}, extraCSSRules: y, spellCheckEnabled: b, teacherInstructionsEnabled: x } = r || {}, { prompt: S, teacherInstructions: C } = v, w = EZ(r), ee = {
41915
+ teacherInstructionsEnabled: h.settings && sZ(h.label),
41916
+ spellCheckEnabled: m.settings && sZ(m.label),
41917
+ scoringType: f.settings && cZ(f.label, ["auto", "rubric"])
41810
41918
  }, T = (e = {}) => Object.assign({ ...g }, e || {});
41811
- return /* @__PURE__ */ N(RY.ConfigLayout, {
41919
+ return /* @__PURE__ */ N(qY.ConfigLayout, {
41812
41920
  extraCSSRules: y,
41813
41921
  dimensions: u,
41814
41922
  hideSettings: p,
41815
- settings: /* @__PURE__ */ M(ZX, {
41923
+ settings: /* @__PURE__ */ M(oZ, {
41816
41924
  model: r,
41817
41925
  onChangeModel: i,
41818
41926
  configuration: t,
@@ -41820,9 +41928,9 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41820
41928
  groups: { Properties: ee }
41821
41929
  }),
41822
41930
  children: [
41823
- x && /* @__PURE__ */ N(eZ, {
41931
+ x && /* @__PURE__ */ N(lZ, {
41824
41932
  label: h.label,
41825
- children: [/* @__PURE__ */ M(zq, {
41933
+ children: [/* @__PURE__ */ M(Jq, {
41826
41934
  markup: r.teacherInstructions || "",
41827
41935
  onChange: c,
41828
41936
  imageSupport: n,
@@ -41831,11 +41939,11 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41831
41939
  spellCheck: b,
41832
41940
  uploadSoundSupport: l,
41833
41941
  pluginProps: T(h?.inputConfiguration)
41834
- }), C && /* @__PURE__ */ M(fZ, { children: C })]
41942
+ }), C && /* @__PURE__ */ M(xZ, { children: C })]
41835
41943
  }),
41836
- /* @__PURE__ */ N(eZ, {
41944
+ /* @__PURE__ */ N(lZ, {
41837
41945
  label: d.label,
41838
- children: [/* @__PURE__ */ M(zq, {
41946
+ children: [/* @__PURE__ */ M(Jq, {
41839
41947
  markup: r.prompt,
41840
41948
  onChange: s,
41841
41949
  imageSupport: n,
@@ -41845,27 +41953,27 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41845
41953
  disableUnderline: !0,
41846
41954
  uploadSoundSupport: l,
41847
41955
  pluginProps: T(d?.inputConfiguration)
41848
- }), S && /* @__PURE__ */ M(fZ, { children: S })]
41956
+ }), S && /* @__PURE__ */ M(xZ, { children: S })]
41849
41957
  }),
41850
- /* @__PURE__ */ N(iZ, { children: [
41851
- /* @__PURE__ */ M(hZ, {
41958
+ /* @__PURE__ */ N(pZ, { children: [
41959
+ /* @__PURE__ */ M(wZ, {
41852
41960
  model: r,
41853
41961
  onChangeModel: i
41854
41962
  }),
41855
- /* @__PURE__ */ M(gZ, {
41963
+ /* @__PURE__ */ M(TZ, {
41856
41964
  model: r,
41857
41965
  onChangeModel: i
41858
41966
  }),
41859
- /* @__PURE__ */ M(mZ, {
41967
+ /* @__PURE__ */ M(CZ, {
41860
41968
  model: r,
41861
41969
  onChangeModel: i
41862
41970
  })
41863
41971
  ] }),
41864
- r.choices.map((e, t) => /* @__PURE__ */ N(rZ, { children: [
41865
- /* @__PURE__ */ N(dZ, { children: [t + 1, "."] }),
41866
- /* @__PURE__ */ M(aZ, {
41972
+ r.choices.map((e, t) => /* @__PURE__ */ N(fZ, { children: [
41973
+ /* @__PURE__ */ N(bZ, { children: [t + 1, "."] }),
41974
+ /* @__PURE__ */ M(mZ, {
41867
41975
  label: "Likert Label",
41868
- children: /* @__PURE__ */ M(uZ, {
41976
+ children: /* @__PURE__ */ M(yZ, {
41869
41977
  markup: e.label || "",
41870
41978
  onChange: (n) => a(t, {
41871
41979
  ...e,
@@ -41877,7 +41985,7 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41877
41985
  pluginProps: T(_?.inputConfiguration)
41878
41986
  })
41879
41987
  }, `likert-label-${t}`),
41880
- /* @__PURE__ */ N(lZ, { children: [/* @__PURE__ */ M(sZ, {
41988
+ /* @__PURE__ */ N(vZ, { children: [/* @__PURE__ */ M(gZ, {
41881
41989
  label: "Likert Value",
41882
41990
  value: e.value,
41883
41991
  max: 100,
@@ -41889,11 +41997,11 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41889
41997
  });
41890
41998
  },
41891
41999
  imageSupport: n
41892
- }), w[e.value] && w[e.value] > 1 && /* @__PURE__ */ M(oZ, { children: "Value should be unique" })] })
42000
+ }), w[e.value] && w[e.value] > 1 && /* @__PURE__ */ M(hZ, { children: "Value should be unique" })] })
41893
42001
  ] }, `choice-${t}`))
41894
42002
  ]
41895
42003
  });
41896
- }, yZ = class extends Ye.Component {
42004
+ }, OZ = class extends Ye.Component {
41897
42005
  static propTypes = {
41898
42006
  model: V.default.object.isRequired,
41899
42007
  disableSidePanel: V.default.bool,
@@ -41921,7 +42029,7 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41921
42029
  });
41922
42030
  };
41923
42031
  render() {
41924
- return /* @__PURE__ */ M(vZ, {
42032
+ return /* @__PURE__ */ M(DZ, {
41925
42033
  ...this.props,
41926
42034
  onChangeModel: this.props.onModelChanged,
41927
42035
  onChoiceChanged: this.onChoiceChanged,
@@ -41929,7 +42037,7 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41929
42037
  onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
41930
42038
  });
41931
42039
  }
41932
- }, bZ = {
42040
+ }, kZ = {
41933
42041
  model: {
41934
42042
  choices: [],
41935
42043
  likertOrientation: "horizontal",
@@ -41985,17 +42093,17 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41985
42093
  }
41986
42094
  }
41987
42095
  }
41988
- }, xZ = (0, ht.default)("likert:configure"), SZ = (e, t) => ({
41989
- configuration: Tt(e, bZ.configuration),
42096
+ }, AZ = (0, ht.default)("likert:configure"), jZ = (e, t) => ({
42097
+ configuration: Tt(e, kZ.configuration),
41990
42098
  model: t
41991
- }), CZ = class e extends HTMLElement {
42099
+ }), MZ = class e extends HTMLElement {
41992
42100
  static createDefaultModel = (e = {}) => ({
41993
- ...bZ.model,
42101
+ ...kZ.model,
41994
42102
  ...e,
41995
42103
  choices: e && e.choices || []
41996
42104
  });
41997
42105
  constructor() {
41998
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = bZ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42106
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = kZ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
41999
42107
  }
42000
42108
  set model(t) {
42001
42109
  this._model = e.createDefaultModel(t), this._model = {
@@ -42007,7 +42115,7 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
42007
42115
  }, this._render();
42008
42116
  }
42009
42117
  set configuration(e) {
42010
- let t = SZ(e, this._model);
42118
+ let t = jZ(e, this._model);
42011
42119
  this.onModelChanged(t.model), this._configuration = t.configuration, this._render();
42012
42120
  }
42013
42121
  set disableSidePanel(e) {
@@ -42021,7 +42129,7 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
42021
42129
  this._model = e, this._render(), this.dispatchModelUpdated(t);
42022
42130
  }
42023
42131
  onConfigurationChanged(e) {
42024
- this._configuration = SZ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42132
+ this._configuration = jZ(e, this._model).configuration, this._model && this.onModelChanged(this._model), this._render();
42025
42133
  }
42026
42134
  insertSound(e) {
42027
42135
  this.dispatchEvent(new vt(e));
@@ -42030,8 +42138,8 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
42030
42138
  this.dispatchEvent(new _t(e, t));
42031
42139
  }
42032
42140
  _render() {
42033
- xZ("_render");
42034
- let e = Ye.createElement(yZ, {
42141
+ AZ("_render");
42142
+ let e = Ye.createElement(OZ, {
42035
42143
  model: this._model,
42036
42144
  configuration: this._configuration,
42037
42145
  onModelChanged: this.onModelChanged,
@@ -42052,6 +42160,6 @@ var TX = wX(me, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
42052
42160
  }
42053
42161
  };
42054
42162
  //#endregion
42055
- export { CZ as default };
42163
+ export { MZ as default };
42056
42164
 
42057
42165
  //# sourceMappingURL=index.js.map