@pie-element/passage 7.1.2-next.7 → 7.1.2-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39183,8 +39183,8 @@ Wb.create({
39183
39183
  })) ?? null };
39184
39184
  }
39185
39185
  });
39186
- var Jq = "placeholder", Yq = new Zu("tiptap__placeholder"), Xq = 200;
39187
- function Zq(e) {
39186
+ var Jq = "placeholder", Yq = new Zu("tiptap__placeholder");
39187
+ function Xq(e) {
39188
39188
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
39189
39189
  return o && u.push(l), qg.node(i, i + a.nodeSize, {
39190
39190
  class: u.join(" "),
@@ -39196,156 +39196,198 @@ function Zq(e) {
39196
39196
  }) : n
39197
39197
  });
39198
39198
  }
39199
- function Qq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
39199
+ function Zq(e, t) {
39200
+ return typeof e == "function" ? e(t) : e;
39201
+ }
39202
+ function Qq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
39203
+ let { anchor: s } = i, c = [], l = e.isEmpty;
39204
+ return r.nodesBetween(a, o, (r, i) => {
39205
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && Qy(r);
39206
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(Xq({
39207
+ editor: e,
39208
+ isEmptyDoc: l,
39209
+ dataAttribute: n,
39210
+ hasAnchor: a,
39211
+ placeholder: t.placeholder,
39212
+ classes: {
39213
+ emptyEditor: t.emptyEditorClass,
39214
+ emptyNode: Zq(t.emptyNodeClass, {
39215
+ editor: e,
39216
+ node: r,
39217
+ pos: i,
39218
+ hasAnchor: a
39219
+ })
39220
+ },
39221
+ node: r,
39222
+ pos: i
39223
+ })), t.includeChildren;
39224
+ }), c;
39225
+ }
39226
+ function $q({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
39200
39227
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
39201
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
39202
- emptyEditor: t.emptyEditorClass,
39203
- emptyNode: t.emptyNodeClass
39204
- };
39228
+ let { anchor: a } = i, o = [], s = e.isEmpty;
39205
39229
  if (t.showOnlyCurrent && !t.includeChildren) {
39206
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
39207
- if (l && l.type.isTextblock && Qy(l)) {
39208
- let r = a >= u && a <= u + l.nodeSize;
39209
- o.push(Zq({
39230
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
39231
+ if (c && c.type.isTextblock && Qy(c)) {
39232
+ let r = a >= l && a <= l + c.nodeSize;
39233
+ o.push(Xq({
39210
39234
  editor: e,
39211
39235
  isEmptyDoc: s,
39212
39236
  dataAttribute: n,
39213
39237
  hasAnchor: r,
39214
39238
  placeholder: t.placeholder,
39215
- classes: c,
39216
- node: l,
39217
- pos: u
39239
+ classes: {
39240
+ emptyEditor: t.emptyEditorClass,
39241
+ emptyNode: Zq(t.emptyNodeClass, {
39242
+ editor: e,
39243
+ node: c,
39244
+ pos: l,
39245
+ hasAnchor: r
39246
+ })
39247
+ },
39248
+ node: c,
39249
+ pos: l
39218
39250
  }));
39219
39251
  }
39220
- } else {
39221
- let i = Yq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
39222
- r.nodesBetween(l, u, (r, i) => {
39223
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && Qy(r);
39224
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(Zq({
39225
- editor: e,
39226
- isEmptyDoc: s,
39227
- dataAttribute: n,
39228
- hasAnchor: l,
39229
- placeholder: t.placeholder,
39230
- classes: c,
39231
- node: r,
39232
- pos: i
39233
- })), t.includeChildren;
39234
- });
39235
- }
39252
+ } else o.push(...Qq({
39253
+ editor: e,
39254
+ options: t,
39255
+ dataAttribute: n,
39256
+ doc: r,
39257
+ selection: i,
39258
+ from: 0,
39259
+ to: r.content.size
39260
+ }));
39236
39261
  return Xg.create(r, o);
39237
39262
  }
39238
- function $q(e) {
39239
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39263
+ function eJ(e, t) {
39264
+ let n = e.resolve(t);
39265
+ if (n.depth === 0) {
39266
+ let e = n.nodeAfter ?? n.nodeBefore;
39267
+ if (!e) return {
39268
+ from: t,
39269
+ to: t
39270
+ };
39271
+ let r = n.nodeAfter ? t : t - e.nodeSize;
39272
+ return {
39273
+ from: r,
39274
+ to: r + e.nodeSize
39275
+ };
39276
+ }
39277
+ let r = n.before(1);
39278
+ return {
39279
+ from: r,
39280
+ to: r + n.node(1).nodeSize
39281
+ };
39240
39282
  }
39241
- function eJ(e) {
39242
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
39243
- return /auto|scroll|overlay/.test(n);
39283
+ function tJ(e, t) {
39284
+ return {
39285
+ from: Math.max(0, t.from - 1),
39286
+ to: Math.min(e.content.size, t.to - 1)
39287
+ };
39244
39288
  }
39245
- function tJ(e) {
39246
- let t = e;
39247
- for (; t;) {
39248
- if (eJ(t)) return t;
39249
- let e = t.parentElement;
39250
- if (!e) {
39251
- let e = t.getRootNode();
39252
- if (e instanceof ShadowRoot) {
39253
- t = e.host;
39254
- continue;
39255
- }
39256
- return window;
39257
- }
39258
- t = e;
39289
+ function nJ(e, t, n) {
39290
+ let r = [];
39291
+ return e.forEach((e, i) => {
39292
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
39293
+ s < n && c > t && r.push({
39294
+ from: a,
39295
+ to: o
39296
+ });
39297
+ }), r;
39298
+ }
39299
+ function rJ(e) {
39300
+ if (e.length === 0) return [];
39301
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
39302
+ for (let e = 1; e < t.length; e += 1) {
39303
+ let r = n[n.length - 1], i = t[e];
39304
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
39259
39305
  }
39260
- return window;
39306
+ return n;
39261
39307
  }
39262
- function nJ(e) {
39263
- return e === window ? {
39264
- top: 0,
39265
- bottom: window.innerHeight
39266
- } : e.getBoundingClientRect();
39308
+ function iJ(e, t) {
39309
+ let n = nJ(e, t.from, t.to);
39310
+ return n.push(tJ(e, eJ(e, t.from))), t.to > t.from ? n.push(tJ(e, eJ(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(tJ(e, eJ(e, Math.min(t.from + 1, e.content.size)))), n;
39267
39311
  }
39268
- function rJ({ doc: e, view: t, scrollContainer: n }) {
39269
- let r = t.dom.getBoundingClientRect(), i = n ? nJ(n) : {
39270
- top: 0,
39271
- bottom: window.innerHeight
39272
- }, a = Math.max(r.top, i.top) - Xq, o = Math.min(r.bottom, i.bottom) + Xq;
39273
- if (a >= o) return {
39274
- top: 0,
39275
- bottom: e.content.size
39276
- };
39277
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
39278
- left: s,
39279
- top: a + 2
39280
- }), l = t.posAtCoords({
39281
- left: s,
39282
- top: o - 2
39283
- });
39284
- return {
39285
- top: c ? c.pos : 0,
39286
- bottom: l ? l.pos : e.content.size
39287
- };
39312
+ function aJ(e, t, n) {
39313
+ let r = [];
39314
+ if (e.docChanged) {
39315
+ let t = Vy(e);
39316
+ for (let e of t) r.push(...iJ(n.doc, e.newRange));
39317
+ }
39318
+ return e.selectionSet && (r.push(tJ(n.doc, eJ(n.doc, e.mapping.map(t.selection.anchor)))), r.push(tJ(n.doc, eJ(n.doc, n.selection.anchor)))), rJ(r);
39288
39319
  }
39289
- var iJ = {
39290
- init() {
39291
- return {
39292
- topPos: null,
39293
- bottomPos: null
39294
- };
39295
- },
39296
- apply(e, t) {
39297
- let n = e.getMeta(Yq);
39298
- return n?.positions ? {
39299
- topPos: n.positions.top,
39300
- bottomPos: n.positions.bottom
39301
- } : e.docChanged ? {
39302
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
39303
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
39304
- } : t;
39320
+ function oJ(e, t, n) {
39321
+ let r = Math.max(0, Math.min(e, n.content.size));
39322
+ return {
39323
+ from: r,
39324
+ to: Math.max(r, Math.min(t, n.content.size))
39325
+ };
39326
+ }
39327
+ function sJ({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
39328
+ let s = e;
39329
+ for (let e of t) {
39330
+ let { from: t, to: c } = oJ(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
39331
+ l.length && (s = s.remove(l));
39332
+ let u = Qq({
39333
+ editor: n,
39334
+ options: r,
39335
+ dataAttribute: i,
39336
+ doc: a,
39337
+ selection: o,
39338
+ from: t,
39339
+ to: c
39340
+ });
39341
+ u.length && (s = s.add(a, u));
39305
39342
  }
39306
- };
39307
- function aJ(e) {
39308
- let t = tJ(e.dom), n = () => {
39309
- let n = rJ({
39310
- view: e,
39311
- doc: e.state.doc,
39312
- scrollContainer: t
39313
- }), r = Yq.getState(e.state);
39314
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
39315
- let i = e.state.tr.setMeta(Yq, { positions: n });
39316
- e.dispatch(i);
39317
- }, r = null, i = 0, a = () => {
39318
- r === null && (r = requestAnimationFrame(() => {
39319
- r = null;
39320
- let e = performance.now();
39321
- e - i >= 150 ? (i = e, n()) : a();
39322
- }));
39323
- };
39324
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
39325
- update(t, n) {
39326
- e.state.doc.content.size !== n.doc.content.size && a();
39343
+ return s;
39344
+ }
39345
+ function cJ({ editor: e, options: t, dataAttribute: n }) {
39346
+ return {
39347
+ init(r, i) {
39348
+ return $q({
39349
+ editor: e,
39350
+ options: t,
39351
+ dataAttribute: n,
39352
+ doc: i.doc,
39353
+ selection: i.selection
39354
+ }) ?? Xg.empty;
39327
39355
  },
39328
- destroy: () => {
39329
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39356
+ apply(r, i, a, o) {
39357
+ return !r.docChanged && !r.selectionSet ? i : sJ({
39358
+ decorations: i.map(r.mapping, r.doc),
39359
+ ranges: aJ(r, a, o),
39360
+ editor: e,
39361
+ options: t,
39362
+ dataAttribute: n,
39363
+ doc: o.doc,
39364
+ selection: o.selection
39365
+ });
39330
39366
  }
39331
39367
  };
39332
39368
  }
39333
- function oJ({ editor: e, options: t }) {
39334
- let n = t.dataAttribute ? `data-${$q(t.dataAttribute)}` : `data-${Jq}`;
39369
+ function lJ(e) {
39370
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39371
+ }
39372
+ function uJ({ editor: e, options: t }) {
39373
+ let n = t.dataAttribute ? `data-${lJ(t.dataAttribute)}` : `data-${Jq}`, r = t.showOnlyCurrent && !t.includeChildren;
39335
39374
  return new z({
39336
39375
  key: Yq,
39337
- state: iJ,
39338
- view: aJ,
39339
- props: { decorations: ({ doc: r, selection: i }) => Qq({
39376
+ ...r ? {} : { state: cJ({
39377
+ editor: e,
39378
+ options: t,
39379
+ dataAttribute: n
39380
+ }) },
39381
+ props: { decorations: r ? ({ doc: r, selection: i }) => $q({
39340
39382
  editor: e,
39341
39383
  options: t,
39342
39384
  dataAttribute: n,
39343
39385
  doc: r,
39344
39386
  selection: i
39345
- }) }
39387
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? Xg.empty : Yq.getState(n) ?? Xg.empty }
39346
39388
  });
39347
39389
  }
39348
- var sJ = Wb.create({
39390
+ var dJ = Wb.create({
39349
39391
  name: "placeholder",
39350
39392
  addOptions() {
39351
39393
  return {
@@ -39359,12 +39401,25 @@ var sJ = Wb.create({
39359
39401
  };
39360
39402
  },
39361
39403
  addProseMirrorPlugins() {
39362
- return [oJ({
39404
+ return [uJ({
39363
39405
  editor: this.editor,
39364
39406
  options: this.options
39365
39407
  })];
39366
39408
  }
39367
39409
  });
39410
+ function fJ(e, t) {
39411
+ return !e.selection.empty && !$y(e.selection) && t.isEditable;
39412
+ }
39413
+ function pJ(e, t) {
39414
+ return fJ(e, t) && !t.isFocused && !t.view.dragging;
39415
+ }
39416
+ function mJ() {
39417
+ var e;
39418
+ (e = window.getSelection()) == null || e.removeAllRanges();
39419
+ }
39420
+ function hJ(e) {
39421
+ e.focus();
39422
+ }
39368
39423
  Wb.create({
39369
39424
  name: "selection",
39370
39425
  addOptions() {
@@ -39374,13 +39429,25 @@ Wb.create({
39374
39429
  let { editor: e, options: t } = this;
39375
39430
  return [new z({
39376
39431
  key: new Zu("selection"),
39377
- props: { decorations(n) {
39378
- return n.selection.empty || e.isFocused || !e.isEditable || $y(n.selection) || e.view.dragging ? null : Xg.create(n.doc, [qg.inline(n.selection.from, n.selection.to, { class: t.className })]);
39379
- } }
39432
+ props: {
39433
+ decorations(n) {
39434
+ return pJ(n, e) ? Xg.create(n.doc, [qg.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39435
+ },
39436
+ handleDOMEvents: {
39437
+ blur(t) {
39438
+ return fJ(t.state, e) && mJ(), !1;
39439
+ },
39440
+ focus(t) {
39441
+ return fJ(t.state, e) && requestAnimationFrame(() => {
39442
+ !e.isDestroyed && t.hasFocus() && hJ(t);
39443
+ }), !1;
39444
+ }
39445
+ }
39446
+ }
39380
39447
  })];
39381
39448
  }
39382
39449
  });
39383
- function cJ({ types: e, node: t }) {
39450
+ function gJ({ types: e, node: t }) {
39384
39451
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39385
39452
  }
39386
39453
  Wb.create({
@@ -39402,7 +39469,7 @@ Wb.create({
39402
39469
  state: {
39403
39470
  init: (e, t) => {
39404
39471
  let r = t.tr.doc.lastChild;
39405
- return !cJ({
39472
+ return !gJ({
39406
39473
  node: r,
39407
39474
  types: n
39408
39475
  });
@@ -39410,7 +39477,7 @@ Wb.create({
39410
39477
  apply: (e, t) => {
39411
39478
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39412
39479
  let r = e.doc.lastChild;
39413
- return !cJ({
39480
+ return !gJ({
39414
39481
  node: r,
39415
39482
  types: n
39416
39483
  });
@@ -39445,7 +39512,7 @@ Wb.create({
39445
39512
  };
39446
39513
  }
39447
39514
  });
39448
- var lJ = Ib.create({
39515
+ var _J = Ib.create({
39449
39516
  name: "superscript",
39450
39517
  addOptions() {
39451
39518
  return { HTMLAttributes: {} };
@@ -39475,7 +39542,7 @@ var lJ = Ib.create({
39475
39542
  addKeyboardShortcuts() {
39476
39543
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
39477
39544
  }
39478
- }), uJ = Ib.create({
39545
+ }), vJ = Ib.create({
39479
39546
  name: "subscript",
39480
39547
  addOptions() {
39481
39548
  return { HTMLAttributes: {} };
@@ -39505,7 +39572,7 @@ var lJ = Ib.create({
39505
39572
  addKeyboardShortcuts() {
39506
39573
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
39507
39574
  }
39508
- }), dJ = Wb.create({
39575
+ }), yJ = Wb.create({
39509
39576
  name: "textAlign",
39510
39577
  addOptions() {
39511
39578
  return {
@@ -39547,7 +39614,7 @@ var lJ = Ib.create({
39547
39614
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
39548
39615
  };
39549
39616
  }
39550
- }), fJ = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, pJ = bx.create({
39617
+ }), bJ = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, xJ = bx.create({
39551
39618
  name: "image",
39552
39619
  addOptions() {
39553
39620
  return {
@@ -39640,7 +39707,7 @@ var lJ = Ib.create({
39640
39707
  },
39641
39708
  addInputRules() {
39642
39709
  return [ox({
39643
- find: fJ,
39710
+ find: bJ,
39644
39711
  type: this.type,
39645
39712
  getAttributes: (e) => {
39646
39713
  let [, , t, n, r] = e;
@@ -39652,17 +39719,17 @@ var lJ = Ib.create({
39652
39719
  }
39653
39720
  })];
39654
39721
  }
39655
- }), mJ = sJ, hJ = {
39722
+ }), SJ = dJ, CJ = {
39656
39723
  position: "bottom",
39657
39724
  alignment: "left",
39658
39725
  alwaysVisible: !1,
39659
39726
  showDone: !0,
39660
39727
  doneOn: "blur"
39661
- }, gJ = {
39728
+ }, wJ = {
39662
39729
  options: {},
39663
39730
  respAreaToolbar: () => {},
39664
39731
  onHandleAreaChange: () => {}
39665
- }, _J = [
39732
+ }, TJ = [
39666
39733
  "bold",
39667
39734
  "italic",
39668
39735
  "underline",
@@ -39684,7 +39751,7 @@ var lJ = Ib.create({
39684
39751
  "h3",
39685
39752
  "undo",
39686
39753
  "redo"
39687
- ], vJ = {
39754
+ ], EJ = {
39688
39755
  "--white": "#fff",
39689
39756
  "--black": "#2e2b29",
39690
39757
  "--black-contrast": "#110f0e",
@@ -39703,14 +39770,18 @@ var lJ = Ib.create({
39703
39770
  "--red": "#ff5c33",
39704
39771
  "--red-light": "#ffebe5",
39705
39772
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
39706
- }, yJ = (e) => {
39773
+ }, DJ = (e) => ({
39774
+ spellcheck: e ? "true" : "false",
39775
+ autocorrect: e ? "on" : "off",
39776
+ autocapitalize: e ? "on" : "off"
39777
+ }), OJ = (e) => {
39707
39778
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = yt([]), [a, o] = yt(!1), { toolbarOpts: s } = e, c = ft((e) => {
39708
39779
  i((t) => {
39709
39780
  let n = t.filter((t) => t.pos !== e);
39710
39781
  return n.length === 0 && o(!1), n;
39711
39782
  });
39712
39783
  }, [i]), l = {
39713
- ...hJ,
39784
+ ...CJ,
39714
39785
  ...s
39715
39786
  }, u = ft((t) => {
39716
39787
  let n = t.getHTML();
@@ -39721,13 +39792,13 @@ var lJ = Ib.create({
39721
39792
  e.onDone,
39722
39793
  l.doneOn
39723
39794
  ]), d = _t(() => ({
39724
- ...gJ,
39795
+ ...wJ,
39725
39796
  ...e.responseAreaProps,
39726
39797
  onInlineDropdownToolbarClose: u
39727
39798
  }), [e.responseAreaProps, u]), f = _t(() => {
39728
39799
  let { customPlugins: t, ...n } = e.pluginProps || {};
39729
39800
  t ||= [];
39730
- let r = (e.activePlugins || _J)?.filter((e) => {
39801
+ let r = (e.activePlugins || TJ)?.filter((e) => {
39731
39802
  let t = Hs[e] || e, r = n[t] || {};
39732
39803
  return !r || !r.disabled;
39733
39804
  });
@@ -39745,103 +39816,112 @@ var lJ = Ib.create({
39745
39816
  setKeypadInteraction: {},
39746
39817
  media: {}
39747
39818
  });
39748
- }, [e, d.type]), p = Ek({
39749
- extensions: [
39750
- dJ.configure({
39751
- types: [
39752
- "heading",
39753
- "paragraph",
39754
- "div",
39755
- "headingParagraph",
39756
- "h1",
39757
- "h2",
39758
- "h3",
39759
- "h4",
39760
- "h5",
39761
- "h6",
39762
- "td",
39763
- "th"
39764
- ],
39765
- alignments: [
39766
- "left",
39767
- "right",
39768
- "center",
39769
- "justify"
39770
- ]
39771
- }),
39772
- Kq,
39773
- qq.configure({ limit: e.charactersLimit || 1e6 }),
39774
- Iq.configure({ trailingNode: {
39819
+ }, [e, d.type]), p = [
39820
+ yJ.configure({
39821
+ types: [
39822
+ "heading",
39823
+ "paragraph",
39824
+ "div",
39825
+ "headingParagraph",
39826
+ "h1",
39827
+ "h2",
39828
+ "h3",
39829
+ "h4",
39830
+ "h5",
39831
+ "h6",
39832
+ "td",
39833
+ "th"
39834
+ ],
39835
+ alignments: [
39836
+ "left",
39837
+ "right",
39838
+ "center",
39839
+ "justify"
39840
+ ]
39841
+ }),
39842
+ Kq,
39843
+ qq.configure({ limit: e.charactersLimit || 1e6 }),
39844
+ Iq.configure({
39845
+ trailingNode: {
39775
39846
  node: "paragraph",
39776
39847
  notAfter: ["paragraph", "div"]
39777
- } }),
39778
- BR,
39779
- QD,
39780
- VR,
39781
- $D,
39782
- eO,
39783
- mJ.configure({
39784
- placeholder: e.placeholder,
39785
- showOnlyWhenEditable: !0,
39786
- showOnlyCurrent: !1,
39787
- includeChildren: !0
39788
- }),
39789
- JD,
39790
- MD,
39791
- ZD,
39792
- XD,
39793
- wI.configure(d),
39794
- TI.configure(d),
39795
- DI.configure(d),
39796
- OI.configure(d),
39797
- EI.configure(d),
39798
- dL.configure({
39799
- toolbarOpts: l,
39800
- math: e.pluginProps?.math || {}
39801
- }),
39802
- uJ,
39803
- lJ,
39804
- pJ,
39805
- ML.configure({
39806
- toolbarOpts: l,
39807
- imageHandling: {
39808
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39809
- onDone: (t) => e.onDone?.(t.getHTML()),
39810
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39811
- let { src: n } = t.attrs;
39812
- e.imageSupport.delete(n, (e) => {
39813
- c(t.pos);
39814
- });
39815
- }),
39816
- insertImageRequested: e.imageSupport && ((t, n, r) => {
39817
- let [o, s] = n, l = (n) => {
39818
- let r;
39819
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39820
- };
39821
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
39822
- let n = r(l), i = et(() => {
39823
- let e = () => window.removeEventListener("focus", i);
39824
- if (!t._insertingImage) {
39825
- e();
39826
- return;
39827
- }
39828
- c(s), t._insertingImage = !1, e();
39829
- }, 500);
39830
- window.addEventListener("focus", i), e.imageSupport.add(n);
39831
- })();
39832
- }),
39833
- maxImageWidth: e.maxImageWidth,
39834
- maxImageHeight: e.maxImageHeight
39835
- },
39836
- limit: 3
39837
- }),
39838
- $L.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39839
- aR.configure({ extraCSSRules: e.extraCSSRules })
39840
- ],
39848
+ },
39849
+ link: {
39850
+ autolink: !1,
39851
+ linkOnPaste: !1
39852
+ }
39853
+ }),
39854
+ BR,
39855
+ QD,
39856
+ VR,
39857
+ $D,
39858
+ eO,
39859
+ SJ.configure({
39860
+ placeholder: e.placeholder,
39861
+ showOnlyWhenEditable: !0,
39862
+ showOnlyCurrent: !1,
39863
+ includeChildren: !0
39864
+ }),
39865
+ JD,
39866
+ MD,
39867
+ ZD,
39868
+ XD,
39869
+ wI.configure(d),
39870
+ TI.configure(d),
39871
+ DI.configure(d),
39872
+ OI.configure(d),
39873
+ EI.configure(d),
39874
+ dL.configure({
39875
+ toolbarOpts: l,
39876
+ math: e.pluginProps?.math || {}
39877
+ }),
39878
+ vJ,
39879
+ _J,
39880
+ xJ,
39881
+ ML.configure({
39882
+ toolbarOpts: l,
39883
+ imageHandling: {
39884
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39885
+ onDone: (t) => e.onDone?.(t.getHTML()),
39886
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39887
+ let { src: n } = t.attrs;
39888
+ e.imageSupport.delete(n, (e) => {
39889
+ c(t.pos);
39890
+ });
39891
+ }),
39892
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39893
+ let [o, s] = n, l = (n) => {
39894
+ let r;
39895
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39896
+ };
39897
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39898
+ let n = r(l), i = et(() => {
39899
+ let e = () => window.removeEventListener("focus", i);
39900
+ if (!t._insertingImage) {
39901
+ e();
39902
+ return;
39903
+ }
39904
+ c(s), t._insertingImage = !1, e();
39905
+ }, 500);
39906
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39907
+ })();
39908
+ }),
39909
+ maxImageWidth: e.maxImageWidth,
39910
+ maxImageHeight: e.maxImageHeight
39911
+ },
39912
+ limit: 3
39913
+ }),
39914
+ $L.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39915
+ aR.configure({ extraCSSRules: e.extraCSSRules })
39916
+ ], m = e.spellCheck !== !1, h = Ek({
39917
+ extensions: p,
39841
39918
  immediatelyRender: !1,
39842
- editorProps: { handleKeyDown(t, n) {
39843
- return e.onKeyDown ? e.onKeyDown(n) : !1;
39844
- } },
39919
+ editorProps: {
39920
+ attributes: DJ(m),
39921
+ handleKeyDown(t, n) {
39922
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39923
+ }
39924
+ },
39845
39925
  editable: !e.disabled,
39846
39926
  content: qs(e.markup),
39847
39927
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -39852,22 +39932,29 @@ var lJ = Ib.create({
39852
39932
  }
39853
39933
  }, [e.charactersLimit]);
39854
39934
  ht(() => {
39855
- e.editorRef && e.editorRef(p);
39856
- }, [e.editorRef, p]), ht(() => {
39857
- p?.setEditable(!e.disabled);
39858
- }, [e.disabled, p]), ht(() => {
39859
- if (!p) return;
39935
+ e.editorRef && e.editorRef(h);
39936
+ }, [e.editorRef, h]), ht(() => {
39937
+ h?.setEditable(!e.disabled);
39938
+ }, [e.disabled, h]), ht(() => {
39939
+ if (!h) return;
39940
+ let e = h.options?.editorProps, t = DJ(m);
39941
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39942
+ ...e,
39943
+ attributes: t
39944
+ } });
39945
+ }, [m, h]), ht(() => {
39946
+ if (!h) return;
39860
39947
  let t = qs(e.markup);
39861
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
39862
- }, [e.markup, p]), ht(() => {
39863
- Object.entries(vJ).forEach(([e, t]) => {
39948
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39949
+ }, [e.markup, h]), ht(() => {
39950
+ Object.entries(EJ).forEach(([e, t]) => {
39864
39951
  document.documentElement.style.setProperty(e, t);
39865
39952
  });
39866
39953
  }, []);
39867
- let m = Sk({
39868
- editor: p,
39954
+ let g = Sk({
39955
+ editor: h,
39869
39956
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39870
- }), h = _t(() => {
39957
+ }), _ = _t(() => {
39871
39958
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39872
39959
  return {
39873
39960
  width: HR(n),
@@ -39882,20 +39969,20 @@ var lJ = Ib.create({
39882
39969
  ...e,
39883
39970
  activePlugins: f,
39884
39971
  toolbarOpts: l,
39885
- editorState: m,
39886
- editor: p,
39887
- children: p && /* @__PURE__ */ j(bJ, {
39972
+ editorState: g,
39973
+ editor: h,
39974
+ children: h && /* @__PURE__ */ j(kJ, {
39888
39975
  style: {
39889
- minHeight: h.minHeight,
39890
- height: h.height,
39891
- maxHeight: h.maxHeight
39976
+ minHeight: _.minHeight,
39977
+ height: _.height,
39978
+ maxHeight: _.maxHeight
39892
39979
  },
39893
39980
  showParagraph: t && !t.disabled,
39894
39981
  separateParagraph: n && !n.disabled,
39895
- editor: p
39982
+ editor: h
39896
39983
  })
39897
39984
  });
39898
- }, bJ = S(yk, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39985
+ }, kJ = S(yk, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39899
39986
  display: "flex",
39900
39987
  outline: "none !important",
39901
39988
  "& .ProseMirror": {
@@ -39923,7 +40010,7 @@ var lJ = Ib.create({
39923
40010
  } },
39924
40011
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39925
40012
  }
39926
- })), xJ = yJ, SJ = S(v)(() => ({})), CJ = class extends at.Component {
40013
+ })), AJ = OJ, jJ = S(v)(() => ({})), MJ = class extends at.Component {
39927
40014
  static propTypes = {
39928
40015
  className: N.default.string,
39929
40016
  contentClassName: N.default.string,
@@ -39944,7 +40031,7 @@ var lJ = Ib.create({
39944
40031
  indicatorColor: "primary",
39945
40032
  value: e,
39946
40033
  onChange: this.handleChange,
39947
- children: at.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ j(SJ, { label: e.props.title }, t) : null)
40034
+ children: at.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ j(jJ, { label: e.props.title }, t) : null)
39948
40035
  }), /* @__PURE__ */ j("div", {
39949
40036
  className: r,
39950
40037
  style: i,
@@ -39952,7 +40039,7 @@ var lJ = Ib.create({
39952
40039
  })]
39953
40040
  });
39954
40041
  }
39955
- }, wJ = S(Ca)(({ theme: e, mini: t }) => ({
40042
+ }, NJ = S(Ca)(({ theme: e, mini: t }) => ({
39956
40043
  margin: 0,
39957
40044
  marginLeft: 0,
39958
40045
  padding: 0,
@@ -39966,7 +40053,7 @@ var lJ = Ib.create({
39966
40053
  fontSize: e.typography.fontSize - 3
39967
40054
  }
39968
40055
  }
39969
- })), TJ = S(Bi)(({ theme: e, mini: t, error: n }) => ({
40056
+ })), PJ = S(Bi)(({ theme: e, mini: t, error: n }) => ({
39970
40057
  color: `${i.tertiary()} !important`,
39971
40058
  ...t && {
39972
40059
  margin: 0,
@@ -39975,9 +40062,9 @@ var lJ = Ib.create({
39975
40062
  height: e.spacing(3)
39976
40063
  },
39977
40064
  ...n && { color: `${e.palette.error.main} !important` }
39978
- })), EJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ j(wJ, {
40065
+ })), FJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ j(NJ, {
39979
40066
  mini: e,
39980
- control: /* @__PURE__ */ j(TJ, {
40067
+ control: /* @__PURE__ */ j(PJ, {
39981
40068
  checked: t,
39982
40069
  onChange: n,
39983
40070
  value: r,
@@ -39986,21 +40073,21 @@ var lJ = Ib.create({
39986
40073
  }),
39987
40074
  label: i
39988
40075
  });
39989
- EJ.propTypes = {
40076
+ FJ.propTypes = {
39990
40077
  mini: N.default.bool,
39991
40078
  checked: N.default.bool.isRequired,
39992
40079
  onChange: N.default.func.isRequired,
39993
40080
  value: N.default.string,
39994
40081
  label: N.default.string.isRequired,
39995
40082
  error: N.default.bool
39996
- }, EJ.defaultProps = {
40083
+ }, FJ.defaultProps = {
39997
40084
  value: "",
39998
40085
  mini: !1,
39999
40086
  error: !1
40000
40087
  };
40001
40088
  //#endregion
40002
40089
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40003
- var DJ = (0, Is.default)("@pie-lib:config-ui:number-text-field"), OJ = S(Fs)(({ theme: e }) => ({
40090
+ var IJ = (0, Is.default)("@pie-lib:config-ui:number-text-field"), LJ = S(Fs)(({ theme: e }) => ({
40004
40091
  marginRight: e.spacing(1),
40005
40092
  "& .MuiInputLabel-root": {
40006
40093
  width: "auto",
@@ -40022,11 +40109,11 @@ var DJ = (0, Is.default)("@pie-lib:config-ui:number-text-field"), OJ = S(Fs)(({
40022
40109
  minHeight: "auto",
40023
40110
  padding: "6px 0 7px"
40024
40111
  }
40025
- })), kJ = (e, t) => {
40112
+ })), RJ = (e, t) => {
40026
40113
  if (!tt(e) && !tt(t)) return 0;
40027
40114
  if (!tt(e) && tt(t)) return t;
40028
40115
  if (tt(e)) return e;
40029
- }, AJ = class extends at.Component {
40116
+ }, zJ = class extends at.Component {
40030
40117
  static propTypes = {
40031
40118
  disabled: N.default.bool,
40032
40119
  className: N.default.string,
@@ -40052,13 +40139,13 @@ var DJ = (0, Is.default)("@pie-lib:config-ui:number-text-field"), OJ = S(Fs)(({
40052
40139
  this.setState({ value: t });
40053
40140
  }
40054
40141
  clamp(e, t = this.props.min, n = this.props.max) {
40055
- return tt(e) ? (tt(n) && (e = Math.min(e, n)), tt(t) && (e = Math.max(e, t)), e) : kJ(t, n);
40142
+ return tt(e) ? (tt(n) && (e = Math.min(e, n)), tt(t) && (e = Math.max(e, t)), e) : RJ(t, n);
40056
40143
  }
40057
40144
  onBlur = (e) => {
40058
40145
  let t = e.target.value, n = parseFloat(t);
40059
- DJ("rawNumber: ", n);
40146
+ IJ("rawNumber: ", n);
40060
40147
  let r = this.clamp(n);
40061
- DJ("number: ", r), r !== this.state.value && (DJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40148
+ IJ("number: ", r), r !== this.state.value && (IJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40062
40149
  this.props.onChange(e, r);
40063
40150
  }));
40064
40151
  };
@@ -40078,7 +40165,7 @@ var DJ = (0, Is.default)("@pie-lib:config-ui:number-text-field"), OJ = S(Fs)(({
40078
40165
  };
40079
40166
  render() {
40080
40167
  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();
40081
- return /* @__PURE__ */ j(OJ, {
40168
+ return /* @__PURE__ */ j(LJ, {
40082
40169
  variant: s ? "filled" : l || "standard",
40083
40170
  inputRef: (e) => {
40084
40171
  this.inputRef = e;
@@ -40113,19 +40200,19 @@ var DJ = (0, Is.default)("@pie-lib:config-ui:number-text-field"), OJ = S(Fs)(({
40113
40200
  };
40114
40201
  //#endregion
40115
40202
  //#region ../../lib-react/config-ui/dist/two-choice.js
40116
- function jJ(e) {
40203
+ function BJ(e) {
40117
40204
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40118
40205
  }
40119
- function MJ(e, t) {
40120
- 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;
40206
+ function VJ(e, t) {
40207
+ 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;
40121
40208
  }
40122
- var NJ = MJ(le, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ = Fe, FJ = PJ.default, IJ = FJ && typeof FJ == "object" ? FJ : PJ, LJ = S("div")(({ theme: e, direction: t }) => ({
40209
+ var HJ = VJ(le, "InputContainer") || VJ(GJ.InputContainer, "InputContainer"), UJ = Fe, WJ = UJ.default, GJ = WJ && typeof WJ == "object" ? WJ : UJ, KJ = S("div")(({ theme: e, direction: t }) => ({
40123
40210
  display: "flex",
40124
40211
  flexWrap: "wrap",
40125
40212
  paddingLeft: 0,
40126
40213
  marginTop: e.spacing(1),
40127
40214
  ...t === "vertical" && { flexDirection: "column" }
40128
- })), RJ = class extends at.Component {
40215
+ })), qJ = class extends at.Component {
40129
40216
  static propTypes = {
40130
40217
  header: N.default.string.isRequired,
40131
40218
  className: N.default.string,
@@ -40143,10 +40230,10 @@ var NJ = MJ(le, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ
40143
40230
  label: e,
40144
40231
  value: e
40145
40232
  } : e), s = n || zs;
40146
- return /* @__PURE__ */ j(NJ, {
40233
+ return /* @__PURE__ */ j(HJ, {
40147
40234
  label: e,
40148
40235
  className: t,
40149
- children: /* @__PURE__ */ j(LJ, {
40236
+ children: /* @__PURE__ */ j(KJ, {
40150
40237
  direction: a,
40151
40238
  children: o.map((e, t) => /* @__PURE__ */ j(s, {
40152
40239
  value: e.value,
@@ -40157,7 +40244,7 @@ var NJ = MJ(le, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ
40157
40244
  })
40158
40245
  });
40159
40246
  }
40160
- }, zJ = N.default.shape({
40247
+ }, JJ = N.default.shape({
40161
40248
  label: N.default.string,
40162
40249
  value: N.default.string
40163
40250
  });
@@ -40166,14 +40253,14 @@ var NJ = MJ(le, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ
40166
40253
  header: N.default.string.isRequired,
40167
40254
  value: N.default.string.isRequired,
40168
40255
  onChange: N.default.func.isRequired,
40169
- one: N.default.oneOfType([zJ, N.default.string]),
40170
- two: N.default.oneOfType([zJ, N.default.string]),
40256
+ one: N.default.oneOfType([JJ, N.default.string]),
40257
+ two: N.default.oneOfType([JJ, N.default.string]),
40171
40258
  className: N.default.string,
40172
40259
  customLabel: N.default.func
40173
40260
  };
40174
40261
  render() {
40175
40262
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
40176
- return /* @__PURE__ */ j(RJ, {
40263
+ return /* @__PURE__ */ j(qJ, {
40177
40264
  customLabel: i,
40178
40265
  header: n,
40179
40266
  className: r,
@@ -40185,21 +40272,21 @@ var NJ = MJ(le, "InputContainer") || MJ(IJ.InputContainer, "InputContainer"), PJ
40185
40272
  });
40186
40273
  //#endregion
40187
40274
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
40188
- var BJ = Object.defineProperty, VJ = (e, t) => {
40275
+ var YJ = Object.defineProperty, XJ = (e, t) => {
40189
40276
  let n = {};
40190
- for (var r in e) BJ(n, r, {
40277
+ for (var r in e) YJ(n, r, {
40191
40278
  get: e[r],
40192
40279
  enumerable: !0
40193
40280
  });
40194
- return t || BJ(n, Symbol.toStringTag, { value: "Module" }), n;
40195
- }, HJ = S("div")(() => ({
40281
+ return t || YJ(n, Symbol.toStringTag, { value: "Module" }), n;
40282
+ }, ZJ = S("div")(() => ({
40196
40283
  display: "flex",
40197
40284
  flexDirection: "column",
40198
40285
  position: "relative"
40199
- })), UJ = S("div")(() => ({
40286
+ })), QJ = S("div")(() => ({
40200
40287
  display: "flex",
40201
40288
  justifyContent: "space-between"
40202
- })), WJ = S("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), GJ = S("div")(() => ({ flex: "1" })), KJ = S("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), qJ = class extends at.Component {
40289
+ })), $J = S("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), eY = S("div")(() => ({ flex: "1" })), tY = S("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), nY = class extends at.Component {
40203
40290
  static propTypes = {
40204
40291
  mode: N.default.oneOf(["tabbed", "inline"]),
40205
40292
  secondary: N.default.oneOfType([N.default.arrayOf(N.default.node), N.default.node]),
@@ -40217,7 +40304,7 @@ var BJ = Object.defineProperty, VJ = (e, t) => {
40217
40304
  } catch (e) {
40218
40305
  console.log(e.toString());
40219
40306
  }
40220
- return /* @__PURE__ */ M(HJ, {
40307
+ return /* @__PURE__ */ M(ZJ, {
40221
40308
  style: {
40222
40309
  minHeight: i,
40223
40310
  minWidth: a,
@@ -40225,28 +40312,28 @@ var BJ = Object.defineProperty, VJ = (e, t) => {
40225
40312
  maxWidth: s
40226
40313
  },
40227
40314
  children: [
40228
- e === "inline" && /* @__PURE__ */ M(UJ, { children: [/* @__PURE__ */ j(GJ, {
40315
+ e === "inline" && /* @__PURE__ */ M(QJ, { children: [/* @__PURE__ */ j(eY, {
40229
40316
  className: "design-container",
40230
40317
  children: n
40231
- }), l && /* @__PURE__ */ j(KJ, {
40318
+ }), l && /* @__PURE__ */ j(tY, {
40232
40319
  className: "settings-container",
40233
40320
  children: t
40234
40321
  })] }),
40235
- e === "tabbed" && l && /* @__PURE__ */ M(CJ, {
40322
+ e === "tabbed" && l && /* @__PURE__ */ M(MJ, {
40236
40323
  onChange: this.onTabsChange,
40237
40324
  contentClassName: "content-container",
40238
40325
  indicatorColor: "primary",
40239
- children: [/* @__PURE__ */ j(WJ, {
40326
+ children: [/* @__PURE__ */ j($J, {
40240
40327
  title: "Design",
40241
40328
  className: "design-container",
40242
40329
  children: n
40243
- }), /* @__PURE__ */ j(WJ, {
40330
+ }), /* @__PURE__ */ j($J, {
40244
40331
  title: "Settings",
40245
40332
  className: "settings-container",
40246
40333
  children: t
40247
40334
  })]
40248
40335
  }),
40249
- e === "tabbed" && !l && /* @__PURE__ */ j(WJ, {
40336
+ e === "tabbed" && !l && /* @__PURE__ */ j($J, {
40250
40337
  className: "design-container",
40251
40338
  children: n
40252
40339
  })
@@ -40256,18 +40343,18 @@ var BJ = Object.defineProperty, VJ = (e, t) => {
40256
40343
  };
40257
40344
  //#endregion
40258
40345
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
40259
- function JJ() {
40260
- return JJ = Object.assign ? Object.assign.bind() : function(e) {
40346
+ function rY() {
40347
+ return rY = Object.assign ? Object.assign.bind() : function(e) {
40261
40348
  for (var t = 1; t < arguments.length; t++) {
40262
40349
  var n = arguments[t];
40263
40350
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
40264
40351
  }
40265
40352
  return e;
40266
- }, JJ.apply(null, arguments);
40353
+ }, rY.apply(null, arguments);
40267
40354
  }
40268
40355
  //#endregion
40269
40356
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
40270
- function YJ(e, t) {
40357
+ function iY(e, t) {
40271
40358
  if (e == null) return {};
40272
40359
  var n = {};
40273
40360
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -40278,19 +40365,19 @@ function YJ(e, t) {
40278
40365
  }
40279
40366
  //#endregion
40280
40367
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
40281
- function XJ(e, t) {
40282
- return XJ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40368
+ function aY(e, t) {
40369
+ return aY = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40283
40370
  return e.__proto__ = t, e;
40284
- }, XJ(e, t);
40371
+ }, aY(e, t);
40285
40372
  }
40286
40373
  //#endregion
40287
40374
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
40288
- function ZJ(e, t) {
40289
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, XJ(e, t);
40375
+ function oY(e, t) {
40376
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, aY(e, t);
40290
40377
  }
40291
40378
  //#endregion
40292
40379
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
40293
- var QJ = (function() {
40380
+ var sY = (function() {
40294
40381
  if (typeof Map < "u") return Map;
40295
40382
  function e(e, t) {
40296
40383
  var n = -1;
@@ -40329,34 +40416,34 @@ var QJ = (function() {
40329
40416
  }
40330
40417
  }, t;
40331
40418
  }();
40332
- })(), $J = typeof window < "u" && typeof document < "u" && window.document === document, eY = (function() {
40419
+ })(), cY = typeof window < "u" && typeof document < "u" && window.document === document, lY = (function() {
40333
40420
  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")();
40334
- })(), tY = (function() {
40335
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(eY) : function(e) {
40421
+ })(), uY = (function() {
40422
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(lY) : function(e) {
40336
40423
  return setTimeout(function() {
40337
40424
  return e(Date.now());
40338
40425
  }, 1e3 / 60);
40339
40426
  };
40340
- })(), nY = 2;
40341
- function rY(e, t) {
40427
+ })(), dY = 2;
40428
+ function fY(e, t) {
40342
40429
  var n = !1, r = !1, i = 0;
40343
40430
  function a() {
40344
40431
  n && (n = !1, e()), r && s();
40345
40432
  }
40346
40433
  function o() {
40347
- tY(a);
40434
+ uY(a);
40348
40435
  }
40349
40436
  function s() {
40350
40437
  var e = Date.now();
40351
40438
  if (n) {
40352
- if (e - i < nY) return;
40439
+ if (e - i < dY) return;
40353
40440
  r = !0;
40354
40441
  } else n = !0, r = !1, setTimeout(o, t);
40355
40442
  i = e;
40356
40443
  }
40357
40444
  return s;
40358
40445
  }
40359
- var iY = 20, aY = [
40446
+ var pY = 20, mY = [
40360
40447
  "top",
40361
40448
  "right",
40362
40449
  "bottom",
@@ -40365,9 +40452,9 @@ var iY = 20, aY = [
40365
40452
  "height",
40366
40453
  "size",
40367
40454
  "weight"
40368
- ], oY = typeof MutationObserver < "u", sY = function() {
40455
+ ], hY = typeof MutationObserver < "u", gY = function() {
40369
40456
  function e() {
40370
- 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);
40457
+ 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);
40371
40458
  }
40372
40459
  return e.prototype.addObserver = function(e) {
40373
40460
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -40384,23 +40471,23 @@ var iY = 20, aY = [
40384
40471
  return e.broadcastActive();
40385
40472
  }), e.length > 0;
40386
40473
  }, e.prototype.connect_ = function() {
40387
- !$J || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), oY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40474
+ !cY || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), hY ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40388
40475
  attributes: !0,
40389
40476
  childList: !0,
40390
40477
  characterData: !0,
40391
40478
  subtree: !0
40392
40479
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
40393
40480
  }, e.prototype.disconnect_ = function() {
40394
- !$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);
40481
+ !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);
40395
40482
  }, e.prototype.onTransitionEnd_ = function(e) {
40396
40483
  var t = e.propertyName, n = t === void 0 ? "" : t;
40397
- aY.some(function(e) {
40484
+ mY.some(function(e) {
40398
40485
  return !!~n.indexOf(e);
40399
40486
  }) && this.refresh();
40400
40487
  }, e.getInstance = function() {
40401
40488
  return this.instance_ ||= new e(), this.instance_;
40402
40489
  }, e.instance_ = null, e;
40403
- }(), cY = (function(e, t) {
40490
+ }(), _Y = (function(e, t) {
40404
40491
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
40405
40492
  var i = r[n];
40406
40493
  Object.defineProperty(e, i, {
@@ -40411,19 +40498,19 @@ var iY = 20, aY = [
40411
40498
  });
40412
40499
  }
40413
40500
  return e;
40414
- }), lY = (function(e) {
40415
- return e && e.ownerDocument && e.ownerDocument.defaultView || eY;
40416
- }), uY = bY(0, 0, 0, 0);
40417
- function dY(e) {
40501
+ }), vY = (function(e) {
40502
+ return e && e.ownerDocument && e.ownerDocument.defaultView || lY;
40503
+ }), yY = kY(0, 0, 0, 0);
40504
+ function bY(e) {
40418
40505
  return parseFloat(e) || 0;
40419
40506
  }
40420
- function fY(e) {
40507
+ function xY(e) {
40421
40508
  return [...arguments].slice(1).reduce(function(t, n) {
40422
40509
  var r = e["border-" + n + "-width"];
40423
- return t + dY(r);
40510
+ return t + bY(r);
40424
40511
  }, 0);
40425
40512
  }
40426
- function pY(e) {
40513
+ function SY(e) {
40427
40514
  for (var t = [
40428
40515
  "top",
40429
40516
  "right",
@@ -40431,40 +40518,40 @@ function pY(e) {
40431
40518
  "left"
40432
40519
  ], n = {}, r = 0, i = t; r < i.length; r++) {
40433
40520
  var a = i[r], o = e["padding-" + a];
40434
- n[a] = dY(o);
40521
+ n[a] = bY(o);
40435
40522
  }
40436
40523
  return n;
40437
40524
  }
40438
- function mY(e) {
40525
+ function CY(e) {
40439
40526
  var t = e.getBBox();
40440
- return bY(0, 0, t.width, t.height);
40527
+ return kY(0, 0, t.width, t.height);
40441
40528
  }
40442
- function hY(e) {
40529
+ function wY(e) {
40443
40530
  var t = e.clientWidth, n = e.clientHeight;
40444
- if (!t && !n) return uY;
40445
- 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);
40446
- 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)) {
40531
+ if (!t && !n) return yY;
40532
+ 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);
40533
+ 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)) {
40447
40534
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
40448
40535
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
40449
40536
  }
40450
- return bY(i.left, i.top, s, c);
40537
+ return kY(i.left, i.top, s, c);
40451
40538
  }
40452
- var gY = (function() {
40539
+ var TY = (function() {
40453
40540
  return typeof SVGGraphicsElement < "u" ? function(e) {
40454
- return e instanceof lY(e).SVGGraphicsElement;
40541
+ return e instanceof vY(e).SVGGraphicsElement;
40455
40542
  } : function(e) {
40456
- return e instanceof lY(e).SVGElement && typeof e.getBBox == "function";
40543
+ return e instanceof vY(e).SVGElement && typeof e.getBBox == "function";
40457
40544
  };
40458
40545
  })();
40459
- function _Y(e) {
40460
- return e === lY(e).document.documentElement;
40546
+ function EY(e) {
40547
+ return e === vY(e).document.documentElement;
40461
40548
  }
40462
- function vY(e) {
40463
- return $J ? gY(e) ? mY(e) : hY(e) : uY;
40549
+ function DY(e) {
40550
+ return cY ? TY(e) ? CY(e) : wY(e) : yY;
40464
40551
  }
40465
- function yY(e) {
40552
+ function OY(e) {
40466
40553
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
40467
- return cY(a, {
40554
+ return _Y(a, {
40468
40555
  x: t,
40469
40556
  y: n,
40470
40557
  width: r,
@@ -40475,7 +40562,7 @@ function yY(e) {
40475
40562
  left: t
40476
40563
  }), a;
40477
40564
  }
40478
- function bY(e, t, n, r) {
40565
+ function kY(e, t, n, r) {
40479
40566
  return {
40480
40567
  x: e,
40481
40568
  y: t,
@@ -40483,42 +40570,42 @@ function bY(e, t, n, r) {
40483
40570
  height: r
40484
40571
  };
40485
40572
  }
40486
- var xY = function() {
40573
+ var AY = function() {
40487
40574
  function e(e) {
40488
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = bY(0, 0, 0, 0), this.target = e;
40575
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = kY(0, 0, 0, 0), this.target = e;
40489
40576
  }
40490
40577
  return e.prototype.isActive = function() {
40491
- var e = vY(this.target);
40578
+ var e = DY(this.target);
40492
40579
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
40493
40580
  }, e.prototype.broadcastRect = function() {
40494
40581
  var e = this.contentRect_;
40495
40582
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
40496
40583
  }, e;
40497
- }(), SY = function() {
40584
+ }(), jY = function() {
40498
40585
  function e(e, t) {
40499
- var n = yY(t);
40500
- cY(this, {
40586
+ var n = OY(t);
40587
+ _Y(this, {
40501
40588
  target: e,
40502
40589
  contentRect: n
40503
40590
  });
40504
40591
  }
40505
40592
  return e;
40506
- }(), CY = function() {
40593
+ }(), MY = function() {
40507
40594
  function e(e, t, n) {
40508
- if (this.activeObservations_ = [], this.observations_ = new QJ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
40595
+ if (this.activeObservations_ = [], this.observations_ = new sY(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
40509
40596
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
40510
40597
  }
40511
40598
  return e.prototype.observe = function(e) {
40512
40599
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40513
40600
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
40514
- if (!(e instanceof lY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40601
+ if (!(e instanceof vY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40515
40602
  var t = this.observations_;
40516
- t.has(e) || (t.set(e, new xY(e)), this.controller_.addObserver(this), this.controller_.refresh());
40603
+ t.has(e) || (t.set(e, new AY(e)), this.controller_.addObserver(this), this.controller_.refresh());
40517
40604
  }
40518
40605
  }, e.prototype.unobserve = function(e) {
40519
40606
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40520
40607
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
40521
- if (!(e instanceof lY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40608
+ if (!(e instanceof vY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40522
40609
  var t = this.observations_;
40523
40610
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
40524
40611
  }
@@ -40532,7 +40619,7 @@ var xY = function() {
40532
40619
  }, e.prototype.broadcastActive = function() {
40533
40620
  if (this.hasActive()) {
40534
40621
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
40535
- return new SY(e.target, e.broadcastRect());
40622
+ return new jY(e.target, e.broadcastRect());
40536
40623
  });
40537
40624
  this.callback_.call(e, t, e), this.clearActive();
40538
40625
  }
@@ -40541,12 +40628,12 @@ var xY = function() {
40541
40628
  }, e.prototype.hasActive = function() {
40542
40629
  return this.activeObservations_.length > 0;
40543
40630
  }, e;
40544
- }(), wY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new QJ(), TY = function() {
40631
+ }(), NY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new sY(), PY = function() {
40545
40632
  function e(t) {
40546
40633
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
40547
40634
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40548
- var n = new CY(t, sY.getInstance(), this);
40549
- wY.set(this, n);
40635
+ var n = new MY(t, gY.getInstance(), this);
40636
+ NY.set(this, n);
40550
40637
  }
40551
40638
  return e;
40552
40639
  }();
@@ -40555,27 +40642,27 @@ var xY = function() {
40555
40642
  "unobserve",
40556
40643
  "disconnect"
40557
40644
  ].forEach(function(e) {
40558
- TY.prototype[e] = function() {
40645
+ PY.prototype[e] = function() {
40559
40646
  var t;
40560
- return (t = wY.get(this))[e].apply(t, arguments);
40647
+ return (t = NY.get(this))[e].apply(t, arguments);
40561
40648
  };
40562
40649
  });
40563
- var EY = (function() {
40564
- return eY.ResizeObserver === void 0 ? TY : eY.ResizeObserver;
40565
- })(), DY = [
40650
+ var FY = (function() {
40651
+ return lY.ResizeObserver === void 0 ? PY : lY.ResizeObserver;
40652
+ })(), IY = [
40566
40653
  "client",
40567
40654
  "offset",
40568
40655
  "scroll",
40569
40656
  "bounds",
40570
40657
  "margin"
40571
40658
  ];
40572
- function OY(e) {
40659
+ function LY(e) {
40573
40660
  var t = [];
40574
- return DY.forEach(function(n) {
40661
+ return IY.forEach(function(n) {
40575
40662
  e[n] && t.push(n);
40576
40663
  }), t;
40577
40664
  }
40578
- function kY(e, t) {
40665
+ function RY(e, t) {
40579
40666
  var n = {};
40580
40667
  if (t.indexOf("client") > -1 && (n.client = {
40581
40668
  top: e.clientTop,
@@ -40614,14 +40701,14 @@ function kY(e, t) {
40614
40701
  }
40615
40702
  return n;
40616
40703
  }
40617
- function AY(e) {
40704
+ function zY(e) {
40618
40705
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
40619
40706
  }
40620
- function jY(e) {
40707
+ function BY(e) {
40621
40708
  return function(t) {
40622
40709
  var n, r;
40623
40710
  return r = n = /*#__PURE__*/ function(n) {
40624
- ZJ(r, n);
40711
+ oY(r, n);
40625
40712
  function r() {
40626
40713
  var t, r = [...arguments];
40627
40714
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -40632,24 +40719,24 @@ function jY(e) {
40632
40719
  bounds: {},
40633
40720
  margin: {}
40634
40721
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
40635
- var r = kY(t._node, e || OY(t.props));
40722
+ var r = RY(t._node, e || LY(t.props));
40636
40723
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
40637
40724
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
40638
40725
  });
40639
40726
  }, t._handleRef = function(e) {
40640
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = AY(t._node);
40727
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = zY(t._node);
40641
40728
  var n = t.props.innerRef;
40642
40729
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
40643
40730
  }, t;
40644
40731
  }
40645
40732
  var i = r.prototype;
40646
40733
  return i.componentDidMount = function() {
40647
- 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))));
40734
+ 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))));
40648
40735
  }, i.componentWillUnmount = function() {
40649
40736
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
40650
40737
  }, i.render = function() {
40651
40738
  var e = this.props;
40652
- return e.innerRef, e.onResize, ct(t, JJ({}, YJ(e, ["innerRef", "onResize"]), {
40739
+ return e.innerRef, e.onResize, ct(t, rY({}, iY(e, ["innerRef", "onResize"]), {
40653
40740
  measureRef: this._handleRef,
40654
40741
  measure: this.measure,
40655
40742
  contentRect: this.state.contentRect
@@ -40666,7 +40753,7 @@ function jY(e) {
40666
40753
  }, r;
40667
40754
  };
40668
40755
  }
40669
- var MY = jY()(function(e) {
40756
+ var VY = BY()(function(e) {
40670
40757
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
40671
40758
  return i({
40672
40759
  measure: t,
@@ -40674,10 +40761,10 @@ var MY = jY()(function(e) {
40674
40761
  contentRect: r
40675
40762
  });
40676
40763
  });
40677
- MY.displayName = "Measure", MY.propTypes.children = N.default.func;
40764
+ VY.displayName = "Measure", VY.propTypes.children = N.default.func;
40678
40765
  //#endregion
40679
40766
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
40680
- var NY = S("div")(() => ({
40767
+ var HY = S("div")(() => ({
40681
40768
  backgroundColor: i.white(),
40682
40769
  border: `2px solid ${i.border()}`,
40683
40770
  display: "flex",
@@ -40687,7 +40774,7 @@ var NY = S("div")(() => ({
40687
40774
  maxWidth: "300px",
40688
40775
  padding: "20px 4px 4px 20px",
40689
40776
  zIndex: 99
40690
- })), PY = class extends at.Component {
40777
+ })), UY = class extends at.Component {
40691
40778
  static propTypes = {
40692
40779
  className: N.default.string,
40693
40780
  children: N.default.oneOfType([N.default.arrayOf(N.default.node), N.default.node]).isRequired
@@ -40695,19 +40782,19 @@ var NY = S("div")(() => ({
40695
40782
  static defaultProps = {};
40696
40783
  render() {
40697
40784
  let { className: e, children: t } = this.props;
40698
- return /* @__PURE__ */ j(NY, {
40785
+ return /* @__PURE__ */ j(HY, {
40699
40786
  className: e,
40700
40787
  children: t
40701
40788
  });
40702
40789
  }
40703
- }, FY = ye({
40790
+ }, WY = ye({
40704
40791
  typography: { fontFamily: "inherit" },
40705
40792
  components: { MuiButton: { styleOverrides: { contained: {
40706
40793
  backgroundColor: "#e0e0e0",
40707
40794
  color: "#000000",
40708
40795
  "&:hover": { backgroundColor: "#bdbdbd" }
40709
40796
  } } } }
40710
- }), IY = class extends at.Component {
40797
+ }), GY = class extends at.Component {
40711
40798
  static propTypes = {
40712
40799
  children: N.default.oneOfType([
40713
40800
  N.default.string,
@@ -40740,19 +40827,19 @@ var NY = S("div")(() => ({
40740
40827
  return /* @__PURE__ */ j(de, {
40741
40828
  injectFirst: !0,
40742
40829
  children: /* @__PURE__ */ j(be, {
40743
- theme: FY,
40744
- children: /* @__PURE__ */ j(MY, {
40830
+ theme: WY,
40831
+ children: /* @__PURE__ */ j(VY, {
40745
40832
  bounds: !0,
40746
40833
  onResize: this.onResize,
40747
40834
  children: ({ measureRef: e }) => {
40748
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ j(PY, {
40835
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ j(UY, {
40749
40836
  className: "settings-box",
40750
40837
  children: n
40751
40838
  }) : n;
40752
40839
  return /* @__PURE__ */ M("div", {
40753
40840
  ref: e,
40754
40841
  className: "main-container extraCSSRules",
40755
- children: [a?.rules ? /* @__PURE__ */ j("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ j(qJ, {
40842
+ children: [a?.rules ? /* @__PURE__ */ j("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ j(nY, {
40756
40843
  mode: o,
40757
40844
  secondary: s,
40758
40845
  dimensions: i,
@@ -40764,27 +40851,27 @@ var NY = S("div")(() => ({
40764
40851
  })
40765
40852
  });
40766
40853
  }
40767
- }, LY = jY("bounds")(IY), RY = /* @__PURE__ */ VJ({
40768
- ConfigLayout: () => LY,
40769
- LayoutContents: () => qJ
40770
- }), zY = S("div")(() => ({
40854
+ }, KY = BY("bounds")(GY), qY = /* @__PURE__ */ XJ({
40855
+ ConfigLayout: () => KY,
40856
+ LayoutContents: () => nY
40857
+ }), JY = S("div")(() => ({
40771
40858
  display: "flex",
40772
40859
  width: "100%",
40773
40860
  justifyContent: "space-between"
40774
- })), BY = S(ue)(({ theme: e }) => ({
40861
+ })), YY = S(ue)(({ theme: e }) => ({
40775
40862
  color: "rgba(0, 0, 0, 0.89)",
40776
40863
  fontSize: e.typography.fontSize,
40777
40864
  paddingTop: e.spacing(2)
40778
- })), VY = S(As)(({ checked: e }) => ({
40865
+ })), XY = S(As)(({ checked: e }) => ({
40779
40866
  "&.Mui-checked .MuiSwitch-thumb": { color: `${i.tertiary()} !important` },
40780
40867
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${i.tertiaryLight()} !important` },
40781
40868
  "& .MuiSwitch-track": { backgroundColor: e ? `${i.tertiaryLight()} !important` : void 0 }
40782
- })), HY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ M(zY, { children: [/* @__PURE__ */ j(BY, { children: n }), /* @__PURE__ */ j(VY, {
40869
+ })), ZY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ M(JY, { children: [/* @__PURE__ */ j(YY, { children: n }), /* @__PURE__ */ j(XY, {
40783
40870
  checked: e,
40784
40871
  disabled: t,
40785
40872
  onChange: (e) => r(e.target.checked)
40786
40873
  })] });
40787
- HY.propTypes = {
40874
+ ZY.propTypes = {
40788
40875
  checked: N.default.bool,
40789
40876
  disabled: N.default.bool,
40790
40877
  label: N.default.string.isRequired,
@@ -40792,20 +40879,20 @@ HY.propTypes = {
40792
40879
  };
40793
40880
  //#endregion
40794
40881
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
40795
- var UY = S(Ca)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
40882
+ var QY = S(Ca)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
40796
40883
  color: "rgba(0, 0, 0, 0.89)",
40797
40884
  fontSize: e.typography.fontSize - 2,
40798
40885
  left: "-5px",
40799
40886
  position: "relative"
40800
- } })), WY = S(Ss)(() => ({ color: `${i.tertiary()} !important` })), GY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ j(UY, {
40887
+ } })), $Y = S(Ss)(() => ({ color: `${i.tertiary()} !important` })), eX = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ j(QY, {
40801
40888
  value: t,
40802
- control: /* @__PURE__ */ j(WY, {
40889
+ control: /* @__PURE__ */ j($Y, {
40803
40890
  checked: n,
40804
40891
  onChange: r
40805
40892
  }),
40806
40893
  label: e
40807
40894
  });
40808
- GY.propTypes = {
40895
+ eX.propTypes = {
40809
40896
  label: N.default.string,
40810
40897
  value: N.default.string,
40811
40898
  checked: N.default.bool,
@@ -40813,26 +40900,26 @@ GY.propTypes = {
40813
40900
  };
40814
40901
  //#endregion
40815
40902
  //#region ../../lib-react/config-ui/dist/settings/panel.js
40816
- var KY = (0, Is.default)("pie-lib:config-ui:settings:panel"), qY = {
40903
+ var tX = (0, Is.default)("pie-lib:config-ui:settings:panel"), nX = {
40817
40904
  label: N.default.string,
40818
40905
  value: N.default.string
40819
- }, JY = {
40906
+ }, rX = {
40820
40907
  label: N.default.string,
40821
40908
  value: N.default.string,
40822
40909
  onChange: N.default.func
40823
- }, YY = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ j(EJ, {
40910
+ }, iX = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ j(FJ, {
40824
40911
  checked: t,
40825
40912
  label: e,
40826
40913
  onChange: (e) => {
40827
40914
  n(e.target.checked);
40828
40915
  }
40829
40916
  });
40830
- YY.propTypes = {
40917
+ iX.propTypes = {
40831
40918
  label: N.default.string,
40832
40919
  value: N.default.bool,
40833
40920
  onChange: N.default.func
40834
40921
  };
40835
- var XY = S(RJ)(({ theme: e }) => ({
40922
+ var aX = S(qJ)(({ theme: e }) => ({
40836
40923
  marginTop: e.spacing(.5),
40837
40924
  paddingBottom: e.spacing(.5),
40838
40925
  width: "100%",
@@ -40843,29 +40930,29 @@ var XY = S(RJ)(({ theme: e }) => ({
40843
40930
  marginTop: e.spacing(2.5)
40844
40931
  },
40845
40932
  "& > div": { marginTop: e.spacing(2.5) }
40846
- })), ZY = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ j(XY, {
40933
+ })), oX = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ j(aX, {
40847
40934
  direction: "horizontal",
40848
- customLabel: GY,
40935
+ customLabel: eX,
40849
40936
  value: t,
40850
40937
  header: e,
40851
40938
  opts: r,
40852
40939
  onChange: n
40853
40940
  });
40854
- ZY.propTypes = {
40855
- ...JY,
40856
- choices: N.default.arrayOf(N.default.shape(qY))
40941
+ oX.propTypes = {
40942
+ ...rX,
40943
+ choices: N.default.arrayOf(N.default.shape(nX))
40857
40944
  };
40858
- var QY = ZY, $Y = S("p")(({ theme: e }) => ({
40945
+ var sX = oX, cX = S("p")(({ theme: e }) => ({
40859
40946
  margin: 0,
40860
40947
  fontSize: e.typography.fontSize
40861
- })), eX = S(es)(({ theme: e }) => ({
40948
+ })), lX = S(es)(({ theme: e }) => ({
40862
40949
  marginTop: e.spacing(.5),
40863
40950
  border: "2px solid lightgrey",
40864
40951
  padding: `0 ${e.spacing(1)}`,
40865
40952
  borderRadius: "4px"
40866
- })), tX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
40953
+ })), uX = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
40867
40954
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
40868
- return /* @__PURE__ */ M("div", { children: [e && /* @__PURE__ */ j($Y, { children: e }), /* @__PURE__ */ j(eX, {
40955
+ return /* @__PURE__ */ M("div", { children: [e && /* @__PURE__ */ j(cX, { children: e }), /* @__PURE__ */ j(lX, {
40869
40956
  value: t || r && r[0],
40870
40957
  onChange: ({ target: e }) => n(e.value),
40871
40958
  input: /* @__PURE__ */ j(Na, { id: `dropdown-${e}` }),
@@ -40880,14 +40967,14 @@ var QY = ZY, $Y = S("p")(({ theme: e }) => ({
40880
40967
  }, t))
40881
40968
  })] });
40882
40969
  };
40883
- tX.propTypes = {
40884
- ...JY,
40970
+ uX.propTypes = {
40971
+ ...rX,
40885
40972
  choices: N.default.arrayOf(N.default.string)
40886
40973
  };
40887
- var nX = S(Xt)(({ theme: e }) => ({
40974
+ var dX = S(Xt)(({ theme: e }) => ({
40888
40975
  marginRight: e.spacing(3),
40889
40976
  marginTop: e.spacing(1)
40890
- })), rX = ({ label: e }) => /* @__PURE__ */ j(nX, { children: e }), iX = S(AJ)(({ theme: e }) => ({
40977
+ })), fX = ({ label: e }) => /* @__PURE__ */ j(dX, { children: e }), pX = S(zJ)(({ theme: e }) => ({
40891
40978
  width: "35%",
40892
40979
  marginRight: e.spacing(3),
40893
40980
  marginTop: e.spacing(1),
@@ -40898,7 +40985,7 @@ var nX = S(Xt)(({ theme: e }) => ({
40898
40985
  padding: `0 ${e.spacing(1)}`,
40899
40986
  backgroundColor: "transparent"
40900
40987
  }
40901
- })), aX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ j(iX, {
40988
+ })), mX = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ j(pX, {
40902
40989
  variant: "standard",
40903
40990
  label: e || "Label",
40904
40991
  value: t,
@@ -40909,45 +40996,45 @@ var nX = S(Xt)(({ theme: e }) => ({
40909
40996
  showErrorWhenOutsideRange: !0,
40910
40997
  disableUnderline: !0
40911
40998
  });
40912
- aX.propTypes = {
40913
- ...JY,
40999
+ mX.propTypes = {
41000
+ ...rX,
40914
41001
  suffix: N.default.string,
40915
41002
  min: N.default.number,
40916
41003
  max: N.default.number,
40917
41004
  value: N.default.number
40918
- }, rX.propTypes = { ...JY };
40919
- var oX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ j(HY, {
41005
+ }, fX.propTypes = { ...rX };
41006
+ var hX = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ j(ZY, {
40920
41007
  label: t,
40921
41008
  checked: !!n,
40922
41009
  disabled: !!e,
40923
41010
  toggle: r
40924
41011
  });
40925
- oX.propTypes = {
40926
- ...JY,
41012
+ hX.propTypes = {
41013
+ ...rX,
40927
41014
  value: N.default.bool
40928
41015
  };
40929
- var sX = {
40930
- toggle: oX,
40931
- radio: QY,
40932
- dropdown: tX,
40933
- numberField: aX,
40934
- checkbox: YY,
40935
- textField: rX
40936
- }, cX = S("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), lX = S("div")(({ theme: e }) => ({
41016
+ var gX = {
41017
+ toggle: hX,
41018
+ radio: sX,
41019
+ dropdown: uX,
41020
+ numberField: mX,
41021
+ checkbox: iX,
41022
+ textField: fX
41023
+ }, _X = S("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), vX = S("div")(({ theme: e }) => ({
40937
41024
  color: "#495B8F",
40938
41025
  fontSize: e.typography.fontSize + 2,
40939
41026
  fontWeight: 600,
40940
41027
  marginBottom: e.spacing(1)
40941
- })), uX = S("p")(({ theme: e }) => ({
41028
+ })), yX = S("p")(({ theme: e }) => ({
40942
41029
  fontSize: e.typography.fontSize,
40943
41030
  marginBottom: 0
40944
- })), dX = (e) => {
41031
+ })), bX = (e) => {
40945
41032
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
40946
41033
  let { isConfigProperty: o, ...s } = it(e, r || n), c = it(o ? i : t, n), l = {
40947
41034
  ...s,
40948
41035
  key: n,
40949
41036
  value: c
40950
- }, u = sX[l.type];
41037
+ }, u = gX[l.type];
40951
41038
  return /* @__PURE__ */ j(u, {
40952
41039
  ...l,
40953
41040
  onChange: (e) => a(n, e, o)
@@ -40956,18 +41043,18 @@ var sX = {
40956
41043
  let n = e[t];
40957
41044
  if (!n) return null;
40958
41045
  let { type: r, label: i, fields: a, choices: s } = n;
40959
- return r === "numberFields" ? /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j(uX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41046
+ return r === "numberFields" ? /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j(yX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
40960
41047
  };
40961
- return /* @__PURE__ */ M(cX, { children: [/* @__PURE__ */ j(lX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41048
+ return /* @__PURE__ */ M(_X, { children: [/* @__PURE__ */ j(vX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
40962
41049
  };
40963
- dX.propTypes = {
41050
+ bX.propTypes = {
40964
41051
  model: N.default.object,
40965
41052
  label: N.default.string,
40966
41053
  group: N.default.object,
40967
41054
  configuration: N.default.object,
40968
41055
  onChange: N.default.func
40969
41056
  };
40970
- var fX = class extends at.Component {
41057
+ var xX = class extends at.Component {
40971
41058
  static propTypes = {
40972
41059
  model: N.default.object,
40973
41060
  configuration: N.default.object,
@@ -40981,13 +41068,13 @@ var fX = class extends at.Component {
40981
41068
  onChangeConfiguration: () => {}
40982
41069
  };
40983
41070
  change = (e, t, n = !1) => {
40984
- KY("[changeModel]", e, t);
41071
+ tX("[changeModel]", e, t);
40985
41072
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
40986
41073
  n ? ($e(o, e, t), i(o, e)) : ($e(a, e, t), r(a, e));
40987
41074
  };
40988
41075
  render() {
40989
41076
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
40990
- return KY("render:", t), /* @__PURE__ */ M("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ j(dX, {
41077
+ return tX("render:", t), /* @__PURE__ */ M("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ j(bX, {
40991
41078
  label: r,
40992
41079
  model: t,
40993
41080
  configuration: n,
@@ -40995,59 +41082,59 @@ var fX = class extends at.Component {
40995
41082
  onChange: this.change
40996
41083
  }, r) : null), r] });
40997
41084
  }
40998
- }, pX = /* @__PURE__ */ VJ({
40999
- Panel: () => fX,
41000
- checkbox: () => xX,
41001
- checkboxes: () => SX,
41002
- dropdown: () => vX,
41003
- numberField: () => yX,
41004
- numberFields: () => bX,
41005
- radio: () => _X,
41006
- textField: () => mX,
41007
- toggle: () => hX
41008
- }), mX = (e, t = !0) => ({
41085
+ }, SX = /* @__PURE__ */ XJ({
41086
+ Panel: () => xX,
41087
+ checkbox: () => AX,
41088
+ checkboxes: () => jX,
41089
+ dropdown: () => DX,
41090
+ numberField: () => OX,
41091
+ numberFields: () => kX,
41092
+ radio: () => EX,
41093
+ textField: () => CX,
41094
+ toggle: () => wX
41095
+ }), CX = (e, t = !0) => ({
41009
41096
  label: e,
41010
41097
  type: "textField",
41011
41098
  isConfigProperty: t
41012
- }), hX = (e, t = !1, n = !1) => ({
41099
+ }), wX = (e, t = !1, n = !1) => ({
41013
41100
  type: "toggle",
41014
41101
  label: e,
41015
41102
  isConfigProperty: t,
41016
41103
  disabled: n
41017
- }), gX = (e) => typeof e == "string" ? {
41104
+ }), TX = (e) => typeof e == "string" ? {
41018
41105
  label: e,
41019
41106
  value: e
41020
- } : e, _X = function() {
41107
+ } : e, EX = function() {
41021
41108
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41022
41109
  return {
41023
41110
  type: "radio",
41024
41111
  label: e,
41025
- choices: t && t.map((e) => gX(e)),
41112
+ choices: t && t.map((e) => TX(e)),
41026
41113
  isConfigProperty: n
41027
41114
  };
41028
- }, vX = (e, t, n = !1) => ({
41115
+ }, DX = (e, t, n = !1) => ({
41029
41116
  type: "dropdown",
41030
41117
  label: e,
41031
41118
  choices: t,
41032
41119
  isConfigProperty: n
41033
- }), yX = (e, t, n = !1) => ({
41120
+ }), OX = (e, t, n = !1) => ({
41034
41121
  ...t,
41035
41122
  label: e,
41036
41123
  type: "numberField",
41037
41124
  isConfigProperty: n
41038
- }), bX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41039
- t[e] = yX(t[e].label, t[e], n);
41125
+ }), kX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41126
+ t[e] = OX(t[e].label, t[e], n);
41040
41127
  }), {
41041
41128
  type: "numberFields",
41042
41129
  label: e,
41043
41130
  fields: t
41044
- }), xX = (e, t, n = !1) => ({
41131
+ }), AX = (e, t, n = !1) => ({
41045
41132
  ...t,
41046
41133
  label: e,
41047
41134
  type: "checkbox",
41048
41135
  isConfigProperty: n
41049
- }), SX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41050
- t[e] = xX(t[e].label, t[e], n);
41136
+ }), jX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41137
+ t[e] = AX(t[e].label, t[e], n);
41051
41138
  }), {
41052
41139
  type: "checkboxes",
41053
41140
  label: e,
@@ -41055,17 +41142,17 @@ var fX = class extends at.Component {
41055
41142
  });
41056
41143
  //#endregion
41057
41144
  //#region ../../lib-react/config-ui/dist/index.js
41058
- function CX(e) {
41145
+ function MX(e) {
41059
41146
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41060
41147
  }
41061
- function wX(e, t) {
41062
- 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;
41148
+ function NX(e, t) {
41149
+ 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;
41063
41150
  }
41064
- var TX = wX(le, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX = Fe, DX = EX.default, OX = DX && typeof DX == "object" ? DX : EX, kX = g(/*#__PURE__*/ j("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z" }), "RemoveCircle"), AX = g(/*#__PURE__*/ j("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z" }), "AddCircle"), jX = S(({ label: e, type: t = "add", onClick: n }) => /* @__PURE__ */ M(ae, {
41151
+ var PX = NX(le, "InputContainer") || NX(LX.InputContainer, "InputContainer"), FX = Fe, IX = FX.default, LX = IX && typeof IX == "object" ? IX : FX, RX = g(/*#__PURE__*/ j("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z" }), "RemoveCircle"), zX = g(/*#__PURE__*/ j("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z" }), "AddCircle"), BX = S(({ label: e, type: t = "add", onClick: n }) => /* @__PURE__ */ M(ae, {
41065
41152
  color: "primary",
41066
41153
  size: "small",
41067
41154
  onClick: n,
41068
- children: [/* @__PURE__ */ j(t === "add" ? AX : kX, {
41155
+ children: [/* @__PURE__ */ j(t === "add" ? zX : RX, {
41069
41156
  fontSize: "small",
41070
41157
  color: "primary",
41071
41158
  style: { marginRight: 4 }
@@ -41078,7 +41165,7 @@ var TX = wX(le, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41078
41165
  },
41079
41166
  display: "flex",
41080
41167
  alignItems: "center"
41081
- }), MX = ({ content: e, cancel: t, title: n, ok: r, open: i, onOk: a, onCancel: o }) => /* @__PURE__ */ M(Yi, {
41168
+ }), VX = ({ content: e, cancel: t, title: n, ok: r, open: i, onOk: a, onCancel: o }) => /* @__PURE__ */ M(Yi, {
41082
41169
  open: i,
41083
41170
  children: [
41084
41171
  /* @__PURE__ */ j(fa, { children: n }),
@@ -41094,7 +41181,7 @@ var TX = wX(le, "InputContainer") || wX(OX.InputContainer, "InputContainer"), EX
41094
41181
  })] })
41095
41182
  ]
41096
41183
  });
41097
- MX.propTypes = {
41184
+ VX.propTypes = {
41098
41185
  content: N.default.string.isRequired,
41099
41186
  title: N.default.string.isRequired,
41100
41187
  cancel: N.default.string.isRequired,
@@ -41105,15 +41192,15 @@ MX.propTypes = {
41105
41192
  };
41106
41193
  //#endregion
41107
41194
  //#region src/author/passage.tsx
41108
- var NX = S(TX)(({ theme: e }) => ({
41195
+ var HX = S(PX)(({ theme: e }) => ({
41109
41196
  paddingTop: e.spacing(2),
41110
41197
  marginBottom: e.spacing(2),
41111
41198
  width: "100%"
41112
- })), PX = S("div")(({ theme: e }) => ({
41199
+ })), UX = S("div")(({ theme: e }) => ({
41113
41200
  fontSize: e.typography.fontSize - 2,
41114
41201
  color: e.palette.error.main,
41115
41202
  paddingTop: e.spacing(1)
41116
- })), FX = class extends at.Component {
41203
+ })), WX = class extends at.Component {
41117
41204
  static propTypes = {
41118
41205
  onModelChanged: N.default.func.isRequired,
41119
41206
  model: N.default.object.isRequired,
@@ -41149,9 +41236,9 @@ var NX = S(TX)(({ theme: e }) => ({
41149
41236
  "numbered-list"
41150
41237
  ].includes(e));
41151
41238
  return /* @__PURE__ */ M(at.Fragment, { children: [
41152
- g && /* @__PURE__ */ M(NX, {
41239
+ g && /* @__PURE__ */ M(HX, {
41153
41240
  label: l.label,
41154
- children: [/* @__PURE__ */ j(xJ, {
41241
+ children: [/* @__PURE__ */ j(AJ, {
41155
41242
  activePlugins: Vs,
41156
41243
  markup: h[r].teacherInstructions || "",
41157
41244
  onChange: (e) => this.handleChange("teacherInstructions", e),
@@ -41162,11 +41249,11 @@ var NX = S(TX)(({ theme: e }) => ({
41162
41249
  mathMlOptions: s,
41163
41250
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
41164
41251
  pluginProps: ne(l?.inputConfiguration)
41165
- }), S && /* @__PURE__ */ j(PX, { children: S })]
41252
+ }), S && /* @__PURE__ */ j(UX, { children: S })]
41166
41253
  }),
41167
- _ && /* @__PURE__ */ M(NX, {
41254
+ _ && /* @__PURE__ */ M(HX, {
41168
41255
  label: u.label,
41169
- children: [/* @__PURE__ */ j(xJ, {
41256
+ children: [/* @__PURE__ */ j(AJ, {
41170
41257
  activePlugins: re,
41171
41258
  markup: h[r].title || "",
41172
41259
  onChange: (e) => this.handleChange("title", e),
@@ -41175,11 +41262,11 @@ var NX = S(TX)(({ theme: e }) => ({
41175
41262
  mathMlOptions: s,
41176
41263
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
41177
41264
  pluginProps: ne(u?.inputConfiguration)
41178
- }), C && /* @__PURE__ */ j(PX, { children: C })]
41265
+ }), C && /* @__PURE__ */ j(UX, { children: C })]
41179
41266
  }),
41180
- v && /* @__PURE__ */ M(NX, {
41267
+ v && /* @__PURE__ */ M(HX, {
41181
41268
  label: d.label,
41182
- children: [/* @__PURE__ */ j(xJ, {
41269
+ children: [/* @__PURE__ */ j(AJ, {
41183
41270
  activePlugins: re,
41184
41271
  markup: h[r].subtitle || "",
41185
41272
  onChange: (e) => this.handleChange("subtitle", e),
@@ -41188,11 +41275,11 @@ var NX = S(TX)(({ theme: e }) => ({
41188
41275
  mathMlOptions: s,
41189
41276
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
41190
41277
  pluginProps: ne(d?.inputConfiguration)
41191
- }), w && /* @__PURE__ */ j(PX, { children: w })]
41278
+ }), w && /* @__PURE__ */ j(UX, { children: w })]
41192
41279
  }),
41193
- y && /* @__PURE__ */ M(NX, {
41280
+ y && /* @__PURE__ */ M(HX, {
41194
41281
  label: p.label,
41195
- children: [/* @__PURE__ */ j(xJ, {
41282
+ children: [/* @__PURE__ */ j(AJ, {
41196
41283
  activePlugins: re,
41197
41284
  markup: h[r].author || "",
41198
41285
  onChange: (e) => this.handleChange("author", e),
@@ -41201,11 +41288,11 @@ var NX = S(TX)(({ theme: e }) => ({
41201
41288
  mathMlOptions: s,
41202
41289
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
41203
41290
  pluginProps: ne(p?.inputConfiguration)
41204
- }), T && /* @__PURE__ */ j(PX, { children: T })]
41291
+ }), T && /* @__PURE__ */ j(UX, { children: T })]
41205
41292
  }),
41206
- b && /* @__PURE__ */ M(NX, {
41293
+ b && /* @__PURE__ */ M(HX, {
41207
41294
  label: f.label,
41208
- children: [/* @__PURE__ */ j(xJ, {
41295
+ children: [/* @__PURE__ */ j(AJ, {
41209
41296
  activePlugins: Vs,
41210
41297
  markup: h[r].text || "",
41211
41298
  onChange: (e) => this.handleChange("text", e),
@@ -41218,14 +41305,14 @@ var NX = S(TX)(({ theme: e }) => ({
41218
41305
  mathMlOptions: s,
41219
41306
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
41220
41307
  pluginProps: ne(f?.inputConfiguration)
41221
- }), E && /* @__PURE__ */ j(PX, { children: E })]
41308
+ }), E && /* @__PURE__ */ j(UX, { children: E })]
41222
41309
  })
41223
41310
  ] });
41224
41311
  }
41225
- }, { Panel: IX, toggle: LX, dropdown: RX } = pX, zX = S(Xt)(({ theme: e }) => ({
41312
+ }, { Panel: GX, toggle: KX, dropdown: qX } = SX, JX = S(Xt)(({ theme: e }) => ({
41226
41313
  paddingTop: e.spacing(2),
41227
41314
  marginBottom: e.spacing(2)
41228
- })), BX = class extends at.Component {
41315
+ })), YX = class extends at.Component {
41229
41316
  static propTypes = {
41230
41317
  onModelChanged: N.default.func.isRequired,
41231
41318
  onConfigurationChanged: N.default.func,
@@ -41274,20 +41361,20 @@ var NX = S(TX)(({ theme: e }) => ({
41274
41361
  };
41275
41362
  render() {
41276
41363
  let { model: e, configuration: t, imageSupport: n, onConfigurationChanged: r, onModelChanged: i, uploadSoundSupport: a } = this.props, { settingsPanelDisabled: o, language: s = {}, languageChoices: c = {}, teacherInstructions: l = {}, title: u = {}, subtitle: d = {}, text: f = {}, author: p = {}, additionalPassage: m = {} } = t || {}, { extraCSSRules: h, passages: g } = e || {}, _ = {
41277
- titleEnabled: u && u.settings && LX(u.label),
41278
- subtitleEnabled: d && d.settings && LX(d.label),
41279
- authorEnabled: p && p.settings && LX(p.label),
41280
- textEnabled: f && f.settings && LX(f.label),
41281
- "additionalPassage.enabled": m && m.settings && LX(m.label, !0)
41364
+ titleEnabled: u && u.settings && KX(u.label),
41365
+ subtitleEnabled: d && d.settings && KX(d.label),
41366
+ authorEnabled: p && p.settings && KX(p.label),
41367
+ textEnabled: f && f.settings && KX(f.label),
41368
+ "additionalPassage.enabled": m && m.settings && KX(m.label, !0)
41282
41369
  }, v = {
41283
- teacherInstructionsEnabled: l && l.settings && LX(l.label),
41284
- "language.enabled": s && s.settings && LX(s.label, !0),
41285
- language: s && s.settings && s.enabled && RX(c.label, c.options)
41370
+ teacherInstructionsEnabled: l && l.settings && KX(l.label),
41371
+ "language.enabled": s && s.settings && KX(s.label, !0),
41372
+ language: s && s.settings && s.enabled && qX(c.label, c.options)
41286
41373
  }, y = `${m.label} will be deleted`, { indexToRemove: b, showConfirmationDialog: x } = this.state;
41287
- return /* @__PURE__ */ M(RY.ConfigLayout, {
41374
+ return /* @__PURE__ */ M(qY.ConfigLayout, {
41288
41375
  extraCSSRules: h,
41289
41376
  hideSettings: o,
41290
- settings: /* @__PURE__ */ j(IX, {
41377
+ settings: /* @__PURE__ */ j(GX, {
41291
41378
  model: e,
41292
41379
  configuration: t,
41293
41380
  onChangeModel: (e) => i(e),
@@ -41298,11 +41385,11 @@ var NX = S(TX)(({ theme: e }) => ({
41298
41385
  }
41299
41386
  }),
41300
41387
  children: [g.map((r, o) => /* @__PURE__ */ M(at.Fragment, { children: [
41301
- o > 0 && /* @__PURE__ */ j(zX, {
41388
+ o > 0 && /* @__PURE__ */ j(JX, {
41302
41389
  variant: "h5",
41303
41390
  children: m.label
41304
41391
  }),
41305
- /* @__PURE__ */ j(FX, {
41392
+ /* @__PURE__ */ j(WX, {
41306
41393
  imageSupport: n,
41307
41394
  uploadSoundSupport: a,
41308
41395
  model: e,
@@ -41310,16 +41397,16 @@ var NX = S(TX)(({ theme: e }) => ({
41310
41397
  passageIndex: o,
41311
41398
  onModelChanged: i
41312
41399
  }),
41313
- o > 0 && m.enabled && /* @__PURE__ */ j(jX, {
41400
+ o > 0 && m.enabled && /* @__PURE__ */ j(BX, {
41314
41401
  type: "remove",
41315
41402
  label: `Remove ${m.label}`,
41316
41403
  onClick: () => this.removeAdditionalPassage(o)
41317
41404
  }),
41318
- o === 0 && m.enabled && g.length < 2 && /* @__PURE__ */ j(jX, {
41405
+ o === 0 && m.enabled && g.length < 2 && /* @__PURE__ */ j(BX, {
41319
41406
  label: `Add ${m.label}`,
41320
41407
  onClick: this.addAdditionalPassage
41321
41408
  })
41322
- ] }, o)), /* @__PURE__ */ j(MX, {
41409
+ ] }, o)), /* @__PURE__ */ j(VX, {
41323
41410
  open: x,
41324
41411
  title: "Warning",
41325
41412
  content: y,
@@ -41330,7 +41417,7 @@ var NX = S(TX)(({ theme: e }) => ({
41330
41417
  })]
41331
41418
  });
41332
41419
  }
41333
- }, VX = {
41420
+ }, XX = {
41334
41421
  model: {
41335
41422
  authorEnabled: !0,
41336
41423
  passages: [{
@@ -41439,13 +41526,13 @@ var NX = S(TX)(({ theme: e }) => ({
41439
41526
  enabled: !1
41440
41527
  }
41441
41528
  }
41442
- }, HX = class e extends HTMLElement {
41529
+ }, ZX = class e extends HTMLElement {
41443
41530
  static createDefaultModel = (e = {}) => ({
41444
- ...VX.model,
41531
+ ...XX.model,
41445
41532
  ...e
41446
41533
  });
41447
41534
  constructor() {
41448
- super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = VX.configuration;
41535
+ super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = XX.configuration;
41449
41536
  }
41450
41537
  set model(t) {
41451
41538
  this._model = e.createDefaultModel(t), this.render();
@@ -41476,7 +41563,7 @@ var NX = S(TX)(({ theme: e }) => ({
41476
41563
  }
41477
41564
  render() {
41478
41565
  if (this._model) {
41479
- let e = at.createElement(BX, {
41566
+ let e = at.createElement(YX, {
41480
41567
  model: this._model,
41481
41568
  configuration: this._configuration,
41482
41569
  onModelChanged: this.modelChanged.bind(this),
@@ -41498,6 +41585,6 @@ var NX = S(TX)(({ theme: e }) => ({
41498
41585
  }
41499
41586
  };
41500
41587
  //#endregion
41501
- export { HX as default };
41588
+ export { ZX as default };
41502
41589
 
41503
41590
  //# sourceMappingURL=index.js.map