@pie-element/multiple-choice 13.2.2-next.0 → 13.2.2-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/index.js +23 -23
- package/dist/author/main.js +67 -67
- package/dist/browser/{debounce-PkR6OuzU.js → Radio-D9xGO4mD.js} +2598 -2695
- package/dist/browser/Radio-D9xGO4mD.js.map +1 -0
- package/dist/browser/author/index.js +7819 -8261
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +1 -1
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +9 -8
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/dist-nl5urzAW.js +107 -0
- package/dist/browser/dist-nl5urzAW.js.map +1 -0
- package/dist/browser/{main-CmP4Uwst.js → main-D2qC-1Hm.js} +220 -220
- package/dist/browser/{main-CmP4Uwst.js.map → main-D2qC-1Hm.js.map} +1 -1
- package/dist/browser/print/index.js +11 -16
- package/dist/browser/print/index.js.map +1 -1
- package/dist/controller/index.js +26 -26
- package/dist/controller/utils.js +1 -1
- package/dist/delivery/choice-input.js +73 -73
- package/dist/delivery/index.js +19 -19
- package/dist/delivery/multiple-choice.js +72 -72
- package/dist/index.iife.js +1 -1
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/print/index.js +10 -11
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +12 -8
- package/dist/browser/_Uint8Array-CUOjhemR.js +0 -396
- package/dist/browser/_Uint8Array-CUOjhemR.js.map +0 -1
- package/dist/browser/_baseClone-fFvdZAu5.js +0 -245
- package/dist/browser/_baseClone-fFvdZAu5.js.map +0 -1
- package/dist/browser/debounce-PkR6OuzU.js.map +0 -1
- package/dist/browser/isEqual-CnAlrBXo.js +0 -182
- package/dist/browser/isEqual-CnAlrBXo.js.map +0 -1
- package/dist/browser/isObject-B-uKF3Sg.js +0 -38
- package/dist/browser/isObject-B-uKF3Sg.js.map +0 -1
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +0 -19
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +0 -31
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +0 -50
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +0 -19
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as e, It as t, Rt as n, Vt as r, _t as i, g as a, gt as o, h as s, ht as c, i as l, j as u, n as d, o as f, p, s as m, t as h, w as g, yt as _ } from "./Radio-D9xGO4mD.js";
|
|
2
2
|
import v, { useRef as y } from "react";
|
|
3
3
|
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
4
4
|
//#region ../../lib-react/icons/dist/correct-response-icon.js
|
|
5
|
-
var C = /* @__PURE__ */ r(
|
|
5
|
+
var C = /* @__PURE__ */ r(n(), 1), w = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ S("svg", {
|
|
6
6
|
preserveAspectRatio: "xMinYMin meet",
|
|
7
7
|
version: "1.1",
|
|
8
8
|
viewBox: "-283 359 34 35",
|
|
@@ -73,7 +73,7 @@ T.propTypes = {
|
|
|
73
73
|
fgFill: C.default.string.isRequired,
|
|
74
74
|
borderFill: C.default.string.isRequired
|
|
75
75
|
};
|
|
76
|
-
var E =
|
|
76
|
+
var E = _("div")(({ size: e }) => ({
|
|
77
77
|
width: e || "25px",
|
|
78
78
|
height: e || "25px"
|
|
79
79
|
})), D = ({ open: e, size: t }) => /* @__PURE__ */ x(E, {
|
|
@@ -93,7 +93,7 @@ D.propTypes = {
|
|
|
93
93
|
}, D.defaultProps = { open: !1 };
|
|
94
94
|
//#endregion
|
|
95
95
|
//#region ../../lib-react/correct-answer-toggle/dist/expander.js
|
|
96
|
-
var O = "height ease-in 300ms, opacity ease-in 300ms", k =
|
|
96
|
+
var O = "height ease-in 300ms, opacity ease-in 300ms", k = _("div")(() => ({
|
|
97
97
|
position: "relative",
|
|
98
98
|
height: 0,
|
|
99
99
|
overflow: "hidden",
|
|
@@ -128,9 +128,9 @@ var O = "height ease-in 300ms, opacity ease-in 300ms", k = t("div")(() => ({
|
|
|
128
128
|
width: 0
|
|
129
129
|
}
|
|
130
130
|
})), A = (e) => {
|
|
131
|
-
let { show: t, children: n, className: r } = e,
|
|
132
|
-
return /* @__PURE__ */ x(
|
|
133
|
-
nodeRef:
|
|
131
|
+
let { show: t, children: n, className: r } = e, a = y(null);
|
|
132
|
+
return /* @__PURE__ */ x(i, {
|
|
133
|
+
nodeRef: a,
|
|
134
134
|
in: t,
|
|
135
135
|
appear: !0,
|
|
136
136
|
mountOnEnter: !1,
|
|
@@ -142,7 +142,7 @@ var O = "height ease-in 300ms, opacity ease-in 300ms", k = t("div")(() => ({
|
|
|
142
142
|
exitDone: "exit-done"
|
|
143
143
|
},
|
|
144
144
|
children: /* @__PURE__ */ x(k, {
|
|
145
|
-
ref:
|
|
145
|
+
ref: a,
|
|
146
146
|
className: r,
|
|
147
147
|
children: n
|
|
148
148
|
})
|
|
@@ -244,7 +244,7 @@ var j = {
|
|
|
244
244
|
hideNote: "Hide Note",
|
|
245
245
|
cancel: "Cancel"
|
|
246
246
|
}
|
|
247
|
-
},
|
|
247
|
+
}, M = {
|
|
248
248
|
translation: {
|
|
249
249
|
categorize: {
|
|
250
250
|
limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
|
|
@@ -333,17 +333,17 @@ var j = {
|
|
|
333
333
|
hideNote: "Ocultar Nota",
|
|
334
334
|
cancel: "Cancelar"
|
|
335
335
|
}
|
|
336
|
-
},
|
|
336
|
+
}, N = (e) => typeof e == "string", P = () => {
|
|
337
337
|
let e, t, n = new Promise((n, r) => {
|
|
338
338
|
e = n, t = r;
|
|
339
339
|
});
|
|
340
340
|
return n.resolve = e, n.reject = t, n;
|
|
341
|
-
},
|
|
341
|
+
}, ee = (e) => e == null ? "" : "" + e, te = (e, t, n) => {
|
|
342
342
|
e.forEach((e) => {
|
|
343
343
|
t[e] && (n[e] = t[e]);
|
|
344
344
|
});
|
|
345
|
-
}, ne = /###/g, re = (e) => e && e.indexOf("###") > -1 ? e.replace(ne, ".") : e, ie = (e) => !e ||
|
|
346
|
-
let r =
|
|
345
|
+
}, ne = /###/g, re = (e) => e && e.indexOf("###") > -1 ? e.replace(ne, ".") : e, ie = (e) => !e || N(e), F = (e, t, n) => {
|
|
346
|
+
let r = N(t) ? t.split(".") : t, i = 0;
|
|
347
347
|
for (; i < r.length - 1;) {
|
|
348
348
|
if (ie(e)) return {};
|
|
349
349
|
let t = re(r[i]);
|
|
@@ -372,7 +372,7 @@ var j = {
|
|
|
372
372
|
let r = I(e, n);
|
|
373
373
|
return r === void 0 ? I(t, n) : r;
|
|
374
374
|
}, ce = (e, t, n) => {
|
|
375
|
-
for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ?
|
|
375
|
+
for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? N(e[r]) || e[r] instanceof String || N(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : ce(e[r], t[r], n) : e[r] = t[r]);
|
|
376
376
|
return e;
|
|
377
377
|
}, L = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), le = {
|
|
378
378
|
"&": "&",
|
|
@@ -381,7 +381,7 @@ var j = {
|
|
|
381
381
|
"\"": """,
|
|
382
382
|
"'": "'",
|
|
383
383
|
"/": "/"
|
|
384
|
-
}, ue = (e) =>
|
|
384
|
+
}, ue = (e) => N(e) ? e.replace(/[&<>"'\/]/g, (e) => le[e]) : e, de = class {
|
|
385
385
|
constructor(e) {
|
|
386
386
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
387
387
|
}
|
|
@@ -460,7 +460,7 @@ var j = {
|
|
|
460
460
|
return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
|
|
461
461
|
}
|
|
462
462
|
forward(e, t, n, r) {
|
|
463
|
-
return r && !this.debug ? null : (
|
|
463
|
+
return r && !this.debug ? null : (N(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
464
464
|
}
|
|
465
465
|
create(t) {
|
|
466
466
|
return new e(this.logger, {
|
|
@@ -514,16 +514,16 @@ var j = {
|
|
|
514
514
|
}
|
|
515
515
|
getResource(e, t, n, r = {}) {
|
|
516
516
|
let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
|
|
517
|
-
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) :
|
|
517
|
+
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : N(n) && i ? o.push(...n.split(i)) : o.push(n)));
|
|
518
518
|
let s = I(this.data, o);
|
|
519
|
-
return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !
|
|
519
|
+
return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !N(n) ? s : he(this.data?.[e]?.[t], n, i);
|
|
520
520
|
}
|
|
521
521
|
addResource(e, t, n, r, i = { silent: !1 }) {
|
|
522
522
|
let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
|
|
523
523
|
n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), ae(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
|
|
524
524
|
}
|
|
525
525
|
addResources(e, t, n, r = { silent: !1 }) {
|
|
526
|
-
for (let r in n) (
|
|
526
|
+
for (let r in n) (N(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
|
|
527
527
|
r.silent || this.emit("added", e, t, n);
|
|
528
528
|
}
|
|
529
529
|
addResourceBundle(e, t, n, r, i, a = {
|
|
@@ -580,7 +580,7 @@ function V(e, t) {
|
|
|
580
580
|
}
|
|
581
581
|
return n.join(r);
|
|
582
582
|
}
|
|
583
|
-
var xe = {}, Se = (e) => !
|
|
583
|
+
var xe = {}, Se = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", Ce = class e extends B {
|
|
584
584
|
constructor(e, t = {}) {
|
|
585
585
|
super(), te([
|
|
586
586
|
"resourceStore",
|
|
@@ -611,14 +611,14 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
611
611
|
let t = e.match(this.interpolator.nestingRegexp);
|
|
612
612
|
if (t && t.length > 0) return {
|
|
613
613
|
key: e,
|
|
614
|
-
namespaces:
|
|
614
|
+
namespaces: N(i) ? [i] : i
|
|
615
615
|
};
|
|
616
616
|
let a = e.split(n);
|
|
617
617
|
(n !== r || n === r && this.options.ns.indexOf(a[0]) > -1) && (i = a.shift()), e = a.join(r);
|
|
618
618
|
}
|
|
619
619
|
return {
|
|
620
620
|
key: e,
|
|
621
|
-
namespaces:
|
|
621
|
+
namespaces: N(i) ? [i] : i
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
624
|
translate(t, n, r) {
|
|
@@ -653,10 +653,10 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
653
653
|
"[object Number]",
|
|
654
654
|
"[object Function]",
|
|
655
655
|
"[object RegExp]"
|
|
656
|
-
], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !
|
|
656
|
+
], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !N(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", C = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", w = b && !i.ordinal && i.count === 0, T = w && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${C}`] || i.defaultValue, E = m;
|
|
657
657
|
y && !m && x && (E = T);
|
|
658
658
|
let D = Se(E), O = Object.prototype.toString.apply(E);
|
|
659
|
-
if (y && E && D && _.indexOf(O) < 0 && !(
|
|
659
|
+
if (y && E && D && _.indexOf(O) < 0 && !(N(v) && Array.isArray(E))) {
|
|
660
660
|
if (!i.returnObjects && !this.options.returnObjects) {
|
|
661
661
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
662
662
|
let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, E, {
|
|
@@ -682,7 +682,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
682
682
|
}
|
|
683
683
|
m = t;
|
|
684
684
|
}
|
|
685
|
-
} else if (y &&
|
|
685
|
+
} else if (y && N(v) && Array.isArray(m)) m = m.join(v), m &&= this.extendTranslation(m, t, i, r);
|
|
686
686
|
else {
|
|
687
687
|
let e = !1, n = !1;
|
|
688
688
|
!this.isValidLookup(m) && x && (e = !0, m = T), this.isValidLookup(m) || (n = !0, m = s);
|
|
@@ -726,12 +726,12 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
726
726
|
...n.interpolation
|
|
727
727
|
}
|
|
728
728
|
});
|
|
729
|
-
let a =
|
|
729
|
+
let a = N(e) && (n?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n.interpolation.skipOnVariables), o;
|
|
730
730
|
if (a) {
|
|
731
731
|
let t = e.match(this.interpolator.nestingRegexp);
|
|
732
732
|
o = t && t.length;
|
|
733
733
|
}
|
|
734
|
-
let s = n.replace && !
|
|
734
|
+
let s = n.replace && !N(n.replace) ? n.replace : n;
|
|
735
735
|
if (this.options.interpolation.defaultVariables && (s = {
|
|
736
736
|
...this.options.interpolation.defaultVariables,
|
|
737
737
|
...s
|
|
@@ -741,7 +741,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
741
741
|
}
|
|
742
742
|
!n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
|
|
743
743
|
}
|
|
744
|
-
let a = n.postProcess || this.options.postProcess, o =
|
|
744
|
+
let a = n.postProcess || this.options.postProcess, o = N(a) ? [a] : a;
|
|
745
745
|
return e != null && o?.length && n.applyPostProcessor !== !1 && (e = ve.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
746
746
|
i18nResolved: {
|
|
747
747
|
...r,
|
|
@@ -752,7 +752,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
752
752
|
}
|
|
753
753
|
resolve(e, t = {}) {
|
|
754
754
|
let n, r, i, a, o;
|
|
755
|
-
return
|
|
755
|
+
return N(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? V(e, {
|
|
756
756
|
...this.options,
|
|
757
757
|
...t
|
|
758
758
|
}) : e)), e.forEach((e) => {
|
|
@@ -761,7 +761,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
761
761
|
r = c;
|
|
762
762
|
let l = s.namespaces;
|
|
763
763
|
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
764
|
-
let u = t.count !== void 0 && !
|
|
764
|
+
let u = t.count !== void 0 && !N(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (N(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
765
765
|
l.forEach((e) => {
|
|
766
766
|
this.isValidLookup(n) || (o = e, !xe[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (xe[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
|
|
767
767
|
if (this.isValidLookup(n)) return;
|
|
@@ -812,7 +812,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
812
812
|
"joinArrays",
|
|
813
813
|
"postProcess",
|
|
814
814
|
"interpolation"
|
|
815
|
-
], n = e.replace && !
|
|
815
|
+
], n = e.replace && !N(e.replace), r = n ? e.replace : e;
|
|
816
816
|
if (n && e.count !== void 0 && (r.count = e.count), this.options.interpolation.defaultVariables && (r = {
|
|
817
817
|
...this.options.interpolation.defaultVariables,
|
|
818
818
|
...r
|
|
@@ -841,7 +841,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
841
841
|
return this.formatLanguageCode(t[0]);
|
|
842
842
|
}
|
|
843
843
|
formatLanguageCode(e) {
|
|
844
|
-
if (
|
|
844
|
+
if (N(e) && e.indexOf("-") > -1) {
|
|
845
845
|
let t;
|
|
846
846
|
try {
|
|
847
847
|
t = Intl.getCanonicalLocales(e)[0];
|
|
@@ -873,7 +873,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
873
873
|
}
|
|
874
874
|
getFallbackCodes(e, t) {
|
|
875
875
|
if (!e) return [];
|
|
876
|
-
if (typeof e == "function" && (e = e(t)),
|
|
876
|
+
if (typeof e == "function" && (e = e(t)), N(e) && (e = [e]), Array.isArray(e)) return e;
|
|
877
877
|
if (!t) return e.default || [];
|
|
878
878
|
let n = e[t];
|
|
879
879
|
return n ||= e[this.getScriptPartFromCode(t)], n ||= e[this.formatLanguageCode(t)], n ||= e[this.getLanguagePartFromCode(t)], n ||= e.default, n || [];
|
|
@@ -882,7 +882,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
882
882
|
let n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), r = [], i = (e) => {
|
|
883
883
|
e && (this.isSupportedCode(e) ? r.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
|
|
884
884
|
};
|
|
885
|
-
return
|
|
885
|
+
return N(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : N(e) && i(this.formatLanguageCode(e)), n.forEach((e) => {
|
|
886
886
|
r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
|
|
887
887
|
}), r;
|
|
888
888
|
}
|
|
@@ -937,7 +937,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
937
937
|
}
|
|
938
938
|
}, Oe = (e, t, n, r = ".", i = !0) => {
|
|
939
939
|
let a = se(e, t, n);
|
|
940
|
-
return !a && i &&
|
|
940
|
+
return !a && i && N(n) && (a = he(e, n, r), a === void 0 && (a = he(t, n, r))), a;
|
|
941
941
|
}, ke = (e) => e.replace(/\$/g, "$$$$"), Ae = class {
|
|
942
942
|
constructor(e = {}) {
|
|
943
943
|
this.logger = z.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
|
|
@@ -984,13 +984,13 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
984
984
|
let n = i[1].trim();
|
|
985
985
|
if (a = c(n), a === void 0) if (typeof l == "function") {
|
|
986
986
|
let t = l(e, i, r);
|
|
987
|
-
a =
|
|
987
|
+
a = N(t) ? t : "";
|
|
988
988
|
} else if (r && Object.prototype.hasOwnProperty.call(r, n)) a = "";
|
|
989
989
|
else if (u) {
|
|
990
990
|
a = i[0];
|
|
991
991
|
continue;
|
|
992
992
|
} else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
|
|
993
|
-
else !
|
|
993
|
+
else !N(a) && !this.useRawValueToEscape && (a = ee(a));
|
|
994
994
|
let s = t.safeValue(a);
|
|
995
995
|
if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
|
|
996
996
|
}
|
|
@@ -1016,10 +1016,10 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1016
1016
|
};
|
|
1017
1017
|
for (; r = this.nestingRegexp.exec(e);) {
|
|
1018
1018
|
let s = [];
|
|
1019
|
-
a = { ...n }, a = a.replace && !
|
|
1019
|
+
a = { ...n }, a = a.replace && !N(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
1020
1020
|
let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
|
|
1021
|
-
if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !
|
|
1022
|
-
|
|
1021
|
+
if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !N(i)) return i;
|
|
1022
|
+
N(i) || (i = ee(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
|
|
1023
1023
|
...n,
|
|
1024
1024
|
interpolationkey: r[1].trim()
|
|
1025
1025
|
}), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
|
|
@@ -1199,7 +1199,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1199
1199
|
}
|
|
1200
1200
|
prepareLoading(e, t, n = {}, r) {
|
|
1201
1201
|
if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), r && r();
|
|
1202
|
-
|
|
1202
|
+
N(e) && (e = this.languageUtils.toResolveHierarchy(e)), N(t) && (t = [t]);
|
|
1203
1203
|
let i = this.queueLoad(e, t, n, r);
|
|
1204
1204
|
if (!i.toLoad.length) return i.pending.length || r(), null;
|
|
1205
1205
|
i.toLoad.forEach((e) => {
|
|
@@ -1275,7 +1275,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1275
1275
|
appendNamespaceToCIMode: !1,
|
|
1276
1276
|
overloadTranslationOptionHandler: (e) => {
|
|
1277
1277
|
let t = {};
|
|
1278
|
-
if (typeof e[1] == "object" && (t = e[1]),
|
|
1278
|
+
if (typeof e[1] == "object" && (t = e[1]), N(e[1]) && (t.defaultValue = e[1]), N(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
|
|
1279
1279
|
let n = e[3] || e[2];
|
|
1280
1280
|
Object.keys(n).forEach((e) => {
|
|
1281
1281
|
t[e] = n[e];
|
|
@@ -1297,7 +1297,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1297
1297
|
skipOnVariables: !0
|
|
1298
1298
|
},
|
|
1299
1299
|
cacheInBuiltFormats: !0
|
|
1300
|
-
}), Re = (e) => (
|
|
1300
|
+
}), Re = (e) => (N(e.ns) && (e.ns = [e.ns]), N(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), N(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), H = () => {}, ze = (e) => {
|
|
1301
1301
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
|
|
1302
1302
|
typeof e[t] == "function" && (e[t] = e[t].bind(e));
|
|
1303
1303
|
});
|
|
@@ -1313,7 +1313,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
1315
|
init(e = {}, t) {
|
|
1316
|
-
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (
|
|
1316
|
+
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (N(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
1317
1317
|
let n = Le();
|
|
1318
1318
|
this.options = {
|
|
1319
1319
|
...n,
|
|
@@ -1361,7 +1361,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1361
1361
|
].forEach((e) => {
|
|
1362
1362
|
this[e] = (...t) => (this.store[e](...t), this);
|
|
1363
1363
|
});
|
|
1364
|
-
let i =
|
|
1364
|
+
let i = P(), a = () => {
|
|
1365
1365
|
let e = (e, n) => {
|
|
1366
1366
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
|
|
1367
1367
|
};
|
|
@@ -1371,7 +1371,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1371
1371
|
return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
|
|
1372
1372
|
}
|
|
1373
1373
|
loadResources(e, t = H) {
|
|
1374
|
-
let n = t, r =
|
|
1374
|
+
let n = t, r = N(e) ? e : this.language;
|
|
1375
1375
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
1376
1376
|
if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
1377
1377
|
let e = [], t = (t) => {
|
|
@@ -1385,7 +1385,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1385
1385
|
} else n(null);
|
|
1386
1386
|
}
|
|
1387
1387
|
reloadResources(e, t, n) {
|
|
1388
|
-
let r =
|
|
1388
|
+
let r = P();
|
|
1389
1389
|
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= H, this.services.backendConnector.reload(e, t, (e) => {
|
|
1390
1390
|
r.resolve(), n(e);
|
|
1391
1391
|
}), r;
|
|
@@ -1409,7 +1409,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1409
1409
|
}
|
|
1410
1410
|
changeLanguage(e, t) {
|
|
1411
1411
|
this.isLanguageChangingTo = e;
|
|
1412
|
-
let n =
|
|
1412
|
+
let n = P();
|
|
1413
1413
|
this.emit("languageChanging", e);
|
|
1414
1414
|
let r = (e) => {
|
|
1415
1415
|
this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
|
|
@@ -1417,7 +1417,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1417
1417
|
a ? this.isLanguageChangingTo === e && (r(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, n.resolve((...e) => this.t(...e)), t && t(i, (...e) => this.t(...e));
|
|
1418
1418
|
}, a = (t) => {
|
|
1419
1419
|
!e && !t && this.services.languageDetector && (t = []);
|
|
1420
|
-
let n =
|
|
1420
|
+
let n = N(t) ? t : t && t[0], a = this.store.hasLanguageSomeTranslations(n) ? n : this.services.languageUtils.getBestMatchFromCodes(N(t) ? [t] : t);
|
|
1421
1421
|
a && (this.language || r(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector?.cacheUserLanguage?.(a)), this.loadResources(a, (e) => {
|
|
1422
1422
|
i(e, a);
|
|
1423
1423
|
});
|
|
@@ -1436,7 +1436,7 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1436
1436
|
let s = this.options.keySeparator || ".", c;
|
|
1437
1437
|
return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = V(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = V(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
|
|
1438
1438
|
};
|
|
1439
|
-
return
|
|
1439
|
+
return N(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
|
|
1440
1440
|
}
|
|
1441
1441
|
t(...e) {
|
|
1442
1442
|
return this.translator?.translate(...e);
|
|
@@ -1463,16 +1463,16 @@ var xe = {}, Se = (e) => !M(e) && typeof e != "boolean" && typeof e != "number",
|
|
|
1463
1463
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
|
|
1464
1464
|
}
|
|
1465
1465
|
loadNamespaces(e, t) {
|
|
1466
|
-
let n =
|
|
1467
|
-
return this.options.ns ? (
|
|
1466
|
+
let n = P();
|
|
1467
|
+
return this.options.ns ? (N(e) && (e = [e]), e.forEach((e) => {
|
|
1468
1468
|
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
|
|
1469
1469
|
}), this.loadResources((e) => {
|
|
1470
1470
|
n.resolve(), t && t(e);
|
|
1471
1471
|
}), n) : (t && t(), Promise.resolve());
|
|
1472
1472
|
}
|
|
1473
1473
|
loadLanguages(e, t) {
|
|
1474
|
-
let n =
|
|
1475
|
-
|
|
1474
|
+
let n = P();
|
|
1475
|
+
N(e) && (e = [e]);
|
|
1476
1476
|
let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
|
|
1477
1477
|
return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
|
|
1478
1478
|
n.resolve(), t && t(e);
|
|
@@ -1541,7 +1541,7 @@ U.createInstance, U.dir, U.init, U.loadResources, U.reloadResources, U.use, U.ch
|
|
|
1541
1541
|
debug: !0,
|
|
1542
1542
|
resources: {
|
|
1543
1543
|
en: j,
|
|
1544
|
-
es:
|
|
1544
|
+
es: M
|
|
1545
1545
|
}
|
|
1546
1546
|
});
|
|
1547
1547
|
var We = {
|
|
@@ -1584,29 +1584,29 @@ function W(e) {
|
|
|
1584
1584
|
function Ge(e, t) {
|
|
1585
1585
|
return !e || W(e) ? e : W(e.default) ? e.default : t && W(e[t]) ? e[t] : t && W(e[t]?.default) ? e[t].default : e;
|
|
1586
1586
|
}
|
|
1587
|
-
var Ke = Ge(
|
|
1587
|
+
var Ke = Ge(s, "Readable") || Ge(Ye.Readable, "Readable"), qe = m, Je = qe.default, Ye = Je && typeof Je == "object" ? Je : qe, { translator: G } = We, Xe = {
|
|
1588
1588
|
WebkitTouchCallout: "none",
|
|
1589
1589
|
WebkitUserSelect: "none",
|
|
1590
1590
|
KhtmlUserSelect: "none",
|
|
1591
1591
|
MozUserSelect: "none",
|
|
1592
1592
|
msUserSelect: "none",
|
|
1593
1593
|
userSelect: "none"
|
|
1594
|
-
}, Ze =
|
|
1594
|
+
}, Ze = _("div")(() => ({
|
|
1595
1595
|
width: "100%",
|
|
1596
1596
|
cursor: "pointer"
|
|
1597
|
-
})), Qe =
|
|
1597
|
+
})), Qe = _("div")(() => ({
|
|
1598
1598
|
margin: "0 auto",
|
|
1599
1599
|
textAlign: "center",
|
|
1600
1600
|
display: "flex"
|
|
1601
|
-
})), $e =
|
|
1601
|
+
})), $e = _("div")(() => ({
|
|
1602
1602
|
width: "fit-content",
|
|
1603
1603
|
minWidth: "140px",
|
|
1604
1604
|
alignSelf: "center",
|
|
1605
1605
|
verticalAlign: "middle",
|
|
1606
|
-
color: `var(--correct-answer-toggle-label-color, ${
|
|
1606
|
+
color: `var(--correct-answer-toggle-label-color, ${t.text()})`,
|
|
1607
1607
|
fontWeight: "normal",
|
|
1608
1608
|
...Xe
|
|
1609
|
-
})), et =
|
|
1609
|
+
})), et = _("div")(() => ({
|
|
1610
1610
|
position: "absolute",
|
|
1611
1611
|
width: "25px",
|
|
1612
1612
|
"&.enter": { opacity: "0" },
|
|
@@ -1619,7 +1619,7 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1619
1619
|
opacity: "0",
|
|
1620
1620
|
transition: "opacity 0.3s ease-in"
|
|
1621
1621
|
}
|
|
1622
|
-
})), tt =
|
|
1622
|
+
})), tt = _("div")(() => ({
|
|
1623
1623
|
width: "25px",
|
|
1624
1624
|
marginRight: "5px",
|
|
1625
1625
|
display: "flex",
|
|
@@ -1669,7 +1669,7 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1669
1669
|
children: /* @__PURE__ */ S(Qe, {
|
|
1670
1670
|
onClick: this.onClick.bind(this),
|
|
1671
1671
|
onTouchEnd: this.onTouch.bind(this),
|
|
1672
|
-
children: [/* @__PURE__ */ S(tt, { children: [/* @__PURE__ */ x(
|
|
1672
|
+
children: [/* @__PURE__ */ S(tt, { children: [/* @__PURE__ */ x(i, {
|
|
1673
1673
|
nodeRef: this.openIconRef,
|
|
1674
1674
|
timeout: 400,
|
|
1675
1675
|
in: t,
|
|
@@ -1684,7 +1684,7 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1684
1684
|
ref: this.openIconRef,
|
|
1685
1685
|
children: /* @__PURE__ */ x(D, { open: t }, "correct-open")
|
|
1686
1686
|
})
|
|
1687
|
-
}), /* @__PURE__ */ x(
|
|
1687
|
+
}), /* @__PURE__ */ x(i, {
|
|
1688
1688
|
nodeRef: this.closedIconRef,
|
|
1689
1689
|
timeout: 5e3,
|
|
1690
1690
|
in: !t,
|
|
@@ -1710,7 +1710,7 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1710
1710
|
})
|
|
1711
1711
|
});
|
|
1712
1712
|
}
|
|
1713
|
-
}, rt =
|
|
1713
|
+
}, rt = _(f)({
|
|
1714
1714
|
width: "33px",
|
|
1715
1715
|
height: "33px",
|
|
1716
1716
|
"& svg": {
|
|
@@ -1721,10 +1721,10 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1721
1721
|
verticalAlign: "middle",
|
|
1722
1722
|
"& hide": { display: "none" }
|
|
1723
1723
|
}
|
|
1724
|
-
}),
|
|
1725
|
-
"& .incorrect-fill": { fill: `var(--feedback-incorrect-bg-color, ${
|
|
1726
|
-
"& .correct-fill": { fill: `var(--feedback-correct-bg-color, ${
|
|
1727
|
-
}),
|
|
1724
|
+
}), it = _("svg")({
|
|
1725
|
+
"& .incorrect-fill": { fill: `var(--feedback-incorrect-bg-color, ${t.incorrect()})` },
|
|
1726
|
+
"& .correct-fill": { fill: `var(--feedback-correct-bg-color, ${t.correct()})` }
|
|
1727
|
+
}), at = _("div")({
|
|
1728
1728
|
position: "relative",
|
|
1729
1729
|
"&.feedback-tick-enter": {
|
|
1730
1730
|
opacity: "0",
|
|
@@ -1744,12 +1744,12 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1744
1744
|
left: "-50px",
|
|
1745
1745
|
transition: "left 300ms ease-in, opacity 300ms"
|
|
1746
1746
|
}
|
|
1747
|
-
}),
|
|
1747
|
+
}), ot = class extends v.Component {
|
|
1748
1748
|
static propTypes = { correctness: C.default.string };
|
|
1749
1749
|
constructor(e) {
|
|
1750
1750
|
super(e), this.nodeRef = v.createRef();
|
|
1751
1751
|
}
|
|
1752
|
-
getIncorrectIcon = () => /* @__PURE__ */ x(
|
|
1752
|
+
getIncorrectIcon = () => /* @__PURE__ */ x(it, {
|
|
1753
1753
|
preserveAspectRatio: "xMinYMin meet",
|
|
1754
1754
|
x: "0px",
|
|
1755
1755
|
y: "0px",
|
|
@@ -1771,7 +1771,7 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1771
1771
|
height: "16.6"
|
|
1772
1772
|
})] })
|
|
1773
1773
|
}, "1");
|
|
1774
|
-
getCorrectIcon = () => /* @__PURE__ */ x(
|
|
1774
|
+
getCorrectIcon = () => /* @__PURE__ */ x(it, {
|
|
1775
1775
|
preserveAspectRatio: "xMinYMin meet",
|
|
1776
1776
|
version: "1.1",
|
|
1777
1777
|
x: "0px",
|
|
@@ -1785,7 +1785,7 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1785
1785
|
}, "2");
|
|
1786
1786
|
render() {
|
|
1787
1787
|
let { correctness: e } = this.props, t = e === "incorrect" ? this.getIncorrectIcon() : e === "correct" ? this.getCorrectIcon() : null;
|
|
1788
|
-
return /* @__PURE__ */ x(
|
|
1788
|
+
return /* @__PURE__ */ x(rt, { children: /* @__PURE__ */ x(o, { children: e && /* @__PURE__ */ x(i, {
|
|
1789
1789
|
nodeRef: this.nodeRef,
|
|
1790
1790
|
classNames: {
|
|
1791
1791
|
enter: "feedback-tick-enter",
|
|
@@ -1797,7 +1797,7 @@ var Ke = Ge(g, "Readable") || Ge(Ye.Readable, "Readable"), qe = u, Je = qe.defau
|
|
|
1797
1797
|
enter: 700,
|
|
1798
1798
|
exit: 300
|
|
1799
1799
|
},
|
|
1800
|
-
children: /* @__PURE__ */ x(
|
|
1800
|
+
children: /* @__PURE__ */ x(at, {
|
|
1801
1801
|
ref: this.nodeRef,
|
|
1802
1802
|
children: t
|
|
1803
1803
|
})
|
|
@@ -1812,72 +1812,72 @@ function K(e) {
|
|
|
1812
1812
|
function q(e, t) {
|
|
1813
1813
|
return !e || K(e) ? e : K(e.default) ? e.default : t && K(e[t]) ? e[t] : t && K(e[t]?.default) ? e[t].default : e;
|
|
1814
1814
|
}
|
|
1815
|
-
var
|
|
1815
|
+
var st = q(a, "PreviewPrompt") || q(dt.PreviewPrompt, "PreviewPrompt"), ct = q(c, "Feedback") || q(dt.Feedback, "Feedback"), lt = m, ut = lt.default, dt = ut && typeof ut == "object" ? ut : lt, J = "multiple-choice-component", ft = _(f)({
|
|
1816
1816
|
display: "flex",
|
|
1817
1817
|
alignItems: "center",
|
|
1818
|
-
backgroundColor:
|
|
1819
|
-
}),
|
|
1818
|
+
backgroundColor: t.background()
|
|
1819
|
+
}), pt = _(f)({
|
|
1820
1820
|
display: "flex",
|
|
1821
1821
|
alignItems: "center",
|
|
1822
|
-
backgroundColor:
|
|
1822
|
+
backgroundColor: t.background(),
|
|
1823
1823
|
flex: 1,
|
|
1824
1824
|
"& .MuiFormControlLabel-root": { marginLeft: "-14px" },
|
|
1825
1825
|
"& label": {
|
|
1826
|
-
color:
|
|
1826
|
+
color: t.text(),
|
|
1827
1827
|
"& > span": { fontSize: "inherit" },
|
|
1828
1828
|
"& > .MuiButtonBase-root": { padding: "12px" }
|
|
1829
1829
|
}
|
|
1830
|
-
}),
|
|
1830
|
+
}), mt = _("span")(({ theme: e }) => ({
|
|
1831
1831
|
display: "flex",
|
|
1832
1832
|
alignItems: "center",
|
|
1833
1833
|
"& > span": { marginLeft: `-${e.spacing(1)}` }
|
|
1834
|
-
})),
|
|
1834
|
+
})), ht = _("span")({
|
|
1835
1835
|
position: "absolute",
|
|
1836
1836
|
left: "-10000px",
|
|
1837
1837
|
top: "auto",
|
|
1838
1838
|
width: "1px",
|
|
1839
1839
|
height: "1px",
|
|
1840
1840
|
overflow: "hidden"
|
|
1841
|
-
}),
|
|
1841
|
+
}), gt = _(l)({
|
|
1842
1842
|
"& .MuiFormControlLabel-label": {
|
|
1843
|
-
color: `${
|
|
1844
|
-
backgroundColor:
|
|
1843
|
+
color: `${t.text()} !important`,
|
|
1844
|
+
backgroundColor: t.background(),
|
|
1845
1845
|
letterSpacing: "normal"
|
|
1846
1846
|
},
|
|
1847
1847
|
"&.Mui-disabled *": { cursor: "not-allowed !important" }
|
|
1848
|
-
}), Y = (e, t) => ({ [`&.${J}`]: { color: `var(--choice-input-${e}, ${t}) !important` } }),
|
|
1849
|
-
let n = (
|
|
1848
|
+
}), Y = (e, t) => ({ [`&.${J}`]: { color: `var(--choice-input-${e}, ${t}) !important` } }), _t = (e) => {
|
|
1849
|
+
let n = (t) => e ? `${e}-${t}` : t;
|
|
1850
1850
|
return {
|
|
1851
1851
|
[n("root")]: {
|
|
1852
|
-
...Y("color",
|
|
1853
|
-
...
|
|
1854
|
-
...
|
|
1855
|
-
...
|
|
1852
|
+
...Y("color", t.text()),
|
|
1853
|
+
...e ? {} : { "&:hover": { color: `${t.primaryLight()} !important` } },
|
|
1854
|
+
...e === "correct" ? Y("correct-color", t.text()) : {},
|
|
1855
|
+
...e === "incorrect" ? Y("incorrect-color", t.incorrect()) : {}
|
|
1856
1856
|
},
|
|
1857
1857
|
[n("checked")]: {
|
|
1858
|
-
...
|
|
1859
|
-
...
|
|
1860
|
-
...
|
|
1858
|
+
...e === "correct" ? Y("correct-selected-color", t.correct()) : {},
|
|
1859
|
+
...e === "incorrect" ? Y("incorrect-checked", t.incorrect()) : {},
|
|
1860
|
+
...e ? {} : Y("selected-color", t.primary())
|
|
1861
1861
|
},
|
|
1862
1862
|
[n("disabled")]: {
|
|
1863
|
-
...Y("disabled-color",
|
|
1864
|
-
...
|
|
1865
|
-
...
|
|
1863
|
+
...Y("disabled-color", t.text()),
|
|
1864
|
+
...e === "correct" ? Y("correct-disabled-color", t.disabled()) : {},
|
|
1865
|
+
...e === "incorrect" ? Y("incorrect-disabled-color", t.disabled()) : {},
|
|
1866
1866
|
opacity: .6,
|
|
1867
1867
|
cursor: "not-allowed !important",
|
|
1868
1868
|
pointerEvents: "initial !important"
|
|
1869
1869
|
},
|
|
1870
1870
|
focusVisibleUnchecked: {
|
|
1871
|
-
outline: `2px solid ${
|
|
1871
|
+
outline: `2px solid ${t.keyBoardFocusIndicator()}`,
|
|
1872
1872
|
backgroundColor: "transparent"
|
|
1873
1873
|
},
|
|
1874
1874
|
focusVisibleChecked: {
|
|
1875
|
-
outline: `2px solid ${
|
|
1875
|
+
outline: `2px solid ${t.keyBoardFocusIndicator()}`,
|
|
1876
1876
|
backgroundColor: "transparent"
|
|
1877
1877
|
}
|
|
1878
1878
|
};
|
|
1879
|
-
},
|
|
1880
|
-
let t =
|
|
1879
|
+
}, vt = _(d, { shouldForwardProp: (e) => e !== "correctness" })(({ correctness: e }) => {
|
|
1880
|
+
let t = _t(e), n = (t) => e ? `${e}-${t}` : t;
|
|
1881
1881
|
return {
|
|
1882
1882
|
[`&.${J}`]: {
|
|
1883
1883
|
...t[n("root")],
|
|
@@ -1889,9 +1889,9 @@ var ct = q(c, "PreviewPrompt") || q(ft.PreviewPrompt, "PreviewPrompt"), lt = q(_
|
|
|
1889
1889
|
"&.Mui-checked": t.focusVisibleChecked
|
|
1890
1890
|
}
|
|
1891
1891
|
};
|
|
1892
|
-
}),
|
|
1892
|
+
}), yt = (e) => {
|
|
1893
1893
|
let { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, onKeyDown: s, inputRef: c } = e;
|
|
1894
|
-
return /* @__PURE__ */ x(
|
|
1894
|
+
return /* @__PURE__ */ x(vt, {
|
|
1895
1895
|
id: o,
|
|
1896
1896
|
slotProps: { input: { ref: c } },
|
|
1897
1897
|
onKeyDown: s,
|
|
@@ -1903,8 +1903,8 @@ var ct = q(c, "PreviewPrompt") || q(ft.PreviewPrompt, "PreviewPrompt"), lt = q(_
|
|
|
1903
1903
|
correctness: t,
|
|
1904
1904
|
className: J
|
|
1905
1905
|
});
|
|
1906
|
-
},
|
|
1907
|
-
let t =
|
|
1906
|
+
}, bt = _(h, { shouldForwardProp: (e) => e !== "correctness" })(({ correctness: e }) => {
|
|
1907
|
+
let t = _t(e), n = (t) => e ? `${e}-${t}` : t;
|
|
1908
1908
|
return {
|
|
1909
1909
|
[`&.${J}`]: {
|
|
1910
1910
|
...t[n("root")],
|
|
@@ -1917,9 +1917,9 @@ var ct = q(c, "PreviewPrompt") || q(ft.PreviewPrompt, "PreviewPrompt"), lt = q(_
|
|
|
1917
1917
|
"&.Mui-checked": t.focusVisibleChecked
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
|
-
}),
|
|
1920
|
+
}), xt = (e) => {
|
|
1921
1921
|
let { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, tagName: s, inputRef: c } = e;
|
|
1922
|
-
return /* @__PURE__ */ x(
|
|
1922
|
+
return /* @__PURE__ */ x(bt, {
|
|
1923
1923
|
id: o,
|
|
1924
1924
|
slotProps: { input: { ref: c } },
|
|
1925
1925
|
disableRipple: !0,
|
|
@@ -1931,7 +1931,7 @@ var ct = q(c, "PreviewPrompt") || q(ft.PreviewPrompt, "PreviewPrompt"), lt = q(_
|
|
|
1931
1931
|
className: J,
|
|
1932
1932
|
name: s
|
|
1933
1933
|
});
|
|
1934
|
-
},
|
|
1934
|
+
}, St = class extends v.Component {
|
|
1935
1935
|
static propTypes = {
|
|
1936
1936
|
choiceMode: C.default.oneOf(["radio", "checkbox"]),
|
|
1937
1937
|
displayKey: C.default.string,
|
|
@@ -1984,85 +1984,85 @@ var ct = q(c, "PreviewPrompt") || q(ft.PreviewPrompt, "PreviewPrompt"), lt = q(_
|
|
|
1984
1984
|
c && c.focus();
|
|
1985
1985
|
};
|
|
1986
1986
|
render() {
|
|
1987
|
-
let { choiceMode:
|
|
1988
|
-
...
|
|
1987
|
+
let { choiceMode: t, disabled: n, displayKey: r, feedback: i, label: a, correctness: o, className: s, rationale: c, hideTick: l, isEvaluateMode: u, choicesLayout: d, value: f, checked: p, tagName: m, isSelectionButtonBelow: h } = this.props, g = t === "checkbox" ? yt : xt, _ = t === "checkbox" ? "checkbox" : "radio-button", v = {
|
|
1988
|
+
...d === "horizontal" && { [`& .${J}`]: {
|
|
1989
1989
|
padding: "8px",
|
|
1990
1990
|
margin: "4px 0 4px 4px"
|
|
1991
1991
|
} },
|
|
1992
|
-
...
|
|
1993
|
-
...
|
|
1992
|
+
...h && d !== "grid" && { "& > label": { alignItems: "flex-start" } },
|
|
1993
|
+
...h && d === "grid" && {
|
|
1994
1994
|
justifyContent: "center",
|
|
1995
1995
|
"& > label": { alignItems: "center" }
|
|
1996
1996
|
}
|
|
1997
|
-
},
|
|
1997
|
+
}, y = typeof a == "string" && (a.includes("<math") || a.includes("\\(") || a.includes("\\[") || a.includes("<img") || a.includes("data-latex") || a.includes("data-raw") || a.includes("<mjx-container")), C = r ? /* @__PURE__ */ x(ht, {
|
|
1998
1998
|
id: this.descId,
|
|
1999
|
-
children:
|
|
2000
|
-
}) : null,
|
|
1999
|
+
children: y ? `Pick the answer below, ${r}` : r
|
|
2000
|
+
}) : null, w = /* @__PURE__ */ x(b, { children: r && !h ? /* @__PURE__ */ S(ft, {
|
|
2001
2001
|
component: "span",
|
|
2002
2002
|
children: [/* @__PURE__ */ S("span", {
|
|
2003
2003
|
"aria-hidden": "true",
|
|
2004
2004
|
children: [
|
|
2005
|
-
|
|
2005
|
+
r,
|
|
2006
2006
|
".",
|
|
2007
2007
|
"\xA0"
|
|
2008
2008
|
]
|
|
2009
|
-
}), /* @__PURE__ */ x(
|
|
2009
|
+
}), /* @__PURE__ */ x(st, {
|
|
2010
2010
|
className: "prompt-label",
|
|
2011
|
-
prompt:
|
|
2011
|
+
prompt: a,
|
|
2012
2012
|
tagName: "span"
|
|
2013
2013
|
})]
|
|
2014
|
-
}) : /* @__PURE__ */ x(
|
|
2014
|
+
}) : /* @__PURE__ */ x(st, {
|
|
2015
2015
|
className: "prompt-label",
|
|
2016
|
-
prompt:
|
|
2016
|
+
prompt: a,
|
|
2017
2017
|
tagName: "span"
|
|
2018
|
-
}) }),
|
|
2019
|
-
disabled:
|
|
2020
|
-
checked:
|
|
2021
|
-
correctness:
|
|
2022
|
-
tagName:
|
|
2023
|
-
value:
|
|
2018
|
+
}) }), T = {
|
|
2019
|
+
disabled: n,
|
|
2020
|
+
checked: p,
|
|
2021
|
+
correctness: o,
|
|
2022
|
+
tagName: m,
|
|
2023
|
+
value: f,
|
|
2024
2024
|
id: this.choiceId,
|
|
2025
2025
|
onChange: this.onToggleChoice,
|
|
2026
2026
|
onKeyDown: this.handleKeyDown,
|
|
2027
|
-
...
|
|
2028
|
-
},
|
|
2029
|
-
|
|
2030
|
-
/* @__PURE__ */ x(
|
|
2031
|
-
...
|
|
2027
|
+
...C ? { "aria-describedby": this.descId } : {}
|
|
2028
|
+
}, E = h ? /* @__PURE__ */ S(mt, { children: [
|
|
2029
|
+
C,
|
|
2030
|
+
/* @__PURE__ */ x(g, {
|
|
2031
|
+
...T,
|
|
2032
2032
|
style: { padding: 0 }
|
|
2033
2033
|
}),
|
|
2034
2034
|
/* @__PURE__ */ x("span", {
|
|
2035
2035
|
"aria-hidden": "true",
|
|
2036
|
-
children:
|
|
2036
|
+
children: r ? `${r}.` : ""
|
|
2037
2037
|
})
|
|
2038
|
-
] }) : /* @__PURE__ */ S(b, { children: [
|
|
2038
|
+
] }) : /* @__PURE__ */ S(b, { children: [C, /* @__PURE__ */ x(g, { ...T })] });
|
|
2039
2039
|
return /* @__PURE__ */ S("div", {
|
|
2040
|
-
className: (
|
|
2040
|
+
className: e(s, "corespring-" + _, "choice-input"),
|
|
2041
2041
|
children: [
|
|
2042
|
-
/* @__PURE__ */ S(
|
|
2042
|
+
/* @__PURE__ */ S(ft, { children: [!l && u && /* @__PURE__ */ x(ot, { correctness: o }), /* @__PURE__ */ x(pt, {
|
|
2043
2043
|
className: "checkbox-holder",
|
|
2044
|
-
sx:
|
|
2045
|
-
children: /* @__PURE__ */ x(
|
|
2046
|
-
label:
|
|
2047
|
-
value:
|
|
2044
|
+
sx: v,
|
|
2045
|
+
children: /* @__PURE__ */ x(gt, {
|
|
2046
|
+
label: w,
|
|
2047
|
+
value: f,
|
|
2048
2048
|
htmlFor: this.choiceId,
|
|
2049
|
-
labelPlacement:
|
|
2050
|
-
control:
|
|
2049
|
+
labelPlacement: h ? "top" : void 0,
|
|
2050
|
+
control: E
|
|
2051
2051
|
})
|
|
2052
2052
|
})] }),
|
|
2053
|
-
|
|
2053
|
+
c && /* @__PURE__ */ x(st, {
|
|
2054
2054
|
className: "rationale",
|
|
2055
2055
|
defaultClassName: "rationale",
|
|
2056
|
-
prompt:
|
|
2056
|
+
prompt: c
|
|
2057
2057
|
}),
|
|
2058
|
-
/* @__PURE__ */ x(
|
|
2059
|
-
feedback:
|
|
2060
|
-
correctness:
|
|
2058
|
+
/* @__PURE__ */ x(ct, {
|
|
2059
|
+
feedback: i,
|
|
2060
|
+
correctness: o
|
|
2061
2061
|
})
|
|
2062
2062
|
]
|
|
2063
2063
|
});
|
|
2064
2064
|
}
|
|
2065
|
-
},
|
|
2065
|
+
}, Ct = _(f, { shouldForwardProp: (e) => e !== "noBorder" && e !== "horizontalLayout" })(({ theme: e, noBorder: t, horizontalLayout: n }) => ({
|
|
2066
2066
|
paddingTop: e.spacing(2.5),
|
|
2067
2067
|
paddingBottom: `calc(${e.spacing(1)} + 2px)`,
|
|
2068
2068
|
paddingLeft: `calc(${e.spacing(1)} + 2px)`,
|
|
@@ -2072,7 +2072,7 @@ var ct = q(c, "PreviewPrompt") || q(ft.PreviewPrompt, "PreviewPrompt"), lt = q(_
|
|
|
2072
2072
|
paddingRight: e.spacing(2.5),
|
|
2073
2073
|
"& label": { marginRight: e.spacing(1) }
|
|
2074
2074
|
}
|
|
2075
|
-
})),
|
|
2075
|
+
})), wt = class extends v.Component {
|
|
2076
2076
|
static propTypes = {};
|
|
2077
2077
|
state = { isHovered: !1 };
|
|
2078
2078
|
handleMouseEnter = () => {
|
|
@@ -2110,28 +2110,28 @@ var ct = q(c, "PreviewPrompt") || q(ft.PreviewPrompt, "PreviewPrompt"), lt = q(_
|
|
|
2110
2110
|
return /^\d+(\.\d+)?$/.test(t) ? `${t}px` : t;
|
|
2111
2111
|
}, E = m && m !== "initial", D = _ && _ !== "initial", O = "transparent", k = "2px", A = "initial";
|
|
2112
2112
|
(E || D) && (s && E ? (O = m, k = h) : b && !o && D && (O = _, k = v)), s && p && p !== "initial" ? A = p : b && !o && g && g !== "initial" && (A = g);
|
|
2113
|
-
let j = E || D,
|
|
2113
|
+
let j = E || D, M = j ? {
|
|
2114
2114
|
border: `${T(k)} solid ${O}`,
|
|
2115
2115
|
borderRadius: "8px"
|
|
2116
|
-
} : {},
|
|
2116
|
+
} : {}, N = t === n - 1 || u !== "vertical" || j, P = u === "horizontal";
|
|
2117
2117
|
return /* @__PURE__ */ x("div", {
|
|
2118
2118
|
className: S,
|
|
2119
2119
|
style: {
|
|
2120
2120
|
backgroundColor: A === "initial" ? "initial" : A,
|
|
2121
|
-
...
|
|
2121
|
+
...M
|
|
2122
2122
|
},
|
|
2123
2123
|
onMouseEnter: this.handleMouseEnter,
|
|
2124
2124
|
onMouseLeave: this.handleMouseLeave,
|
|
2125
|
-
children: /* @__PURE__ */ x(
|
|
2125
|
+
children: /* @__PURE__ */ x(Ct, {
|
|
2126
2126
|
component: "div",
|
|
2127
|
-
noBorder:
|
|
2128
|
-
horizontalLayout:
|
|
2129
|
-
children: /* @__PURE__ */ x(
|
|
2127
|
+
noBorder: N,
|
|
2128
|
+
horizontalLayout: P,
|
|
2129
|
+
children: /* @__PURE__ */ x(St, { ...w })
|
|
2130
2130
|
})
|
|
2131
2131
|
}, t);
|
|
2132
2132
|
}
|
|
2133
2133
|
};
|
|
2134
|
-
|
|
2134
|
+
wt.propTypes = {
|
|
2135
2135
|
choiceMode: C.default.oneOf(["radio", "checkbox"]),
|
|
2136
2136
|
choice: C.default.object,
|
|
2137
2137
|
disabled: C.default.bool.isRequired,
|
|
@@ -2166,39 +2166,39 @@ function X(e) {
|
|
|
2166
2166
|
function Z(e, t) {
|
|
2167
2167
|
return !e || X(e) ? e : X(e.default) ? e.default : t && X(e[t]) ? e[t] : t && X(e[t]?.default) ? e[t].default : e;
|
|
2168
2168
|
}
|
|
2169
|
-
var
|
|
2170
|
-
color:
|
|
2171
|
-
backgroundColor:
|
|
2169
|
+
var Tt = Z(a, "PreviewPrompt") || Z(kt.PreviewPrompt, "PreviewPrompt"), Et = Z(u, "Collapsible") || Z(kt.Collapsible, "Collapsible"), Dt = m, Ot = Dt.default, kt = Ot && typeof Ot == "object" ? Ot : Dt, { translator: Q } = We, At = _(f)({
|
|
2170
|
+
color: t.text(),
|
|
2171
|
+
backgroundColor: t.background(),
|
|
2172
2172
|
"& *": { "-webkit-font-smoothing": "antialiased" },
|
|
2173
2173
|
position: "relative",
|
|
2174
2174
|
"& legend": { border: "none !important" }
|
|
2175
|
-
}),
|
|
2175
|
+
}), jt = _("h2")(({ theme: e }) => ({
|
|
2176
2176
|
display: "block",
|
|
2177
2177
|
fontSize: "inherit",
|
|
2178
2178
|
margin: "0",
|
|
2179
2179
|
fontWeight: "normal",
|
|
2180
2180
|
paddingBottom: e.spacing(2)
|
|
2181
|
-
})),
|
|
2181
|
+
})), Mt = _(f)(({ theme: e }) => ({ marginBottom: e.spacing(2) })), Nt = _(f)({
|
|
2182
2182
|
display: "flex",
|
|
2183
2183
|
flexDirection: "row",
|
|
2184
2184
|
flexWrap: "wrap"
|
|
2185
|
-
}),
|
|
2185
|
+
}), Pt = _(f)({ display: "grid" }), Ft = _("fieldset")({
|
|
2186
2186
|
border: "0px",
|
|
2187
2187
|
padding: "0.01em 0 0 0",
|
|
2188
2188
|
margin: "0px",
|
|
2189
2189
|
minWidth: "0px"
|
|
2190
|
-
}),
|
|
2190
|
+
}), It = _("h3")({
|
|
2191
2191
|
position: "absolute",
|
|
2192
2192
|
left: "-10000px",
|
|
2193
2193
|
top: "auto",
|
|
2194
2194
|
width: "1px",
|
|
2195
2195
|
height: "1px",
|
|
2196
2196
|
overflow: "hidden"
|
|
2197
|
-
}),
|
|
2197
|
+
}), Lt = _("div")(({ theme: e }) => ({
|
|
2198
2198
|
fontSize: e.typography.fontSize - 2,
|
|
2199
2199
|
color: e.palette.error.main,
|
|
2200
2200
|
paddingTop: e.spacing(1)
|
|
2201
|
-
})),
|
|
2201
|
+
})), Rt = class extends v.Component {
|
|
2202
2202
|
static propTypes = {
|
|
2203
2203
|
className: C.default.string,
|
|
2204
2204
|
mode: C.default.oneOf([
|
|
@@ -2295,65 +2295,65 @@ var Et = Z(c, "PreviewPrompt") || Z(At.PreviewPrompt, "PreviewPrompt"), Dt = Z(n
|
|
|
2295
2295
|
let { mode: e, choiceMode: t, includeSrHeading: n, baseHeadingLevel: r, partLabel: i } = this.props;
|
|
2296
2296
|
if (!(!i && n !== !1) || e !== "gather") return null;
|
|
2297
2297
|
let a = r ? Math.min(6, r) : 2;
|
|
2298
|
-
return /* @__PURE__ */ x(
|
|
2298
|
+
return /* @__PURE__ */ x(It.withComponent(`h${a}`), { children: t === "radio" ? "Multiple Choice Question" : "Multiple Select Question" });
|
|
2299
2299
|
}
|
|
2300
2300
|
render() {
|
|
2301
|
-
let { mode:
|
|
2302
|
-
if (!
|
|
2301
|
+
let { mode: t, disabled: n, className: r, choices: i = [], choiceMode: a, gridColumns: o, partLabel: s, prompt: c, responseCorrect: l, teacherInstructions: u, alwaysShowCorrect: d, animationsDisabled: m, language: h, isSelectionButtonBelow: g, minSelections: _, maxSelections: v, autoplayAudioEnabled: y, session: b, customAudioButton: C, options: w, baseHeadingLevel: T } = this.props, { showCorrect: E, maxSelectionsErrorState: D } = this.state, O = t === "evaluate", k = O && !l, A = o > 1 ? { gridTemplateColumns: `repeat(${o}, 1fr)` } : void 0, j = b.value && b.value.length || 0, M = (() => {
|
|
2302
|
+
if (!T) return;
|
|
2303
2303
|
let e = 1;
|
|
2304
|
-
return s && (e += 1), Math.min(6,
|
|
2305
|
-
})(),
|
|
2304
|
+
return s && (e += 1), Math.min(6, T + e);
|
|
2305
|
+
})(), N = (e) => e && M ? p(e, M) : e, P = /* @__PURE__ */ x(Tt, {
|
|
2306
2306
|
tagName: "div",
|
|
2307
2307
|
className: "prompt",
|
|
2308
2308
|
defaultClassName: "teacher-instructions",
|
|
2309
2309
|
prompt: u
|
|
2310
|
-
}),
|
|
2311
|
-
lng:
|
|
2312
|
-
minSelections:
|
|
2310
|
+
}), ee = () => _ && v ? _ === v ? Q.t("translation:multipleChoice:minmaxSelections_equal", {
|
|
2311
|
+
lng: h,
|
|
2312
|
+
minSelections: _
|
|
2313
2313
|
}) : Q.t("translation:multipleChoice:minmaxSelections_range", {
|
|
2314
|
-
lng:
|
|
2315
|
-
minSelections:
|
|
2316
|
-
maxSelections:
|
|
2317
|
-
}) :
|
|
2318
|
-
lng:
|
|
2319
|
-
minSelections:
|
|
2320
|
-
}) : "",
|
|
2321
|
-
return /* @__PURE__ */ S(
|
|
2314
|
+
lng: h,
|
|
2315
|
+
minSelections: _,
|
|
2316
|
+
maxSelections: v
|
|
2317
|
+
}) : _ ? Q.t("translation:multipleChoice:minSelections", {
|
|
2318
|
+
lng: h,
|
|
2319
|
+
minSelections: _
|
|
2320
|
+
}) : "", te = this.props.choicesLayout === "grid" ? Pt : this.props.choicesLayout === "horizontal" ? Nt : f;
|
|
2321
|
+
return /* @__PURE__ */ S(At, {
|
|
2322
2322
|
id: "main-container",
|
|
2323
|
-
className: (
|
|
2323
|
+
className: e(r, "multiple-choice"),
|
|
2324
2324
|
children: [
|
|
2325
|
-
s && /* @__PURE__ */ x(
|
|
2326
|
-
as:
|
|
2325
|
+
s && /* @__PURE__ */ x(jt, {
|
|
2326
|
+
as: T ? `h${Math.min(6, T + 1)}` : "h2",
|
|
2327
2327
|
children: s
|
|
2328
2328
|
}),
|
|
2329
2329
|
this.renderHeading(),
|
|
2330
|
-
u && /* @__PURE__ */ x(
|
|
2330
|
+
u && /* @__PURE__ */ x(Mt, { children: m ? P : /* @__PURE__ */ x(Et, {
|
|
2331
2331
|
labels: {
|
|
2332
2332
|
hidden: "Show Teacher Instructions",
|
|
2333
2333
|
visible: "Hide Teacher Instructions"
|
|
2334
2334
|
},
|
|
2335
|
-
children:
|
|
2335
|
+
children: P
|
|
2336
2336
|
}) }),
|
|
2337
|
-
/* @__PURE__ */ S(
|
|
2338
|
-
role:
|
|
2337
|
+
/* @__PURE__ */ S(Ft, {
|
|
2338
|
+
role: a === "radio" ? "radiogroup" : "group",
|
|
2339
2339
|
children: [
|
|
2340
|
-
/* @__PURE__ */ x(
|
|
2340
|
+
/* @__PURE__ */ x(Tt, {
|
|
2341
2341
|
className: "prompt",
|
|
2342
2342
|
defaultClassName: "prompt",
|
|
2343
|
-
prompt:
|
|
2343
|
+
prompt: N(c),
|
|
2344
2344
|
tagName: "legend",
|
|
2345
|
-
autoplayAudioEnabled:
|
|
2346
|
-
customAudioButton:
|
|
2345
|
+
autoplayAudioEnabled: y,
|
|
2346
|
+
customAudioButton: C
|
|
2347
2347
|
}),
|
|
2348
|
-
!(
|
|
2349
|
-
show:
|
|
2350
|
-
toggled:
|
|
2348
|
+
!(w && d) && /* @__PURE__ */ x(nt, {
|
|
2349
|
+
show: k,
|
|
2350
|
+
toggled: E,
|
|
2351
2351
|
onToggle: this.onToggle.bind(this),
|
|
2352
|
-
language:
|
|
2352
|
+
language: h
|
|
2353
2353
|
}),
|
|
2354
|
-
/* @__PURE__ */ x(
|
|
2355
|
-
style:
|
|
2356
|
-
children:
|
|
2354
|
+
/* @__PURE__ */ x(te, {
|
|
2355
|
+
style: A,
|
|
2356
|
+
children: i.map((e, t) => /* @__PURE__ */ x(wt, {
|
|
2357
2357
|
choicesLayout: this.props.choicesLayout,
|
|
2358
2358
|
selectedAnswerBackgroundColor: this.props.selectedAnswerBackgroundColor,
|
|
2359
2359
|
selectedAnswerStrokeColor: this.props.selectedAnswerStrokeColor,
|
|
@@ -2361,44 +2361,44 @@ var Et = Z(c, "PreviewPrompt") || Z(At.PreviewPrompt, "PreviewPrompt"), Dt = Z(n
|
|
|
2361
2361
|
hoverAnswerBackgroundColor: this.props.hoverAnswerBackgroundColor,
|
|
2362
2362
|
hoverAnswerStrokeColor: this.props.hoverAnswerStrokeColor,
|
|
2363
2363
|
hoverAnswerStrokeWidth: this.props.hoverAnswerStrokeWidth,
|
|
2364
|
-
gridColumns:
|
|
2364
|
+
gridColumns: o,
|
|
2365
2365
|
choice: e,
|
|
2366
|
-
index:
|
|
2367
|
-
choicesLength:
|
|
2368
|
-
showCorrect:
|
|
2369
|
-
isEvaluateMode:
|
|
2370
|
-
choiceMode:
|
|
2371
|
-
disabled:
|
|
2366
|
+
index: t,
|
|
2367
|
+
choicesLength: i.length,
|
|
2368
|
+
showCorrect: E,
|
|
2369
|
+
isEvaluateMode: O,
|
|
2370
|
+
choiceMode: a,
|
|
2371
|
+
disabled: n,
|
|
2372
2372
|
tagName: this.groupName,
|
|
2373
2373
|
onChoiceChanged: this.handleChange,
|
|
2374
2374
|
hideTick: e.hideTick,
|
|
2375
2375
|
checked: this.getChecked(e),
|
|
2376
|
-
correctness:
|
|
2377
|
-
displayKey: this.indexToSymbol(
|
|
2378
|
-
isSelectionButtonBelow:
|
|
2379
|
-
}, `choice-${
|
|
2376
|
+
correctness: O ? this.getCorrectness(e) : void 0,
|
|
2377
|
+
displayKey: this.indexToSymbol(t),
|
|
2378
|
+
isSelectionButtonBelow: g
|
|
2379
|
+
}, `choice-${t}`))
|
|
2380
2380
|
})
|
|
2381
2381
|
]
|
|
2382
2382
|
}),
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
lng:
|
|
2386
|
-
maxSelections:
|
|
2383
|
+
a === "checkbox" && j < _ && /* @__PURE__ */ x(Lt, { children: ee() }),
|
|
2384
|
+
a === "checkbox" && D && /* @__PURE__ */ x(Lt, { children: Q.t(`translation:multipleChoice:maxSelections_${v === 1 ? "one" : "other"}`, {
|
|
2385
|
+
lng: h,
|
|
2386
|
+
maxSelections: v
|
|
2387
2387
|
}) })
|
|
2388
2388
|
]
|
|
2389
2389
|
});
|
|
2390
2390
|
}
|
|
2391
2391
|
};
|
|
2392
|
-
|
|
2392
|
+
Rt.defaultProps = { session: { value: [] } };
|
|
2393
2393
|
//#endregion
|
|
2394
2394
|
//#region src/delivery/main.tsx
|
|
2395
2395
|
function $(e) {
|
|
2396
2396
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function zt(e, t) {
|
|
2399
2399
|
return !e || $(e) ? e : $(e.default) ? e.default : t && $(e[t]) ? e[t] : t && $(e[t]?.default) ? e[t].default : e;
|
|
2400
2400
|
}
|
|
2401
|
-
var
|
|
2401
|
+
var Bt = zt(g, "PreviewLayout") || zt(Ut.PreviewLayout, "PreviewLayout"), Vt = m, Ht = Vt.default, Ut = Ht && typeof Ht == "object" ? Ht : Vt, Wt = class extends v.Component {
|
|
2402
2402
|
static propTypes = {
|
|
2403
2403
|
model: C.default.object,
|
|
2404
2404
|
session: C.default.object,
|
|
@@ -2418,11 +2418,11 @@ var Vt = Bt(a, "PreviewLayout") || Bt(Wt.PreviewLayout, "PreviewLayout"), Ht = u
|
|
|
2418
2418
|
};
|
|
2419
2419
|
render() {
|
|
2420
2420
|
let { model: e, onChoiceChanged: t, session: n, onShowCorrectToggle: r, options: i, baseHeadingLevel: a, includeSrHeading: o } = this.props, { extraCSSRules: s, fontSizeFactor: c } = e;
|
|
2421
|
-
return /* @__PURE__ */ x(
|
|
2421
|
+
return /* @__PURE__ */ x(Bt, {
|
|
2422
2422
|
extraCSSRules: s,
|
|
2423
2423
|
fontSizeFactor: c,
|
|
2424
2424
|
classes: {},
|
|
2425
|
-
children: /* @__PURE__ */ x(
|
|
2425
|
+
children: /* @__PURE__ */ x(Rt, {
|
|
2426
2426
|
...e,
|
|
2427
2427
|
options: i,
|
|
2428
2428
|
session: n,
|
|
@@ -2435,6 +2435,6 @@ var Vt = Bt(a, "PreviewLayout") || Bt(Wt.PreviewLayout, "PreviewLayout"), Ht = u
|
|
|
2435
2435
|
}
|
|
2436
2436
|
};
|
|
2437
2437
|
//#endregion
|
|
2438
|
-
export {
|
|
2438
|
+
export { Wt as t };
|
|
2439
2439
|
|
|
2440
|
-
//# sourceMappingURL=main-
|
|
2440
|
+
//# sourceMappingURL=main-D2qC-1Hm.js.map
|