@pie-element/math-inline 12.1.1-next.31 → 12.1.1-next.32
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/browser/author/index.js +85 -85
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{dist-BvAYH2DS.js → dist-C5IQ7n0r.js} +1721 -1688
- package/dist/browser/dist-C5IQ7n0r.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +4 -4
- package/dist/browser/editor-runtime/author/index.js.map +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/{dist-CXnCisyf.js → dist-BOhpVgpX.js} +1721 -1688
- package/dist/browser/editor-runtime/dist-BOhpVgpX.js.map +1 -0
- package/dist/browser/editor-runtime/{main-BvCDVTbt.js → main-vmUPT5b_.js} +110 -110
- package/dist/browser/editor-runtime/{main-BvCDVTbt.js.map → main-vmUPT5b_.js.map} +1 -1
- package/dist/browser/editor-runtime/print/index.js +2 -2
- package/dist/browser/{main-CmzEG2JL.js → main-gtCpy5rF.js} +110 -110
- package/dist/browser/{main-CmzEG2JL.js.map → main-gtCpy5rF.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/index.iife.js +43 -43
- package/module/print.js +2050 -2017
- package/module/print.js.map +1 -1
- package/package.json +13 -9
- package/dist/browser/dist-BvAYH2DS.js.map +0 -1
- package/dist/browser/editor-runtime/dist-CXnCisyf.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as e, a as t, d as n, i as r, m as i, n as a, o, p as s, r as c, s as l, t as u, u as d, y as f } from "../dist--pvq7WNe.js";
|
|
2
|
-
import { $ as p, A as m, B as h, Ct as g, D as _, Dt as v, E as y, Et as b, F as x, G as S, H as C, I as w, J as T, K as E, N as ee, O as D, Ot as te, P as
|
|
2
|
+
import { $ as p, A as m, B as h, Ct as g, D as _, Dt as v, E as y, Et as b, F as x, G as S, H as C, I as w, J as T, K as E, N as ee, O as D, Ot as te, P as O, Q as ne, R as re, St as k, Tt as ie, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _t as de, a as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as A, et as j, g as ye, gt as be, h as xe, ht as Se, i as M, it as Ce, j as we, k as Te, l as Ee, lt as De, m as Oe, mt as N, n as ke, nt as Ae, o as je, ot as Me, p as Ne, pt as Pe, q as P, r as Fe, rt as Ie, s as Le, st as Re, t as ze, tt as Be, u as Ve, v as He, vt as Ue, wt as F, x as We, xt as Ge, y as Ke, yt as qe, z as Je } from "../dist-C5IQ7n0r.js";
|
|
3
3
|
import * as I from "react";
|
|
4
4
|
import L, { Component as Ye, createContext as Xe, createElement as Ze, createRef as Qe, forwardRef as $e, memo as et, useCallback as tt, useContext as nt, useDebugValue as rt, useEffect as R, useLayoutEffect as it, useMemo as at, useRef as ot, useState as st, version as ct } from "react";
|
|
5
5
|
import { createRoot as lt } from "react-dom/client";
|
|
@@ -417,11 +417,11 @@ var jt = k("MuiAccordion", [
|
|
|
417
417
|
externalForwardedProps: T,
|
|
418
418
|
className: w.heading,
|
|
419
419
|
ownerState: C
|
|
420
|
-
}), [
|
|
420
|
+
}), [O, ne] = p("transition", {
|
|
421
421
|
elementType: h,
|
|
422
422
|
externalForwardedProps: T,
|
|
423
423
|
ownerState: C
|
|
424
|
-
}), [
|
|
424
|
+
}), [re, k] = p("region", {
|
|
425
425
|
elementType: Ft,
|
|
426
426
|
externalForwardedProps: T,
|
|
427
427
|
ownerState: C,
|
|
@@ -440,11 +440,11 @@ var jt = k("MuiAccordion", [
|
|
|
440
440
|
value: S,
|
|
441
441
|
children: b
|
|
442
442
|
})
|
|
443
|
-
}), /*#__PURE__*/ z(
|
|
443
|
+
}), /*#__PURE__*/ z(O, {
|
|
444
444
|
in: _,
|
|
445
445
|
timeout: "auto",
|
|
446
|
-
...
|
|
447
|
-
children: /*#__PURE__*/ z(
|
|
446
|
+
...ne,
|
|
447
|
+
children: /*#__PURE__*/ z(re, {
|
|
448
448
|
...k,
|
|
449
449
|
children: x
|
|
450
450
|
})
|
|
@@ -748,18 +748,18 @@ var rn = (e) => {
|
|
|
748
748
|
state: "checked"
|
|
749
749
|
}), D = Te(), te = (e) => {
|
|
750
750
|
_ && _(e), D && D.onFocus && D.onFocus(e);
|
|
751
|
-
},
|
|
751
|
+
}, O = (e) => {
|
|
752
752
|
h && h(e), D && D.onBlur && D.onBlur(e);
|
|
753
|
-
},
|
|
753
|
+
}, ne = (e) => {
|
|
754
754
|
if (e.nativeEvent.defaultPrevented || v) return;
|
|
755
755
|
let t = e.target.checked;
|
|
756
756
|
ee(t), g && g(e, t);
|
|
757
|
-
},
|
|
758
|
-
D &&
|
|
757
|
+
}, re = o;
|
|
758
|
+
D && re === void 0 && (re = D.disabled);
|
|
759
759
|
let k = x === "checkbox" || x === "radio", ie = {
|
|
760
760
|
...e,
|
|
761
761
|
checked: E,
|
|
762
|
-
disabled:
|
|
762
|
+
disabled: re,
|
|
763
763
|
disableFocusRipple: s,
|
|
764
764
|
edge: c
|
|
765
765
|
}, oe = rn(ie), se = {
|
|
@@ -784,7 +784,7 @@ var rn = (e) => {
|
|
|
784
784
|
e.onFocus?.(t), te(t);
|
|
785
785
|
},
|
|
786
786
|
onBlur: (t) => {
|
|
787
|
-
e.onBlur?.(t),
|
|
787
|
+
e.onBlur?.(t), O(t);
|
|
788
788
|
}
|
|
789
789
|
}),
|
|
790
790
|
ownerState: ie,
|
|
@@ -802,7 +802,7 @@ var rn = (e) => {
|
|
|
802
802
|
getSlotProps: (e) => ({
|
|
803
803
|
...e,
|
|
804
804
|
onChange: (t) => {
|
|
805
|
-
e.onChange?.(t),
|
|
805
|
+
e.onChange?.(t), ne(t);
|
|
806
806
|
}
|
|
807
807
|
}),
|
|
808
808
|
ownerState: ie,
|
|
@@ -810,7 +810,7 @@ var rn = (e) => {
|
|
|
810
810
|
autoFocus: n,
|
|
811
811
|
checked: r,
|
|
812
812
|
defaultChecked: a,
|
|
813
|
-
disabled:
|
|
813
|
+
disabled: re,
|
|
814
814
|
id: k ? u : void 0,
|
|
815
815
|
name: m,
|
|
816
816
|
readOnly: v,
|
|
@@ -1088,14 +1088,14 @@ var bn = k("MuiDialog", [
|
|
|
1088
1088
|
}), r = be(), i = {
|
|
1089
1089
|
enter: r.transitions.duration.enteringScreen,
|
|
1090
1090
|
exit: r.transitions.duration.leavingScreen
|
|
1091
|
-
}, { "aria-describedby": a, "aria-labelledby": o, "aria-modal": s = !0, BackdropComponent: c, BackdropProps: l, children: u, className: d, disableEscapeKeyDown: f = !1, fullScreen: m = !1, fullWidth: h = !1, maxWidth: g = "sm", onClick: _, onClose: v, open: y, PaperComponent: b = T, PaperProps: x = {}, role: S = "dialog", scroll: C = "paper", slots: w = {}, slotProps: E = {}, TransitionComponent: ee =
|
|
1091
|
+
}, { "aria-describedby": a, "aria-labelledby": o, "aria-modal": s = !0, BackdropComponent: c, BackdropProps: l, children: u, className: d, disableEscapeKeyDown: f = !1, fullScreen: m = !1, fullWidth: h = !1, maxWidth: g = "sm", onClick: _, onClose: v, open: y, PaperComponent: b = T, PaperProps: x = {}, role: S = "dialog", scroll: C = "paper", slots: w = {}, slotProps: E = {}, TransitionComponent: ee = ne, transitionDuration: D = i, TransitionProps: te, ...O } = n, re = {
|
|
1092
1092
|
...n,
|
|
1093
1093
|
disableEscapeKeyDown: f,
|
|
1094
1094
|
fullScreen: m,
|
|
1095
1095
|
fullWidth: h,
|
|
1096
1096
|
maxWidth: g,
|
|
1097
1097
|
scroll: C
|
|
1098
|
-
}, k = Cn(
|
|
1098
|
+
}, k = Cn(re), ie = I.useRef(), ae = (e) => {
|
|
1099
1099
|
ie.current = e.target === e.currentTarget;
|
|
1100
1100
|
}, oe = (e) => {
|
|
1101
1101
|
_ && _(e), ie.current && (ie.current = null, v && v(e, "backdropClick"));
|
|
@@ -1114,20 +1114,20 @@ var bn = k("MuiDialog", [
|
|
|
1114
1114
|
elementType: wn,
|
|
1115
1115
|
shouldForwardComponentProp: !0,
|
|
1116
1116
|
externalForwardedProps: le,
|
|
1117
|
-
ownerState:
|
|
1117
|
+
ownerState: re,
|
|
1118
1118
|
className: F(k.root, d),
|
|
1119
1119
|
ref: t
|
|
1120
1120
|
}), [fe, pe] = p("backdrop", {
|
|
1121
1121
|
elementType: Sn,
|
|
1122
1122
|
shouldForwardComponentProp: !0,
|
|
1123
1123
|
externalForwardedProps: le,
|
|
1124
|
-
ownerState:
|
|
1124
|
+
ownerState: re,
|
|
1125
1125
|
className: k.backdrop
|
|
1126
1126
|
}), [me, ge] = p("paper", {
|
|
1127
1127
|
elementType: En,
|
|
1128
1128
|
shouldForwardComponentProp: !0,
|
|
1129
1129
|
externalForwardedProps: le,
|
|
1130
|
-
ownerState:
|
|
1130
|
+
ownerState: re,
|
|
1131
1131
|
className: k.paper,
|
|
1132
1132
|
additionalProps: {
|
|
1133
1133
|
elevation: 24,
|
|
@@ -1141,12 +1141,12 @@ var bn = k("MuiDialog", [
|
|
|
1141
1141
|
}), [_e, ve] = p("container", {
|
|
1142
1142
|
elementType: Tn,
|
|
1143
1143
|
externalForwardedProps: le,
|
|
1144
|
-
ownerState:
|
|
1144
|
+
ownerState: re,
|
|
1145
1145
|
className: k.container
|
|
1146
1146
|
}), [A, j] = p("transition", {
|
|
1147
|
-
elementType:
|
|
1147
|
+
elementType: ne,
|
|
1148
1148
|
externalForwardedProps: le,
|
|
1149
|
-
ownerState:
|
|
1149
|
+
ownerState: re,
|
|
1150
1150
|
additionalProps: {
|
|
1151
1151
|
appear: !0,
|
|
1152
1152
|
in: y,
|
|
@@ -1167,7 +1167,7 @@ var bn = k("MuiDialog", [
|
|
|
1167
1167
|
open: y,
|
|
1168
1168
|
onClick: oe,
|
|
1169
1169
|
...de,
|
|
1170
|
-
...
|
|
1170
|
+
...O,
|
|
1171
1171
|
children: /*#__PURE__*/ z(A, {
|
|
1172
1172
|
...j,
|
|
1173
1173
|
children: /*#__PURE__*/ z(_e, {
|
|
@@ -2184,7 +2184,7 @@ var jr = (e, t) => {
|
|
|
2184
2184
|
disablePadding: h,
|
|
2185
2185
|
divider: g,
|
|
2186
2186
|
hasSecondaryAction: E
|
|
2187
|
-
}, D = Mr(ee), te = Ie(w, t), [
|
|
2187
|
+
}, D = Mr(ee), te = Ie(w, t), [O, ne] = p("secondaryAction", {
|
|
2188
2188
|
elementType: Ar,
|
|
2189
2189
|
externalForwardedProps: {
|
|
2190
2190
|
slots: y,
|
|
@@ -2192,7 +2192,7 @@ var jr = (e, t) => {
|
|
|
2192
2192
|
},
|
|
2193
2193
|
ownerState: ee,
|
|
2194
2194
|
className: D.secondaryAction
|
|
2195
|
-
}),
|
|
2195
|
+
}), re = y.root || s.Root || Nr, k = v.root || c.root || {}, ie = {
|
|
2196
2196
|
className: F(D.root, k.className, a),
|
|
2197
2197
|
...b
|
|
2198
2198
|
}, ae = o || "li";
|
|
@@ -2204,9 +2204,9 @@ var jr = (e, t) => {
|
|
|
2204
2204
|
ref: te,
|
|
2205
2205
|
ownerState: ee,
|
|
2206
2206
|
...d,
|
|
2207
|
-
children: [/*#__PURE__*/ z(
|
|
2207
|
+
children: [/*#__PURE__*/ z(re, {
|
|
2208
2208
|
...k,
|
|
2209
|
-
...!De(
|
|
2209
|
+
...!De(re) && {
|
|
2210
2210
|
as: ae,
|
|
2211
2211
|
ownerState: {
|
|
2212
2212
|
...ee,
|
|
@@ -2219,17 +2219,17 @@ var jr = (e, t) => {
|
|
|
2219
2219
|
})
|
|
2220
2220
|
})) : /*#__PURE__*/ z(me.Provider, {
|
|
2221
2221
|
value: C,
|
|
2222
|
-
children: /*#__PURE__*/ B(
|
|
2222
|
+
children: /*#__PURE__*/ B(re, {
|
|
2223
2223
|
...k,
|
|
2224
2224
|
as: ae,
|
|
2225
2225
|
ref: te,
|
|
2226
|
-
...!De(
|
|
2226
|
+
...!De(re) && { ownerState: {
|
|
2227
2227
|
...ee,
|
|
2228
2228
|
...k.ownerState
|
|
2229
2229
|
} },
|
|
2230
2230
|
...ie,
|
|
2231
|
-
children: [T, _ && /*#__PURE__*/ z(
|
|
2232
|
-
...
|
|
2231
|
+
children: [T, _ && /*#__PURE__*/ z(O, {
|
|
2232
|
+
...ne,
|
|
2233
2233
|
children: _
|
|
2234
2234
|
})]
|
|
2235
2235
|
})
|
|
@@ -3089,22 +3089,22 @@ var Ci = k("MuiTabs", [
|
|
|
3089
3089
|
let n = Re({
|
|
3090
3090
|
props: e,
|
|
3091
3091
|
name: "MuiTabs"
|
|
3092
|
-
}), r = be(), i = Ge(), { "aria-label": a, "aria-labelledby": o, action: s, centered: c = !1, children: l, className: u, component: d = "div", allowScrollButtonsMobile: f = !1, indicatorColor: m = "primary", onChange: h, orientation: g = "horizontal", ScrollButtonComponent: _, scrollButtons: v = "auto", selectionFollowsFocus: y, slots: b = {}, slotProps: x = {}, TabIndicatorProps: S = {}, TabScrollButtonProps: w = {}, textColor: T = "primary", value: E, variant: ee = "standard", visibleScrollbar: D = !1, ...te } = n,
|
|
3092
|
+
}), r = be(), i = Ge(), { "aria-label": a, "aria-labelledby": o, action: s, centered: c = !1, children: l, className: u, component: d = "div", allowScrollButtonsMobile: f = !1, indicatorColor: m = "primary", onChange: h, orientation: g = "horizontal", ScrollButtonComponent: _, scrollButtons: v = "auto", selectionFollowsFocus: y, slots: b = {}, slotProps: x = {}, TabIndicatorProps: S = {}, TabScrollButtonProps: w = {}, textColor: T = "primary", value: E, variant: ee = "standard", visibleScrollbar: D = !1, ...te } = n, O = ee === "scrollable", ne = g === "vertical", re = ne ? "scrollTop" : "scrollLeft", k = ne ? "top" : "left", ie = ne ? "bottom" : "right", ae = ne ? "clientHeight" : "clientWidth", oe = ne ? "height" : "width", se = {
|
|
3093
3093
|
...n,
|
|
3094
3094
|
component: d,
|
|
3095
3095
|
allowScrollButtonsMobile: f,
|
|
3096
3096
|
indicatorColor: m,
|
|
3097
3097
|
orientation: g,
|
|
3098
|
-
vertical:
|
|
3098
|
+
vertical: ne,
|
|
3099
3099
|
scrollButtons: v,
|
|
3100
3100
|
textColor: T,
|
|
3101
3101
|
variant: ee,
|
|
3102
3102
|
visibleScrollbar: D,
|
|
3103
|
-
fixed: !
|
|
3104
|
-
hideScrollbar:
|
|
3105
|
-
scrollableX:
|
|
3106
|
-
scrollableY:
|
|
3107
|
-
centered: c && !
|
|
3103
|
+
fixed: !O,
|
|
3104
|
+
hideScrollbar: O && !D,
|
|
3105
|
+
scrollableX: O && !ne,
|
|
3106
|
+
scrollableY: O && ne,
|
|
3107
|
+
centered: c && !O,
|
|
3108
3108
|
scrollButtonsHideMobile: !f
|
|
3109
3109
|
}, ce = Di(se), le = We({
|
|
3110
3110
|
elementType: b.StartScrollButtonIcon,
|
|
@@ -3153,7 +3153,7 @@ var Ci = k("MuiTabs", [
|
|
|
3153
3153
|
};
|
|
3154
3154
|
}, Oe = C(() => {
|
|
3155
3155
|
let { tabsMeta: e, tabMeta: t } = De(), n = 0, r;
|
|
3156
|
-
|
|
3156
|
+
ne ? (r = "top", t && e && (n = t.top - e.top + e.scrollTop)) : (r = i ? "right" : "left", t && e && (n = (i ? -1 : 1) * (t[r] - e[r] + e.scrollLeft)));
|
|
3157
3157
|
let a = {
|
|
3158
3158
|
[r]: n,
|
|
3159
3159
|
[oe]: t ? t[oe] : 0
|
|
@@ -3164,10 +3164,10 @@ var Ci = k("MuiTabs", [
|
|
|
3164
3164
|
(e >= 1 || t >= 1) && he(a);
|
|
3165
3165
|
}
|
|
3166
3166
|
}), N = (e, { animation: t = !0 } = {}) => {
|
|
3167
|
-
t ? mi(
|
|
3167
|
+
t ? mi(re, we.current, e, { duration: r.transitions.duration.standard }) : we.current[re] = e;
|
|
3168
3168
|
}, ke = (e) => {
|
|
3169
|
-
let t = we.current[
|
|
3170
|
-
|
|
3169
|
+
let t = we.current[re];
|
|
3170
|
+
ne ? t += e : t += e * (i ? -1 : 1), N(t);
|
|
3171
3171
|
}, je = () => {
|
|
3172
3172
|
let e = we.current[ae], t = 0, n = Array.from(Te.current.children);
|
|
3173
3173
|
for (let r = 0; r < n.length; r += 1) {
|
|
@@ -3212,11 +3212,11 @@ var Ci = k("MuiTabs", [
|
|
|
3212
3212
|
}
|
|
3213
3213
|
}), Ve = () => {
|
|
3214
3214
|
let e = {};
|
|
3215
|
-
e.scrollbarSizeListener =
|
|
3215
|
+
e.scrollbarSizeListener = O ? /*#__PURE__*/ z(P, {
|
|
3216
3216
|
...Ie,
|
|
3217
3217
|
onChange: Le
|
|
3218
3218
|
}) : null;
|
|
3219
|
-
let t =
|
|
3219
|
+
let t = O && (v === "auto" && (ge || ve) || v === !0);
|
|
3220
3220
|
return e.scrollButtonStart = t ? /*#__PURE__*/ z(ze, {
|
|
3221
3221
|
direction: i ? "right" : "left",
|
|
3222
3222
|
onClick: Ne,
|
|
@@ -3232,15 +3232,15 @@ var Ci = k("MuiTabs", [
|
|
|
3232
3232
|
let { tabsMeta: t, tabMeta: n } = De();
|
|
3233
3233
|
if (!(!n || !t)) {
|
|
3234
3234
|
if (n[k] < t[k]) {
|
|
3235
|
-
let r = t[
|
|
3235
|
+
let r = t[re] + (n[k] - t[k]);
|
|
3236
3236
|
N(r, { animation: e });
|
|
3237
3237
|
} else if (n[ie] > t[ie]) {
|
|
3238
|
-
let r = t[
|
|
3238
|
+
let r = t[re] + (n[ie] - t[ie]);
|
|
3239
3239
|
N(r, { animation: e });
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
3242
|
}), Ue = C(() => {
|
|
3243
|
-
|
|
3243
|
+
O && v !== !1 && ye(!j);
|
|
3244
3244
|
});
|
|
3245
3245
|
I.useEffect(() => {
|
|
3246
3246
|
let e = Me(() => {
|
|
@@ -3263,7 +3263,7 @@ var Ci = k("MuiTabs", [
|
|
|
3263
3263
|
};
|
|
3264
3264
|
}, [Oe, Ue]), I.useEffect(() => {
|
|
3265
3265
|
let e = Array.from(Te.current.children), t = e.length;
|
|
3266
|
-
if (typeof IntersectionObserver < "u" && t > 0 &&
|
|
3266
|
+
if (typeof IntersectionObserver < "u" && t > 0 && O && v !== !1) {
|
|
3267
3267
|
let n = e[0], r = e[t - 1], i = {
|
|
3268
3268
|
root: we.current,
|
|
3269
3269
|
threshold: .99
|
|
@@ -3279,7 +3279,7 @@ var Ci = k("MuiTabs", [
|
|
|
3279
3279
|
};
|
|
3280
3280
|
}
|
|
3281
3281
|
}, [
|
|
3282
|
-
|
|
3282
|
+
O,
|
|
3283
3283
|
v,
|
|
3284
3284
|
j,
|
|
3285
3285
|
l?.length
|
|
@@ -3352,7 +3352,7 @@ var Ci = k("MuiTabs", [
|
|
|
3352
3352
|
ownerState: se,
|
|
3353
3353
|
additionalProps: { style: {
|
|
3354
3354
|
overflow: xe.overflow,
|
|
3355
|
-
[
|
|
3355
|
+
[ne ? `margin${i ? "Left" : "Right"}` : "marginBottom"]: D ? void 0 : -xe.scrollbarWidth
|
|
3356
3356
|
} }
|
|
3357
3357
|
}), [nt, rt] = p("list", {
|
|
3358
3358
|
ref: Te,
|
|
@@ -3409,7 +3409,7 @@ var Ii = {
|
|
|
3409
3409
|
let n = Re({
|
|
3410
3410
|
props: e,
|
|
3411
3411
|
name: "MuiTextField"
|
|
3412
|
-
}), { autoComplete: r, autoFocus: i = !1, children: a, className: o, color: s = "primary", defaultValue: c, disabled: l = !1, error: u = !1, FormHelperTextProps: d, fullWidth: f = !1, helperText: m, id: h, InputLabelProps: g, inputProps: _, InputProps: v, inputRef: y, label: b, maxRows: x, minRows: S, multiline: C = !1, name: w, onBlur: T, onChange: E, onFocus: ee, placeholder: te, required:
|
|
3412
|
+
}), { autoComplete: r, autoFocus: i = !1, children: a, className: o, color: s = "primary", defaultValue: c, disabled: l = !1, error: u = !1, FormHelperTextProps: d, fullWidth: f = !1, helperText: m, id: h, InputLabelProps: g, inputProps: _, InputProps: v, inputRef: y, label: b, maxRows: x, minRows: S, multiline: C = !1, name: w, onBlur: T, onChange: E, onFocus: ee, placeholder: te, required: O = !1, rows: ne, select: re = !1, SelectProps: k, slots: ie = {}, slotProps: ae = {}, type: oe, value: se, variant: ce = "outlined", ...le } = n, ue = {
|
|
3413
3413
|
...n,
|
|
3414
3414
|
autoFocus: i,
|
|
3415
3415
|
color: s,
|
|
@@ -3417,8 +3417,8 @@ var Ii = {
|
|
|
3417
3417
|
error: u,
|
|
3418
3418
|
fullWidth: f,
|
|
3419
3419
|
multiline: C,
|
|
3420
|
-
required:
|
|
3421
|
-
select:
|
|
3420
|
+
required: O,
|
|
3421
|
+
select: re,
|
|
3422
3422
|
variant: ce
|
|
3423
3423
|
}, de = Li(ue), pe = he(h), me = m && pe ? `${pe}-helper-text` : void 0, ge = b && pe ? `${pe}-label` : void 0, _e = Ii[ce], ve = {
|
|
3424
3424
|
slots: ie,
|
|
@@ -3431,7 +3431,7 @@ var Ii = {
|
|
|
3431
3431
|
...ae
|
|
3432
3432
|
}
|
|
3433
3433
|
}, A = {}, j = ve.slotProps.inputLabel;
|
|
3434
|
-
ce === "outlined" && (j && j.shrink !== void 0 && (A.notched = j.shrink), A.label = b),
|
|
3434
|
+
ce === "outlined" && (j && j.shrink !== void 0 && (A.notched = j.shrink), A.label = b), re && ((!k || !k.native) && (A.id = void 0), A["aria-describedby"] = void 0);
|
|
3435
3435
|
let [ye, be] = p("root", {
|
|
3436
3436
|
elementType: Ri,
|
|
3437
3437
|
shouldForwardComponentProp: !0,
|
|
@@ -3446,7 +3446,7 @@ var Ii = {
|
|
|
3446
3446
|
disabled: l,
|
|
3447
3447
|
error: u,
|
|
3448
3448
|
fullWidth: f,
|
|
3449
|
-
required:
|
|
3449
|
+
required: O,
|
|
3450
3450
|
color: s,
|
|
3451
3451
|
variant: ce
|
|
3452
3452
|
}
|
|
@@ -3479,7 +3479,7 @@ var Ii = {
|
|
|
3479
3479
|
fullWidth: f,
|
|
3480
3480
|
multiline: C,
|
|
3481
3481
|
name: w,
|
|
3482
|
-
rows:
|
|
3482
|
+
rows: ne,
|
|
3483
3483
|
maxRows: x,
|
|
3484
3484
|
minRows: S,
|
|
3485
3485
|
type: oe,
|
|
@@ -3503,7 +3503,7 @@ var Ii = {
|
|
|
3503
3503
|
...Ce,
|
|
3504
3504
|
children: b
|
|
3505
3505
|
}),
|
|
3506
|
-
|
|
3506
|
+
re ? /*#__PURE__*/ z(Oe, {
|
|
3507
3507
|
"aria-describedby": me,
|
|
3508
3508
|
id: pe,
|
|
3509
3509
|
labelId: ge,
|
|
@@ -18186,7 +18186,7 @@ function PC({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
|
|
|
18186
18186
|
R(() => (document.addEventListener("click", u), () => {
|
|
18187
18187
|
document.removeEventListener("click", u);
|
|
18188
18188
|
}), []), R(() => {
|
|
18189
|
-
l.current && typeof
|
|
18189
|
+
l.current && typeof Je == "function" && Je(l.current);
|
|
18190
18190
|
}, [
|
|
18191
18191
|
a?.value,
|
|
18192
18192
|
r,
|
|
@@ -18400,7 +18400,7 @@ var zC = (e) => {
|
|
|
18400
18400
|
]);
|
|
18401
18401
|
let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
|
|
18402
18402
|
return R(() => {
|
|
18403
|
-
m.current && typeof
|
|
18403
|
+
m.current && typeof Je == "function" && Je(m.current);
|
|
18404
18404
|
}, [s]), R(() => {
|
|
18405
18405
|
let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
|
|
18406
18406
|
y({
|
|
@@ -18907,7 +18907,7 @@ var WC = {}, GC = (e) => String(e || "").replace(/-/g, "_"), KC = (e) => e && e.
|
|
|
18907
18907
|
"data-latex": "",
|
|
18908
18908
|
"data-raw": e.latex
|
|
18909
18909
|
},
|
|
18910
|
-
|
|
18910
|
+
re(e.latex, e.wrapper)
|
|
18911
18911
|
];
|
|
18912
18912
|
},
|
|
18913
18913
|
addNodeView() {
|
|
@@ -19127,7 +19127,7 @@ var WC = {}, GC = (e) => String(e || "").replace(/-/g, "_"), KC = (e) => e && e.
|
|
|
19127
19127
|
onChange: (e) => this.setState({ value: e.target.value }),
|
|
19128
19128
|
FormHelperTextProps: { style: { fontSize: 14 } }
|
|
19129
19129
|
})]
|
|
19130
|
-
}) }), /* @__PURE__ */ z(jn, { children: /* @__PURE__ */ z(
|
|
19130
|
+
}) }), /* @__PURE__ */ z(jn, { children: /* @__PURE__ */ z(O, {
|
|
19131
19131
|
onClick: this.onDone,
|
|
19132
19132
|
children: "Done"
|
|
19133
19133
|
}) })]
|
|
@@ -19367,8 +19367,8 @@ function kw(e) {
|
|
|
19367
19367
|
]), R(() => {
|
|
19368
19368
|
T();
|
|
19369
19369
|
let e = b?.current;
|
|
19370
|
-
return e && n.isEditable && e.addEventListener("mousedown",
|
|
19371
|
-
e && e.removeEventListener("mousedown",
|
|
19370
|
+
return e && n.isEditable && e.addEventListener("mousedown", ne, !1), () => {
|
|
19371
|
+
e && e.removeEventListener("mousedown", ne, !1);
|
|
19372
19372
|
};
|
|
19373
19373
|
}, []), R(() => {
|
|
19374
19374
|
T();
|
|
@@ -19421,11 +19421,11 @@ function kw(e) {
|
|
|
19421
19421
|
}));
|
|
19422
19422
|
}, [n, w]), te = tt((e) => {
|
|
19423
19423
|
w(e);
|
|
19424
|
-
}, [n, w]),
|
|
19425
|
-
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup",
|
|
19426
|
-
}, [D]),
|
|
19427
|
-
window.addEventListener("mousemove", D), window.addEventListener("mouseup",
|
|
19428
|
-
}, [D,
|
|
19424
|
+
}, [n, w]), O = tt(() => {
|
|
19425
|
+
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", O);
|
|
19426
|
+
}, [D]), ne = tt(() => {
|
|
19427
|
+
window.addEventListener("mousemove", D), window.addEventListener("mouseup", O);
|
|
19428
|
+
}, [D, O]), re = {
|
|
19429
19429
|
width: Ow(t.attrs.width),
|
|
19430
19430
|
height: Ow(t.attrs.height),
|
|
19431
19431
|
objectFit: "contain"
|
|
@@ -19451,7 +19451,7 @@ function kw(e) {
|
|
|
19451
19451
|
draggable: !1,
|
|
19452
19452
|
ref: y,
|
|
19453
19453
|
src: t.attrs.src,
|
|
19454
|
-
style:
|
|
19454
|
+
style: re,
|
|
19455
19455
|
onLoad: E,
|
|
19456
19456
|
alt: t.attrs.alt
|
|
19457
19457
|
}), /* @__PURE__ */ z(Dw, {
|
|
@@ -19919,11 +19919,11 @@ var Aw = U_.create({
|
|
|
19919
19919
|
children: h.error
|
|
19920
19920
|
})] }) })
|
|
19921
19921
|
] }) }),
|
|
19922
|
-
/* @__PURE__ */ B(jn, { children: [/* @__PURE__ */ z(
|
|
19922
|
+
/* @__PURE__ */ B(jn, { children: [/* @__PURE__ */ z(O, {
|
|
19923
19923
|
onClick: () => this.handleDone(!1),
|
|
19924
19924
|
color: "primary",
|
|
19925
19925
|
children: "Cancel"
|
|
19926
|
-
}), /* @__PURE__ */ z(
|
|
19926
|
+
}), /* @__PURE__ */ z(O, {
|
|
19927
19927
|
disabled: y,
|
|
19928
19928
|
onClick: () => this.handleDone(!0),
|
|
19929
19929
|
color: "primary",
|
|
@@ -27279,10 +27279,10 @@ var yP = vP(y, "InputContainer") || vP(SP.InputContainer, "InputContainer"), bP
|
|
|
27279
27279
|
fontSize: e.typography.fontSize - 2,
|
|
27280
27280
|
color: e.palette.error.main,
|
|
27281
27281
|
paddingTop: e.spacing(1)
|
|
27282
|
-
})), MP = N(vn)({ color: `${A.tertiary()} !important` }), NP = N(
|
|
27282
|
+
})), MP = N(vn)({ color: `${A.tertiary()} !important` }), NP = N(O)(() => ({
|
|
27283
27283
|
border: `1px solid ${A.border()}`,
|
|
27284
27284
|
color: A.text()
|
|
27285
|
-
})), PP = N(
|
|
27285
|
+
})), PP = N(O)(({ theme: e }) => ({
|
|
27286
27286
|
marginLeft: e.spacing(2),
|
|
27287
27287
|
border: `1px solid ${A.border()}`,
|
|
27288
27288
|
color: A.disabled(),
|
|
@@ -27619,7 +27619,7 @@ var iF = class extends I.Component {
|
|
|
27619
27619
|
i.responses[t] = e, r(i);
|
|
27620
27620
|
};
|
|
27621
27621
|
render() {
|
|
27622
|
-
let { model: e, imageSupport: t, uploadSoundSupport: n, configuration: r, promptEnabled: i, rationaleEnabled: a, toolbarOpts: o } = this.props, { showKeypad: s } = this.state, { prompt: c, expression: l, equationEditor: u, promptEquationEditor: d = "8", responses: f, responseType: p, rationale: m, spellCheckEnabled: h, errors: g = {} } = e, { baseInputConfiguration: _ = {}, rationale: v = {}, prompt: y = {}, ignoreOrder: b = {}, allowTrailingZeros: x = {}, maxResponseAreas: S, maxImageWidth: C = {}, maxImageHeight: w = {}, mathMlOptions: T = {} } = r || {}, E = LP(r, e), { prompt: ee, rationale: D, responsesErrors: te, responseAreasError:
|
|
27622
|
+
let { model: e, imageSupport: t, uploadSoundSupport: n, configuration: r, promptEnabled: i, rationaleEnabled: a, toolbarOpts: o } = this.props, { showKeypad: s } = this.state, { prompt: c, expression: l, equationEditor: u, promptEquationEditor: d = "8", responses: f, responseType: p, rationale: m, spellCheckEnabled: h, errors: g = {} } = e, { baseInputConfiguration: _ = {}, rationale: v = {}, prompt: y = {}, ignoreOrder: b = {}, allowTrailingZeros: x = {}, maxResponseAreas: S, maxImageWidth: C = {}, maxImageHeight: w = {}, mathMlOptions: T = {} } = r || {}, E = LP(r, e), { prompt: ee, rationale: D, responsesErrors: te, responseAreasError: O } = g, ne = C && C.prompt, re = w && w.prompt, k = {
|
|
27623
27623
|
editor: "response-editor",
|
|
27624
27624
|
mathToolbar: "math-toolbar"
|
|
27625
27625
|
}, ie = p === IP.advanced ? f : f.slice(0, 1), ae = /* @__PURE__ */ z(qP, {
|
|
@@ -27648,8 +27648,8 @@ var iF = class extends I.Component {
|
|
|
27648
27648
|
toolbarOpts: o,
|
|
27649
27649
|
pluginProps: RP(y?.inputConfiguration, _),
|
|
27650
27650
|
spellCheck: h,
|
|
27651
|
-
maxImageWidth:
|
|
27652
|
-
maxImageHeight:
|
|
27651
|
+
maxImageWidth: ne,
|
|
27652
|
+
maxImageHeight: re,
|
|
27653
27653
|
uploadSoundSupport: n,
|
|
27654
27654
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
27655
27655
|
mathMlOptions: T
|
|
@@ -27732,9 +27732,9 @@ var iF = class extends I.Component {
|
|
|
27732
27732
|
onFocus: this.onFocus,
|
|
27733
27733
|
onDone: this.onDone,
|
|
27734
27734
|
maxResponseAreas: S,
|
|
27735
|
-
error:
|
|
27735
|
+
error: O
|
|
27736
27736
|
})] }, "templateHolder"),
|
|
27737
|
-
|
|
27737
|
+
O && /* @__PURE__ */ z(JP, { children: O })
|
|
27738
27738
|
] }),
|
|
27739
27739
|
/* @__PURE__ */ B(WP, {
|
|
27740
27740
|
style: { justifyContent: "flex-start" },
|
|
@@ -27825,8 +27825,8 @@ var iF = class extends I.Component {
|
|
|
27825
27825
|
math: { controlledKeypadMode: !1 }
|
|
27826
27826
|
}),
|
|
27827
27827
|
spellCheck: h,
|
|
27828
|
-
maxImageWidth: C && C.rationale ||
|
|
27829
|
-
maxImageHeight: w && w.rationale ||
|
|
27828
|
+
maxImageWidth: C && C.rationale || ne,
|
|
27829
|
+
maxImageHeight: w && w.rationale || re,
|
|
27830
27830
|
uploadSoundSupport: n,
|
|
27831
27831
|
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
27832
27832
|
mathMlOptions: T
|
|
@@ -27866,9 +27866,9 @@ var iF = class extends I.Component {
|
|
|
27866
27866
|
t.feedback = e, n(t);
|
|
27867
27867
|
};
|
|
27868
27868
|
render() {
|
|
27869
|
-
let { model: e, imageSupport: t, onModelChanged: n, configuration: r, onConfigurationChanged: i, uploadSoundSupport: a } = this.props, { allowTrailingZeros: o = {}, baseInputConfiguration: s = {}, contentDimensions: c = {}, feedback: l = {}, ignoreOrder: u = {}, maxImageWidth: d = {}, maxImageHeight: f = {}, prompt: p = {}, rationale: m = {}, responseType: h = {}, scoringType: g = {}, settingsPanelDisabled: _, spellCheck: v = {}, studentInstructions: y = {}, teacherInstructions: b = {}, withRubric: x = {}, mathMlOptions: S = {}, language: C = {}, languageChoices: w = {} } = r || {}, { errors: T = {}, extraCSSRules: E, feedbackEnabled: ee, promptEnabled: D, rationaleEnabled: te, spellCheckEnabled:
|
|
27869
|
+
let { model: e, imageSupport: t, onModelChanged: n, configuration: r, onConfigurationChanged: i, uploadSoundSupport: a } = this.props, { allowTrailingZeros: o = {}, baseInputConfiguration: s = {}, contentDimensions: c = {}, feedback: l = {}, ignoreOrder: u = {}, maxImageWidth: d = {}, maxImageHeight: f = {}, prompt: p = {}, rationale: m = {}, responseType: h = {}, scoringType: g = {}, settingsPanelDisabled: _, spellCheck: v = {}, studentInstructions: y = {}, teacherInstructions: b = {}, withRubric: x = {}, mathMlOptions: S = {}, language: C = {}, languageChoices: w = {} } = r || {}, { errors: T = {}, extraCSSRules: E, feedbackEnabled: ee, promptEnabled: D, rationaleEnabled: te, spellCheckEnabled: O, teacherInstructionsEnabled: ne, toolbarEditorPosition: re } = e || {}, { teacherInstructions: k } = T;
|
|
27870
27870
|
aF("[render] model", e);
|
|
27871
|
-
let ie = { position:
|
|
27871
|
+
let ie = { position: re === "top" ? "top" : "bottom" }, ae = d && d.prompt, oe = f && f.prompt, se = {
|
|
27872
27872
|
responseType: h.settings && cF(h.label, [IP.simple, IP.advanced]),
|
|
27873
27873
|
feedbackEnabled: l.settings && sF(l.label),
|
|
27874
27874
|
promptEnabled: p.settings && sF(p.label),
|
|
@@ -27899,7 +27899,7 @@ var iF = class extends I.Component {
|
|
|
27899
27899
|
}
|
|
27900
27900
|
}),
|
|
27901
27901
|
children: [
|
|
27902
|
-
|
|
27902
|
+
ne && /* @__PURE__ */ B(uF, {
|
|
27903
27903
|
label: b.label,
|
|
27904
27904
|
children: [/* @__PURE__ */ z(Yj, {
|
|
27905
27905
|
markup: e.teacherInstructions || "",
|
|
@@ -27909,7 +27909,7 @@ var iF = class extends I.Component {
|
|
|
27909
27909
|
error: k,
|
|
27910
27910
|
toolbarOpts: ie,
|
|
27911
27911
|
pluginProps: RP(b?.inputConfiguration, s),
|
|
27912
|
-
spellCheck:
|
|
27912
|
+
spellCheck: O,
|
|
27913
27913
|
maxImageWidth: d && d.teacherInstructions || ae,
|
|
27914
27914
|
maxImageHeight: f && f.teacherInstructions || oe,
|
|
27915
27915
|
uploadSoundSupport: a,
|
|
@@ -27926,7 +27926,7 @@ var iF = class extends I.Component {
|
|
|
27926
27926
|
rationaleEnabled: te,
|
|
27927
27927
|
promptEnabled: D,
|
|
27928
27928
|
toolbarOpts: ie,
|
|
27929
|
-
spellCheck:
|
|
27929
|
+
spellCheck: O
|
|
27930
27930
|
}),
|
|
27931
27931
|
ee && /* @__PURE__ */ z(hM, {
|
|
27932
27932
|
feedback: e.feedback,
|