@pie-element/explicit-constructed-response 11.1.1-next.11 → 11.1.2-next.0
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/configure.js +2 -0
- package/controller.js +1 -0
- package/dist/_virtual/_rolldown/runtime.js +4 -0
- package/dist/author/alternateResponses.d.ts +34 -0
- package/dist/author/alternateResponses.js +116 -0
- package/dist/author/alternateSection.d.ts +58 -0
- package/dist/author/alternateSection.js +215 -0
- package/dist/author/defaults.d.ts +186 -0
- package/dist/author/defaults.js +128 -0
- package/dist/author/ecr-toolbar.d.ts +41 -0
- package/dist/author/ecr-toolbar.js +100 -0
- package/dist/author/index.d.ts +42 -0
- package/dist/author/index.js +97 -0
- package/dist/author/main.d.ts +38 -0
- package/dist/author/main.js +294 -0
- package/dist/author/markupUtils.d.ts +14 -0
- package/dist/author/markupUtils.js +13 -0
- package/dist/author/utils.d.ts +9 -0
- package/dist/author/utils.js +7 -0
- package/dist/browser/author/index.js +3498 -0
- package/dist/browser/author/index.js.map +1 -0
- package/dist/browser/browser-DbR93LB7.js +950 -0
- package/dist/browser/browser-DbR93LB7.js.map +1 -0
- package/dist/browser/controller/index.js +4183 -0
- package/dist/browser/controller/index.js.map +1 -0
- package/dist/browser/delivery/index.js +96 -0
- package/dist/browser/delivery/index.js.map +1 -0
- package/dist/browser/dist-D9ARZhQk.js +1426 -0
- package/dist/browser/dist-D9ARZhQk.js.map +1 -0
- package/dist/browser/dist-DnL6t4VO.js +46135 -0
- package/dist/browser/dist-DnL6t4VO.js.map +1 -0
- package/dist/browser/explicit-constructed-response.css +2 -0
- package/dist/browser/main-V_e6PRBN.js +941 -0
- package/dist/browser/main-V_e6PRBN.js.map +1 -0
- package/dist/browser/print/index.js +40 -0
- package/dist/browser/print/index.js.map +1 -0
- package/dist/browser/reduce-Bqz7DMQ0.js +172 -0
- package/dist/browser/reduce-Bqz7DMQ0.js.map +1 -0
- package/dist/controller/defaults.d.ts +25 -0
- package/dist/controller/defaults.js +19 -0
- package/dist/controller/index.d.ts +64 -0
- package/dist/controller/index.js +142 -0
- package/dist/delivery/index.d.ts +20 -0
- package/dist/delivery/index.js +66 -0
- package/dist/delivery/main.d.ts +48 -0
- package/dist/delivery/main.js +117 -0
- package/dist/explicit-constructed-response.css +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.iife.d.ts +8 -0
- package/dist/index.iife.js +393 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/he@1.2.0/node_modules/he/he.js +3993 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js +26 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js +22 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_escapeHtmlChar.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js +18 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/escape.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/find.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/flatten.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/map.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/reduce.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/throttle.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +7 -0
- package/dist/print/index.d.ts +15 -0
- package/dist/print/index.js +40 -0
- package/package.json +86 -22
- package/CHANGELOG.json +0 -1102
- package/CHANGELOG.md +0 -2183
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -652
- package/configure/CHANGELOG.md +0 -1924
- package/configure/lib/alternateResponses.js +0 -199
- package/configure/lib/alternateResponses.js.map +0 -1
- package/configure/lib/alternateSection.js +0 -329
- package/configure/lib/alternateSection.js.map +0 -1
- package/configure/lib/defaults.js +0 -184
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/ecr-toolbar.js +0 -181
- package/configure/lib/ecr-toolbar.js.map +0 -1
- package/configure/lib/index.js +0 -161
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -501
- package/configure/lib/main.js.map +0 -1
- package/configure/lib/markupUtils.js +0 -70
- package/configure/lib/markupUtils.js.map +0 -1
- package/configure/lib/utils.js +0 -15
- package/configure/lib/utils.js.map +0 -1
- package/configure/package.json +0 -22
- package/controller/CHANGELOG.json +0 -517
- package/controller/CHANGELOG.md +0 -1340
- package/controller/lib/defaults.js +0 -23
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -368
- package/controller/lib/index.js.map +0 -1
- package/controller/package.json +0 -18
- package/docs/config-schema.json +0 -2629
- package/docs/config-schema.json.md +0 -1941
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -20
- package/docs/demo/index.html +0 -1
- package/docs/demo/session.js +0 -10
- package/docs/pie-schema.json +0 -1130
- package/docs/pie-schema.json.md +0 -814
- package/lib/index.js +0 -91
- package/lib/index.js.map +0 -1
- package/lib/main.js +0 -205
- package/lib/main.js.map +0 -1
- package/lib/print.js +0 -71
- package/lib/print.js.map +0 -1
- package/module/configure.js +0 -1
- package/module/controller.js +0 -6534
- package/module/demo.js +0 -45
- package/module/element.js +0 -1
- package/module/index.html +0 -21
- package/module/manifest.json +0 -18
- package/module/print-demo.js +0 -83
- package/module/print.html +0 -18
- package/module/print.js +0 -1
|
@@ -0,0 +1,941 @@
|
|
|
1
|
+
import { J as e, m as t, n, t as r } from "./browser-DbR93LB7.js";
|
|
2
|
+
import { G as i, J as a, K as o, _ as s, at as c, ft as l, g as u, h as d, k as f, m as p, ot as m, p as h, pt as g, t as _, v, w as y } from "./dist-DnL6t4VO.js";
|
|
3
|
+
import { t as b } from "./dist-D9ARZhQk.js";
|
|
4
|
+
import x, { useRef as S } from "react";
|
|
5
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
6
|
+
//#region ../../lib-react/correct-answer-toggle/dist/expander.js
|
|
7
|
+
var T = /* @__PURE__ */ e(l(), 1), E = "height ease-in 300ms, opacity ease-in 300ms", D = a("div")(() => ({
|
|
8
|
+
position: "relative",
|
|
9
|
+
height: 0,
|
|
10
|
+
overflow: "hidden",
|
|
11
|
+
display: "flex",
|
|
12
|
+
visibility: "hidden",
|
|
13
|
+
width: 0,
|
|
14
|
+
"&.enter": {
|
|
15
|
+
transition: E,
|
|
16
|
+
opacity: 1,
|
|
17
|
+
height: "auto",
|
|
18
|
+
width: "auto",
|
|
19
|
+
visibility: "visible",
|
|
20
|
+
minHeight: "25px"
|
|
21
|
+
},
|
|
22
|
+
"&.enter-done": {
|
|
23
|
+
height: "auto",
|
|
24
|
+
visibility: "visible",
|
|
25
|
+
width: "auto",
|
|
26
|
+
minHeight: "25px"
|
|
27
|
+
},
|
|
28
|
+
"&.exit": {
|
|
29
|
+
transition: E,
|
|
30
|
+
opacity: 0,
|
|
31
|
+
height: 0,
|
|
32
|
+
visibility: "visible",
|
|
33
|
+
width: 0
|
|
34
|
+
},
|
|
35
|
+
"&.exit-done": {
|
|
36
|
+
opacity: 0,
|
|
37
|
+
visibility: "hidden",
|
|
38
|
+
height: 0,
|
|
39
|
+
width: 0
|
|
40
|
+
}
|
|
41
|
+
})), O = (e) => {
|
|
42
|
+
let { show: t, children: n, className: r } = e, i = S(null);
|
|
43
|
+
return /* @__PURE__ */ C(o, {
|
|
44
|
+
nodeRef: i,
|
|
45
|
+
in: t,
|
|
46
|
+
appear: !0,
|
|
47
|
+
mountOnEnter: !1,
|
|
48
|
+
timeout: 300,
|
|
49
|
+
classNames: {
|
|
50
|
+
enter: "enter",
|
|
51
|
+
enterDone: "enter-done",
|
|
52
|
+
exit: "exit",
|
|
53
|
+
exitDone: "exit-done"
|
|
54
|
+
},
|
|
55
|
+
children: /* @__PURE__ */ C(D, {
|
|
56
|
+
ref: i,
|
|
57
|
+
className: r,
|
|
58
|
+
children: n
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
O.propTypes = {
|
|
63
|
+
show: T.default.bool.isRequired,
|
|
64
|
+
className: T.default.string,
|
|
65
|
+
children: T.default.oneOfType([T.default.arrayOf(T.default.node), T.default.node]).isRequired
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ../../lib-react/icons/dist/correct-response-icon.js
|
|
69
|
+
var ee = ({ bgFill: e, fgFill: t }) => /* @__PURE__ */ w("svg", {
|
|
70
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
71
|
+
version: "1.1",
|
|
72
|
+
viewBox: "-283 359 34 35",
|
|
73
|
+
style: { enableBackground: "new -283 359 34 35" },
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ C("circle", {
|
|
76
|
+
cx: "-266",
|
|
77
|
+
cy: "375.9",
|
|
78
|
+
r: "14",
|
|
79
|
+
fill: e
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ C("path", {
|
|
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
|
+
fill: e
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ C("polygon", {
|
|
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
|
+
fill: t
|
|
88
|
+
})
|
|
89
|
+
]
|
|
90
|
+
});
|
|
91
|
+
ee.propTypes = {
|
|
92
|
+
bgFill: T.default.string.isRequired,
|
|
93
|
+
fgFill: T.default.string.isRequired
|
|
94
|
+
};
|
|
95
|
+
var te = ({ bgFill: e, fgFill: t, borderFill: n }) => /* @__PURE__ */ w("svg", {
|
|
96
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
97
|
+
version: "1.1",
|
|
98
|
+
viewBox: "-129.5 127 34 35",
|
|
99
|
+
style: { enableBackground: "new -129.5 127 34 35" },
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ C("path", {
|
|
102
|
+
style: {
|
|
103
|
+
fill: "#D0CAC5",
|
|
104
|
+
stroke: "#E6E3E0",
|
|
105
|
+
strokeWidth: .75,
|
|
106
|
+
strokeMiterlimit: 10
|
|
107
|
+
},
|
|
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
|
+
}),
|
|
110
|
+
/* @__PURE__ */ C("path", {
|
|
111
|
+
style: {
|
|
112
|
+
fill: "#B3ABA4",
|
|
113
|
+
stroke: "#CDC7C2",
|
|
114
|
+
strokeWidth: .5,
|
|
115
|
+
strokeMiterlimit: 10
|
|
116
|
+
},
|
|
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
|
+
}),
|
|
119
|
+
/* @__PURE__ */ C("circle", {
|
|
120
|
+
cx: "-114.2",
|
|
121
|
+
cy: "143.5",
|
|
122
|
+
r: "14",
|
|
123
|
+
fill: e
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ C("path", {
|
|
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
|
+
fill: n
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ C("polygon", {
|
|
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
|
+
fill: t
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
});
|
|
135
|
+
te.propTypes = {
|
|
136
|
+
bgFill: T.default.string.isRequired,
|
|
137
|
+
fgFill: T.default.string.isRequired,
|
|
138
|
+
borderFill: T.default.string.isRequired
|
|
139
|
+
};
|
|
140
|
+
var ne = a("div")(({ size: e }) => ({
|
|
141
|
+
width: e || "25px",
|
|
142
|
+
height: e || "25px"
|
|
143
|
+
})), k = ({ open: e, size: t }) => /* @__PURE__ */ C(ne, {
|
|
144
|
+
size: t,
|
|
145
|
+
children: e ? /* @__PURE__ */ C(ee, {
|
|
146
|
+
bgFill: "#bce2ff",
|
|
147
|
+
fgFill: "#1a9cff"
|
|
148
|
+
}) : /* @__PURE__ */ C(te, {
|
|
149
|
+
bgFill: "white",
|
|
150
|
+
fgFill: "#1a9cff",
|
|
151
|
+
borderFill: "#bce2ff"
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
k.propTypes = {
|
|
155
|
+
open: T.default.bool,
|
|
156
|
+
size: T.default.string
|
|
157
|
+
}, k.defaultProps = { open: !1 };
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region ../../lib-react/correct-answer-toggle/dist/index.js
|
|
160
|
+
var re = /* @__PURE__ */ e(r(), 1);
|
|
161
|
+
function A(e) {
|
|
162
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
163
|
+
}
|
|
164
|
+
function j(e, t) {
|
|
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
|
+
}
|
|
167
|
+
var ie = j(s, "Readable") || j(oe.Readable, "Readable"), ae = p, M = ae.default, oe = M && typeof M == "object" ? M : ae, { translator: N } = b, se = {
|
|
168
|
+
WebkitTouchCallout: "none",
|
|
169
|
+
WebkitUserSelect: "none",
|
|
170
|
+
KhtmlUserSelect: "none",
|
|
171
|
+
MozUserSelect: "none",
|
|
172
|
+
msUserSelect: "none",
|
|
173
|
+
userSelect: "none"
|
|
174
|
+
}, ce = a("div")(() => ({
|
|
175
|
+
width: "100%",
|
|
176
|
+
cursor: "pointer"
|
|
177
|
+
})), le = a("div")(() => ({
|
|
178
|
+
margin: "0 auto",
|
|
179
|
+
textAlign: "center",
|
|
180
|
+
display: "flex"
|
|
181
|
+
})), ue = a("div")(() => ({
|
|
182
|
+
width: "fit-content",
|
|
183
|
+
minWidth: "140px",
|
|
184
|
+
alignSelf: "center",
|
|
185
|
+
verticalAlign: "middle",
|
|
186
|
+
color: `var(--correct-answer-toggle-label-color, ${i.text()})`,
|
|
187
|
+
fontWeight: "normal",
|
|
188
|
+
...se
|
|
189
|
+
})), de = a("div")(() => ({
|
|
190
|
+
position: "absolute",
|
|
191
|
+
width: "25px",
|
|
192
|
+
"&.enter": { opacity: "0" },
|
|
193
|
+
"&.enter-active": {
|
|
194
|
+
opacity: "1",
|
|
195
|
+
transition: "opacity 0.3s ease-in"
|
|
196
|
+
},
|
|
197
|
+
"&.exit": { opacity: "1" },
|
|
198
|
+
"&.exit-active": {
|
|
199
|
+
opacity: "0",
|
|
200
|
+
transition: "opacity 0.3s ease-in"
|
|
201
|
+
}
|
|
202
|
+
})), fe = a("div")(() => ({
|
|
203
|
+
width: "25px",
|
|
204
|
+
marginRight: "5px",
|
|
205
|
+
display: "flex",
|
|
206
|
+
alignItems: "center"
|
|
207
|
+
})), pe = class e extends x.Component {
|
|
208
|
+
static propTypes = {
|
|
209
|
+
onToggle: T.default.func,
|
|
210
|
+
toggled: T.default.bool,
|
|
211
|
+
show: T.default.bool,
|
|
212
|
+
hideMessage: T.default.string,
|
|
213
|
+
showMessage: T.default.string,
|
|
214
|
+
className: T.default.string,
|
|
215
|
+
language: T.default.string
|
|
216
|
+
};
|
|
217
|
+
static defaultProps = {
|
|
218
|
+
showMessage: "Show correct answer",
|
|
219
|
+
hideMessage: "Hide correct answer",
|
|
220
|
+
show: !1,
|
|
221
|
+
toggled: !1
|
|
222
|
+
};
|
|
223
|
+
constructor(t) {
|
|
224
|
+
super(t), this.state = { show: t.show }, this.openIconRef = x.createRef(), this.closedIconRef = x.createRef(), e.defaultProps = {
|
|
225
|
+
...e.defaultProps,
|
|
226
|
+
showMessage: N.t("common:showCorrectAnswer", { lng: t.language }),
|
|
227
|
+
hideMessage: N.t("common:hideCorrectAnswer", { lng: t.language })
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
onClick() {
|
|
231
|
+
this.props.onToggle(!this.props.toggled);
|
|
232
|
+
}
|
|
233
|
+
onTouch(e) {
|
|
234
|
+
e.preventDefault(), this.props.onToggle(!this.props.toggled);
|
|
235
|
+
}
|
|
236
|
+
UNSAFE_componentWillReceiveProps(t) {
|
|
237
|
+
this.setState({ show: t.show }), t.language !== this.props?.language && (e.defaultProps = {
|
|
238
|
+
...e.defaultProps,
|
|
239
|
+
showMessage: N.t("common:showCorrectAnswer", { lng: t.language }),
|
|
240
|
+
hideMessage: N.t("common:hideCorrectAnswer", { lng: t.language })
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
render() {
|
|
244
|
+
let { className: e, toggled: t, hideMessage: n, showMessage: r } = this.props;
|
|
245
|
+
return /* @__PURE__ */ C(ce, {
|
|
246
|
+
className: e,
|
|
247
|
+
children: /* @__PURE__ */ C(O, {
|
|
248
|
+
show: this.state.show,
|
|
249
|
+
children: /* @__PURE__ */ w(le, {
|
|
250
|
+
onClick: this.onClick.bind(this),
|
|
251
|
+
onTouchEnd: this.onTouch.bind(this),
|
|
252
|
+
children: [/* @__PURE__ */ w(fe, { children: [/* @__PURE__ */ C(o, {
|
|
253
|
+
nodeRef: this.openIconRef,
|
|
254
|
+
timeout: 400,
|
|
255
|
+
in: t,
|
|
256
|
+
exit: !t,
|
|
257
|
+
classNames: {
|
|
258
|
+
enter: "enter",
|
|
259
|
+
enterActive: "enter-active",
|
|
260
|
+
exit: "exit",
|
|
261
|
+
exitActive: "exit-active"
|
|
262
|
+
},
|
|
263
|
+
children: /* @__PURE__ */ C(de, {
|
|
264
|
+
ref: this.openIconRef,
|
|
265
|
+
children: /* @__PURE__ */ C(k, { open: t }, "correct-open")
|
|
266
|
+
})
|
|
267
|
+
}), /* @__PURE__ */ C(o, {
|
|
268
|
+
nodeRef: this.closedIconRef,
|
|
269
|
+
timeout: 5e3,
|
|
270
|
+
in: !t,
|
|
271
|
+
exit: t,
|
|
272
|
+
classNames: {
|
|
273
|
+
enter: "enter",
|
|
274
|
+
enterActive: "enter-active",
|
|
275
|
+
exit: "exit",
|
|
276
|
+
exitActive: "exit-active"
|
|
277
|
+
},
|
|
278
|
+
children: /* @__PURE__ */ C(de, {
|
|
279
|
+
ref: this.closedIconRef,
|
|
280
|
+
children: /* @__PURE__ */ C(k, { open: t }, "correct-closed")
|
|
281
|
+
})
|
|
282
|
+
})] }), /* @__PURE__ */ C(ie, {
|
|
283
|
+
false: !0,
|
|
284
|
+
children: /* @__PURE__ */ C(ue, {
|
|
285
|
+
"aria-hidden": !this.state.show,
|
|
286
|
+
children: t ? n : r
|
|
287
|
+
})
|
|
288
|
+
})]
|
|
289
|
+
})
|
|
290
|
+
})
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}, me = /\{\{(\d+)\}\}/g, he = (e, t) => e ? { markup: e.replace(me, (e, n) => `<span data-component="${t}" data-id="${n}"></span>`) } : { markup: "" }, P = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), F = /* @__PURE__ */ P(((e, t) => {
|
|
294
|
+
t.exports = {
|
|
295
|
+
"border-radius": 1,
|
|
296
|
+
"border-top-left-radius": 1,
|
|
297
|
+
"border-top-right-radius": 1,
|
|
298
|
+
"border-bottom-left-radius": 1,
|
|
299
|
+
"border-bottom-right-radius": 1,
|
|
300
|
+
"box-shadow": 1,
|
|
301
|
+
order: 1,
|
|
302
|
+
flex: function(e, t) {
|
|
303
|
+
return [t + "box-flex"];
|
|
304
|
+
},
|
|
305
|
+
"box-flex": 1,
|
|
306
|
+
"box-align": 1,
|
|
307
|
+
animation: 1,
|
|
308
|
+
"animation-duration": 1,
|
|
309
|
+
"animation-name": 1,
|
|
310
|
+
transition: 1,
|
|
311
|
+
"transition-duration": 1,
|
|
312
|
+
transform: 1,
|
|
313
|
+
"transform-style": 1,
|
|
314
|
+
"transform-origin": 1,
|
|
315
|
+
"backface-visibility": 1,
|
|
316
|
+
perspective: 1,
|
|
317
|
+
"box-pack": 1
|
|
318
|
+
};
|
|
319
|
+
}));
|
|
320
|
+
F();
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js
|
|
323
|
+
var I = /* @__PURE__ */ P(((e, t) => {
|
|
324
|
+
t.exports = {
|
|
325
|
+
animation: 1,
|
|
326
|
+
"column-count": 1,
|
|
327
|
+
columns: 1,
|
|
328
|
+
"font-weight": 1,
|
|
329
|
+
opacity: 1,
|
|
330
|
+
"order ": 1,
|
|
331
|
+
"z-index": 1,
|
|
332
|
+
zoom: 1,
|
|
333
|
+
flex: 1,
|
|
334
|
+
"box-flex": 1,
|
|
335
|
+
transform: 1,
|
|
336
|
+
perspective: 1,
|
|
337
|
+
"box-pack": 1,
|
|
338
|
+
"box-align": 1,
|
|
339
|
+
colspan: 1,
|
|
340
|
+
rowspan: 1
|
|
341
|
+
};
|
|
342
|
+
}));
|
|
343
|
+
I();
|
|
344
|
+
//#endregion
|
|
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 L = /* @__PURE__ */ P(((e, t) => {
|
|
347
|
+
t.exports = function(e) {
|
|
348
|
+
return e.length ? e.charAt(0).toUpperCase() + e.substring(1) : e;
|
|
349
|
+
};
|
|
350
|
+
}));
|
|
351
|
+
L();
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js
|
|
354
|
+
var R = /* @__PURE__ */ P(((e, t) => {
|
|
355
|
+
var n = L(), r = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = typeof document > "u" ? {} : document.documentElement.style;
|
|
356
|
+
t.exports = (function() {
|
|
357
|
+
var e = (function() {
|
|
358
|
+
for (var e in i) if (r.test(e)) return e.match(r)[0];
|
|
359
|
+
return "WebkitOpacity" in i ? "Webkit" : "KhtmlOpacity" in i ? "Khtml" : "";
|
|
360
|
+
})();
|
|
361
|
+
return {
|
|
362
|
+
style: e,
|
|
363
|
+
css: "-" + e.toLowerCase() + "-",
|
|
364
|
+
dom: {
|
|
365
|
+
Webkit: "WebKit",
|
|
366
|
+
ms: "MS",
|
|
367
|
+
o: "WebKit"
|
|
368
|
+
}[e] || n(e)
|
|
369
|
+
};
|
|
370
|
+
})();
|
|
371
|
+
}));
|
|
372
|
+
R();
|
|
373
|
+
//#endregion
|
|
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 z = /* @__PURE__ */ P(((e, t) => {
|
|
376
|
+
t.exports = /[-\s]+(.)?/g;
|
|
377
|
+
}));
|
|
378
|
+
z();
|
|
379
|
+
//#endregion
|
|
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 B = /* @__PURE__ */ P(((e, t) => {
|
|
382
|
+
var n = function(e, t) {
|
|
383
|
+
return t ? t.toUpperCase() : "";
|
|
384
|
+
}, r = z();
|
|
385
|
+
t.exports = function(e) {
|
|
386
|
+
return e ? e.replace(r, n) : "";
|
|
387
|
+
};
|
|
388
|
+
}));
|
|
389
|
+
B();
|
|
390
|
+
//#endregion
|
|
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 V = /* @__PURE__ */ P(((e, t) => {
|
|
393
|
+
var n = /::/g, r = /([A-Z]+)([A-Z][a-z])/g, i = /([a-z\d])([A-Z])/g, a = /_/g;
|
|
394
|
+
t.exports = function(e, t) {
|
|
395
|
+
return e ? e.replace(n, "/").replace(r, "$1_$2").replace(i, "$1_$2").replace(a, t || "-") : "";
|
|
396
|
+
};
|
|
397
|
+
}));
|
|
398
|
+
V();
|
|
399
|
+
//#endregion
|
|
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 H = /* @__PURE__ */ P(((e, t) => {
|
|
402
|
+
var n = V();
|
|
403
|
+
t.exports = function(e) {
|
|
404
|
+
return n(e).toLowerCase();
|
|
405
|
+
};
|
|
406
|
+
}));
|
|
407
|
+
H();
|
|
408
|
+
//#endregion
|
|
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 ge = /* @__PURE__ */ P(((e, t) => {
|
|
411
|
+
t.exports = function(e) {
|
|
412
|
+
return e.length ? e.charAt(0).toLowerCase() + e.substring(1) : e;
|
|
413
|
+
};
|
|
414
|
+
}));
|
|
415
|
+
ge();
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js
|
|
418
|
+
var _e = /* @__PURE__ */ P(((e, t) => {
|
|
419
|
+
var n = B(), r = H(), i = ge(), a = L(), o = R(), s = F(), c = typeof document > "u" ? {} : document.documentElement.style;
|
|
420
|
+
t.exports = function(e) {
|
|
421
|
+
return function(t, l) {
|
|
422
|
+
l ||= {};
|
|
423
|
+
var u = i(n(t)), d = r(t), f = e ? u : d, p = o.style ? e ? o.style : o.css : "";
|
|
424
|
+
if (u in c) return l.asString ? f : [f];
|
|
425
|
+
var m = f, h = s[d], g = [];
|
|
426
|
+
if (e && (m = a(f)), typeof h == "function") {
|
|
427
|
+
var _ = h(f, p) || [];
|
|
428
|
+
_ && !Array.isArray(_) && (_ = [_]), _.length && (_ = _.map(function(t) {
|
|
429
|
+
return e ? i(n(t)) : r(t);
|
|
430
|
+
})), g = g.concat(_);
|
|
431
|
+
}
|
|
432
|
+
return p && g.push(p + m), g.push(f), l.asString || g.length == 1 ? g[0] : g;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
}));
|
|
436
|
+
_e();
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js
|
|
439
|
+
var ve = /* @__PURE__ */ P(((e, t) => {
|
|
440
|
+
t.exports = _e()();
|
|
441
|
+
}));
|
|
442
|
+
ve();
|
|
443
|
+
//#endregion
|
|
444
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js
|
|
445
|
+
var U = /* @__PURE__ */ P(((e, t) => {
|
|
446
|
+
var n = Object.prototype.hasOwnProperty;
|
|
447
|
+
t.exports = function(e, t) {
|
|
448
|
+
return n.call(e, t);
|
|
449
|
+
};
|
|
450
|
+
}));
|
|
451
|
+
U();
|
|
452
|
+
//#endregion
|
|
453
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js
|
|
454
|
+
var W = /* @__PURE__ */ P(((e, t) => {
|
|
455
|
+
var n = Object.prototype.toString;
|
|
456
|
+
t.exports = function(e) {
|
|
457
|
+
return !!e && n.call(e) === "[object Object]";
|
|
458
|
+
};
|
|
459
|
+
}));
|
|
460
|
+
W();
|
|
461
|
+
//#endregion
|
|
462
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js
|
|
463
|
+
var ye = /* @__PURE__ */ P(((e, t) => {
|
|
464
|
+
var n = Object.prototype.toString;
|
|
465
|
+
t.exports = function(e) {
|
|
466
|
+
return n.apply(e) === "[object Function]";
|
|
467
|
+
};
|
|
468
|
+
}));
|
|
469
|
+
ye();
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js
|
|
472
|
+
var G = /* @__PURE__ */ P(((e, t) => {
|
|
473
|
+
R();
|
|
474
|
+
var n = ve(), r = H(), i = B(), a = U(), o = W(), s = ye(), c = function(e, t, r, i) {
|
|
475
|
+
n(t).forEach(function(t) {
|
|
476
|
+
e[i ? i(t) : t] = r;
|
|
477
|
+
});
|
|
478
|
+
}, l = function(e) {
|
|
479
|
+
e = (e || "").split(";");
|
|
480
|
+
var t = {};
|
|
481
|
+
return e.forEach(function(e) {
|
|
482
|
+
var n = e.split(":");
|
|
483
|
+
n.length == 2 && (t[n[0].trim()] = n[1].trim());
|
|
484
|
+
}), t;
|
|
485
|
+
}, u = { cssUnitless: I() }, d = function(e, t, n, f) {
|
|
486
|
+
typeof e == "string" && (e = l(e)), t ||= u, t.cssUnitless = t.cssUnitless || u.cssUnitless, f ||= {};
|
|
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
|
+
for (x in e) if (a(e, x)) {
|
|
489
|
+
if (S = e[x], b = r(n ? n + x : x), y = !1, E = !1, s(S) && (T = S.call(p || e, S, x, b, e), o(T) && T.value != null ? (S = T.value, E = T.prefix, b = T.name ? r(T.name) : b) : S = T), C = typeof S, w = C == "number" || C == "string" && S != "" && S * 1 == S, S == null || b == null || b === "") continue;
|
|
490
|
+
if ((w || C == "string") && (y = !0), !y && S.value != null && S.prefix && (y = !0, E = S.prefix, S = S.value), y) {
|
|
491
|
+
if (E ||= !!_[b], w && (S = m && !(b in h) ? S + g : S + ""), (b == "border" || !b.indexOf("border") && !~b.indexOf("radius") && !~b.indexOf("width")) && w && (b += "-width"), !b.indexOf("border-radius-") && (b.replace(/border(-radius)(-(.*))/, function(e, t, n) {
|
|
492
|
+
var r = {
|
|
493
|
+
"-top": ["-top-left", "-top-right"],
|
|
494
|
+
"-left": ["-top-left", "-bottom-left"],
|
|
495
|
+
"-right": ["-top-right", "-bottom-right"],
|
|
496
|
+
"-bottom": ["-bottom-left", "-bottom-right"]
|
|
497
|
+
};
|
|
498
|
+
n in r ? (b = [], r[n].forEach(function(e) {
|
|
499
|
+
b.push("border" + e + t);
|
|
500
|
+
})) : b = "border" + n + t;
|
|
501
|
+
}), Array.isArray(b))) {
|
|
502
|
+
b.forEach(function(e) {
|
|
503
|
+
E ? c(f, e, S, v) : f[v(e)] = S;
|
|
504
|
+
});
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
E ? c(f, b, S, v) : f[v(b)] = S;
|
|
508
|
+
} else d(S, t, b + "-", f);
|
|
509
|
+
}
|
|
510
|
+
return f;
|
|
511
|
+
};
|
|
512
|
+
t.exports = d;
|
|
513
|
+
}));
|
|
514
|
+
G();
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js
|
|
517
|
+
var be = /* @__PURE__ */ P(((e, t) => {
|
|
518
|
+
var n = G(), r = U();
|
|
519
|
+
t.exports = function(e, t) {
|
|
520
|
+
e = n(e, t);
|
|
521
|
+
var i = [], a;
|
|
522
|
+
for (a in e) r(e, a) && i.push(a + ": " + e[a]);
|
|
523
|
+
return i.join("; ");
|
|
524
|
+
};
|
|
525
|
+
}));
|
|
526
|
+
be();
|
|
527
|
+
//#endregion
|
|
528
|
+
//#region ../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js
|
|
529
|
+
var xe = /* @__PURE__ */ P(((e, t) => {
|
|
530
|
+
t.exports = {
|
|
531
|
+
prefixProperties: F(),
|
|
532
|
+
cssUnitless: I(),
|
|
533
|
+
object: G(),
|
|
534
|
+
string: be()
|
|
535
|
+
};
|
|
536
|
+
}));
|
|
537
|
+
xe();
|
|
538
|
+
//#endregion
|
|
539
|
+
//#region ../../lib-react/mask-markup/dist/serialization.js
|
|
540
|
+
var Se = xe(), Ce = (0, re.default)("@pie-lib:mask-markup:serialization"), we = ["span"], Te = [
|
|
541
|
+
"em",
|
|
542
|
+
"strong",
|
|
543
|
+
"u"
|
|
544
|
+
], Ee = 3, De = 8, Oe = 1, ke = (e) => {
|
|
545
|
+
if (!e.attributes || e.attributes.length <= 0) return;
|
|
546
|
+
let t = {}, n;
|
|
547
|
+
for (n = 0; n < e.attributes.length; n++) {
|
|
548
|
+
let r = e.attributes[n];
|
|
549
|
+
t[r.name] = r.value;
|
|
550
|
+
}
|
|
551
|
+
return t;
|
|
552
|
+
}, Ae = (e) => we.includes(e) ? "inline" : Te.includes(e) ? "mark" : "block", je = (e) => {
|
|
553
|
+
let t = /([\w-]*)\s*:\s*([^;]*)/g, n, r = {};
|
|
554
|
+
for (; n = t.exec(e);) r[n[1]] = n[2].trim();
|
|
555
|
+
return r;
|
|
556
|
+
}, Me = (e) => (0, Se.object)(e, {
|
|
557
|
+
camelize: !0,
|
|
558
|
+
addUnits: !1
|
|
559
|
+
}), Ne = (e, t) => Me(je(e.getAttribute(t))), Pe = (e, t, n) => {
|
|
560
|
+
let r = e.getAttribute(n);
|
|
561
|
+
return delete t.class, r;
|
|
562
|
+
}, Fe = (e) => (t, n) => {
|
|
563
|
+
if (!e.getAttribute) return t;
|
|
564
|
+
if (e.getAttribute(n)) switch (n) {
|
|
565
|
+
case "style":
|
|
566
|
+
t.style = Ne(e, n);
|
|
567
|
+
break;
|
|
568
|
+
case "class":
|
|
569
|
+
t.className = Pe(e, t, n);
|
|
570
|
+
break;
|
|
571
|
+
default:
|
|
572
|
+
t[n] = e.getAttribute(n);
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
return t;
|
|
576
|
+
}, Ie = [
|
|
577
|
+
"border",
|
|
578
|
+
"class",
|
|
579
|
+
"style"
|
|
580
|
+
], K = {
|
|
581
|
+
b: "bold",
|
|
582
|
+
em: "italic",
|
|
583
|
+
u: "underline",
|
|
584
|
+
s: "strikethrough",
|
|
585
|
+
code: "code",
|
|
586
|
+
strong: "strong"
|
|
587
|
+
}, Le = (e, t = []) => {
|
|
588
|
+
if (e.nodeType === De) return null;
|
|
589
|
+
if (e.nodeType === Ee) {
|
|
590
|
+
let n = { text: e.textContent };
|
|
591
|
+
return t.length > 0 && (n.marks = t.map((e) => ({
|
|
592
|
+
type: e,
|
|
593
|
+
data: void 0
|
|
594
|
+
}))), {
|
|
595
|
+
object: "text",
|
|
596
|
+
leaves: [n]
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
if (e.nodeType === Oe) {
|
|
600
|
+
let n = e.tagName.toLowerCase(), r = K[n];
|
|
601
|
+
if (r) return Ce("[deserialize] mark: ", r), {
|
|
602
|
+
_flatten: !0,
|
|
603
|
+
nodes: q(e.childNodes, [...t, r])
|
|
604
|
+
};
|
|
605
|
+
if (n === "math") return {
|
|
606
|
+
isMath: !0,
|
|
607
|
+
nodes: [e]
|
|
608
|
+
};
|
|
609
|
+
let i = ke(e) || {};
|
|
610
|
+
n === "audio" && i.controls === "" && (i.controls = !0);
|
|
611
|
+
let a = Ie.reduce(Fe(e), { ...i }), o = Ae(n), s = q(e.childNodes, t);
|
|
612
|
+
return {
|
|
613
|
+
object: o,
|
|
614
|
+
type: n,
|
|
615
|
+
data: {
|
|
616
|
+
dataset: { ...e.dataset },
|
|
617
|
+
attributes: { ...a }
|
|
618
|
+
},
|
|
619
|
+
nodes: s
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
return null;
|
|
623
|
+
}, q = (e, t = []) => {
|
|
624
|
+
let n = [];
|
|
625
|
+
for (let r = 0; r < e.length; r++) {
|
|
626
|
+
let i = Le(e[r], t);
|
|
627
|
+
i !== null && (i._flatten && i.nodes ? n.push(...i.nodes) : n.push(i));
|
|
628
|
+
}
|
|
629
|
+
return n;
|
|
630
|
+
}, Re = (e) => {
|
|
631
|
+
if (!e || !e.trim()) return {
|
|
632
|
+
object: "value",
|
|
633
|
+
document: {
|
|
634
|
+
object: "document",
|
|
635
|
+
data: {},
|
|
636
|
+
nodes: [{
|
|
637
|
+
object: "block",
|
|
638
|
+
type: "span",
|
|
639
|
+
data: {},
|
|
640
|
+
isVoid: !1,
|
|
641
|
+
nodes: []
|
|
642
|
+
}]
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
let t = q(new DOMParser().parseFromString(e, "text/html").body.childNodes);
|
|
646
|
+
return !t.some((e) => e.object === "block" || e.object === "inline") && t.length > 0 && (t = [{
|
|
647
|
+
object: "block",
|
|
648
|
+
type: "span",
|
|
649
|
+
data: {},
|
|
650
|
+
isVoid: !1,
|
|
651
|
+
nodes: t
|
|
652
|
+
}]), t.length === 0 && (t = [{
|
|
653
|
+
object: "block",
|
|
654
|
+
type: "span",
|
|
655
|
+
data: {},
|
|
656
|
+
isVoid: !1,
|
|
657
|
+
nodes: []
|
|
658
|
+
}]), {
|
|
659
|
+
object: "value",
|
|
660
|
+
document: {
|
|
661
|
+
object: "document",
|
|
662
|
+
data: {},
|
|
663
|
+
nodes: t
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
}, ze = a("div")(({ theme: e }) => ({
|
|
667
|
+
paddingTop: e.spacing(.5),
|
|
668
|
+
paddingBottom: e.spacing(.5)
|
|
669
|
+
})), Be = a("span")(() => ({
|
|
670
|
+
display: "inline-block",
|
|
671
|
+
width: ".75em"
|
|
672
|
+
})), Ve = ["tbody", "tr"], He = (e, t) => {
|
|
673
|
+
let n = t.trim() === "", r = e && e.type;
|
|
674
|
+
if (!(n && Ve.includes(r))) return t;
|
|
675
|
+
}, Ue = (e) => {
|
|
676
|
+
let n = e.leaves.find((e) => t(e, "marks", []).length);
|
|
677
|
+
return n ? n.marks[0] : null;
|
|
678
|
+
}, We = (e, t, n, r, i, a) => {
|
|
679
|
+
if (!t) return null;
|
|
680
|
+
let o = [];
|
|
681
|
+
return (e.nodes || []).forEach((e, s) => {
|
|
682
|
+
let c = e.type ? `${e.type}-${s}` : `${s}`;
|
|
683
|
+
if (e.isMath) return o.push(/* @__PURE__ */ C("span", { dangerouslySetInnerHTML: { __html: `<math displaystyle="true">${e.nodes[0].innerHTML}</math>` } })), o;
|
|
684
|
+
if (r) {
|
|
685
|
+
let i = r(e, t, n);
|
|
686
|
+
if (i) {
|
|
687
|
+
let t = e.data?.dataset?.component === "blank";
|
|
688
|
+
t && o.push(/* @__PURE__ */ C(Be, {}, `spacer-${s}`)), o.push(i), t && o.push(/* @__PURE__ */ C(Be, {}, `spacer-${s}`));
|
|
689
|
+
return;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
if (e.object === "text") {
|
|
693
|
+
let t = e.leaves.reduce((e, t) => {
|
|
694
|
+
let n = t.text, r = He(i, n);
|
|
695
|
+
return r ? e + r : e;
|
|
696
|
+
}, ""), n = Ue(e);
|
|
697
|
+
if (n) {
|
|
698
|
+
let e;
|
|
699
|
+
for (e in K) if (K[e] === n.type) {
|
|
700
|
+
let n = e;
|
|
701
|
+
o.push(/* @__PURE__ */ C(n, { children: t }, c));
|
|
702
|
+
break;
|
|
703
|
+
}
|
|
704
|
+
} else t.length > 0 && o.push(t);
|
|
705
|
+
} else {
|
|
706
|
+
let i = We(e, t, n, r, e, a);
|
|
707
|
+
if (e.type === "p" || e.type === "paragraph") o.push(/* @__PURE__ */ C(ze, { children: i }, c));
|
|
708
|
+
else {
|
|
709
|
+
let t = e.type;
|
|
710
|
+
e.nodes && e.nodes.length > 0 ? o.push(/* @__PURE__ */ C(t, {
|
|
711
|
+
...e.data.attributes,
|
|
712
|
+
children: i
|
|
713
|
+
}, c)) : o.push(/* @__PURE__ */ C(t, { ...e.data.attributes }, c));
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}), o;
|
|
717
|
+
}, Ge = a("div")(() => ({
|
|
718
|
+
display: "initial",
|
|
719
|
+
"&:not(.MathJax) table": { borderCollapse: "collapse" },
|
|
720
|
+
"&:not(.MathJax) table td, &:not(.MathJax) table th": {
|
|
721
|
+
padding: "8px 12px",
|
|
722
|
+
textAlign: "left"
|
|
723
|
+
}
|
|
724
|
+
})), Ke = class extends x.Component {
|
|
725
|
+
constructor(e) {
|
|
726
|
+
super(e), this.internalContainerRef = x.createRef();
|
|
727
|
+
}
|
|
728
|
+
static propTypes = {
|
|
729
|
+
renderChildren: T.default.func,
|
|
730
|
+
layout: T.default.object,
|
|
731
|
+
value: T.default.object,
|
|
732
|
+
onChange: T.default.func,
|
|
733
|
+
elementType: T.default.string,
|
|
734
|
+
containerRef: T.default.oneOfType([T.default.func, T.default.shape({ current: T.default.instanceOf(Element) })])
|
|
735
|
+
};
|
|
736
|
+
componentDidMount() {
|
|
737
|
+
let e = this.props.containerRef || this.internalContainerRef;
|
|
738
|
+
e.current && typeof g == "function" && g(e.current);
|
|
739
|
+
}
|
|
740
|
+
handleChange = (e, t) => {
|
|
741
|
+
let n = {
|
|
742
|
+
...this.props.value,
|
|
743
|
+
[e]: t
|
|
744
|
+
};
|
|
745
|
+
this.props.onChange(n);
|
|
746
|
+
};
|
|
747
|
+
render() {
|
|
748
|
+
let { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = We(t, e, this.handleChange, this.props.renderChildren, null, n);
|
|
749
|
+
return /* @__PURE__ */ C(Ge, {
|
|
750
|
+
ref: r || this.internalContainerRef,
|
|
751
|
+
children: i
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
}, qe = (e, t) => {
|
|
755
|
+
let { markup: n } = he(e, t);
|
|
756
|
+
return Re(n).document;
|
|
757
|
+
}, Je = (e, t) => class extends x.Component {
|
|
758
|
+
static propTypes = {
|
|
759
|
+
markup: T.default.string,
|
|
760
|
+
layout: T.default.object,
|
|
761
|
+
value: T.default.object,
|
|
762
|
+
onChange: T.default.func,
|
|
763
|
+
customMarkMarkupComponent: T.default.func,
|
|
764
|
+
elementType: T.default.string
|
|
765
|
+
};
|
|
766
|
+
constructor(e) {
|
|
767
|
+
super(e), this.containerRef = x.createRef();
|
|
768
|
+
}
|
|
769
|
+
componentDidUpdate(e) {
|
|
770
|
+
if (this.props.markup !== e.markup) {
|
|
771
|
+
let e = this.containerRef.current;
|
|
772
|
+
(e && e.querySelectorAll("[data-latex][data-math-handled=\"true\"]") || []).forEach((e) => {
|
|
773
|
+
let t = e.querySelector("mjx-container");
|
|
774
|
+
t && e.removeChild(t), e.innerHTML = e.getAttribute("data-raw"), e.removeAttribute("data-math-handled");
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
render() {
|
|
779
|
+
let { markup: n, layout: r, value: i, onChange: a, elementType: o } = this.props, s = r || qe(n, e);
|
|
780
|
+
return /* @__PURE__ */ C(Ke, {
|
|
781
|
+
containerRef: this.containerRef,
|
|
782
|
+
elementType: o,
|
|
783
|
+
layout: s,
|
|
784
|
+
value: i,
|
|
785
|
+
onChange: a,
|
|
786
|
+
renderChildren: t(this.props)
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
}, Ye = /* @__PURE__ */ e(h(), 1), Xe = a(_)(() => ({
|
|
790
|
+
display: "inline-block",
|
|
791
|
+
verticalAlign: "middle",
|
|
792
|
+
margin: "4px",
|
|
793
|
+
borderRadius: "4px",
|
|
794
|
+
border: `1px solid ${i.black()}`,
|
|
795
|
+
"&.correct": { border: `1px solid ${i.correct()}` },
|
|
796
|
+
"&.incorrect": { border: `1px solid ${i.incorrect()}` }
|
|
797
|
+
})), Ze = Je("input", (e) => (t, n) => {
|
|
798
|
+
let { adjustedLimit: r, disabled: i, feedback: a, showCorrectAnswer: o, maxLength: s, spellCheck: c, pluginProps: l, onChange: u } = e, d = t.data?.dataset || {};
|
|
799
|
+
if (d.component === "input") {
|
|
800
|
+
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__ */ C(Xe, {
|
|
802
|
+
id: d.id,
|
|
803
|
+
disabled: o || i,
|
|
804
|
+
disableUnderline: !0,
|
|
805
|
+
onChange: (e) => {
|
|
806
|
+
u({
|
|
807
|
+
...n,
|
|
808
|
+
[d.id]: e
|
|
809
|
+
});
|
|
810
|
+
},
|
|
811
|
+
markup: p || "",
|
|
812
|
+
charactersLimit: r ? m : 25,
|
|
813
|
+
activePlugins: ["languageCharacters"],
|
|
814
|
+
pluginProps: l,
|
|
815
|
+
languageCharactersProps: [{ language: "spanish" }],
|
|
816
|
+
spellCheck: c,
|
|
817
|
+
adjustWidthForLimit: !0,
|
|
818
|
+
onKeyDown: (e) => {
|
|
819
|
+
if (e.key === "Enter" || e.keyCode === 13) return !0;
|
|
820
|
+
},
|
|
821
|
+
autoWidthToolbar: !0,
|
|
822
|
+
toolbarOpts: {
|
|
823
|
+
minWidth: "auto",
|
|
824
|
+
noBorder: !0,
|
|
825
|
+
isHidden: !!l?.characters?.disabled
|
|
826
|
+
},
|
|
827
|
+
className: (0, Ye.default)({
|
|
828
|
+
correct: g,
|
|
829
|
+
incorrect: _
|
|
830
|
+
})
|
|
831
|
+
}, `${t.type}-input-${d.id}`);
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
//#endregion
|
|
835
|
+
//#region src/delivery/main.tsx
|
|
836
|
+
function J(e) {
|
|
837
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
838
|
+
}
|
|
839
|
+
function Y(e, t) {
|
|
840
|
+
return !e || J(e) ? e : J(e.default) ? e.default : t && J(e[t]) ? e[t] : t && J(e[t]?.default) ? e[t].default : e;
|
|
841
|
+
}
|
|
842
|
+
var Qe = Y(y, "UiLayout") || Y(Q.UiLayout, "UiLayout"), X = Y(v, "PreviewPrompt") || Y(Q.PreviewPrompt, "PreviewPrompt"), $e = Y(f, "Collapsible") || Y(Q.Collapsible, "Collapsible"), et = p, Z = et.default, Q = Z && typeof Z == "object" ? Z : et, { translator: tt } = b, nt = a(Qe)(({ alwaysShowCorrect: e }) => ({
|
|
843
|
+
color: i.text(),
|
|
844
|
+
backgroundColor: i.background(),
|
|
845
|
+
...e && { "& *": { borderColor: `${i.text()} !important` } }
|
|
846
|
+
})), rt = a("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), $ = a("div")(({ theme: e }) => ({ marginBottom: e.spacing(2) })), it = a("h2")({
|
|
847
|
+
position: "absolute",
|
|
848
|
+
left: "-10000px",
|
|
849
|
+
top: "auto",
|
|
850
|
+
width: "1px",
|
|
851
|
+
height: "1px",
|
|
852
|
+
overflow: "hidden"
|
|
853
|
+
}), at = class extends x.Component {
|
|
854
|
+
static propTypes = {
|
|
855
|
+
alwaysShowCorrect: T.default.bool,
|
|
856
|
+
animationsDisabled: T.default.bool,
|
|
857
|
+
disabled: T.default.bool,
|
|
858
|
+
displayType: T.default.string,
|
|
859
|
+
feedback: T.default.object,
|
|
860
|
+
language: T.default.string,
|
|
861
|
+
markup: T.default.string,
|
|
862
|
+
maxLengthPerChoice: T.default.array,
|
|
863
|
+
maxLengthPerChoiceEnabled: T.default.bool,
|
|
864
|
+
mode: T.default.string,
|
|
865
|
+
note: T.default.string,
|
|
866
|
+
onChange: T.default.func,
|
|
867
|
+
playerSpellCheckEnabled: T.default.bool,
|
|
868
|
+
prompt: T.default.string,
|
|
869
|
+
rationale: T.default.string,
|
|
870
|
+
role: T.default.string,
|
|
871
|
+
showNote: T.default.bool,
|
|
872
|
+
teacherInstructions: T.default.string,
|
|
873
|
+
value: T.default.object,
|
|
874
|
+
responseAreaInputConfiguration: T.default.object,
|
|
875
|
+
model: T.default.object.isRequired
|
|
876
|
+
};
|
|
877
|
+
static defaultProps = { value: {} };
|
|
878
|
+
state = { showCorrectAnswer: this.props.alwaysShowCorrect || !1 };
|
|
879
|
+
getChangeSession = (e) => e && e.every((e, t, n) => e === n[0] && e === 1) ? this.props.onChange : m(this.props.onChange, 200, { maxWait: 200 });
|
|
880
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
881
|
+
let { maxLengthPerChoice: t, language: r } = this.props, { note: i } = this.props;
|
|
882
|
+
n(e.feedback) && this.setState({ showCorrectAnswer: !1 }), e.alwaysShowCorrect && this.setState({ showCorrectAnswer: !0 }), t && !c(t, e.maxLengthPerChoice) && (this.changeSession = this.getChangeSession(e.maxLengthPerChoice)), i && r && r !== e.language && i === tt.t("common:commonCorrectAnswerWithAlternates", { lng: r }) && (i = tt.t("common:commonCorrectAnswerWithAlternates", { lng: e.language }));
|
|
883
|
+
}
|
|
884
|
+
toggleShowCorrect = () => {
|
|
885
|
+
this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });
|
|
886
|
+
};
|
|
887
|
+
changeSession = this.getChangeSession(this.props.maxLengthPerChoice);
|
|
888
|
+
onChange = (e) => {
|
|
889
|
+
this.changeSession(e);
|
|
890
|
+
};
|
|
891
|
+
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: f, prompt: p, rationale: m, showNote: h, teacherInstructions: g, responseAreaInputConfiguration: _, model: v, value: y } = this.props, { extraCSSRules: b } = v || {}, x = (e || r === "view" && a === "instructor") && h && l, S = /* @__PURE__ */ C(X, {
|
|
893
|
+
defaultClassName: "teacher-instructions",
|
|
894
|
+
prompt: g
|
|
895
|
+
}), T = /* @__PURE__ */ C(X, { prompt: m }), E = m && (u(m) || d(m)), D = g && (u(g) || d(g));
|
|
896
|
+
return /* @__PURE__ */ w(nt, {
|
|
897
|
+
extraCSSRules: b,
|
|
898
|
+
alwaysShowCorrect: t,
|
|
899
|
+
style: { display: `${i}` },
|
|
900
|
+
children: [
|
|
901
|
+
r === "gather" && /* @__PURE__ */ C(it, { children: "Fill in the Blank Question" }),
|
|
902
|
+
D && /* @__PURE__ */ C($, { children: n ? S : /* @__PURE__ */ C($e, {
|
|
903
|
+
labels: {
|
|
904
|
+
hidden: "Show Teacher Instructions",
|
|
905
|
+
visible: "Hide Teacher Instructions"
|
|
906
|
+
},
|
|
907
|
+
children: S
|
|
908
|
+
}) }),
|
|
909
|
+
p && /* @__PURE__ */ C(X, { prompt: p }),
|
|
910
|
+
!t && r === "evaluate" && /* @__PURE__ */ C(pe, {
|
|
911
|
+
show: !0,
|
|
912
|
+
toggled: e,
|
|
913
|
+
onToggle: this.toggleShowCorrect,
|
|
914
|
+
language: o
|
|
915
|
+
}),
|
|
916
|
+
/* @__PURE__ */ C(Ze, {
|
|
917
|
+
...this.props,
|
|
918
|
+
onChange: this.onChange,
|
|
919
|
+
showCorrectAnswer: e,
|
|
920
|
+
value: y,
|
|
921
|
+
maxLength: s,
|
|
922
|
+
adjustedLimit: c,
|
|
923
|
+
spellCheck: f,
|
|
924
|
+
pluginProps: _
|
|
925
|
+
}),
|
|
926
|
+
x && /* @__PURE__ */ C(rt, { dangerouslySetInnerHTML: { __html: l } }),
|
|
927
|
+
E && /* @__PURE__ */ C($, { children: n ? T : /* @__PURE__ */ C($e, {
|
|
928
|
+
labels: {
|
|
929
|
+
hidden: "Show Rationale",
|
|
930
|
+
visible: "Hide Rationale"
|
|
931
|
+
},
|
|
932
|
+
children: T
|
|
933
|
+
}) })
|
|
934
|
+
]
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
//#endregion
|
|
939
|
+
export { at as t };
|
|
940
|
+
|
|
941
|
+
//# sourceMappingURL=main-V_e6PRBN.js.map
|