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