@pie-element/fraction-model 7.0.1-next.20261004011201 → 7.0.1-next.20261004020741
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 +224 -215
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{delivery-Cxsr2biW.js → delivery-CC9O9ZEz.js} +32 -6
- package/dist/browser/delivery-CC9O9ZEz.js.map +1 -0
- package/dist/browser/editor-runtime/author/index.js +224 -215
- 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/{delivery-Bvfgttcb.js → delivery-DwO03Udp.js} +32 -6
- package/dist/browser/editor-runtime/delivery-DwO03Udp.js.map +1 -0
- package/dist/browser/editor-runtime/{mathjax-D2JHb_R_-DmYjZ6f_.js → mathjax-D2JHb_R_-pmBpTQ3c.js} +2 -2
- package/dist/browser/editor-runtime/{mathjax-D2JHb_R_-DmYjZ6f_.js.map → mathjax-D2JHb_R_-pmBpTQ3c.js.map} +1 -1
- package/dist/browser/{mathjax-D2JHb_R_-CvH55p1P.js → mathjax-D2JHb_R_-CspcbUkl.js} +2 -2
- package/dist/browser/{mathjax-D2JHb_R_-CvH55p1P.js.map → mathjax-D2JHb_R_-CspcbUkl.js.map} +1 -1
- package/dist/index.iife.js +1 -1
- package/package.json +4 -4
- package/dist/browser/delivery-Cxsr2biW.js.map +0 -1
- package/dist/browser/editor-runtime/delivery-Bvfgttcb.js.map +0 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
(document.head || document.documentElement).appendChild(style);
|
|
17
17
|
}
|
|
18
18
|
})([["cb0f0518b022d739", (url) => "@font-face{font-family:Symbola;src:local(Symbola Regular),local(Symbola),url(\"" + url(() => new URL("../assets/Symbola-4c507403.woff2", import.meta.url)) + "\")format(\"woff2\")}.mq-editable-field{display:inline-block}.mq-editable-field .mq-cursor{z-index:1;border-left:1px solid #000;margin-left:-1px;padding:0;display:inline-block;position:relative}.mq-editable-field .mq-cursor.mq-blink{visibility:hidden}.mq-editable-field,.mq-math-mode .mq-editable-field{border:1px solid gray}.mq-editable-field.mq-focused,.mq-math-mode .mq-editable-field.mq-focused{border-color:#709ac0;border-radius:1px;box-shadow:0 0 1px 2px #8bd,inset 0 0 2px #6ae}.mq-math-mode .mq-editable-field{margin:1px}.mq-editable-field .mq-latex-command-input{color:inherit;border:1px solid gray;margin-left:2px;margin-right:1px;padding-right:1px;font-family:Courier New,monospace}.mq-editable-field .mq-latex-command-input.mq-empty{background:0 0}.mq-editable-field .mq-latex-command-input.mq-hasCursor{border-color:activeborder}.mq-editable-field.mq-empty:after,.mq-editable-field.mq-text-mode:after,.mq-math-mode .mq-empty:after,.mq-editable-field .mq-cursor:only-child:after,.mq-editable-field .mq-textarea+.mq-cursor:last-child:after{visibility:hidden;content:\"c\"}.mq-editable-field .mq-text-mode .mq-cursor:only-child:after{content:\"\"}.mq-editable-field.mq-text-mode{overflow:auto hidden}.mq-root-block,.mq-math-mode .mq-root-block{box-sizing:border-box;white-space:nowrap;vertical-align:middle;width:100%;padding:2px;display:inline-block;overflow:hidden}.mq-math-mode{font-variant:normal;font-size:115%;font-style:normal;font-weight:400;line-height:1;display:inline-block}.mq-math-mode .mq-non-leaf,.mq-math-mode .mq-scaled{display:inline-block}.mq-math-mode var,.mq-math-mode .mq-text-mode,.mq-math-mode .mq-nonSymbola{font-family:Times New Roman,Symbola,serif;line-height:.9}.mq-math-mode *{font-size:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;box-sizing:border-box;border-color:#000;margin:0;padding:0}.mq-math-mode .mq-empty,.mq-math-mode.mq-empty{background:0 0}.mq-math-mode .mq-text-mode{white-space:pre;display:inline-block}.mq-math-mode .mq-text-mode.mq-hasCursor{min-width:1ex;margin:0 -.1em;padding:0 .1em;box-shadow:inset 0 .1em .2em #a9a9a9}.mq-math-mode .mq-font{font:1em Times New Roman,Symbola,serif}.mq-math-mode .mq-font *{font-family:inherit;font-style:inherit}.mq-math-mode b,.mq-math-mode b.mq-font{font-weight:bolder}.mq-math-mode var,.mq-math-mode i,.mq-math-mode i.mq-font{font-style:italic}.mq-math-mode var.mq-f{margin-left:.1em;margin-right:.2em}.mq-math-mode .mq-roman var.mq-f{margin:0}.mq-math-mode big{font-size:200%}.mq-math-mode .mq-int>big{vertical-align:-.16em;display:inline-block;transform:scaleX(.7)}.mq-math-mode .mq-int>.mq-supsub{vertical-align:-1.1em;padding-right:.2em;font-size:80%}.mq-math-mode .mq-int>.mq-supsub>.mq-sup>.mq-sup-inner{vertical-align:1.3em}.mq-math-mode .mq-int>.mq-supsub>.mq-sub{margin-left:-.35em}.mq-math-mode .mq-roman{font-style:normal}.mq-math-mode .mq-sans-serif{font-family:sans-serif,Symbola,serif}.mq-math-mode .mq-monospace{font-family:monospace,Symbola,serif}.mq-math-mode .mq-overleftrightarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overline .mq-overline-inner{text-align:center;border-top:.14em solid #4d4d4d;margin-left:.1em;padding-top:.2em;padding-right:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-right,.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-left{display:none}.mq-math-mode .mq-longdiv{padding-top:.2em}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border{border-top-right-radius:100em;border-bottom-right-radius:100em;width:2px;max-width:2px;margin-right:-.12em;padding-top:.2em;font-size:1.4em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner{text-align:center;border-top:1px solid gray;border-radius:0 0 0 10px;min-width:1em;margin-left:-.2em;margin-right:.15em;padding-top:.19em;padding-left:.44em;font-size:1em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner .mq-empty{min-width:1.5em;display:inline-block}.mq-math-mode .mq-underline{border-bottom:1px solid #000;margin-bottom:1px}.mq-math-mode .mq-underline.mq-empty{min-width:1em}.mq-math-mode .mq-overarc{-moz-border-radius-topright:50% .3em;-moz-border-radius-topleft:50% .3em;border-top:1px solid #000;border-top-left-radius:50% .3em;border-top-right-radius:50% .3em;margin-top:1px;padding-top:.15em}.mq-math-mode .mq-overarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:none;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-right{display:none}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-left{display:block}.mq-math-mode .mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-math-mode .mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-math-mode .mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-xarrow{text-align:center;vertical-align:.9em;padding:0 .2em;font-size:70%;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-over{border-bottom:1px solid #000;padding:.1em .1em .2em;display:block;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-under{float:left;margin-bottom:.2em;padding:0 .1em .2em;position:relative;top:.2em}.mq-math-mode .mq-xarrow .mq-xarrow-over:before{content:\"➤\";height:1em;font-size:.6em;display:block;position:absolute;bottom:-.62em;right:-.3em}.mq-math-mode .mq-xarrow.mq-arrow-left .mq-xarrow-over:before{filter:FlipH;-ms-filter:\"FlipH\";left:-.3em;right:auto;transform:scaleX(-1)}.mq-math-mode .mq-binary-operator{padding:0 .2em;display:inline-block}.mq-math-mode .mq-supsub{text-align:left;vertical-align:-.5em;font-size:90%}.mq-math-mode .mq-supsub.mq-sup-only{vertical-align:.5em}.mq-math-mode .mq-supsub.mq-sup-only .mq-sup{vertical-align:text-bottom;display:inline-block}.mq-math-mode .mq-supsub .mq-sup{display:block}.mq-math-mode .mq-supsub .mq-sub{float:left;display:block}.mq-math-mode .mq-supsub .mq-binary-operator{padding:0 .1em}.mq-math-mode .mq-supsub .mq-fraction{font-size:70%}.mq-math-mode sup.mq-nthroot{vertical-align:.8em;min-width:.5em;margin-left:.2em;margin-right:-.6em;font-size:80%}.mq-math-mode .mq-paren{vertical-align:top;transform-origin:50% .06em;padding:0 .1em}.mq-math-mode .mq-paren.mq-ghost{color:silver}.mq-math-mode .mq-paren+span{margin-top:.1em;margin-bottom:.1em}.mq-math-mode .mq-array{vertical-align:middle;text-align:center}.mq-math-mode .mq-array>span{display:block}.mq-math-mode .mq-operator-name{font-family:Symbola,Times New Roman,serif;font-style:normal;line-height:.9}.mq-math-mode var.mq-operator-name.mq-first{padding-left:.2em}.mq-math-mode var.mq-operator-name.mq-last,.mq-math-mode .mq-supsub.mq-after-operator-name{padding-right:.2em}.mq-math-mode .mq-fraction{text-align:center;vertical-align:-.4em;padding:0 .2em;font-size:90%}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator{display:-moz-groupbox}.mq-math-mode x:-moz-any-link{display:-moz-groupbox}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator,.mq-math-mode x:default{display:inline-block}.mq-math-mode x:-moz-any-link{display:inline-block}.mq-math-mode .mq-underset.mq-tilde-vector .mq-under{line-height:.6em}.mq-math-mode .mq-numerator,.mq-math-mode .mq-denominator,.mq-math-mode .mq-dot-recurring,.mq-math-mode .mq-over,.mq-math-mode .mq-under{display:block}.mq-math-mode .mq-numerator,.mq-math-mode .mq-over{margin-bottom:.2em;padding:0 .1em}.mq-math-mode .mq-denominator{float:right;border-top:1px solid;width:100%;padding:.3em .1em .1em}.mq-math-mode .mq-dot-recurring{text-align:center;height:.6em}.mq-math-mode .mq-overunder{text-align:center;position:relative;top:.01em}.mq-math-mode .mq-overunder .mq-font{font-family:inherit}.mq-math-mode .mq-overunder.mq-underset{vertical-align:text-top}.mq-math-mode .mq-overunder.mq-underset .mq-under,.mq-math-mode .mq-overunder.mq-overset .mq-over{font-size:.7em;display:block}.mq-math-mode .mq-sqrt-prefix{vertical-align:top;transform-origin:top;padding-top:0;position:relative;top:.1em}.mq-math-mode .mq-sqrt-stem{border-top:1px solid;margin-top:1px;margin-right:.1em;padding-top:1px;padding-left:.15em;padding-right:.2em}.mq-math-mode .mq-diacritic-above{text-align:center;line-height:.4em;display:block}.mq-math-mode .mq-diacritic-stem{text-align:center;display:block}.mq-math-mode .mq-hat-prefix{text-align:center;margin-bottom:-.7em;line-height:.95em;display:block;transform:scaleX(1.5)}.mq-math-mode .mq-hat-stem{display:block}.mq-math-mode .mq-large-operator{vertical-align:-.2em;text-align:center;vertical-align:middle;padding:.2em}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator big,.mq-math-mode .mq-large-operator .mq-to{display:block}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator .mq-to{font-size:80%}.mq-math-mode .mq-large-operator .mq-from{float:right;width:100%}.mq-math-mode .mq-lim{text-align:center}.mq-math-mode .mq-lim span{display:block}.mq-math-mode .mq-lim .mq-approaches{float:right;width:100%;font-size:80%}.mq-math-mode .mq-lim .mq-approaches span>span{display:inline}.mq-math-mode .mq-matrix{vertical-align:middle;margin-left:.1em;margin-right:.1em}.mq-math-mode .mq-matrix table{border-spacing:3px;border-collapse:separate;border-bottom:none;width:auto}.mq-math-mode .mq-matrix table.mq-rows-1{vertical-align:middle;margin-bottom:1px}.mq-math-mode .mq-matrix td{vertical-align:baseline;border:1px dotted #fff;width:auto;padding:.1em .3em}.mq-math-mode .mq-matrix td.mq-empty{border:1px dotted #000}.mq-math-mode .mq-abs{border-left:1px solid #000;border-right:1px solid #000;margin-left:.1em;margin-right:.1em;padding-left:.2em;padding-right:.2em}.mq-math-mode .mq-lrnplaceholder{margin-left:.05em;margin-right:.05em}.mq-math-mode .mq-parallelogram{margin-top:-.5em;line-height:1em;position:relative;overflow:hidden}.mq-math-mode .mq-parallelogram .mq-parallelogram-inner{font-size:2em;position:relative;top:.23em}.mq-math-mode,.mq-math-mode .mq-editable-field{cursor:text;font-family:Symbola,Times New Roman,serif}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border,.mq-math-mode .mq-editable-field .mq-longdiv .mq-longdiv-curve-border{font-size:1.33em}.mq-overarrow{text-align:center;border-top:1px solid #000;min-width:.5em;margin-top:1px;padding-top:.2em}.mq-overarrow:before{content:\"➤\";text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-.34em}.mq-overarrow.mq-arrow-left:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-selection,.mq-editable-field .mq-selection,.mq-math-mode .mq-selection .mq-non-leaf,.mq-editable-field .mq-selection .mq-non-leaf,.mq-math-mode .mq-selection .mq-scaled,.mq-editable-field .mq-selection .mq-scaled{color:highlighttext;border-color:highlighttext;background:highlight!important}.mq-math-mode .mq-selection .mq-matrixed,.mq-editable-field .mq-selection .mq-matrixed{background:#39f!important}.mq-math-mode .mq-selection .mq-matrixed-container,.mq-editable-field .mq-selection .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#3399FF\")!important}.mq-math-mode .mq-selection.mq-blur,.mq-editable-field .mq-selection.mq-blur,.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,.mq-math-mode .mq-selection.mq-blur .mq-scaled,.mq-editable-field .mq-selection.mq-blur .mq-scaled,.mq-math-mode .mq-selection.mq-blur .mq-matrixed,.mq-editable-field .mq-selection.mq-blur .mq-matrixed{color:#000;border-color:#000;background:#d4d4d4!important}.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#D4D4D4\")!important}.mq-editable-field .mq-textarea,.mq-math-mode .mq-textarea{-webkit-user-select:text;user-select:text;position:relative}.mq-editable-field .mq-textarea>textarea,.mq-math-mode .mq-textarea>textarea{opacity:0;overflow:hidden}.mq-editable-field .mq-textarea *,.mq-math-mode .mq-textarea *,.mq-editable-field .mq-selectable,.mq-math-mode .mq-selectable{-webkit-user-select:text;user-select:text;clip:rect(1em 1em 1em 1em);resize:none;box-sizing:content-box;width:1px;height:1px;position:absolute;transform:scale(0)}.mq-math-mode .mq-matrixed{background:#fff;display:inline-block}.mq-math-mode .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"white\");margin-top:-.1em}.mq-math-mode .mq-matrix table{border-spacing:2px}button .mq-math-mode .mq-matrix table.mq-rows-2 td,button .mq-math-mode .mq-matrix table.mq-rows-3 td{width:.9em;font-size:.3em}button .mq-math-mode .mq-matrix table.mq-rows-2{margin-bottom:-2px}button .mq-math-mode .mq-matrix table.mq-rows-1{margin-bottom:3px}button .mq-math-mode .mq-matrix table.mq-rows-1 td{width:1.1em;margin-bottom:3px;font-size:.6em}button .mq-math-mode .mq-matrix .matrix-edit-content-row{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-row p{font-size:.7em}button .mq-math-mode .mq-matrix .matrix-edit-content-col{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-col p{padding:0 .15em;font-size:.7em}button .mq-math-mode .mq-matrix .mq-paren{padding:0;display:inline-block;transform:scale(1.13,1.77)}button .matrix-edit .mq-empty{width:.8em;margin:.1em;padding:.1em;font-size:.4em}\n"]]);
|
|
19
|
-
import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, T as x, U as S, V as C, W as ee, X as te, Y as ne, Z as re, _ as ie, _t as ae, a as oe, at as w, b as se, bt as ce, c as le, ct as ue, d as de, dt as fe, et as pe, f as T, ft as me, g as he, gt as ge, h as _e, ht as ve, i as ye, it as be, j as xe, k as Se, l as Ce, lt as we, m as Te, mt as Ee, n as De, nt as E, o as Oe, ot as ke, p as Ae, pt as je, q as Me, r as Ne, rt as Pe, s as Fe, st as D, tt as Ie, u as Le, ut as Re, v as ze, vt as Be, w as Ve, x as He, xt as Ue, y as We, yt as Ge, z as Ke } from "../delivery-
|
|
19
|
+
import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, T as x, U as S, V as C, W as ee, X as te, Y as ne, Z as re, _ as ie, _t as ae, a as oe, at as w, b as se, bt as ce, c as le, ct as ue, d as de, dt as fe, et as pe, f as T, ft as me, g as he, gt as ge, h as _e, ht as ve, i as ye, it as be, j as xe, k as Se, l as Ce, lt as we, m as Te, mt as Ee, n as De, nt as E, o as Oe, ot as ke, p as Ae, pt as je, q as Me, r as Ne, rt as Pe, s as Fe, st as D, tt as Ie, u as Le, ut as Re, v as ze, vt as Be, w as Ve, x as He, xt as Ue, y as We, yt as Ge, z as Ke } from "../delivery-CC9O9ZEz.js";
|
|
20
20
|
import { a as qe, c as Je, d as Ye, i as Xe, l as Ze, n as Qe, o as $e, r as et, s as tt, t as nt, u as rt } from "../dist-ClmZaEGT.js";
|
|
21
21
|
import * as O from "react";
|
|
22
22
|
import k, { Component as it, createContext as at, createElement as ot, createRef as st, forwardRef as ct, memo as lt, useCallback as ut, useContext as dt, useDebugValue as ft, useEffect as pt, useLayoutEffect as mt, useMemo as ht, useRef as gt, useState as _t, version as vt } from "react";
|
|
@@ -30633,14 +30633,16 @@ var KL = lv.create({
|
|
|
30633
30633
|
"--red": "#ff5c33",
|
|
30634
30634
|
"--red-light": "#ffebe5",
|
|
30635
30635
|
"--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
|
|
30636
|
-
}, hR = (e) => ({
|
|
30636
|
+
}, hR = (e, t, n) => ({
|
|
30637
30637
|
role: "textbox",
|
|
30638
30638
|
"data-pie-editor": "true",
|
|
30639
30639
|
class: "mathjax_ignore",
|
|
30640
30640
|
spellcheck: e ? "true" : "false",
|
|
30641
30641
|
autocorrect: e ? "on" : "off",
|
|
30642
|
-
autocapitalize: e ? "on" : "off"
|
|
30643
|
-
|
|
30642
|
+
autocapitalize: e ? "on" : "off",
|
|
30643
|
+
...t && { "aria-label": t },
|
|
30644
|
+
...n && { "aria-labelledby": n }
|
|
30645
|
+
}), gR = ["aria-label", "aria-labelledby"], _R = (e) => {
|
|
30644
30646
|
let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = _t([]), [a, o] = _t(!1), { toolbarOpts: s } = e, c = ut((e) => {
|
|
30645
30647
|
i((t) => {
|
|
30646
30648
|
let n = t.filter((t) => t.pos !== e);
|
|
@@ -30780,11 +30782,11 @@ var KL = lv.create({
|
|
|
30780
30782
|
}),
|
|
30781
30783
|
bj.configure({ uploadSoundSupport: e.uploadSoundSupport }),
|
|
30782
30784
|
Ej.configure({ extraCSSRules: e.extraCSSRules })
|
|
30783
|
-
], m = e.spellCheck !== !1, h = RS({
|
|
30785
|
+
], m = e.spellCheck !== !1, { ariaLabel: h, ariaLabelledBy: g } = e, _ = RS({
|
|
30784
30786
|
extensions: p,
|
|
30785
30787
|
immediatelyRender: !1,
|
|
30786
30788
|
editorProps: {
|
|
30787
|
-
attributes: hR(m),
|
|
30789
|
+
attributes: hR(m, h, g),
|
|
30788
30790
|
handleKeyDown(t, n) {
|
|
30789
30791
|
return e.onKeyDown ? e.onKeyDown(n) : !1;
|
|
30790
30792
|
}
|
|
@@ -30799,32 +30801,39 @@ var KL = lv.create({
|
|
|
30799
30801
|
}
|
|
30800
30802
|
}, [e.charactersLimit]);
|
|
30801
30803
|
pt(() => {
|
|
30802
|
-
e.editorRef && e.editorRef(
|
|
30803
|
-
}, [e.editorRef,
|
|
30804
|
-
|
|
30805
|
-
}, [e.disabled,
|
|
30806
|
-
if (!
|
|
30807
|
-
let e =
|
|
30808
|
-
|
|
30809
|
-
|
|
30810
|
-
|
|
30811
|
-
e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
|
|
30804
|
+
e.editorRef && e.editorRef(_);
|
|
30805
|
+
}, [e.editorRef, _]), pt(() => {
|
|
30806
|
+
_?.setEditable(!e.disabled);
|
|
30807
|
+
}, [e.disabled, _]), pt(() => {
|
|
30808
|
+
if (!_) return;
|
|
30809
|
+
let e = _.options?.editorProps, t = e?.attributes || {}, n = hR(m, h, g);
|
|
30810
|
+
if (["spellcheck", ...gR].every((e) => t[e] === n[e])) return;
|
|
30811
|
+
let r = Object.fromEntries(Object.entries(t).filter(([e]) => !gR.includes(e)));
|
|
30812
|
+
_.setOptions({ editorProps: {
|
|
30812
30813
|
...e,
|
|
30813
|
-
attributes:
|
|
30814
|
+
attributes: {
|
|
30815
|
+
...r,
|
|
30816
|
+
...n
|
|
30817
|
+
}
|
|
30814
30818
|
} });
|
|
30815
|
-
}, [
|
|
30816
|
-
|
|
30819
|
+
}, [
|
|
30820
|
+
m,
|
|
30821
|
+
h,
|
|
30822
|
+
g,
|
|
30823
|
+
_
|
|
30824
|
+
]), pt(() => {
|
|
30825
|
+
if (!_) return;
|
|
30817
30826
|
let t = Jv(e.markup);
|
|
30818
|
-
t !==
|
|
30819
|
-
}, [e.markup,
|
|
30827
|
+
t !== _.getHTML() && _.commands.setContent(t, { emitUpdate: !1 });
|
|
30828
|
+
}, [e.markup, _]), pt(() => {
|
|
30820
30829
|
Object.entries(mR).forEach(([e, t]) => {
|
|
30821
30830
|
document.documentElement.style.setProperty(e, t);
|
|
30822
30831
|
});
|
|
30823
30832
|
}, []);
|
|
30824
|
-
let
|
|
30825
|
-
editor:
|
|
30833
|
+
let v = PS({
|
|
30834
|
+
editor: _,
|
|
30826
30835
|
selector: (e) => ({ isFocused: e.editor?.isFocused })
|
|
30827
|
-
}),
|
|
30836
|
+
}), y = ht(() => {
|
|
30828
30837
|
let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
|
|
30829
30838
|
return {
|
|
30830
30839
|
width: NM(n),
|
|
@@ -30839,20 +30848,20 @@ var KL = lv.create({
|
|
|
30839
30848
|
...e,
|
|
30840
30849
|
activePlugins: f,
|
|
30841
30850
|
toolbarOpts: l,
|
|
30842
|
-
editorState:
|
|
30843
|
-
editor:
|
|
30844
|
-
children:
|
|
30851
|
+
editorState: v,
|
|
30852
|
+
editor: _,
|
|
30853
|
+
children: _ && /* @__PURE__ */ A(vR, {
|
|
30845
30854
|
style: {
|
|
30846
|
-
minHeight:
|
|
30847
|
-
height:
|
|
30848
|
-
maxHeight:
|
|
30855
|
+
minHeight: y.minHeight,
|
|
30856
|
+
height: y.height,
|
|
30857
|
+
maxHeight: y.maxHeight
|
|
30849
30858
|
},
|
|
30850
30859
|
showParagraph: t && !t.disabled,
|
|
30851
30860
|
separateParagraph: n && !n.disabled,
|
|
30852
|
-
editor:
|
|
30861
|
+
editor: _
|
|
30853
30862
|
})
|
|
30854
30863
|
});
|
|
30855
|
-
},
|
|
30864
|
+
}, vR = D(jS, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
|
|
30856
30865
|
display: "flex",
|
|
30857
30866
|
outline: "none !important",
|
|
30858
30867
|
"& .ProseMirror": {
|
|
@@ -30880,7 +30889,7 @@ var KL = lv.create({
|
|
|
30880
30889
|
} },
|
|
30881
30890
|
...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
|
|
30882
30891
|
}
|
|
30883
|
-
})),
|
|
30892
|
+
})), yR = _R, bR = D(oa)(() => ({})), xR = class extends k.Component {
|
|
30884
30893
|
static propTypes = {
|
|
30885
30894
|
className: z.default.string,
|
|
30886
30895
|
contentClassName: z.default.string,
|
|
@@ -30901,7 +30910,7 @@ var KL = lv.create({
|
|
|
30901
30910
|
indicatorColor: "primary",
|
|
30902
30911
|
value: e,
|
|
30903
30912
|
onChange: this.handleChange,
|
|
30904
|
-
children: k.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ A(
|
|
30913
|
+
children: k.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ A(bR, { label: e.props.title }, t) : null)
|
|
30905
30914
|
}), /* @__PURE__ */ A("div", {
|
|
30906
30915
|
className: r,
|
|
30907
30916
|
style: i,
|
|
@@ -30909,7 +30918,7 @@ var KL = lv.create({
|
|
|
30909
30918
|
})]
|
|
30910
30919
|
});
|
|
30911
30920
|
}
|
|
30912
|
-
},
|
|
30921
|
+
}, SR = D(ti)(({ theme: e, mini: t }) => ({
|
|
30913
30922
|
margin: 0,
|
|
30914
30923
|
marginLeft: 0,
|
|
30915
30924
|
padding: 0,
|
|
@@ -30923,7 +30932,7 @@ var KL = lv.create({
|
|
|
30923
30932
|
fontSize: e.typography.fontSize - 3
|
|
30924
30933
|
}
|
|
30925
30934
|
}
|
|
30926
|
-
})),
|
|
30935
|
+
})), CR = D(Jr)(({ theme: e, mini: t, error: n }) => ({
|
|
30927
30936
|
color: `${T.tertiary()} !important`,
|
|
30928
30937
|
...t && {
|
|
30929
30938
|
margin: 0,
|
|
@@ -30932,9 +30941,9 @@ var KL = lv.create({
|
|
|
30932
30941
|
height: e.spacing(3)
|
|
30933
30942
|
},
|
|
30934
30943
|
...n && { color: `${e.palette.error.main} !important` }
|
|
30935
|
-
})),
|
|
30944
|
+
})), wR = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ A(SR, {
|
|
30936
30945
|
mini: e,
|
|
30937
|
-
control: /* @__PURE__ */ A(
|
|
30946
|
+
control: /* @__PURE__ */ A(CR, {
|
|
30938
30947
|
checked: t,
|
|
30939
30948
|
onChange: n,
|
|
30940
30949
|
value: r,
|
|
@@ -30943,32 +30952,32 @@ var KL = lv.create({
|
|
|
30943
30952
|
}),
|
|
30944
30953
|
label: i
|
|
30945
30954
|
});
|
|
30946
|
-
|
|
30955
|
+
wR.propTypes = {
|
|
30947
30956
|
mini: z.default.bool,
|
|
30948
30957
|
checked: z.default.bool.isRequired,
|
|
30949
30958
|
onChange: z.default.func.isRequired,
|
|
30950
30959
|
value: z.default.string,
|
|
30951
30960
|
label: z.default.string.isRequired,
|
|
30952
30961
|
error: z.default.bool
|
|
30953
|
-
},
|
|
30962
|
+
}, wR.defaultProps = {
|
|
30954
30963
|
value: "",
|
|
30955
30964
|
mini: !1,
|
|
30956
30965
|
error: !1
|
|
30957
30966
|
};
|
|
30958
30967
|
//#endregion
|
|
30959
30968
|
//#region ../../lib-react/config-ui/dist/form-section.js
|
|
30960
|
-
var
|
|
30969
|
+
var TR = D("div")(({ theme: e }) => ({
|
|
30961
30970
|
marginTop: e.spacing(2),
|
|
30962
30971
|
marginBottom: e.spacing(2)
|
|
30963
|
-
})),
|
|
30972
|
+
})), ER = D(_)(({ theme: e }) => ({ marginBottom: e.spacing(1) })), DR = ({ className: e, label: t, children: n, labelExtraStyle: r }) => /* @__PURE__ */ j(TR, {
|
|
30964
30973
|
className: e,
|
|
30965
|
-
children: [/* @__PURE__ */ A(
|
|
30974
|
+
children: [/* @__PURE__ */ A(ER, {
|
|
30966
30975
|
variant: "subtitle1",
|
|
30967
30976
|
style: r,
|
|
30968
30977
|
children: t
|
|
30969
30978
|
}), n]
|
|
30970
30979
|
});
|
|
30971
|
-
|
|
30980
|
+
DR.propTypes = {
|
|
30972
30981
|
className: z.default.string,
|
|
30973
30982
|
label: z.default.string,
|
|
30974
30983
|
children: z.default.node,
|
|
@@ -30976,7 +30985,7 @@ ER.propTypes = {
|
|
|
30976
30985
|
};
|
|
30977
30986
|
//#endregion
|
|
30978
30987
|
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
30979
|
-
var
|
|
30988
|
+
var OR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), kR = D(Ae)(({ theme: e }) => ({
|
|
30980
30989
|
marginRight: e.spacing(1),
|
|
30981
30990
|
"& .MuiInputLabel-root": {
|
|
30982
30991
|
width: "auto",
|
|
@@ -30998,11 +31007,11 @@ var DR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), OR = D(Ae)(({
|
|
|
30998
31007
|
minHeight: "auto",
|
|
30999
31008
|
padding: "6px 0 7px"
|
|
31000
31009
|
}
|
|
31001
|
-
})),
|
|
31010
|
+
})), AR = (e, t) => {
|
|
31002
31011
|
if (!Qe(e) && !Qe(t)) return 0;
|
|
31003
31012
|
if (!Qe(e) && Qe(t)) return t;
|
|
31004
31013
|
if (Qe(e)) return e;
|
|
31005
|
-
},
|
|
31014
|
+
}, jR = class extends k.Component {
|
|
31006
31015
|
static propTypes = {
|
|
31007
31016
|
disabled: z.default.bool,
|
|
31008
31017
|
className: z.default.string,
|
|
@@ -31028,13 +31037,13 @@ var DR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), OR = D(Ae)(({
|
|
|
31028
31037
|
this.setState({ value: t });
|
|
31029
31038
|
}
|
|
31030
31039
|
clamp(e, t = this.props.min, n = this.props.max) {
|
|
31031
|
-
return Qe(e) ? (Qe(n) && (e = Math.min(e, n)), Qe(t) && (e = Math.max(e, t)), e) :
|
|
31040
|
+
return Qe(e) ? (Qe(n) && (e = Math.min(e, n)), Qe(t) && (e = Math.max(e, t)), e) : AR(t, n);
|
|
31032
31041
|
}
|
|
31033
31042
|
onBlur = (e) => {
|
|
31034
31043
|
let t = e.target.value, n = parseFloat(t);
|
|
31035
|
-
|
|
31044
|
+
OR("rawNumber: ", n);
|
|
31036
31045
|
let r = this.clamp(n);
|
|
31037
|
-
|
|
31046
|
+
OR("number: ", r), r !== this.state.value && (OR("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
31038
31047
|
this.props.onChange(e, r);
|
|
31039
31048
|
}));
|
|
31040
31049
|
};
|
|
@@ -31054,7 +31063,7 @@ var DR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), OR = D(Ae)(({
|
|
|
31054
31063
|
};
|
|
31055
31064
|
render() {
|
|
31056
31065
|
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();
|
|
31057
|
-
return /* @__PURE__ */ A(
|
|
31066
|
+
return /* @__PURE__ */ A(kR, {
|
|
31058
31067
|
variant: s ? "filled" : l || "standard",
|
|
31059
31068
|
inputRef: (e) => {
|
|
31060
31069
|
this.inputRef = e;
|
|
@@ -31086,21 +31095,21 @@ var DR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), OR = D(Ae)(({
|
|
|
31086
31095
|
margin: "normal"
|
|
31087
31096
|
});
|
|
31088
31097
|
}
|
|
31089
|
-
},
|
|
31098
|
+
}, MR = Object.defineProperty, NR = (e, t) => {
|
|
31090
31099
|
let n = {};
|
|
31091
|
-
for (var r in e)
|
|
31100
|
+
for (var r in e) MR(n, r, {
|
|
31092
31101
|
get: e[r],
|
|
31093
31102
|
enumerable: !0
|
|
31094
31103
|
});
|
|
31095
|
-
return t ||
|
|
31096
|
-
},
|
|
31104
|
+
return t || MR(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
31105
|
+
}, PR = D("div")(() => ({
|
|
31097
31106
|
display: "flex",
|
|
31098
31107
|
flexDirection: "column",
|
|
31099
31108
|
position: "relative"
|
|
31100
|
-
})),
|
|
31109
|
+
})), FR = D("div")(() => ({
|
|
31101
31110
|
display: "flex",
|
|
31102
31111
|
justifyContent: "space-between"
|
|
31103
|
-
})),
|
|
31112
|
+
})), IR = D("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), LR = D("div")(() => ({ flex: "1" })), RR = D("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), zR = class extends k.Component {
|
|
31104
31113
|
static propTypes = {
|
|
31105
31114
|
mode: z.default.oneOf(["tabbed", "inline"]),
|
|
31106
31115
|
secondary: z.default.oneOfType([z.default.arrayOf(z.default.node), z.default.node]),
|
|
@@ -31118,7 +31127,7 @@ var DR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), OR = D(Ae)(({
|
|
|
31118
31127
|
} catch (e) {
|
|
31119
31128
|
console.log(e.toString());
|
|
31120
31129
|
}
|
|
31121
|
-
return /* @__PURE__ */ j(
|
|
31130
|
+
return /* @__PURE__ */ j(PR, {
|
|
31122
31131
|
style: {
|
|
31123
31132
|
minHeight: i,
|
|
31124
31133
|
minWidth: a,
|
|
@@ -31126,28 +31135,28 @@ var DR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), OR = D(Ae)(({
|
|
|
31126
31135
|
maxWidth: s
|
|
31127
31136
|
},
|
|
31128
31137
|
children: [
|
|
31129
|
-
e === "inline" && /* @__PURE__ */ j(
|
|
31138
|
+
e === "inline" && /* @__PURE__ */ j(FR, { children: [/* @__PURE__ */ A(LR, {
|
|
31130
31139
|
className: "design-container",
|
|
31131
31140
|
children: n
|
|
31132
|
-
}), l && /* @__PURE__ */ A(
|
|
31141
|
+
}), l && /* @__PURE__ */ A(RR, {
|
|
31133
31142
|
className: "settings-container",
|
|
31134
31143
|
children: t
|
|
31135
31144
|
})] }),
|
|
31136
|
-
e === "tabbed" && l && /* @__PURE__ */ j(
|
|
31145
|
+
e === "tabbed" && l && /* @__PURE__ */ j(xR, {
|
|
31137
31146
|
onChange: this.onTabsChange,
|
|
31138
31147
|
contentClassName: "content-container",
|
|
31139
31148
|
indicatorColor: "primary",
|
|
31140
|
-
children: [/* @__PURE__ */ A(
|
|
31149
|
+
children: [/* @__PURE__ */ A(IR, {
|
|
31141
31150
|
title: "Design",
|
|
31142
31151
|
className: "design-container",
|
|
31143
31152
|
children: n
|
|
31144
|
-
}), /* @__PURE__ */ A(
|
|
31153
|
+
}), /* @__PURE__ */ A(IR, {
|
|
31145
31154
|
title: "Settings",
|
|
31146
31155
|
className: "settings-container",
|
|
31147
31156
|
children: t
|
|
31148
31157
|
})]
|
|
31149
31158
|
}),
|
|
31150
|
-
e === "tabbed" && !l && /* @__PURE__ */ A(
|
|
31159
|
+
e === "tabbed" && !l && /* @__PURE__ */ A(IR, {
|
|
31151
31160
|
className: "design-container",
|
|
31152
31161
|
children: n
|
|
31153
31162
|
})
|
|
@@ -31157,18 +31166,18 @@ var DR = (0, ja.default)("@pie-lib:config-ui:number-text-field"), OR = D(Ae)(({
|
|
|
31157
31166
|
};
|
|
31158
31167
|
//#endregion
|
|
31159
31168
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
31160
|
-
function
|
|
31161
|
-
return
|
|
31169
|
+
function BR() {
|
|
31170
|
+
return BR = Object.assign ? Object.assign.bind() : function(e) {
|
|
31162
31171
|
for (var t = 1; t < arguments.length; t++) {
|
|
31163
31172
|
var n = arguments[t];
|
|
31164
31173
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
31165
31174
|
}
|
|
31166
31175
|
return e;
|
|
31167
|
-
},
|
|
31176
|
+
}, BR.apply(null, arguments);
|
|
31168
31177
|
}
|
|
31169
31178
|
//#endregion
|
|
31170
31179
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
31171
|
-
function
|
|
31180
|
+
function VR(e, t) {
|
|
31172
31181
|
if (e == null) return {};
|
|
31173
31182
|
var n = {};
|
|
31174
31183
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -31179,19 +31188,19 @@ function BR(e, t) {
|
|
|
31179
31188
|
}
|
|
31180
31189
|
//#endregion
|
|
31181
31190
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
31182
|
-
function
|
|
31183
|
-
return
|
|
31191
|
+
function HR(e, t) {
|
|
31192
|
+
return HR = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
31184
31193
|
return e.__proto__ = t, e;
|
|
31185
|
-
},
|
|
31194
|
+
}, HR(e, t);
|
|
31186
31195
|
}
|
|
31187
31196
|
//#endregion
|
|
31188
31197
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
31189
|
-
function
|
|
31190
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
31198
|
+
function UR(e, t) {
|
|
31199
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, HR(e, t);
|
|
31191
31200
|
}
|
|
31192
31201
|
//#endregion
|
|
31193
31202
|
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
31194
|
-
var
|
|
31203
|
+
var WR = (function() {
|
|
31195
31204
|
if (typeof Map < "u") return Map;
|
|
31196
31205
|
function e(e, t) {
|
|
31197
31206
|
var n = -1;
|
|
@@ -31230,34 +31239,34 @@ var UR = (function() {
|
|
|
31230
31239
|
}
|
|
31231
31240
|
}, t;
|
|
31232
31241
|
}();
|
|
31233
|
-
})(),
|
|
31242
|
+
})(), GR = typeof window < "u" && typeof document < "u" && window.document === document, KR = (function() {
|
|
31234
31243
|
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")();
|
|
31235
|
-
})(),
|
|
31236
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
31244
|
+
})(), qR = (function() {
|
|
31245
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(KR) : function(e) {
|
|
31237
31246
|
return setTimeout(function() {
|
|
31238
31247
|
return e(Date.now());
|
|
31239
31248
|
}, 1e3 / 60);
|
|
31240
31249
|
};
|
|
31241
|
-
})(),
|
|
31242
|
-
function
|
|
31250
|
+
})(), JR = 2;
|
|
31251
|
+
function YR(e, t) {
|
|
31243
31252
|
var n = !1, r = !1, i = 0;
|
|
31244
31253
|
function a() {
|
|
31245
31254
|
n && (n = !1, e()), r && s();
|
|
31246
31255
|
}
|
|
31247
31256
|
function o() {
|
|
31248
|
-
|
|
31257
|
+
qR(a);
|
|
31249
31258
|
}
|
|
31250
31259
|
function s() {
|
|
31251
31260
|
var e = Date.now();
|
|
31252
31261
|
if (n) {
|
|
31253
|
-
if (e - i <
|
|
31262
|
+
if (e - i < JR) return;
|
|
31254
31263
|
r = !0;
|
|
31255
31264
|
} else n = !0, r = !1, setTimeout(o, t);
|
|
31256
31265
|
i = e;
|
|
31257
31266
|
}
|
|
31258
31267
|
return s;
|
|
31259
31268
|
}
|
|
31260
|
-
var
|
|
31269
|
+
var XR = 20, ZR = [
|
|
31261
31270
|
"top",
|
|
31262
31271
|
"right",
|
|
31263
31272
|
"bottom",
|
|
@@ -31266,9 +31275,9 @@ var YR = 20, XR = [
|
|
|
31266
31275
|
"height",
|
|
31267
31276
|
"size",
|
|
31268
31277
|
"weight"
|
|
31269
|
-
],
|
|
31278
|
+
], QR = typeof MutationObserver < "u", $R = function() {
|
|
31270
31279
|
function e() {
|
|
31271
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
31280
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = YR(this.refresh.bind(this), XR);
|
|
31272
31281
|
}
|
|
31273
31282
|
return e.prototype.addObserver = function(e) {
|
|
31274
31283
|
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
@@ -31285,23 +31294,23 @@ var YR = 20, XR = [
|
|
|
31285
31294
|
return e.broadcastActive();
|
|
31286
31295
|
}), e.length > 0;
|
|
31287
31296
|
}, e.prototype.connect_ = function() {
|
|
31288
|
-
!
|
|
31297
|
+
!GR || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), QR ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
31289
31298
|
attributes: !0,
|
|
31290
31299
|
childList: !0,
|
|
31291
31300
|
characterData: !0,
|
|
31292
31301
|
subtree: !0
|
|
31293
31302
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
31294
31303
|
}, e.prototype.disconnect_ = function() {
|
|
31295
|
-
!
|
|
31304
|
+
!GR || !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);
|
|
31296
31305
|
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
31297
31306
|
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
31298
|
-
|
|
31307
|
+
ZR.some(function(e) {
|
|
31299
31308
|
return !!~n.indexOf(e);
|
|
31300
31309
|
}) && this.refresh();
|
|
31301
31310
|
}, e.getInstance = function() {
|
|
31302
31311
|
return this.instance_ ||= new e(), this.instance_;
|
|
31303
31312
|
}, e.instance_ = null, e;
|
|
31304
|
-
}(),
|
|
31313
|
+
}(), ez = (function(e, t) {
|
|
31305
31314
|
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
31306
31315
|
var i = r[n];
|
|
31307
31316
|
Object.defineProperty(e, i, {
|
|
@@ -31312,19 +31321,19 @@ var YR = 20, XR = [
|
|
|
31312
31321
|
});
|
|
31313
31322
|
}
|
|
31314
31323
|
return e;
|
|
31315
|
-
}),
|
|
31316
|
-
return e && e.ownerDocument && e.ownerDocument.defaultView ||
|
|
31317
|
-
}),
|
|
31318
|
-
function
|
|
31324
|
+
}), tz = (function(e) {
|
|
31325
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || KR;
|
|
31326
|
+
}), nz = fz(0, 0, 0, 0);
|
|
31327
|
+
function rz(e) {
|
|
31319
31328
|
return parseFloat(e) || 0;
|
|
31320
31329
|
}
|
|
31321
|
-
function
|
|
31330
|
+
function iz(e) {
|
|
31322
31331
|
return [...arguments].slice(1).reduce(function(t, n) {
|
|
31323
31332
|
var r = e["border-" + n + "-width"];
|
|
31324
|
-
return t +
|
|
31333
|
+
return t + rz(r);
|
|
31325
31334
|
}, 0);
|
|
31326
31335
|
}
|
|
31327
|
-
function
|
|
31336
|
+
function az(e) {
|
|
31328
31337
|
for (var t = [
|
|
31329
31338
|
"top",
|
|
31330
31339
|
"right",
|
|
@@ -31332,40 +31341,40 @@ function iz(e) {
|
|
|
31332
31341
|
"left"
|
|
31333
31342
|
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
31334
31343
|
var a = i[r], o = e["padding-" + a];
|
|
31335
|
-
n[a] =
|
|
31344
|
+
n[a] = rz(o);
|
|
31336
31345
|
}
|
|
31337
31346
|
return n;
|
|
31338
31347
|
}
|
|
31339
|
-
function
|
|
31348
|
+
function oz(e) {
|
|
31340
31349
|
var t = e.getBBox();
|
|
31341
|
-
return
|
|
31350
|
+
return fz(0, 0, t.width, t.height);
|
|
31342
31351
|
}
|
|
31343
|
-
function
|
|
31352
|
+
function sz(e) {
|
|
31344
31353
|
var t = e.clientWidth, n = e.clientHeight;
|
|
31345
|
-
if (!t && !n) return
|
|
31346
|
-
var r =
|
|
31347
|
-
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -=
|
|
31354
|
+
if (!t && !n) return nz;
|
|
31355
|
+
var r = tz(e).getComputedStyle(e), i = az(r), a = i.left + i.right, o = i.top + i.bottom, s = rz(r.width), c = rz(r.height);
|
|
31356
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= iz(r, "left", "right") + a), Math.round(c + o) !== n && (c -= iz(r, "top", "bottom") + o)), !lz(e)) {
|
|
31348
31357
|
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
31349
31358
|
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
31350
31359
|
}
|
|
31351
|
-
return
|
|
31360
|
+
return fz(i.left, i.top, s, c);
|
|
31352
31361
|
}
|
|
31353
|
-
var
|
|
31362
|
+
var cz = (function() {
|
|
31354
31363
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
31355
|
-
return e instanceof
|
|
31364
|
+
return e instanceof tz(e).SVGGraphicsElement;
|
|
31356
31365
|
} : function(e) {
|
|
31357
|
-
return e instanceof
|
|
31366
|
+
return e instanceof tz(e).SVGElement && typeof e.getBBox == "function";
|
|
31358
31367
|
};
|
|
31359
31368
|
})();
|
|
31360
|
-
function cz(e) {
|
|
31361
|
-
return e === ez(e).document.documentElement;
|
|
31362
|
-
}
|
|
31363
31369
|
function lz(e) {
|
|
31364
|
-
return
|
|
31370
|
+
return e === tz(e).document.documentElement;
|
|
31365
31371
|
}
|
|
31366
31372
|
function uz(e) {
|
|
31373
|
+
return GR ? cz(e) ? oz(e) : sz(e) : nz;
|
|
31374
|
+
}
|
|
31375
|
+
function dz(e) {
|
|
31367
31376
|
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
31368
|
-
return
|
|
31377
|
+
return ez(a, {
|
|
31369
31378
|
x: t,
|
|
31370
31379
|
y: n,
|
|
31371
31380
|
width: r,
|
|
@@ -31376,7 +31385,7 @@ function uz(e) {
|
|
|
31376
31385
|
left: t
|
|
31377
31386
|
}), a;
|
|
31378
31387
|
}
|
|
31379
|
-
function
|
|
31388
|
+
function fz(e, t, n, r) {
|
|
31380
31389
|
return {
|
|
31381
31390
|
x: e,
|
|
31382
31391
|
y: t,
|
|
@@ -31384,42 +31393,42 @@ function dz(e, t, n, r) {
|
|
|
31384
31393
|
height: r
|
|
31385
31394
|
};
|
|
31386
31395
|
}
|
|
31387
|
-
var
|
|
31396
|
+
var pz = function() {
|
|
31388
31397
|
function e(e) {
|
|
31389
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
31398
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = fz(0, 0, 0, 0), this.target = e;
|
|
31390
31399
|
}
|
|
31391
31400
|
return e.prototype.isActive = function() {
|
|
31392
|
-
var e =
|
|
31401
|
+
var e = uz(this.target);
|
|
31393
31402
|
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
31394
31403
|
}, e.prototype.broadcastRect = function() {
|
|
31395
31404
|
var e = this.contentRect_;
|
|
31396
31405
|
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
31397
31406
|
}, e;
|
|
31398
|
-
}(),
|
|
31407
|
+
}(), mz = function() {
|
|
31399
31408
|
function e(e, t) {
|
|
31400
|
-
var n =
|
|
31401
|
-
|
|
31409
|
+
var n = dz(t);
|
|
31410
|
+
ez(this, {
|
|
31402
31411
|
target: e,
|
|
31403
31412
|
contentRect: n
|
|
31404
31413
|
});
|
|
31405
31414
|
}
|
|
31406
31415
|
return e;
|
|
31407
|
-
}(),
|
|
31416
|
+
}(), hz = function() {
|
|
31408
31417
|
function e(e, t, n) {
|
|
31409
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
31418
|
+
if (this.activeObservations_ = [], this.observations_ = new WR(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
31410
31419
|
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
31411
31420
|
}
|
|
31412
31421
|
return e.prototype.observe = function(e) {
|
|
31413
31422
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
31414
31423
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
31415
|
-
if (!(e instanceof
|
|
31424
|
+
if (!(e instanceof tz(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
31416
31425
|
var t = this.observations_;
|
|
31417
|
-
t.has(e) || (t.set(e, new
|
|
31426
|
+
t.has(e) || (t.set(e, new pz(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
31418
31427
|
}
|
|
31419
31428
|
}, e.prototype.unobserve = function(e) {
|
|
31420
31429
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
31421
31430
|
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
31422
|
-
if (!(e instanceof
|
|
31431
|
+
if (!(e instanceof tz(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
31423
31432
|
var t = this.observations_;
|
|
31424
31433
|
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
31425
31434
|
}
|
|
@@ -31433,7 +31442,7 @@ var fz = function() {
|
|
|
31433
31442
|
}, e.prototype.broadcastActive = function() {
|
|
31434
31443
|
if (this.hasActive()) {
|
|
31435
31444
|
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
31436
|
-
return new
|
|
31445
|
+
return new mz(e.target, e.broadcastRect());
|
|
31437
31446
|
});
|
|
31438
31447
|
this.callback_.call(e, t, e), this.clearActive();
|
|
31439
31448
|
}
|
|
@@ -31442,12 +31451,12 @@ var fz = function() {
|
|
|
31442
31451
|
}, e.prototype.hasActive = function() {
|
|
31443
31452
|
return this.activeObservations_.length > 0;
|
|
31444
31453
|
}, e;
|
|
31445
|
-
}(),
|
|
31454
|
+
}(), gz = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new WR(), _z = function() {
|
|
31446
31455
|
function e(t) {
|
|
31447
31456
|
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
31448
31457
|
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
31449
|
-
var n = new
|
|
31450
|
-
|
|
31458
|
+
var n = new hz(t, $R.getInstance(), this);
|
|
31459
|
+
gz.set(this, n);
|
|
31451
31460
|
}
|
|
31452
31461
|
return e;
|
|
31453
31462
|
}();
|
|
@@ -31456,27 +31465,27 @@ var fz = function() {
|
|
|
31456
31465
|
"unobserve",
|
|
31457
31466
|
"disconnect"
|
|
31458
31467
|
].forEach(function(e) {
|
|
31459
|
-
|
|
31468
|
+
_z.prototype[e] = function() {
|
|
31460
31469
|
var t;
|
|
31461
|
-
return (t =
|
|
31470
|
+
return (t = gz.get(this))[e].apply(t, arguments);
|
|
31462
31471
|
};
|
|
31463
31472
|
});
|
|
31464
|
-
var
|
|
31465
|
-
return
|
|
31466
|
-
})(),
|
|
31473
|
+
var vz = (function() {
|
|
31474
|
+
return KR.ResizeObserver === void 0 ? _z : KR.ResizeObserver;
|
|
31475
|
+
})(), yz = [
|
|
31467
31476
|
"client",
|
|
31468
31477
|
"offset",
|
|
31469
31478
|
"scroll",
|
|
31470
31479
|
"bounds",
|
|
31471
31480
|
"margin"
|
|
31472
31481
|
];
|
|
31473
|
-
function
|
|
31482
|
+
function bz(e) {
|
|
31474
31483
|
var t = [];
|
|
31475
|
-
return
|
|
31484
|
+
return yz.forEach(function(n) {
|
|
31476
31485
|
e[n] && t.push(n);
|
|
31477
31486
|
}), t;
|
|
31478
31487
|
}
|
|
31479
|
-
function
|
|
31488
|
+
function xz(e, t) {
|
|
31480
31489
|
var n = {};
|
|
31481
31490
|
if (t.indexOf("client") > -1 && (n.client = {
|
|
31482
31491
|
top: e.clientTop,
|
|
@@ -31515,14 +31524,14 @@ function bz(e, t) {
|
|
|
31515
31524
|
}
|
|
31516
31525
|
return n;
|
|
31517
31526
|
}
|
|
31518
|
-
function
|
|
31527
|
+
function Sz(e) {
|
|
31519
31528
|
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
31520
31529
|
}
|
|
31521
|
-
function
|
|
31530
|
+
function Cz(e) {
|
|
31522
31531
|
return function(t) {
|
|
31523
31532
|
var n, r;
|
|
31524
31533
|
return r = n = /*#__PURE__*/ function(n) {
|
|
31525
|
-
|
|
31534
|
+
UR(r, n);
|
|
31526
31535
|
function r() {
|
|
31527
31536
|
var t, r = [...arguments];
|
|
31528
31537
|
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
@@ -31533,24 +31542,24 @@ function Sz(e) {
|
|
|
31533
31542
|
bounds: {},
|
|
31534
31543
|
margin: {}
|
|
31535
31544
|
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
31536
|
-
var r =
|
|
31545
|
+
var r = xz(t._node, e || bz(t.props));
|
|
31537
31546
|
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
31538
31547
|
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
31539
31548
|
});
|
|
31540
31549
|
}, t._handleRef = function(e) {
|
|
31541
|
-
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window =
|
|
31550
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = Sz(t._node);
|
|
31542
31551
|
var n = t.props.innerRef;
|
|
31543
31552
|
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
31544
31553
|
}, t;
|
|
31545
31554
|
}
|
|
31546
31555
|
var i = r.prototype;
|
|
31547
31556
|
return i.componentDidMount = function() {
|
|
31548
|
-
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new
|
|
31557
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new vz(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(xz(this._node, e || bz(this.props))));
|
|
31549
31558
|
}, i.componentWillUnmount = function() {
|
|
31550
31559
|
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
31551
31560
|
}, i.render = function() {
|
|
31552
31561
|
var e = this.props;
|
|
31553
|
-
return e.innerRef, e.onResize, ot(t,
|
|
31562
|
+
return e.innerRef, e.onResize, ot(t, BR({}, VR(e, ["innerRef", "onResize"]), {
|
|
31554
31563
|
measureRef: this._handleRef,
|
|
31555
31564
|
measure: this.measure,
|
|
31556
31565
|
contentRect: this.state.contentRect
|
|
@@ -31567,7 +31576,7 @@ function Sz(e) {
|
|
|
31567
31576
|
}, r;
|
|
31568
31577
|
};
|
|
31569
31578
|
}
|
|
31570
|
-
var
|
|
31579
|
+
var wz = Cz()(function(e) {
|
|
31571
31580
|
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
31572
31581
|
return i({
|
|
31573
31582
|
measure: t,
|
|
@@ -31575,10 +31584,10 @@ var Cz = Sz()(function(e) {
|
|
|
31575
31584
|
contentRect: r
|
|
31576
31585
|
});
|
|
31577
31586
|
});
|
|
31578
|
-
|
|
31587
|
+
wz.displayName = "Measure", wz.propTypes.children = z.default.func;
|
|
31579
31588
|
//#endregion
|
|
31580
31589
|
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
31581
|
-
var
|
|
31590
|
+
var Tz = D("div")(() => ({
|
|
31582
31591
|
backgroundColor: T.white(),
|
|
31583
31592
|
border: `2px solid ${T.border()}`,
|
|
31584
31593
|
display: "flex",
|
|
@@ -31588,7 +31597,7 @@ var wz = D("div")(() => ({
|
|
|
31588
31597
|
maxWidth: "300px",
|
|
31589
31598
|
padding: "20px 4px 4px 20px",
|
|
31590
31599
|
zIndex: 99
|
|
31591
|
-
})),
|
|
31600
|
+
})), Ez = class extends k.Component {
|
|
31592
31601
|
static propTypes = {
|
|
31593
31602
|
className: z.default.string,
|
|
31594
31603
|
children: z.default.oneOfType([z.default.arrayOf(z.default.node), z.default.node]).isRequired
|
|
@@ -31596,19 +31605,19 @@ var wz = D("div")(() => ({
|
|
|
31596
31605
|
static defaultProps = {};
|
|
31597
31606
|
render() {
|
|
31598
31607
|
let { className: e, children: t } = this.props;
|
|
31599
|
-
return /* @__PURE__ */ A(
|
|
31608
|
+
return /* @__PURE__ */ A(Tz, {
|
|
31600
31609
|
className: e,
|
|
31601
31610
|
children: t
|
|
31602
31611
|
});
|
|
31603
31612
|
}
|
|
31604
|
-
},
|
|
31613
|
+
}, Dz = Re({
|
|
31605
31614
|
typography: { fontFamily: "inherit" },
|
|
31606
31615
|
components: { MuiButton: { styleOverrides: { contained: {
|
|
31607
31616
|
backgroundColor: "#e0e0e0",
|
|
31608
31617
|
color: "#000000",
|
|
31609
31618
|
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
31610
31619
|
} } } }
|
|
31611
|
-
}),
|
|
31620
|
+
}), Oz = class extends k.Component {
|
|
31612
31621
|
static propTypes = {
|
|
31613
31622
|
children: z.default.oneOfType([
|
|
31614
31623
|
z.default.string,
|
|
@@ -31641,19 +31650,19 @@ var wz = D("div")(() => ({
|
|
|
31641
31650
|
return /* @__PURE__ */ A(Be, {
|
|
31642
31651
|
injectFirst: !0,
|
|
31643
31652
|
children: /* @__PURE__ */ A(ke, {
|
|
31644
|
-
theme:
|
|
31645
|
-
children: /* @__PURE__ */ A(
|
|
31653
|
+
theme: Dz,
|
|
31654
|
+
children: /* @__PURE__ */ A(wz, {
|
|
31646
31655
|
bounds: !0,
|
|
31647
31656
|
onResize: this.onResize,
|
|
31648
31657
|
children: ({ measureRef: e }) => {
|
|
31649
|
-
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ A(
|
|
31658
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ A(Ez, {
|
|
31650
31659
|
className: "settings-box",
|
|
31651
31660
|
children: n
|
|
31652
31661
|
}) : n;
|
|
31653
31662
|
return /* @__PURE__ */ j("div", {
|
|
31654
31663
|
ref: e,
|
|
31655
31664
|
className: "main-container extraCSSRules",
|
|
31656
|
-
children: [a?.rules ? /* @__PURE__ */ A("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ A(
|
|
31665
|
+
children: [a?.rules ? /* @__PURE__ */ A("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ A(zR, {
|
|
31657
31666
|
mode: o,
|
|
31658
31667
|
secondary: s,
|
|
31659
31668
|
dimensions: i,
|
|
@@ -31665,41 +31674,41 @@ var wz = D("div")(() => ({
|
|
|
31665
31674
|
})
|
|
31666
31675
|
});
|
|
31667
31676
|
}
|
|
31668
|
-
},
|
|
31669
|
-
ConfigLayout: () =>
|
|
31670
|
-
LayoutContents: () =>
|
|
31671
|
-
}),
|
|
31677
|
+
}, kz = Cz("bounds")(Oz), Az = /* @__PURE__ */ NR({
|
|
31678
|
+
ConfigLayout: () => kz,
|
|
31679
|
+
LayoutContents: () => zR
|
|
31680
|
+
}), jz = E(/*#__PURE__*/ A("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), Mz = E(/*#__PURE__*/ A("path", { d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4" }), "HelpOutline"), Nz = D("div")({
|
|
31672
31681
|
display: "flex",
|
|
31673
31682
|
justifyContent: "space-between"
|
|
31674
|
-
}),
|
|
31683
|
+
}), Pz = D("div")({
|
|
31675
31684
|
display: "flex",
|
|
31676
31685
|
alignItems: "center"
|
|
31677
|
-
}),
|
|
31686
|
+
}), Fz = D(Ot)({
|
|
31678
31687
|
margin: 0,
|
|
31679
31688
|
padding: 0
|
|
31680
|
-
}),
|
|
31689
|
+
}), Iz = D(ta)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": { fontSize: e.typography.fontSize - 2 } })), Lz = (e) => {
|
|
31681
31690
|
let { header: t, children: n, mini: r, info: i } = e;
|
|
31682
|
-
return /* @__PURE__ */ j(
|
|
31691
|
+
return /* @__PURE__ */ j(Nz, { children: [/* @__PURE__ */ j(Pz, { children: [/* @__PURE__ */ A(_, {
|
|
31683
31692
|
variant: r ? "h6" : "h5",
|
|
31684
31693
|
children: t
|
|
31685
|
-
}), i] }), n && /* @__PURE__ */ A(
|
|
31694
|
+
}), i] }), n && /* @__PURE__ */ A(Iz, {
|
|
31686
31695
|
title: n,
|
|
31687
|
-
children: /* @__PURE__ */ A(
|
|
31696
|
+
children: /* @__PURE__ */ A(Fz, {
|
|
31688
31697
|
"aria-label": "Delete",
|
|
31689
31698
|
size: "large",
|
|
31690
|
-
children: /* @__PURE__ */ A(
|
|
31699
|
+
children: /* @__PURE__ */ A(Mz, {})
|
|
31691
31700
|
})
|
|
31692
31701
|
})] });
|
|
31693
31702
|
};
|
|
31694
|
-
|
|
31703
|
+
Lz.propTypes = {
|
|
31695
31704
|
mini: z.default.bool,
|
|
31696
31705
|
header: z.default.string,
|
|
31697
31706
|
children: z.default.node,
|
|
31698
31707
|
info: z.default.any
|
|
31699
|
-
}, D(
|
|
31708
|
+
}, D(jR)(({ theme: e }) => ({ marginLeft: e.spacing(1) }));
|
|
31700
31709
|
//#endregion
|
|
31701
31710
|
//#region src/author/number-text-field.tsx
|
|
31702
|
-
var
|
|
31711
|
+
var Rz = D(jR)({
|
|
31703
31712
|
maxWidth: "120px",
|
|
31704
31713
|
width: "120px",
|
|
31705
31714
|
marginTop: "0",
|
|
@@ -31710,25 +31719,25 @@ var Lz = D(AR)({
|
|
|
31710
31719
|
"& [class^=\"MuiInputBase-input\"]": { padding: "18.5px 14px" }
|
|
31711
31720
|
});
|
|
31712
31721
|
k.Component;
|
|
31713
|
-
var
|
|
31722
|
+
var zz = k.forwardRef((e, t) => /* @__PURE__ */ A(Rz, {
|
|
31714
31723
|
...e,
|
|
31715
31724
|
ref: t,
|
|
31716
31725
|
variant: "outlined"
|
|
31717
|
-
})),
|
|
31726
|
+
})), Bz = D("div")({
|
|
31718
31727
|
alignItems: "center",
|
|
31719
31728
|
display: "flex",
|
|
31720
31729
|
gap: "20px"
|
|
31721
|
-
}),
|
|
31730
|
+
}), Vz = D("div")({ margin: "12px 0" }), Hz = D("label")({
|
|
31722
31731
|
display: "block",
|
|
31723
31732
|
marginBottom: "4px"
|
|
31724
|
-
}),
|
|
31733
|
+
}), Uz = D(Te)({
|
|
31725
31734
|
width: "80px",
|
|
31726
31735
|
alignItems: "center",
|
|
31727
31736
|
height: "40px",
|
|
31728
31737
|
verticalAlign: "top",
|
|
31729
31738
|
marginBottom: "8px",
|
|
31730
31739
|
"& .MuiSelect-select": { paddingLeft: "10px" }
|
|
31731
|
-
}),
|
|
31740
|
+
}), Wz = D("div")({ marginLeft: "-15px" }), Gz = D("span")({ verticalAlign: "middle" }), Kz = class extends k.Component {
|
|
31732
31741
|
static propTypes = {
|
|
31733
31742
|
model: z.default.object.isRequired,
|
|
31734
31743
|
onChange: z.default.func,
|
|
@@ -31748,10 +31757,10 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31748
31757
|
render() {
|
|
31749
31758
|
let { model: e, modelOptions: t } = this.props, { maxOfModel: n, partsPerModel: r, modelTypeChoices: i } = t;
|
|
31750
31759
|
return /* @__PURE__ */ j("div", { children: [
|
|
31751
|
-
/* @__PURE__ */ A(
|
|
31760
|
+
/* @__PURE__ */ A(Lz, { header: "Configure Fraction Model" }),
|
|
31752
31761
|
/* @__PURE__ */ A("br", {}),
|
|
31753
|
-
/* @__PURE__ */ j(
|
|
31754
|
-
/* @__PURE__ */ j(
|
|
31762
|
+
/* @__PURE__ */ j(Bz, { children: [
|
|
31763
|
+
/* @__PURE__ */ j(Vz, { children: [/* @__PURE__ */ A(Hz, { children: "Model Type" }), /* @__PURE__ */ A(Uz, {
|
|
31755
31764
|
onChange: this.handleSelect,
|
|
31756
31765
|
value: e.modelTypeSelected,
|
|
31757
31766
|
MenuProps: { transitionDuration: {
|
|
@@ -31763,14 +31772,14 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31763
31772
|
children: e.label
|
|
31764
31773
|
}, "item_" + t))
|
|
31765
31774
|
})] }),
|
|
31766
|
-
/* @__PURE__ */ j(
|
|
31775
|
+
/* @__PURE__ */ j(Vz, { children: [/* @__PURE__ */ A(Hz, { children: "Max # of Models" }), /* @__PURE__ */ A(zz, {
|
|
31767
31776
|
min: n.min,
|
|
31768
31777
|
max: n.max,
|
|
31769
31778
|
value: e.maxModelSelected,
|
|
31770
31779
|
name: "max-model",
|
|
31771
31780
|
onChange: this.changeMaxModel
|
|
31772
31781
|
})] }),
|
|
31773
|
-
/* @__PURE__ */ j(
|
|
31782
|
+
/* @__PURE__ */ j(Vz, { children: [/* @__PURE__ */ A(Hz, { children: "Parts per Model" }), /* @__PURE__ */ A(zz, {
|
|
31774
31783
|
min: r.min,
|
|
31775
31784
|
max: r.max,
|
|
31776
31785
|
value: e.partsPerModel,
|
|
@@ -31778,22 +31787,22 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31778
31787
|
onChange: this.changePartModel
|
|
31779
31788
|
})] })
|
|
31780
31789
|
] }),
|
|
31781
|
-
/* @__PURE__ */ j(
|
|
31790
|
+
/* @__PURE__ */ j(Wz, { children: [/* @__PURE__ */ A(wR, {
|
|
31782
31791
|
onChange: this.studentConfig,
|
|
31783
31792
|
checked: e.allowedStudentConfig,
|
|
31784
31793
|
label: ""
|
|
31785
|
-
}), /* @__PURE__ */ A(
|
|
31794
|
+
}), /* @__PURE__ */ A(Gz, { children: "Allow student to configure number of models and parts per model" })] })
|
|
31786
31795
|
] });
|
|
31787
31796
|
}
|
|
31788
|
-
},
|
|
31797
|
+
}, qz = D(DR)(({ theme: e }) => ({ marginBottom: e.spacing(4) })), Jz = D(ta)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
31789
31798
|
fontSize: e.typography.fontSize - 2,
|
|
31790
31799
|
whiteSpace: "pre",
|
|
31791
31800
|
maxWidth: "500px"
|
|
31792
|
-
} })),
|
|
31801
|
+
} })), Yz = D("div")(({ theme: e }) => ({
|
|
31793
31802
|
fontSize: e.typography.fontSize - 2,
|
|
31794
31803
|
color: e.palette.error.main,
|
|
31795
31804
|
marginTop: e.spacing(1)
|
|
31796
|
-
})),
|
|
31805
|
+
})), Xz = D("div")(({ theme: e, hasError: t }) => ({ ...t && { border: `2px solid ${e.palette.error.main}` } })), Zz = D("label")(({ theme: e }) => ({ marginBottom: e.spacing(4) })), Qz = class extends k.Component {
|
|
31797
31806
|
static propTypes = {
|
|
31798
31807
|
model: z.default.object.isRequired,
|
|
31799
31808
|
configuration: z.default.object.isRequired,
|
|
@@ -31826,15 +31835,15 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31826
31835
|
...a,
|
|
31827
31836
|
...e
|
|
31828
31837
|
}), v = this.generateRandomKey();
|
|
31829
|
-
return /* @__PURE__ */ j(
|
|
31838
|
+
return /* @__PURE__ */ j(Az.ConfigLayout, {
|
|
31830
31839
|
extraCSSRules: f,
|
|
31831
31840
|
dimensions: o,
|
|
31832
31841
|
hideSettings: !0,
|
|
31833
31842
|
children: [
|
|
31834
|
-
/* @__PURE__ */ A(
|
|
31835
|
-
/* @__PURE__ */ A(
|
|
31843
|
+
/* @__PURE__ */ A(Lz, { header: "Set Up" }),
|
|
31844
|
+
/* @__PURE__ */ A(qz, {
|
|
31836
31845
|
label: s?.label || "Title",
|
|
31837
|
-
children: /* @__PURE__ */ A(
|
|
31846
|
+
children: /* @__PURE__ */ A(yR, {
|
|
31838
31847
|
markup: e.title || "",
|
|
31839
31848
|
onChange: (e) => t({ title: e }),
|
|
31840
31849
|
toolbarOpts: g,
|
|
@@ -31856,9 +31865,9 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31856
31865
|
mathMlOptions: u
|
|
31857
31866
|
})
|
|
31858
31867
|
}),
|
|
31859
|
-
/* @__PURE__ */ A(
|
|
31868
|
+
/* @__PURE__ */ A(qz, {
|
|
31860
31869
|
label: c?.label || "Question",
|
|
31861
|
-
children: /* @__PURE__ */ A(
|
|
31870
|
+
children: /* @__PURE__ */ A(yR, {
|
|
31862
31871
|
markup: e.prompt || "",
|
|
31863
31872
|
minHeight: 60,
|
|
31864
31873
|
onChange: (e) => t({ prompt: e }),
|
|
@@ -31871,21 +31880,21 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31871
31880
|
mathMlOptions: u
|
|
31872
31881
|
})
|
|
31873
31882
|
}),
|
|
31874
|
-
/* @__PURE__ */ A(
|
|
31883
|
+
/* @__PURE__ */ A(DR, { children: /* @__PURE__ */ A(Kz, {
|
|
31875
31884
|
model: e,
|
|
31876
31885
|
onChange: this.onModelOptionsChange,
|
|
31877
31886
|
modelOptions: l
|
|
31878
31887
|
}) }),
|
|
31879
|
-
/* @__PURE__ */ j(
|
|
31888
|
+
/* @__PURE__ */ j(DR, { children: [
|
|
31880
31889
|
" ",
|
|
31881
|
-
/* @__PURE__ */ A(
|
|
31890
|
+
/* @__PURE__ */ A(Lz, {
|
|
31882
31891
|
header: "Correct Answer",
|
|
31883
|
-
info: /* @__PURE__ */ A(
|
|
31892
|
+
info: /* @__PURE__ */ A(Jz, {
|
|
31884
31893
|
disableFocusListener: !0,
|
|
31885
31894
|
disableTouchListener: !0,
|
|
31886
31895
|
placement: "right",
|
|
31887
31896
|
title: "The correct answer should include no more than one partially-filled model",
|
|
31888
|
-
children: /* @__PURE__ */ A(
|
|
31897
|
+
children: /* @__PURE__ */ A(jz, {
|
|
31889
31898
|
fontSize: "small",
|
|
31890
31899
|
color: "primary",
|
|
31891
31900
|
style: { marginLeft: "8px" }
|
|
@@ -31893,9 +31902,9 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31893
31902
|
})
|
|
31894
31903
|
}),
|
|
31895
31904
|
/* @__PURE__ */ A("br", {}),
|
|
31896
|
-
/* @__PURE__ */ A(
|
|
31905
|
+
/* @__PURE__ */ A(Zz, { children: "Click/touch the number of parts to represent the correct fraction model" }),
|
|
31897
31906
|
/* @__PURE__ */ A("br", {}),
|
|
31898
|
-
/* @__PURE__ */ A(
|
|
31907
|
+
/* @__PURE__ */ A(Xz, {
|
|
31899
31908
|
hasError: !!d.correctResponse,
|
|
31900
31909
|
children: /* @__PURE__ */ A(Ne, {
|
|
31901
31910
|
value: e.correctResponse,
|
|
@@ -31906,7 +31915,7 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31906
31915
|
onChange: this.onCorrectAnswerChange
|
|
31907
31916
|
}, v)
|
|
31908
31917
|
}),
|
|
31909
|
-
d.correctResponse && /* @__PURE__ */ A(
|
|
31918
|
+
d.correctResponse && /* @__PURE__ */ A(Yz, { children: d.correctResponse })
|
|
31910
31919
|
] }),
|
|
31911
31920
|
/* @__PURE__ */ A(De, {
|
|
31912
31921
|
open: h.open,
|
|
@@ -31926,7 +31935,7 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31926
31935
|
]
|
|
31927
31936
|
});
|
|
31928
31937
|
}
|
|
31929
|
-
},
|
|
31938
|
+
}, $z = class e extends CustomEvent {
|
|
31930
31939
|
static {
|
|
31931
31940
|
this.TYPE = "model.updated";
|
|
31932
31941
|
}
|
|
@@ -31939,7 +31948,7 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31939
31948
|
}
|
|
31940
31949
|
}), this.update = t, this.reset = n;
|
|
31941
31950
|
}
|
|
31942
|
-
},
|
|
31951
|
+
}, eB = class e extends CustomEvent {
|
|
31943
31952
|
static {
|
|
31944
31953
|
this.TYPE = "delete.image";
|
|
31945
31954
|
}
|
|
@@ -31952,7 +31961,7 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31952
31961
|
}
|
|
31953
31962
|
}), this.src = t, this.done = n;
|
|
31954
31963
|
}
|
|
31955
|
-
},
|
|
31964
|
+
}, tB = class e extends CustomEvent {
|
|
31956
31965
|
static {
|
|
31957
31966
|
this.TYPE = "insert.image";
|
|
31958
31967
|
}
|
|
@@ -31962,7 +31971,7 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31962
31971
|
detail: t
|
|
31963
31972
|
}), this.handler = t;
|
|
31964
31973
|
}
|
|
31965
|
-
},
|
|
31974
|
+
}, nB = class e extends CustomEvent {
|
|
31966
31975
|
static {
|
|
31967
31976
|
this.TYPE = "delete.sound";
|
|
31968
31977
|
}
|
|
@@ -31975,7 +31984,7 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31975
31984
|
}
|
|
31976
31985
|
}), this.src = t, this.done = n;
|
|
31977
31986
|
}
|
|
31978
|
-
},
|
|
31987
|
+
}, rB = class e extends CustomEvent {
|
|
31979
31988
|
static {
|
|
31980
31989
|
this.TYPE = "insert.sound";
|
|
31981
31990
|
}
|
|
@@ -31985,7 +31994,7 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
31985
31994
|
detail: t
|
|
31986
31995
|
}), this.handler = t;
|
|
31987
31996
|
}
|
|
31988
|
-
},
|
|
31997
|
+
}, iB = {
|
|
31989
31998
|
model: {
|
|
31990
31999
|
correctResponse: [],
|
|
31991
32000
|
title: "",
|
|
@@ -32065,24 +32074,24 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
32065
32074
|
},
|
|
32066
32075
|
settingsPanelDisabled: !0
|
|
32067
32076
|
}
|
|
32068
|
-
},
|
|
32077
|
+
}, aB = class e extends HTMLElement {
|
|
32069
32078
|
static createDefaultModel = (e = {}) => {
|
|
32070
|
-
let t =
|
|
32079
|
+
let t = iB.configuration, n = e.language || "";
|
|
32071
32080
|
return !n && t.language && t.language.enabled && t.languageChoices?.options?.length && (n = t.languageChoices.options[0].value), {
|
|
32072
|
-
...
|
|
32081
|
+
...iB.model,
|
|
32073
32082
|
...e,
|
|
32074
32083
|
language: n
|
|
32075
32084
|
};
|
|
32076
32085
|
};
|
|
32077
32086
|
constructor() {
|
|
32078
|
-
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration =
|
|
32087
|
+
super(), this._root = null, this._model = e.createDefaultModel(), this._configuration = iB.configuration;
|
|
32079
32088
|
}
|
|
32080
32089
|
set model(t) {
|
|
32081
32090
|
this._model = e.createDefaultModel(t), this.render();
|
|
32082
32091
|
}
|
|
32083
32092
|
set configuration(e) {
|
|
32084
32093
|
let t = {
|
|
32085
|
-
...
|
|
32094
|
+
...iB.configuration,
|
|
32086
32095
|
...e
|
|
32087
32096
|
};
|
|
32088
32097
|
this._configuration = t, this.resetModelAfterConfigurationIsSet(), t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
|
|
@@ -32098,32 +32107,32 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
32098
32107
|
this.render();
|
|
32099
32108
|
}
|
|
32100
32109
|
modelChanged(e) {
|
|
32101
|
-
this._model = e, this.dispatchEvent(new
|
|
32110
|
+
this._model = e, this.dispatchEvent(new $z(this._model), !0), this.render();
|
|
32102
32111
|
}
|
|
32103
32112
|
onChange = (e) => {
|
|
32104
32113
|
this._model = {
|
|
32105
32114
|
...this._model,
|
|
32106
32115
|
...e
|
|
32107
|
-
}, this.dispatchEvent(new
|
|
32116
|
+
}, this.dispatchEvent(new $z(this._model)), this.render();
|
|
32108
32117
|
};
|
|
32109
32118
|
onConfigurationChanged(e) {
|
|
32110
32119
|
this._configuration = e, this.render();
|
|
32111
32120
|
}
|
|
32112
32121
|
insertImage(e) {
|
|
32113
|
-
this.dispatchEvent(new
|
|
32122
|
+
this.dispatchEvent(new tB(e));
|
|
32114
32123
|
}
|
|
32115
32124
|
onDeleteImage(e, t) {
|
|
32116
|
-
this.dispatchEvent(new
|
|
32125
|
+
this.dispatchEvent(new eB(e, t));
|
|
32117
32126
|
}
|
|
32118
32127
|
insertSound(e) {
|
|
32119
|
-
this.dispatchEvent(new
|
|
32128
|
+
this.dispatchEvent(new rB(e));
|
|
32120
32129
|
}
|
|
32121
32130
|
onDeleteSound(e, t) {
|
|
32122
|
-
this.dispatchEvent(new
|
|
32131
|
+
this.dispatchEvent(new nB(e, t));
|
|
32123
32132
|
}
|
|
32124
32133
|
render() {
|
|
32125
32134
|
if (this._model) {
|
|
32126
|
-
let e = k.createElement(
|
|
32135
|
+
let e = k.createElement(Qz, {
|
|
32127
32136
|
classes: {},
|
|
32128
32137
|
model: this._model,
|
|
32129
32138
|
configuration: this._configuration,
|
|
@@ -32146,6 +32155,6 @@ var Rz = k.forwardRef((e, t) => /* @__PURE__ */ A(Lz, {
|
|
|
32146
32155
|
}
|
|
32147
32156
|
};
|
|
32148
32157
|
//#endregion
|
|
32149
|
-
export {
|
|
32158
|
+
export { aB as default };
|
|
32150
32159
|
|
|
32151
32160
|
//# sourceMappingURL=index.js.map
|