@pie-element/inline-dropdown 10.1.2-next.6 → 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.
@@ -38839,8 +38839,8 @@ vg.create({
38839
38839
  })) ?? null };
38840
38840
  }
38841
38841
  });
38842
- var _q = "placeholder", vq = new wo("tiptap__placeholder"), yq = 200;
38843
- function bq(e) {
38842
+ var _q = "placeholder", vq = new wo("tiptap__placeholder");
38843
+ function yq(e) {
38844
38844
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
38845
38845
  return o && u.push(l), xf.node(i, i + a.nodeSize, {
38846
38846
  class: u.join(" "),
@@ -38852,156 +38852,198 @@ function bq(e) {
38852
38852
  }) : n
38853
38853
  });
38854
38854
  }
38855
- function xq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38855
+ function bq(e, t) {
38856
+ return typeof e == "function" ? e(t) : e;
38857
+ }
38858
+ function xq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
38859
+ let { anchor: s } = i, c = [], l = e.isEmpty;
38860
+ return r.nodesBetween(a, o, (r, i) => {
38861
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && Eh(r);
38862
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(yq({
38863
+ editor: e,
38864
+ isEmptyDoc: l,
38865
+ dataAttribute: n,
38866
+ hasAnchor: a,
38867
+ placeholder: t.placeholder,
38868
+ classes: {
38869
+ emptyEditor: t.emptyEditorClass,
38870
+ emptyNode: bq(t.emptyNodeClass, {
38871
+ editor: e,
38872
+ node: r,
38873
+ pos: i,
38874
+ hasAnchor: a
38875
+ })
38876
+ },
38877
+ node: r,
38878
+ pos: i
38879
+ })), t.includeChildren;
38880
+ }), c;
38881
+ }
38882
+ function Sq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38856
38883
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
38857
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
38858
- emptyEditor: t.emptyEditorClass,
38859
- emptyNode: t.emptyNodeClass
38860
- };
38884
+ let { anchor: a } = i, o = [], s = e.isEmpty;
38861
38885
  if (t.showOnlyCurrent && !t.includeChildren) {
38862
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
38863
- if (l && l.type.isTextblock && Eh(l)) {
38864
- let r = a >= u && a <= u + l.nodeSize;
38865
- o.push(bq({
38886
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
38887
+ if (c && c.type.isTextblock && Eh(c)) {
38888
+ let r = a >= l && a <= l + c.nodeSize;
38889
+ o.push(yq({
38866
38890
  editor: e,
38867
38891
  isEmptyDoc: s,
38868
38892
  dataAttribute: n,
38869
38893
  hasAnchor: r,
38870
38894
  placeholder: t.placeholder,
38871
- classes: c,
38872
- node: l,
38873
- pos: u
38895
+ classes: {
38896
+ emptyEditor: t.emptyEditorClass,
38897
+ emptyNode: bq(t.emptyNodeClass, {
38898
+ editor: e,
38899
+ node: c,
38900
+ pos: l,
38901
+ hasAnchor: r
38902
+ })
38903
+ },
38904
+ node: c,
38905
+ pos: l
38874
38906
  }));
38875
38907
  }
38876
- } else {
38877
- let i = vq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
38878
- r.nodesBetween(l, u, (r, i) => {
38879
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && Eh(r);
38880
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(bq({
38881
- editor: e,
38882
- isEmptyDoc: s,
38883
- dataAttribute: n,
38884
- hasAnchor: l,
38885
- placeholder: t.placeholder,
38886
- classes: c,
38887
- node: r,
38888
- pos: i
38889
- })), t.includeChildren;
38890
- });
38891
- }
38908
+ } else o.push(...xq({
38909
+ editor: e,
38910
+ options: t,
38911
+ dataAttribute: n,
38912
+ doc: r,
38913
+ selection: i,
38914
+ from: 0,
38915
+ to: r.content.size
38916
+ }));
38892
38917
  return wf.create(r, o);
38893
38918
  }
38894
- function Sq(e) {
38895
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
38919
+ function Cq(e, t) {
38920
+ let n = e.resolve(t);
38921
+ if (n.depth === 0) {
38922
+ let e = n.nodeAfter ?? n.nodeBefore;
38923
+ if (!e) return {
38924
+ from: t,
38925
+ to: t
38926
+ };
38927
+ let r = n.nodeAfter ? t : t - e.nodeSize;
38928
+ return {
38929
+ from: r,
38930
+ to: r + e.nodeSize
38931
+ };
38932
+ }
38933
+ let r = n.before(1);
38934
+ return {
38935
+ from: r,
38936
+ to: r + n.node(1).nodeSize
38937
+ };
38896
38938
  }
38897
- function Cq(e) {
38898
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
38899
- return /auto|scroll|overlay/.test(n);
38939
+ function wq(e, t) {
38940
+ return {
38941
+ from: Math.max(0, t.from - 1),
38942
+ to: Math.min(e.content.size, t.to - 1)
38943
+ };
38900
38944
  }
38901
- function wq(e) {
38902
- let t = e;
38903
- for (; t;) {
38904
- if (Cq(t)) return t;
38905
- let e = t.parentElement;
38906
- if (!e) {
38907
- let e = t.getRootNode();
38908
- if (e instanceof ShadowRoot) {
38909
- t = e.host;
38910
- continue;
38911
- }
38912
- return window;
38913
- }
38914
- t = e;
38945
+ function Tq(e, t, n) {
38946
+ let r = [];
38947
+ return e.forEach((e, i) => {
38948
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
38949
+ s < n && c > t && r.push({
38950
+ from: a,
38951
+ to: o
38952
+ });
38953
+ }), r;
38954
+ }
38955
+ function Eq(e) {
38956
+ if (e.length === 0) return [];
38957
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
38958
+ for (let e = 1; e < t.length; e += 1) {
38959
+ let r = n[n.length - 1], i = t[e];
38960
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
38915
38961
  }
38916
- return window;
38962
+ return n;
38917
38963
  }
38918
- function Tq(e) {
38919
- return e === window ? {
38920
- top: 0,
38921
- bottom: window.innerHeight
38922
- } : e.getBoundingClientRect();
38964
+ function Dq(e, t) {
38965
+ let n = Tq(e, t.from, t.to);
38966
+ return n.push(wq(e, Cq(e, t.from))), t.to > t.from ? n.push(wq(e, Cq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(wq(e, Cq(e, Math.min(t.from + 1, e.content.size)))), n;
38923
38967
  }
38924
- function Eq({ doc: e, view: t, scrollContainer: n }) {
38925
- let r = t.dom.getBoundingClientRect(), i = n ? Tq(n) : {
38926
- top: 0,
38927
- bottom: window.innerHeight
38928
- }, a = Math.max(r.top, i.top) - yq, o = Math.min(r.bottom, i.bottom) + yq;
38929
- if (a >= o) return {
38930
- top: 0,
38931
- bottom: e.content.size
38932
- };
38933
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
38934
- left: s,
38935
- top: a + 2
38936
- }), l = t.posAtCoords({
38937
- left: s,
38938
- top: o - 2
38939
- });
38940
- return {
38941
- top: c ? c.pos : 0,
38942
- bottom: l ? l.pos : e.content.size
38943
- };
38968
+ function Oq(e, t, n) {
38969
+ let r = [];
38970
+ if (e.docChanged) {
38971
+ let t = hh(e);
38972
+ for (let e of t) r.push(...Dq(n.doc, e.newRange));
38973
+ }
38974
+ return e.selectionSet && (r.push(wq(n.doc, Cq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(wq(n.doc, Cq(n.doc, n.selection.anchor)))), Eq(r);
38944
38975
  }
38945
- var Dq = {
38946
- init() {
38947
- return {
38948
- topPos: null,
38949
- bottomPos: null
38950
- };
38951
- },
38952
- apply(e, t) {
38953
- let n = e.getMeta(vq);
38954
- return n?.positions ? {
38955
- topPos: n.positions.top,
38956
- bottomPos: n.positions.bottom
38957
- } : e.docChanged ? {
38958
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
38959
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
38960
- } : t;
38976
+ function kq(e, t, n) {
38977
+ let r = Math.max(0, Math.min(e, n.content.size));
38978
+ return {
38979
+ from: r,
38980
+ to: Math.max(r, Math.min(t, n.content.size))
38981
+ };
38982
+ }
38983
+ function Aq({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
38984
+ let s = e;
38985
+ for (let e of t) {
38986
+ let { from: t, to: c } = kq(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
38987
+ l.length && (s = s.remove(l));
38988
+ let u = xq({
38989
+ editor: n,
38990
+ options: r,
38991
+ dataAttribute: i,
38992
+ doc: a,
38993
+ selection: o,
38994
+ from: t,
38995
+ to: c
38996
+ });
38997
+ u.length && (s = s.add(a, u));
38961
38998
  }
38962
- };
38963
- function Oq(e) {
38964
- let t = wq(e.dom), n = () => {
38965
- let n = Eq({
38966
- view: e,
38967
- doc: e.state.doc,
38968
- scrollContainer: t
38969
- }), r = vq.getState(e.state);
38970
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
38971
- let i = e.state.tr.setMeta(vq, { positions: n });
38972
- e.dispatch(i);
38973
- }, r = null, i = 0, a = () => {
38974
- r === null && (r = requestAnimationFrame(() => {
38975
- r = null;
38976
- let e = performance.now();
38977
- e - i >= 150 ? (i = e, n()) : a();
38978
- }));
38979
- };
38980
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
38981
- update(t, n) {
38982
- e.state.doc.content.size !== n.doc.content.size && a();
38999
+ return s;
39000
+ }
39001
+ function jq({ editor: e, options: t, dataAttribute: n }) {
39002
+ return {
39003
+ init(r, i) {
39004
+ return Sq({
39005
+ editor: e,
39006
+ options: t,
39007
+ dataAttribute: n,
39008
+ doc: i.doc,
39009
+ selection: i.selection
39010
+ }) ?? wf.empty;
38983
39011
  },
38984
- destroy: () => {
38985
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39012
+ apply(r, i, a, o) {
39013
+ return !r.docChanged && !r.selectionSet ? i : Aq({
39014
+ decorations: i.map(r.mapping, r.doc),
39015
+ ranges: Oq(r, a, o),
39016
+ editor: e,
39017
+ options: t,
39018
+ dataAttribute: n,
39019
+ doc: o.doc,
39020
+ selection: o.selection
39021
+ });
38986
39022
  }
38987
39023
  };
38988
39024
  }
38989
- function kq({ editor: e, options: t }) {
38990
- let n = t.dataAttribute ? `data-${Sq(t.dataAttribute)}` : `data-${_q}`;
39025
+ function Mq(e) {
39026
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39027
+ }
39028
+ function Nq({ editor: e, options: t }) {
39029
+ let n = t.dataAttribute ? `data-${Mq(t.dataAttribute)}` : `data-${_q}`, r = t.showOnlyCurrent && !t.includeChildren;
38991
39030
  return new V({
38992
39031
  key: vq,
38993
- state: Dq,
38994
- view: Oq,
38995
- props: { decorations: ({ doc: r, selection: i }) => xq({
39032
+ ...r ? {} : { state: jq({
39033
+ editor: e,
39034
+ options: t,
39035
+ dataAttribute: n
39036
+ }) },
39037
+ props: { decorations: r ? ({ doc: r, selection: i }) => Sq({
38996
39038
  editor: e,
38997
39039
  options: t,
38998
39040
  dataAttribute: n,
38999
39041
  doc: r,
39000
39042
  selection: i
39001
- }) }
39043
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? wf.empty : vq.getState(n) ?? wf.empty }
39002
39044
  });
39003
39045
  }
39004
- var Aq = vg.create({
39046
+ var Pq = vg.create({
39005
39047
  name: "placeholder",
39006
39048
  addOptions() {
39007
39049
  return {
@@ -39015,12 +39057,25 @@ var Aq = vg.create({
39015
39057
  };
39016
39058
  },
39017
39059
  addProseMirrorPlugins() {
39018
- return [kq({
39060
+ return [Nq({
39019
39061
  editor: this.editor,
39020
39062
  options: this.options
39021
39063
  })];
39022
39064
  }
39023
39065
  });
39066
+ function Fq(e, t) {
39067
+ return !e.selection.empty && !Dh(e.selection) && t.isEditable;
39068
+ }
39069
+ function Iq(e, t) {
39070
+ return Fq(e, t) && !t.isFocused && !t.view.dragging;
39071
+ }
39072
+ function Lq() {
39073
+ var e;
39074
+ (e = window.getSelection()) == null || e.removeAllRanges();
39075
+ }
39076
+ function Rq(e) {
39077
+ e.focus();
39078
+ }
39024
39079
  vg.create({
39025
39080
  name: "selection",
39026
39081
  addOptions() {
@@ -39030,13 +39085,25 @@ vg.create({
39030
39085
  let { editor: e, options: t } = this;
39031
39086
  return [new V({
39032
39087
  key: new wo("selection"),
39033
- props: { decorations(n) {
39034
- return n.selection.empty || e.isFocused || !e.isEditable || Dh(n.selection) || e.view.dragging ? null : wf.create(n.doc, [xf.inline(n.selection.from, n.selection.to, { class: t.className })]);
39035
- } }
39088
+ props: {
39089
+ decorations(n) {
39090
+ return Iq(n, e) ? wf.create(n.doc, [xf.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39091
+ },
39092
+ handleDOMEvents: {
39093
+ blur(t) {
39094
+ return Fq(t.state, e) && Lq(), !1;
39095
+ },
39096
+ focus(t) {
39097
+ return Fq(t.state, e) && requestAnimationFrame(() => {
39098
+ !e.isDestroyed && t.hasFocus() && Rq(t);
39099
+ }), !1;
39100
+ }
39101
+ }
39102
+ }
39036
39103
  })];
39037
39104
  }
39038
39105
  });
39039
- function jq({ types: e, node: t }) {
39106
+ function zq({ types: e, node: t }) {
39040
39107
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39041
39108
  }
39042
39109
  vg.create({
@@ -39058,7 +39125,7 @@ vg.create({
39058
39125
  state: {
39059
39126
  init: (e, t) => {
39060
39127
  let r = t.tr.doc.lastChild;
39061
- return !jq({
39128
+ return !zq({
39062
39129
  node: r,
39063
39130
  types: n
39064
39131
  });
@@ -39066,7 +39133,7 @@ vg.create({
39066
39133
  apply: (e, t) => {
39067
39134
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39068
39135
  let r = e.doc.lastChild;
39069
- return !jq({
39136
+ return !zq({
39070
39137
  node: r,
39071
39138
  types: n
39072
39139
  });
@@ -39101,7 +39168,7 @@ vg.create({
39101
39168
  };
39102
39169
  }
39103
39170
  });
39104
- var Mq = ug.create({
39171
+ var Bq = ug.create({
39105
39172
  name: "superscript",
39106
39173
  addOptions() {
39107
39174
  return { HTMLAttributes: {} };
@@ -39131,7 +39198,7 @@ var Mq = ug.create({
39131
39198
  addKeyboardShortcuts() {
39132
39199
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
39133
39200
  }
39134
- }), Nq = ug.create({
39201
+ }), Vq = ug.create({
39135
39202
  name: "subscript",
39136
39203
  addOptions() {
39137
39204
  return { HTMLAttributes: {} };
@@ -39161,7 +39228,7 @@ var Mq = ug.create({
39161
39228
  addKeyboardShortcuts() {
39162
39229
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
39163
39230
  }
39164
- }), Pq = vg.create({
39231
+ }), Hq = vg.create({
39165
39232
  name: "textAlign",
39166
39233
  addOptions() {
39167
39234
  return {
@@ -39203,7 +39270,7 @@ var Mq = ug.create({
39203
39270
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
39204
39271
  };
39205
39272
  }
39206
- }), Fq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Iq = Jg.create({
39273
+ }), Uq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Wq = Jg.create({
39207
39274
  name: "image",
39208
39275
  addOptions() {
39209
39276
  return {
@@ -39296,7 +39363,7 @@ var Mq = ug.create({
39296
39363
  },
39297
39364
  addInputRules() {
39298
39365
  return [Pg({
39299
- find: Fq,
39366
+ find: Uq,
39300
39367
  type: this.type,
39301
39368
  getAttributes: (e) => {
39302
39369
  let [, , t, n, r] = e;
@@ -39308,17 +39375,17 @@ var Mq = ug.create({
39308
39375
  }
39309
39376
  })];
39310
39377
  }
39311
- }), Lq = Aq, Rq = {
39378
+ }), Gq = Pq, Kq = {
39312
39379
  position: "bottom",
39313
39380
  alignment: "left",
39314
39381
  alwaysVisible: !1,
39315
39382
  showDone: !0,
39316
39383
  doneOn: "blur"
39317
- }, zq = {
39384
+ }, qq = {
39318
39385
  options: {},
39319
39386
  respAreaToolbar: () => {},
39320
39387
  onHandleAreaChange: () => {}
39321
- }, Bq = [
39388
+ }, Jq = [
39322
39389
  "bold",
39323
39390
  "italic",
39324
39391
  "underline",
@@ -39340,7 +39407,7 @@ var Mq = ug.create({
39340
39407
  "h3",
39341
39408
  "undo",
39342
39409
  "redo"
39343
- ], Vq = {
39410
+ ], Yq = {
39344
39411
  "--white": "#fff",
39345
39412
  "--black": "#2e2b29",
39346
39413
  "--black-contrast": "#110f0e",
@@ -39359,14 +39426,18 @@ var Mq = ug.create({
39359
39426
  "--red": "#ff5c33",
39360
39427
  "--red-light": "#ffebe5",
39361
39428
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
39362
- }, Hq = (e) => {
39429
+ }, Xq = (e) => ({
39430
+ spellcheck: e ? "true" : "false",
39431
+ autocorrect: e ? "on" : "off",
39432
+ autocapitalize: e ? "on" : "off"
39433
+ }), Zq = (e) => {
39363
39434
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = jt([]), [a, o] = jt(!1), { toolbarOpts: s } = e, c = wt((e) => {
39364
39435
  i((t) => {
39365
39436
  let n = t.filter((t) => t.pos !== e);
39366
39437
  return n.length === 0 && o(!1), n;
39367
39438
  });
39368
39439
  }, [i]), l = {
39369
- ...Rq,
39440
+ ...Kq,
39370
39441
  ...s
39371
39442
  }, u = wt((t) => {
39372
39443
  let n = t.getHTML();
@@ -39377,13 +39448,13 @@ var Mq = ug.create({
39377
39448
  e.onDone,
39378
39449
  l.doneOn
39379
39450
  ]), d = kt(() => ({
39380
- ...zq,
39451
+ ...qq,
39381
39452
  ...e.responseAreaProps,
39382
39453
  onInlineDropdownToolbarClose: u
39383
39454
  }), [e.responseAreaProps, u]), f = kt(() => {
39384
39455
  let { customPlugins: t, ...n } = e.pluginProps || {};
39385
39456
  t ||= [];
39386
- let r = (e.activePlugins || Bq)?.filter((e) => {
39457
+ let r = (e.activePlugins || Jq)?.filter((e) => {
39387
39458
  let t = mr[e] || e, r = n[t] || {};
39388
39459
  return !r || !r.disabled;
39389
39460
  });
@@ -39401,103 +39472,112 @@ var Mq = ug.create({
39401
39472
  setKeypadInteraction: {},
39402
39473
  media: {}
39403
39474
  });
39404
- }, [e, d.type]), p = aT({
39405
- extensions: [
39406
- Pq.configure({
39407
- types: [
39408
- "heading",
39409
- "paragraph",
39410
- "div",
39411
- "headingParagraph",
39412
- "h1",
39413
- "h2",
39414
- "h3",
39415
- "h4",
39416
- "h5",
39417
- "h6",
39418
- "td",
39419
- "th"
39420
- ],
39421
- alignments: [
39422
- "left",
39423
- "right",
39424
- "center",
39425
- "justify"
39426
- ]
39427
- }),
39428
- hq,
39429
- gq.configure({ limit: e.charactersLimit || 1e6 }),
39430
- aq.configure({ trailingNode: {
39475
+ }, [e, d.type]), p = [
39476
+ Hq.configure({
39477
+ types: [
39478
+ "heading",
39479
+ "paragraph",
39480
+ "div",
39481
+ "headingParagraph",
39482
+ "h1",
39483
+ "h2",
39484
+ "h3",
39485
+ "h4",
39486
+ "h5",
39487
+ "h6",
39488
+ "td",
39489
+ "th"
39490
+ ],
39491
+ alignments: [
39492
+ "left",
39493
+ "right",
39494
+ "center",
39495
+ "justify"
39496
+ ]
39497
+ }),
39498
+ hq,
39499
+ gq.configure({ limit: e.charactersLimit || 1e6 }),
39500
+ aq.configure({
39501
+ trailingNode: {
39431
39502
  node: "paragraph",
39432
39503
  notAfter: ["paragraph", "div"]
39433
- } }),
39434
- oI,
39435
- EC,
39436
- sI,
39437
- DC,
39438
- OC,
39439
- Lq.configure({
39440
- placeholder: e.placeholder,
39441
- showOnlyWhenEditable: !0,
39442
- showOnlyCurrent: !1,
39443
- includeChildren: !0
39444
- }),
39445
- SC,
39446
- oC,
39447
- TC,
39448
- wC,
39449
- VA.configure(d),
39450
- HA.configure(d),
39451
- WA.configure(d),
39452
- GA.configure(d),
39453
- UA.configure(d),
39454
- qM.configure({
39455
- toolbarOpts: l,
39456
- math: e.pluginProps?.math || {}
39457
- }),
39458
- Nq,
39459
- Mq,
39460
- Iq,
39461
- aP.configure({
39462
- toolbarOpts: l,
39463
- imageHandling: {
39464
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39465
- onDone: (t) => e.onDone?.(t.getHTML()),
39466
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39467
- let { src: n } = t.attrs;
39468
- e.imageSupport.delete(n, (e) => {
39469
- c(t.pos);
39470
- });
39471
- }),
39472
- insertImageRequested: e.imageSupport && ((t, n, r) => {
39473
- let [o, s] = n, l = (n) => {
39474
- let r;
39475
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39476
- };
39477
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
39478
- let n = r(l), i = rt(() => {
39479
- let e = () => window.removeEventListener("focus", i);
39480
- if (!t._insertingImage) {
39481
- e();
39482
- return;
39483
- }
39484
- c(s), t._insertingImage = !1, e();
39485
- }, 500);
39486
- window.addEventListener("focus", i), e.imageSupport.add(n);
39487
- })();
39488
- }),
39489
- maxImageWidth: e.maxImageWidth,
39490
- maxImageHeight: e.maxImageHeight
39491
- },
39492
- limit: 3
39493
- }),
39494
- cF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39495
- TF.configure({ extraCSSRules: e.extraCSSRules })
39496
- ],
39504
+ },
39505
+ link: {
39506
+ autolink: !1,
39507
+ linkOnPaste: !1
39508
+ }
39509
+ }),
39510
+ oI,
39511
+ EC,
39512
+ sI,
39513
+ DC,
39514
+ OC,
39515
+ Gq.configure({
39516
+ placeholder: e.placeholder,
39517
+ showOnlyWhenEditable: !0,
39518
+ showOnlyCurrent: !1,
39519
+ includeChildren: !0
39520
+ }),
39521
+ SC,
39522
+ oC,
39523
+ TC,
39524
+ wC,
39525
+ VA.configure(d),
39526
+ HA.configure(d),
39527
+ WA.configure(d),
39528
+ GA.configure(d),
39529
+ UA.configure(d),
39530
+ qM.configure({
39531
+ toolbarOpts: l,
39532
+ math: e.pluginProps?.math || {}
39533
+ }),
39534
+ Vq,
39535
+ Bq,
39536
+ Wq,
39537
+ aP.configure({
39538
+ toolbarOpts: l,
39539
+ imageHandling: {
39540
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39541
+ onDone: (t) => e.onDone?.(t.getHTML()),
39542
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39543
+ let { src: n } = t.attrs;
39544
+ e.imageSupport.delete(n, (e) => {
39545
+ c(t.pos);
39546
+ });
39547
+ }),
39548
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39549
+ let [o, s] = n, l = (n) => {
39550
+ let r;
39551
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39552
+ };
39553
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39554
+ let n = r(l), i = rt(() => {
39555
+ let e = () => window.removeEventListener("focus", i);
39556
+ if (!t._insertingImage) {
39557
+ e();
39558
+ return;
39559
+ }
39560
+ c(s), t._insertingImage = !1, e();
39561
+ }, 500);
39562
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39563
+ })();
39564
+ }),
39565
+ maxImageWidth: e.maxImageWidth,
39566
+ maxImageHeight: e.maxImageHeight
39567
+ },
39568
+ limit: 3
39569
+ }),
39570
+ cF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39571
+ TF.configure({ extraCSSRules: e.extraCSSRules })
39572
+ ], m = e.spellCheck !== !1, h = aT({
39573
+ extensions: p,
39497
39574
  immediatelyRender: !1,
39498
- editorProps: { handleKeyDown(t, n) {
39499
- return e.onKeyDown ? e.onKeyDown(n) : !1;
39500
- } },
39575
+ editorProps: {
39576
+ attributes: Xq(m),
39577
+ handleKeyDown(t, n) {
39578
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39579
+ }
39580
+ },
39501
39581
  editable: !e.disabled,
39502
39582
  content: yr(e.markup),
39503
39583
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -39508,22 +39588,29 @@ var Mq = ug.create({
39508
39588
  }
39509
39589
  }, [e.charactersLimit]);
39510
39590
  Dt(() => {
39511
- e.editorRef && e.editorRef(p);
39512
- }, [e.editorRef, p]), Dt(() => {
39513
- p?.setEditable(!e.disabled);
39514
- }, [e.disabled, p]), Dt(() => {
39515
- if (!p) return;
39591
+ e.editorRef && e.editorRef(h);
39592
+ }, [e.editorRef, h]), Dt(() => {
39593
+ h?.setEditable(!e.disabled);
39594
+ }, [e.disabled, h]), Dt(() => {
39595
+ if (!h) return;
39596
+ let e = h.options?.editorProps, t = Xq(m);
39597
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39598
+ ...e,
39599
+ attributes: t
39600
+ } });
39601
+ }, [m, h]), Dt(() => {
39602
+ if (!h) return;
39516
39603
  let t = yr(e.markup);
39517
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
39518
- }, [e.markup, p]), Dt(() => {
39519
- Object.entries(Vq).forEach(([e, t]) => {
39604
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39605
+ }, [e.markup, h]), Dt(() => {
39606
+ Object.entries(Yq).forEach(([e, t]) => {
39520
39607
  document.documentElement.style.setProperty(e, t);
39521
39608
  });
39522
39609
  }, []);
39523
- let m = tT({
39524
- editor: p,
39610
+ let g = tT({
39611
+ editor: h,
39525
39612
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39526
- }), h = kt(() => {
39613
+ }), _ = kt(() => {
39527
39614
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39528
39615
  return {
39529
39616
  width: cI(n),
@@ -39538,20 +39625,20 @@ var Mq = ug.create({
39538
39625
  ...e,
39539
39626
  activePlugins: f,
39540
39627
  toolbarOpts: l,
39541
- editorState: m,
39542
- editor: p,
39543
- children: p && /* @__PURE__ */ P(Uq, {
39628
+ editorState: g,
39629
+ editor: h,
39630
+ children: h && /* @__PURE__ */ P(Qq, {
39544
39631
  style: {
39545
- minHeight: h.minHeight,
39546
- height: h.height,
39547
- maxHeight: h.maxHeight
39632
+ minHeight: _.minHeight,
39633
+ height: _.height,
39634
+ maxHeight: _.maxHeight
39548
39635
  },
39549
39636
  showParagraph: t && !t.disabled,
39550
39637
  separateParagraph: n && !n.disabled,
39551
- editor: p
39638
+ editor: h
39552
39639
  })
39553
39640
  });
39554
- }, Uq = j(Qw, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39641
+ }, Qq = j(Qw, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39555
39642
  display: "flex",
39556
39643
  outline: "none !important",
39557
39644
  "& .ProseMirror": {
@@ -39579,17 +39666,17 @@ var Mq = ug.create({
39579
39666
  } },
39580
39667
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39581
39668
  }
39582
- })), Wq = "_holdInlineDropdownToolbarIndex", Gq = (e, t) => {
39669
+ })), $q = "_holdInlineDropdownToolbarIndex", eJ = (e, t) => {
39583
39670
  let n = null;
39584
39671
  return e.state.doc.descendants((e, r) => e.type?.name === "inline_dropdown" && String(e.attrs?.index) === String(t) ? (n = r, !1) : !0), n;
39585
- }, Kq = (e) => {
39586
- delete e[Wq];
39587
- }, qq = (e, t, n) => {
39588
- let r = Gq(e, t) ?? n;
39589
- if (r == null) return Kq(e), !1;
39672
+ }, tJ = (e) => {
39673
+ delete e[$q];
39674
+ }, nJ = (e, t, n) => {
39675
+ let r = eJ(e, t) ?? n;
39676
+ if (r == null) return tJ(e), !1;
39590
39677
  let { tr: i } = e.state, a = i.doc.nodeAt(r);
39591
- return a ? (i.delete(r, r + a.nodeSize), e.view.dispatch(i), Kq(e), !0) : (Kq(e), !1);
39592
- }, Jq = Hq, Yq = class e extends CustomEvent {
39678
+ return a ? (i.delete(r, r + a.nodeSize), e.view.dispatch(i), tJ(e), !0) : (tJ(e), !1);
39679
+ }, rJ = Zq, iJ = class e extends CustomEvent {
39593
39680
  static {
39594
39681
  this.TYPE = "model.updated";
39595
39682
  }
@@ -39602,7 +39689,7 @@ var Mq = ug.create({
39602
39689
  }
39603
39690
  }), this.update = t, this.reset = n;
39604
39691
  }
39605
- }, Xq = class e extends CustomEvent {
39692
+ }, aJ = class e extends CustomEvent {
39606
39693
  static {
39607
39694
  this.TYPE = "delete.image";
39608
39695
  }
@@ -39615,7 +39702,7 @@ var Mq = ug.create({
39615
39702
  }
39616
39703
  }), this.src = t, this.done = n;
39617
39704
  }
39618
- }, Zq = class e extends CustomEvent {
39705
+ }, oJ = class e extends CustomEvent {
39619
39706
  static {
39620
39707
  this.TYPE = "insert.image";
39621
39708
  }
@@ -39625,7 +39712,7 @@ var Mq = ug.create({
39625
39712
  detail: t
39626
39713
  }), this.handler = t;
39627
39714
  }
39628
- }, Qq = class e extends CustomEvent {
39715
+ }, sJ = class e extends CustomEvent {
39629
39716
  static {
39630
39717
  this.TYPE = "delete.sound";
39631
39718
  }
@@ -39638,7 +39725,7 @@ var Mq = ug.create({
39638
39725
  }
39639
39726
  }), this.src = t, this.done = n;
39640
39727
  }
39641
- }, $q = class e extends CustomEvent {
39728
+ }, cJ = class e extends CustomEvent {
39642
39729
  static {
39643
39730
  this.TYPE = "insert.sound";
39644
39731
  }
@@ -39648,13 +39735,13 @@ var Mq = ug.create({
39648
39735
  detail: t
39649
39736
  }), this.handler = t;
39650
39737
  }
39651
- }, eJ = /*#__PURE__*/ N.createContext({});
39738
+ }, lJ = /*#__PURE__*/ N.createContext({});
39652
39739
  //#endregion
39653
39740
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Accordion/accordionClasses.js
39654
- function tJ(e) {
39741
+ function uJ(e) {
39655
39742
  return k("MuiAccordion", e);
39656
39743
  }
39657
- var nJ = Je("MuiAccordion", [
39744
+ var dJ = Je("MuiAccordion", [
39658
39745
  "root",
39659
39746
  "heading",
39660
39747
  "rounded",
@@ -39662,7 +39749,7 @@ var nJ = Je("MuiAccordion", [
39662
39749
  "disabled",
39663
39750
  "gutters",
39664
39751
  "region"
39665
- ]), rJ = (e) => {
39752
+ ]), fJ = (e) => {
39666
39753
  let { classes: t, square: n, expanded: r, disabled: i, disableGutters: a } = e;
39667
39754
  return A({
39668
39755
  root: [
@@ -39674,14 +39761,14 @@ var nJ = Je("MuiAccordion", [
39674
39761
  ],
39675
39762
  heading: ["heading"],
39676
39763
  region: ["region"]
39677
- }, tJ, t);
39678
- }, iJ = j($e, {
39764
+ }, uJ, t);
39765
+ }, pJ = j($e, {
39679
39766
  name: "MuiAccordion",
39680
39767
  slot: "Root",
39681
39768
  overridesResolver: (e, t) => {
39682
39769
  let { ownerState: n } = e;
39683
39770
  return [
39684
- { [`& .${nJ.region}`]: t.region },
39771
+ { [`& .${dJ.region}`]: t.region },
39685
39772
  t.root,
39686
39773
  !n.square && t.rounded,
39687
39774
  !n.disableGutters && t.gutters
@@ -39705,13 +39792,13 @@ var nJ = Je("MuiAccordion", [
39705
39792
  transition: e.transitions.create(["opacity", "background-color"], t)
39706
39793
  },
39707
39794
  "&:first-of-type": { "&::before": { display: "none" } },
39708
- [`&.${nJ.expanded}`]: {
39795
+ [`&.${dJ.expanded}`]: {
39709
39796
  "&::before": { opacity: 0 },
39710
39797
  "&:first-of-type": { marginTop: 0 },
39711
39798
  "&:last-of-type": { marginBottom: 0 },
39712
39799
  "& + &": { "&::before": { display: "none" } }
39713
39800
  },
39714
- [`&.${nJ.disabled}`]: { backgroundColor: (e.vars || e).palette.action.disabledBackground }
39801
+ [`&.${dJ.disabled}`]: { backgroundColor: (e.vars || e).palette.action.disabledBackground }
39715
39802
  };
39716
39803
  }), b(({ theme: e }) => ({ variants: [{
39717
39804
  props: (e) => !e.square,
@@ -39732,14 +39819,14 @@ var nJ = Je("MuiAccordion", [
39732
39819
  }
39733
39820
  }, {
39734
39821
  props: (e) => !e.disableGutters,
39735
- style: { [`&.${nJ.expanded}`]: { margin: "16px 0" } }
39736
- }] }))), aJ = j("h3", {
39822
+ style: { [`&.${dJ.expanded}`]: { margin: "16px 0" } }
39823
+ }] }))), mJ = j("h3", {
39737
39824
  name: "MuiAccordion",
39738
39825
  slot: "Heading"
39739
- })({ all: "unset" }), oJ = j("div", {
39826
+ })({ all: "unset" }), hJ = j("div", {
39740
39827
  name: "MuiAccordion",
39741
39828
  slot: "Region"
39742
- })({}), sJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39829
+ })({}), gJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39743
39830
  let n = ye({
39744
39831
  props: e,
39745
39832
  name: "MuiAccordion"
@@ -39769,7 +39856,7 @@ var nJ = Je("MuiAccordion", [
39769
39856
  disabled: s,
39770
39857
  disableGutters: c,
39771
39858
  expanded: v
39772
- }, ee = rJ(w), T = {
39859
+ }, ee = fJ(w), T = {
39773
39860
  slots: {
39774
39861
  transition: m,
39775
39862
  ...d
@@ -39779,7 +39866,7 @@ var nJ = Je("MuiAccordion", [
39779
39866
  ...p
39780
39867
  }
39781
39868
  }, [te, E] = h("root", {
39782
- elementType: iJ,
39869
+ elementType: pJ,
39783
39870
  externalForwardedProps: {
39784
39871
  ...T,
39785
39872
  ..._
@@ -39789,7 +39876,7 @@ var nJ = Je("MuiAccordion", [
39789
39876
  ownerState: w,
39790
39877
  ref: t
39791
39878
  }), [ne, re] = h("heading", {
39792
- elementType: aJ,
39879
+ elementType: mJ,
39793
39880
  externalForwardedProps: T,
39794
39881
  className: ee.heading,
39795
39882
  ownerState: w
@@ -39798,7 +39885,7 @@ var nJ = Je("MuiAccordion", [
39798
39885
  externalForwardedProps: T,
39799
39886
  ownerState: w
39800
39887
  }), [ie, ae] = h("region", {
39801
- elementType: oJ,
39888
+ elementType: hJ,
39802
39889
  externalForwardedProps: T,
39803
39890
  ownerState: w,
39804
39891
  className: ee.region,
@@ -39812,7 +39899,7 @@ var nJ = Je("MuiAccordion", [
39812
39899
  ...E,
39813
39900
  children: [/*#__PURE__*/ P(ne, {
39814
39901
  ...re,
39815
- children: /*#__PURE__*/ P(eJ.Provider, {
39902
+ children: /*#__PURE__*/ P(lJ.Provider, {
39816
39903
  value: C,
39817
39904
  children: x
39818
39905
  })
@@ -39829,25 +39916,25 @@ var nJ = Je("MuiAccordion", [
39829
39916
  });
39830
39917
  //#endregion
39831
39918
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/AccordionDetails/accordionDetailsClasses.js
39832
- function cJ(e) {
39919
+ function _J(e) {
39833
39920
  return k("MuiAccordionDetails", e);
39834
39921
  }
39835
39922
  Je("MuiAccordionDetails", ["root"]);
39836
39923
  //#endregion
39837
39924
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/AccordionDetails/AccordionDetails.js
39838
- var lJ = (e) => {
39925
+ var vJ = (e) => {
39839
39926
  let { classes: t } = e;
39840
- return A({ root: ["root"] }, cJ, t);
39841
- }, uJ = j("div", {
39927
+ return A({ root: ["root"] }, _J, t);
39928
+ }, yJ = j("div", {
39842
39929
  name: "MuiAccordionDetails",
39843
39930
  slot: "Root"
39844
- })(b(({ theme: e }) => ({ padding: e.spacing(1, 2, 2) }))), dJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39931
+ })(b(({ theme: e }) => ({ padding: e.spacing(1, 2, 2) }))), bJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39845
39932
  let n = ye({
39846
39933
  props: e,
39847
39934
  name: "MuiAccordionDetails"
39848
39935
  }), { className: r, ...i } = n, a = n;
39849
- return /*#__PURE__*/ P(uJ, {
39850
- className: f(lJ(a).root, r),
39936
+ return /*#__PURE__*/ P(yJ, {
39937
+ className: f(vJ(a).root, r),
39851
39938
  ref: t,
39852
39939
  ownerState: a,
39853
39940
  ...i
@@ -39855,10 +39942,10 @@ var lJ = (e) => {
39855
39942
  });
39856
39943
  //#endregion
39857
39944
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/AccordionSummary/accordionSummaryClasses.js
39858
- function fJ(e) {
39945
+ function xJ(e) {
39859
39946
  return k("MuiAccordionSummary", e);
39860
39947
  }
39861
- var pJ = Je("MuiAccordionSummary", [
39948
+ var SJ = Je("MuiAccordionSummary", [
39862
39949
  "root",
39863
39950
  "expanded",
39864
39951
  "focusVisible",
@@ -39867,7 +39954,7 @@ var pJ = Je("MuiAccordionSummary", [
39867
39954
  "contentGutters",
39868
39955
  "content",
39869
39956
  "expandIconWrapper"
39870
- ]), mJ = (e) => {
39957
+ ]), CJ = (e) => {
39871
39958
  let { classes: t, expanded: n, disabled: r, disableGutters: i } = e;
39872
39959
  return A({
39873
39960
  root: [
@@ -39883,8 +39970,8 @@ var pJ = Je("MuiAccordionSummary", [
39883
39970
  !i && "contentGutters"
39884
39971
  ],
39885
39972
  expandIconWrapper: ["expandIconWrapper", n && "expanded"]
39886
- }, fJ, t);
39887
- }, hJ = j(l, {
39973
+ }, xJ, t);
39974
+ }, wJ = j(l, {
39888
39975
  name: "MuiAccordionSummary",
39889
39976
  slot: "Root"
39890
39977
  })(b(({ theme: e }) => {
@@ -39895,15 +39982,15 @@ var pJ = Je("MuiAccordionSummary", [
39895
39982
  minHeight: 48,
39896
39983
  padding: e.spacing(0, 2),
39897
39984
  transition: e.transitions.create(["min-height", "background-color"], t),
39898
- [`&.${pJ.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
39899
- [`&.${pJ.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
39900
- [`&:hover:not(.${pJ.disabled})`]: { cursor: "pointer" },
39985
+ [`&.${SJ.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
39986
+ [`&.${SJ.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
39987
+ [`&:hover:not(.${SJ.disabled})`]: { cursor: "pointer" },
39901
39988
  variants: [{
39902
39989
  props: (e) => !e.disableGutters,
39903
- style: { [`&.${pJ.expanded}`]: { minHeight: 64 } }
39990
+ style: { [`&.${SJ.expanded}`]: { minHeight: 64 } }
39904
39991
  }]
39905
39992
  };
39906
- })), gJ = j("span", {
39993
+ })), TJ = j("span", {
39907
39994
  name: "MuiAccordionSummary",
39908
39995
  slot: "Content"
39909
39996
  })(b(({ theme: e }) => ({
@@ -39915,10 +40002,10 @@ var pJ = Je("MuiAccordionSummary", [
39915
40002
  props: (e) => !e.disableGutters,
39916
40003
  style: {
39917
40004
  transition: e.transitions.create(["margin"], { duration: e.transitions.duration.shortest }),
39918
- [`&.${pJ.expanded}`]: { margin: "20px 0" }
40005
+ [`&.${SJ.expanded}`]: { margin: "20px 0" }
39919
40006
  }
39920
40007
  }]
39921
- }))), _J = j("span", {
40008
+ }))), EJ = j("span", {
39922
40009
  name: "MuiAccordionSummary",
39923
40010
  slot: "ExpandIconWrapper"
39924
40011
  })(b(({ theme: e }) => ({
@@ -39926,26 +40013,26 @@ var pJ = Je("MuiAccordionSummary", [
39926
40013
  color: (e.vars || e).palette.action.active,
39927
40014
  transform: "rotate(0deg)",
39928
40015
  transition: e.transitions.create("transform", { duration: e.transitions.duration.shortest }),
39929
- [`&.${pJ.expanded}`]: { transform: "rotate(180deg)" }
39930
- }))), vJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40016
+ [`&.${SJ.expanded}`]: { transform: "rotate(180deg)" }
40017
+ }))), DJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39931
40018
  let n = ye({
39932
40019
  props: e,
39933
40020
  name: "MuiAccordionSummary"
39934
- }), { children: r, className: i, expandIcon: a, focusVisibleClassName: o, onClick: s, slots: c, slotProps: l, ...u } = n, { disabled: d = !1, disableGutters: p, expanded: m, toggle: g } = N.useContext(eJ), _ = (e) => {
40021
+ }), { children: r, className: i, expandIcon: a, focusVisibleClassName: o, onClick: s, slots: c, slotProps: l, ...u } = n, { disabled: d = !1, disableGutters: p, expanded: m, toggle: g } = N.useContext(lJ), _ = (e) => {
39935
40022
  g && g(e), s && s(e);
39936
40023
  }, v = {
39937
40024
  ...n,
39938
40025
  expanded: m,
39939
40026
  disabled: d,
39940
40027
  disableGutters: p
39941
- }, y = mJ(v), b = {
40028
+ }, y = CJ(v), b = {
39942
40029
  slots: c,
39943
40030
  slotProps: l
39944
40031
  }, [x, S] = h("root", {
39945
40032
  ref: t,
39946
40033
  shouldForwardComponentProp: !0,
39947
40034
  className: f(y.root, i),
39948
- elementType: hJ,
40035
+ elementType: wJ,
39949
40036
  externalForwardedProps: {
39950
40037
  ...b,
39951
40038
  ...u
@@ -39966,12 +40053,12 @@ var pJ = Je("MuiAccordionSummary", [
39966
40053
  })
39967
40054
  }), [C, w] = h("content", {
39968
40055
  className: y.content,
39969
- elementType: gJ,
40056
+ elementType: TJ,
39970
40057
  externalForwardedProps: b,
39971
40058
  ownerState: v
39972
40059
  }), [ee, T] = h("expandIconWrapper", {
39973
40060
  className: y.expandIconWrapper,
39974
- elementType: _J,
40061
+ elementType: EJ,
39975
40062
  externalForwardedProps: b,
39976
40063
  ownerState: v
39977
40064
  });
@@ -39988,7 +40075,7 @@ var pJ = Je("MuiAccordionSummary", [
39988
40075
  });
39989
40076
  //#endregion
39990
40077
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/switchBaseClasses.js
39991
- function yJ(e) {
40078
+ function OJ(e) {
39992
40079
  return k("PrivateSwitchBase", e);
39993
40080
  }
39994
40081
  Je("PrivateSwitchBase", [
@@ -40001,7 +40088,7 @@ Je("PrivateSwitchBase", [
40001
40088
  ]);
40002
40089
  //#endregion
40003
40090
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/SwitchBase.js
40004
- var bJ = (e) => {
40091
+ var kJ = (e) => {
40005
40092
  let { classes: t, checked: n, disabled: r, edge: i } = e;
40006
40093
  return A({
40007
40094
  root: [
@@ -40011,8 +40098,8 @@ var bJ = (e) => {
40011
40098
  i && `edge${O(i)}`
40012
40099
  ],
40013
40100
  input: ["input"]
40014
- }, yJ, t);
40015
- }, xJ = j(l, { name: "MuiSwitchBase" })({
40101
+ }, OJ, t);
40102
+ }, AJ = j(l, { name: "MuiSwitchBase" })({
40016
40103
  padding: 9,
40017
40104
  borderRadius: "50%",
40018
40105
  variants: [
@@ -40039,7 +40126,7 @@ var bJ = (e) => {
40039
40126
  style: { marginRight: -12 }
40040
40127
  }
40041
40128
  ]
40042
- }), SJ = j("input", {
40129
+ }), jJ = j("input", {
40043
40130
  name: "MuiSwitchBase",
40044
40131
  shouldForwardProp: Ne
40045
40132
  })({
@@ -40053,7 +40140,7 @@ var bJ = (e) => {
40053
40140
  margin: 0,
40054
40141
  padding: 0,
40055
40142
  zIndex: 1
40056
- }), CJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40143
+ }), MJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40057
40144
  let { autoFocus: n, checked: r, checkedIcon: i, defaultChecked: a, disabled: o, disableFocusRipple: s = !1, edge: c = !1, icon: l, id: u, inputProps: d, inputRef: f, name: p, onBlur: m, onChange: g, onFocus: _, readOnly: v, required: y = !1, tabIndex: b, type: x, value: S, slots: C = {}, slotProps: w = {}, ...ee } = e, [T, te] = Wt({
40058
40145
  controlled: r,
40059
40146
  default: !!a,
@@ -40075,7 +40162,7 @@ var bJ = (e) => {
40075
40162
  disabled: O,
40076
40163
  disableFocusRipple: s,
40077
40164
  edge: c
40078
- }, oe = bJ(ae), k = {
40165
+ }, oe = kJ(ae), k = {
40079
40166
  slots: C,
40080
40167
  slotProps: {
40081
40168
  input: d,
@@ -40083,7 +40170,7 @@ var bJ = (e) => {
40083
40170
  }
40084
40171
  }, [se, ce] = h("root", {
40085
40172
  ref: t,
40086
- elementType: xJ,
40173
+ elementType: AJ,
40087
40174
  className: oe.root,
40088
40175
  shouldForwardComponentProp: !0,
40089
40176
  externalForwardedProps: {
@@ -40109,7 +40196,7 @@ var bJ = (e) => {
40109
40196
  }
40110
40197
  }), [le, ue] = h("input", {
40111
40198
  ref: f,
40112
- elementType: SJ,
40199
+ elementType: jJ,
40113
40200
  className: oe.input,
40114
40201
  externalForwardedProps: k,
40115
40202
  getSlotProps: (e) => ({
@@ -40137,13 +40224,13 @@ var bJ = (e) => {
40137
40224
  ...ce,
40138
40225
  children: [/*#__PURE__*/ P(le, { ...ue }), T ? i : l]
40139
40226
  });
40140
- }), wJ = x(/*#__PURE__*/ P("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), TJ = x(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), EJ = x(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
40227
+ }), NJ = x(/*#__PURE__*/ P("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), PJ = x(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), FJ = x(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
40141
40228
  //#endregion
40142
40229
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
40143
- function DJ(e) {
40230
+ function IJ(e) {
40144
40231
  return k("MuiCheckbox", e);
40145
40232
  }
40146
- var OJ = Je("MuiCheckbox", [
40233
+ var LJ = Je("MuiCheckbox", [
40147
40234
  "root",
40148
40235
  "checked",
40149
40236
  "disabled",
@@ -40152,18 +40239,18 @@ var OJ = Je("MuiCheckbox", [
40152
40239
  "colorSecondary",
40153
40240
  "sizeSmall",
40154
40241
  "sizeMedium"
40155
- ]), kJ = (e) => {
40242
+ ]), RJ = (e) => {
40156
40243
  let { classes: t, indeterminate: n, color: r, size: i } = e, a = A({ root: [
40157
40244
  "root",
40158
40245
  n && "indeterminate",
40159
40246
  `color${O(r)}`,
40160
40247
  `size${O(i)}`
40161
- ] }, DJ, t);
40248
+ ] }, IJ, t);
40162
40249
  return {
40163
40250
  ...t,
40164
40251
  ...a
40165
40252
  };
40166
- }, AJ = j(CJ, {
40253
+ }, zJ = j(MJ, {
40167
40254
  shouldForwardProp: (e) => Ne(e) || e === "classes",
40168
40255
  name: "MuiCheckbox",
40169
40256
  slot: "Root",
@@ -40196,8 +40283,8 @@ var OJ = Je("MuiCheckbox", [
40196
40283
  ...Object.entries(e.palette).filter(d()).map(([t]) => ({
40197
40284
  props: { color: t },
40198
40285
  style: {
40199
- [`&.${OJ.checked}, &.${OJ.indeterminate}`]: { color: (e.vars || e).palette[t].main },
40200
- [`&.${OJ.disabled}`]: { color: (e.vars || e).palette.action.disabled }
40286
+ [`&.${LJ.checked}, &.${LJ.indeterminate}`]: { color: (e.vars || e).palette[t].main },
40287
+ [`&.${LJ.disabled}`]: { color: (e.vars || e).palette.action.disabled }
40201
40288
  }
40202
40289
  })),
40203
40290
  {
@@ -40205,19 +40292,19 @@ var OJ = Je("MuiCheckbox", [
40205
40292
  style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
40206
40293
  }
40207
40294
  ]
40208
- }))), jJ = /*#__PURE__*/ P(TJ, {}), MJ = /*#__PURE__*/ P(wJ, {}), NJ = /*#__PURE__*/ P(EJ, {}), PJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40295
+ }))), BJ = /*#__PURE__*/ P(PJ, {}), VJ = /*#__PURE__*/ P(NJ, {}), HJ = /*#__PURE__*/ P(FJ, {}), UJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40209
40296
  let n = ye({
40210
40297
  props: e,
40211
40298
  name: "MuiCheckbox"
40212
- }), { checkedIcon: r = jJ, color: i = "primary", icon: a = MJ, indeterminate: o = !1, indeterminateIcon: s = NJ, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: p = {}, slotProps: m = {}, ...g } = n, _ = o ? s : a, v = o ? s : r, y = {
40299
+ }), { checkedIcon: r = BJ, color: i = "primary", icon: a = VJ, indeterminate: o = !1, indeterminateIcon: s = HJ, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: p = {}, slotProps: m = {}, ...g } = n, _ = o ? s : a, v = o ? s : r, y = {
40213
40300
  ...n,
40214
40301
  disableRipple: u,
40215
40302
  color: i,
40216
40303
  indeterminate: o,
40217
40304
  size: l
40218
- }, b = kJ(y), x = m.input ?? c, [S, w] = h("root", {
40305
+ }, b = RJ(y), x = m.input ?? c, [S, w] = h("root", {
40219
40306
  ref: t,
40220
- elementType: AJ,
40307
+ elementType: zJ,
40221
40308
  className: f(b.root, d),
40222
40309
  shouldForwardComponentProp: !0,
40223
40310
  externalForwardedProps: {
@@ -40245,10 +40332,10 @@ var OJ = Je("MuiCheckbox", [
40245
40332
  });
40246
40333
  //#endregion
40247
40334
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
40248
- function FJ(e) {
40335
+ function WJ(e) {
40249
40336
  return k("MuiFormControlLabel", e);
40250
40337
  }
40251
- var IJ = Je("MuiFormControlLabel", [
40338
+ var GJ = Je("MuiFormControlLabel", [
40252
40339
  "root",
40253
40340
  "labelPlacementStart",
40254
40341
  "labelPlacementTop",
@@ -40258,7 +40345,7 @@ var IJ = Je("MuiFormControlLabel", [
40258
40345
  "error",
40259
40346
  "required",
40260
40347
  "asterisk"
40261
- ]), LJ = (e) => {
40348
+ ]), KJ = (e) => {
40262
40349
  let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
40263
40350
  return A({
40264
40351
  root: [
@@ -40270,14 +40357,14 @@ var IJ = Je("MuiFormControlLabel", [
40270
40357
  ],
40271
40358
  label: ["label", n && "disabled"],
40272
40359
  asterisk: ["asterisk", i && "error"]
40273
- }, FJ, t);
40274
- }, RJ = j("label", {
40360
+ }, WJ, t);
40361
+ }, qJ = j("label", {
40275
40362
  name: "MuiFormControlLabel",
40276
40363
  slot: "Root",
40277
40364
  overridesResolver: (e, t) => {
40278
40365
  let { ownerState: n } = e;
40279
40366
  return [
40280
- { [`& .${IJ.label}`]: t.label },
40367
+ { [`& .${GJ.label}`]: t.label },
40281
40368
  t.root,
40282
40369
  t[`labelPlacement${O(n.labelPlacement)}`]
40283
40370
  ];
@@ -40290,8 +40377,8 @@ var IJ = Je("MuiFormControlLabel", [
40290
40377
  WebkitTapHighlightColor: "transparent",
40291
40378
  marginLeft: -11,
40292
40379
  marginRight: 16,
40293
- [`&.${IJ.disabled}`]: { cursor: "default" },
40294
- [`& .${IJ.label}`]: { [`&.${IJ.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
40380
+ [`&.${GJ.disabled}`]: { cursor: "default" },
40381
+ [`& .${GJ.label}`]: { [`&.${GJ.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
40295
40382
  variants: [
40296
40383
  {
40297
40384
  props: { labelPlacement: "start" },
@@ -40313,10 +40400,10 @@ var IJ = Je("MuiFormControlLabel", [
40313
40400
  style: { marginLeft: 16 }
40314
40401
  }
40315
40402
  ]
40316
- }))), zJ = j("span", {
40403
+ }))), JJ = j("span", {
40317
40404
  name: "MuiFormControlLabel",
40318
40405
  slot: "Asterisk"
40319
- })(b(({ theme: e }) => ({ [`&.${IJ.error}`]: { color: (e.vars || e).palette.error.main } }))), BJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40406
+ })(b(({ theme: e }) => ({ [`&.${GJ.error}`]: { color: (e.vars || e).palette.error.main } }))), YJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40320
40407
  let n = ye({
40321
40408
  props: e,
40322
40409
  name: "MuiFormControlLabel"
@@ -40343,7 +40430,7 @@ var IJ = Je("MuiFormControlLabel", [
40343
40430
  labelPlacement: d,
40344
40431
  required: C,
40345
40432
  error: ee.error
40346
- }, te = LJ(T), [E, ne] = h("typography", {
40433
+ }, te = KJ(T), [E, ne] = h("typography", {
40347
40434
  elementType: $A,
40348
40435
  externalForwardedProps: {
40349
40436
  slots: _,
@@ -40359,12 +40446,12 @@ var IJ = Je("MuiFormControlLabel", [
40359
40446
  ...ne,
40360
40447
  className: f(te.label, ne?.className),
40361
40448
  children: re
40362
- })), /*#__PURE__*/ F(RJ, {
40449
+ })), /*#__PURE__*/ F(qJ, {
40363
40450
  className: f(te.root, i),
40364
40451
  ownerState: T,
40365
40452
  ref: t,
40366
40453
  ...b,
40367
- children: [/*#__PURE__*/ N.cloneElement(o, w), C ? /*#__PURE__*/ F("div", { children: [re, /*#__PURE__*/ F(zJ, {
40454
+ children: [/*#__PURE__*/ N.cloneElement(o, w), C ? /*#__PURE__*/ F("div", { children: [re, /*#__PURE__*/ F(JJ, {
40368
40455
  ownerState: T,
40369
40456
  "aria-hidden": !0,
40370
40457
  className: te.asterisk,
@@ -40374,10 +40461,10 @@ var IJ = Je("MuiFormControlLabel", [
40374
40461
  });
40375
40462
  //#endregion
40376
40463
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
40377
- function VJ(e) {
40464
+ function XJ(e) {
40378
40465
  return k("MuiInputAdornment", e);
40379
40466
  }
40380
- var HJ = Je("MuiInputAdornment", [
40467
+ var ZJ = Je("MuiInputAdornment", [
40381
40468
  "root",
40382
40469
  "filled",
40383
40470
  "standard",
@@ -40387,7 +40474,7 @@ var HJ = Je("MuiInputAdornment", [
40387
40474
  "disablePointerEvents",
40388
40475
  "hiddenLabel",
40389
40476
  "sizeSmall"
40390
- ]), UJ, WJ = (e, t) => {
40477
+ ]), QJ, $J = (e, t) => {
40391
40478
  let { ownerState: n } = e;
40392
40479
  return [
40393
40480
  t.root,
@@ -40395,7 +40482,7 @@ var HJ = Je("MuiInputAdornment", [
40395
40482
  n.disablePointerEvents === !0 && t.disablePointerEvents,
40396
40483
  t[n.variant]
40397
40484
  ];
40398
- }, GJ = (e) => {
40485
+ }, eY = (e) => {
40399
40486
  let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
40400
40487
  return A({ root: [
40401
40488
  "root",
@@ -40404,11 +40491,11 @@ var HJ = Je("MuiInputAdornment", [
40404
40491
  o,
40405
40492
  r && "hiddenLabel",
40406
40493
  a && `size${O(a)}`
40407
- ] }, VJ, t);
40408
- }, KJ = j("div", {
40494
+ ] }, XJ, t);
40495
+ }, tY = j("div", {
40409
40496
  name: "MuiInputAdornment",
40410
40497
  slot: "Root",
40411
- overridesResolver: WJ
40498
+ overridesResolver: $J
40412
40499
  })(b(({ theme: e }) => ({
40413
40500
  display: "flex",
40414
40501
  maxHeight: "2em",
@@ -40418,7 +40505,7 @@ var HJ = Je("MuiInputAdornment", [
40418
40505
  variants: [
40419
40506
  {
40420
40507
  props: { variant: "filled" },
40421
- style: { [`&.${HJ.positionStart}&:not(.${HJ.hiddenLabel})`]: { marginTop: 16 } }
40508
+ style: { [`&.${ZJ.positionStart}&:not(.${ZJ.hiddenLabel})`]: { marginTop: 16 } }
40422
40509
  },
40423
40510
  {
40424
40511
  props: { position: "start" },
@@ -40433,7 +40520,7 @@ var HJ = Je("MuiInputAdornment", [
40433
40520
  style: { pointerEvents: "none" }
40434
40521
  }
40435
40522
  ]
40436
- }))), qJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40523
+ }))), nY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40437
40524
  let n = ye({
40438
40525
  props: e,
40439
40526
  name: "MuiInputAdornment"
@@ -40446,10 +40533,10 @@ var HJ = Je("MuiInputAdornment", [
40446
40533
  disablePointerEvents: o,
40447
40534
  position: c,
40448
40535
  variant: p
40449
- }, h = GJ(m);
40536
+ }, h = eY(m);
40450
40537
  return /*#__PURE__*/ P(_e.Provider, {
40451
40538
  value: null,
40452
- children: /*#__PURE__*/ P(KJ, {
40539
+ children: /*#__PURE__*/ P(tY, {
40453
40540
  as: a,
40454
40541
  ownerState: m,
40455
40542
  className: f(h.root, i),
@@ -40458,20 +40545,20 @@ var HJ = Je("MuiInputAdornment", [
40458
40545
  children: typeof r == "string" && !s ? /*#__PURE__*/ P($A, {
40459
40546
  color: "textSecondary",
40460
40547
  children: r
40461
- }) : /*#__PURE__*/ F(N.Fragment, { children: [c === "start" ? UJ ||= /*#__PURE__*/ P("span", {
40548
+ }) : /*#__PURE__*/ F(N.Fragment, { children: [c === "start" ? QJ ||= /*#__PURE__*/ P("span", {
40462
40549
  className: "notranslate",
40463
40550
  "aria-hidden": !0,
40464
40551
  children: "​"
40465
40552
  }) : null, r] })
40466
40553
  })
40467
40554
  });
40468
- }), JJ = x(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), YJ = x(/*#__PURE__*/ P("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), XJ = j("span", {
40555
+ }), rY = x(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), iY = x(/*#__PURE__*/ P("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), aY = j("span", {
40469
40556
  name: "MuiRadioButtonIcon",
40470
40557
  shouldForwardProp: Ne
40471
40558
  })({
40472
40559
  position: "relative",
40473
40560
  display: "flex"
40474
- }), ZJ = j(JJ, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), QJ = j(YJ, { name: "MuiRadioButtonIcon" })(b(({ theme: e }) => ({
40561
+ }), oY = j(rY, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), sY = j(iY, { name: "MuiRadioButtonIcon" })(b(({ theme: e }) => ({
40475
40562
  left: 0,
40476
40563
  position: "absolute",
40477
40564
  transform: "scale(0)",
@@ -40490,19 +40577,19 @@ var HJ = Je("MuiInputAdornment", [
40490
40577
  }
40491
40578
  }]
40492
40579
  })));
40493
- function $J(e) {
40580
+ function cY(e) {
40494
40581
  let { checked: t = !1, classes: n = {}, fontSize: r } = e, i = {
40495
40582
  ...e,
40496
40583
  checked: t
40497
40584
  };
40498
- return /*#__PURE__*/ F(XJ, {
40585
+ return /*#__PURE__*/ F(aY, {
40499
40586
  className: n.root,
40500
40587
  ownerState: i,
40501
- children: [/*#__PURE__*/ P(ZJ, {
40588
+ children: [/*#__PURE__*/ P(oY, {
40502
40589
  fontSize: r,
40503
40590
  className: n.background,
40504
40591
  ownerState: i
40505
- }), /*#__PURE__*/ P(QJ, {
40592
+ }), /*#__PURE__*/ P(sY, {
40506
40593
  fontSize: r,
40507
40594
  className: n.dot,
40508
40595
  ownerState: i
@@ -40511,25 +40598,25 @@ function $J(e) {
40511
40598
  }
40512
40599
  //#endregion
40513
40600
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroupContext.js
40514
- var eY = /*#__PURE__*/ N.createContext(void 0);
40601
+ var lY = /*#__PURE__*/ N.createContext(void 0);
40515
40602
  //#endregion
40516
40603
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/useRadioGroup.js
40517
- function tY() {
40518
- return N.useContext(eY);
40604
+ function uY() {
40605
+ return N.useContext(lY);
40519
40606
  }
40520
40607
  //#endregion
40521
40608
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Radio/radioClasses.js
40522
- function nY(e) {
40609
+ function dY(e) {
40523
40610
  return k("MuiRadio", e);
40524
40611
  }
40525
- var rY = Je("MuiRadio", [
40612
+ var fY = Je("MuiRadio", [
40526
40613
  "root",
40527
40614
  "checked",
40528
40615
  "disabled",
40529
40616
  "colorPrimary",
40530
40617
  "colorSecondary",
40531
40618
  "sizeSmall"
40532
- ]), iY = (e) => {
40619
+ ]), pY = (e) => {
40533
40620
  let { classes: t, color: n, size: r } = e, i = { root: [
40534
40621
  "root",
40535
40622
  `color${O(n)}`,
@@ -40537,9 +40624,9 @@ var rY = Je("MuiRadio", [
40537
40624
  ] };
40538
40625
  return {
40539
40626
  ...t,
40540
- ...A(i, nY, t)
40627
+ ...A(i, dY, t)
40541
40628
  };
40542
- }, aY = j(CJ, {
40629
+ }, mY = j(MJ, {
40543
40630
  shouldForwardProp: (e) => Ne(e) || e === "classes",
40544
40631
  name: "MuiRadio",
40545
40632
  slot: "Root",
@@ -40553,7 +40640,7 @@ var rY = Je("MuiRadio", [
40553
40640
  }
40554
40641
  })(b(({ theme: e }) => ({
40555
40642
  color: (e.vars || e).palette.text.secondary,
40556
- [`&.${rY.disabled}`]: { color: (e.vars || e).palette.action.disabled },
40643
+ [`&.${fY.disabled}`]: { color: (e.vars || e).palette.action.disabled },
40557
40644
  variants: [
40558
40645
  {
40559
40646
  props: {
@@ -40576,7 +40663,7 @@ var rY = Je("MuiRadio", [
40576
40663
  color: t,
40577
40664
  disabled: !1
40578
40665
  },
40579
- style: { [`&.${rY.checked}`]: { color: (e.vars || e).palette[t].main } }
40666
+ style: { [`&.${fY.checked}`]: { color: (e.vars || e).palette[t].main } }
40580
40667
  })),
40581
40668
  {
40582
40669
  props: { disableRipple: !1 },
@@ -40584,14 +40671,14 @@ var rY = Je("MuiRadio", [
40584
40671
  }
40585
40672
  ]
40586
40673
  })));
40587
- function oY(e, t) {
40674
+ function hY(e, t) {
40588
40675
  return typeof t == "object" && t ? e === t : String(e) === String(t);
40589
40676
  }
40590
- var sY = /*#__PURE__*/ P($J, { checked: !0 }), cY = /*#__PURE__*/ P($J, {}), lY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40677
+ var gY = /*#__PURE__*/ P(cY, { checked: !0 }), _Y = /*#__PURE__*/ P(cY, {}), vY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40591
40678
  let n = ye({
40592
40679
  props: e,
40593
40680
  name: "MuiRadio"
40594
- }), { checked: r, checkedIcon: i = sY, color: a = "primary", icon: o = cY, name: s, onChange: c, size: l = "medium", className: u, disabled: d, disableRipple: p = !1, slots: m = {}, slotProps: g = {}, inputProps: _, ...v } = n, y = Ze(), b = d;
40681
+ }), { checked: r, checkedIcon: i = gY, color: a = "primary", icon: o = _Y, name: s, onChange: c, size: l = "medium", className: u, disabled: d, disableRipple: p = !1, slots: m = {}, slotProps: g = {}, inputProps: _, ...v } = n, y = Ze(), b = d;
40595
40682
  y && b === void 0 && (b = y.disabled), b ??= !1;
40596
40683
  let x = {
40597
40684
  ...n,
@@ -40599,11 +40686,11 @@ var sY = /*#__PURE__*/ P($J, { checked: !0 }), cY = /*#__PURE__*/ P($J, {}), lY
40599
40686
  disableRipple: p,
40600
40687
  color: a,
40601
40688
  size: l
40602
- }, S = iY(x), C = tY(), w = r, ee = Ht(c, C && C.onChange), T = s;
40603
- C && (w === void 0 && (w = oY(C.value, n.value)), T === void 0 && (T = C.name));
40689
+ }, S = pY(x), C = uY(), w = r, ee = Ht(c, C && C.onChange), T = s;
40690
+ C && (w === void 0 && (w = hY(C.value, n.value)), T === void 0 && (T = C.name));
40604
40691
  let te = g.input ?? _, [E, ne] = h("root", {
40605
40692
  ref: t,
40606
- elementType: aY,
40693
+ elementType: mY,
40607
40694
  className: f(S.root, u),
40608
40695
  shouldForwardComponentProp: !0,
40609
40696
  externalForwardedProps: {
@@ -40636,10 +40723,10 @@ var sY = /*#__PURE__*/ P($J, { checked: !0 }), cY = /*#__PURE__*/ P($J, {}), lY
40636
40723
  });
40637
40724
  //#endregion
40638
40725
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
40639
- function uY(e) {
40726
+ function yY(e) {
40640
40727
  return k("MuiTooltip", e);
40641
40728
  }
40642
- var dY = Je("MuiTooltip", [
40729
+ var bY = Je("MuiTooltip", [
40643
40730
  "popper",
40644
40731
  "popperInteractive",
40645
40732
  "popperArrow",
@@ -40655,10 +40742,10 @@ var dY = Je("MuiTooltip", [
40655
40742
  ]);
40656
40743
  //#endregion
40657
40744
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
40658
- function fY(e) {
40745
+ function xY(e) {
40659
40746
  return Math.round(e * 1e5) / 1e5;
40660
40747
  }
40661
- var pY = (e) => {
40748
+ var SY = (e) => {
40662
40749
  let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
40663
40750
  return A({
40664
40751
  popper: [
@@ -40673,8 +40760,8 @@ var pY = (e) => {
40673
40760
  `tooltipPlacement${O(a.split("-")[0])}`
40674
40761
  ],
40675
40762
  arrow: ["arrow"]
40676
- }, uY, t);
40677
- }, mY = j(kR, {
40763
+ }, yY, t);
40764
+ }, CY = j(kR, {
40678
40765
  name: "MuiTooltip",
40679
40766
  slot: "Popper",
40680
40767
  overridesResolver: (e, t) => {
@@ -40701,22 +40788,22 @@ var pY = (e) => {
40701
40788
  {
40702
40789
  props: ({ ownerState: e }) => e.arrow,
40703
40790
  style: {
40704
- [`&[data-popper-placement*="bottom"] .${dY.arrow}`]: {
40791
+ [`&[data-popper-placement*="bottom"] .${bY.arrow}`]: {
40705
40792
  top: 0,
40706
40793
  marginTop: "-0.71em",
40707
40794
  "&::before": { transformOrigin: "0 100%" }
40708
40795
  },
40709
- [`&[data-popper-placement*="top"] .${dY.arrow}`]: {
40796
+ [`&[data-popper-placement*="top"] .${bY.arrow}`]: {
40710
40797
  bottom: 0,
40711
40798
  marginBottom: "-0.71em",
40712
40799
  "&::before": { transformOrigin: "100% 0" }
40713
40800
  },
40714
- [`&[data-popper-placement*="right"] .${dY.arrow}`]: {
40801
+ [`&[data-popper-placement*="right"] .${bY.arrow}`]: {
40715
40802
  height: "1em",
40716
40803
  width: "0.71em",
40717
40804
  "&::before": { transformOrigin: "100% 100%" }
40718
40805
  },
40719
- [`&[data-popper-placement*="left"] .${dY.arrow}`]: {
40806
+ [`&[data-popper-placement*="left"] .${bY.arrow}`]: {
40720
40807
  height: "1em",
40721
40808
  width: "0.71em",
40722
40809
  "&::before": { transformOrigin: "0 0" }
@@ -40725,34 +40812,34 @@ var pY = (e) => {
40725
40812
  },
40726
40813
  {
40727
40814
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
40728
- style: { [`&[data-popper-placement*="right"] .${dY.arrow}`]: {
40815
+ style: { [`&[data-popper-placement*="right"] .${bY.arrow}`]: {
40729
40816
  left: 0,
40730
40817
  marginLeft: "-0.71em"
40731
40818
  } }
40732
40819
  },
40733
40820
  {
40734
40821
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
40735
- style: { [`&[data-popper-placement*="right"] .${dY.arrow}`]: {
40822
+ style: { [`&[data-popper-placement*="right"] .${bY.arrow}`]: {
40736
40823
  right: 0,
40737
40824
  marginRight: "-0.71em"
40738
40825
  } }
40739
40826
  },
40740
40827
  {
40741
40828
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
40742
- style: { [`&[data-popper-placement*="left"] .${dY.arrow}`]: {
40829
+ style: { [`&[data-popper-placement*="left"] .${bY.arrow}`]: {
40743
40830
  right: 0,
40744
40831
  marginRight: "-0.71em"
40745
40832
  } }
40746
40833
  },
40747
40834
  {
40748
40835
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
40749
- style: { [`&[data-popper-placement*="left"] .${dY.arrow}`]: {
40836
+ style: { [`&[data-popper-placement*="left"] .${bY.arrow}`]: {
40750
40837
  left: 0,
40751
40838
  marginLeft: "-0.71em"
40752
40839
  } }
40753
40840
  }
40754
40841
  ]
40755
- }))), hY = j("div", {
40842
+ }))), wY = j("div", {
40756
40843
  name: "MuiTooltip",
40757
40844
  slot: "Tooltip",
40758
40845
  overridesResolver: (e, t) => {
@@ -40775,13 +40862,13 @@ var pY = (e) => {
40775
40862
  margin: 2,
40776
40863
  wordWrap: "break-word",
40777
40864
  fontWeight: e.typography.fontWeightMedium,
40778
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
40779
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
40780
- [`.${dY.popper}[data-popper-placement*="top"] &`]: {
40865
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
40866
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
40867
+ [`.${bY.popper}[data-popper-placement*="top"] &`]: {
40781
40868
  transformOrigin: "center bottom",
40782
40869
  marginBottom: "14px"
40783
40870
  },
40784
- [`.${dY.popper}[data-popper-placement*="bottom"] &`]: {
40871
+ [`.${bY.popper}[data-popper-placement*="bottom"] &`]: {
40785
40872
  transformOrigin: "center top",
40786
40873
  marginTop: "14px"
40787
40874
  },
@@ -40798,48 +40885,48 @@ var pY = (e) => {
40798
40885
  style: {
40799
40886
  padding: "8px 16px",
40800
40887
  fontSize: e.typography.pxToRem(14),
40801
- lineHeight: `${fY(16 / 14)}em`,
40888
+ lineHeight: `${xY(16 / 14)}em`,
40802
40889
  fontWeight: e.typography.fontWeightRegular
40803
40890
  }
40804
40891
  },
40805
40892
  {
40806
40893
  props: ({ ownerState: e }) => !e.isRtl,
40807
40894
  style: {
40808
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
40809
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
40895
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
40896
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
40810
40897
  }
40811
40898
  },
40812
40899
  {
40813
40900
  props: ({ ownerState: e }) => !e.isRtl && e.touch,
40814
40901
  style: {
40815
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
40816
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
40902
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
40903
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
40817
40904
  }
40818
40905
  },
40819
40906
  {
40820
40907
  props: ({ ownerState: e }) => !!e.isRtl,
40821
40908
  style: {
40822
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
40823
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
40909
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
40910
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
40824
40911
  }
40825
40912
  },
40826
40913
  {
40827
40914
  props: ({ ownerState: e }) => !!e.isRtl && e.touch,
40828
40915
  style: {
40829
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
40830
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
40916
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
40917
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
40831
40918
  }
40832
40919
  },
40833
40920
  {
40834
40921
  props: ({ ownerState: e }) => e.touch,
40835
- style: { [`.${dY.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
40922
+ style: { [`.${bY.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
40836
40923
  },
40837
40924
  {
40838
40925
  props: ({ ownerState: e }) => e.touch,
40839
- style: { [`.${dY.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
40926
+ style: { [`.${bY.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
40840
40927
  }
40841
40928
  ]
40842
- }))), gY = j("span", {
40929
+ }))), TY = j("span", {
40843
40930
  name: "MuiTooltip",
40844
40931
  slot: "Arrow"
40845
40932
  })(b(({ theme: e }) => ({
@@ -40858,16 +40945,16 @@ var pY = (e) => {
40858
40945
  backgroundColor: "currentColor",
40859
40946
  transform: "rotate(45deg)"
40860
40947
  }
40861
- }))), _Y = !1, vY = new be(), yY = {
40948
+ }))), EY = !1, DY = new be(), OY = {
40862
40949
  x: 0,
40863
40950
  y: 0
40864
40951
  };
40865
- function bY(e, t) {
40952
+ function kY(e, t) {
40866
40953
  return (n, ...r) => {
40867
40954
  t && t(n, ...r), e(n, ...r);
40868
40955
  };
40869
40956
  }
40870
- var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40957
+ var AY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40871
40958
  let n = ye({
40872
40959
  props: e,
40873
40960
  name: "MuiTooltip"
@@ -40881,15 +40968,15 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40881
40968
  });
40882
40969
  N.useEffect(() => Ae, [Ae]);
40883
40970
  let je = (e) => {
40884
- vY.clear(), _Y = !0, Ee(!0), w && !De && w(e);
40971
+ DY.clear(), EY = !0, Ee(!0), w && !De && w(e);
40885
40972
  }, Me = ee((e) => {
40886
- vY.start(800 + x, () => {
40887
- _Y = !1;
40973
+ DY.start(800 + x, () => {
40974
+ EY = !1;
40888
40975
  }), Ee(!1), C && De && C(e), be.start(de.transitions.duration.shortest, () => {
40889
40976
  A.current = !1;
40890
40977
  });
40891
40978
  }), Ne = (e) => {
40892
- A.current && e.type !== "touchstart" || (me && me.removeAttribute("title"), xe.clear(), Se.clear(), g || _Y && _ ? xe.start(_Y ? _ : g, () => {
40979
+ A.current && e.type !== "touchstart" || (me && me.removeAttribute("title"), xe.clear(), Se.clear(), g || EY && _ ? xe.start(EY ? _ : g, () => {
40893
40980
  je(e);
40894
40981
  }) : je(e));
40895
40982
  }, Pe = (e) => {
@@ -40931,7 +41018,7 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40931
41018
  !oe && oe !== 0 && (De = !1);
40932
41019
  let Ve = N.useRef(), He = (e) => {
40933
41020
  let t = le.props;
40934
- t.onMouseMove && t.onMouseMove(e), yY = {
41021
+ t.onMouseMove && t.onMouseMove(e), OY = {
40935
41022
  x: e.clientX,
40936
41023
  y: e.clientY
40937
41024
  }, Ve.current && Ve.current.update();
@@ -40946,7 +41033,7 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40946
41033
  ref: Be,
40947
41034
  ...y ? { onMouseMove: He } : {}
40948
41035
  }, Ke = {};
40949
- m || (Ge.onTouchStart = Re, Ge.onTouchEnd = ze), d || (Ge.onMouseOver = bY(Ne, Ge.onMouseOver), Ge.onMouseLeave = bY(Pe, Ge.onMouseLeave), ve || (Ke.onMouseOver = Ne, Ke.onMouseLeave = Pe)), u || (Ge.onFocus = bY(j, Ge.onFocus), Ge.onBlur = bY(Ie, Ge.onBlur), ve || (Ke.onFocus = j, Ke.onBlur = Ie));
41036
+ m || (Ge.onTouchStart = Re, Ge.onTouchEnd = ze), d || (Ge.onMouseOver = kY(Ne, Ge.onMouseOver), Ge.onMouseLeave = kY(Pe, Ge.onMouseLeave), ve || (Ke.onMouseOver = Ne, Ke.onMouseLeave = Pe)), u || (Ge.onFocus = kY(j, Ge.onFocus), Ge.onBlur = kY(Ie, Ge.onBlur), ve || (Ke.onFocus = j, Ke.onBlur = Ie));
40950
41037
  let qe = {
40951
41038
  ...n,
40952
41039
  isRtl: pe,
@@ -40973,7 +41060,7 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40973
41060
  ge,
40974
41061
  D.popperOptions,
40975
41062
  Je?.popperOptions
40976
- ]), Xe = pY(qe), Ze = typeof O.transition == "function" ? O.transition(qe) : O.transition, Qe = {
41063
+ ]), Xe = SY(qe), Ze = typeof O.transition == "function" ? O.transition(qe) : O.transition, Qe = {
40977
41064
  slots: {
40978
41065
  popper: s.Popper,
40979
41066
  transition: s.Transition ?? k,
@@ -40994,7 +41081,7 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40994
41081
  }
40995
41082
  }
40996
41083
  }, [$e, et] = h("popper", {
40997
- elementType: mY,
41084
+ elementType: CY,
40998
41085
  externalForwardedProps: Qe,
40999
41086
  ownerState: qe,
41000
41087
  className: f(Xe.popper, D?.className)
@@ -41003,12 +41090,12 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41003
41090
  externalForwardedProps: Qe,
41004
41091
  ownerState: qe
41005
41092
  }), [rt, it] = h("tooltip", {
41006
- elementType: hY,
41093
+ elementType: wY,
41007
41094
  className: Xe.tooltip,
41008
41095
  externalForwardedProps: Qe,
41009
41096
  ownerState: qe
41010
41097
  }), [at, ot] = h("arrow", {
41011
- elementType: gY,
41098
+ elementType: TY,
41012
41099
  className: Xe.arrow,
41013
41100
  externalForwardedProps: Qe,
41014
41101
  ownerState: qe,
@@ -41018,10 +41105,10 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41018
41105
  as: re ?? kR,
41019
41106
  placement: E,
41020
41107
  anchorEl: y ? { getBoundingClientRect: () => ({
41021
- top: yY.y,
41022
- left: yY.x,
41023
- right: yY.x,
41024
- bottom: yY.y,
41108
+ top: OY.y,
41109
+ left: OY.x,
41110
+ right: OY.x,
41111
+ bottom: OY.y,
41025
41112
  width: 0,
41026
41113
  height: 0
41027
41114
  }) } : me,
@@ -41045,10 +41132,10 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41045
41132
  });
41046
41133
  //#endregion
41047
41134
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
41048
- function SY(e) {
41135
+ function jY(e) {
41049
41136
  return k("MuiSwitch", e);
41050
41137
  }
41051
- var CY = Je("MuiSwitch", [
41138
+ var MY = Je("MuiSwitch", [
41052
41139
  "root",
41053
41140
  "edgeStart",
41054
41141
  "edgeEnd",
@@ -41062,7 +41149,7 @@ var CY = Je("MuiSwitch", [
41062
41149
  "input",
41063
41150
  "thumb",
41064
41151
  "track"
41065
- ]), wY = (e) => {
41152
+ ]), NY = (e) => {
41066
41153
  let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = A({
41067
41154
  root: [
41068
41155
  "root",
@@ -41078,12 +41165,12 @@ var CY = Je("MuiSwitch", [
41078
41165
  thumb: ["thumb"],
41079
41166
  track: ["track"],
41080
41167
  input: ["input"]
41081
- }, SY, t);
41168
+ }, jY, t);
41082
41169
  return {
41083
41170
  ...t,
41084
41171
  ...s
41085
41172
  };
41086
- }, TY = j("span", {
41173
+ }, PY = j("span", {
41087
41174
  name: "MuiSwitch",
41088
41175
  slot: "Root",
41089
41176
  overridesResolver: (e, t) => {
@@ -41121,25 +41208,25 @@ var CY = Je("MuiSwitch", [
41121
41208
  width: 40,
41122
41209
  height: 24,
41123
41210
  padding: 7,
41124
- [`& .${CY.thumb}`]: {
41211
+ [`& .${MY.thumb}`]: {
41125
41212
  width: 16,
41126
41213
  height: 16
41127
41214
  },
41128
- [`& .${CY.switchBase}`]: {
41215
+ [`& .${MY.switchBase}`]: {
41129
41216
  padding: 4,
41130
- [`&.${CY.checked}`]: { transform: "translateX(16px)" }
41217
+ [`&.${MY.checked}`]: { transform: "translateX(16px)" }
41131
41218
  }
41132
41219
  }
41133
41220
  }
41134
41221
  ]
41135
- }), EY = j(CJ, {
41222
+ }), FY = j(MJ, {
41136
41223
  name: "MuiSwitch",
41137
41224
  slot: "SwitchBase",
41138
41225
  overridesResolver: (e, t) => {
41139
41226
  let { ownerState: n } = e;
41140
41227
  return [
41141
41228
  t.switchBase,
41142
- { [`& .${CY.input}`]: t.input },
41229
+ { [`& .${MY.input}`]: t.input },
41143
41230
  n.color !== "default" && t[`color${O(n.color)}`]
41144
41231
  ];
41145
41232
  }
@@ -41150,11 +41237,11 @@ var CY = Je("MuiSwitch", [
41150
41237
  zIndex: 1,
41151
41238
  color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
41152
41239
  transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
41153
- [`&.${CY.checked}`]: { transform: "translateX(20px)" },
41154
- [`&.${CY.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
41155
- [`&.${CY.checked} + .${CY.track}`]: { opacity: .5 },
41156
- [`&.${CY.disabled} + .${CY.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
41157
- [`& .${CY.input}`]: {
41240
+ [`&.${MY.checked}`]: { transform: "translateX(20px)" },
41241
+ [`&.${MY.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
41242
+ [`&.${MY.checked} + .${MY.track}`]: { opacity: .5 },
41243
+ [`&.${MY.disabled} + .${MY.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
41244
+ [`& .${MY.input}`]: {
41158
41245
  left: "-100%",
41159
41246
  width: "300%"
41160
41247
  }
@@ -41166,18 +41253,18 @@ var CY = Je("MuiSwitch", [
41166
41253
  variants: [...Object.entries(e.palette).filter(d(["light"])).map(([t]) => ({
41167
41254
  props: { color: t },
41168
41255
  style: {
41169
- [`&.${CY.checked}`]: {
41256
+ [`&.${MY.checked}`]: {
41170
41257
  color: (e.vars || e).palette[t].main,
41171
41258
  "&:hover": {
41172
41259
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
41173
41260
  "@media (hover: none)": { backgroundColor: "transparent" }
41174
41261
  },
41175
- [`&.${CY.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
41262
+ [`&.${MY.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
41176
41263
  },
41177
- [`&.${CY.checked} + .${CY.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
41264
+ [`&.${MY.checked} + .${MY.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
41178
41265
  }
41179
41266
  }))]
41180
- }))), DY = j("span", {
41267
+ }))), IY = j("span", {
41181
41268
  name: "MuiSwitch",
41182
41269
  slot: "Track"
41183
41270
  })(b(({ theme: e }) => ({
@@ -41190,7 +41277,7 @@ var CY = Je("MuiSwitch", [
41190
41277
  transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
41191
41278
  backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
41192
41279
  opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
41193
- }))), OY = j("span", {
41280
+ }))), LY = j("span", {
41194
41281
  name: "MuiSwitch",
41195
41282
  slot: "Thumb"
41196
41283
  })(b(({ theme: e }) => ({
@@ -41201,7 +41288,7 @@ var CY = Je("MuiSwitch", [
41201
41288
  width: 20,
41202
41289
  height: 20,
41203
41290
  borderRadius: "50%"
41204
- }))), kY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41291
+ }))), RY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41205
41292
  let n = ye({
41206
41293
  props: e,
41207
41294
  name: "MuiSwitch"
@@ -41210,29 +41297,29 @@ var CY = Je("MuiSwitch", [
41210
41297
  color: i,
41211
41298
  edge: a,
41212
41299
  size: o
41213
- }, p = wY(d), m = l.input, g = {
41300
+ }, p = NY(d), m = l.input, g = {
41214
41301
  slots: c,
41215
41302
  slotProps: l
41216
41303
  }, [_, v] = h("root", {
41217
41304
  className: f(p.root, r),
41218
- elementType: TY,
41305
+ elementType: PY,
41219
41306
  externalForwardedProps: g,
41220
41307
  ownerState: d,
41221
41308
  additionalProps: { sx: s }
41222
41309
  }), [y, b] = h("thumb", {
41223
41310
  className: p.thumb,
41224
- elementType: OY,
41311
+ elementType: LY,
41225
41312
  externalForwardedProps: g,
41226
41313
  ownerState: d
41227
41314
  }), x = /*#__PURE__*/ P(y, { ...b }), [S, w] = h("track", {
41228
41315
  className: p.track,
41229
- elementType: DY,
41316
+ elementType: IY,
41230
41317
  externalForwardedProps: g,
41231
41318
  ownerState: d
41232
41319
  });
41233
41320
  return /*#__PURE__*/ F(_, {
41234
41321
  ...v,
41235
- children: [/*#__PURE__*/ P(EY, {
41322
+ children: [/*#__PURE__*/ P(FY, {
41236
41323
  type: "checkbox",
41237
41324
  icon: x,
41238
41325
  checkedIcon: x,
@@ -41253,15 +41340,15 @@ var CY = Je("MuiSwitch", [
41253
41340
  }
41254
41341
  }), /*#__PURE__*/ P(S, { ...w })]
41255
41342
  });
41256
- }), AY = j(LP)(() => ({ fontSize: "max(1.25rem, 18px)" })), jY = j(VP)(() => ({ fontSize: "max(1rem, 14px)" })), MY = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(DN, {
41343
+ }), zY = j(LP)(() => ({ fontSize: "max(1.25rem, 18px)" })), BY = j(VP)(() => ({ fontSize: "max(1rem, 14px)" })), VY = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(DN, {
41257
41344
  open: i,
41258
41345
  disableAutoFocus: s,
41259
41346
  disableEnforceFocus: c,
41260
41347
  disableRestoreFocus: l,
41261
41348
  onClose: n,
41262
41349
  children: [
41263
- t && /* @__PURE__ */ P(AY, { children: t }),
41264
- e && /* @__PURE__ */ P(nN, { children: /* @__PURE__ */ P(jY, { children: e }) }),
41350
+ t && /* @__PURE__ */ P(zY, { children: t }),
41351
+ e && /* @__PURE__ */ P(nN, { children: /* @__PURE__ */ P(BY, { children: e }) }),
41265
41352
  /* @__PURE__ */ F(vN, { children: [n && /* @__PURE__ */ P(qe, {
41266
41353
  onClick: n,
41267
41354
  color: "primary",
@@ -41274,13 +41361,13 @@ var CY = Je("MuiSwitch", [
41274
41361
  })] })
41275
41362
  ]
41276
41363
  });
41277
- MY.defaultProps = {
41364
+ VY.defaultProps = {
41278
41365
  onCloseText: "CANCEL",
41279
41366
  onConfirmText: "OK",
41280
41367
  disableAutoFocus: !1,
41281
41368
  disableEnforceFocus: !1,
41282
41369
  disableRestoreFocus: !1
41283
- }, MY.propTypes = {
41370
+ }, VY.propTypes = {
41284
41371
  text: U.default.oneOfType([U.default.string, U.default.object]),
41285
41372
  title: U.default.string,
41286
41373
  onClose: U.default.func,
@@ -41294,18 +41381,18 @@ MY.defaultProps = {
41294
41381
  };
41295
41382
  //#endregion
41296
41383
  //#region ../../lib-react/config-ui/dist/radio-with-label.js
41297
- var NY = j(BJ)(() => ({ "& .MuiFormControlLabel-label": {
41384
+ var HY = j(YJ)(() => ({ "& .MuiFormControlLabel-label": {
41298
41385
  left: "-5px",
41299
41386
  position: "relative"
41300
- } })), PY = j(lY)(() => ({ color: `${M.tertiary()} !important` })), FY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(NY, {
41387
+ } })), UY = j(vY)(() => ({ color: `${M.tertiary()} !important` })), WY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(HY, {
41301
41388
  value: t,
41302
- control: /* @__PURE__ */ P(PY, {
41389
+ control: /* @__PURE__ */ P(UY, {
41303
41390
  checked: n,
41304
41391
  onChange: r
41305
41392
  }),
41306
41393
  label: e
41307
41394
  });
41308
- FY.propTypes = {
41395
+ WY.propTypes = {
41309
41396
  label: U.default.string,
41310
41397
  value: U.default.string,
41311
41398
  checked: U.default.bool,
@@ -41313,7 +41400,7 @@ FY.propTypes = {
41313
41400
  };
41314
41401
  //#endregion
41315
41402
  //#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/ExpandMore.js
41316
- var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), LY = j(PP)(() => ({})), RY = class extends _t.Component {
41403
+ var GY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), KY = j(PP)(() => ({})), qY = class extends _t.Component {
41317
41404
  static propTypes = {
41318
41405
  className: U.default.string,
41319
41406
  contentClassName: U.default.string,
@@ -41334,7 +41421,7 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41334
41421
  indicatorColor: "primary",
41335
41422
  value: e,
41336
41423
  onChange: this.handleChange,
41337
- children: _t.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(LY, { label: e.props.title }, t) : null)
41424
+ children: _t.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(KY, { label: e.props.title }, t) : null)
41338
41425
  }), /* @__PURE__ */ P("div", {
41339
41426
  className: r,
41340
41427
  style: i,
@@ -41342,7 +41429,7 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41342
41429
  })]
41343
41430
  });
41344
41431
  }
41345
- }, zY = j(BJ)(({ theme: e, mini: t }) => ({
41432
+ }, JY = j(YJ)(({ theme: e, mini: t }) => ({
41346
41433
  margin: 0,
41347
41434
  marginLeft: 0,
41348
41435
  padding: 0,
@@ -41356,7 +41443,7 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41356
41443
  fontSize: e.typography.fontSize - 3
41357
41444
  }
41358
41445
  }
41359
- })), BY = j(PJ)(({ theme: e, mini: t, error: n }) => ({
41446
+ })), YY = j(UJ)(({ theme: e, mini: t, error: n }) => ({
41360
41447
  color: `${M.tertiary()} !important`,
41361
41448
  ...t && {
41362
41449
  margin: 0,
@@ -41365,9 +41452,9 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41365
41452
  height: e.spacing(3)
41366
41453
  },
41367
41454
  ...n && { color: `${e.palette.error.main} !important` }
41368
- })), VY = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(zY, {
41455
+ })), XY = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(JY, {
41369
41456
  mini: e,
41370
- control: /* @__PURE__ */ P(BY, {
41457
+ control: /* @__PURE__ */ P(YY, {
41371
41458
  checked: t,
41372
41459
  onChange: n,
41373
41460
  value: r,
@@ -41376,21 +41463,21 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41376
41463
  }),
41377
41464
  label: i
41378
41465
  });
41379
- VY.propTypes = {
41466
+ XY.propTypes = {
41380
41467
  mini: U.default.bool,
41381
41468
  checked: U.default.bool.isRequired,
41382
41469
  onChange: U.default.func.isRequired,
41383
41470
  value: U.default.string,
41384
41471
  label: U.default.string.isRequired,
41385
41472
  error: U.default.bool
41386
- }, VY.defaultProps = {
41473
+ }, XY.defaultProps = {
41387
41474
  value: "",
41388
41475
  mini: !1,
41389
41476
  error: !1
41390
41477
  };
41391
41478
  //#endregion
41392
41479
  //#region ../../lib-react/config-ui/dist/number-text-field.js
41393
- var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({ theme: e }) => ({
41480
+ var ZY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), QY = j(mN)(({ theme: e }) => ({
41394
41481
  marginRight: e.spacing(1),
41395
41482
  "& .MuiInputLabel-root": {
41396
41483
  width: "auto",
@@ -41412,11 +41499,11 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41412
41499
  minHeight: "auto",
41413
41500
  padding: "6px 0 7px"
41414
41501
  }
41415
- })), WY = (e, t) => {
41502
+ })), $Y = (e, t) => {
41416
41503
  if (!tt(e) && !tt(t)) return 0;
41417
41504
  if (!tt(e) && tt(t)) return t;
41418
41505
  if (tt(e)) return e;
41419
- }, GY = class extends _t.Component {
41506
+ }, eX = class extends _t.Component {
41420
41507
  static propTypes = {
41421
41508
  disabled: U.default.bool,
41422
41509
  className: U.default.string,
@@ -41442,13 +41529,13 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41442
41529
  this.setState({ value: t });
41443
41530
  }
41444
41531
  clamp(e, t = this.props.min, n = this.props.max) {
41445
- return tt(e) ? (tt(n) && (e = Math.min(e, n)), tt(t) && (e = Math.max(e, t)), e) : WY(t, n);
41532
+ return tt(e) ? (tt(n) && (e = Math.min(e, n)), tt(t) && (e = Math.max(e, t)), e) : $Y(t, n);
41446
41533
  }
41447
41534
  onBlur = (e) => {
41448
41535
  let t = e.target.value, n = parseFloat(t);
41449
- HY("rawNumber: ", n);
41536
+ ZY("rawNumber: ", n);
41450
41537
  let r = this.clamp(n);
41451
- HY("number: ", r), r !== this.state.value && (HY("trigger update..."), this.setState({ value: r.toString() }, () => {
41538
+ ZY("number: ", r), r !== this.state.value && (ZY("trigger update..."), this.setState({ value: r.toString() }, () => {
41452
41539
  this.props.onChange(e, r);
41453
41540
  }));
41454
41541
  };
@@ -41468,7 +41555,7 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41468
41555
  };
41469
41556
  render() {
41470
41557
  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();
41471
- return /* @__PURE__ */ P(UY, {
41558
+ return /* @__PURE__ */ P(QY, {
41472
41559
  variant: s ? "filled" : l || "standard",
41473
41560
  inputRef: (e) => {
41474
41561
  this.inputRef = e;
@@ -41487,7 +41574,7 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41487
41574
  type: "number",
41488
41575
  className: e,
41489
41576
  slotProps: { input: {
41490
- endAdornment: r && /* @__PURE__ */ P(qJ, {
41577
+ endAdornment: r && /* @__PURE__ */ P(nY, {
41491
41578
  position: "end",
41492
41579
  children: r
41493
41580
  }),
@@ -41500,22 +41587,22 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41500
41587
  margin: "normal"
41501
41588
  });
41502
41589
  }
41503
- }, KY = x(/*#__PURE__*/ P("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
41590
+ }, tX = x(/*#__PURE__*/ P("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
41504
41591
  //#endregion
41505
41592
  //#region ../../lib-react/config-ui/dist/two-choice.js
41506
- function qY(e) {
41593
+ function nX(e) {
41507
41594
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41508
41595
  }
41509
- function JY(e, t) {
41510
- return !e || qY(e) ? e : qY(e.default) ? e.default : t && qY(e[t]) ? e[t] : t && qY(e[t]?.default) ? e[t].default : e;
41596
+ function rX(e, t) {
41597
+ return !e || nX(e) ? e : nX(e.default) ? e.default : t && nX(e[t]) ? e[t] : t && nX(e[t]?.default) ? e[t].default : e;
41511
41598
  }
41512
- var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY = he, ZY = XY.default, QY = ZY && typeof ZY == "object" ? ZY : XY, $Y = j("div")(({ theme: e, direction: t }) => ({
41599
+ var iX = rX(we, "InputContainer") || rX(sX.InputContainer, "InputContainer"), aX = he, oX = aX.default, sX = oX && typeof oX == "object" ? oX : aX, cX = j("div")(({ theme: e, direction: t }) => ({
41513
41600
  display: "flex",
41514
41601
  flexWrap: "wrap",
41515
41602
  paddingLeft: 0,
41516
41603
  marginTop: e.spacing(1),
41517
41604
  ...t === "vertical" && { flexDirection: "column" }
41518
- })), eX = class extends _t.Component {
41605
+ })), lX = class extends _t.Component {
41519
41606
  static propTypes = {
41520
41607
  header: U.default.string.isRequired,
41521
41608
  className: U.default.string,
@@ -41532,11 +41619,11 @@ var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY
41532
41619
  let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
41533
41620
  label: e,
41534
41621
  value: e
41535
- } : e), s = n || FY;
41536
- return /* @__PURE__ */ P(YY, {
41622
+ } : e), s = n || WY;
41623
+ return /* @__PURE__ */ P(iX, {
41537
41624
  label: e,
41538
41625
  className: t,
41539
- children: /* @__PURE__ */ P($Y, {
41626
+ children: /* @__PURE__ */ P(cX, {
41540
41627
  direction: a,
41541
41628
  children: o.map((e, t) => /* @__PURE__ */ P(s, {
41542
41629
  value: e.value,
@@ -41547,7 +41634,7 @@ var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY
41547
41634
  })
41548
41635
  });
41549
41636
  }
41550
- }, tX = U.default.shape({
41637
+ }, uX = U.default.shape({
41551
41638
  label: U.default.string,
41552
41639
  value: U.default.string
41553
41640
  });
@@ -41556,14 +41643,14 @@ var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY
41556
41643
  header: U.default.string.isRequired,
41557
41644
  value: U.default.string.isRequired,
41558
41645
  onChange: U.default.func.isRequired,
41559
- one: U.default.oneOfType([tX, U.default.string]),
41560
- two: U.default.oneOfType([tX, U.default.string]),
41646
+ one: U.default.oneOfType([uX, U.default.string]),
41647
+ two: U.default.oneOfType([uX, U.default.string]),
41561
41648
  className: U.default.string,
41562
41649
  customLabel: U.default.func
41563
41650
  };
41564
41651
  render() {
41565
41652
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
41566
- return /* @__PURE__ */ P(eX, {
41653
+ return /* @__PURE__ */ P(lX, {
41567
41654
  customLabel: i,
41568
41655
  header: n,
41569
41656
  className: r,
@@ -41575,21 +41662,21 @@ var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY
41575
41662
  });
41576
41663
  //#endregion
41577
41664
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
41578
- var nX = Object.defineProperty, rX = (e, t) => {
41665
+ var dX = Object.defineProperty, fX = (e, t) => {
41579
41666
  let n = {};
41580
- for (var r in e) nX(n, r, {
41667
+ for (var r in e) dX(n, r, {
41581
41668
  get: e[r],
41582
41669
  enumerable: !0
41583
41670
  });
41584
- return t || nX(n, Symbol.toStringTag, { value: "Module" }), n;
41585
- }, iX = j("div")(() => ({
41671
+ return t || dX(n, Symbol.toStringTag, { value: "Module" }), n;
41672
+ }, pX = j("div")(() => ({
41586
41673
  display: "flex",
41587
41674
  flexDirection: "column",
41588
41675
  position: "relative"
41589
- })), aX = j("div")(() => ({
41676
+ })), mX = j("div")(() => ({
41590
41677
  display: "flex",
41591
41678
  justifyContent: "space-between"
41592
- })), oX = j("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), sX = j("div")(() => ({ flex: "1" })), cX = j("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), lX = class extends _t.Component {
41679
+ })), hX = j("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), gX = j("div")(() => ({ flex: "1" })), _X = j("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), vX = class extends _t.Component {
41593
41680
  static propTypes = {
41594
41681
  mode: U.default.oneOf(["tabbed", "inline"]),
41595
41682
  secondary: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]),
@@ -41607,7 +41694,7 @@ var nX = Object.defineProperty, rX = (e, t) => {
41607
41694
  } catch (e) {
41608
41695
  console.log(e.toString());
41609
41696
  }
41610
- return /* @__PURE__ */ F(iX, {
41697
+ return /* @__PURE__ */ F(pX, {
41611
41698
  style: {
41612
41699
  minHeight: i,
41613
41700
  minWidth: a,
@@ -41615,28 +41702,28 @@ var nX = Object.defineProperty, rX = (e, t) => {
41615
41702
  maxWidth: s
41616
41703
  },
41617
41704
  children: [
41618
- e === "inline" && /* @__PURE__ */ F(aX, { children: [/* @__PURE__ */ P(sX, {
41705
+ e === "inline" && /* @__PURE__ */ F(mX, { children: [/* @__PURE__ */ P(gX, {
41619
41706
  className: "design-container",
41620
41707
  children: n
41621
- }), l && /* @__PURE__ */ P(cX, {
41708
+ }), l && /* @__PURE__ */ P(_X, {
41622
41709
  className: "settings-container",
41623
41710
  children: t
41624
41711
  })] }),
41625
- e === "tabbed" && l && /* @__PURE__ */ F(RY, {
41712
+ e === "tabbed" && l && /* @__PURE__ */ F(qY, {
41626
41713
  onChange: this.onTabsChange,
41627
41714
  contentClassName: "content-container",
41628
41715
  indicatorColor: "primary",
41629
- children: [/* @__PURE__ */ P(oX, {
41716
+ children: [/* @__PURE__ */ P(hX, {
41630
41717
  title: "Design",
41631
41718
  className: "design-container",
41632
41719
  children: n
41633
- }), /* @__PURE__ */ P(oX, {
41720
+ }), /* @__PURE__ */ P(hX, {
41634
41721
  title: "Settings",
41635
41722
  className: "settings-container",
41636
41723
  children: t
41637
41724
  })]
41638
41725
  }),
41639
- e === "tabbed" && !l && /* @__PURE__ */ P(oX, {
41726
+ e === "tabbed" && !l && /* @__PURE__ */ P(hX, {
41640
41727
  className: "design-container",
41641
41728
  children: n
41642
41729
  })
@@ -41646,18 +41733,18 @@ var nX = Object.defineProperty, rX = (e, t) => {
41646
41733
  };
41647
41734
  //#endregion
41648
41735
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
41649
- function uX() {
41650
- return uX = Object.assign ? Object.assign.bind() : function(e) {
41736
+ function yX() {
41737
+ return yX = Object.assign ? Object.assign.bind() : function(e) {
41651
41738
  for (var t = 1; t < arguments.length; t++) {
41652
41739
  var n = arguments[t];
41653
41740
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
41654
41741
  }
41655
41742
  return e;
41656
- }, uX.apply(null, arguments);
41743
+ }, yX.apply(null, arguments);
41657
41744
  }
41658
41745
  //#endregion
41659
41746
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
41660
- function dX(e, t) {
41747
+ function bX(e, t) {
41661
41748
  if (e == null) return {};
41662
41749
  var n = {};
41663
41750
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -41668,19 +41755,19 @@ function dX(e, t) {
41668
41755
  }
41669
41756
  //#endregion
41670
41757
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
41671
- function fX(e, t) {
41672
- return fX = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41758
+ function xX(e, t) {
41759
+ return xX = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41673
41760
  return e.__proto__ = t, e;
41674
- }, fX(e, t);
41761
+ }, xX(e, t);
41675
41762
  }
41676
41763
  //#endregion
41677
41764
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
41678
- function pX(e, t) {
41679
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, fX(e, t);
41765
+ function SX(e, t) {
41766
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, xX(e, t);
41680
41767
  }
41681
41768
  //#endregion
41682
41769
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
41683
- var mX = (function() {
41770
+ var CX = (function() {
41684
41771
  if (typeof Map < "u") return Map;
41685
41772
  function e(e, t) {
41686
41773
  var n = -1;
@@ -41719,34 +41806,34 @@ var mX = (function() {
41719
41806
  }
41720
41807
  }, t;
41721
41808
  }();
41722
- })(), hX = typeof window < "u" && typeof document < "u" && window.document === document, gX = (function() {
41809
+ })(), wX = typeof window < "u" && typeof document < "u" && window.document === document, TX = (function() {
41723
41810
  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")();
41724
- })(), _X = (function() {
41725
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(gX) : function(e) {
41811
+ })(), EX = (function() {
41812
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(TX) : function(e) {
41726
41813
  return setTimeout(function() {
41727
41814
  return e(Date.now());
41728
41815
  }, 1e3 / 60);
41729
41816
  };
41730
- })(), vX = 2;
41731
- function yX(e, t) {
41817
+ })(), DX = 2;
41818
+ function OX(e, t) {
41732
41819
  var n = !1, r = !1, i = 0;
41733
41820
  function a() {
41734
41821
  n && (n = !1, e()), r && s();
41735
41822
  }
41736
41823
  function o() {
41737
- _X(a);
41824
+ EX(a);
41738
41825
  }
41739
41826
  function s() {
41740
41827
  var e = Date.now();
41741
41828
  if (n) {
41742
- if (e - i < vX) return;
41829
+ if (e - i < DX) return;
41743
41830
  r = !0;
41744
41831
  } else n = !0, r = !1, setTimeout(o, t);
41745
41832
  i = e;
41746
41833
  }
41747
41834
  return s;
41748
41835
  }
41749
- var bX = 20, xX = [
41836
+ var kX = 20, AX = [
41750
41837
  "top",
41751
41838
  "right",
41752
41839
  "bottom",
@@ -41755,9 +41842,9 @@ var bX = 20, xX = [
41755
41842
  "height",
41756
41843
  "size",
41757
41844
  "weight"
41758
- ], SX = typeof MutationObserver < "u", CX = function() {
41845
+ ], jX = typeof MutationObserver < "u", MX = function() {
41759
41846
  function e() {
41760
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = yX(this.refresh.bind(this), bX);
41847
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = OX(this.refresh.bind(this), kX);
41761
41848
  }
41762
41849
  return e.prototype.addObserver = function(e) {
41763
41850
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -41774,23 +41861,23 @@ var bX = 20, xX = [
41774
41861
  return e.broadcastActive();
41775
41862
  }), e.length > 0;
41776
41863
  }, e.prototype.connect_ = function() {
41777
- !hX || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), SX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41864
+ !wX || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), jX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41778
41865
  attributes: !0,
41779
41866
  childList: !0,
41780
41867
  characterData: !0,
41781
41868
  subtree: !0
41782
41869
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
41783
41870
  }, e.prototype.disconnect_ = function() {
41784
- !hX || !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);
41871
+ !wX || !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);
41785
41872
  }, e.prototype.onTransitionEnd_ = function(e) {
41786
41873
  var t = e.propertyName, n = t === void 0 ? "" : t;
41787
- xX.some(function(e) {
41874
+ AX.some(function(e) {
41788
41875
  return !!~n.indexOf(e);
41789
41876
  }) && this.refresh();
41790
41877
  }, e.getInstance = function() {
41791
41878
  return this.instance_ ||= new e(), this.instance_;
41792
41879
  }, e.instance_ = null, e;
41793
- }(), wX = (function(e, t) {
41880
+ }(), NX = (function(e, t) {
41794
41881
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
41795
41882
  var i = r[n];
41796
41883
  Object.defineProperty(e, i, {
@@ -41801,19 +41888,19 @@ var bX = 20, xX = [
41801
41888
  });
41802
41889
  }
41803
41890
  return e;
41804
- }), TX = (function(e) {
41805
- return e && e.ownerDocument && e.ownerDocument.defaultView || gX;
41806
- }), EX = IX(0, 0, 0, 0);
41807
- function DX(e) {
41891
+ }), PX = (function(e) {
41892
+ return e && e.ownerDocument && e.ownerDocument.defaultView || TX;
41893
+ }), FX = GX(0, 0, 0, 0);
41894
+ function IX(e) {
41808
41895
  return parseFloat(e) || 0;
41809
41896
  }
41810
- function OX(e) {
41897
+ function LX(e) {
41811
41898
  return [...arguments].slice(1).reduce(function(t, n) {
41812
41899
  var r = e["border-" + n + "-width"];
41813
- return t + DX(r);
41900
+ return t + IX(r);
41814
41901
  }, 0);
41815
41902
  }
41816
- function kX(e) {
41903
+ function RX(e) {
41817
41904
  for (var t = [
41818
41905
  "top",
41819
41906
  "right",
@@ -41821,40 +41908,40 @@ function kX(e) {
41821
41908
  "left"
41822
41909
  ], n = {}, r = 0, i = t; r < i.length; r++) {
41823
41910
  var a = i[r], o = e["padding-" + a];
41824
- n[a] = DX(o);
41911
+ n[a] = IX(o);
41825
41912
  }
41826
41913
  return n;
41827
41914
  }
41828
- function AX(e) {
41915
+ function zX(e) {
41829
41916
  var t = e.getBBox();
41830
- return IX(0, 0, t.width, t.height);
41917
+ return GX(0, 0, t.width, t.height);
41831
41918
  }
41832
- function jX(e) {
41919
+ function BX(e) {
41833
41920
  var t = e.clientWidth, n = e.clientHeight;
41834
- if (!t && !n) return EX;
41835
- var r = TX(e).getComputedStyle(e), i = kX(r), a = i.left + i.right, o = i.top + i.bottom, s = DX(r.width), c = DX(r.height);
41836
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= OX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= OX(r, "top", "bottom") + o)), !NX(e)) {
41921
+ if (!t && !n) return FX;
41922
+ var r = PX(e).getComputedStyle(e), i = RX(r), a = i.left + i.right, o = i.top + i.bottom, s = IX(r.width), c = IX(r.height);
41923
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= LX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= LX(r, "top", "bottom") + o)), !HX(e)) {
41837
41924
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
41838
41925
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
41839
41926
  }
41840
- return IX(i.left, i.top, s, c);
41927
+ return GX(i.left, i.top, s, c);
41841
41928
  }
41842
- var MX = (function() {
41929
+ var VX = (function() {
41843
41930
  return typeof SVGGraphicsElement < "u" ? function(e) {
41844
- return e instanceof TX(e).SVGGraphicsElement;
41931
+ return e instanceof PX(e).SVGGraphicsElement;
41845
41932
  } : function(e) {
41846
- return e instanceof TX(e).SVGElement && typeof e.getBBox == "function";
41933
+ return e instanceof PX(e).SVGElement && typeof e.getBBox == "function";
41847
41934
  };
41848
41935
  })();
41849
- function NX(e) {
41850
- return e === TX(e).document.documentElement;
41936
+ function HX(e) {
41937
+ return e === PX(e).document.documentElement;
41851
41938
  }
41852
- function PX(e) {
41853
- return hX ? MX(e) ? AX(e) : jX(e) : EX;
41939
+ function UX(e) {
41940
+ return wX ? VX(e) ? zX(e) : BX(e) : FX;
41854
41941
  }
41855
- function FX(e) {
41942
+ function WX(e) {
41856
41943
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
41857
- return wX(a, {
41944
+ return NX(a, {
41858
41945
  x: t,
41859
41946
  y: n,
41860
41947
  width: r,
@@ -41865,7 +41952,7 @@ function FX(e) {
41865
41952
  left: t
41866
41953
  }), a;
41867
41954
  }
41868
- function IX(e, t, n, r) {
41955
+ function GX(e, t, n, r) {
41869
41956
  return {
41870
41957
  x: e,
41871
41958
  y: t,
@@ -41873,42 +41960,42 @@ function IX(e, t, n, r) {
41873
41960
  height: r
41874
41961
  };
41875
41962
  }
41876
- var LX = function() {
41963
+ var KX = function() {
41877
41964
  function e(e) {
41878
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = IX(0, 0, 0, 0), this.target = e;
41965
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = GX(0, 0, 0, 0), this.target = e;
41879
41966
  }
41880
41967
  return e.prototype.isActive = function() {
41881
- var e = PX(this.target);
41968
+ var e = UX(this.target);
41882
41969
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41883
41970
  }, e.prototype.broadcastRect = function() {
41884
41971
  var e = this.contentRect_;
41885
41972
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41886
41973
  }, e;
41887
- }(), RX = function() {
41974
+ }(), qX = function() {
41888
41975
  function e(e, t) {
41889
- var n = FX(t);
41890
- wX(this, {
41976
+ var n = WX(t);
41977
+ NX(this, {
41891
41978
  target: e,
41892
41979
  contentRect: n
41893
41980
  });
41894
41981
  }
41895
41982
  return e;
41896
- }(), zX = function() {
41983
+ }(), JX = function() {
41897
41984
  function e(e, t, n) {
41898
- if (this.activeObservations_ = [], this.observations_ = new mX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41985
+ if (this.activeObservations_ = [], this.observations_ = new CX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41899
41986
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41900
41987
  }
41901
41988
  return e.prototype.observe = function(e) {
41902
41989
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41903
41990
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41904
- if (!(e instanceof TX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41991
+ if (!(e instanceof PX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41905
41992
  var t = this.observations_;
41906
- t.has(e) || (t.set(e, new LX(e)), this.controller_.addObserver(this), this.controller_.refresh());
41993
+ t.has(e) || (t.set(e, new KX(e)), this.controller_.addObserver(this), this.controller_.refresh());
41907
41994
  }
41908
41995
  }, e.prototype.unobserve = function(e) {
41909
41996
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41910
41997
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41911
- if (!(e instanceof TX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41998
+ if (!(e instanceof PX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41912
41999
  var t = this.observations_;
41913
42000
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41914
42001
  }
@@ -41922,7 +42009,7 @@ var LX = function() {
41922
42009
  }, e.prototype.broadcastActive = function() {
41923
42010
  if (this.hasActive()) {
41924
42011
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41925
- return new RX(e.target, e.broadcastRect());
42012
+ return new qX(e.target, e.broadcastRect());
41926
42013
  });
41927
42014
  this.callback_.call(e, t, e), this.clearActive();
41928
42015
  }
@@ -41931,12 +42018,12 @@ var LX = function() {
41931
42018
  }, e.prototype.hasActive = function() {
41932
42019
  return this.activeObservations_.length > 0;
41933
42020
  }, e;
41934
- }(), BX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new mX(), VX = function() {
42021
+ }(), YX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new CX(), XX = function() {
41935
42022
  function e(t) {
41936
42023
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41937
42024
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41938
- var n = new zX(t, CX.getInstance(), this);
41939
- BX.set(this, n);
42025
+ var n = new JX(t, MX.getInstance(), this);
42026
+ YX.set(this, n);
41940
42027
  }
41941
42028
  return e;
41942
42029
  }();
@@ -41945,27 +42032,27 @@ var LX = function() {
41945
42032
  "unobserve",
41946
42033
  "disconnect"
41947
42034
  ].forEach(function(e) {
41948
- VX.prototype[e] = function() {
42035
+ XX.prototype[e] = function() {
41949
42036
  var t;
41950
- return (t = BX.get(this))[e].apply(t, arguments);
42037
+ return (t = YX.get(this))[e].apply(t, arguments);
41951
42038
  };
41952
42039
  });
41953
- var HX = (function() {
41954
- return gX.ResizeObserver === void 0 ? VX : gX.ResizeObserver;
41955
- })(), UX = [
42040
+ var ZX = (function() {
42041
+ return TX.ResizeObserver === void 0 ? XX : TX.ResizeObserver;
42042
+ })(), QX = [
41956
42043
  "client",
41957
42044
  "offset",
41958
42045
  "scroll",
41959
42046
  "bounds",
41960
42047
  "margin"
41961
42048
  ];
41962
- function WX(e) {
42049
+ function $X(e) {
41963
42050
  var t = [];
41964
- return UX.forEach(function(n) {
42051
+ return QX.forEach(function(n) {
41965
42052
  e[n] && t.push(n);
41966
42053
  }), t;
41967
42054
  }
41968
- function GX(e, t) {
42055
+ function eZ(e, t) {
41969
42056
  var n = {};
41970
42057
  if (t.indexOf("client") > -1 && (n.client = {
41971
42058
  top: e.clientTop,
@@ -42004,14 +42091,14 @@ function GX(e, t) {
42004
42091
  }
42005
42092
  return n;
42006
42093
  }
42007
- function KX(e) {
42094
+ function tZ(e) {
42008
42095
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
42009
42096
  }
42010
- function qX(e) {
42097
+ function nZ(e) {
42011
42098
  return function(t) {
42012
42099
  var n, r;
42013
42100
  return r = n = /*#__PURE__*/ function(n) {
42014
- pX(r, n);
42101
+ SX(r, n);
42015
42102
  function r() {
42016
42103
  var t, r = [...arguments];
42017
42104
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -42022,24 +42109,24 @@ function qX(e) {
42022
42109
  bounds: {},
42023
42110
  margin: {}
42024
42111
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
42025
- var r = GX(t._node, e || WX(t.props));
42112
+ var r = eZ(t._node, e || $X(t.props));
42026
42113
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
42027
42114
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
42028
42115
  });
42029
42116
  }, t._handleRef = function(e) {
42030
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = KX(t._node);
42117
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = tZ(t._node);
42031
42118
  var n = t.props.innerRef;
42032
42119
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
42033
42120
  }, t;
42034
42121
  }
42035
42122
  var i = r.prototype;
42036
42123
  return i.componentDidMount = function() {
42037
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new HX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(GX(this._node, e || WX(this.props))));
42124
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new ZX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(eZ(this._node, e || $X(this.props))));
42038
42125
  }, i.componentWillUnmount = function() {
42039
42126
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
42040
42127
  }, i.render = function() {
42041
42128
  var e = this.props;
42042
- return e.innerRef, e.onResize, bt(t, uX({}, dX(e, ["innerRef", "onResize"]), {
42129
+ return e.innerRef, e.onResize, bt(t, yX({}, bX(e, ["innerRef", "onResize"]), {
42043
42130
  measureRef: this._handleRef,
42044
42131
  measure: this.measure,
42045
42132
  contentRect: this.state.contentRect
@@ -42056,7 +42143,7 @@ function qX(e) {
42056
42143
  }, r;
42057
42144
  };
42058
42145
  }
42059
- var JX = qX()(function(e) {
42146
+ var rZ = nZ()(function(e) {
42060
42147
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
42061
42148
  return i({
42062
42149
  measure: t,
@@ -42064,10 +42151,10 @@ var JX = qX()(function(e) {
42064
42151
  contentRect: r
42065
42152
  });
42066
42153
  });
42067
- JX.displayName = "Measure", JX.propTypes.children = U.default.func;
42154
+ rZ.displayName = "Measure", rZ.propTypes.children = U.default.func;
42068
42155
  //#endregion
42069
42156
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
42070
- var YX = j("div")(() => ({
42157
+ var iZ = j("div")(() => ({
42071
42158
  backgroundColor: M.white(),
42072
42159
  border: `2px solid ${M.border()}`,
42073
42160
  display: "flex",
@@ -42077,7 +42164,7 @@ var YX = j("div")(() => ({
42077
42164
  maxWidth: "300px",
42078
42165
  padding: "20px 4px 4px 20px",
42079
42166
  zIndex: 99
42080
- })), XX = class extends _t.Component {
42167
+ })), aZ = class extends _t.Component {
42081
42168
  static propTypes = {
42082
42169
  className: U.default.string,
42083
42170
  children: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]).isRequired
@@ -42085,19 +42172,19 @@ var YX = j("div")(() => ({
42085
42172
  static defaultProps = {};
42086
42173
  render() {
42087
42174
  let { className: e, children: t } = this.props;
42088
- return /* @__PURE__ */ P(YX, {
42175
+ return /* @__PURE__ */ P(iZ, {
42089
42176
  className: e,
42090
42177
  children: t
42091
42178
  });
42092
42179
  }
42093
- }, ZX = Ke({
42180
+ }, oZ = Ke({
42094
42181
  typography: { fontFamily: "inherit" },
42095
42182
  components: { MuiButton: { styleOverrides: { contained: {
42096
42183
  backgroundColor: "#e0e0e0",
42097
42184
  color: "#000000",
42098
42185
  "&:hover": { backgroundColor: "#bdbdbd" }
42099
42186
  } } } }
42100
- }), QX = class extends _t.Component {
42187
+ }), sZ = class extends _t.Component {
42101
42188
  static propTypes = {
42102
42189
  children: U.default.oneOfType([
42103
42190
  U.default.string,
@@ -42130,19 +42217,19 @@ var YX = j("div")(() => ({
42130
42217
  return /* @__PURE__ */ P(ke, {
42131
42218
  injectFirst: !0,
42132
42219
  children: /* @__PURE__ */ P(xe, {
42133
- theme: ZX,
42134
- children: /* @__PURE__ */ P(JX, {
42220
+ theme: oZ,
42221
+ children: /* @__PURE__ */ P(rZ, {
42135
42222
  bounds: !0,
42136
42223
  onResize: this.onResize,
42137
42224
  children: ({ measureRef: e }) => {
42138
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(XX, {
42225
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(aZ, {
42139
42226
  className: "settings-box",
42140
42227
  children: n
42141
42228
  }) : n;
42142
42229
  return /* @__PURE__ */ F("div", {
42143
42230
  ref: e,
42144
42231
  className: "main-container extraCSSRules",
42145
- children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(lX, {
42232
+ children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(vX, {
42146
42233
  mode: o,
42147
42234
  secondary: s,
42148
42235
  dimensions: i,
@@ -42154,27 +42241,27 @@ var YX = j("div")(() => ({
42154
42241
  })
42155
42242
  });
42156
42243
  }
42157
- }, $X = qX("bounds")(QX), eZ = /* @__PURE__ */ rX({
42158
- ConfigLayout: () => $X,
42159
- LayoutContents: () => lX
42160
- }), tZ = j("div")(() => ({
42244
+ }, cZ = nZ("bounds")(sZ), lZ = /* @__PURE__ */ fX({
42245
+ ConfigLayout: () => cZ,
42246
+ LayoutContents: () => vX
42247
+ }), uZ = j("div")(() => ({
42161
42248
  display: "flex",
42162
42249
  width: "100%",
42163
42250
  justifyContent: "space-between"
42164
- })), nZ = j(Ge)(({ theme: e }) => ({
42251
+ })), dZ = j(Ge)(({ theme: e }) => ({
42165
42252
  color: "rgba(0, 0, 0, 0.89)",
42166
42253
  fontSize: e.typography.fontSize,
42167
42254
  paddingTop: e.spacing(2)
42168
- })), rZ = j(kY)(({ checked: e }) => ({
42255
+ })), fZ = j(RY)(({ checked: e }) => ({
42169
42256
  "&.Mui-checked .MuiSwitch-thumb": { color: `${M.tertiary()} !important` },
42170
42257
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${M.tertiaryLight()} !important` },
42171
42258
  "& .MuiSwitch-track": { backgroundColor: e ? `${M.tertiaryLight()} !important` : void 0 }
42172
- })), iZ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(tZ, { children: [/* @__PURE__ */ P(nZ, { children: n }), /* @__PURE__ */ P(rZ, {
42259
+ })), pZ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(uZ, { children: [/* @__PURE__ */ P(dZ, { children: n }), /* @__PURE__ */ P(fZ, {
42173
42260
  checked: e,
42174
42261
  disabled: t,
42175
42262
  onChange: (e) => r(e.target.checked)
42176
42263
  })] });
42177
- iZ.propTypes = {
42264
+ pZ.propTypes = {
42178
42265
  checked: U.default.bool,
42179
42266
  disabled: U.default.bool,
42180
42267
  label: U.default.string.isRequired,
@@ -42182,20 +42269,20 @@ iZ.propTypes = {
42182
42269
  };
42183
42270
  //#endregion
42184
42271
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
42185
- var aZ = j(BJ)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
42272
+ var mZ = j(YJ)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
42186
42273
  color: "rgba(0, 0, 0, 0.89)",
42187
42274
  fontSize: e.typography.fontSize - 2,
42188
42275
  left: "-5px",
42189
42276
  position: "relative"
42190
- } })), oZ = j(lY)(() => ({ color: `${M.tertiary()} !important` })), sZ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(aZ, {
42277
+ } })), hZ = j(vY)(() => ({ color: `${M.tertiary()} !important` })), gZ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(mZ, {
42191
42278
  value: t,
42192
- control: /* @__PURE__ */ P(oZ, {
42279
+ control: /* @__PURE__ */ P(hZ, {
42193
42280
  checked: n,
42194
42281
  onChange: r
42195
42282
  }),
42196
42283
  label: e
42197
42284
  });
42198
- sZ.propTypes = {
42285
+ gZ.propTypes = {
42199
42286
  label: U.default.string,
42200
42287
  value: U.default.string,
42201
42288
  checked: U.default.bool,
@@ -42203,26 +42290,26 @@ sZ.propTypes = {
42203
42290
  };
42204
42291
  //#endregion
42205
42292
  //#region ../../lib-react/config-ui/dist/settings/panel.js
42206
- var cZ = (0, Gt.default)("pie-lib:config-ui:settings:panel"), lZ = {
42293
+ var _Z = (0, Gt.default)("pie-lib:config-ui:settings:panel"), vZ = {
42207
42294
  label: U.default.string,
42208
42295
  value: U.default.string
42209
- }, uZ = {
42296
+ }, yZ = {
42210
42297
  label: U.default.string,
42211
42298
  value: U.default.string,
42212
42299
  onChange: U.default.func
42213
- }, dZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(VY, {
42300
+ }, bZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(XY, {
42214
42301
  checked: t,
42215
42302
  label: e,
42216
42303
  onChange: (e) => {
42217
42304
  n(e.target.checked);
42218
42305
  }
42219
42306
  });
42220
- dZ.propTypes = {
42307
+ bZ.propTypes = {
42221
42308
  label: U.default.string,
42222
42309
  value: U.default.bool,
42223
42310
  onChange: U.default.func
42224
42311
  };
42225
- var fZ = j(eX)(({ theme: e }) => ({
42312
+ var xZ = j(lX)(({ theme: e }) => ({
42226
42313
  marginTop: e.spacing(.5),
42227
42314
  paddingBottom: e.spacing(.5),
42228
42315
  width: "100%",
@@ -42233,29 +42320,29 @@ var fZ = j(eX)(({ theme: e }) => ({
42233
42320
  marginTop: e.spacing(2.5)
42234
42321
  },
42235
42322
  "& > div": { marginTop: e.spacing(2.5) }
42236
- })), pZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(fZ, {
42323
+ })), SZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(xZ, {
42237
42324
  direction: "horizontal",
42238
- customLabel: sZ,
42325
+ customLabel: gZ,
42239
42326
  value: t,
42240
42327
  header: e,
42241
42328
  opts: r,
42242
42329
  onChange: n
42243
42330
  });
42244
- pZ.propTypes = {
42245
- ...uZ,
42246
- choices: U.default.arrayOf(U.default.shape(lZ))
42331
+ SZ.propTypes = {
42332
+ ...yZ,
42333
+ choices: U.default.arrayOf(U.default.shape(vZ))
42247
42334
  };
42248
- var mZ = pZ, hZ = j("p")(({ theme: e }) => ({
42335
+ var CZ = SZ, wZ = j("p")(({ theme: e }) => ({
42249
42336
  margin: 0,
42250
42337
  fontSize: e.typography.fontSize
42251
- })), gZ = j(dM)(({ theme: e }) => ({
42338
+ })), TZ = j(dM)(({ theme: e }) => ({
42252
42339
  marginTop: e.spacing(.5),
42253
42340
  border: "2px solid lightgrey",
42254
42341
  padding: `0 ${e.spacing(1)}`,
42255
42342
  borderRadius: "4px"
42256
- })), _Z = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
42343
+ })), EZ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
42257
42344
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
42258
- return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(hZ, { children: e }), /* @__PURE__ */ P(gZ, {
42345
+ return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(wZ, { children: e }), /* @__PURE__ */ P(TZ, {
42259
42346
  value: t || r && r[0],
42260
42347
  onChange: ({ target: e }) => n(e.value),
42261
42348
  input: /* @__PURE__ */ P(Hj, { id: `dropdown-${e}` }),
@@ -42270,14 +42357,14 @@ var mZ = pZ, hZ = j("p")(({ theme: e }) => ({
42270
42357
  }, t))
42271
42358
  })] });
42272
42359
  };
42273
- _Z.propTypes = {
42274
- ...uZ,
42360
+ EZ.propTypes = {
42361
+ ...yZ,
42275
42362
  choices: U.default.arrayOf(U.default.string)
42276
42363
  };
42277
- var vZ = j($A)(({ theme: e }) => ({
42364
+ var DZ = j($A)(({ theme: e }) => ({
42278
42365
  marginRight: e.spacing(3),
42279
42366
  marginTop: e.spacing(1)
42280
- })), yZ = ({ label: e }) => /* @__PURE__ */ P(vZ, { children: e }), bZ = j(GY)(({ theme: e }) => ({
42367
+ })), OZ = ({ label: e }) => /* @__PURE__ */ P(DZ, { children: e }), kZ = j(eX)(({ theme: e }) => ({
42281
42368
  width: "35%",
42282
42369
  marginRight: e.spacing(3),
42283
42370
  marginTop: e.spacing(1),
@@ -42288,7 +42375,7 @@ var vZ = j($A)(({ theme: e }) => ({
42288
42375
  padding: `0 ${e.spacing(1)}`,
42289
42376
  backgroundColor: "transparent"
42290
42377
  }
42291
- })), xZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(bZ, {
42378
+ })), AZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(kZ, {
42292
42379
  variant: "standard",
42293
42380
  label: e || "Label",
42294
42381
  value: t,
@@ -42299,45 +42386,45 @@ var vZ = j($A)(({ theme: e }) => ({
42299
42386
  showErrorWhenOutsideRange: !0,
42300
42387
  disableUnderline: !0
42301
42388
  });
42302
- xZ.propTypes = {
42303
- ...uZ,
42389
+ AZ.propTypes = {
42390
+ ...yZ,
42304
42391
  suffix: U.default.string,
42305
42392
  min: U.default.number,
42306
42393
  max: U.default.number,
42307
42394
  value: U.default.number
42308
- }, yZ.propTypes = { ...uZ };
42309
- var SZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(iZ, {
42395
+ }, OZ.propTypes = { ...yZ };
42396
+ var jZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(pZ, {
42310
42397
  label: t,
42311
42398
  checked: !!n,
42312
42399
  disabled: !!e,
42313
42400
  toggle: r
42314
42401
  });
42315
- SZ.propTypes = {
42316
- ...uZ,
42402
+ jZ.propTypes = {
42403
+ ...yZ,
42317
42404
  value: U.default.bool
42318
42405
  };
42319
- var CZ = {
42320
- toggle: SZ,
42321
- radio: mZ,
42322
- dropdown: _Z,
42323
- numberField: xZ,
42324
- checkbox: dZ,
42325
- textField: yZ
42326
- }, wZ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), TZ = j("div")(({ theme: e }) => ({
42406
+ var MZ = {
42407
+ toggle: jZ,
42408
+ radio: CZ,
42409
+ dropdown: EZ,
42410
+ numberField: AZ,
42411
+ checkbox: bZ,
42412
+ textField: OZ
42413
+ }, NZ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), PZ = j("div")(({ theme: e }) => ({
42327
42414
  color: "#495B8F",
42328
42415
  fontSize: e.typography.fontSize + 2,
42329
42416
  fontWeight: 600,
42330
42417
  marginBottom: e.spacing(1)
42331
- })), EZ = j("p")(({ theme: e }) => ({
42418
+ })), FZ = j("p")(({ theme: e }) => ({
42332
42419
  fontSize: e.typography.fontSize,
42333
42420
  marginBottom: 0
42334
- })), DZ = (e) => {
42421
+ })), IZ = (e) => {
42335
42422
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
42336
42423
  let { isConfigProperty: o, ...s } = et(e, r || n), c = et(o ? i : t, n), l = {
42337
42424
  ...s,
42338
42425
  key: n,
42339
42426
  value: c
42340
- }, u = CZ[l.type];
42427
+ }, u = MZ[l.type];
42341
42428
  return /* @__PURE__ */ P(u, {
42342
42429
  ...l,
42343
42430
  onChange: (e) => a(n, e, o)
@@ -42346,18 +42433,18 @@ var CZ = {
42346
42433
  let n = e[t];
42347
42434
  if (!n) return null;
42348
42435
  let { type: r, label: i, fields: a, choices: s } = n;
42349
- return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(EZ, { 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);
42436
+ return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(FZ, { 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);
42350
42437
  };
42351
- return /* @__PURE__ */ F(wZ, { children: [/* @__PURE__ */ P(TZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
42438
+ return /* @__PURE__ */ F(NZ, { children: [/* @__PURE__ */ P(PZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
42352
42439
  };
42353
- DZ.propTypes = {
42440
+ IZ.propTypes = {
42354
42441
  model: U.default.object,
42355
42442
  label: U.default.string,
42356
42443
  group: U.default.object,
42357
42444
  configuration: U.default.object,
42358
42445
  onChange: U.default.func
42359
42446
  };
42360
- var OZ = class extends _t.Component {
42447
+ var LZ = class extends _t.Component {
42361
42448
  static propTypes = {
42362
42449
  model: U.default.object,
42363
42450
  configuration: U.default.object,
@@ -42371,13 +42458,13 @@ var OZ = class extends _t.Component {
42371
42458
  onChangeConfiguration: () => {}
42372
42459
  };
42373
42460
  change = (e, t, n = !1) => {
42374
- cZ("[changeModel]", e, t);
42461
+ _Z("[changeModel]", e, t);
42375
42462
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
42376
42463
  n ? (lt(o, e, t), i(o, e)) : (lt(a, e, t), r(a, e));
42377
42464
  };
42378
42465
  render() {
42379
42466
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
42380
- return cZ("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(DZ, {
42467
+ return _Z("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(IZ, {
42381
42468
  label: r,
42382
42469
  model: t,
42383
42470
  configuration: n,
@@ -42385,59 +42472,59 @@ var OZ = class extends _t.Component {
42385
42472
  onChange: this.change
42386
42473
  }, r) : null), r] });
42387
42474
  }
42388
- }, kZ = /* @__PURE__ */ rX({
42389
- Panel: () => OZ,
42390
- checkbox: () => LZ,
42391
- checkboxes: () => RZ,
42392
- dropdown: () => PZ,
42393
- numberField: () => FZ,
42394
- numberFields: () => IZ,
42395
- radio: () => NZ,
42396
- textField: () => AZ,
42397
- toggle: () => jZ
42398
- }), AZ = (e, t = !0) => ({
42475
+ }, RZ = /* @__PURE__ */ fX({
42476
+ Panel: () => LZ,
42477
+ checkbox: () => KZ,
42478
+ checkboxes: () => qZ,
42479
+ dropdown: () => UZ,
42480
+ numberField: () => WZ,
42481
+ numberFields: () => GZ,
42482
+ radio: () => HZ,
42483
+ textField: () => zZ,
42484
+ toggle: () => BZ
42485
+ }), zZ = (e, t = !0) => ({
42399
42486
  label: e,
42400
42487
  type: "textField",
42401
42488
  isConfigProperty: t
42402
- }), jZ = (e, t = !1, n = !1) => ({
42489
+ }), BZ = (e, t = !1, n = !1) => ({
42403
42490
  type: "toggle",
42404
42491
  label: e,
42405
42492
  isConfigProperty: t,
42406
42493
  disabled: n
42407
- }), MZ = (e) => typeof e == "string" ? {
42494
+ }), VZ = (e) => typeof e == "string" ? {
42408
42495
  label: e,
42409
42496
  value: e
42410
- } : e, NZ = function() {
42497
+ } : e, HZ = function() {
42411
42498
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
42412
42499
  return {
42413
42500
  type: "radio",
42414
42501
  label: e,
42415
- choices: t && t.map((e) => MZ(e)),
42502
+ choices: t && t.map((e) => VZ(e)),
42416
42503
  isConfigProperty: n
42417
42504
  };
42418
- }, PZ = (e, t, n = !1) => ({
42505
+ }, UZ = (e, t, n = !1) => ({
42419
42506
  type: "dropdown",
42420
42507
  label: e,
42421
42508
  choices: t,
42422
42509
  isConfigProperty: n
42423
- }), FZ = (e, t, n = !1) => ({
42510
+ }), WZ = (e, t, n = !1) => ({
42424
42511
  ...t,
42425
42512
  label: e,
42426
42513
  type: "numberField",
42427
42514
  isConfigProperty: n
42428
- }), IZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
42429
- t[e] = FZ(t[e].label, t[e], n);
42515
+ }), GZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
42516
+ t[e] = WZ(t[e].label, t[e], n);
42430
42517
  }), {
42431
42518
  type: "numberFields",
42432
42519
  label: e,
42433
42520
  fields: t
42434
- }), LZ = (e, t, n = !1) => ({
42521
+ }), KZ = (e, t, n = !1) => ({
42435
42522
  ...t,
42436
42523
  label: e,
42437
42524
  type: "checkbox",
42438
42525
  isConfigProperty: n
42439
- }), RZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
42440
- t[e] = LZ(t[e].label, t[e], n);
42526
+ }), qZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
42527
+ t[e] = KZ(t[e].label, t[e], n);
42441
42528
  }), {
42442
42529
  type: "checkboxes",
42443
42530
  label: e,
@@ -42445,26 +42532,26 @@ var OZ = class extends _t.Component {
42445
42532
  });
42446
42533
  //#endregion
42447
42534
  //#region ../../lib-react/config-ui/dist/index.js
42448
- function zZ(e) {
42535
+ function JZ(e) {
42449
42536
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
42450
42537
  }
42451
- function BZ(e, t) {
42452
- return !e || zZ(e) ? e : zZ(e.default) ? e.default : t && zZ(e[t]) ? e[t] : t && zZ(e[t]?.default) ? e[t].default : e;
42538
+ function YZ(e, t) {
42539
+ return !e || JZ(e) ? e : JZ(e.default) ? e.default : t && JZ(e[t]) ? e[t] : t && JZ(e[t]?.default) ? e[t].default : e;
42453
42540
  }
42454
- var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ = he, UZ = HZ.default, WZ = UZ && typeof UZ == "object" ? UZ : HZ, GZ = x(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), KZ = (e) => {
42541
+ var XZ = YZ(we, "InputContainer") || YZ($Z.InputContainer, "InputContainer"), ZZ = he, QZ = ZZ.default, $Z = QZ && typeof QZ == "object" ? QZ : ZZ, eQ = x(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), tQ = (e) => {
42455
42542
  let { maxResponseAreas: t, maxResponseAreaChoices: n } = e;
42456
42543
  return "Validation requirements:" + ("\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + " defined." + (n ? `\nThere should be at most ${n} choices defined per response area.` : ""));
42457
- }, qZ = (e = {}, t = {}) => ({
42544
+ }, nQ = (e = {}, t = {}) => ({
42458
42545
  ...t,
42459
42546
  ...e
42460
- }), JZ = x(/*#__PURE__*/ P("path", { d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z" }), "Edit"), YZ = j("div")(() => ({
42547
+ }), rQ = x(/*#__PURE__*/ P("path", { d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z" }), "Edit"), iQ = j("div")(() => ({
42461
42548
  display: "flex",
42462
42549
  alignItems: "flex-start",
42463
42550
  position: "relative",
42464
42551
  background: M.white(),
42465
42552
  borderBottom: `1px solid ${M.border()}`,
42466
42553
  "&:last-child": { borderRadius: "0 0 4px 4px" }
42467
- })), XZ = j("div")(({ theme: e }) => ({
42554
+ })), aQ = j("div")(({ theme: e }) => ({
42468
42555
  display: "flex",
42469
42556
  justifyContent: "center",
42470
42557
  color: e.palette.common.white,
@@ -42477,20 +42564,20 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42477
42564
  top: e.spacing(2),
42478
42565
  left: e.spacing(1),
42479
42566
  zIndex: 3
42480
- })), ZZ = j("div")(({ theme: e, correct: t }) => ({
42567
+ })), oQ = j("div")(({ theme: e, correct: t }) => ({
42481
42568
  flex: 1,
42482
42569
  padding: e.spacing(.75),
42483
42570
  paddingLeft: e.spacing(3.5),
42484
42571
  ...t && { background: M.correctSecondary() },
42485
42572
  "& p": { margin: 0 }
42486
- })), QZ = j("div")(({ theme: e }) => ({
42573
+ })), sQ = j("div")(({ theme: e }) => ({
42487
42574
  margin: e.spacing(.5),
42488
42575
  display: "flex"
42489
- })), $Z = j(FC)(({ theme: e }) => ({
42576
+ })), cQ = j(FC)(({ theme: e }) => ({
42490
42577
  fontSize: e.typography.fontSize,
42491
42578
  padding: e.spacing(.5),
42492
42579
  color: e.palette.common.black
42493
- })), eQ = class extends _t.Component {
42580
+ })), lQ = class extends _t.Component {
42494
42581
  static propTypes = {
42495
42582
  correct: U.default.bool.isRequired,
42496
42583
  onClick: U.default.func.isRequired,
@@ -42508,22 +42595,22 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42508
42595
  };
42509
42596
  render() {
42510
42597
  let { correct: e, onClick: t, value: n } = this.props;
42511
- return /* @__PURE__ */ F(YZ, { children: [
42512
- e && /* @__PURE__ */ P(XZ, {
42598
+ return /* @__PURE__ */ F(iQ, { children: [
42599
+ e && /* @__PURE__ */ P(aQ, {
42513
42600
  onClick: t,
42514
42601
  children: /* @__PURE__ */ P(Ee, { fontSize: "inherit" })
42515
42602
  }),
42516
- /* @__PURE__ */ P(ZZ, {
42603
+ /* @__PURE__ */ P(oQ, {
42517
42604
  correct: e,
42518
42605
  onClick: t,
42519
42606
  dangerouslySetInnerHTML: { __html: n }
42520
42607
  }),
42521
- /* @__PURE__ */ F(QZ, { children: [/* @__PURE__ */ P($Z, {
42608
+ /* @__PURE__ */ F(sQ, { children: [/* @__PURE__ */ P(cQ, {
42522
42609
  onClick: this.onEditClick,
42523
42610
  size: "small",
42524
42611
  "aria-label": "Edit",
42525
- children: /* @__PURE__ */ P(JZ, { fontSize: "inherit" })
42526
- }), /* @__PURE__ */ P($Z, {
42612
+ children: /* @__PURE__ */ P(rQ, { fontSize: "inherit" })
42613
+ }), /* @__PURE__ */ P(cQ, {
42527
42614
  onClick: this.onRemoveClick,
42528
42615
  size: "small",
42529
42616
  "aria-label": "Remove",
@@ -42531,18 +42618,18 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42531
42618
  })] })
42532
42619
  ] });
42533
42620
  }
42534
- }, tQ = (e) => {
42621
+ }, uQ = (e) => {
42535
42622
  let t = document.createElement("div");
42536
42623
  return t.innerHTML = (e || "").trim(), t;
42537
- }, nQ = j("div")(({ theme: e }) => ({
42624
+ }, dQ = j("div")(({ theme: e }) => ({
42538
42625
  boxShadow: e.shadows[2],
42539
42626
  borderRadius: "4px",
42540
42627
  width: "400px"
42541
- })), rQ = j(Jq)(({ theme: e }) => ({
42628
+ })), fQ = j(rJ)(({ theme: e }) => ({
42542
42629
  borderRadius: "4px",
42543
42630
  backgroundColor: e.palette.common.white,
42544
42631
  "& [data-slate-editor=\"true\"]": { minHeight: "initial !important" }
42545
- })), iQ = j(FC)(({ theme: e }) => ({
42632
+ })), pQ = j(FC)(({ theme: e }) => ({
42546
42633
  fontSize: e.typography.fontSize + 2,
42547
42634
  padding: e.spacing(.5),
42548
42635
  color: e.palette.common.black,
@@ -42550,14 +42637,14 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42550
42637
  top: "50%",
42551
42638
  right: e.spacing(2),
42552
42639
  transform: "translate(0, -50%)"
42553
- })), aQ = j("div")({
42640
+ })), mQ = j("div")({
42554
42641
  display: "flex",
42555
42642
  flexDirection: "column",
42556
42643
  "& > div:last-child": { border: "none" }
42557
- }), oQ = j("div")(({ theme: e }) => ({
42644
+ }), hQ = j("div")(({ theme: e }) => ({
42558
42645
  padding: e.spacing(.5),
42559
42646
  position: "relative"
42560
- })), sQ = class extends _t.Component {
42647
+ })), gQ = class extends _t.Component {
42561
42648
  static propTypes = {
42562
42649
  node: U.default.object,
42563
42650
  pos: U.default.number,
@@ -42607,7 +42694,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42607
42694
  t.isDone = !0, e.view.dispatch(t);
42608
42695
  };
42609
42696
  onDone = (e) => {
42610
- let { choices: t, node: n, editor: r, onAddChoice: i, onToolbarDone: a } = this.props, { editedChoiceIndex: o } = this.state, s = tQ(e).textContent.trim();
42697
+ let { choices: t, node: n, editor: r, onAddChoice: i, onToolbarDone: a } = this.props, { editedChoiceIndex: o } = this.state, s = uQ(e).textContent.trim();
42611
42698
  o >= 0 && t?.[o]?.correct && r.commands.updateAttributes("inline_dropdown", { value: e }), ut(s) || (i(n.attrs.index, e, o), r.commands.refreshResponseArea()), this.setState({ editedChoiceIndex: -1 });
42612
42699
  };
42613
42700
  onSelectChoice = (e, t) => {
@@ -42648,7 +42735,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42648
42735
  };
42649
42736
  render() {
42650
42737
  let { choices: e, spellCheck: t, uploadSoundSupport: n, mathMlOptions: r = {}, baseInputConfiguration: i = {}, responseAreaInputConfiguration: a = {} } = this.props, { respAreaMarkup: o, toolbarStyle: s, editedChoiceIndex: c } = this.state;
42651
- return s ? /* @__PURE__ */ F(nQ, {
42738
+ return s ? /* @__PURE__ */ F(dQ, {
42652
42739
  "data-inline-dropdown-toolbar": "",
42653
42740
  style: {
42654
42741
  ...s,
@@ -42656,7 +42743,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42656
42743
  zIndex: 999
42657
42744
  },
42658
42745
  onMouseDown: this.onClickInside,
42659
- children: [/* @__PURE__ */ F(oQ, { children: [/* @__PURE__ */ P(rQ, {
42746
+ children: [/* @__PURE__ */ F(hQ, { children: [/* @__PURE__ */ P(fQ, {
42660
42747
  editorRef: (e) => {
42661
42748
  e && (this.editorRef = e, this.props.editorCallback?.(e));
42662
42749
  },
@@ -42686,16 +42773,16 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42686
42773
  e.relatedTarget && (this.preventDone = t || n, (t || n) && (this.clickedInside = !0)), this.onBlur();
42687
42774
  },
42688
42775
  placeholder: "Add Choice",
42689
- pluginProps: qZ(a?.inputConfiguration, i),
42776
+ pluginProps: nQ(a?.inputConfiguration, i),
42690
42777
  spellCheck: t,
42691
42778
  uploadSoundSupport: n,
42692
42779
  mathMlOptions: r
42693
- }), /* @__PURE__ */ P(iQ, {
42780
+ }), /* @__PURE__ */ P(pQ, {
42694
42781
  onClick: () => c >= 0 ? this.finishEditing() : this.onAddChoice(),
42695
42782
  size: "small",
42696
42783
  "aria-label": "Add",
42697
- children: P(c >= 0 ? Ee : KY, { fontSize: "inherit" })
42698
- })] }), e && /* @__PURE__ */ P(aQ, { children: e.map(({ label: e, correct: t }, n) => /* @__PURE__ */ P(eQ, {
42784
+ children: P(c >= 0 ? Ee : tX, { fontSize: "inherit" })
42785
+ })] }), e && /* @__PURE__ */ P(mQ, { children: e.map(({ label: e, correct: t }, n) => /* @__PURE__ */ P(lQ, {
42699
42786
  onClick: () => this.onSelectChoice(e, n),
42700
42787
  onRemoveChoice: () => this.onRemoveChoice(e, n),
42701
42788
  onEditChoice: () => this.onEditChoice(e, n),
@@ -42704,11 +42791,11 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42704
42791
  }, n)) })]
42705
42792
  }) : null;
42706
42793
  }
42707
- }, cQ = j("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2.5) })), lQ = j("div")(({ theme: e }) => ({
42794
+ }, _Q = j("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2.5) })), vQ = j("div")(({ theme: e }) => ({
42708
42795
  fontSize: e.typography.fontSize - 2,
42709
42796
  color: e.palette.error.main,
42710
42797
  paddingTop: e.spacing(1)
42711
- })), uQ = class extends _t.Component {
42798
+ })), yQ = class extends _t.Component {
42712
42799
  static propTypes = {
42713
42800
  editableHtmlProps: U.default.object.isRequired,
42714
42801
  responseAreasError: U.default.string,
@@ -42719,24 +42806,24 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42719
42806
  }
42720
42807
  render() {
42721
42808
  let { editableHtmlProps: e, responseAreasError: t, responseAreaChoicesError: n } = this.props;
42722
- return /* @__PURE__ */ F(cQ, { children: [
42723
- /* @__PURE__ */ P(Jq, { ...e }),
42724
- t && /* @__PURE__ */ P(lQ, { children: t }),
42725
- n && /* @__PURE__ */ P(lQ, { children: n })
42809
+ return /* @__PURE__ */ F(_Q, { children: [
42810
+ /* @__PURE__ */ P(rJ, { ...e }),
42811
+ t && /* @__PURE__ */ P(vQ, { children: t }),
42812
+ n && /* @__PURE__ */ P(vQ, { children: n })
42726
42813
  ] });
42727
42814
  }
42728
- }, { toggle: dQ, Panel: fQ, dropdown: pQ } = kZ, mQ = j(VZ)(({ theme: e }) => ({
42815
+ }, { toggle: bQ, Panel: xQ, dropdown: SQ } = RZ, CQ = j(XZ)(({ theme: e }) => ({
42729
42816
  width: "100%",
42730
42817
  paddingTop: e.spacing(2),
42731
42818
  marginBottom: e.spacing(2)
42732
- })), hQ = j(VZ)(({ theme: e }) => ({
42819
+ })), wQ = j(XZ)(({ theme: e }) => ({
42733
42820
  width: "100%",
42734
42821
  paddingTop: e.spacing(.5),
42735
42822
  marginBottom: e.spacing(2)
42736
- })), gQ = j($A)(({ theme: e }) => ({
42823
+ })), TQ = j($A)(({ theme: e }) => ({
42737
42824
  fontSize: e.typography.fontSize + 2,
42738
42825
  marginRight: e.spacing(1)
42739
- })), _Q = j("span")(({ theme: e }) => ({
42826
+ })), EQ = j("span")(({ theme: e }) => ({
42740
42827
  display: "flex",
42741
42828
  alignItems: "center",
42742
42829
  whiteSpace: "break-spaces",
@@ -42744,26 +42831,26 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42744
42831
  padding: 0,
42745
42832
  fontSize: e.typography.fontSize - 2,
42746
42833
  lineHeight: 1
42747
- })), vQ = j("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), yQ = j(dJ)({
42834
+ })), DQ = j("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), OQ = j(bJ)({
42748
42835
  display: "block",
42749
42836
  paddingTop: 0,
42750
42837
  paddingBottom: 0
42751
- }), bQ = j("div")(({ theme: e }) => ({
42838
+ }), kQ = j("div")(({ theme: e }) => ({
42752
42839
  display: "flex",
42753
42840
  alignItems: "center",
42754
42841
  marginBottom: e.spacing(1)
42755
- })), xQ = j(xY)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
42842
+ })), AQ = j(AY)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
42756
42843
  fontSize: e.typography.fontSize - 2,
42757
42844
  whiteSpace: "pre",
42758
42845
  maxWidth: "500px"
42759
- } })), SQ = j("div")(({ theme: e }) => ({
42846
+ } })), jQ = j("div")(({ theme: e }) => ({
42760
42847
  fontSize: e.typography.fontSize - 2,
42761
42848
  color: e.palette.error.main,
42762
42849
  paddingTop: e.spacing(1)
42763
- })), CQ = (e) => {
42850
+ })), MQ = (e) => {
42764
42851
  let t = document.createElement("div");
42765
42852
  return t.innerHTML = (e || "").trim(), t;
42766
- }, wQ = class extends _t.Component {
42853
+ }, NQ = class extends _t.Component {
42767
42854
  static propTypes = {
42768
42855
  configuration: U.default.object.isRequired,
42769
42856
  model: U.default.object.isRequired,
@@ -42832,11 +42919,11 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42832
42919
  return;
42833
42920
  }
42834
42921
  n._holdInlineDropdownToolbarIndex = o, this.onCheck(() => {
42835
- delete n._holdInlineDropdownToolbarIndex, qq(n, o, t), r();
42922
+ delete n._holdInlineDropdownToolbarIndex, nJ(n, o, t), r();
42836
42923
  }, i);
42837
42924
  };
42838
42925
  onChange = (e) => {
42839
- let { respAreaChoices: t } = this.state, n = CQ(e), r = n.querySelectorAll("[data-type=\"inline_dropdown\"]"), i = {};
42926
+ let { respAreaChoices: t } = this.state, n = MQ(e), r = n.querySelectorAll("[data-type=\"inline_dropdown\"]"), i = {};
42840
42927
  r.forEach((e) => {
42841
42928
  i[e.dataset.index] = e.dataset.value || "";
42842
42929
  });
@@ -42889,18 +42976,18 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42889
42976
  })), this.onModelChange({ choices: it(n) });
42890
42977
  };
42891
42978
  render() {
42892
- let { warning: e } = this.state, { model: t, configuration: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: o = {}, choiceRationale: s = {}, contentDimensions: c = {}, lockChoiceOrder: l = {}, maxResponseAreas: u, maxImageWidth: d = {}, maxImageHeight: f = {}, partialScoring: p = {}, prompt: m = {}, rationale: h = {}, settingsPanelDisabled: g, spellCheck: _ = {}, teacherInstructions: v = {}, template: y = {}, withRubric: b = {}, mathMlOptions: x = {}, language: S = {}, languageChoices: C = {}, responseAreaInputConfiguration: w = {} } = n || {}, { choiceRationaleEnabled: ee, choices: T, errors: te, extraCSSRules: E, promptEnabled: ne, rationaleEnabled: re, spellCheckEnabled: D, teacherInstructionsEnabled: O, toolbarEditorPosition: ie } = t || {}, { prompt: ae, rationale: oe, responseAreasError: k, responseAreaChoicesError: se, teacherInstructions: ce } = te || {}, le = d && d.prompt, ue = f && f.prompt, de = () => (Object.keys(T) || []).map((e, t) => /* @__PURE__ */ P(vQ, { children: /* @__PURE__ */ F(sJ, {
42979
+ let { warning: e } = this.state, { model: t, configuration: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: o = {}, choiceRationale: s = {}, contentDimensions: c = {}, lockChoiceOrder: l = {}, maxResponseAreas: u, maxImageWidth: d = {}, maxImageHeight: f = {}, partialScoring: p = {}, prompt: m = {}, rationale: h = {}, settingsPanelDisabled: g, spellCheck: _ = {}, teacherInstructions: v = {}, template: y = {}, withRubric: b = {}, mathMlOptions: x = {}, language: S = {}, languageChoices: C = {}, responseAreaInputConfiguration: w = {} } = n || {}, { choiceRationaleEnabled: ee, choices: T, errors: te, extraCSSRules: E, promptEnabled: ne, rationaleEnabled: re, spellCheckEnabled: D, teacherInstructionsEnabled: O, toolbarEditorPosition: ie } = t || {}, { prompt: ae, rationale: oe, responseAreasError: k, responseAreaChoicesError: se, teacherInstructions: ce } = te || {}, le = d && d.prompt, ue = f && f.prompt, de = () => (Object.keys(T) || []).map((e, t) => /* @__PURE__ */ P(DQ, { children: /* @__PURE__ */ F(gJ, {
42893
42980
  slotProps: { transition: { timeout: {
42894
42981
  enter: 225,
42895
42982
  exit: 195
42896
42983
  } } },
42897
- children: [/* @__PURE__ */ P(vJ, {
42898
- expandIcon: /* @__PURE__ */ P(IY, {}),
42899
- children: /* @__PURE__ */ P(gQ, {
42984
+ children: [/* @__PURE__ */ P(DJ, {
42985
+ expandIcon: /* @__PURE__ */ P(GY, {}),
42986
+ children: /* @__PURE__ */ P(TQ, {
42900
42987
  component: "div",
42901
42988
  children: `Rationale for response area #${t + 1}`
42902
42989
  })
42903
- }), /* @__PURE__ */ P(yQ, { children: (T[e] || []).map((t) => /* @__PURE__ */ F(_t.Fragment, { children: [/* @__PURE__ */ P(_Q, { dangerouslySetInnerHTML: { __html: `${h.label} for ${t.label} (${t.correct ? "correct" : "incorrect"})` } }), /* @__PURE__ */ P(hQ, { children: /* @__PURE__ */ P(Jq, {
42990
+ }), /* @__PURE__ */ P(OQ, { children: (T[e] || []).map((t) => /* @__PURE__ */ F(_t.Fragment, { children: [/* @__PURE__ */ P(EQ, { dangerouslySetInnerHTML: { __html: `${h.label} for ${t.label} (${t.correct ? "correct" : "incorrect"})` } }), /* @__PURE__ */ P(wQ, { children: /* @__PURE__ */ P(rJ, {
42904
42991
  markup: t.rationale || "",
42905
42992
  spellCheck: D,
42906
42993
  pluginProps: ge(h?.inputConfiguration),
@@ -42914,30 +43001,30 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42914
43001
  uploadSoundSupport: a,
42915
43002
  mathMlOptions: x
42916
43003
  }) })] }, t.label)) })]
42917
- }) }, e)), fe = { position: ie === "top" ? "top" : "bottom" }, pe = KZ(n), me = {
42918
- partialScoring: p.settings && dQ(p.label),
42919
- lockChoiceOrder: l.settings && dQ(l.label),
42920
- "language.enabled": S.settings && dQ(S.label, !0),
42921
- language: S.settings && S.enabled && pQ(C.label, C.options)
43004
+ }) }, e)), fe = { position: ie === "top" ? "top" : "bottom" }, pe = tQ(n), me = {
43005
+ partialScoring: p.settings && bQ(p.label),
43006
+ lockChoiceOrder: l.settings && bQ(l.label),
43007
+ "language.enabled": S.settings && bQ(S.label, !0),
43008
+ language: S.settings && S.enabled && SQ(C.label, C.options)
42922
43009
  }, he = {
42923
- teacherInstructionsEnabled: v.settings && dQ(v.label),
42924
- rationaleEnabled: h.settings && dQ(h.label),
42925
- choiceRationaleEnabled: s.settings && dQ(s.label),
42926
- promptEnabled: m.settings && dQ(m.label),
42927
- spellCheckEnabled: _.settings && dQ(_.label),
42928
- rubricEnabled: b?.settings && dQ(b?.label)
43010
+ teacherInstructionsEnabled: v.settings && bQ(v.label),
43011
+ rationaleEnabled: h.settings && bQ(h.label),
43012
+ choiceRationaleEnabled: s.settings && bQ(s.label),
43013
+ promptEnabled: m.settings && bQ(m.label),
43014
+ spellCheckEnabled: _.settings && bQ(_.label),
43015
+ rubricEnabled: b?.settings && bQ(b?.label)
42929
43016
  }, ge = (e = {}) => ({
42930
43017
  ...o,
42931
43018
  ...e
42932
43019
  });
42933
- return /* @__PURE__ */ F(eZ.ConfigLayout, {
43020
+ return /* @__PURE__ */ F(lZ.ConfigLayout, {
42934
43021
  extraCSSRules: {
42935
43022
  names: ["red", "blue"],
42936
43023
  rules: "\n .red {\n color: red !important;\n }\n\n .blue {\n color: blue !important;\n }\n "
42937
43024
  },
42938
43025
  dimensions: c,
42939
43026
  hideSettings: g,
42940
- settings: /* @__PURE__ */ P(fQ, {
43027
+ settings: /* @__PURE__ */ P(xQ, {
42941
43028
  model: t,
42942
43029
  configuration: n,
42943
43030
  onChangeModel: (e) => this.onModelChange(e),
@@ -42948,9 +43035,9 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42948
43035
  }
42949
43036
  }),
42950
43037
  children: [
42951
- O && /* @__PURE__ */ F(mQ, {
43038
+ O && /* @__PURE__ */ F(CQ, {
42952
43039
  label: v.label,
42953
- children: [/* @__PURE__ */ P(Jq, {
43040
+ children: [/* @__PURE__ */ P(rJ, {
42954
43041
  markup: t.teacherInstructions || "",
42955
43042
  onChange: this.onTeacherInstructionsChanged,
42956
43043
  imageSupport: i,
@@ -42964,11 +43051,11 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42964
43051
  uploadSoundSupport: a,
42965
43052
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42966
43053
  mathMlOptions: x
42967
- }), ce && /* @__PURE__ */ P(SQ, { children: ce })]
43054
+ }), ce && /* @__PURE__ */ P(jQ, { children: ce })]
42968
43055
  }),
42969
- ne && /* @__PURE__ */ F(mQ, {
43056
+ ne && /* @__PURE__ */ F(CQ, {
42970
43057
  label: m.label,
42971
- children: [/* @__PURE__ */ P(Jq, {
43058
+ children: [/* @__PURE__ */ P(rJ, {
42972
43059
  markup: t.prompt,
42973
43060
  onChange: this.onPromptChanged,
42974
43061
  imageSupport: i,
@@ -42983,22 +43070,22 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42983
43070
  uploadSoundSupport: a,
42984
43071
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42985
43072
  mathMlOptions: x
42986
- }), ae && /* @__PURE__ */ P(SQ, { children: ae })]
43073
+ }), ae && /* @__PURE__ */ P(jQ, { children: ae })]
42987
43074
  }),
42988
- /* @__PURE__ */ F(bQ, { children: [/* @__PURE__ */ P(gQ, {
43075
+ /* @__PURE__ */ F(kQ, { children: [/* @__PURE__ */ P(TQ, {
42989
43076
  component: "div",
42990
43077
  children: "Define Template, Choices, and Correct Responses"
42991
- }), /* @__PURE__ */ P(xQ, {
43078
+ }), /* @__PURE__ */ P(AQ, {
42992
43079
  disableFocusListener: !0,
42993
43080
  disableTouchListener: !0,
42994
43081
  placement: "right",
42995
43082
  title: pe,
42996
- children: /* @__PURE__ */ P(GZ, {
43083
+ children: /* @__PURE__ */ P(eQ, {
42997
43084
  fontSize: "small",
42998
43085
  color: "primary"
42999
43086
  })
43000
43087
  })] }),
43001
- /* @__PURE__ */ P(uQ, {
43088
+ /* @__PURE__ */ P(yQ, {
43002
43089
  responseAreasError: k,
43003
43090
  responseAreaChoicesError: se,
43004
43091
  editableHtmlProps: {
@@ -43018,7 +43105,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43018
43105
  },
43019
43106
  respAreaToolbar: (e, t, n) => {
43020
43107
  let [r, i] = e, { respAreaChoices: s } = this.state;
43021
- return (e) => /* @__PURE__ */ P(sQ, {
43108
+ return (e) => /* @__PURE__ */ P(gQ, {
43022
43109
  ...e,
43023
43110
  onAddChoice: this.onAddChoice,
43024
43111
  onRemoveChoice: (e) => this.onRemoveChoice(r.attrs.index, e),
@@ -43050,9 +43137,9 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43050
43137
  }
43051
43138
  }),
43052
43139
  ee && de(),
43053
- re && /* @__PURE__ */ F(mQ, {
43140
+ re && /* @__PURE__ */ F(CQ, {
43054
43141
  label: h.label,
43055
- children: [/* @__PURE__ */ P(Jq, {
43142
+ children: [/* @__PURE__ */ P(rJ, {
43056
43143
  markup: t.rationale || "",
43057
43144
  onChange: this.onRationaleChanged,
43058
43145
  imageSupport: i,
@@ -43065,9 +43152,9 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43065
43152
  uploadSoundSupport: a,
43066
43153
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
43067
43154
  mathMlOptions: x
43068
- }), oe && /* @__PURE__ */ P(SQ, { children: oe })]
43155
+ }), oe && /* @__PURE__ */ P(jQ, { children: oe })]
43069
43156
  }),
43070
- /* @__PURE__ */ P(MY, {
43157
+ /* @__PURE__ */ P(VY, {
43071
43158
  open: e.open,
43072
43159
  title: "Warning",
43073
43160
  text: e.text,
@@ -43080,7 +43167,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43080
43167
  ]
43081
43168
  });
43082
43169
  }
43083
- }, TQ = {
43170
+ }, PQ = {
43084
43171
  model: {
43085
43172
  alternateResponse: {},
43086
43173
  choiceRationaleEnabled: !0,
@@ -43206,16 +43293,16 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43206
43293
  options: []
43207
43294
  }
43208
43295
  }
43209
- }, EQ = "imes|riangle|an|heta|herefore", DQ = "throot|parallel|cong|approx|eq|e|sim", OQ = RegExp(`(\\t(?!${EQ}))|(\\n(?!${DQ}))|(\\\\t(?!${EQ}))|(\\\\n(?!${DQ}))`, "g"), kQ = (e) => e.replace(OQ, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), AQ = (e) => {
43296
+ }, FQ = "imes|riangle|an|heta|herefore", IQ = "throot|parallel|cong|approx|eq|e|sim", LQ = RegExp(`(\\t(?!${FQ}))|(\\n(?!${IQ}))|(\\\\t(?!${FQ}))|(\\\\n(?!${IQ}))`, "g"), RQ = (e) => e.replace(LQ, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), zQ = (e) => {
43210
43297
  let t = document.createElement("div");
43211
43298
  return t.innerHTML = e.trim(), t;
43212
- }, jQ = (e) => {
43213
- let t = AQ(kQ(e));
43299
+ }, BQ = (e) => {
43300
+ let t = zQ(RQ(e));
43214
43301
  return t.querySelectorAll("[data-type=\"inline_dropdown\"]").forEach((e) => {
43215
43302
  e.replaceWith(`{{${e.dataset.index}}}`);
43216
43303
  }), t.innerHTML;
43217
- }, MQ = /\{\{(\d+)\}\}/g, NQ = (e, t) => {
43218
- let n = kQ(e), r = (e) => {
43304
+ }, VQ = /\{\{(\d+)\}\}/g, HQ = (e, t) => {
43305
+ let n = RQ(e), r = (e) => {
43219
43306
  let n = t[e] && t[e].find((e) => e.correct);
43220
43307
  return (!n || !n.value) && (n = {
43221
43308
  id: "",
@@ -43223,13 +43310,13 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43223
43310
  label: ""
43224
43311
  }), `<span data-type="inline_dropdown" data-index="${e}" data-value="${mt(n.label)}"></span>`;
43225
43312
  };
43226
- return n.replace(MQ, (e, t) => r(t));
43227
- }, PQ = (0, Gt.default)("multiple-choice:configure"), FQ = class e extends HTMLElement {
43313
+ return n.replace(VQ, (e, t) => r(t));
43314
+ }, UQ = (0, Gt.default)("multiple-choice:configure"), WQ = class e extends HTMLElement {
43228
43315
  static prepareModel = (e = {}) => {
43229
43316
  let t = {
43230
- ...TQ.model,
43317
+ ...PQ.model,
43231
43318
  ...e
43232
- }, n = e.slateMarkup || NQ(t.markup, t.choices), r = jQ(n);
43319
+ }, n = e.slateMarkup || HQ(t.markup, t.choices), r = BQ(n);
43233
43320
  return {
43234
43321
  ...t,
43235
43322
  slateMarkup: n,
@@ -43237,13 +43324,13 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43237
43324
  };
43238
43325
  };
43239
43326
  constructor() {
43240
- super(), this._root = null, this._model = e.prepareModel(), this._configuration = TQ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
43327
+ super(), this._root = null, this._model = e.prepareModel(), this._configuration = PQ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
43241
43328
  }
43242
43329
  set model(t) {
43243
43330
  this._model = e.prepareModel(t), this._render();
43244
43331
  }
43245
43332
  set configuration(e) {
43246
- this._configuration = ot(e, TQ.configuration), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
43333
+ this._configuration = ot(e, PQ.configuration), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
43247
43334
  value: this._model.language,
43248
43335
  label: this._model.language
43249
43336
  })) : delete this._model.language, this._render();
@@ -43253,7 +43340,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43253
43340
  }
43254
43341
  dispatchModelUpdated(e) {
43255
43342
  let t = !!e;
43256
- this.dispatchEvent(new Yq(this._model, t));
43343
+ this.dispatchEvent(new iJ(this._model, t));
43257
43344
  }
43258
43345
  onModelChanged(t, n) {
43259
43346
  this._model = e.prepareModel(t), this._render(), this.dispatchModelUpdated(n);
@@ -43262,20 +43349,20 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43262
43349
  this._configuration = e, this._render();
43263
43350
  }
43264
43351
  insertImage(e) {
43265
- this.dispatchEvent(new Zq(e));
43352
+ this.dispatchEvent(new oJ(e));
43266
43353
  }
43267
43354
  onDeleteImage(e, t) {
43268
- this.dispatchEvent(new Xq(e, t));
43355
+ this.dispatchEvent(new aJ(e, t));
43269
43356
  }
43270
43357
  insertSound(e) {
43271
- this.dispatchEvent(new $q(e));
43358
+ this.dispatchEvent(new cJ(e));
43272
43359
  }
43273
43360
  onDeleteSound(e, t) {
43274
- this.dispatchEvent(new Qq(e, t));
43361
+ this.dispatchEvent(new sJ(e, t));
43275
43362
  }
43276
43363
  _render() {
43277
- PQ("_render");
43278
- let e = _t.createElement(wQ, {
43364
+ UQ("_render");
43365
+ let e = _t.createElement(NQ, {
43279
43366
  model: this._model,
43280
43367
  configuration: this._configuration,
43281
43368
  onModelChanged: this.onModelChanged,
@@ -43300,6 +43387,6 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43300
43387
  }
43301
43388
  };
43302
43389
  //#endregion
43303
- export { FQ as default };
43390
+ export { WQ as default };
43304
43391
 
43305
43392
  //# sourceMappingURL=index.js.map