@pie-element/explicit-constructed-response 11.1.2-next.0 → 11.1.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/alternateResponses.js +36 -39
- package/dist/author/alternateSection.d.ts +1 -1
- package/dist/author/alternateSection.js +55 -57
- package/dist/author/index.js +18 -19
- package/dist/author/main.d.ts +1 -1
- package/dist/author/main.js +139 -142
- package/dist/author/markupUtils.js +1 -1
- package/dist/browser/author/index.js +743 -863
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/browser-BC3WygxE.js +360 -0
- package/dist/browser/browser-BC3WygxE.js.map +1 -0
- package/dist/browser/controller/index.js +63 -94
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{dist-DnL6t4VO.js → dist-D5D48-XD.js} +10101 -10580
- package/dist/browser/dist-D5D48-XD.js.map +1 -0
- package/dist/browser/{main-V_e6PRBN.js → main-B4lD1zyg.js} +253 -235
- package/dist/browser/main-B4lD1zyg.js.map +1 -0
- package/dist/browser/print/index.js +5 -5
- package/dist/browser/print/index.js.map +1 -1
- package/dist/controller/index.d.ts +2 -2
- package/dist/controller/index.js +38 -41
- package/dist/delivery/main.js +28 -30
- package/dist/index.iife.js +100 -100
- package/dist/print/index.js +10 -10
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +14 -10
- package/dist/browser/browser-DbR93LB7.js +0 -950
- package/dist/browser/browser-DbR93LB7.js.map +0 -1
- package/dist/browser/dist-DnL6t4VO.js.map +0 -1
- package/dist/browser/main-V_e6PRBN.js.map +0 -1
- package/dist/browser/reduce-Bqz7DMQ0.js +0 -172
- package/dist/browser/reduce-Bqz7DMQ0.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/_arrayReduce.js +0 -8
- 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/_baseEach.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +0 -13
- 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/_baseForOwn.js +0 -8
- 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/_baseGt.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +0 -6
- 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/_baseIsMatch.js +0 -26
- 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/_baseIteratee.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/_baseMap.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +0 -8
- 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/_baseSet.js +0 -22
- 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/_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/_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/_createBaseEach.js +0 -12
- 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/_createFind.js +0 -19
- 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/_escapeHtmlChar.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +0 -9
- 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/_getMatchData.js +0 -16
- 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/_hasPath.js +0 -18
- 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/_isFlattenable.js +0 -10
- 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/_isStrictComparable.js +0 -7
- 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/_matchesStrictComparable.js +0 -8
- 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/_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/escape.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +0 -7
- 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/hasIn.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/map.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.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/now.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +0 -12
- 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/throttle.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +0 -8
- 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/toString.js +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
5
|
-
import { jsx as
|
|
1
|
+
import { E as e, b as t, m as n, n as r, s as i, t as a } from "./browser-BC3WygxE.js";
|
|
2
|
+
import { C as o, G as s, O as c, W as l, _ as u, at as d, g as f, h as p, it as m, m as h, p as g, q as _, t as v } from "./dist-D5D48-XD.js";
|
|
3
|
+
import { t as y } from "./dist-D9ARZhQk.js";
|
|
4
|
+
import b, { useRef as x } from "react";
|
|
5
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../lib-react/correct-answer-toggle/dist/expander.js
|
|
7
|
-
var
|
|
7
|
+
var w = /* @__PURE__ */ e(m(), 1), T = "height ease-in 300ms, opacity ease-in 300ms", E = _("div")(() => ({
|
|
8
8
|
position: "relative",
|
|
9
9
|
height: 0,
|
|
10
10
|
overflow: "hidden",
|
|
@@ -12,7 +12,7 @@ var T = /* @__PURE__ */ e(l(), 1), E = "height ease-in 300ms, opacity ease-in 30
|
|
|
12
12
|
visibility: "hidden",
|
|
13
13
|
width: 0,
|
|
14
14
|
"&.enter": {
|
|
15
|
-
transition:
|
|
15
|
+
transition: T,
|
|
16
16
|
opacity: 1,
|
|
17
17
|
height: "auto",
|
|
18
18
|
width: "auto",
|
|
@@ -26,7 +26,7 @@ var T = /* @__PURE__ */ e(l(), 1), E = "height ease-in 300ms, opacity ease-in 30
|
|
|
26
26
|
minHeight: "25px"
|
|
27
27
|
},
|
|
28
28
|
"&.exit": {
|
|
29
|
-
transition:
|
|
29
|
+
transition: T,
|
|
30
30
|
opacity: 0,
|
|
31
31
|
height: 0,
|
|
32
32
|
visibility: "visible",
|
|
@@ -38,9 +38,9 @@ var T = /* @__PURE__ */ e(l(), 1), E = "height ease-in 300ms, opacity ease-in 30
|
|
|
38
38
|
height: 0,
|
|
39
39
|
width: 0
|
|
40
40
|
}
|
|
41
|
-
})),
|
|
42
|
-
let { show: t, children: n, className: r } = e, i =
|
|
43
|
-
return /* @__PURE__ */
|
|
41
|
+
})), D = (e) => {
|
|
42
|
+
let { show: t, children: n, className: r } = e, i = x(null);
|
|
43
|
+
return /* @__PURE__ */ S(s, {
|
|
44
44
|
nodeRef: i,
|
|
45
45
|
in: t,
|
|
46
46
|
appear: !0,
|
|
@@ -52,53 +52,53 @@ var T = /* @__PURE__ */ e(l(), 1), E = "height ease-in 300ms, opacity ease-in 30
|
|
|
52
52
|
exit: "exit",
|
|
53
53
|
exitDone: "exit-done"
|
|
54
54
|
},
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ S(E, {
|
|
56
56
|
ref: i,
|
|
57
57
|
className: r,
|
|
58
58
|
children: n
|
|
59
59
|
})
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
|
|
63
|
-
show:
|
|
64
|
-
className:
|
|
65
|
-
children:
|
|
62
|
+
D.propTypes = {
|
|
63
|
+
show: w.default.bool.isRequired,
|
|
64
|
+
className: w.default.string,
|
|
65
|
+
children: w.default.oneOfType([w.default.arrayOf(w.default.node), w.default.node]).isRequired
|
|
66
66
|
};
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region ../../lib-react/icons/dist/correct-response-icon.js
|
|
69
|
-
var ee = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */
|
|
69
|
+
var ee = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ C("svg", {
|
|
70
70
|
preserveAspectRatio: "xMinYMin meet",
|
|
71
71
|
version: "1.1",
|
|
72
72
|
viewBox: "-283 359 34 35",
|
|
73
73
|
style: { enableBackground: "new -283 359 34 35" },
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ S("circle", {
|
|
76
76
|
cx: "-266",
|
|
77
77
|
cy: "375.9",
|
|
78
78
|
r: "14",
|
|
79
79
|
fill: e
|
|
80
80
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ S("path", {
|
|
82
82
|
d: "M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z",
|
|
83
83
|
fill: e
|
|
84
84
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ S("polygon", {
|
|
86
86
|
points: "-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6",
|
|
87
87
|
fill: t
|
|
88
88
|
})
|
|
89
89
|
]
|
|
90
90
|
});
|
|
91
91
|
ee.propTypes = {
|
|
92
|
-
bgFill:
|
|
93
|
-
fgFill:
|
|
92
|
+
bgFill: w.default.string.isRequired,
|
|
93
|
+
fgFill: w.default.string.isRequired
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var O = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ C("svg", {
|
|
96
96
|
preserveAspectRatio: "xMinYMin meet",
|
|
97
97
|
version: "1.1",
|
|
98
98
|
viewBox: "-129.5 127 34 35",
|
|
99
99
|
style: { enableBackground: "new -129.5 127 34 35" },
|
|
100
100
|
children: [
|
|
101
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ S("path", {
|
|
102
102
|
style: {
|
|
103
103
|
fill: "#D0CAC5",
|
|
104
104
|
stroke: "#E6E3E0",
|
|
@@ -107,7 +107,7 @@ var te = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ w("svg", {
|
|
|
107
107
|
},
|
|
108
108
|
d: "M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\n C-97.4,153.5-104.3,160.4-112.9,160.4z"
|
|
109
109
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ S("path", {
|
|
111
111
|
style: {
|
|
112
112
|
fill: "#B3ABA4",
|
|
113
113
|
stroke: "#CDC7C2",
|
|
@@ -116,77 +116,77 @@ var te = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ w("svg", {
|
|
|
116
116
|
},
|
|
117
117
|
d: "M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z"
|
|
118
118
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ S("circle", {
|
|
120
120
|
cx: "-114.2",
|
|
121
121
|
cy: "143.5",
|
|
122
122
|
r: "14",
|
|
123
123
|
fill: e
|
|
124
124
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ S("path", {
|
|
126
126
|
d: "M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z",
|
|
127
127
|
fill: n
|
|
128
128
|
}),
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ S("polygon", {
|
|
130
130
|
points: "-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2",
|
|
131
131
|
fill: t
|
|
132
132
|
})
|
|
133
133
|
]
|
|
134
134
|
});
|
|
135
|
-
|
|
136
|
-
bgFill:
|
|
137
|
-
fgFill:
|
|
138
|
-
borderFill:
|
|
135
|
+
O.propTypes = {
|
|
136
|
+
bgFill: w.default.string.isRequired,
|
|
137
|
+
fgFill: w.default.string.isRequired,
|
|
138
|
+
borderFill: w.default.string.isRequired
|
|
139
139
|
};
|
|
140
|
-
var
|
|
140
|
+
var te = _("div")(({ size: e }) => ({
|
|
141
141
|
width: e || "25px",
|
|
142
142
|
height: e || "25px"
|
|
143
|
-
})), k = ({ open: e, size: t }) => /* @__PURE__ */
|
|
143
|
+
})), k = ({ open: e, size: t }) => /* @__PURE__ */ S(te, {
|
|
144
144
|
size: t,
|
|
145
|
-
children: e ? /* @__PURE__ */
|
|
145
|
+
children: e ? /* @__PURE__ */ S(ee, {
|
|
146
146
|
bgFill: "#bce2ff",
|
|
147
147
|
fgFill: "#1a9cff"
|
|
148
|
-
}) : /* @__PURE__ */
|
|
148
|
+
}) : /* @__PURE__ */ S(O, {
|
|
149
149
|
bgFill: "white",
|
|
150
150
|
fgFill: "#1a9cff",
|
|
151
151
|
borderFill: "#bce2ff"
|
|
152
152
|
})
|
|
153
153
|
});
|
|
154
154
|
k.propTypes = {
|
|
155
|
-
open:
|
|
156
|
-
size:
|
|
155
|
+
open: w.default.bool,
|
|
156
|
+
size: w.default.string
|
|
157
157
|
}, k.defaultProps = { open: !1 };
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region ../../lib-react/correct-answer-toggle/dist/index.js
|
|
160
|
-
var
|
|
160
|
+
var ne = /* @__PURE__ */ e(a(), 1);
|
|
161
161
|
function A(e) {
|
|
162
162
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
163
163
|
}
|
|
164
164
|
function j(e, t) {
|
|
165
165
|
return !e || A(e) ? e : A(e.default) ? e.default : t && A(e[t]) ? e[t] : t && A(e[t]?.default) ? e[t].default : e;
|
|
166
166
|
}
|
|
167
|
-
var
|
|
167
|
+
var re = j(f, "Readable") || j(ie.Readable, "Readable"), M = g, N = M.default, ie = N && typeof N == "object" ? N : M, { translator: P } = y, ae = {
|
|
168
168
|
WebkitTouchCallout: "none",
|
|
169
169
|
WebkitUserSelect: "none",
|
|
170
170
|
KhtmlUserSelect: "none",
|
|
171
171
|
MozUserSelect: "none",
|
|
172
172
|
msUserSelect: "none",
|
|
173
173
|
userSelect: "none"
|
|
174
|
-
},
|
|
174
|
+
}, oe = _("div")(() => ({
|
|
175
175
|
width: "100%",
|
|
176
176
|
cursor: "pointer"
|
|
177
|
-
})),
|
|
177
|
+
})), se = _("div")(() => ({
|
|
178
178
|
margin: "0 auto",
|
|
179
179
|
textAlign: "center",
|
|
180
180
|
display: "flex"
|
|
181
|
-
})),
|
|
181
|
+
})), ce = _("div")(() => ({
|
|
182
182
|
width: "fit-content",
|
|
183
183
|
minWidth: "140px",
|
|
184
184
|
alignSelf: "center",
|
|
185
185
|
verticalAlign: "middle",
|
|
186
|
-
color: `var(--correct-answer-toggle-label-color, ${
|
|
186
|
+
color: `var(--correct-answer-toggle-label-color, ${l.text()})`,
|
|
187
187
|
fontWeight: "normal",
|
|
188
|
-
...
|
|
189
|
-
})),
|
|
188
|
+
...ae
|
|
189
|
+
})), le = _("div")(() => ({
|
|
190
190
|
position: "absolute",
|
|
191
191
|
width: "25px",
|
|
192
192
|
"&.enter": { opacity: "0" },
|
|
@@ -199,20 +199,20 @@ var ie = j(s, "Readable") || j(oe.Readable, "Readable"), ae = p, M = ae.default,
|
|
|
199
199
|
opacity: "0",
|
|
200
200
|
transition: "opacity 0.3s ease-in"
|
|
201
201
|
}
|
|
202
|
-
})),
|
|
202
|
+
})), ue = _("div")(() => ({
|
|
203
203
|
width: "25px",
|
|
204
204
|
marginRight: "5px",
|
|
205
205
|
display: "flex",
|
|
206
206
|
alignItems: "center"
|
|
207
|
-
})),
|
|
207
|
+
})), de = class e extends b.Component {
|
|
208
208
|
static propTypes = {
|
|
209
|
-
onToggle:
|
|
210
|
-
toggled:
|
|
211
|
-
show:
|
|
212
|
-
hideMessage:
|
|
213
|
-
showMessage:
|
|
214
|
-
className:
|
|
215
|
-
language:
|
|
209
|
+
onToggle: w.default.func,
|
|
210
|
+
toggled: w.default.bool,
|
|
211
|
+
show: w.default.bool,
|
|
212
|
+
hideMessage: w.default.string,
|
|
213
|
+
showMessage: w.default.string,
|
|
214
|
+
className: w.default.string,
|
|
215
|
+
language: w.default.string
|
|
216
216
|
};
|
|
217
217
|
static defaultProps = {
|
|
218
218
|
showMessage: "Show correct answer",
|
|
@@ -221,10 +221,10 @@ var ie = j(s, "Readable") || j(oe.Readable, "Readable"), ae = p, M = ae.default,
|
|
|
221
221
|
toggled: !1
|
|
222
222
|
};
|
|
223
223
|
constructor(t) {
|
|
224
|
-
super(t), this.state = { show: t.show }, this.openIconRef =
|
|
224
|
+
super(t), this.state = { show: t.show }, this.openIconRef = b.createRef(), this.closedIconRef = b.createRef(), e.defaultProps = {
|
|
225
225
|
...e.defaultProps,
|
|
226
|
-
showMessage:
|
|
227
|
-
hideMessage:
|
|
226
|
+
showMessage: P.t("common:showCorrectAnswer", { lng: t.language }),
|
|
227
|
+
hideMessage: P.t("common:hideCorrectAnswer", { lng: t.language })
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
onClick() {
|
|
@@ -236,20 +236,20 @@ var ie = j(s, "Readable") || j(oe.Readable, "Readable"), ae = p, M = ae.default,
|
|
|
236
236
|
UNSAFE_componentWillReceiveProps(t) {
|
|
237
237
|
this.setState({ show: t.show }), t.language !== this.props?.language && (e.defaultProps = {
|
|
238
238
|
...e.defaultProps,
|
|
239
|
-
showMessage:
|
|
240
|
-
hideMessage:
|
|
239
|
+
showMessage: P.t("common:showCorrectAnswer", { lng: t.language }),
|
|
240
|
+
hideMessage: P.t("common:hideCorrectAnswer", { lng: t.language })
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
render() {
|
|
244
244
|
let { className: e, toggled: t, hideMessage: n, showMessage: r } = this.props;
|
|
245
|
-
return /* @__PURE__ */
|
|
245
|
+
return /* @__PURE__ */ S(oe, {
|
|
246
246
|
className: e,
|
|
247
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ S(D, {
|
|
248
248
|
show: this.state.show,
|
|
249
|
-
children: /* @__PURE__ */
|
|
249
|
+
children: /* @__PURE__ */ C(se, {
|
|
250
250
|
onClick: this.onClick.bind(this),
|
|
251
251
|
onTouchEnd: this.onTouch.bind(this),
|
|
252
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ C(ue, { children: [/* @__PURE__ */ S(s, {
|
|
253
253
|
nodeRef: this.openIconRef,
|
|
254
254
|
timeout: 400,
|
|
255
255
|
in: t,
|
|
@@ -260,11 +260,11 @@ var ie = j(s, "Readable") || j(oe.Readable, "Readable"), ae = p, M = ae.default,
|
|
|
260
260
|
exit: "exit",
|
|
261
261
|
exitActive: "exit-active"
|
|
262
262
|
},
|
|
263
|
-
children: /* @__PURE__ */
|
|
263
|
+
children: /* @__PURE__ */ S(le, {
|
|
264
264
|
ref: this.openIconRef,
|
|
265
|
-
children: /* @__PURE__ */
|
|
265
|
+
children: /* @__PURE__ */ S(k, { open: t }, "correct-open")
|
|
266
266
|
})
|
|
267
|
-
}), /* @__PURE__ */
|
|
267
|
+
}), /* @__PURE__ */ S(s, {
|
|
268
268
|
nodeRef: this.closedIconRef,
|
|
269
269
|
timeout: 5e3,
|
|
270
270
|
in: !t,
|
|
@@ -275,13 +275,13 @@ var ie = j(s, "Readable") || j(oe.Readable, "Readable"), ae = p, M = ae.default,
|
|
|
275
275
|
exit: "exit",
|
|
276
276
|
exitActive: "exit-active"
|
|
277
277
|
},
|
|
278
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ S(le, {
|
|
279
279
|
ref: this.closedIconRef,
|
|
280
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ S(k, { open: t }, "correct-closed")
|
|
281
281
|
})
|
|
282
|
-
})] }), /* @__PURE__ */
|
|
282
|
+
})] }), /* @__PURE__ */ S(re, {
|
|
283
283
|
false: !0,
|
|
284
|
-
children: /* @__PURE__ */
|
|
284
|
+
children: /* @__PURE__ */ S(ce, {
|
|
285
285
|
"aria-hidden": !this.state.show,
|
|
286
286
|
children: t ? n : r
|
|
287
287
|
})
|
|
@@ -290,7 +290,7 @@ var ie = j(s, "Readable") || j(oe.Readable, "Readable"), ae = p, M = ae.default,
|
|
|
290
290
|
})
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, fe = /\{\{(\d+)\}\}/g, pe = (e, t) => e ? { markup: e.replace(fe, (e, n) => `<span data-component="${t}" data-id="${n}"></span>`) } : { markup: "" }, F = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), I = /* @__PURE__ */ F(((e, t) => {
|
|
294
294
|
t.exports = {
|
|
295
295
|
"border-radius": 1,
|
|
296
296
|
"border-top-left-radius": 1,
|
|
@@ -317,10 +317,10 @@ var ie = j(s, "Readable") || j(oe.Readable, "Readable"), ae = p, M = ae.default,
|
|
|
317
317
|
"box-pack": 1
|
|
318
318
|
};
|
|
319
319
|
}));
|
|
320
|
-
|
|
320
|
+
I();
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js
|
|
323
|
-
var
|
|
323
|
+
var L = /* @__PURE__ */ F(((e, t) => {
|
|
324
324
|
t.exports = {
|
|
325
325
|
animation: 1,
|
|
326
326
|
"column-count": 1,
|
|
@@ -340,19 +340,19 @@ var I = /* @__PURE__ */ P(((e, t) => {
|
|
|
340
340
|
rowspan: 1
|
|
341
341
|
};
|
|
342
342
|
}));
|
|
343
|
-
|
|
343
|
+
L();
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js
|
|
346
|
-
var
|
|
346
|
+
var R = /* @__PURE__ */ F(((e, t) => {
|
|
347
347
|
t.exports = function(e) {
|
|
348
348
|
return e.length ? e.charAt(0).toUpperCase() + e.substring(1) : e;
|
|
349
349
|
};
|
|
350
350
|
}));
|
|
351
|
-
|
|
351
|
+
R();
|
|
352
352
|
//#endregion
|
|
353
353
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js
|
|
354
|
-
var
|
|
355
|
-
var n =
|
|
354
|
+
var z = /* @__PURE__ */ F(((e, t) => {
|
|
355
|
+
var n = R(), r = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = typeof document > "u" ? {} : document.documentElement.style;
|
|
356
356
|
t.exports = (function() {
|
|
357
357
|
var e = (function() {
|
|
358
358
|
for (var e in i) if (r.test(e)) return e.match(r)[0];
|
|
@@ -369,54 +369,54 @@ var R = /* @__PURE__ */ P(((e, t) => {
|
|
|
369
369
|
};
|
|
370
370
|
})();
|
|
371
371
|
}));
|
|
372
|
-
|
|
372
|
+
z();
|
|
373
373
|
//#endregion
|
|
374
374
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js
|
|
375
|
-
var
|
|
375
|
+
var B = /* @__PURE__ */ F(((e, t) => {
|
|
376
376
|
t.exports = /[-\s]+(.)?/g;
|
|
377
377
|
}));
|
|
378
|
-
|
|
378
|
+
B();
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js
|
|
381
|
-
var
|
|
381
|
+
var V = /* @__PURE__ */ F(((e, t) => {
|
|
382
382
|
var n = function(e, t) {
|
|
383
383
|
return t ? t.toUpperCase() : "";
|
|
384
|
-
}, r =
|
|
384
|
+
}, r = B();
|
|
385
385
|
t.exports = function(e) {
|
|
386
386
|
return e ? e.replace(r, n) : "";
|
|
387
387
|
};
|
|
388
388
|
}));
|
|
389
|
-
|
|
389
|
+
V();
|
|
390
390
|
//#endregion
|
|
391
391
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js
|
|
392
|
-
var
|
|
392
|
+
var H = /* @__PURE__ */ F(((e, t) => {
|
|
393
393
|
var n = /::/g, r = /([A-Z]+)([A-Z][a-z])/g, i = /([a-z\d])([A-Z])/g, a = /_/g;
|
|
394
394
|
t.exports = function(e, t) {
|
|
395
395
|
return e ? e.replace(n, "/").replace(r, "$1_$2").replace(i, "$1_$2").replace(a, t || "-") : "";
|
|
396
396
|
};
|
|
397
397
|
}));
|
|
398
|
-
|
|
398
|
+
H();
|
|
399
399
|
//#endregion
|
|
400
400
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js
|
|
401
|
-
var
|
|
402
|
-
var n =
|
|
401
|
+
var U = /* @__PURE__ */ F(((e, t) => {
|
|
402
|
+
var n = H();
|
|
403
403
|
t.exports = function(e) {
|
|
404
404
|
return n(e).toLowerCase();
|
|
405
405
|
};
|
|
406
406
|
}));
|
|
407
|
-
|
|
407
|
+
U();
|
|
408
408
|
//#endregion
|
|
409
409
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js
|
|
410
|
-
var
|
|
410
|
+
var me = /* @__PURE__ */ F(((e, t) => {
|
|
411
411
|
t.exports = function(e) {
|
|
412
412
|
return e.length ? e.charAt(0).toLowerCase() + e.substring(1) : e;
|
|
413
413
|
};
|
|
414
414
|
}));
|
|
415
|
-
|
|
415
|
+
me();
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js
|
|
418
|
-
var
|
|
419
|
-
var n =
|
|
418
|
+
var he = /* @__PURE__ */ F(((e, t) => {
|
|
419
|
+
var n = V(), r = U(), i = me(), a = R(), o = z(), s = I(), c = typeof document > "u" ? {} : document.documentElement.style;
|
|
420
420
|
t.exports = function(e) {
|
|
421
421
|
return function(t, l) {
|
|
422
422
|
l ||= {};
|
|
@@ -433,45 +433,45 @@ var _e = /* @__PURE__ */ P(((e, t) => {
|
|
|
433
433
|
};
|
|
434
434
|
};
|
|
435
435
|
}));
|
|
436
|
-
|
|
436
|
+
he();
|
|
437
437
|
//#endregion
|
|
438
438
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js
|
|
439
|
-
var
|
|
440
|
-
t.exports =
|
|
439
|
+
var W = /* @__PURE__ */ F(((e, t) => {
|
|
440
|
+
t.exports = he()();
|
|
441
441
|
}));
|
|
442
|
-
|
|
442
|
+
W();
|
|
443
443
|
//#endregion
|
|
444
444
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js
|
|
445
|
-
var
|
|
445
|
+
var G = /* @__PURE__ */ F(((e, t) => {
|
|
446
446
|
var n = Object.prototype.hasOwnProperty;
|
|
447
447
|
t.exports = function(e, t) {
|
|
448
448
|
return n.call(e, t);
|
|
449
449
|
};
|
|
450
450
|
}));
|
|
451
|
-
|
|
451
|
+
G();
|
|
452
452
|
//#endregion
|
|
453
453
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js
|
|
454
|
-
var
|
|
454
|
+
var ge = /* @__PURE__ */ F(((e, t) => {
|
|
455
455
|
var n = Object.prototype.toString;
|
|
456
456
|
t.exports = function(e) {
|
|
457
457
|
return !!e && n.call(e) === "[object Object]";
|
|
458
458
|
};
|
|
459
459
|
}));
|
|
460
|
-
|
|
460
|
+
ge();
|
|
461
461
|
//#endregion
|
|
462
462
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js
|
|
463
|
-
var
|
|
463
|
+
var _e = /* @__PURE__ */ F(((e, t) => {
|
|
464
464
|
var n = Object.prototype.toString;
|
|
465
465
|
t.exports = function(e) {
|
|
466
466
|
return n.apply(e) === "[object Function]";
|
|
467
467
|
};
|
|
468
468
|
}));
|
|
469
|
-
|
|
469
|
+
_e();
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js
|
|
472
|
-
var
|
|
473
|
-
|
|
474
|
-
var n =
|
|
472
|
+
var K = /* @__PURE__ */ F(((e, t) => {
|
|
473
|
+
z();
|
|
474
|
+
var n = W(), r = U(), i = V(), a = G(), o = ge(), s = _e(), c = function(e, t, r, i) {
|
|
475
475
|
n(t).forEach(function(t) {
|
|
476
476
|
e[i ? i(t) : t] = r;
|
|
477
477
|
});
|
|
@@ -482,7 +482,7 @@ var G = /* @__PURE__ */ P(((e, t) => {
|
|
|
482
482
|
var n = e.split(":");
|
|
483
483
|
n.length == 2 && (t[n[0].trim()] = n[1].trim());
|
|
484
484
|
}), t;
|
|
485
|
-
}, u = { cssUnitless:
|
|
485
|
+
}, u = { cssUnitless: L() }, d = function(e, t, n, f) {
|
|
486
486
|
typeof e == "string" && (e = l(e)), t ||= u, t.cssUnitless = t.cssUnitless || u.cssUnitless, f ||= {};
|
|
487
487
|
var p = t.scope || {}, m = t.addUnits == null ? p && p.addUnits != null ? p.addUnits : !0 : t.addUnits, h = (t.cssUnitless == null ? p ? p.cssUnitless : null : t.cssUnitless) || {}, g = (t.cssUnit || p ? p.cssUnit : null) || "px", _ = t.prefixProperties || (p ? p.prefixProperties : null) || {}, v = t.camelize ? i : r, y, b, x, S, C, w, T, E;
|
|
488
488
|
for (x in e) if (a(e, x)) {
|
|
@@ -511,11 +511,11 @@ var G = /* @__PURE__ */ P(((e, t) => {
|
|
|
511
511
|
};
|
|
512
512
|
t.exports = d;
|
|
513
513
|
}));
|
|
514
|
-
|
|
514
|
+
K();
|
|
515
515
|
//#endregion
|
|
516
516
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js
|
|
517
|
-
var
|
|
518
|
-
var n =
|
|
517
|
+
var ve = /* @__PURE__ */ F(((e, t) => {
|
|
518
|
+
var n = K(), r = G();
|
|
519
519
|
t.exports = function(e, t) {
|
|
520
520
|
e = n(e, t);
|
|
521
521
|
var i = [], a;
|
|
@@ -523,25 +523,25 @@ var be = /* @__PURE__ */ P(((e, t) => {
|
|
|
523
523
|
return i.join("; ");
|
|
524
524
|
};
|
|
525
525
|
}));
|
|
526
|
-
|
|
526
|
+
ve();
|
|
527
527
|
//#endregion
|
|
528
528
|
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js
|
|
529
|
-
var
|
|
529
|
+
var ye = /* @__PURE__ */ F(((e, t) => {
|
|
530
530
|
t.exports = {
|
|
531
|
-
prefixProperties:
|
|
532
|
-
cssUnitless:
|
|
533
|
-
object:
|
|
534
|
-
string:
|
|
531
|
+
prefixProperties: I(),
|
|
532
|
+
cssUnitless: L(),
|
|
533
|
+
object: K(),
|
|
534
|
+
string: ve()
|
|
535
535
|
};
|
|
536
536
|
}));
|
|
537
|
-
|
|
537
|
+
ye();
|
|
538
538
|
//#endregion
|
|
539
539
|
//#region ../../lib-react/mask-markup/dist/serialization.js
|
|
540
|
-
var
|
|
540
|
+
var be = ye(), xe = (0, ne.default)("@pie-lib:mask-markup:serialization"), Se = ["span"], Ce = [
|
|
541
541
|
"em",
|
|
542
542
|
"strong",
|
|
543
543
|
"u"
|
|
544
|
-
],
|
|
544
|
+
], we = 3, Te = 8, Ee = 1, De = (e) => {
|
|
545
545
|
if (!e.attributes || e.attributes.length <= 0) return;
|
|
546
546
|
let t = {}, n;
|
|
547
547
|
for (n = 0; n < e.attributes.length; n++) {
|
|
@@ -549,44 +549,44 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
549
549
|
t[r.name] = r.value;
|
|
550
550
|
}
|
|
551
551
|
return t;
|
|
552
|
-
},
|
|
552
|
+
}, Oe = (e) => Se.includes(e) ? "inline" : Ce.includes(e) ? "mark" : "block", ke = (e) => {
|
|
553
553
|
let t = /([\w-]*)\s*:\s*([^;]*)/g, n, r = {};
|
|
554
554
|
for (; n = t.exec(e);) r[n[1]] = n[2].trim();
|
|
555
555
|
return r;
|
|
556
|
-
},
|
|
556
|
+
}, Ae = (e) => (0, be.object)(e, {
|
|
557
557
|
camelize: !0,
|
|
558
558
|
addUnits: !1
|
|
559
|
-
}),
|
|
559
|
+
}), je = (e, t) => Ae(ke(e.getAttribute(t))), Me = (e, t, n) => {
|
|
560
560
|
let r = e.getAttribute(n);
|
|
561
561
|
return delete t.class, r;
|
|
562
|
-
},
|
|
562
|
+
}, Ne = (e) => (t, n) => {
|
|
563
563
|
if (!e.getAttribute) return t;
|
|
564
564
|
if (e.getAttribute(n)) switch (n) {
|
|
565
565
|
case "style":
|
|
566
|
-
t.style =
|
|
566
|
+
t.style = je(e, n);
|
|
567
567
|
break;
|
|
568
568
|
case "class":
|
|
569
|
-
t.className =
|
|
569
|
+
t.className = Me(e, t, n);
|
|
570
570
|
break;
|
|
571
571
|
default:
|
|
572
572
|
t[n] = e.getAttribute(n);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
return t;
|
|
576
|
-
},
|
|
576
|
+
}, Pe = [
|
|
577
577
|
"border",
|
|
578
578
|
"class",
|
|
579
579
|
"style"
|
|
580
|
-
],
|
|
580
|
+
], q = {
|
|
581
581
|
b: "bold",
|
|
582
582
|
em: "italic",
|
|
583
583
|
u: "underline",
|
|
584
584
|
s: "strikethrough",
|
|
585
585
|
code: "code",
|
|
586
586
|
strong: "strong"
|
|
587
|
-
},
|
|
588
|
-
if (e.nodeType ===
|
|
589
|
-
if (e.nodeType ===
|
|
587
|
+
}, Fe = (e, t = []) => {
|
|
588
|
+
if (e.nodeType === Te) return null;
|
|
589
|
+
if (e.nodeType === we) {
|
|
590
590
|
let n = { text: e.textContent };
|
|
591
591
|
return t.length > 0 && (n.marks = t.map((e) => ({
|
|
592
592
|
type: e,
|
|
@@ -596,19 +596,19 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
596
596
|
leaves: [n]
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
if (e.nodeType ===
|
|
600
|
-
let n = e.tagName.toLowerCase(), r =
|
|
601
|
-
if (r) return
|
|
599
|
+
if (e.nodeType === Ee) {
|
|
600
|
+
let n = e.tagName.toLowerCase(), r = q[n];
|
|
601
|
+
if (r) return xe("[deserialize] mark: ", r), {
|
|
602
602
|
_flatten: !0,
|
|
603
|
-
nodes:
|
|
603
|
+
nodes: J(e.childNodes, [...t, r])
|
|
604
604
|
};
|
|
605
605
|
if (n === "math") return {
|
|
606
606
|
isMath: !0,
|
|
607
607
|
nodes: [e]
|
|
608
608
|
};
|
|
609
|
-
let i =
|
|
609
|
+
let i = De(e) || {};
|
|
610
610
|
n === "audio" && i.controls === "" && (i.controls = !0);
|
|
611
|
-
let a =
|
|
611
|
+
let a = Pe.reduce(Ne(e), { ...i }), o = Oe(n), s = J(e.childNodes, t);
|
|
612
612
|
return {
|
|
613
613
|
object: o,
|
|
614
614
|
type: n,
|
|
@@ -620,14 +620,14 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
return null;
|
|
623
|
-
},
|
|
623
|
+
}, J = (e, t = []) => {
|
|
624
624
|
let n = [];
|
|
625
625
|
for (let r = 0; r < e.length; r++) {
|
|
626
|
-
let i =
|
|
626
|
+
let i = Fe(e[r], t);
|
|
627
627
|
i !== null && (i._flatten && i.nodes ? n.push(...i.nodes) : n.push(i));
|
|
628
628
|
}
|
|
629
629
|
return n;
|
|
630
|
-
},
|
|
630
|
+
}, Ie = (e) => {
|
|
631
631
|
if (!e || !e.trim()) return {
|
|
632
632
|
object: "value",
|
|
633
633
|
document: {
|
|
@@ -642,7 +642,7 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
642
642
|
}]
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
|
-
let t =
|
|
645
|
+
let t = J(new DOMParser().parseFromString(e, "text/html").body.childNodes);
|
|
646
646
|
return !t.some((e) => e.object === "block" || e.object === "inline") && t.length > 0 && (t = [{
|
|
647
647
|
object: "block",
|
|
648
648
|
type: "span",
|
|
@@ -663,79 +663,79 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
663
663
|
nodes: t
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
|
-
},
|
|
666
|
+
}, Le = _("div")(({ theme: e }) => ({
|
|
667
667
|
paddingTop: e.spacing(.5),
|
|
668
668
|
paddingBottom: e.spacing(.5)
|
|
669
|
-
})),
|
|
669
|
+
})), Re = _("span")(() => ({
|
|
670
670
|
display: "inline-block",
|
|
671
671
|
width: ".75em"
|
|
672
|
-
})),
|
|
672
|
+
})), ze = ["tbody", "tr"], Be = (e, t) => {
|
|
673
673
|
let n = t.trim() === "", r = e && e.type;
|
|
674
|
-
if (!(n &&
|
|
675
|
-
},
|
|
674
|
+
if (!(n && ze.includes(r))) return t;
|
|
675
|
+
}, Ve = (e) => {
|
|
676
676
|
let n = e.leaves.find((e) => t(e, "marks", []).length);
|
|
677
677
|
return n ? n.marks[0] : null;
|
|
678
|
-
},
|
|
678
|
+
}, He = (e, t, n, r, i, a) => {
|
|
679
679
|
if (!t) return null;
|
|
680
680
|
let o = [];
|
|
681
681
|
return (e.nodes || []).forEach((e, s) => {
|
|
682
682
|
let c = e.type ? `${e.type}-${s}` : `${s}`;
|
|
683
|
-
if (e.isMath) return o.push(/* @__PURE__ */
|
|
683
|
+
if (e.isMath) return o.push(/* @__PURE__ */ S("span", { dangerouslySetInnerHTML: { __html: `<math displaystyle="true">${e.nodes[0].innerHTML}</math>` } })), o;
|
|
684
684
|
if (r) {
|
|
685
685
|
let i = r(e, t, n);
|
|
686
686
|
if (i) {
|
|
687
687
|
let t = e.data?.dataset?.component === "blank";
|
|
688
|
-
t && o.push(/* @__PURE__ */
|
|
688
|
+
t && o.push(/* @__PURE__ */ S(Re, {}, `spacer-${s}`)), o.push(i), t && o.push(/* @__PURE__ */ S(Re, {}, `spacer-${s}`));
|
|
689
689
|
return;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
if (e.object === "text") {
|
|
693
693
|
let t = e.leaves.reduce((e, t) => {
|
|
694
|
-
let n = t.text, r =
|
|
694
|
+
let n = t.text, r = Be(i, n);
|
|
695
695
|
return r ? e + r : e;
|
|
696
|
-
}, ""), n =
|
|
696
|
+
}, ""), n = Ve(e);
|
|
697
697
|
if (n) {
|
|
698
698
|
let e;
|
|
699
|
-
for (e in
|
|
699
|
+
for (e in q) if (q[e] === n.type) {
|
|
700
700
|
let n = e;
|
|
701
|
-
o.push(/* @__PURE__ */
|
|
701
|
+
o.push(/* @__PURE__ */ S(n, { children: t }, c));
|
|
702
702
|
break;
|
|
703
703
|
}
|
|
704
704
|
} else t.length > 0 && o.push(t);
|
|
705
705
|
} else {
|
|
706
|
-
let i =
|
|
707
|
-
if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */
|
|
706
|
+
let i = He(e, t, n, r, e, a);
|
|
707
|
+
if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */ S(Le, { children: i }, c));
|
|
708
708
|
else {
|
|
709
709
|
let t = e.type;
|
|
710
|
-
e.nodes && e.nodes.length > 0 ? o.push(/* @__PURE__ */
|
|
710
|
+
e.nodes && e.nodes.length > 0 ? o.push(/* @__PURE__ */ S(t, {
|
|
711
711
|
...e.data.attributes,
|
|
712
712
|
children: i
|
|
713
|
-
}, c)) : o.push(/* @__PURE__ */
|
|
713
|
+
}, c)) : o.push(/* @__PURE__ */ S(t, { ...e.data.attributes }, c));
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
}), o;
|
|
717
|
-
},
|
|
717
|
+
}, Ue = _("div")(() => ({
|
|
718
718
|
display: "initial",
|
|
719
719
|
"&:not(.MathJax) table": { borderCollapse: "collapse" },
|
|
720
720
|
"&:not(.MathJax) table td, &:not(.MathJax) table th": {
|
|
721
721
|
padding: "8px 12px",
|
|
722
722
|
textAlign: "left"
|
|
723
723
|
}
|
|
724
|
-
})),
|
|
724
|
+
})), We = class extends b.Component {
|
|
725
725
|
constructor(e) {
|
|
726
|
-
super(e), this.internalContainerRef =
|
|
726
|
+
super(e), this.internalContainerRef = b.createRef();
|
|
727
727
|
}
|
|
728
728
|
static propTypes = {
|
|
729
|
-
renderChildren:
|
|
730
|
-
layout:
|
|
731
|
-
value:
|
|
732
|
-
onChange:
|
|
733
|
-
elementType:
|
|
734
|
-
containerRef:
|
|
729
|
+
renderChildren: w.default.func,
|
|
730
|
+
layout: w.default.object,
|
|
731
|
+
value: w.default.object,
|
|
732
|
+
onChange: w.default.func,
|
|
733
|
+
elementType: w.default.string,
|
|
734
|
+
containerRef: w.default.oneOfType([w.default.func, w.default.shape({ current: w.default.instanceOf(Element) })])
|
|
735
735
|
};
|
|
736
736
|
componentDidMount() {
|
|
737
737
|
let e = this.props.containerRef || this.internalContainerRef;
|
|
738
|
-
e.current && typeof
|
|
738
|
+
e.current && typeof d == "function" && d(e.current);
|
|
739
739
|
}
|
|
740
740
|
handleChange = (e, t) => {
|
|
741
741
|
let n = {
|
|
@@ -745,26 +745,26 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
745
745
|
this.props.onChange(n);
|
|
746
746
|
};
|
|
747
747
|
render() {
|
|
748
|
-
let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i =
|
|
749
|
-
return /* @__PURE__ */
|
|
748
|
+
let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = He(t, e, this.handleChange, this.props.renderChildren, null, n);
|
|
749
|
+
return /* @__PURE__ */ S(Ue, {
|
|
750
750
|
ref: r || this.internalContainerRef,
|
|
751
751
|
children: i
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
|
-
},
|
|
755
|
-
let { markup: n } =
|
|
756
|
-
return
|
|
757
|
-
},
|
|
754
|
+
}, Ge = (e, t) => {
|
|
755
|
+
let { markup: n } = pe(e, t);
|
|
756
|
+
return Ie(n).document;
|
|
757
|
+
}, Ke = (e, t) => class extends b.Component {
|
|
758
758
|
static propTypes = {
|
|
759
|
-
markup:
|
|
760
|
-
layout:
|
|
761
|
-
value:
|
|
762
|
-
onChange:
|
|
763
|
-
customMarkMarkupComponent:
|
|
764
|
-
elementType:
|
|
759
|
+
markup: w.default.string,
|
|
760
|
+
layout: w.default.object,
|
|
761
|
+
value: w.default.object,
|
|
762
|
+
onChange: w.default.func,
|
|
763
|
+
customMarkMarkupComponent: w.default.func,
|
|
764
|
+
elementType: w.default.string
|
|
765
765
|
};
|
|
766
766
|
constructor(e) {
|
|
767
|
-
super(e), this.containerRef =
|
|
767
|
+
super(e), this.containerRef = b.createRef();
|
|
768
768
|
}
|
|
769
769
|
componentDidUpdate(e) {
|
|
770
770
|
if (this.props.markup !== e.markup) {
|
|
@@ -776,8 +776,8 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
render() {
|
|
779
|
-
let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r ||
|
|
780
|
-
return /* @__PURE__ */
|
|
779
|
+
let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r || Ge(n, e);
|
|
780
|
+
return /* @__PURE__ */ S(We, {
|
|
781
781
|
containerRef: this.containerRef,
|
|
782
782
|
elementType: o,
|
|
783
783
|
layout: s,
|
|
@@ -786,19 +786,37 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
786
786
|
renderChildren: t(this.props)
|
|
787
787
|
});
|
|
788
788
|
}
|
|
789
|
-
}
|
|
789
|
+
};
|
|
790
|
+
//#endregion
|
|
791
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js
|
|
792
|
+
function qe(e) {
|
|
793
|
+
var t, n, r = "";
|
|
794
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
795
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
796
|
+
var i = e.length;
|
|
797
|
+
for (t = 0; t < i; t++) e[t] && (n = qe(e[t])) && (r && (r += " "), r += n);
|
|
798
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
799
|
+
return r;
|
|
800
|
+
}
|
|
801
|
+
function Je() {
|
|
802
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = qe(e)) && (r && (r += " "), r += t);
|
|
803
|
+
return r;
|
|
804
|
+
}
|
|
805
|
+
//#endregion
|
|
806
|
+
//#region ../../lib-react/mask-markup/dist/constructed-response.js
|
|
807
|
+
var Ye = _(v)(() => ({
|
|
790
808
|
display: "inline-block",
|
|
791
809
|
verticalAlign: "middle",
|
|
792
810
|
margin: "4px",
|
|
793
811
|
borderRadius: "4px",
|
|
794
|
-
border: `1px solid ${
|
|
795
|
-
"&.correct": { border: `1px solid ${
|
|
796
|
-
"&.incorrect": { border: `1px solid ${
|
|
797
|
-
})),
|
|
812
|
+
border: `1px solid ${l.black()}`,
|
|
813
|
+
"&.correct": { border: `1px solid ${l.correct()}` },
|
|
814
|
+
"&.incorrect": { border: `1px solid ${l.incorrect()}` }
|
|
815
|
+
})), Xe = Ke("input", (e) => (t, n) => {
|
|
798
816
|
let { adjustedLimit: r, disabled: i, feedback: a, showCorrectAnswer: o, maxLength: s, spellCheck: c, pluginProps: l, onChange: u } = e, d = t.data?.dataset || {};
|
|
799
817
|
if (d.component === "input") {
|
|
800
818
|
let f = (e.choices && d && e.choices[d.id] || [])[0], p = o ? f && f.label : n[d.id] || "", m = s && s[d.id], h = a && a[d.id], g = o || h === "correct", _ = !o && h === "incorrect";
|
|
801
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ S(Ye, {
|
|
802
820
|
id: d.id,
|
|
803
821
|
disabled: o || i,
|
|
804
822
|
disableUnderline: !0,
|
|
@@ -824,7 +842,7 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
824
842
|
noBorder: !0,
|
|
825
843
|
isHidden: !!l?.characters?.disabled
|
|
826
844
|
},
|
|
827
|
-
className: (
|
|
845
|
+
className: Je({
|
|
828
846
|
correct: g,
|
|
829
847
|
incorrect: _
|
|
830
848
|
})
|
|
@@ -833,53 +851,53 @@ var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we =
|
|
|
833
851
|
});
|
|
834
852
|
//#endregion
|
|
835
853
|
//#region src/delivery/main.tsx
|
|
836
|
-
function
|
|
854
|
+
function Y(e) {
|
|
837
855
|
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
838
856
|
}
|
|
839
|
-
function
|
|
840
|
-
return !e ||
|
|
857
|
+
function X(e, t) {
|
|
858
|
+
return !e || Y(e) ? e : Y(e.default) ? e.default : t && Y(e[t]) ? e[t] : t && Y(e[t]?.default) ? e[t].default : e;
|
|
841
859
|
}
|
|
842
|
-
var
|
|
843
|
-
color:
|
|
844
|
-
backgroundColor:
|
|
845
|
-
...e && { "& *": { borderColor: `${
|
|
846
|
-
})),
|
|
860
|
+
var Ze = X(o, "UiLayout") || X($.UiLayout, "UiLayout"), Z = X(u, "PreviewPrompt") || X($.PreviewPrompt, "PreviewPrompt"), Qe = X(c, "Collapsible") || X($.Collapsible, "Collapsible"), $e = g, Q = $e.default, $ = Q && typeof Q == "object" ? Q : $e, { translator: et } = y, tt = _(Ze)(({ alwaysShowCorrect: e }) => ({
|
|
861
|
+
color: l.text(),
|
|
862
|
+
backgroundColor: l.background(),
|
|
863
|
+
...e && { "& *": { borderColor: `${l.text()} !important` } }
|
|
864
|
+
})), nt = _("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), rt = _("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), it = _("h2")({
|
|
847
865
|
position: "absolute",
|
|
848
866
|
left: "-10000px",
|
|
849
867
|
top: "auto",
|
|
850
868
|
width: "1px",
|
|
851
869
|
height: "1px",
|
|
852
870
|
overflow: "hidden"
|
|
853
|
-
}), at = class extends
|
|
871
|
+
}), at = class extends b.Component {
|
|
854
872
|
static propTypes = {
|
|
855
|
-
alwaysShowCorrect:
|
|
856
|
-
animationsDisabled:
|
|
857
|
-
disabled:
|
|
858
|
-
displayType:
|
|
859
|
-
feedback:
|
|
860
|
-
language:
|
|
861
|
-
markup:
|
|
862
|
-
maxLengthPerChoice:
|
|
863
|
-
maxLengthPerChoiceEnabled:
|
|
864
|
-
mode:
|
|
865
|
-
note:
|
|
866
|
-
onChange:
|
|
867
|
-
playerSpellCheckEnabled:
|
|
868
|
-
prompt:
|
|
869
|
-
rationale:
|
|
870
|
-
role:
|
|
871
|
-
showNote:
|
|
872
|
-
teacherInstructions:
|
|
873
|
-
value:
|
|
874
|
-
responseAreaInputConfiguration:
|
|
875
|
-
model:
|
|
873
|
+
alwaysShowCorrect: w.default.bool,
|
|
874
|
+
animationsDisabled: w.default.bool,
|
|
875
|
+
disabled: w.default.bool,
|
|
876
|
+
displayType: w.default.string,
|
|
877
|
+
feedback: w.default.object,
|
|
878
|
+
language: w.default.string,
|
|
879
|
+
markup: w.default.string,
|
|
880
|
+
maxLengthPerChoice: w.default.array,
|
|
881
|
+
maxLengthPerChoiceEnabled: w.default.bool,
|
|
882
|
+
mode: w.default.string,
|
|
883
|
+
note: w.default.string,
|
|
884
|
+
onChange: w.default.func,
|
|
885
|
+
playerSpellCheckEnabled: w.default.bool,
|
|
886
|
+
prompt: w.default.string,
|
|
887
|
+
rationale: w.default.string,
|
|
888
|
+
role: w.default.string,
|
|
889
|
+
showNote: w.default.bool,
|
|
890
|
+
teacherInstructions: w.default.string,
|
|
891
|
+
value: w.default.object,
|
|
892
|
+
responseAreaInputConfiguration: w.default.object,
|
|
893
|
+
model: w.default.object.isRequired
|
|
876
894
|
};
|
|
877
895
|
static defaultProps = { value: {} };
|
|
878
896
|
state = { showCorrectAnswer: this.props.alwaysShowCorrect || !1 };
|
|
879
|
-
getChangeSession = (e) => e && e.every((e, t, n) => e === n[0] && e === 1) ? this.props.onChange :
|
|
897
|
+
getChangeSession = (e) => e && e.every((e, t, n) => e === n[0] && e === 1) ? this.props.onChange : n(this.props.onChange, 200, { maxWait: 200 });
|
|
880
898
|
UNSAFE_componentWillReceiveProps(e) {
|
|
881
|
-
let { maxLengthPerChoice: t, language:
|
|
882
|
-
|
|
899
|
+
let { maxLengthPerChoice: t, language: n } = this.props, { note: a } = this.props;
|
|
900
|
+
i(e.feedback) && this.setState({ showCorrectAnswer: !1 }), e.alwaysShowCorrect && this.setState({ showCorrectAnswer: !0 }), t && !r(t, e.maxLengthPerChoice) && (this.changeSession = this.getChangeSession(e.maxLengthPerChoice)), a && n && n !== e.language && a === et.t("common:commonCorrectAnswerWithAlternates", { lng: n }) && (a = et.t("common:commonCorrectAnswerWithAlternates", { lng: e.language }));
|
|
883
901
|
}
|
|
884
902
|
toggleShowCorrect = () => {
|
|
885
903
|
this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });
|
|
@@ -889,42 +907,42 @@ var Qe = Y(y, "UiLayout") || Y(Q.UiLayout, "UiLayout"), X = Y(v, "PreviewPrompt"
|
|
|
889
907
|
this.changeSession(e);
|
|
890
908
|
};
|
|
891
909
|
render() {
|
|
892
|
-
let { showCorrectAnswer: e } = this.state, { alwaysShowCorrect: t, animationsDisabled: n, mode: r, displayType: i, role: a, language: o, maxLengthPerChoice: s, maxLengthPerChoiceEnabled: c, note: l, playerSpellCheckEnabled:
|
|
910
|
+
let { showCorrectAnswer: e } = this.state, { alwaysShowCorrect: t, animationsDisabled: n, mode: r, displayType: i, role: a, language: o, maxLengthPerChoice: s, maxLengthPerChoiceEnabled: c, note: l, playerSpellCheckEnabled: u, prompt: d, rationale: f, showNote: m, teacherInstructions: g, responseAreaInputConfiguration: _, model: v, value: y } = this.props, { extraCSSRules: b } = v || {}, x = (e || r === "view" && a === "instructor") && m && l, w = /* @__PURE__ */ S(Z, {
|
|
893
911
|
defaultClassName: "teacher-instructions",
|
|
894
912
|
prompt: g
|
|
895
|
-
}), T = /* @__PURE__ */
|
|
896
|
-
return /* @__PURE__ */
|
|
913
|
+
}), T = /* @__PURE__ */ S(Z, { prompt: f }), E = f && (p(f) || h(f)), D = g && (p(g) || h(g));
|
|
914
|
+
return /* @__PURE__ */ C(tt, {
|
|
897
915
|
extraCSSRules: b,
|
|
898
916
|
alwaysShowCorrect: t,
|
|
899
917
|
style: { display: `${i}` },
|
|
900
918
|
children: [
|
|
901
|
-
r === "gather" && /* @__PURE__ */
|
|
902
|
-
D && /* @__PURE__ */
|
|
919
|
+
r === "gather" && /* @__PURE__ */ S(it, { children: "Fill in the Blank Question" }),
|
|
920
|
+
D && /* @__PURE__ */ S(rt, { children: n ? w : /* @__PURE__ */ S(Qe, {
|
|
903
921
|
labels: {
|
|
904
922
|
hidden: "Show Teacher Instructions",
|
|
905
923
|
visible: "Hide Teacher Instructions"
|
|
906
924
|
},
|
|
907
|
-
children:
|
|
925
|
+
children: w
|
|
908
926
|
}) }),
|
|
909
|
-
|
|
910
|
-
!t && r === "evaluate" && /* @__PURE__ */
|
|
927
|
+
d && /* @__PURE__ */ S(Z, { prompt: d }),
|
|
928
|
+
!t && r === "evaluate" && /* @__PURE__ */ S(de, {
|
|
911
929
|
show: !0,
|
|
912
930
|
toggled: e,
|
|
913
931
|
onToggle: this.toggleShowCorrect,
|
|
914
932
|
language: o
|
|
915
933
|
}),
|
|
916
|
-
/* @__PURE__ */
|
|
934
|
+
/* @__PURE__ */ S(Xe, {
|
|
917
935
|
...this.props,
|
|
918
936
|
onChange: this.onChange,
|
|
919
937
|
showCorrectAnswer: e,
|
|
920
938
|
value: y,
|
|
921
939
|
maxLength: s,
|
|
922
940
|
adjustedLimit: c,
|
|
923
|
-
spellCheck:
|
|
941
|
+
spellCheck: u,
|
|
924
942
|
pluginProps: _
|
|
925
943
|
}),
|
|
926
|
-
x && /* @__PURE__ */
|
|
927
|
-
E && /* @__PURE__ */
|
|
944
|
+
x && /* @__PURE__ */ S(nt, { dangerouslySetInnerHTML: { __html: l } }),
|
|
945
|
+
E && /* @__PURE__ */ S(rt, { children: n ? T : /* @__PURE__ */ S(Qe, {
|
|
928
946
|
labels: {
|
|
929
947
|
hidden: "Show Rationale",
|
|
930
948
|
visible: "Hide Rationale"
|
|
@@ -938,4 +956,4 @@ var Qe = Y(y, "UiLayout") || Y(Q.UiLayout, "UiLayout"), X = Y(v, "PreviewPrompt"
|
|
|
938
956
|
//#endregion
|
|
939
957
|
export { at as t };
|
|
940
958
|
|
|
941
|
-
//# sourceMappingURL=main-
|
|
959
|
+
//# sourceMappingURL=main-B4lD1zyg.js.map
|