@pie-element/image-cloze-association 10.1.2-next.7 → 10.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.
@@ -39249,8 +39249,8 @@ bx.create({
39249
39249
  })) ?? null };
39250
39250
  }
39251
39251
  });
39252
- var sq = "placeholder", cq = new Dd("tiptap__placeholder"), lq = 200;
39253
- function uq(e) {
39252
+ var sq = "placeholder", cq = new Dd("tiptap__placeholder");
39253
+ function lq(e) {
39254
39254
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
39255
39255
  return o && u.push(l), C_.node(i, i + a.nodeSize, {
39256
39256
  class: u.join(" "),
@@ -39262,156 +39262,198 @@ function uq(e) {
39262
39262
  }) : n
39263
39263
  });
39264
39264
  }
39265
- function dq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
39265
+ function uq(e, t) {
39266
+ return typeof e == "function" ? e(t) : e;
39267
+ }
39268
+ function dq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
39269
+ let { anchor: s } = i, c = [], l = e.isEmpty;
39270
+ return r.nodesBetween(a, o, (r, i) => {
39271
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && Ob(r);
39272
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(lq({
39273
+ editor: e,
39274
+ isEmptyDoc: l,
39275
+ dataAttribute: n,
39276
+ hasAnchor: a,
39277
+ placeholder: t.placeholder,
39278
+ classes: {
39279
+ emptyEditor: t.emptyEditorClass,
39280
+ emptyNode: uq(t.emptyNodeClass, {
39281
+ editor: e,
39282
+ node: r,
39283
+ pos: i,
39284
+ hasAnchor: a
39285
+ })
39286
+ },
39287
+ node: r,
39288
+ pos: i
39289
+ })), t.includeChildren;
39290
+ }), c;
39291
+ }
39292
+ function fq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
39266
39293
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
39267
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
39268
- emptyEditor: t.emptyEditorClass,
39269
- emptyNode: t.emptyNodeClass
39270
- };
39294
+ let { anchor: a } = i, o = [], s = e.isEmpty;
39271
39295
  if (t.showOnlyCurrent && !t.includeChildren) {
39272
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
39273
- if (l && l.type.isTextblock && Ob(l)) {
39274
- let r = a >= u && a <= u + l.nodeSize;
39275
- o.push(uq({
39296
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
39297
+ if (c && c.type.isTextblock && Ob(c)) {
39298
+ let r = a >= l && a <= l + c.nodeSize;
39299
+ o.push(lq({
39276
39300
  editor: e,
39277
39301
  isEmptyDoc: s,
39278
39302
  dataAttribute: n,
39279
39303
  hasAnchor: r,
39280
39304
  placeholder: t.placeholder,
39281
- classes: c,
39282
- node: l,
39283
- pos: u
39305
+ classes: {
39306
+ emptyEditor: t.emptyEditorClass,
39307
+ emptyNode: uq(t.emptyNodeClass, {
39308
+ editor: e,
39309
+ node: c,
39310
+ pos: l,
39311
+ hasAnchor: r
39312
+ })
39313
+ },
39314
+ node: c,
39315
+ pos: l
39284
39316
  }));
39285
39317
  }
39286
- } else {
39287
- let i = cq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
39288
- r.nodesBetween(l, u, (r, i) => {
39289
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && Ob(r);
39290
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(uq({
39291
- editor: e,
39292
- isEmptyDoc: s,
39293
- dataAttribute: n,
39294
- hasAnchor: l,
39295
- placeholder: t.placeholder,
39296
- classes: c,
39297
- node: r,
39298
- pos: i
39299
- })), t.includeChildren;
39300
- });
39301
- }
39318
+ } else o.push(...dq({
39319
+ editor: e,
39320
+ options: t,
39321
+ dataAttribute: n,
39322
+ doc: r,
39323
+ selection: i,
39324
+ from: 0,
39325
+ to: r.content.size
39326
+ }));
39302
39327
  return E_.create(r, o);
39303
39328
  }
39304
- function fq(e) {
39305
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39329
+ function pq(e, t) {
39330
+ let n = e.resolve(t);
39331
+ if (n.depth === 0) {
39332
+ let e = n.nodeAfter ?? n.nodeBefore;
39333
+ if (!e) return {
39334
+ from: t,
39335
+ to: t
39336
+ };
39337
+ let r = n.nodeAfter ? t : t - e.nodeSize;
39338
+ return {
39339
+ from: r,
39340
+ to: r + e.nodeSize
39341
+ };
39342
+ }
39343
+ let r = n.before(1);
39344
+ return {
39345
+ from: r,
39346
+ to: r + n.node(1).nodeSize
39347
+ };
39306
39348
  }
39307
- function pq(e) {
39308
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
39309
- return /auto|scroll|overlay/.test(n);
39349
+ function mq(e, t) {
39350
+ return {
39351
+ from: Math.max(0, t.from - 1),
39352
+ to: Math.min(e.content.size, t.to - 1)
39353
+ };
39310
39354
  }
39311
- function mq(e) {
39312
- let t = e;
39313
- for (; t;) {
39314
- if (pq(t)) return t;
39315
- let e = t.parentElement;
39316
- if (!e) {
39317
- let e = t.getRootNode();
39318
- if (e instanceof ShadowRoot) {
39319
- t = e.host;
39320
- continue;
39321
- }
39322
- return window;
39323
- }
39324
- t = e;
39355
+ function hq(e, t, n) {
39356
+ let r = [];
39357
+ return e.forEach((e, i) => {
39358
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
39359
+ s < n && c > t && r.push({
39360
+ from: a,
39361
+ to: o
39362
+ });
39363
+ }), r;
39364
+ }
39365
+ function gq(e) {
39366
+ if (e.length === 0) return [];
39367
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
39368
+ for (let e = 1; e < t.length; e += 1) {
39369
+ let r = n[n.length - 1], i = t[e];
39370
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
39325
39371
  }
39326
- return window;
39372
+ return n;
39327
39373
  }
39328
- function hq(e) {
39329
- return e === window ? {
39330
- top: 0,
39331
- bottom: window.innerHeight
39332
- } : e.getBoundingClientRect();
39374
+ function _q(e, t) {
39375
+ let n = hq(e, t.from, t.to);
39376
+ return n.push(mq(e, pq(e, t.from))), t.to > t.from ? n.push(mq(e, pq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(mq(e, pq(e, Math.min(t.from + 1, e.content.size)))), n;
39333
39377
  }
39334
- function gq({ doc: e, view: t, scrollContainer: n }) {
39335
- let r = t.dom.getBoundingClientRect(), i = n ? hq(n) : {
39336
- top: 0,
39337
- bottom: window.innerHeight
39338
- }, a = Math.max(r.top, i.top) - lq, o = Math.min(r.bottom, i.bottom) + lq;
39339
- if (a >= o) return {
39340
- top: 0,
39341
- bottom: e.content.size
39342
- };
39343
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
39344
- left: s,
39345
- top: a + 2
39346
- }), l = t.posAtCoords({
39347
- left: s,
39348
- top: o - 2
39349
- });
39350
- return {
39351
- top: c ? c.pos : 0,
39352
- bottom: l ? l.pos : e.content.size
39353
- };
39378
+ function vq(e, t, n) {
39379
+ let r = [];
39380
+ if (e.docChanged) {
39381
+ let t = _b(e);
39382
+ for (let e of t) r.push(..._q(n.doc, e.newRange));
39383
+ }
39384
+ return e.selectionSet && (r.push(mq(n.doc, pq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(mq(n.doc, pq(n.doc, n.selection.anchor)))), gq(r);
39354
39385
  }
39355
- var _q = {
39356
- init() {
39357
- return {
39358
- topPos: null,
39359
- bottomPos: null
39360
- };
39361
- },
39362
- apply(e, t) {
39363
- let n = e.getMeta(cq);
39364
- return n?.positions ? {
39365
- topPos: n.positions.top,
39366
- bottomPos: n.positions.bottom
39367
- } : e.docChanged ? {
39368
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
39369
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
39370
- } : t;
39386
+ function yq(e, t, n) {
39387
+ let r = Math.max(0, Math.min(e, n.content.size));
39388
+ return {
39389
+ from: r,
39390
+ to: Math.max(r, Math.min(t, n.content.size))
39391
+ };
39392
+ }
39393
+ function bq({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
39394
+ let s = e;
39395
+ for (let e of t) {
39396
+ let { from: t, to: c } = yq(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
39397
+ l.length && (s = s.remove(l));
39398
+ let u = dq({
39399
+ editor: n,
39400
+ options: r,
39401
+ dataAttribute: i,
39402
+ doc: a,
39403
+ selection: o,
39404
+ from: t,
39405
+ to: c
39406
+ });
39407
+ u.length && (s = s.add(a, u));
39371
39408
  }
39372
- };
39373
- function vq(e) {
39374
- let t = mq(e.dom), n = () => {
39375
- let n = gq({
39376
- view: e,
39377
- doc: e.state.doc,
39378
- scrollContainer: t
39379
- }), r = cq.getState(e.state);
39380
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
39381
- let i = e.state.tr.setMeta(cq, { positions: n });
39382
- e.dispatch(i);
39383
- }, r = null, i = 0, a = () => {
39384
- r === null && (r = requestAnimationFrame(() => {
39385
- r = null;
39386
- let e = performance.now();
39387
- e - i >= 150 ? (i = e, n()) : a();
39388
- }));
39389
- };
39390
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
39391
- update(t, n) {
39392
- e.state.doc.content.size !== n.doc.content.size && a();
39409
+ return s;
39410
+ }
39411
+ function xq({ editor: e, options: t, dataAttribute: n }) {
39412
+ return {
39413
+ init(r, i) {
39414
+ return fq({
39415
+ editor: e,
39416
+ options: t,
39417
+ dataAttribute: n,
39418
+ doc: i.doc,
39419
+ selection: i.selection
39420
+ }) ?? E_.empty;
39393
39421
  },
39394
- destroy: () => {
39395
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39422
+ apply(r, i, a, o) {
39423
+ return !r.docChanged && !r.selectionSet ? i : bq({
39424
+ decorations: i.map(r.mapping, r.doc),
39425
+ ranges: vq(r, a, o),
39426
+ editor: e,
39427
+ options: t,
39428
+ dataAttribute: n,
39429
+ doc: o.doc,
39430
+ selection: o.selection
39431
+ });
39396
39432
  }
39397
39433
  };
39398
39434
  }
39399
- function yq({ editor: e, options: t }) {
39400
- let n = t.dataAttribute ? `data-${fq(t.dataAttribute)}` : `data-${sq}`;
39435
+ function Sq(e) {
39436
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39437
+ }
39438
+ function Cq({ editor: e, options: t }) {
39439
+ let n = t.dataAttribute ? `data-${Sq(t.dataAttribute)}` : `data-${sq}`, r = t.showOnlyCurrent && !t.includeChildren;
39401
39440
  return new H({
39402
39441
  key: cq,
39403
- state: _q,
39404
- view: vq,
39405
- props: { decorations: ({ doc: r, selection: i }) => dq({
39442
+ ...r ? {} : { state: xq({
39443
+ editor: e,
39444
+ options: t,
39445
+ dataAttribute: n
39446
+ }) },
39447
+ props: { decorations: r ? ({ doc: r, selection: i }) => fq({
39406
39448
  editor: e,
39407
39449
  options: t,
39408
39450
  dataAttribute: n,
39409
39451
  doc: r,
39410
39452
  selection: i
39411
- }) }
39453
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? E_.empty : cq.getState(n) ?? E_.empty }
39412
39454
  });
39413
39455
  }
39414
- var bq = bx.create({
39456
+ var wq = bx.create({
39415
39457
  name: "placeholder",
39416
39458
  addOptions() {
39417
39459
  return {
@@ -39425,12 +39467,25 @@ var bq = bx.create({
39425
39467
  };
39426
39468
  },
39427
39469
  addProseMirrorPlugins() {
39428
- return [yq({
39470
+ return [Cq({
39429
39471
  editor: this.editor,
39430
39472
  options: this.options
39431
39473
  })];
39432
39474
  }
39433
39475
  });
39476
+ function Tq(e, t) {
39477
+ return !e.selection.empty && !kb(e.selection) && t.isEditable;
39478
+ }
39479
+ function Eq(e, t) {
39480
+ return Tq(e, t) && !t.isFocused && !t.view.dragging;
39481
+ }
39482
+ function Dq() {
39483
+ var e;
39484
+ (e = window.getSelection()) == null || e.removeAllRanges();
39485
+ }
39486
+ function Oq(e) {
39487
+ e.focus();
39488
+ }
39434
39489
  bx.create({
39435
39490
  name: "selection",
39436
39491
  addOptions() {
@@ -39440,13 +39495,25 @@ bx.create({
39440
39495
  let { editor: e, options: t } = this;
39441
39496
  return [new H({
39442
39497
  key: new Dd("selection"),
39443
- props: { decorations(n) {
39444
- return n.selection.empty || e.isFocused || !e.isEditable || kb(n.selection) || e.view.dragging ? null : E_.create(n.doc, [C_.inline(n.selection.from, n.selection.to, { class: t.className })]);
39445
- } }
39498
+ props: {
39499
+ decorations(n) {
39500
+ return Eq(n, e) ? E_.create(n.doc, [C_.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39501
+ },
39502
+ handleDOMEvents: {
39503
+ blur(t) {
39504
+ return Tq(t.state, e) && Dq(), !1;
39505
+ },
39506
+ focus(t) {
39507
+ return Tq(t.state, e) && requestAnimationFrame(() => {
39508
+ !e.isDestroyed && t.hasFocus() && Oq(t);
39509
+ }), !1;
39510
+ }
39511
+ }
39512
+ }
39446
39513
  })];
39447
39514
  }
39448
39515
  });
39449
- function xq({ types: e, node: t }) {
39516
+ function kq({ types: e, node: t }) {
39450
39517
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39451
39518
  }
39452
39519
  bx.create({
@@ -39468,7 +39535,7 @@ bx.create({
39468
39535
  state: {
39469
39536
  init: (e, t) => {
39470
39537
  let r = t.tr.doc.lastChild;
39471
- return !xq({
39538
+ return !kq({
39472
39539
  node: r,
39473
39540
  types: n
39474
39541
  });
@@ -39476,7 +39543,7 @@ bx.create({
39476
39543
  apply: (e, t) => {
39477
39544
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39478
39545
  let r = e.doc.lastChild;
39479
- return !xq({
39546
+ return !kq({
39480
39547
  node: r,
39481
39548
  types: n
39482
39549
  });
@@ -39511,7 +39578,7 @@ bx.create({
39511
39578
  };
39512
39579
  }
39513
39580
  });
39514
- var Sq = fx.create({
39581
+ var Aq = fx.create({
39515
39582
  name: "superscript",
39516
39583
  addOptions() {
39517
39584
  return { HTMLAttributes: {} };
@@ -39541,7 +39608,7 @@ var Sq = fx.create({
39541
39608
  addKeyboardShortcuts() {
39542
39609
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
39543
39610
  }
39544
- }), Cq = fx.create({
39611
+ }), jq = fx.create({
39545
39612
  name: "subscript",
39546
39613
  addOptions() {
39547
39614
  return { HTMLAttributes: {} };
@@ -39571,7 +39638,7 @@ var Sq = fx.create({
39571
39638
  addKeyboardShortcuts() {
39572
39639
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
39573
39640
  }
39574
- }), wq = bx.create({
39641
+ }), Mq = bx.create({
39575
39642
  name: "textAlign",
39576
39643
  addOptions() {
39577
39644
  return {
@@ -39613,7 +39680,7 @@ var Sq = fx.create({
39613
39680
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
39614
39681
  };
39615
39682
  }
39616
- }), Tq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Eq = Xx.create({
39683
+ }), Nq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Pq = Xx.create({
39617
39684
  name: "image",
39618
39685
  addOptions() {
39619
39686
  return {
@@ -39706,7 +39773,7 @@ var Sq = fx.create({
39706
39773
  },
39707
39774
  addInputRules() {
39708
39775
  return [Ix({
39709
- find: Tq,
39776
+ find: Nq,
39710
39777
  type: this.type,
39711
39778
  getAttributes: (e) => {
39712
39779
  let [, , t, n, r] = e;
@@ -39718,17 +39785,17 @@ var Sq = fx.create({
39718
39785
  }
39719
39786
  })];
39720
39787
  }
39721
- }), Dq = bq, Oq = {
39788
+ }), Fq = wq, Iq = {
39722
39789
  position: "bottom",
39723
39790
  alignment: "left",
39724
39791
  alwaysVisible: !1,
39725
39792
  showDone: !0,
39726
39793
  doneOn: "blur"
39727
- }, kq = {
39794
+ }, Lq = {
39728
39795
  options: {},
39729
39796
  respAreaToolbar: () => {},
39730
39797
  onHandleAreaChange: () => {}
39731
- }, Aq = [
39798
+ }, Rq = [
39732
39799
  "bold",
39733
39800
  "italic",
39734
39801
  "underline",
@@ -39750,7 +39817,7 @@ var Sq = fx.create({
39750
39817
  "h3",
39751
39818
  "undo",
39752
39819
  "redo"
39753
- ], jq = {
39820
+ ], zq = {
39754
39821
  "--white": "#fff",
39755
39822
  "--black": "#2e2b29",
39756
39823
  "--black-contrast": "#110f0e",
@@ -39769,14 +39836,18 @@ var Sq = fx.create({
39769
39836
  "--red": "#ff5c33",
39770
39837
  "--red-light": "#ffebe5",
39771
39838
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
39772
- }, Mq = (e) => {
39839
+ }, Bq = (e) => ({
39840
+ spellcheck: e ? "true" : "false",
39841
+ autocorrect: e ? "on" : "off",
39842
+ autocapitalize: e ? "on" : "off"
39843
+ }), Vq = (e) => {
39773
39844
  let { showParagraphs: t, separateParagraphs: r } = e.pluginProps || {}, [i, a] = bt([]), [o, s] = bt(!1), { toolbarOpts: c } = e, l = pt((e) => {
39774
39845
  a((t) => {
39775
39846
  let n = t.filter((t) => t.pos !== e);
39776
39847
  return n.length === 0 && s(!1), n;
39777
39848
  });
39778
39849
  }, [a]), u = {
39779
- ...Oq,
39850
+ ...Iq,
39780
39851
  ...c
39781
39852
  }, d = pt((t) => {
39782
39853
  let n = t.getHTML();
@@ -39787,13 +39858,13 @@ var Sq = fx.create({
39787
39858
  e.onDone,
39788
39859
  u.doneOn
39789
39860
  ]), f = vt(() => ({
39790
- ...kq,
39861
+ ...Lq,
39791
39862
  ...e.responseAreaProps,
39792
39863
  onInlineDropdownToolbarClose: d
39793
39864
  }), [e.responseAreaProps, d]), p = vt(() => {
39794
39865
  let { customPlugins: t, ...n } = e.pluginProps || {};
39795
39866
  t ||= [];
39796
- let r = (e.activePlugins || Aq)?.filter((e) => {
39867
+ let r = (e.activePlugins || Rq)?.filter((e) => {
39797
39868
  let t = vc[e] || e, r = n[t] || {};
39798
39869
  return !r || !r.disabled;
39799
39870
  });
@@ -39811,103 +39882,112 @@ var Sq = fx.create({
39811
39882
  setKeypadInteraction: {},
39812
39883
  media: {}
39813
39884
  });
39814
- }, [e, f.type]), m = tA({
39815
- extensions: [
39816
- wq.configure({
39817
- types: [
39818
- "heading",
39819
- "paragraph",
39820
- "div",
39821
- "headingParagraph",
39822
- "h1",
39823
- "h2",
39824
- "h3",
39825
- "h4",
39826
- "h5",
39827
- "h6",
39828
- "td",
39829
- "th"
39830
- ],
39831
- alignments: [
39832
- "left",
39833
- "right",
39834
- "center",
39835
- "justify"
39836
- ]
39837
- }),
39838
- aq,
39839
- oq.configure({ limit: e.charactersLimit || 1e6 }),
39840
- YK.configure({ trailingNode: {
39885
+ }, [e, f.type]), m = [
39886
+ Mq.configure({
39887
+ types: [
39888
+ "heading",
39889
+ "paragraph",
39890
+ "div",
39891
+ "headingParagraph",
39892
+ "h1",
39893
+ "h2",
39894
+ "h3",
39895
+ "h4",
39896
+ "h5",
39897
+ "h6",
39898
+ "td",
39899
+ "th"
39900
+ ],
39901
+ alignments: [
39902
+ "left",
39903
+ "right",
39904
+ "center",
39905
+ "justify"
39906
+ ]
39907
+ }),
39908
+ aq,
39909
+ oq.configure({ limit: e.charactersLimit || 1e6 }),
39910
+ YK.configure({
39911
+ trailingNode: {
39841
39912
  node: "paragraph",
39842
39913
  notAfter: ["paragraph", "div"]
39843
- } }),
39844
- $L,
39845
- OO,
39846
- eR,
39847
- kO,
39848
- AO,
39849
- Dq.configure({
39850
- placeholder: e.placeholder,
39851
- showOnlyWhenEditable: !0,
39852
- showOnlyCurrent: !1,
39853
- includeChildren: !0
39854
- }),
39855
- wO,
39856
- cO,
39857
- DO,
39858
- EO,
39859
- LF.configure(f),
39860
- RF.configure(f),
39861
- BF.configure(f),
39862
- VF.configure(f),
39863
- zF.configure(f),
39864
- wI.configure({
39865
- toolbarOpts: u,
39866
- math: e.pluginProps?.math || {}
39867
- }),
39868
- Cq,
39869
- Sq,
39870
- Eq,
39871
- GI.configure({
39872
- toolbarOpts: u,
39873
- imageHandling: {
39874
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39875
- onDone: (t) => e.onDone?.(t.getHTML()),
39876
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39877
- let { src: n } = t.attrs;
39878
- e.imageSupport.delete(n, (e) => {
39879
- l(t.pos);
39880
- });
39881
- }),
39882
- insertImageRequested: e.imageSupport && ((t, r, i) => {
39883
- let [s, c] = r, u = (n) => {
39884
- let r;
39885
- o && n && (r = e.onChange), l(c), r?.(t.getHTML());
39886
- };
39887
- t._insertingImage = !0, a((e) => [...e, s]), (() => {
39888
- let r = i(u), a = n(() => {
39889
- let e = () => window.removeEventListener("focus", a);
39890
- if (!t._insertingImage) {
39891
- e();
39892
- return;
39893
- }
39894
- l(c), t._insertingImage = !1, e();
39895
- }, 500);
39896
- window.addEventListener("focus", a), e.imageSupport.add(r);
39897
- })();
39898
- }),
39899
- maxImageWidth: e.maxImageWidth,
39900
- maxImageHeight: e.maxImageHeight
39901
- },
39902
- limit: 3
39903
- }),
39904
- fL.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39905
- vL.configure({ extraCSSRules: e.extraCSSRules })
39906
- ],
39914
+ },
39915
+ link: {
39916
+ autolink: !1,
39917
+ linkOnPaste: !1
39918
+ }
39919
+ }),
39920
+ $L,
39921
+ OO,
39922
+ eR,
39923
+ kO,
39924
+ AO,
39925
+ Fq.configure({
39926
+ placeholder: e.placeholder,
39927
+ showOnlyWhenEditable: !0,
39928
+ showOnlyCurrent: !1,
39929
+ includeChildren: !0
39930
+ }),
39931
+ wO,
39932
+ cO,
39933
+ DO,
39934
+ EO,
39935
+ LF.configure(f),
39936
+ RF.configure(f),
39937
+ BF.configure(f),
39938
+ VF.configure(f),
39939
+ zF.configure(f),
39940
+ wI.configure({
39941
+ toolbarOpts: u,
39942
+ math: e.pluginProps?.math || {}
39943
+ }),
39944
+ jq,
39945
+ Aq,
39946
+ Pq,
39947
+ GI.configure({
39948
+ toolbarOpts: u,
39949
+ imageHandling: {
39950
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39951
+ onDone: (t) => e.onDone?.(t.getHTML()),
39952
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39953
+ let { src: n } = t.attrs;
39954
+ e.imageSupport.delete(n, (e) => {
39955
+ l(t.pos);
39956
+ });
39957
+ }),
39958
+ insertImageRequested: e.imageSupport && ((t, r, i) => {
39959
+ let [s, c] = r, u = (n) => {
39960
+ let r;
39961
+ o && n && (r = e.onChange), l(c), r?.(t.getHTML());
39962
+ };
39963
+ t._insertingImage = !0, a((e) => [...e, s]), (() => {
39964
+ let r = i(u), a = n(() => {
39965
+ let e = () => window.removeEventListener("focus", a);
39966
+ if (!t._insertingImage) {
39967
+ e();
39968
+ return;
39969
+ }
39970
+ l(c), t._insertingImage = !1, e();
39971
+ }, 500);
39972
+ window.addEventListener("focus", a), e.imageSupport.add(r);
39973
+ })();
39974
+ }),
39975
+ maxImageWidth: e.maxImageWidth,
39976
+ maxImageHeight: e.maxImageHeight
39977
+ },
39978
+ limit: 3
39979
+ }),
39980
+ fL.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39981
+ vL.configure({ extraCSSRules: e.extraCSSRules })
39982
+ ], h = e.spellCheck !== !1, g = tA({
39983
+ extensions: m,
39907
39984
  immediatelyRender: !1,
39908
- editorProps: { handleKeyDown(t, n) {
39909
- return e.onKeyDown ? e.onKeyDown(n) : !1;
39910
- } },
39985
+ editorProps: {
39986
+ attributes: Bq(h),
39987
+ handleKeyDown(t, n) {
39988
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39989
+ }
39990
+ },
39911
39991
  editable: !e.disabled,
39912
39992
  content: Cc(e.markup),
39913
39993
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -39918,22 +39998,29 @@ var Sq = fx.create({
39918
39998
  }
39919
39999
  }, [e.charactersLimit]);
39920
40000
  gt(() => {
39921
- e.editorRef && e.editorRef(m);
39922
- }, [e.editorRef, m]), gt(() => {
39923
- m?.setEditable(!e.disabled);
39924
- }, [e.disabled, m]), gt(() => {
39925
- if (!m) return;
40001
+ e.editorRef && e.editorRef(g);
40002
+ }, [e.editorRef, g]), gt(() => {
40003
+ g?.setEditable(!e.disabled);
40004
+ }, [e.disabled, g]), gt(() => {
40005
+ if (!g) return;
40006
+ let e = g.options?.editorProps, t = Bq(h);
40007
+ e?.attributes?.spellcheck !== t.spellcheck && g.setOptions({ editorProps: {
40008
+ ...e,
40009
+ attributes: t
40010
+ } });
40011
+ }, [h, g]), gt(() => {
40012
+ if (!g) return;
39926
40013
  let t = Cc(e.markup);
39927
- t !== m.getHTML() && m.commands.setContent(t, { emitUpdate: !1 });
39928
- }, [e.markup, m]), gt(() => {
39929
- Object.entries(jq).forEach(([e, t]) => {
40014
+ t !== g.getHTML() && g.commands.setContent(t, { emitUpdate: !1 });
40015
+ }, [e.markup, g]), gt(() => {
40016
+ Object.entries(zq).forEach(([e, t]) => {
39930
40017
  document.documentElement.style.setProperty(e, t);
39931
40018
  });
39932
40019
  }, []);
39933
- let h = Zk({
39934
- editor: m,
40020
+ let _ = Zk({
40021
+ editor: g,
39935
40022
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39936
- }), g = vt(() => {
40023
+ }), v = vt(() => {
39937
40024
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39938
40025
  return {
39939
40026
  width: tR(n),
@@ -39948,20 +40035,20 @@ var Sq = fx.create({
39948
40035
  ...e,
39949
40036
  activePlugins: p,
39950
40037
  toolbarOpts: u,
39951
- editorState: h,
39952
- editor: m,
39953
- children: m && /* @__PURE__ */ P(Nq, {
40038
+ editorState: _,
40039
+ editor: g,
40040
+ children: g && /* @__PURE__ */ P(Hq, {
39954
40041
  style: {
39955
- minHeight: g.minHeight,
39956
- height: g.height,
39957
- maxHeight: g.maxHeight
40042
+ minHeight: v.minHeight,
40043
+ height: v.height,
40044
+ maxHeight: v.maxHeight
39958
40045
  },
39959
40046
  showParagraph: t && !t.disabled,
39960
40047
  separateParagraph: r && !r.disabled,
39961
- editor: m
40048
+ editor: g
39962
40049
  })
39963
40050
  });
39964
- }, Nq = M(Jk, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
40051
+ }, Hq = M(Jk, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39965
40052
  display: "flex",
39966
40053
  outline: "none !important",
39967
40054
  "& .ProseMirror": {
@@ -39989,7 +40076,7 @@ var Sq = fx.create({
39989
40076
  } },
39990
40077
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39991
40078
  }
39992
- })), Pq = Mq, Fq = M(Is)(() => ({})), Iq = class extends ot.Component {
40079
+ })), Uq = Vq, Wq = M(Is)(() => ({})), Gq = class extends ot.Component {
39993
40080
  static propTypes = {
39994
40081
  className: I.default.string,
39995
40082
  contentClassName: I.default.string,
@@ -40010,7 +40097,7 @@ var Sq = fx.create({
40010
40097
  indicatorColor: "primary",
40011
40098
  value: e,
40012
40099
  onChange: this.handleChange,
40013
- children: ot.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(Fq, { label: e.props.title }, t) : null)
40100
+ children: ot.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(Wq, { label: e.props.title }, t) : null)
40014
40101
  }), /* @__PURE__ */ P("div", {
40015
40102
  className: r,
40016
40103
  style: i,
@@ -40018,7 +40105,7 @@ var Sq = fx.create({
40018
40105
  })]
40019
40106
  });
40020
40107
  }
40021
- }, Lq = M(wa)(({ theme: e, mini: t }) => ({
40108
+ }, Kq = M(wa)(({ theme: e, mini: t }) => ({
40022
40109
  margin: 0,
40023
40110
  marginLeft: 0,
40024
40111
  padding: 0,
@@ -40032,7 +40119,7 @@ var Sq = fx.create({
40032
40119
  fontSize: e.typography.fontSize - 3
40033
40120
  }
40034
40121
  }
40035
- })), Rq = M(Vi)(({ theme: e, mini: t, error: n }) => ({
40122
+ })), qq = M(Vi)(({ theme: e, mini: t, error: n }) => ({
40036
40123
  color: `${k.tertiary()} !important`,
40037
40124
  ...t && {
40038
40125
  margin: 0,
@@ -40041,9 +40128,9 @@ var Sq = fx.create({
40041
40128
  height: e.spacing(3)
40042
40129
  },
40043
40130
  ...n && { color: `${e.palette.error.main} !important` }
40044
- })), zq = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(Lq, {
40131
+ })), Jq = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(Kq, {
40045
40132
  mini: e,
40046
- control: /* @__PURE__ */ P(Rq, {
40133
+ control: /* @__PURE__ */ P(qq, {
40047
40134
  checked: t,
40048
40135
  onChange: n,
40049
40136
  value: r,
@@ -40052,21 +40139,21 @@ var Sq = fx.create({
40052
40139
  }),
40053
40140
  label: i
40054
40141
  });
40055
- zq.propTypes = {
40142
+ Jq.propTypes = {
40056
40143
  mini: I.default.bool,
40057
40144
  checked: I.default.bool.isRequired,
40058
40145
  onChange: I.default.func.isRequired,
40059
40146
  value: I.default.string,
40060
40147
  label: I.default.string.isRequired,
40061
40148
  error: I.default.bool
40062
- }, zq.defaultProps = {
40149
+ }, Jq.defaultProps = {
40063
40150
  value: "",
40064
40151
  mini: !1,
40065
40152
  error: !1
40066
40153
  };
40067
40154
  //#endregion
40068
40155
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40069
- var Bq = (0, fc.default)("@pie-lib:config-ui:number-text-field"), Vq = M(dc)(({ theme: e }) => ({
40156
+ var Yq = (0, fc.default)("@pie-lib:config-ui:number-text-field"), Xq = M(dc)(({ theme: e }) => ({
40070
40157
  marginRight: e.spacing(1),
40071
40158
  "& .MuiInputLabel-root": {
40072
40159
  width: "auto",
@@ -40088,11 +40175,11 @@ var Bq = (0, fc.default)("@pie-lib:config-ui:number-text-field"), Vq = M(dc)(({
40088
40175
  minHeight: "auto",
40089
40176
  padding: "6px 0 7px"
40090
40177
  }
40091
- })), Hq = (e, t) => {
40178
+ })), Zq = (e, t) => {
40092
40179
  if (!d(e) && !d(t)) return 0;
40093
40180
  if (!d(e) && d(t)) return t;
40094
40181
  if (d(e)) return e;
40095
- }, Uq = class extends ot.Component {
40182
+ }, Qq = class extends ot.Component {
40096
40183
  static propTypes = {
40097
40184
  disabled: I.default.bool,
40098
40185
  className: I.default.string,
@@ -40118,13 +40205,13 @@ var Bq = (0, fc.default)("@pie-lib:config-ui:number-text-field"), Vq = M(dc)(({
40118
40205
  this.setState({ value: t });
40119
40206
  }
40120
40207
  clamp(e, t = this.props.min, n = this.props.max) {
40121
- return d(e) ? (d(n) && (e = Math.min(e, n)), d(t) && (e = Math.max(e, t)), e) : Hq(t, n);
40208
+ return d(e) ? (d(n) && (e = Math.min(e, n)), d(t) && (e = Math.max(e, t)), e) : Zq(t, n);
40122
40209
  }
40123
40210
  onBlur = (e) => {
40124
40211
  let t = e.target.value, n = parseFloat(t);
40125
- Bq("rawNumber: ", n);
40212
+ Yq("rawNumber: ", n);
40126
40213
  let r = this.clamp(n);
40127
- Bq("number: ", r), r !== this.state.value && (Bq("trigger update..."), this.setState({ value: r.toString() }, () => {
40214
+ Yq("number: ", r), r !== this.state.value && (Yq("trigger update..."), this.setState({ value: r.toString() }, () => {
40128
40215
  this.props.onChange(e, r);
40129
40216
  }));
40130
40217
  };
@@ -40144,7 +40231,7 @@ var Bq = (0, fc.default)("@pie-lib:config-ui:number-text-field"), Vq = M(dc)(({
40144
40231
  };
40145
40232
  render() {
40146
40233
  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();
40147
- return /* @__PURE__ */ P(Vq, {
40234
+ return /* @__PURE__ */ P(Xq, {
40148
40235
  variant: s ? "filled" : l || "standard",
40149
40236
  inputRef: (e) => {
40150
40237
  this.inputRef = e;
@@ -40179,19 +40266,19 @@ var Bq = (0, fc.default)("@pie-lib:config-ui:number-text-field"), Vq = M(dc)(({
40179
40266
  };
40180
40267
  //#endregion
40181
40268
  //#region ../../lib-react/config-ui/dist/two-choice.js
40182
- function Wq(e) {
40269
+ function $q(e) {
40183
40270
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40184
40271
  }
40185
- function Gq(e, t) {
40186
- return !e || Wq(e) ? e : Wq(e.default) ? e.default : t && Wq(e[t]) ? e[t] : t && Wq(e[t]?.default) ? e[t].default : e;
40272
+ function eJ(e, t) {
40273
+ return !e || $q(e) ? e : $q(e.default) ? e.default : t && $q(e[t]) ? e[t] : t && $q(e[t]?.default) ? e[t].default : e;
40187
40274
  }
40188
- var Kq = Gq(ge, "InputContainer") || Gq(Yq.InputContainer, "InputContainer"), qq = Me, Jq = qq.default, Yq = Jq && typeof Jq == "object" ? Jq : qq, Xq = M("div")(({ theme: e, direction: t }) => ({
40275
+ var tJ = eJ(ge, "InputContainer") || eJ(iJ.InputContainer, "InputContainer"), nJ = Me, rJ = nJ.default, iJ = rJ && typeof rJ == "object" ? rJ : nJ, aJ = M("div")(({ theme: e, direction: t }) => ({
40189
40276
  display: "flex",
40190
40277
  flexWrap: "wrap",
40191
40278
  paddingLeft: 0,
40192
40279
  marginTop: e.spacing(1),
40193
40280
  ...t === "vertical" && { flexDirection: "column" }
40194
- })), Zq = class extends ot.Component {
40281
+ })), oJ = class extends ot.Component {
40195
40282
  static propTypes = {
40196
40283
  header: I.default.string.isRequired,
40197
40284
  className: I.default.string,
@@ -40209,10 +40296,10 @@ var Kq = Gq(ge, "InputContainer") || Gq(Yq.InputContainer, "InputContainer"), qq
40209
40296
  label: e,
40210
40297
  value: e
40211
40298
  } : e), s = n || hc;
40212
- return /* @__PURE__ */ P(Kq, {
40299
+ return /* @__PURE__ */ P(tJ, {
40213
40300
  label: e,
40214
40301
  className: t,
40215
- children: /* @__PURE__ */ P(Xq, {
40302
+ children: /* @__PURE__ */ P(aJ, {
40216
40303
  direction: a,
40217
40304
  children: o.map((e, t) => /* @__PURE__ */ P(s, {
40218
40305
  value: e.value,
@@ -40223,7 +40310,7 @@ var Kq = Gq(ge, "InputContainer") || Gq(Yq.InputContainer, "InputContainer"), qq
40223
40310
  })
40224
40311
  });
40225
40312
  }
40226
- }, Qq = I.default.shape({
40313
+ }, sJ = I.default.shape({
40227
40314
  label: I.default.string,
40228
40315
  value: I.default.string
40229
40316
  });
@@ -40232,14 +40319,14 @@ var Kq = Gq(ge, "InputContainer") || Gq(Yq.InputContainer, "InputContainer"), qq
40232
40319
  header: I.default.string.isRequired,
40233
40320
  value: I.default.string.isRequired,
40234
40321
  onChange: I.default.func.isRequired,
40235
- one: I.default.oneOfType([Qq, I.default.string]),
40236
- two: I.default.oneOfType([Qq, I.default.string]),
40322
+ one: I.default.oneOfType([sJ, I.default.string]),
40323
+ two: I.default.oneOfType([sJ, I.default.string]),
40237
40324
  className: I.default.string,
40238
40325
  customLabel: I.default.func
40239
40326
  };
40240
40327
  render() {
40241
40328
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
40242
- return /* @__PURE__ */ P(Zq, {
40329
+ return /* @__PURE__ */ P(oJ, {
40243
40330
  customLabel: i,
40244
40331
  header: n,
40245
40332
  className: r,
@@ -40251,21 +40338,21 @@ var Kq = Gq(ge, "InputContainer") || Gq(Yq.InputContainer, "InputContainer"), qq
40251
40338
  });
40252
40339
  //#endregion
40253
40340
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
40254
- var $q = Object.defineProperty, eJ = (e, t) => {
40341
+ var cJ = Object.defineProperty, lJ = (e, t) => {
40255
40342
  let n = {};
40256
- for (var r in e) $q(n, r, {
40343
+ for (var r in e) cJ(n, r, {
40257
40344
  get: e[r],
40258
40345
  enumerable: !0
40259
40346
  });
40260
- return t || $q(n, Symbol.toStringTag, { value: "Module" }), n;
40261
- }, tJ = M("div")(() => ({
40347
+ return t || cJ(n, Symbol.toStringTag, { value: "Module" }), n;
40348
+ }, uJ = M("div")(() => ({
40262
40349
  display: "flex",
40263
40350
  flexDirection: "column",
40264
40351
  position: "relative"
40265
- })), nJ = M("div")(() => ({
40352
+ })), dJ = M("div")(() => ({
40266
40353
  display: "flex",
40267
40354
  justifyContent: "space-between"
40268
- })), rJ = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), iJ = M("div")(() => ({ flex: "1" })), aJ = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), oJ = class extends ot.Component {
40355
+ })), fJ = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), pJ = M("div")(() => ({ flex: "1" })), mJ = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), hJ = class extends ot.Component {
40269
40356
  static propTypes = {
40270
40357
  mode: I.default.oneOf(["tabbed", "inline"]),
40271
40358
  secondary: I.default.oneOfType([I.default.arrayOf(I.default.node), I.default.node]),
@@ -40283,7 +40370,7 @@ var $q = Object.defineProperty, eJ = (e, t) => {
40283
40370
  } catch (e) {
40284
40371
  console.log(e.toString());
40285
40372
  }
40286
- return /* @__PURE__ */ F(tJ, {
40373
+ return /* @__PURE__ */ F(uJ, {
40287
40374
  style: {
40288
40375
  minHeight: i,
40289
40376
  minWidth: a,
@@ -40291,28 +40378,28 @@ var $q = Object.defineProperty, eJ = (e, t) => {
40291
40378
  maxWidth: s
40292
40379
  },
40293
40380
  children: [
40294
- e === "inline" && /* @__PURE__ */ F(nJ, { children: [/* @__PURE__ */ P(iJ, {
40381
+ e === "inline" && /* @__PURE__ */ F(dJ, { children: [/* @__PURE__ */ P(pJ, {
40295
40382
  className: "design-container",
40296
40383
  children: n
40297
- }), l && /* @__PURE__ */ P(aJ, {
40384
+ }), l && /* @__PURE__ */ P(mJ, {
40298
40385
  className: "settings-container",
40299
40386
  children: t
40300
40387
  })] }),
40301
- e === "tabbed" && l && /* @__PURE__ */ F(Iq, {
40388
+ e === "tabbed" && l && /* @__PURE__ */ F(Gq, {
40302
40389
  onChange: this.onTabsChange,
40303
40390
  contentClassName: "content-container",
40304
40391
  indicatorColor: "primary",
40305
- children: [/* @__PURE__ */ P(rJ, {
40392
+ children: [/* @__PURE__ */ P(fJ, {
40306
40393
  title: "Design",
40307
40394
  className: "design-container",
40308
40395
  children: n
40309
- }), /* @__PURE__ */ P(rJ, {
40396
+ }), /* @__PURE__ */ P(fJ, {
40310
40397
  title: "Settings",
40311
40398
  className: "settings-container",
40312
40399
  children: t
40313
40400
  })]
40314
40401
  }),
40315
- e === "tabbed" && !l && /* @__PURE__ */ P(rJ, {
40402
+ e === "tabbed" && !l && /* @__PURE__ */ P(fJ, {
40316
40403
  className: "design-container",
40317
40404
  children: n
40318
40405
  })
@@ -40322,18 +40409,18 @@ var $q = Object.defineProperty, eJ = (e, t) => {
40322
40409
  };
40323
40410
  //#endregion
40324
40411
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
40325
- function sJ() {
40326
- return sJ = Object.assign ? Object.assign.bind() : function(e) {
40412
+ function gJ() {
40413
+ return gJ = Object.assign ? Object.assign.bind() : function(e) {
40327
40414
  for (var t = 1; t < arguments.length; t++) {
40328
40415
  var n = arguments[t];
40329
40416
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
40330
40417
  }
40331
40418
  return e;
40332
- }, sJ.apply(null, arguments);
40419
+ }, gJ.apply(null, arguments);
40333
40420
  }
40334
40421
  //#endregion
40335
40422
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
40336
- function cJ(e, t) {
40423
+ function _J(e, t) {
40337
40424
  if (e == null) return {};
40338
40425
  var n = {};
40339
40426
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -40344,19 +40431,19 @@ function cJ(e, t) {
40344
40431
  }
40345
40432
  //#endregion
40346
40433
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
40347
- function lJ(e, t) {
40348
- return lJ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40434
+ function vJ(e, t) {
40435
+ return vJ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40349
40436
  return e.__proto__ = t, e;
40350
- }, lJ(e, t);
40437
+ }, vJ(e, t);
40351
40438
  }
40352
40439
  //#endregion
40353
40440
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
40354
- function uJ(e, t) {
40355
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, lJ(e, t);
40441
+ function yJ(e, t) {
40442
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, vJ(e, t);
40356
40443
  }
40357
40444
  //#endregion
40358
40445
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
40359
- var dJ = (function() {
40446
+ var bJ = (function() {
40360
40447
  if (typeof Map < "u") return Map;
40361
40448
  function e(e, t) {
40362
40449
  var n = -1;
@@ -40395,34 +40482,34 @@ var dJ = (function() {
40395
40482
  }
40396
40483
  }, t;
40397
40484
  }();
40398
- })(), fJ = typeof window < "u" && typeof document < "u" && window.document === document, pJ = (function() {
40485
+ })(), xJ = typeof window < "u" && typeof document < "u" && window.document === document, SJ = (function() {
40399
40486
  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")();
40400
- })(), mJ = (function() {
40401
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(pJ) : function(e) {
40487
+ })(), CJ = (function() {
40488
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(SJ) : function(e) {
40402
40489
  return setTimeout(function() {
40403
40490
  return e(Date.now());
40404
40491
  }, 1e3 / 60);
40405
40492
  };
40406
- })(), hJ = 2;
40407
- function gJ(e, t) {
40493
+ })(), wJ = 2;
40494
+ function TJ(e, t) {
40408
40495
  var n = !1, r = !1, i = 0;
40409
40496
  function a() {
40410
40497
  n && (n = !1, e()), r && s();
40411
40498
  }
40412
40499
  function o() {
40413
- mJ(a);
40500
+ CJ(a);
40414
40501
  }
40415
40502
  function s() {
40416
40503
  var e = Date.now();
40417
40504
  if (n) {
40418
- if (e - i < hJ) return;
40505
+ if (e - i < wJ) return;
40419
40506
  r = !0;
40420
40507
  } else n = !0, r = !1, setTimeout(o, t);
40421
40508
  i = e;
40422
40509
  }
40423
40510
  return s;
40424
40511
  }
40425
- var _J = 20, vJ = [
40512
+ var EJ = 20, DJ = [
40426
40513
  "top",
40427
40514
  "right",
40428
40515
  "bottom",
@@ -40431,9 +40518,9 @@ var _J = 20, vJ = [
40431
40518
  "height",
40432
40519
  "size",
40433
40520
  "weight"
40434
- ], yJ = typeof MutationObserver < "u", bJ = function() {
40521
+ ], OJ = typeof MutationObserver < "u", kJ = function() {
40435
40522
  function e() {
40436
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = gJ(this.refresh.bind(this), _J);
40523
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = TJ(this.refresh.bind(this), EJ);
40437
40524
  }
40438
40525
  return e.prototype.addObserver = function(e) {
40439
40526
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -40450,23 +40537,23 @@ var _J = 20, vJ = [
40450
40537
  return e.broadcastActive();
40451
40538
  }), e.length > 0;
40452
40539
  }, e.prototype.connect_ = function() {
40453
- !fJ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), yJ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40540
+ !xJ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), OJ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40454
40541
  attributes: !0,
40455
40542
  childList: !0,
40456
40543
  characterData: !0,
40457
40544
  subtree: !0
40458
40545
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
40459
40546
  }, e.prototype.disconnect_ = function() {
40460
- !fJ || !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);
40547
+ !xJ || !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);
40461
40548
  }, e.prototype.onTransitionEnd_ = function(e) {
40462
40549
  var t = e.propertyName, n = t === void 0 ? "" : t;
40463
- vJ.some(function(e) {
40550
+ DJ.some(function(e) {
40464
40551
  return !!~n.indexOf(e);
40465
40552
  }) && this.refresh();
40466
40553
  }, e.getInstance = function() {
40467
40554
  return this.instance_ ||= new e(), this.instance_;
40468
40555
  }, e.instance_ = null, e;
40469
- }(), xJ = (function(e, t) {
40556
+ }(), AJ = (function(e, t) {
40470
40557
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
40471
40558
  var i = r[n];
40472
40559
  Object.defineProperty(e, i, {
@@ -40477,19 +40564,19 @@ var _J = 20, vJ = [
40477
40564
  });
40478
40565
  }
40479
40566
  return e;
40480
- }), SJ = (function(e) {
40481
- return e && e.ownerDocument && e.ownerDocument.defaultView || pJ;
40482
- }), CJ = NJ(0, 0, 0, 0);
40483
- function wJ(e) {
40567
+ }), jJ = (function(e) {
40568
+ return e && e.ownerDocument && e.ownerDocument.defaultView || SJ;
40569
+ }), MJ = HJ(0, 0, 0, 0);
40570
+ function NJ(e) {
40484
40571
  return parseFloat(e) || 0;
40485
40572
  }
40486
- function TJ(e) {
40573
+ function PJ(e) {
40487
40574
  return [...arguments].slice(1).reduce(function(t, n) {
40488
40575
  var r = e["border-" + n + "-width"];
40489
- return t + wJ(r);
40576
+ return t + NJ(r);
40490
40577
  }, 0);
40491
40578
  }
40492
- function EJ(e) {
40579
+ function FJ(e) {
40493
40580
  for (var t = [
40494
40581
  "top",
40495
40582
  "right",
@@ -40497,40 +40584,40 @@ function EJ(e) {
40497
40584
  "left"
40498
40585
  ], n = {}, r = 0, i = t; r < i.length; r++) {
40499
40586
  var a = i[r], o = e["padding-" + a];
40500
- n[a] = wJ(o);
40587
+ n[a] = NJ(o);
40501
40588
  }
40502
40589
  return n;
40503
40590
  }
40504
- function DJ(e) {
40591
+ function IJ(e) {
40505
40592
  var t = e.getBBox();
40506
- return NJ(0, 0, t.width, t.height);
40593
+ return HJ(0, 0, t.width, t.height);
40507
40594
  }
40508
- function OJ(e) {
40595
+ function LJ(e) {
40509
40596
  var t = e.clientWidth, n = e.clientHeight;
40510
- if (!t && !n) return CJ;
40511
- var r = SJ(e).getComputedStyle(e), i = EJ(r), a = i.left + i.right, o = i.top + i.bottom, s = wJ(r.width), c = wJ(r.height);
40512
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= TJ(r, "left", "right") + a), Math.round(c + o) !== n && (c -= TJ(r, "top", "bottom") + o)), !AJ(e)) {
40597
+ if (!t && !n) return MJ;
40598
+ var r = jJ(e).getComputedStyle(e), i = FJ(r), a = i.left + i.right, o = i.top + i.bottom, s = NJ(r.width), c = NJ(r.height);
40599
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= PJ(r, "left", "right") + a), Math.round(c + o) !== n && (c -= PJ(r, "top", "bottom") + o)), !zJ(e)) {
40513
40600
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
40514
40601
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
40515
40602
  }
40516
- return NJ(i.left, i.top, s, c);
40603
+ return HJ(i.left, i.top, s, c);
40517
40604
  }
40518
- var kJ = (function() {
40605
+ var RJ = (function() {
40519
40606
  return typeof SVGGraphicsElement < "u" ? function(e) {
40520
- return e instanceof SJ(e).SVGGraphicsElement;
40607
+ return e instanceof jJ(e).SVGGraphicsElement;
40521
40608
  } : function(e) {
40522
- return e instanceof SJ(e).SVGElement && typeof e.getBBox == "function";
40609
+ return e instanceof jJ(e).SVGElement && typeof e.getBBox == "function";
40523
40610
  };
40524
40611
  })();
40525
- function AJ(e) {
40526
- return e === SJ(e).document.documentElement;
40612
+ function zJ(e) {
40613
+ return e === jJ(e).document.documentElement;
40527
40614
  }
40528
- function jJ(e) {
40529
- return fJ ? kJ(e) ? DJ(e) : OJ(e) : CJ;
40615
+ function BJ(e) {
40616
+ return xJ ? RJ(e) ? IJ(e) : LJ(e) : MJ;
40530
40617
  }
40531
- function MJ(e) {
40618
+ function VJ(e) {
40532
40619
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
40533
- return xJ(a, {
40620
+ return AJ(a, {
40534
40621
  x: t,
40535
40622
  y: n,
40536
40623
  width: r,
@@ -40541,7 +40628,7 @@ function MJ(e) {
40541
40628
  left: t
40542
40629
  }), a;
40543
40630
  }
40544
- function NJ(e, t, n, r) {
40631
+ function HJ(e, t, n, r) {
40545
40632
  return {
40546
40633
  x: e,
40547
40634
  y: t,
@@ -40549,42 +40636,42 @@ function NJ(e, t, n, r) {
40549
40636
  height: r
40550
40637
  };
40551
40638
  }
40552
- var PJ = function() {
40639
+ var UJ = function() {
40553
40640
  function e(e) {
40554
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = NJ(0, 0, 0, 0), this.target = e;
40641
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = HJ(0, 0, 0, 0), this.target = e;
40555
40642
  }
40556
40643
  return e.prototype.isActive = function() {
40557
- var e = jJ(this.target);
40644
+ var e = BJ(this.target);
40558
40645
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
40559
40646
  }, e.prototype.broadcastRect = function() {
40560
40647
  var e = this.contentRect_;
40561
40648
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
40562
40649
  }, e;
40563
- }(), FJ = function() {
40650
+ }(), WJ = function() {
40564
40651
  function e(e, t) {
40565
- var n = MJ(t);
40566
- xJ(this, {
40652
+ var n = VJ(t);
40653
+ AJ(this, {
40567
40654
  target: e,
40568
40655
  contentRect: n
40569
40656
  });
40570
40657
  }
40571
40658
  return e;
40572
- }(), IJ = function() {
40659
+ }(), GJ = function() {
40573
40660
  function e(e, t, n) {
40574
- if (this.activeObservations_ = [], this.observations_ = new dJ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
40661
+ if (this.activeObservations_ = [], this.observations_ = new bJ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
40575
40662
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
40576
40663
  }
40577
40664
  return e.prototype.observe = function(e) {
40578
40665
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40579
40666
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
40580
- if (!(e instanceof SJ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40667
+ if (!(e instanceof jJ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40581
40668
  var t = this.observations_;
40582
- t.has(e) || (t.set(e, new PJ(e)), this.controller_.addObserver(this), this.controller_.refresh());
40669
+ t.has(e) || (t.set(e, new UJ(e)), this.controller_.addObserver(this), this.controller_.refresh());
40583
40670
  }
40584
40671
  }, e.prototype.unobserve = function(e) {
40585
40672
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40586
40673
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
40587
- if (!(e instanceof SJ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40674
+ if (!(e instanceof jJ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
40588
40675
  var t = this.observations_;
40589
40676
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
40590
40677
  }
@@ -40598,7 +40685,7 @@ var PJ = function() {
40598
40685
  }, e.prototype.broadcastActive = function() {
40599
40686
  if (this.hasActive()) {
40600
40687
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
40601
- return new FJ(e.target, e.broadcastRect());
40688
+ return new WJ(e.target, e.broadcastRect());
40602
40689
  });
40603
40690
  this.callback_.call(e, t, e), this.clearActive();
40604
40691
  }
@@ -40607,12 +40694,12 @@ var PJ = function() {
40607
40694
  }, e.prototype.hasActive = function() {
40608
40695
  return this.activeObservations_.length > 0;
40609
40696
  }, e;
40610
- }(), LJ = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new dJ(), RJ = function() {
40697
+ }(), KJ = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new bJ(), qJ = function() {
40611
40698
  function e(t) {
40612
40699
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
40613
40700
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
40614
- var n = new IJ(t, bJ.getInstance(), this);
40615
- LJ.set(this, n);
40701
+ var n = new GJ(t, kJ.getInstance(), this);
40702
+ KJ.set(this, n);
40616
40703
  }
40617
40704
  return e;
40618
40705
  }();
@@ -40621,27 +40708,27 @@ var PJ = function() {
40621
40708
  "unobserve",
40622
40709
  "disconnect"
40623
40710
  ].forEach(function(e) {
40624
- RJ.prototype[e] = function() {
40711
+ qJ.prototype[e] = function() {
40625
40712
  var t;
40626
- return (t = LJ.get(this))[e].apply(t, arguments);
40713
+ return (t = KJ.get(this))[e].apply(t, arguments);
40627
40714
  };
40628
40715
  });
40629
- var zJ = (function() {
40630
- return pJ.ResizeObserver === void 0 ? RJ : pJ.ResizeObserver;
40631
- })(), BJ = [
40716
+ var JJ = (function() {
40717
+ return SJ.ResizeObserver === void 0 ? qJ : SJ.ResizeObserver;
40718
+ })(), YJ = [
40632
40719
  "client",
40633
40720
  "offset",
40634
40721
  "scroll",
40635
40722
  "bounds",
40636
40723
  "margin"
40637
40724
  ];
40638
- function VJ(e) {
40725
+ function XJ(e) {
40639
40726
  var t = [];
40640
- return BJ.forEach(function(n) {
40727
+ return YJ.forEach(function(n) {
40641
40728
  e[n] && t.push(n);
40642
40729
  }), t;
40643
40730
  }
40644
- function HJ(e, t) {
40731
+ function ZJ(e, t) {
40645
40732
  var n = {};
40646
40733
  if (t.indexOf("client") > -1 && (n.client = {
40647
40734
  top: e.clientTop,
@@ -40680,14 +40767,14 @@ function HJ(e, t) {
40680
40767
  }
40681
40768
  return n;
40682
40769
  }
40683
- function UJ(e) {
40770
+ function QJ(e) {
40684
40771
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
40685
40772
  }
40686
- function WJ(e) {
40773
+ function $J(e) {
40687
40774
  return function(t) {
40688
40775
  var n, r;
40689
40776
  return r = n = /*#__PURE__*/ function(n) {
40690
- uJ(r, n);
40777
+ yJ(r, n);
40691
40778
  function r() {
40692
40779
  var t, r = [...arguments];
40693
40780
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -40698,24 +40785,24 @@ function WJ(e) {
40698
40785
  bounds: {},
40699
40786
  margin: {}
40700
40787
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
40701
- var r = HJ(t._node, e || VJ(t.props));
40788
+ var r = ZJ(t._node, e || XJ(t.props));
40702
40789
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
40703
40790
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
40704
40791
  });
40705
40792
  }, t._handleRef = function(e) {
40706
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = UJ(t._node);
40793
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = QJ(t._node);
40707
40794
  var n = t.props.innerRef;
40708
40795
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
40709
40796
  }, t;
40710
40797
  }
40711
40798
  var i = r.prototype;
40712
40799
  return i.componentDidMount = function() {
40713
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new zJ(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(HJ(this._node, e || VJ(this.props))));
40800
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new JJ(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(ZJ(this._node, e || XJ(this.props))));
40714
40801
  }, i.componentWillUnmount = function() {
40715
40802
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
40716
40803
  }, i.render = function() {
40717
40804
  var e = this.props;
40718
- return e.innerRef, e.onResize, lt(t, sJ({}, cJ(e, ["innerRef", "onResize"]), {
40805
+ return e.innerRef, e.onResize, lt(t, gJ({}, _J(e, ["innerRef", "onResize"]), {
40719
40806
  measureRef: this._handleRef,
40720
40807
  measure: this.measure,
40721
40808
  contentRect: this.state.contentRect
@@ -40732,7 +40819,7 @@ function WJ(e) {
40732
40819
  }, r;
40733
40820
  };
40734
40821
  }
40735
- var GJ = WJ()(function(e) {
40822
+ var eY = $J()(function(e) {
40736
40823
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
40737
40824
  return i({
40738
40825
  measure: t,
@@ -40740,10 +40827,10 @@ var GJ = WJ()(function(e) {
40740
40827
  contentRect: r
40741
40828
  });
40742
40829
  });
40743
- GJ.displayName = "Measure", GJ.propTypes.children = I.default.func;
40830
+ eY.displayName = "Measure", eY.propTypes.children = I.default.func;
40744
40831
  //#endregion
40745
40832
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
40746
- var KJ = M("div")(() => ({
40833
+ var tY = M("div")(() => ({
40747
40834
  backgroundColor: k.white(),
40748
40835
  border: `2px solid ${k.border()}`,
40749
40836
  display: "flex",
@@ -40753,7 +40840,7 @@ var KJ = M("div")(() => ({
40753
40840
  maxWidth: "300px",
40754
40841
  padding: "20px 4px 4px 20px",
40755
40842
  zIndex: 99
40756
- })), qJ = class extends ot.Component {
40843
+ })), nY = class extends ot.Component {
40757
40844
  static propTypes = {
40758
40845
  className: I.default.string,
40759
40846
  children: I.default.oneOfType([I.default.arrayOf(I.default.node), I.default.node]).isRequired
@@ -40761,19 +40848,19 @@ var KJ = M("div")(() => ({
40761
40848
  static defaultProps = {};
40762
40849
  render() {
40763
40850
  let { className: e, children: t } = this.props;
40764
- return /* @__PURE__ */ P(KJ, {
40851
+ return /* @__PURE__ */ P(tY, {
40765
40852
  className: e,
40766
40853
  children: t
40767
40854
  });
40768
40855
  }
40769
- }, JJ = De({
40856
+ }, rY = De({
40770
40857
  typography: { fontFamily: "inherit" },
40771
40858
  components: { MuiButton: { styleOverrides: { contained: {
40772
40859
  backgroundColor: "#e0e0e0",
40773
40860
  color: "#000000",
40774
40861
  "&:hover": { backgroundColor: "#bdbdbd" }
40775
40862
  } } } }
40776
- }), YJ = class extends ot.Component {
40863
+ }), iY = class extends ot.Component {
40777
40864
  static propTypes = {
40778
40865
  children: I.default.oneOfType([
40779
40866
  I.default.string,
@@ -40806,19 +40893,19 @@ var KJ = M("div")(() => ({
40806
40893
  return /* @__PURE__ */ P(se, {
40807
40894
  injectFirst: !0,
40808
40895
  children: /* @__PURE__ */ P(Ue, {
40809
- theme: JJ,
40810
- children: /* @__PURE__ */ P(GJ, {
40896
+ theme: rY,
40897
+ children: /* @__PURE__ */ P(eY, {
40811
40898
  bounds: !0,
40812
40899
  onResize: this.onResize,
40813
40900
  children: ({ measureRef: e }) => {
40814
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(qJ, {
40901
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(nY, {
40815
40902
  className: "settings-box",
40816
40903
  children: n
40817
40904
  }) : n;
40818
40905
  return /* @__PURE__ */ F("div", {
40819
40906
  ref: e,
40820
40907
  className: "main-container extraCSSRules",
40821
- children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(oJ, {
40908
+ children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(hJ, {
40822
40909
  mode: o,
40823
40910
  secondary: s,
40824
40911
  dimensions: i,
@@ -40830,27 +40917,27 @@ var KJ = M("div")(() => ({
40830
40917
  })
40831
40918
  });
40832
40919
  }
40833
- }, XJ = WJ("bounds")(YJ), ZJ = /* @__PURE__ */ eJ({
40834
- ConfigLayout: () => XJ,
40835
- LayoutContents: () => oJ
40836
- }), QJ = M("div")(() => ({
40920
+ }, aY = $J("bounds")(iY), oY = /* @__PURE__ */ lJ({
40921
+ ConfigLayout: () => aY,
40922
+ LayoutContents: () => hJ
40923
+ }), sY = M("div")(() => ({
40837
40924
  display: "flex",
40838
40925
  width: "100%",
40839
40926
  justifyContent: "space-between"
40840
- })), $J = M(ve)(({ theme: e }) => ({
40927
+ })), cY = M(ve)(({ theme: e }) => ({
40841
40928
  color: "rgba(0, 0, 0, 0.89)",
40842
40929
  fontSize: e.typography.fontSize,
40843
40930
  paddingTop: e.spacing(2)
40844
- })), eY = M(js)(({ checked: e }) => ({
40931
+ })), lY = M(js)(({ checked: e }) => ({
40845
40932
  "&.Mui-checked .MuiSwitch-thumb": { color: `${k.tertiary()} !important` },
40846
40933
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${k.tertiaryLight()} !important` },
40847
40934
  "& .MuiSwitch-track": { backgroundColor: e ? `${k.tertiaryLight()} !important` : void 0 }
40848
- })), tY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(QJ, { children: [/* @__PURE__ */ P($J, { children: n }), /* @__PURE__ */ P(eY, {
40935
+ })), uY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(sY, { children: [/* @__PURE__ */ P(cY, { children: n }), /* @__PURE__ */ P(lY, {
40849
40936
  checked: e,
40850
40937
  disabled: t,
40851
40938
  onChange: (e) => r(e.target.checked)
40852
40939
  })] });
40853
- tY.propTypes = {
40940
+ uY.propTypes = {
40854
40941
  checked: I.default.bool,
40855
40942
  disabled: I.default.bool,
40856
40943
  label: I.default.string.isRequired,
@@ -40858,20 +40945,20 @@ tY.propTypes = {
40858
40945
  };
40859
40946
  //#endregion
40860
40947
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
40861
- var nY = M(wa)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
40948
+ var dY = M(wa)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
40862
40949
  color: "rgba(0, 0, 0, 0.89)",
40863
40950
  fontSize: e.typography.fontSize - 2,
40864
40951
  left: "-5px",
40865
40952
  position: "relative"
40866
- } })), rY = M(Cs)(() => ({ color: `${k.tertiary()} !important` })), iY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(nY, {
40953
+ } })), fY = M(Cs)(() => ({ color: `${k.tertiary()} !important` })), pY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(dY, {
40867
40954
  value: t,
40868
- control: /* @__PURE__ */ P(rY, {
40955
+ control: /* @__PURE__ */ P(fY, {
40869
40956
  checked: n,
40870
40957
  onChange: r
40871
40958
  }),
40872
40959
  label: e
40873
40960
  });
40874
- iY.propTypes = {
40961
+ pY.propTypes = {
40875
40962
  label: I.default.string,
40876
40963
  value: I.default.string,
40877
40964
  checked: I.default.bool,
@@ -40879,26 +40966,26 @@ iY.propTypes = {
40879
40966
  };
40880
40967
  //#endregion
40881
40968
  //#region ../../lib-react/config-ui/dist/settings/panel.js
40882
- var aY = (0, fc.default)("pie-lib:config-ui:settings:panel"), oY = {
40969
+ var mY = (0, fc.default)("pie-lib:config-ui:settings:panel"), hY = {
40883
40970
  label: I.default.string,
40884
40971
  value: I.default.string
40885
- }, sY = {
40972
+ }, gY = {
40886
40973
  label: I.default.string,
40887
40974
  value: I.default.string,
40888
40975
  onChange: I.default.func
40889
- }, cY = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(zq, {
40976
+ }, _Y = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(Jq, {
40890
40977
  checked: t,
40891
40978
  label: e,
40892
40979
  onChange: (e) => {
40893
40980
  n(e.target.checked);
40894
40981
  }
40895
40982
  });
40896
- cY.propTypes = {
40983
+ _Y.propTypes = {
40897
40984
  label: I.default.string,
40898
40985
  value: I.default.bool,
40899
40986
  onChange: I.default.func
40900
40987
  };
40901
- var lY = M(Zq)(({ theme: e }) => ({
40988
+ var vY = M(oJ)(({ theme: e }) => ({
40902
40989
  marginTop: e.spacing(.5),
40903
40990
  paddingBottom: e.spacing(.5),
40904
40991
  width: "100%",
@@ -40909,29 +40996,29 @@ var lY = M(Zq)(({ theme: e }) => ({
40909
40996
  marginTop: e.spacing(2.5)
40910
40997
  },
40911
40998
  "& > div": { marginTop: e.spacing(2.5) }
40912
- })), uY = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(lY, {
40999
+ })), yY = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(vY, {
40913
41000
  direction: "horizontal",
40914
- customLabel: iY,
41001
+ customLabel: pY,
40915
41002
  value: t,
40916
41003
  header: e,
40917
41004
  opts: r,
40918
41005
  onChange: n
40919
41006
  });
40920
- uY.propTypes = {
40921
- ...sY,
40922
- choices: I.default.arrayOf(I.default.shape(oY))
41007
+ yY.propTypes = {
41008
+ ...gY,
41009
+ choices: I.default.arrayOf(I.default.shape(hY))
40923
41010
  };
40924
- var dY = uY, fY = M("p")(({ theme: e }) => ({
41011
+ var bY = yY, xY = M("p")(({ theme: e }) => ({
40925
41012
  margin: 0,
40926
41013
  fontSize: e.typography.fontSize
40927
- })), pY = M(ts)(({ theme: e }) => ({
41014
+ })), SY = M(ts)(({ theme: e }) => ({
40928
41015
  marginTop: e.spacing(.5),
40929
41016
  border: "2px solid lightgrey",
40930
41017
  padding: `0 ${e.spacing(1)}`,
40931
41018
  borderRadius: "4px"
40932
- })), mY = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41019
+ })), CY = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
40933
41020
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
40934
- return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(fY, { children: e }), /* @__PURE__ */ P(pY, {
41021
+ return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(xY, { children: e }), /* @__PURE__ */ P(SY, {
40935
41022
  value: t || r && r[0],
40936
41023
  onChange: ({ target: e }) => n(e.value),
40937
41024
  input: /* @__PURE__ */ P(Pa, { id: `dropdown-${e}` }),
@@ -40946,14 +41033,14 @@ var dY = uY, fY = M("p")(({ theme: e }) => ({
40946
41033
  }, t))
40947
41034
  })] });
40948
41035
  };
40949
- mY.propTypes = {
40950
- ...sY,
41036
+ CY.propTypes = {
41037
+ ...gY,
40951
41038
  choices: I.default.arrayOf(I.default.string)
40952
41039
  };
40953
- var hY = M(Zt)(({ theme: e }) => ({
41040
+ var wY = M(Zt)(({ theme: e }) => ({
40954
41041
  marginRight: e.spacing(3),
40955
41042
  marginTop: e.spacing(1)
40956
- })), gY = ({ label: e }) => /* @__PURE__ */ P(hY, { children: e }), _Y = M(Uq)(({ theme: e }) => ({
41043
+ })), TY = ({ label: e }) => /* @__PURE__ */ P(wY, { children: e }), EY = M(Qq)(({ theme: e }) => ({
40957
41044
  width: "35%",
40958
41045
  marginRight: e.spacing(3),
40959
41046
  marginTop: e.spacing(1),
@@ -40964,7 +41051,7 @@ var hY = M(Zt)(({ theme: e }) => ({
40964
41051
  padding: `0 ${e.spacing(1)}`,
40965
41052
  backgroundColor: "transparent"
40966
41053
  }
40967
- })), vY = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(_Y, {
41054
+ })), DY = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(EY, {
40968
41055
  variant: "standard",
40969
41056
  label: e || "Label",
40970
41057
  value: t,
@@ -40975,45 +41062,45 @@ var hY = M(Zt)(({ theme: e }) => ({
40975
41062
  showErrorWhenOutsideRange: !0,
40976
41063
  disableUnderline: !0
40977
41064
  });
40978
- vY.propTypes = {
40979
- ...sY,
41065
+ DY.propTypes = {
41066
+ ...gY,
40980
41067
  suffix: I.default.string,
40981
41068
  min: I.default.number,
40982
41069
  max: I.default.number,
40983
41070
  value: I.default.number
40984
- }, gY.propTypes = { ...sY };
40985
- var yY = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(tY, {
41071
+ }, TY.propTypes = { ...gY };
41072
+ var OY = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(uY, {
40986
41073
  label: t,
40987
41074
  checked: !!n,
40988
41075
  disabled: !!e,
40989
41076
  toggle: r
40990
41077
  });
40991
- yY.propTypes = {
40992
- ...sY,
41078
+ OY.propTypes = {
41079
+ ...gY,
40993
41080
  value: I.default.bool
40994
41081
  };
40995
- var bY = {
40996
- toggle: yY,
40997
- radio: dY,
40998
- dropdown: mY,
40999
- numberField: vY,
41000
- checkbox: cY,
41001
- textField: gY
41002
- }, xY = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), SY = M("div")(({ theme: e }) => ({
41082
+ var kY = {
41083
+ toggle: OY,
41084
+ radio: bY,
41085
+ dropdown: CY,
41086
+ numberField: DY,
41087
+ checkbox: _Y,
41088
+ textField: TY
41089
+ }, AY = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), jY = M("div")(({ theme: e }) => ({
41003
41090
  color: "#495B8F",
41004
41091
  fontSize: e.typography.fontSize + 2,
41005
41092
  fontWeight: 600,
41006
41093
  marginBottom: e.spacing(1)
41007
- })), CY = M("p")(({ theme: e }) => ({
41094
+ })), MY = M("p")(({ theme: e }) => ({
41008
41095
  fontSize: e.typography.fontSize,
41009
41096
  marginBottom: 0
41010
- })), wY = (e) => {
41097
+ })), NY = (e) => {
41011
41098
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
41012
41099
  let { isConfigProperty: o, ...c } = s(e, r || n), l = s(o ? i : t, n), u = {
41013
41100
  ...c,
41014
41101
  key: n,
41015
41102
  value: l
41016
- }, d = bY[u.type];
41103
+ }, d = kY[u.type];
41017
41104
  return /* @__PURE__ */ P(d, {
41018
41105
  ...u,
41019
41106
  onChange: (e) => a(n, e, o)
@@ -41022,18 +41109,18 @@ var bY = {
41022
41109
  let n = e[t];
41023
41110
  if (!n) return null;
41024
41111
  let { type: r, label: i, fields: a, choices: s } = n;
41025
- return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(CY, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41112
+ return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(MY, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41026
41113
  };
41027
- return /* @__PURE__ */ F(xY, { children: [/* @__PURE__ */ P(SY, { children: n }), Object.keys(r).map((e) => c(r, e))] });
41114
+ return /* @__PURE__ */ F(AY, { children: [/* @__PURE__ */ P(jY, { children: n }), Object.keys(r).map((e) => c(r, e))] });
41028
41115
  };
41029
- wY.propTypes = {
41116
+ NY.propTypes = {
41030
41117
  model: I.default.object,
41031
41118
  label: I.default.string,
41032
41119
  group: I.default.object,
41033
41120
  configuration: I.default.object,
41034
41121
  onChange: I.default.func
41035
41122
  };
41036
- var TY = class extends ot.Component {
41123
+ var PY = class extends ot.Component {
41037
41124
  static propTypes = {
41038
41125
  model: I.default.object,
41039
41126
  configuration: I.default.object,
@@ -41047,13 +41134,13 @@ var TY = class extends ot.Component {
41047
41134
  onChangeConfiguration: () => {}
41048
41135
  };
41049
41136
  change = (e, t, n = !1) => {
41050
- aY("[changeModel]", e, t);
41137
+ mY("[changeModel]", e, t);
41051
41138
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41052
41139
  n ? (c(o, e, t), i(o, e)) : (c(a, e, t), r(a, e));
41053
41140
  };
41054
41141
  render() {
41055
41142
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
41056
- return aY("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(wY, {
41143
+ return mY("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(NY, {
41057
41144
  label: r,
41058
41145
  model: t,
41059
41146
  configuration: n,
@@ -41061,59 +41148,59 @@ var TY = class extends ot.Component {
41061
41148
  onChange: this.change
41062
41149
  }, r) : null), r] });
41063
41150
  }
41064
- }, EY = /* @__PURE__ */ eJ({
41065
- Panel: () => TY,
41066
- checkbox: () => PY,
41067
- checkboxes: () => FY,
41068
- dropdown: () => jY,
41069
- numberField: () => MY,
41070
- numberFields: () => NY,
41071
- radio: () => AY,
41072
- textField: () => DY,
41073
- toggle: () => OY
41074
- }), DY = (e, t = !0) => ({
41151
+ }, FY = /* @__PURE__ */ lJ({
41152
+ Panel: () => PY,
41153
+ checkbox: () => UY,
41154
+ checkboxes: () => WY,
41155
+ dropdown: () => BY,
41156
+ numberField: () => VY,
41157
+ numberFields: () => HY,
41158
+ radio: () => zY,
41159
+ textField: () => IY,
41160
+ toggle: () => LY
41161
+ }), IY = (e, t = !0) => ({
41075
41162
  label: e,
41076
41163
  type: "textField",
41077
41164
  isConfigProperty: t
41078
- }), OY = (e, t = !1, n = !1) => ({
41165
+ }), LY = (e, t = !1, n = !1) => ({
41079
41166
  type: "toggle",
41080
41167
  label: e,
41081
41168
  isConfigProperty: t,
41082
41169
  disabled: n
41083
- }), kY = (e) => typeof e == "string" ? {
41170
+ }), RY = (e) => typeof e == "string" ? {
41084
41171
  label: e,
41085
41172
  value: e
41086
- } : e, AY = function() {
41173
+ } : e, zY = function() {
41087
41174
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41088
41175
  return {
41089
41176
  type: "radio",
41090
41177
  label: e,
41091
- choices: t && t.map((e) => kY(e)),
41178
+ choices: t && t.map((e) => RY(e)),
41092
41179
  isConfigProperty: n
41093
41180
  };
41094
- }, jY = (e, t, n = !1) => ({
41181
+ }, BY = (e, t, n = !1) => ({
41095
41182
  type: "dropdown",
41096
41183
  label: e,
41097
41184
  choices: t,
41098
41185
  isConfigProperty: n
41099
- }), MY = (e, t, n = !1) => ({
41186
+ }), VY = (e, t, n = !1) => ({
41100
41187
  ...t,
41101
41188
  label: e,
41102
41189
  type: "numberField",
41103
41190
  isConfigProperty: n
41104
- }), NY = (e, t, n = !1) => (Object.keys(t).map((e) => {
41105
- t[e] = MY(t[e].label, t[e], n);
41191
+ }), HY = (e, t, n = !1) => (Object.keys(t).map((e) => {
41192
+ t[e] = VY(t[e].label, t[e], n);
41106
41193
  }), {
41107
41194
  type: "numberFields",
41108
41195
  label: e,
41109
41196
  fields: t
41110
- }), PY = (e, t, n = !1) => ({
41197
+ }), UY = (e, t, n = !1) => ({
41111
41198
  ...t,
41112
41199
  label: e,
41113
41200
  type: "checkbox",
41114
41201
  isConfigProperty: n
41115
- }), FY = (e, t, n = !1) => (Object.keys(t).map((e) => {
41116
- t[e] = PY(t[e].label, t[e], n);
41202
+ }), WY = (e, t, n = !1) => (Object.keys(t).map((e) => {
41203
+ t[e] = UY(t[e].label, t[e], n);
41117
41204
  }), {
41118
41205
  type: "checkboxes",
41119
41206
  label: e,
@@ -41121,21 +41208,21 @@ var TY = class extends ot.Component {
41121
41208
  });
41122
41209
  //#endregion
41123
41210
  //#region ../../lib-react/config-ui/dist/index.js
41124
- function IY(e) {
41211
+ function GY(e) {
41125
41212
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41126
41213
  }
41127
- function LY(e, t) {
41128
- return !e || IY(e) ? e : IY(e.default) ? e.default : t && IY(e[t]) ? e[t] : t && IY(e[t]?.default) ? e[t].default : e;
41214
+ function KY(e, t) {
41215
+ return !e || GY(e) ? e : GY(e.default) ? e.default : t && GY(e[t]) ? e[t] : t && GY(e[t]?.default) ? e[t].default : e;
41129
41216
  }
41130
- var RY = LY(ge, "InputContainer") || LY(VY.InputContainer, "InputContainer"), zY = Me, BY = zY.default, VY = BY && typeof BY == "object" ? BY : zY, { Panel: HY, toggle: UY, dropdown: WY } = EY, GY = M(RY)(({ theme: e }) => ({
41217
+ var qY = KY(ge, "InputContainer") || KY(XY.InputContainer, "InputContainer"), JY = Me, YY = JY.default, XY = YY && typeof YY == "object" ? YY : JY, { Panel: ZY, toggle: QY, dropdown: $Y } = FY, eX = M(qY)(({ theme: e }) => ({
41131
41218
  width: "100%",
41132
41219
  paddingTop: e.spacing(2),
41133
41220
  marginBottom: e.spacing(2)
41134
- })), KY = M("div")(({ theme: e }) => ({
41221
+ })), tX = M("div")(({ theme: e }) => ({
41135
41222
  fontSize: e.typography.fontSize - 2,
41136
41223
  color: e.palette.error.main,
41137
41224
  paddingTop: e.spacing(1)
41138
- })), qY = class extends ot.Component {
41225
+ })), nX = class extends ot.Component {
41139
41226
  onTeacherInstructionsChanged = (e) => {
41140
41227
  this.props.onModelChanged({
41141
41228
  ...this.props.model,
@@ -41144,26 +41231,26 @@ var RY = LY(ge, "InputContainer") || LY(VY.InputContainer, "InputContainer"), zY
41144
41231
  };
41145
41232
  render() {
41146
41233
  let { model: e, configuration: t, onModelChanged: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: o = {}, contentDimensions: s = {}, maxImageWidth: c = {}, maxImageHeight: l = {}, settingsPanelDisabled: u, spellCheck: d = {}, teacherInstructions: f = {}, withRubric: p = {}, mathMlOptions: m = {}, language: h = {}, languageChoices: g = {} } = t || {}, { errors: _ = {}, extraCSSRules: v, spellCheckEnabled: y } = e || {}, { teacherInstructions: b } = _, x = {
41147
- teacherInstructionsEnabled: f.settings && UY(f.label),
41148
- spellCheckEnabled: d.settings && UY(d.label),
41149
- rubricEnabled: p?.settings && UY(p?.label),
41150
- "language.enabled": h.settings && UY(h.label, !0),
41151
- language: h.settings && h.enabled && WY(g.label, g.options)
41234
+ teacherInstructionsEnabled: f.settings && QY(f.label),
41235
+ spellCheckEnabled: d.settings && QY(d.label),
41236
+ rubricEnabled: p?.settings && QY(p?.label),
41237
+ "language.enabled": h.settings && QY(h.label, !0),
41238
+ language: h.settings && h.enabled && $Y(g.label, g.options)
41152
41239
  };
41153
- return /* @__PURE__ */ F(ZJ.ConfigLayout, {
41240
+ return /* @__PURE__ */ F(oY.ConfigLayout, {
41154
41241
  extraCSSRules: v,
41155
41242
  dimensions: s,
41156
41243
  hideSettings: u,
41157
- settings: /* @__PURE__ */ P(HY, {
41244
+ settings: /* @__PURE__ */ P(ZY, {
41158
41245
  model: e,
41159
41246
  configuration: t,
41160
41247
  onChangeModel: (e) => n(e),
41161
41248
  onChangeConfiguration: (e) => r(e),
41162
41249
  groups: { Properties: x }
41163
41250
  }),
41164
- children: [e && e.teacherInstructionsEnabled && /* @__PURE__ */ F(GY, {
41251
+ children: [e && e.teacherInstructionsEnabled && /* @__PURE__ */ F(eX, {
41165
41252
  label: f.label,
41166
- children: [/* @__PURE__ */ P(Pq, {
41253
+ children: [/* @__PURE__ */ P(Uq, {
41167
41254
  markup: e.teacherInstructions || "",
41168
41255
  onChange: this.onTeacherInstructionsChanged,
41169
41256
  imageSupport: i,
@@ -41179,12 +41266,12 @@ var RY = LY(ge, "InputContainer") || LY(VY.InputContainer, "InputContainer"), zY
41179
41266
  uploadSoundSupport: a,
41180
41267
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
41181
41268
  mathMlOptions: m
41182
- }), b && /* @__PURE__ */ P(KY, { children: b })]
41269
+ }), b && /* @__PURE__ */ P(tX, { children: b })]
41183
41270
  }), /* @__PURE__ */ P("div", { children: "Image cloze association" })]
41184
41271
  });
41185
41272
  }
41186
41273
  };
41187
- qY.propTypes = {
41274
+ nX.propTypes = {
41188
41275
  onModelChanged: I.default.func,
41189
41276
  onConfigurationChanged: I.default.func,
41190
41277
  model: I.default.object.isRequired,
@@ -41200,7 +41287,7 @@ qY.propTypes = {
41200
41287
  };
41201
41288
  //#endregion
41202
41289
  //#region src/author/defaults.ts
41203
- var JY = {
41290
+ var rX = {
41204
41291
  model: {
41205
41292
  rationale: "",
41206
41293
  rationaleEnabled: !0,
@@ -41254,13 +41341,13 @@ var JY = {
41254
41341
  options: []
41255
41342
  }
41256
41343
  }
41257
- }, YY = (0, fc.default)("image-cloze-association:configure"), XY = class e extends HTMLElement {
41344
+ }, iX = (0, fc.default)("image-cloze-association:configure"), aX = class e extends HTMLElement {
41258
41345
  static createDefaultModel = (e = {}) => ({
41259
- ...JY.model,
41346
+ ...rX.model,
41260
41347
  ...e
41261
41348
  });
41262
41349
  constructor() {
41263
- super(), this._root = null, this._model = e.createDefaultModel(), this.onModelChanged = this.onModelChanged.bind(this), this._configuration = JY.configuration;
41350
+ super(), this._root = null, this._model = e.createDefaultModel(), this.onModelChanged = this.onModelChanged.bind(this), this._configuration = rX.configuration;
41264
41351
  }
41265
41352
  set model(t) {
41266
41353
  this._model = e.createDefaultModel(t), this._render();
@@ -41294,8 +41381,8 @@ var JY = {
41294
41381
  this.dispatchEvent(new Lt(e, t));
41295
41382
  }
41296
41383
  _render() {
41297
- YY("_render");
41298
- let e = ot.createElement(qY, {
41384
+ iX("_render");
41385
+ let e = ot.createElement(nX, {
41299
41386
  disableSidePanel: this._disableSidePanel,
41300
41387
  model: this._model,
41301
41388
  configuration: this._configuration,
@@ -41320,6 +41407,6 @@ var JY = {
41320
41407
  }
41321
41408
  };
41322
41409
  //#endregion
41323
- export { XY as default };
41410
+ export { aX as default };
41324
41411
 
41325
41412
  //# sourceMappingURL=index.js.map