@pie-element/ebsr 14.2.2-next.0 → 14.2.2-next.10
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/defaults.d.ts +284 -2
- package/dist/author/defaults.js +1 -1
- package/dist/author/index.js +24 -22
- package/dist/author/main.d.ts +1 -0
- package/dist/author/main.js +72 -70
- package/dist/browser/author/index.js +41058 -12238
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +90 -268
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +26 -26
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/delivery-DM01fVuQ.js +1290 -0
- package/dist/browser/delivery-DM01fVuQ.js.map +1 -0
- package/dist/browser/dist-CHbLnyuX.js +111 -0
- package/dist/browser/dist-CHbLnyuX.js.map +1 -0
- package/dist/browser/{dist-D9ARZhQk.js → dist-DiGNNRzu.js} +2 -2
- package/dist/browser/{dist-D9ARZhQk.js.map → dist-DiGNNRzu.js.map} +1 -1
- package/dist/browser/ebsr.css +2 -0
- package/dist/browser/print/index.js +27 -28
- package/dist/browser/print/index.js.map +1 -1
- package/dist/browser/private-tags-Z0nu6DO5.js +9590 -0
- package/dist/browser/private-tags-Z0nu6DO5.js.map +1 -0
- package/dist/controller/index.js +29 -30
- package/dist/controller/utils.d.ts +1 -1
- package/dist/controller/utils.js +2 -2
- package/dist/delivery/index.js +25 -24
- package/dist/index.iife.js +37 -37
- package/dist/print/index.js +32 -32
- package/dist/private-tags.d.ts +2 -0
- package/dist/private-tags.js +3 -0
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/module/print.js +18298 -0
- package/module/print.js.map +1 -0
- package/package.json +27 -10
- package/print.js +2 -0
- package/dist/browser/_Uint8Array-fRN8Lsus.js +0 -193
- package/dist/browser/_Uint8Array-fRN8Lsus.js.map +0 -1
- package/dist/browser/browser-CdX8WGiZ.js +0 -207
- package/dist/browser/browser-CdX8WGiZ.js.map +0 -1
- package/dist/browser/cloneDeep-o_mWij0W.js +0 -251
- package/dist/browser/cloneDeep-o_mWij0W.js.map +0 -1
- package/dist/browser/dist-DQkngCcw.js +0 -36
- package/dist/browser/dist-DQkngCcw.js.map +0 -1
- package/dist/browser/get-BfBCyZ1r.js +0 -333
- package/dist/browser/get-BfBCyZ1r.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/_arrayMap.js +0 -7
- 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/_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/_baseGet.js +0 -10
- 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/_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/_baseToString.js +0 -15
- 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/_castPath.js +0 -10
- 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/_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/_isKey.js +0 -11
- 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/_memoizeCapped.js +0 -11
- 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/_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/_stringToPath.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
- 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/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/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/get.js +0 -8
- 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/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/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/memoize.js +0 -16
- 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/toString.js +0 -7
package/dist/print/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import e from "../
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import r from "@pie-element/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { EBSR_MULTIPLE_CHOICE_TAG as e } from "../private-tags.js";
|
|
2
|
+
import { SessionChangedEvent as t } from "@pie-element/shared-player-events";
|
|
3
|
+
import n from "@pie-element/multiple-choice";
|
|
4
|
+
import { cloneDeep as r, get as i } from "@pie-element/shared-lodash";
|
|
5
|
+
import a from "debug";
|
|
6
|
+
import o from "@pie-lib/translator";
|
|
7
7
|
//#region src/print/index.tsx
|
|
8
|
-
var
|
|
9
|
-
let
|
|
10
|
-
return i.prompt = i.promptEnabled === !1 ? void 0 : i.prompt, i.teacherInstructions =
|
|
11
|
-
},
|
|
12
|
-
customElements.get(
|
|
13
|
-
var
|
|
14
|
-
let
|
|
15
|
-
return
|
|
16
|
-
},
|
|
8
|
+
var s = e, c = t.TYPE, { translator: l } = o, u = a("pie-element:ebsr:print"), d = (e, t) => {
|
|
9
|
+
let n = t.role === "instructor", i = r(e);
|
|
10
|
+
return i.prompt = i.promptEnabled === !1 ? void 0 : i.prompt, i.teacherInstructions = n && i.teacherInstructionsEnabled !== !1 ? i.teacherInstructions : void 0, i.showTeacherInstructions = n, i.alwaysShowCorrect = n, i.mode = n ? "evaluate" : "gather", i.disabled = !0, i.animationsDisabled = !0, i.lockChoiceOrder = !0, i.choicesLayout = i.choicesLayout || "vertical", i.choices = (i.choices || []).map((e) => (e.rationale = n && i.rationaleEnabled !== !1 ? e.rationale : void 0, e.hideTick = n, e.feedback = void 0, e)), i.keyMode = i.choicePrefix || "letters", i;
|
|
11
|
+
}, f = class extends n {};
|
|
12
|
+
customElements.get(s) || customElements.define(s, f);
|
|
13
|
+
var p = (e) => Array.isArray(e) && e.length > 0, m = (e) => {
|
|
14
|
+
let t = i(e, "value.partA.value"), n = i(e, "value.partB.value");
|
|
15
|
+
return p(t) && p(n);
|
|
16
|
+
}, h = class extends HTMLElement {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(), this._model = {}, this._session = {}, this._options = null;
|
|
19
19
|
}
|
|
@@ -30,12 +30,12 @@ var f = (e) => Array.isArray(e) && e.length > 0, p = (t) => {
|
|
|
30
30
|
this._model = e, this._updateParts();
|
|
31
31
|
}
|
|
32
32
|
set session(e) {
|
|
33
|
-
this._session = e, customElements.whenDefined(
|
|
33
|
+
this._session = e, customElements.whenDefined(s).then(() => {
|
|
34
34
|
this.setPartSession(this.partA, "partA"), this.setPartSession(this.partB, "partB");
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
_updateParts() {
|
|
38
|
-
customElements.whenDefined(
|
|
38
|
+
customElements.whenDefined(s).then(() => {
|
|
39
39
|
this.setPartModel(this.partA, "partA"), this.setPartModel(this.partB, "partB");
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -48,18 +48,18 @@ var f = (e) => Array.isArray(e) && e.length > 0, p = (t) => {
|
|
|
48
48
|
if (this._model.partLabels) {
|
|
49
49
|
let e = this._model.language;
|
|
50
50
|
n = {
|
|
51
|
-
partA:
|
|
51
|
+
partA: l.t("ebsr.part", {
|
|
52
52
|
lng: e,
|
|
53
53
|
index: this._model.partLabelType === "Letters" ? "A" : "1"
|
|
54
54
|
}),
|
|
55
|
-
partB:
|
|
55
|
+
partB: l.t("ebsr.part", {
|
|
56
56
|
lng: e,
|
|
57
57
|
index: this._model.partLabelType === "Letters" ? "B" : "2"
|
|
58
58
|
})
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
e.model = {
|
|
62
|
-
...
|
|
62
|
+
...d(this._model[t], this._options),
|
|
63
63
|
keyMode: this._model[t].choicePrefix,
|
|
64
64
|
partLabel: n[t]
|
|
65
65
|
}, e.options = this._options, e._session || (e.session = {});
|
|
@@ -74,34 +74,34 @@ var f = (e) => Array.isArray(e) && e.length > 0, p = (t) => {
|
|
|
74
74
|
e.session = n && n[t] ? n[t] : { id: t };
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
dispatchSessionChanged(e,
|
|
77
|
+
dispatchSessionChanged(e, n) {
|
|
78
78
|
this._session.value = {
|
|
79
79
|
...this._session.value,
|
|
80
|
-
[
|
|
81
|
-
},
|
|
82
|
-
let r =
|
|
83
|
-
this.dispatchEvent(new
|
|
80
|
+
[n]: e
|
|
81
|
+
}, u("[onSessionChanged] session: ", this._session);
|
|
82
|
+
let r = m(this._session);
|
|
83
|
+
this.dispatchEvent(new t(this.tagName.toLowerCase(), r));
|
|
84
84
|
}
|
|
85
85
|
get partA() {
|
|
86
|
-
return this.querySelector(`${
|
|
86
|
+
return this.querySelector(`${s}#a`);
|
|
87
87
|
}
|
|
88
88
|
get partB() {
|
|
89
|
-
return this.querySelector(`${
|
|
89
|
+
return this.querySelector(`${s}#b`);
|
|
90
90
|
}
|
|
91
91
|
connectedCallback() {
|
|
92
|
-
this._render(), this.addEventListener(
|
|
92
|
+
this._render(), this.addEventListener(c, this.onSessionUpdated);
|
|
93
93
|
}
|
|
94
94
|
disconnectedCallback() {
|
|
95
|
-
this.removeEventListener(
|
|
95
|
+
this.removeEventListener(c, this.onSessionUpdated);
|
|
96
96
|
}
|
|
97
97
|
_render() {
|
|
98
98
|
this.innerHTML = `
|
|
99
99
|
<div>
|
|
100
|
-
<${
|
|
101
|
-
<${
|
|
100
|
+
<${s} id="a"></${s}>
|
|
101
|
+
<${s} id="b"></${s}>
|
|
102
102
|
</div>
|
|
103
103
|
`;
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
//#endregion
|
|
107
|
-
export {
|
|
107
|
+
export { h as default, m as isSessionComplete };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e = `--version-${((e) => e.trim().toLowerCase().replace(/[.+]/g, "-").replace(/[^0-9A-Za-z-]/g, "-").replace(/-{2,}/g, "-"))("14.2.2-next.10")}`, t = `ebsr-multiple-choice${e}`, n = `ebsr-multiple-choice-configure${e}`;
|
|
2
|
+
//#endregion
|
|
3
|
+
export { n as EBSR_MULTIPLE_CHOICE_CONFIGURE_TAG, t as EBSR_MULTIPLE_CHOICE_TAG };
|