@pie-element/explicit-constructed-response 11.1.1 → 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 -2187
- package/LICENSE.md +0 -5
- package/README.md +0 -1
- package/configure/CHANGELOG.json +0 -652
- package/configure/CHANGELOG.md +0 -1928
- 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 -514
- 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 -1344
- 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,3498 @@
|
|
|
1
|
+
import { B as e, J as t, L as n, M as r, P as i, R as a, W as o, _ as s, g as c, h as l, j as u, k as d, m as f, n as p, t as m, v as h } from "../browser-DbR93LB7.js";
|
|
2
|
+
import { $ as g, A as _, B as v, C as y, D as b, E as x, F as S, G as C, H as w, I as T, J as E, L as D, M as ee, N as O, O as k, P as A, Q as te, R as j, S as ne, T as re, U as M, V as ie, W as N, X as ae, Y as P, Z as F, a as oe, at as se, b as ce, c as le, ct as I, d as ue, dt as de, et as fe, f as pe, ft as me, i as he, it as ge, j as _e, l as L, lt as ve, m as ye, n as be, nt as R, o as xe, ot as Se, q as Ce, r as we, rt as z, s as Te, st as Ee, t as B, tt as V, u as De, ut as Oe, x as ke, y as Ae, z as je } from "../dist-DnL6t4VO.js";
|
|
3
|
+
import { i as Me, n as Ne, t as Pe } from "../reduce-Bqz7DMQ0.js";
|
|
4
|
+
import * as H from "react";
|
|
5
|
+
import U, { Component as Fe, createElement as Ie } from "react";
|
|
6
|
+
import { createRoot as W } from "react-dom/client";
|
|
7
|
+
import { jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
8
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js
|
|
9
|
+
function Le(e, t, i) {
|
|
10
|
+
if (!n(i)) return !1;
|
|
11
|
+
var a = typeof t;
|
|
12
|
+
return (a == "number" ? d(i) && r(t, i.length) : a == "string" && t in i) ? u(i[t], e) : !1;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyOf.js
|
|
16
|
+
function q(e) {
|
|
17
|
+
return function(t) {
|
|
18
|
+
return e?.[t];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
23
|
+
var Re = 1, ze = 4;
|
|
24
|
+
function J(e) {
|
|
25
|
+
return Ee(e, Re | ze);
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js
|
|
29
|
+
var Be = Object.prototype, Ve = Be.hasOwnProperty, He = Oe(function(e, t) {
|
|
30
|
+
e = Object(e);
|
|
31
|
+
var n = -1, r = t.length, i = r > 2 ? t[2] : void 0;
|
|
32
|
+
for (i && Le(t[0], t[1], i) && (r = 1); ++n < r;) for (var a = t[n], o = ve(a), s = -1, c = o.length; ++s < c;) {
|
|
33
|
+
var l = o[s], d = e[l];
|
|
34
|
+
(d === void 0 || u(d, Be[l]) && !Ve.call(e, l)) && (e[l] = a[l]);
|
|
35
|
+
}
|
|
36
|
+
return e;
|
|
37
|
+
}), Ue = q({
|
|
38
|
+
"&": "&",
|
|
39
|
+
"<": "<",
|
|
40
|
+
">": ">",
|
|
41
|
+
"\"": """,
|
|
42
|
+
"'": "'"
|
|
43
|
+
}), We = /[&<>"']/g, Ge = RegExp(We.source);
|
|
44
|
+
function Ke(e) {
|
|
45
|
+
return e = h(e), e && Ge.test(e) ? e.replace(We, Ue) : e;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js
|
|
49
|
+
function qe(e, t) {
|
|
50
|
+
return e > t;
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFinite.js
|
|
54
|
+
var Je = o.isFinite;
|
|
55
|
+
function Y(e) {
|
|
56
|
+
return typeof e == "number" && Je(e);
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js
|
|
60
|
+
function Ye(t, n, r) {
|
|
61
|
+
for (var i = -1, a = t.length; ++i < a;) {
|
|
62
|
+
var o = t[i], s = n(o);
|
|
63
|
+
if (s != null && (c === void 0 ? s === s && !e(s) : r(s, c))) var c = s, l = o;
|
|
64
|
+
}
|
|
65
|
+
return l;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/max.js
|
|
69
|
+
function Xe(e) {
|
|
70
|
+
return e && e.length ? Ye(e, i, qe) : void 0;
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
|
|
74
|
+
function Ze(e, t, i, a) {
|
|
75
|
+
if (!n(e)) return e;
|
|
76
|
+
t = s(t, e);
|
|
77
|
+
for (var o = -1, l = t.length, u = l - 1, d = e; d != null && ++o < l;) {
|
|
78
|
+
var f = c(t[o]), p = i;
|
|
79
|
+
if (f === "__proto__" || f === "constructor" || f === "prototype") return e;
|
|
80
|
+
if (o != u) {
|
|
81
|
+
var m = d[f];
|
|
82
|
+
p = a ? a(m, f, d) : void 0, p === void 0 && (p = n(m) ? m : r(t[o + 1]) ? [] : {});
|
|
83
|
+
}
|
|
84
|
+
de(d, f, p), d = d[f];
|
|
85
|
+
}
|
|
86
|
+
return e;
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js
|
|
90
|
+
function Qe(e, t, n) {
|
|
91
|
+
for (var r = -1, i = t.length, a = {}; ++r < i;) {
|
|
92
|
+
var o = t[r], c = l(e, o);
|
|
93
|
+
n(c, o) && Ze(a, s(o, e), c);
|
|
94
|
+
}
|
|
95
|
+
return a;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js
|
|
99
|
+
function $e(e, t) {
|
|
100
|
+
return Qe(e, t, function(t, n) {
|
|
101
|
+
return Me(e, n);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/pick.js
|
|
106
|
+
var et = I(function(e, t) {
|
|
107
|
+
return e == null ? {} : $e(e, t);
|
|
108
|
+
});
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/set.js
|
|
111
|
+
function tt(e, t, n) {
|
|
112
|
+
return e == null ? e : Ze(e, t, n);
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/throttle.js
|
|
116
|
+
var nt = "Expected a function";
|
|
117
|
+
function rt(e, t, r) {
|
|
118
|
+
var i = !0, a = !0;
|
|
119
|
+
if (typeof e != "function") throw TypeError(nt);
|
|
120
|
+
return n(r) && (i = "leading" in r ? !!r.leading : i, a = "trailing" in r ? !!r.trailing : a), Se(e, t, {
|
|
121
|
+
leading: i,
|
|
122
|
+
maxWait: t,
|
|
123
|
+
trailing: a
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/utils/createChainedFunction.js
|
|
128
|
+
var it = T, at = /* @__PURE__ */ t(m(), 1), ot = class e extends CustomEvent {
|
|
129
|
+
static {
|
|
130
|
+
this.TYPE = "model.updated";
|
|
131
|
+
}
|
|
132
|
+
constructor(t, n = !1) {
|
|
133
|
+
super(e.TYPE, {
|
|
134
|
+
bubbles: !0,
|
|
135
|
+
detail: {
|
|
136
|
+
update: t,
|
|
137
|
+
reset: n
|
|
138
|
+
}
|
|
139
|
+
}), this.update = t, this.reset = n;
|
|
140
|
+
}
|
|
141
|
+
}, st = class e extends CustomEvent {
|
|
142
|
+
static {
|
|
143
|
+
this.TYPE = "delete.image";
|
|
144
|
+
}
|
|
145
|
+
constructor(t, n) {
|
|
146
|
+
super(e.TYPE, {
|
|
147
|
+
bubbles: !0,
|
|
148
|
+
detail: {
|
|
149
|
+
src: t,
|
|
150
|
+
done: n
|
|
151
|
+
}
|
|
152
|
+
}), this.src = t, this.done = n;
|
|
153
|
+
}
|
|
154
|
+
}, ct = class e extends CustomEvent {
|
|
155
|
+
static {
|
|
156
|
+
this.TYPE = "insert.image";
|
|
157
|
+
}
|
|
158
|
+
constructor(t) {
|
|
159
|
+
super(e.TYPE, {
|
|
160
|
+
bubbles: !0,
|
|
161
|
+
detail: t
|
|
162
|
+
}), this.handler = t;
|
|
163
|
+
}
|
|
164
|
+
}, lt = class e extends CustomEvent {
|
|
165
|
+
static {
|
|
166
|
+
this.TYPE = "delete.sound";
|
|
167
|
+
}
|
|
168
|
+
constructor(t, n) {
|
|
169
|
+
super(e.TYPE, {
|
|
170
|
+
bubbles: !0,
|
|
171
|
+
detail: {
|
|
172
|
+
src: t,
|
|
173
|
+
done: n
|
|
174
|
+
}
|
|
175
|
+
}), this.src = t, this.done = n;
|
|
176
|
+
}
|
|
177
|
+
}, ut = class e extends CustomEvent {
|
|
178
|
+
static {
|
|
179
|
+
this.TYPE = "insert.sound";
|
|
180
|
+
}
|
|
181
|
+
constructor(t) {
|
|
182
|
+
super(e.TYPE, {
|
|
183
|
+
bubbles: !0,
|
|
184
|
+
detail: t
|
|
185
|
+
}), this.handler = t;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/switchBaseClasses.js
|
|
190
|
+
function dt(e) {
|
|
191
|
+
return R("PrivateSwitchBase", e);
|
|
192
|
+
}
|
|
193
|
+
V("PrivateSwitchBase", [
|
|
194
|
+
"root",
|
|
195
|
+
"checked",
|
|
196
|
+
"disabled",
|
|
197
|
+
"input",
|
|
198
|
+
"edgeStart",
|
|
199
|
+
"edgeEnd"
|
|
200
|
+
]);
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/SwitchBase.js
|
|
203
|
+
var ft = (e) => {
|
|
204
|
+
let { classes: t, checked: n, disabled: r, edge: i } = e;
|
|
205
|
+
return g({
|
|
206
|
+
root: [
|
|
207
|
+
"root",
|
|
208
|
+
n && "checked",
|
|
209
|
+
r && "disabled",
|
|
210
|
+
i && `edge${S(i)}`
|
|
211
|
+
],
|
|
212
|
+
input: ["input"]
|
|
213
|
+
}, dt, t);
|
|
214
|
+
}, pt = E(b, { name: "MuiSwitchBase" })({
|
|
215
|
+
padding: 9,
|
|
216
|
+
borderRadius: "50%",
|
|
217
|
+
variants: [
|
|
218
|
+
{
|
|
219
|
+
props: {
|
|
220
|
+
edge: "start",
|
|
221
|
+
size: "small"
|
|
222
|
+
},
|
|
223
|
+
style: { marginLeft: -3 }
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
props: ({ edge: e, ownerState: t }) => e === "start" && t.size !== "small",
|
|
227
|
+
style: { marginLeft: -12 }
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
props: {
|
|
231
|
+
edge: "end",
|
|
232
|
+
size: "small"
|
|
233
|
+
},
|
|
234
|
+
style: { marginRight: -3 }
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
props: ({ edge: e, ownerState: t }) => e === "end" && t.size !== "small",
|
|
238
|
+
style: { marginRight: -12 }
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
}), mt = E("input", {
|
|
242
|
+
name: "MuiSwitchBase",
|
|
243
|
+
shouldForwardProp: P
|
|
244
|
+
})({
|
|
245
|
+
cursor: "inherit",
|
|
246
|
+
position: "absolute",
|
|
247
|
+
opacity: 0,
|
|
248
|
+
width: "100%",
|
|
249
|
+
height: "100%",
|
|
250
|
+
top: 0,
|
|
251
|
+
left: 0,
|
|
252
|
+
margin: 0,
|
|
253
|
+
padding: 0,
|
|
254
|
+
zIndex: 1
|
|
255
|
+
}), ht = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
256
|
+
let { autoFocus: n, checked: r, checkedIcon: i, defaultChecked: a, disabled: o, disableFocusRipple: s = !1, edge: c = !1, icon: l, id: u, inputProps: d, inputRef: f, name: p, onBlur: m, onChange: h, onFocus: g, readOnly: _, required: v = !1, tabIndex: y, type: b, value: x, slots: S = {}, slotProps: C = {}, ...w } = e, [T, E] = ee({
|
|
257
|
+
controlled: r,
|
|
258
|
+
default: !!a,
|
|
259
|
+
name: "SwitchBase",
|
|
260
|
+
state: "checked"
|
|
261
|
+
}), O = ke(), k = (e) => {
|
|
262
|
+
g && g(e), O && O.onFocus && O.onFocus(e);
|
|
263
|
+
}, A = (e) => {
|
|
264
|
+
m && m(e), O && O.onBlur && O.onBlur(e);
|
|
265
|
+
}, te = (e) => {
|
|
266
|
+
if (e.nativeEvent.defaultPrevented || _) return;
|
|
267
|
+
let t = e.target.checked;
|
|
268
|
+
E(t), h && h(e, t);
|
|
269
|
+
}, j = o;
|
|
270
|
+
O && j === void 0 && (j = O.disabled);
|
|
271
|
+
let ne = b === "checkbox" || b === "radio", re = {
|
|
272
|
+
...e,
|
|
273
|
+
checked: T,
|
|
274
|
+
disabled: j,
|
|
275
|
+
disableFocusRipple: s,
|
|
276
|
+
edge: c
|
|
277
|
+
}, M = ft(re), ie = {
|
|
278
|
+
slots: S,
|
|
279
|
+
slotProps: {
|
|
280
|
+
input: d,
|
|
281
|
+
...C
|
|
282
|
+
}
|
|
283
|
+
}, [N, ae] = D("root", {
|
|
284
|
+
ref: t,
|
|
285
|
+
elementType: pt,
|
|
286
|
+
className: M.root,
|
|
287
|
+
shouldForwardComponentProp: !0,
|
|
288
|
+
externalForwardedProps: {
|
|
289
|
+
...ie,
|
|
290
|
+
component: "span",
|
|
291
|
+
...w
|
|
292
|
+
},
|
|
293
|
+
getSlotProps: (e) => ({
|
|
294
|
+
...e,
|
|
295
|
+
onFocus: (t) => {
|
|
296
|
+
e.onFocus?.(t), k(t);
|
|
297
|
+
},
|
|
298
|
+
onBlur: (t) => {
|
|
299
|
+
e.onBlur?.(t), A(t);
|
|
300
|
+
}
|
|
301
|
+
}),
|
|
302
|
+
ownerState: re,
|
|
303
|
+
additionalProps: {
|
|
304
|
+
centerRipple: !0,
|
|
305
|
+
focusRipple: !s,
|
|
306
|
+
role: void 0,
|
|
307
|
+
tabIndex: null
|
|
308
|
+
}
|
|
309
|
+
}), [P, F] = D("input", {
|
|
310
|
+
ref: f,
|
|
311
|
+
elementType: mt,
|
|
312
|
+
className: M.input,
|
|
313
|
+
externalForwardedProps: ie,
|
|
314
|
+
getSlotProps: (e) => ({
|
|
315
|
+
...e,
|
|
316
|
+
onChange: (t) => {
|
|
317
|
+
e.onChange?.(t), te(t);
|
|
318
|
+
}
|
|
319
|
+
}),
|
|
320
|
+
ownerState: re,
|
|
321
|
+
additionalProps: {
|
|
322
|
+
autoFocus: n,
|
|
323
|
+
checked: r,
|
|
324
|
+
defaultChecked: a,
|
|
325
|
+
disabled: j,
|
|
326
|
+
id: ne ? u : void 0,
|
|
327
|
+
name: p,
|
|
328
|
+
readOnly: _,
|
|
329
|
+
required: v,
|
|
330
|
+
tabIndex: y,
|
|
331
|
+
type: b,
|
|
332
|
+
...b === "checkbox" && x === void 0 ? {} : { value: x }
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
return /*#__PURE__*/ K(N, {
|
|
336
|
+
...ae,
|
|
337
|
+
children: [/*#__PURE__*/ G(P, { ...F }), T ? i : l]
|
|
338
|
+
});
|
|
339
|
+
}), gt = A(/*#__PURE__*/ G("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), _t = A(/*#__PURE__*/ G("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), vt = A(/*#__PURE__*/ G("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
|
|
342
|
+
function yt(e) {
|
|
343
|
+
return R("MuiCheckbox", e);
|
|
344
|
+
}
|
|
345
|
+
var bt = V("MuiCheckbox", [
|
|
346
|
+
"root",
|
|
347
|
+
"checked",
|
|
348
|
+
"disabled",
|
|
349
|
+
"indeterminate",
|
|
350
|
+
"colorPrimary",
|
|
351
|
+
"colorSecondary",
|
|
352
|
+
"sizeSmall",
|
|
353
|
+
"sizeMedium"
|
|
354
|
+
]), xt = (e) => {
|
|
355
|
+
let { classes: t, indeterminate: n, color: r, size: i } = e, a = g({ root: [
|
|
356
|
+
"root",
|
|
357
|
+
n && "indeterminate",
|
|
358
|
+
`color${S(r)}`,
|
|
359
|
+
`size${S(i)}`
|
|
360
|
+
] }, yt, t);
|
|
361
|
+
return {
|
|
362
|
+
...t,
|
|
363
|
+
...a
|
|
364
|
+
};
|
|
365
|
+
}, St = E(ht, {
|
|
366
|
+
shouldForwardProp: (e) => P(e) || e === "classes",
|
|
367
|
+
name: "MuiCheckbox",
|
|
368
|
+
slot: "Root",
|
|
369
|
+
overridesResolver: (e, t) => {
|
|
370
|
+
let { ownerState: n } = e;
|
|
371
|
+
return [
|
|
372
|
+
t.root,
|
|
373
|
+
n.indeterminate && t.indeterminate,
|
|
374
|
+
t[`size${S(n.size)}`],
|
|
375
|
+
n.color !== "default" && t[`color${S(n.color)}`]
|
|
376
|
+
];
|
|
377
|
+
}
|
|
378
|
+
})(j(({ theme: e }) => ({
|
|
379
|
+
color: (e.vars || e).palette.text.secondary,
|
|
380
|
+
variants: [
|
|
381
|
+
{
|
|
382
|
+
props: {
|
|
383
|
+
color: "default",
|
|
384
|
+
disableRipple: !1
|
|
385
|
+
},
|
|
386
|
+
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity) } }
|
|
387
|
+
},
|
|
388
|
+
...Object.entries(e.palette).filter(x()).map(([t]) => ({
|
|
389
|
+
props: {
|
|
390
|
+
color: t,
|
|
391
|
+
disableRipple: !1
|
|
392
|
+
},
|
|
393
|
+
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity) } }
|
|
394
|
+
})),
|
|
395
|
+
...Object.entries(e.palette).filter(x()).map(([t]) => ({
|
|
396
|
+
props: { color: t },
|
|
397
|
+
style: {
|
|
398
|
+
[`&.${bt.checked}, &.${bt.indeterminate}`]: { color: (e.vars || e).palette[t].main },
|
|
399
|
+
[`&.${bt.disabled}`]: { color: (e.vars || e).palette.action.disabled }
|
|
400
|
+
}
|
|
401
|
+
})),
|
|
402
|
+
{
|
|
403
|
+
props: { disableRipple: !1 },
|
|
404
|
+
style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
}))), Ct = /*#__PURE__*/ G(_t, {}), wt = /*#__PURE__*/ G(gt, {}), Tt = /*#__PURE__*/ G(vt, {}), Et = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
408
|
+
let n = N({
|
|
409
|
+
props: e,
|
|
410
|
+
name: "MuiCheckbox"
|
|
411
|
+
}), { checkedIcon: r = Ct, color: i = "primary", icon: a = wt, indeterminate: o = !1, indeterminateIcon: s = Tt, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: f = {}, slotProps: p = {}, ...m } = n, h = o ? s : a, g = o ? s : r, v = {
|
|
412
|
+
...n,
|
|
413
|
+
disableRipple: u,
|
|
414
|
+
color: i,
|
|
415
|
+
indeterminate: o,
|
|
416
|
+
size: l
|
|
417
|
+
}, y = xt(v), b = p.input ?? c, [x, S] = D("root", {
|
|
418
|
+
ref: t,
|
|
419
|
+
elementType: St,
|
|
420
|
+
className: z(y.root, d),
|
|
421
|
+
shouldForwardComponentProp: !0,
|
|
422
|
+
externalForwardedProps: {
|
|
423
|
+
slots: f,
|
|
424
|
+
slotProps: p,
|
|
425
|
+
...m
|
|
426
|
+
},
|
|
427
|
+
ownerState: v,
|
|
428
|
+
additionalProps: {
|
|
429
|
+
type: "checkbox",
|
|
430
|
+
icon: /*#__PURE__*/ H.cloneElement(h, { fontSize: h.props.fontSize ?? l }),
|
|
431
|
+
checkedIcon: /*#__PURE__*/ H.cloneElement(g, { fontSize: g.props.fontSize ?? l }),
|
|
432
|
+
disableRipple: u,
|
|
433
|
+
slots: f,
|
|
434
|
+
slotProps: { input: _(typeof b == "function" ? b(v) : b, {
|
|
435
|
+
"data-indeterminate": o,
|
|
436
|
+
"aria-checked": o ? "mixed" : void 0
|
|
437
|
+
}) }
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
return /*#__PURE__*/ G(x, {
|
|
441
|
+
...S,
|
|
442
|
+
classes: y
|
|
443
|
+
});
|
|
444
|
+
});
|
|
445
|
+
//#endregion
|
|
446
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
|
|
447
|
+
function Dt(e) {
|
|
448
|
+
return R("MuiFormControlLabel", e);
|
|
449
|
+
}
|
|
450
|
+
var Ot = V("MuiFormControlLabel", [
|
|
451
|
+
"root",
|
|
452
|
+
"labelPlacementStart",
|
|
453
|
+
"labelPlacementTop",
|
|
454
|
+
"labelPlacementBottom",
|
|
455
|
+
"disabled",
|
|
456
|
+
"label",
|
|
457
|
+
"error",
|
|
458
|
+
"required",
|
|
459
|
+
"asterisk"
|
|
460
|
+
]), kt = (e) => {
|
|
461
|
+
let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
|
|
462
|
+
return g({
|
|
463
|
+
root: [
|
|
464
|
+
"root",
|
|
465
|
+
n && "disabled",
|
|
466
|
+
`labelPlacement${S(r)}`,
|
|
467
|
+
i && "error",
|
|
468
|
+
a && "required"
|
|
469
|
+
],
|
|
470
|
+
label: ["label", n && "disabled"],
|
|
471
|
+
asterisk: ["asterisk", i && "error"]
|
|
472
|
+
}, Dt, t);
|
|
473
|
+
}, At = E("label", {
|
|
474
|
+
name: "MuiFormControlLabel",
|
|
475
|
+
slot: "Root",
|
|
476
|
+
overridesResolver: (e, t) => {
|
|
477
|
+
let { ownerState: n } = e;
|
|
478
|
+
return [
|
|
479
|
+
{ [`& .${Ot.label}`]: t.label },
|
|
480
|
+
t.root,
|
|
481
|
+
t[`labelPlacement${S(n.labelPlacement)}`]
|
|
482
|
+
];
|
|
483
|
+
}
|
|
484
|
+
})(j(({ theme: e }) => ({
|
|
485
|
+
display: "inline-flex",
|
|
486
|
+
alignItems: "center",
|
|
487
|
+
cursor: "pointer",
|
|
488
|
+
verticalAlign: "middle",
|
|
489
|
+
WebkitTapHighlightColor: "transparent",
|
|
490
|
+
marginLeft: -11,
|
|
491
|
+
marginRight: 16,
|
|
492
|
+
[`&.${Ot.disabled}`]: { cursor: "default" },
|
|
493
|
+
[`& .${Ot.label}`]: { [`&.${Ot.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
|
|
494
|
+
variants: [
|
|
495
|
+
{
|
|
496
|
+
props: { labelPlacement: "start" },
|
|
497
|
+
style: {
|
|
498
|
+
flexDirection: "row-reverse",
|
|
499
|
+
marginRight: -11
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
props: { labelPlacement: "top" },
|
|
504
|
+
style: { flexDirection: "column-reverse" }
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
props: { labelPlacement: "bottom" },
|
|
508
|
+
style: { flexDirection: "column" }
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
props: ({ labelPlacement: e }) => e === "start" || e === "top" || e === "bottom",
|
|
512
|
+
style: { marginLeft: 16 }
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
}))), jt = E("span", {
|
|
516
|
+
name: "MuiFormControlLabel",
|
|
517
|
+
slot: "Asterisk"
|
|
518
|
+
})(j(({ theme: e }) => ({ [`&.${Ot.error}`]: { color: (e.vars || e).palette.error.main } }))), Mt = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
519
|
+
let n = N({
|
|
520
|
+
props: e,
|
|
521
|
+
name: "MuiFormControlLabel"
|
|
522
|
+
}), { checked: r, className: i, componentsProps: a = {}, control: o, disabled: s, disableTypography: c, inputRef: l, label: u, labelPlacement: d = "end", name: f, onChange: p, required: m, slots: h = {}, slotProps: g = {}, value: _, ...v } = n, b = ke(), x = s ?? o.props.disabled ?? b?.disabled, S = m ?? o.props.required, C = {
|
|
523
|
+
disabled: x,
|
|
524
|
+
required: S
|
|
525
|
+
};
|
|
526
|
+
[
|
|
527
|
+
"checked",
|
|
528
|
+
"name",
|
|
529
|
+
"onChange",
|
|
530
|
+
"value",
|
|
531
|
+
"inputRef"
|
|
532
|
+
].forEach((e) => {
|
|
533
|
+
o.props[e] === void 0 && n[e] !== void 0 && (C[e] = n[e]);
|
|
534
|
+
});
|
|
535
|
+
let w = y({
|
|
536
|
+
props: n,
|
|
537
|
+
muiFormControl: b,
|
|
538
|
+
states: ["error"]
|
|
539
|
+
}), T = {
|
|
540
|
+
...n,
|
|
541
|
+
disabled: x,
|
|
542
|
+
labelPlacement: d,
|
|
543
|
+
required: S,
|
|
544
|
+
error: w.error
|
|
545
|
+
}, E = kt(T), [ee, O] = D("typography", {
|
|
546
|
+
elementType: L,
|
|
547
|
+
externalForwardedProps: {
|
|
548
|
+
slots: h,
|
|
549
|
+
slotProps: {
|
|
550
|
+
...a,
|
|
551
|
+
...g
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
ownerState: T
|
|
555
|
+
}), k = u;
|
|
556
|
+
return k != null && k.type !== L && !c && (k = /*#__PURE__*/ G(ee, {
|
|
557
|
+
component: "span",
|
|
558
|
+
...O,
|
|
559
|
+
className: z(E.label, O?.className),
|
|
560
|
+
children: k
|
|
561
|
+
})), /*#__PURE__*/ K(At, {
|
|
562
|
+
className: z(E.root, i),
|
|
563
|
+
ownerState: T,
|
|
564
|
+
ref: t,
|
|
565
|
+
...v,
|
|
566
|
+
children: [/*#__PURE__*/ H.cloneElement(o, C), S ? /*#__PURE__*/ K("div", { children: [k, /*#__PURE__*/ K(jt, {
|
|
567
|
+
ownerState: T,
|
|
568
|
+
"aria-hidden": !0,
|
|
569
|
+
className: E.asterisk,
|
|
570
|
+
children: [" ", "*"]
|
|
571
|
+
})] }) : k]
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
|
|
576
|
+
function Nt(e) {
|
|
577
|
+
return R("MuiInputAdornment", e);
|
|
578
|
+
}
|
|
579
|
+
var Pt = V("MuiInputAdornment", [
|
|
580
|
+
"root",
|
|
581
|
+
"filled",
|
|
582
|
+
"standard",
|
|
583
|
+
"outlined",
|
|
584
|
+
"positionStart",
|
|
585
|
+
"positionEnd",
|
|
586
|
+
"disablePointerEvents",
|
|
587
|
+
"hiddenLabel",
|
|
588
|
+
"sizeSmall"
|
|
589
|
+
]), Ft, It = (e, t) => {
|
|
590
|
+
let { ownerState: n } = e;
|
|
591
|
+
return [
|
|
592
|
+
t.root,
|
|
593
|
+
t[`position${S(n.position)}`],
|
|
594
|
+
n.disablePointerEvents === !0 && t.disablePointerEvents,
|
|
595
|
+
t[n.variant]
|
|
596
|
+
];
|
|
597
|
+
}, Lt = (e) => {
|
|
598
|
+
let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
|
|
599
|
+
return g({ root: [
|
|
600
|
+
"root",
|
|
601
|
+
n && "disablePointerEvents",
|
|
602
|
+
i && `position${S(i)}`,
|
|
603
|
+
o,
|
|
604
|
+
r && "hiddenLabel",
|
|
605
|
+
a && `size${S(a)}`
|
|
606
|
+
] }, Nt, t);
|
|
607
|
+
}, Rt = E("div", {
|
|
608
|
+
name: "MuiInputAdornment",
|
|
609
|
+
slot: "Root",
|
|
610
|
+
overridesResolver: It
|
|
611
|
+
})(j(({ theme: e }) => ({
|
|
612
|
+
display: "flex",
|
|
613
|
+
maxHeight: "2em",
|
|
614
|
+
alignItems: "center",
|
|
615
|
+
whiteSpace: "nowrap",
|
|
616
|
+
color: (e.vars || e).palette.action.active,
|
|
617
|
+
variants: [
|
|
618
|
+
{
|
|
619
|
+
props: { variant: "filled" },
|
|
620
|
+
style: { [`&.${Pt.positionStart}&:not(.${Pt.hiddenLabel})`]: { marginTop: 16 } }
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
props: { position: "start" },
|
|
624
|
+
style: { marginRight: 8 }
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
props: { position: "end" },
|
|
628
|
+
style: { marginLeft: 8 }
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
props: { disablePointerEvents: !0 },
|
|
632
|
+
style: { pointerEvents: "none" }
|
|
633
|
+
}
|
|
634
|
+
]
|
|
635
|
+
}))), zt = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
636
|
+
let n = N({
|
|
637
|
+
props: e,
|
|
638
|
+
name: "MuiInputAdornment"
|
|
639
|
+
}), { children: r, className: i, component: a = "div", disablePointerEvents: o = !1, disableTypography: s = !1, position: c, variant: l, ...u } = n, d = ke() || {}, f = l;
|
|
640
|
+
l && d.variant, d && !f && (f = d.variant);
|
|
641
|
+
let p = {
|
|
642
|
+
...n,
|
|
643
|
+
hiddenLabel: d.hiddenLabel,
|
|
644
|
+
size: d.size,
|
|
645
|
+
disablePointerEvents: o,
|
|
646
|
+
position: c,
|
|
647
|
+
variant: f
|
|
648
|
+
}, m = Lt(p);
|
|
649
|
+
return /*#__PURE__*/ G(ne.Provider, {
|
|
650
|
+
value: null,
|
|
651
|
+
children: /*#__PURE__*/ G(Rt, {
|
|
652
|
+
as: a,
|
|
653
|
+
ownerState: p,
|
|
654
|
+
className: z(m.root, i),
|
|
655
|
+
ref: t,
|
|
656
|
+
...u,
|
|
657
|
+
children: typeof r == "string" && !s ? /*#__PURE__*/ G(L, {
|
|
658
|
+
color: "textSecondary",
|
|
659
|
+
children: r
|
|
660
|
+
}) : /*#__PURE__*/ K(H.Fragment, { children: [c === "start" ? Ft ||= /*#__PURE__*/ G("span", {
|
|
661
|
+
className: "notranslate",
|
|
662
|
+
"aria-hidden": !0,
|
|
663
|
+
children: ""
|
|
664
|
+
}) : null, r] })
|
|
665
|
+
})
|
|
666
|
+
});
|
|
667
|
+
}), Bt = A(/*#__PURE__*/ G("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), Vt = A(/*#__PURE__*/ G("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), Ht = E("span", {
|
|
668
|
+
name: "MuiRadioButtonIcon",
|
|
669
|
+
shouldForwardProp: P
|
|
670
|
+
})({
|
|
671
|
+
position: "relative",
|
|
672
|
+
display: "flex"
|
|
673
|
+
}), Ut = E(Bt, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), Wt = E(Vt, { name: "MuiRadioButtonIcon" })(j(({ theme: e }) => ({
|
|
674
|
+
left: 0,
|
|
675
|
+
position: "absolute",
|
|
676
|
+
transform: "scale(0)",
|
|
677
|
+
transition: e.transitions.create("transform", {
|
|
678
|
+
easing: e.transitions.easing.easeIn,
|
|
679
|
+
duration: e.transitions.duration.shortest
|
|
680
|
+
}),
|
|
681
|
+
variants: [{
|
|
682
|
+
props: { checked: !0 },
|
|
683
|
+
style: {
|
|
684
|
+
transform: "scale(1)",
|
|
685
|
+
transition: e.transitions.create("transform", {
|
|
686
|
+
easing: e.transitions.easing.easeOut,
|
|
687
|
+
duration: e.transitions.duration.shortest
|
|
688
|
+
})
|
|
689
|
+
}
|
|
690
|
+
}]
|
|
691
|
+
})));
|
|
692
|
+
function Gt(e) {
|
|
693
|
+
let { checked: t = !1, classes: n = {}, fontSize: r } = e, i = {
|
|
694
|
+
...e,
|
|
695
|
+
checked: t
|
|
696
|
+
};
|
|
697
|
+
return /*#__PURE__*/ K(Ht, {
|
|
698
|
+
className: n.root,
|
|
699
|
+
ownerState: i,
|
|
700
|
+
children: [/*#__PURE__*/ G(Ut, {
|
|
701
|
+
fontSize: r,
|
|
702
|
+
className: n.background,
|
|
703
|
+
ownerState: i
|
|
704
|
+
}), /*#__PURE__*/ G(Wt, {
|
|
705
|
+
fontSize: r,
|
|
706
|
+
className: n.dot,
|
|
707
|
+
ownerState: i
|
|
708
|
+
})]
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
//#endregion
|
|
712
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroupContext.js
|
|
713
|
+
var Kt = /*#__PURE__*/ H.createContext(void 0);
|
|
714
|
+
//#endregion
|
|
715
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/useRadioGroup.js
|
|
716
|
+
function qt() {
|
|
717
|
+
return H.useContext(Kt);
|
|
718
|
+
}
|
|
719
|
+
//#endregion
|
|
720
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Radio/radioClasses.js
|
|
721
|
+
function Jt(e) {
|
|
722
|
+
return R("MuiRadio", e);
|
|
723
|
+
}
|
|
724
|
+
var Yt = V("MuiRadio", [
|
|
725
|
+
"root",
|
|
726
|
+
"checked",
|
|
727
|
+
"disabled",
|
|
728
|
+
"colorPrimary",
|
|
729
|
+
"colorSecondary",
|
|
730
|
+
"sizeSmall"
|
|
731
|
+
]), Xt = (e) => {
|
|
732
|
+
let { classes: t, color: n, size: r } = e, i = { root: [
|
|
733
|
+
"root",
|
|
734
|
+
`color${S(n)}`,
|
|
735
|
+
r !== "medium" && `size${S(r)}`
|
|
736
|
+
] };
|
|
737
|
+
return {
|
|
738
|
+
...t,
|
|
739
|
+
...g(i, Jt, t)
|
|
740
|
+
};
|
|
741
|
+
}, Zt = E(ht, {
|
|
742
|
+
shouldForwardProp: (e) => P(e) || e === "classes",
|
|
743
|
+
name: "MuiRadio",
|
|
744
|
+
slot: "Root",
|
|
745
|
+
overridesResolver: (e, t) => {
|
|
746
|
+
let { ownerState: n } = e;
|
|
747
|
+
return [
|
|
748
|
+
t.root,
|
|
749
|
+
n.size !== "medium" && t[`size${S(n.size)}`],
|
|
750
|
+
t[`color${S(n.color)}`]
|
|
751
|
+
];
|
|
752
|
+
}
|
|
753
|
+
})(j(({ theme: e }) => ({
|
|
754
|
+
color: (e.vars || e).palette.text.secondary,
|
|
755
|
+
[`&.${Yt.disabled}`]: { color: (e.vars || e).palette.action.disabled },
|
|
756
|
+
variants: [
|
|
757
|
+
{
|
|
758
|
+
props: {
|
|
759
|
+
color: "default",
|
|
760
|
+
disabled: !1,
|
|
761
|
+
disableRipple: !1
|
|
762
|
+
},
|
|
763
|
+
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity) } }
|
|
764
|
+
},
|
|
765
|
+
...Object.entries(e.palette).filter(x()).map(([t]) => ({
|
|
766
|
+
props: {
|
|
767
|
+
color: t,
|
|
768
|
+
disabled: !1,
|
|
769
|
+
disableRipple: !1
|
|
770
|
+
},
|
|
771
|
+
style: { "&:hover": { backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity) } }
|
|
772
|
+
})),
|
|
773
|
+
...Object.entries(e.palette).filter(x()).map(([t]) => ({
|
|
774
|
+
props: {
|
|
775
|
+
color: t,
|
|
776
|
+
disabled: !1
|
|
777
|
+
},
|
|
778
|
+
style: { [`&.${Yt.checked}`]: { color: (e.vars || e).palette[t].main } }
|
|
779
|
+
})),
|
|
780
|
+
{
|
|
781
|
+
props: { disableRipple: !1 },
|
|
782
|
+
style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
|
|
783
|
+
}
|
|
784
|
+
]
|
|
785
|
+
})));
|
|
786
|
+
function Qt(e, t) {
|
|
787
|
+
return typeof t == "object" && t ? e === t : String(e) === String(t);
|
|
788
|
+
}
|
|
789
|
+
var $t = /*#__PURE__*/ G(Gt, { checked: !0 }), en = /*#__PURE__*/ G(Gt, {}), tn = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
790
|
+
let n = N({
|
|
791
|
+
props: e,
|
|
792
|
+
name: "MuiRadio"
|
|
793
|
+
}), { checked: r, checkedIcon: i = $t, color: a = "primary", icon: o = en, name: s, onChange: c, size: l = "medium", className: u, disabled: d, disableRipple: f = !1, slots: p = {}, slotProps: m = {}, inputProps: h, ...g } = n, _ = ke(), v = d;
|
|
794
|
+
_ && v === void 0 && (v = _.disabled), v ??= !1;
|
|
795
|
+
let y = {
|
|
796
|
+
...n,
|
|
797
|
+
disabled: v,
|
|
798
|
+
disableRipple: f,
|
|
799
|
+
color: a,
|
|
800
|
+
size: l
|
|
801
|
+
}, b = Xt(y), x = qt(), S = r, C = it(c, x && x.onChange), w = s;
|
|
802
|
+
x && (S === void 0 && (S = Qt(x.value, n.value)), w === void 0 && (w = x.name));
|
|
803
|
+
let T = m.input ?? h, [E, ee] = D("root", {
|
|
804
|
+
ref: t,
|
|
805
|
+
elementType: Zt,
|
|
806
|
+
className: z(b.root, u),
|
|
807
|
+
shouldForwardComponentProp: !0,
|
|
808
|
+
externalForwardedProps: {
|
|
809
|
+
slots: p,
|
|
810
|
+
slotProps: m,
|
|
811
|
+
...g
|
|
812
|
+
},
|
|
813
|
+
getSlotProps: (e) => ({
|
|
814
|
+
...e,
|
|
815
|
+
onChange: (t, ...n) => {
|
|
816
|
+
e.onChange?.(t, ...n), C(t, ...n);
|
|
817
|
+
}
|
|
818
|
+
}),
|
|
819
|
+
ownerState: y,
|
|
820
|
+
additionalProps: {
|
|
821
|
+
type: "radio",
|
|
822
|
+
icon: /*#__PURE__*/ H.cloneElement(o, { fontSize: o.props.fontSize ?? l }),
|
|
823
|
+
checkedIcon: /*#__PURE__*/ H.cloneElement(i, { fontSize: i.props.fontSize ?? l }),
|
|
824
|
+
disabled: v,
|
|
825
|
+
name: w,
|
|
826
|
+
checked: S,
|
|
827
|
+
slots: p,
|
|
828
|
+
slotProps: { input: typeof T == "function" ? T(y) : T }
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
return /*#__PURE__*/ G(E, {
|
|
832
|
+
...ee,
|
|
833
|
+
classes: b
|
|
834
|
+
});
|
|
835
|
+
});
|
|
836
|
+
//#endregion
|
|
837
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
|
|
838
|
+
function nn(e) {
|
|
839
|
+
return R("MuiTooltip", e);
|
|
840
|
+
}
|
|
841
|
+
var X = V("MuiTooltip", [
|
|
842
|
+
"popper",
|
|
843
|
+
"popperInteractive",
|
|
844
|
+
"popperArrow",
|
|
845
|
+
"popperClose",
|
|
846
|
+
"tooltip",
|
|
847
|
+
"tooltipArrow",
|
|
848
|
+
"touch",
|
|
849
|
+
"tooltipPlacementLeft",
|
|
850
|
+
"tooltipPlacementRight",
|
|
851
|
+
"tooltipPlacementTop",
|
|
852
|
+
"tooltipPlacementBottom",
|
|
853
|
+
"arrow"
|
|
854
|
+
]);
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
|
|
857
|
+
function rn(e) {
|
|
858
|
+
return Math.round(e * 1e5) / 1e5;
|
|
859
|
+
}
|
|
860
|
+
var an = (e) => {
|
|
861
|
+
let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
|
|
862
|
+
return g({
|
|
863
|
+
popper: [
|
|
864
|
+
"popper",
|
|
865
|
+
!n && "popperInteractive",
|
|
866
|
+
r && "popperArrow"
|
|
867
|
+
],
|
|
868
|
+
tooltip: [
|
|
869
|
+
"tooltip",
|
|
870
|
+
r && "tooltipArrow",
|
|
871
|
+
i && "touch",
|
|
872
|
+
`tooltipPlacement${S(a.split("-")[0])}`
|
|
873
|
+
],
|
|
874
|
+
arrow: ["arrow"]
|
|
875
|
+
}, nn, t);
|
|
876
|
+
}, on = E(be, {
|
|
877
|
+
name: "MuiTooltip",
|
|
878
|
+
slot: "Popper",
|
|
879
|
+
overridesResolver: (e, t) => {
|
|
880
|
+
let { ownerState: n } = e;
|
|
881
|
+
return [
|
|
882
|
+
t.popper,
|
|
883
|
+
!n.disableInteractive && t.popperInteractive,
|
|
884
|
+
n.arrow && t.popperArrow,
|
|
885
|
+
!n.open && t.popperClose
|
|
886
|
+
];
|
|
887
|
+
}
|
|
888
|
+
})(j(({ theme: e }) => ({
|
|
889
|
+
zIndex: (e.vars || e).zIndex.tooltip,
|
|
890
|
+
pointerEvents: "none",
|
|
891
|
+
variants: [
|
|
892
|
+
{
|
|
893
|
+
props: ({ ownerState: e }) => !e.disableInteractive,
|
|
894
|
+
style: { pointerEvents: "auto" }
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
props: ({ open: e }) => !e,
|
|
898
|
+
style: { pointerEvents: "none" }
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
props: ({ ownerState: e }) => e.arrow,
|
|
902
|
+
style: {
|
|
903
|
+
[`&[data-popper-placement*="bottom"] .${X.arrow}`]: {
|
|
904
|
+
top: 0,
|
|
905
|
+
marginTop: "-0.71em",
|
|
906
|
+
"&::before": { transformOrigin: "0 100%" }
|
|
907
|
+
},
|
|
908
|
+
[`&[data-popper-placement*="top"] .${X.arrow}`]: {
|
|
909
|
+
bottom: 0,
|
|
910
|
+
marginBottom: "-0.71em",
|
|
911
|
+
"&::before": { transformOrigin: "100% 0" }
|
|
912
|
+
},
|
|
913
|
+
[`&[data-popper-placement*="right"] .${X.arrow}`]: {
|
|
914
|
+
height: "1em",
|
|
915
|
+
width: "0.71em",
|
|
916
|
+
"&::before": { transformOrigin: "100% 100%" }
|
|
917
|
+
},
|
|
918
|
+
[`&[data-popper-placement*="left"] .${X.arrow}`]: {
|
|
919
|
+
height: "1em",
|
|
920
|
+
width: "0.71em",
|
|
921
|
+
"&::before": { transformOrigin: "0 0" }
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
props: ({ ownerState: e }) => e.arrow && !e.isRtl,
|
|
927
|
+
style: { [`&[data-popper-placement*="right"] .${X.arrow}`]: {
|
|
928
|
+
left: 0,
|
|
929
|
+
marginLeft: "-0.71em"
|
|
930
|
+
} }
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
|
|
934
|
+
style: { [`&[data-popper-placement*="right"] .${X.arrow}`]: {
|
|
935
|
+
right: 0,
|
|
936
|
+
marginRight: "-0.71em"
|
|
937
|
+
} }
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
props: ({ ownerState: e }) => e.arrow && !e.isRtl,
|
|
941
|
+
style: { [`&[data-popper-placement*="left"] .${X.arrow}`]: {
|
|
942
|
+
right: 0,
|
|
943
|
+
marginRight: "-0.71em"
|
|
944
|
+
} }
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
|
|
948
|
+
style: { [`&[data-popper-placement*="left"] .${X.arrow}`]: {
|
|
949
|
+
left: 0,
|
|
950
|
+
marginLeft: "-0.71em"
|
|
951
|
+
} }
|
|
952
|
+
}
|
|
953
|
+
]
|
|
954
|
+
}))), sn = E("div", {
|
|
955
|
+
name: "MuiTooltip",
|
|
956
|
+
slot: "Tooltip",
|
|
957
|
+
overridesResolver: (e, t) => {
|
|
958
|
+
let { ownerState: n } = e;
|
|
959
|
+
return [
|
|
960
|
+
t.tooltip,
|
|
961
|
+
n.touch && t.touch,
|
|
962
|
+
n.arrow && t.tooltipArrow,
|
|
963
|
+
t[`tooltipPlacement${S(n.placement.split("-")[0])}`]
|
|
964
|
+
];
|
|
965
|
+
}
|
|
966
|
+
})(j(({ theme: e }) => ({
|
|
967
|
+
backgroundColor: e.vars ? e.vars.palette.Tooltip.bg : e.alpha(e.palette.grey[700], .92),
|
|
968
|
+
borderRadius: (e.vars || e).shape.borderRadius,
|
|
969
|
+
color: (e.vars || e).palette.common.white,
|
|
970
|
+
fontFamily: e.typography.fontFamily,
|
|
971
|
+
padding: "4px 8px",
|
|
972
|
+
fontSize: e.typography.pxToRem(11),
|
|
973
|
+
maxWidth: 300,
|
|
974
|
+
margin: 2,
|
|
975
|
+
wordWrap: "break-word",
|
|
976
|
+
fontWeight: e.typography.fontWeightMedium,
|
|
977
|
+
[`.${X.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
|
|
978
|
+
[`.${X.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
|
|
979
|
+
[`.${X.popper}[data-popper-placement*="top"] &`]: {
|
|
980
|
+
transformOrigin: "center bottom",
|
|
981
|
+
marginBottom: "14px"
|
|
982
|
+
},
|
|
983
|
+
[`.${X.popper}[data-popper-placement*="bottom"] &`]: {
|
|
984
|
+
transformOrigin: "center top",
|
|
985
|
+
marginTop: "14px"
|
|
986
|
+
},
|
|
987
|
+
variants: [
|
|
988
|
+
{
|
|
989
|
+
props: ({ ownerState: e }) => e.arrow,
|
|
990
|
+
style: {
|
|
991
|
+
position: "relative",
|
|
992
|
+
margin: 0
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
props: ({ ownerState: e }) => e.touch,
|
|
997
|
+
style: {
|
|
998
|
+
padding: "8px 16px",
|
|
999
|
+
fontSize: e.typography.pxToRem(14),
|
|
1000
|
+
lineHeight: `${rn(16 / 14)}em`,
|
|
1001
|
+
fontWeight: e.typography.fontWeightRegular
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
props: ({ ownerState: e }) => !e.isRtl,
|
|
1006
|
+
style: {
|
|
1007
|
+
[`.${X.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
|
|
1008
|
+
[`.${X.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
props: ({ ownerState: e }) => !e.isRtl && e.touch,
|
|
1013
|
+
style: {
|
|
1014
|
+
[`.${X.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
|
|
1015
|
+
[`.${X.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
props: ({ ownerState: e }) => !!e.isRtl,
|
|
1020
|
+
style: {
|
|
1021
|
+
[`.${X.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
|
|
1022
|
+
[`.${X.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
props: ({ ownerState: e }) => !!e.isRtl && e.touch,
|
|
1027
|
+
style: {
|
|
1028
|
+
[`.${X.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
|
|
1029
|
+
[`.${X.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
props: ({ ownerState: e }) => e.touch,
|
|
1034
|
+
style: { [`.${X.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
props: ({ ownerState: e }) => e.touch,
|
|
1038
|
+
style: { [`.${X.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
|
|
1039
|
+
}
|
|
1040
|
+
]
|
|
1041
|
+
}))), cn = E("span", {
|
|
1042
|
+
name: "MuiTooltip",
|
|
1043
|
+
slot: "Arrow"
|
|
1044
|
+
})(j(({ theme: e }) => ({
|
|
1045
|
+
overflow: "hidden",
|
|
1046
|
+
position: "absolute",
|
|
1047
|
+
width: "1em",
|
|
1048
|
+
height: "0.71em",
|
|
1049
|
+
boxSizing: "border-box",
|
|
1050
|
+
color: e.vars ? e.vars.palette.Tooltip.bg : e.alpha(e.palette.grey[700], .9),
|
|
1051
|
+
"&::before": {
|
|
1052
|
+
content: "\"\"",
|
|
1053
|
+
margin: "auto",
|
|
1054
|
+
display: "block",
|
|
1055
|
+
width: "100%",
|
|
1056
|
+
height: "100%",
|
|
1057
|
+
backgroundColor: "currentColor",
|
|
1058
|
+
transform: "rotate(45deg)"
|
|
1059
|
+
}
|
|
1060
|
+
}))), ln = !1, un = new w(), dn = {
|
|
1061
|
+
x: 0,
|
|
1062
|
+
y: 0
|
|
1063
|
+
};
|
|
1064
|
+
function fn(e, t) {
|
|
1065
|
+
return (n, ...r) => {
|
|
1066
|
+
t && t(n, ...r), e(n, ...r);
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
var pn = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
1070
|
+
let n = N({
|
|
1071
|
+
props: e,
|
|
1072
|
+
name: "MuiTooltip"
|
|
1073
|
+
}), { arrow: r = !1, children: i, classes: a, components: o = {}, componentsProps: s = {}, describeChild: c = !1, disableFocusListener: l = !1, disableHoverListener: u = !1, disableInteractive: d = !1, disableTouchListener: f = !1, enterDelay: p = 100, enterNextDelay: m = 0, enterTouchDelay: h = 700, followCursor: g = !1, id: _, leaveDelay: y = 0, leaveTouchDelay: b = 1500, onClose: x, onOpen: S, open: C, placement: w = "bottom", PopperComponent: T, PopperProps: E = {}, slotProps: A = {}, slots: te = {}, title: j, TransitionComponent: ne, TransitionProps: re, ...P } = n, F = /*#__PURE__*/ H.isValidElement(i) ? i : /*#__PURE__*/ G("span", { children: i }), oe = ae(), se = fe(), [ce, le] = H.useState(), [I, ue] = H.useState(null), de = H.useRef(!1), pe = d || g, me = M(), he = M(), ge = M(), L = M(), [ve, ye] = ee({
|
|
1074
|
+
controlled: C,
|
|
1075
|
+
default: !1,
|
|
1076
|
+
name: "Tooltip",
|
|
1077
|
+
state: "open"
|
|
1078
|
+
}), R = ve, xe = O(_), Se = H.useRef(), Ce = _e(() => {
|
|
1079
|
+
Se.current !== void 0 && (document.body.style.WebkitUserSelect = Se.current, Se.current = void 0), L.clear();
|
|
1080
|
+
});
|
|
1081
|
+
H.useEffect(() => Ce, [Ce]);
|
|
1082
|
+
let we = (e) => {
|
|
1083
|
+
un.clear(), ln = !0, ye(!0), S && !R && S(e);
|
|
1084
|
+
}, Te = _e((e) => {
|
|
1085
|
+
un.start(800 + y, () => {
|
|
1086
|
+
ln = !1;
|
|
1087
|
+
}), ye(!1), x && R && x(e), me.start(oe.transitions.duration.shortest, () => {
|
|
1088
|
+
de.current = !1;
|
|
1089
|
+
});
|
|
1090
|
+
}), Ee = (e) => {
|
|
1091
|
+
de.current && e.type !== "touchstart" || (ce && ce.removeAttribute("title"), he.clear(), ge.clear(), p || ln && m ? he.start(ln ? m : p, () => {
|
|
1092
|
+
we(e);
|
|
1093
|
+
}) : we(e));
|
|
1094
|
+
}, B = (e) => {
|
|
1095
|
+
he.clear(), ge.start(y, () => {
|
|
1096
|
+
Te(e);
|
|
1097
|
+
});
|
|
1098
|
+
}, [, V] = H.useState(!1), De = (e) => {
|
|
1099
|
+
let t = e?.target ?? ce;
|
|
1100
|
+
if (!t || !k(t)) {
|
|
1101
|
+
V(!1);
|
|
1102
|
+
let n = e ?? new Event("blur");
|
|
1103
|
+
!e && t && (Object.defineProperty(n, "target", { value: t }), Object.defineProperty(n, "currentTarget", { value: t })), B(n);
|
|
1104
|
+
}
|
|
1105
|
+
}, Oe = (e) => {
|
|
1106
|
+
ce || le(e.currentTarget), k(e.target) && (V(!0), Ee(e));
|
|
1107
|
+
}, ke = (e) => {
|
|
1108
|
+
de.current = !0;
|
|
1109
|
+
let t = F.props;
|
|
1110
|
+
t.onTouchStart && t.onTouchStart(e);
|
|
1111
|
+
}, Ae = (e) => {
|
|
1112
|
+
ke(e), ge.clear(), me.clear(), Ce(), Se.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", L.start(h, () => {
|
|
1113
|
+
document.body.style.WebkitUserSelect = Se.current, Ee(e);
|
|
1114
|
+
});
|
|
1115
|
+
}, Me = (e) => {
|
|
1116
|
+
F.props.onTouchEnd && F.props.onTouchEnd(e), Ce(), ge.start(b, () => {
|
|
1117
|
+
Te(e);
|
|
1118
|
+
});
|
|
1119
|
+
};
|
|
1120
|
+
H.useEffect(() => {
|
|
1121
|
+
if (!R) return;
|
|
1122
|
+
function e(e) {
|
|
1123
|
+
e.key === "Escape" && Te(e);
|
|
1124
|
+
}
|
|
1125
|
+
return document.addEventListener("keydown", e), () => {
|
|
1126
|
+
document.removeEventListener("keydown", e);
|
|
1127
|
+
};
|
|
1128
|
+
}, [Te, R]);
|
|
1129
|
+
let Ne = v(ie(F), le, t);
|
|
1130
|
+
!j && j !== 0 && (R = !1);
|
|
1131
|
+
let Pe = H.useRef(), U = (e) => {
|
|
1132
|
+
let t = F.props;
|
|
1133
|
+
t.onMouseMove && t.onMouseMove(e), dn = {
|
|
1134
|
+
x: e.clientX,
|
|
1135
|
+
y: e.clientY
|
|
1136
|
+
}, Pe.current && Pe.current.update();
|
|
1137
|
+
}, Fe = {}, Ie = typeof j == "string";
|
|
1138
|
+
c ? (Fe.title = !R && Ie && !u ? j : null, Fe["aria-describedby"] = R ? xe : null) : (Fe["aria-label"] = Ie ? j : null, Fe["aria-labelledby"] = R && !Ie ? xe : null);
|
|
1139
|
+
let W = {
|
|
1140
|
+
...Fe,
|
|
1141
|
+
...P,
|
|
1142
|
+
...F.props,
|
|
1143
|
+
className: z(P.className, F.props.className),
|
|
1144
|
+
onTouchStart: ke,
|
|
1145
|
+
ref: Ne,
|
|
1146
|
+
...g ? { onMouseMove: U } : {}
|
|
1147
|
+
}, Le = {};
|
|
1148
|
+
f || (W.onTouchStart = Ae, W.onTouchEnd = Me), u || (W.onMouseOver = fn(Ee, W.onMouseOver), W.onMouseLeave = fn(B, W.onMouseLeave), pe || (Le.onMouseOver = Ee, Le.onMouseLeave = B)), l || (W.onFocus = fn(Oe, W.onFocus), W.onBlur = fn(De, W.onBlur), pe || (Le.onFocus = Oe, Le.onBlur = De));
|
|
1149
|
+
let q = {
|
|
1150
|
+
...n,
|
|
1151
|
+
isRtl: se,
|
|
1152
|
+
arrow: r,
|
|
1153
|
+
disableInteractive: pe,
|
|
1154
|
+
placement: w,
|
|
1155
|
+
PopperComponentProp: T,
|
|
1156
|
+
touch: de.current
|
|
1157
|
+
}, Re = typeof A.popper == "function" ? A.popper(q) : A.popper, ze = H.useMemo(() => {
|
|
1158
|
+
let e = [{
|
|
1159
|
+
name: "arrow",
|
|
1160
|
+
enabled: !!I,
|
|
1161
|
+
options: {
|
|
1162
|
+
element: I,
|
|
1163
|
+
padding: 4
|
|
1164
|
+
}
|
|
1165
|
+
}];
|
|
1166
|
+
return E.popperOptions?.modifiers && (e = e.concat(E.popperOptions.modifiers)), Re?.popperOptions?.modifiers && (e = e.concat(Re.popperOptions.modifiers)), {
|
|
1167
|
+
...E.popperOptions,
|
|
1168
|
+
...Re?.popperOptions,
|
|
1169
|
+
modifiers: e
|
|
1170
|
+
};
|
|
1171
|
+
}, [
|
|
1172
|
+
I,
|
|
1173
|
+
E.popperOptions,
|
|
1174
|
+
Re?.popperOptions
|
|
1175
|
+
]), J = an(q), Be = typeof A.transition == "function" ? A.transition(q) : A.transition, Ve = {
|
|
1176
|
+
slots: {
|
|
1177
|
+
popper: o.Popper,
|
|
1178
|
+
transition: o.Transition ?? ne,
|
|
1179
|
+
tooltip: o.Tooltip,
|
|
1180
|
+
arrow: o.Arrow,
|
|
1181
|
+
...te
|
|
1182
|
+
},
|
|
1183
|
+
slotProps: {
|
|
1184
|
+
arrow: A.arrow ?? s.arrow,
|
|
1185
|
+
popper: {
|
|
1186
|
+
...E,
|
|
1187
|
+
...Re ?? s.popper
|
|
1188
|
+
},
|
|
1189
|
+
tooltip: A.tooltip ?? s.tooltip,
|
|
1190
|
+
transition: {
|
|
1191
|
+
...re,
|
|
1192
|
+
...Be ?? s.transition
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}, [He, Ue] = D("popper", {
|
|
1196
|
+
elementType: on,
|
|
1197
|
+
externalForwardedProps: Ve,
|
|
1198
|
+
ownerState: q,
|
|
1199
|
+
className: z(J.popper, E?.className)
|
|
1200
|
+
}), [We, Ge] = D("transition", {
|
|
1201
|
+
elementType: je,
|
|
1202
|
+
externalForwardedProps: Ve,
|
|
1203
|
+
ownerState: q
|
|
1204
|
+
}), [Ke, qe] = D("tooltip", {
|
|
1205
|
+
elementType: sn,
|
|
1206
|
+
className: J.tooltip,
|
|
1207
|
+
externalForwardedProps: Ve,
|
|
1208
|
+
ownerState: q
|
|
1209
|
+
}), [Je, Y] = D("arrow", {
|
|
1210
|
+
elementType: cn,
|
|
1211
|
+
className: J.arrow,
|
|
1212
|
+
externalForwardedProps: Ve,
|
|
1213
|
+
ownerState: q,
|
|
1214
|
+
ref: ue
|
|
1215
|
+
});
|
|
1216
|
+
return /*#__PURE__*/ K(H.Fragment, { children: [/*#__PURE__*/ H.cloneElement(F, W), /*#__PURE__*/ G(He, {
|
|
1217
|
+
as: T ?? be,
|
|
1218
|
+
placement: w,
|
|
1219
|
+
anchorEl: g ? { getBoundingClientRect: () => ({
|
|
1220
|
+
top: dn.y,
|
|
1221
|
+
left: dn.x,
|
|
1222
|
+
right: dn.x,
|
|
1223
|
+
bottom: dn.y,
|
|
1224
|
+
width: 0,
|
|
1225
|
+
height: 0
|
|
1226
|
+
}) } : ce,
|
|
1227
|
+
popperRef: Pe,
|
|
1228
|
+
open: ce ? R : !1,
|
|
1229
|
+
id: xe,
|
|
1230
|
+
transition: !0,
|
|
1231
|
+
...Le,
|
|
1232
|
+
...Ue,
|
|
1233
|
+
popperOptions: ze,
|
|
1234
|
+
children: ({ TransitionProps: e }) => /*#__PURE__*/ G(We, {
|
|
1235
|
+
timeout: oe.transitions.duration.shorter,
|
|
1236
|
+
...e,
|
|
1237
|
+
...Ge,
|
|
1238
|
+
children: /*#__PURE__*/ K(Ke, {
|
|
1239
|
+
...qe,
|
|
1240
|
+
children: [j, r ? /*#__PURE__*/ G(Je, { ...Y }) : null]
|
|
1241
|
+
})
|
|
1242
|
+
})
|
|
1243
|
+
})] });
|
|
1244
|
+
});
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
|
|
1247
|
+
function mn(e) {
|
|
1248
|
+
return R("MuiSwitch", e);
|
|
1249
|
+
}
|
|
1250
|
+
var Z = V("MuiSwitch", [
|
|
1251
|
+
"root",
|
|
1252
|
+
"edgeStart",
|
|
1253
|
+
"edgeEnd",
|
|
1254
|
+
"switchBase",
|
|
1255
|
+
"colorPrimary",
|
|
1256
|
+
"colorSecondary",
|
|
1257
|
+
"sizeSmall",
|
|
1258
|
+
"sizeMedium",
|
|
1259
|
+
"checked",
|
|
1260
|
+
"disabled",
|
|
1261
|
+
"input",
|
|
1262
|
+
"thumb",
|
|
1263
|
+
"track"
|
|
1264
|
+
]), hn = (e) => {
|
|
1265
|
+
let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = g({
|
|
1266
|
+
root: [
|
|
1267
|
+
"root",
|
|
1268
|
+
n && `edge${S(n)}`,
|
|
1269
|
+
`size${S(r)}`
|
|
1270
|
+
],
|
|
1271
|
+
switchBase: [
|
|
1272
|
+
"switchBase",
|
|
1273
|
+
`color${S(i)}`,
|
|
1274
|
+
a && "checked",
|
|
1275
|
+
o && "disabled"
|
|
1276
|
+
],
|
|
1277
|
+
thumb: ["thumb"],
|
|
1278
|
+
track: ["track"],
|
|
1279
|
+
input: ["input"]
|
|
1280
|
+
}, mn, t);
|
|
1281
|
+
return {
|
|
1282
|
+
...t,
|
|
1283
|
+
...s
|
|
1284
|
+
};
|
|
1285
|
+
}, gn = E("span", {
|
|
1286
|
+
name: "MuiSwitch",
|
|
1287
|
+
slot: "Root",
|
|
1288
|
+
overridesResolver: (e, t) => {
|
|
1289
|
+
let { ownerState: n } = e;
|
|
1290
|
+
return [
|
|
1291
|
+
t.root,
|
|
1292
|
+
n.edge && t[`edge${S(n.edge)}`],
|
|
1293
|
+
t[`size${S(n.size)}`]
|
|
1294
|
+
];
|
|
1295
|
+
}
|
|
1296
|
+
})({
|
|
1297
|
+
display: "inline-flex",
|
|
1298
|
+
width: 58,
|
|
1299
|
+
height: 38,
|
|
1300
|
+
overflow: "hidden",
|
|
1301
|
+
padding: 12,
|
|
1302
|
+
boxSizing: "border-box",
|
|
1303
|
+
position: "relative",
|
|
1304
|
+
flexShrink: 0,
|
|
1305
|
+
zIndex: 0,
|
|
1306
|
+
verticalAlign: "middle",
|
|
1307
|
+
"@media print": { colorAdjust: "exact" },
|
|
1308
|
+
variants: [
|
|
1309
|
+
{
|
|
1310
|
+
props: { edge: "start" },
|
|
1311
|
+
style: { marginLeft: -8 }
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
props: { edge: "end" },
|
|
1315
|
+
style: { marginRight: -8 }
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
props: { size: "small" },
|
|
1319
|
+
style: {
|
|
1320
|
+
width: 40,
|
|
1321
|
+
height: 24,
|
|
1322
|
+
padding: 7,
|
|
1323
|
+
[`& .${Z.thumb}`]: {
|
|
1324
|
+
width: 16,
|
|
1325
|
+
height: 16
|
|
1326
|
+
},
|
|
1327
|
+
[`& .${Z.switchBase}`]: {
|
|
1328
|
+
padding: 4,
|
|
1329
|
+
[`&.${Z.checked}`]: { transform: "translateX(16px)" }
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
]
|
|
1334
|
+
}), _n = E(ht, {
|
|
1335
|
+
name: "MuiSwitch",
|
|
1336
|
+
slot: "SwitchBase",
|
|
1337
|
+
overridesResolver: (e, t) => {
|
|
1338
|
+
let { ownerState: n } = e;
|
|
1339
|
+
return [
|
|
1340
|
+
t.switchBase,
|
|
1341
|
+
{ [`& .${Z.input}`]: t.input },
|
|
1342
|
+
n.color !== "default" && t[`color${S(n.color)}`]
|
|
1343
|
+
];
|
|
1344
|
+
}
|
|
1345
|
+
})(j(({ theme: e }) => ({
|
|
1346
|
+
position: "absolute",
|
|
1347
|
+
top: 0,
|
|
1348
|
+
left: 0,
|
|
1349
|
+
zIndex: 1,
|
|
1350
|
+
color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
|
|
1351
|
+
transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
|
|
1352
|
+
[`&.${Z.checked}`]: { transform: "translateX(20px)" },
|
|
1353
|
+
[`&.${Z.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
|
|
1354
|
+
[`&.${Z.checked} + .${Z.track}`]: { opacity: .5 },
|
|
1355
|
+
[`&.${Z.disabled} + .${Z.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
|
|
1356
|
+
[`& .${Z.input}`]: {
|
|
1357
|
+
left: "-100%",
|
|
1358
|
+
width: "300%"
|
|
1359
|
+
}
|
|
1360
|
+
})), j(({ theme: e }) => ({
|
|
1361
|
+
"&:hover": {
|
|
1362
|
+
backgroundColor: e.alpha((e.vars || e).palette.action.active, (e.vars || e).palette.action.hoverOpacity),
|
|
1363
|
+
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
1364
|
+
},
|
|
1365
|
+
variants: [...Object.entries(e.palette).filter(x(["light"])).map(([t]) => ({
|
|
1366
|
+
props: { color: t },
|
|
1367
|
+
style: {
|
|
1368
|
+
[`&.${Z.checked}`]: {
|
|
1369
|
+
color: (e.vars || e).palette[t].main,
|
|
1370
|
+
"&:hover": {
|
|
1371
|
+
backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
|
|
1372
|
+
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
1373
|
+
},
|
|
1374
|
+
[`&.${Z.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
|
|
1375
|
+
},
|
|
1376
|
+
[`&.${Z.checked} + .${Z.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
|
|
1377
|
+
}
|
|
1378
|
+
}))]
|
|
1379
|
+
}))), vn = E("span", {
|
|
1380
|
+
name: "MuiSwitch",
|
|
1381
|
+
slot: "Track"
|
|
1382
|
+
})(j(({ theme: e }) => ({
|
|
1383
|
+
height: "100%",
|
|
1384
|
+
width: "100%",
|
|
1385
|
+
borderRadius: 14 / 2,
|
|
1386
|
+
boxSizing: "border-box",
|
|
1387
|
+
border: "1px solid transparent",
|
|
1388
|
+
zIndex: -1,
|
|
1389
|
+
transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
|
|
1390
|
+
backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
|
|
1391
|
+
opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
|
|
1392
|
+
}))), yn = E("span", {
|
|
1393
|
+
name: "MuiSwitch",
|
|
1394
|
+
slot: "Thumb"
|
|
1395
|
+
})(j(({ theme: e }) => ({
|
|
1396
|
+
boxShadow: (e.vars || e).shadows[1],
|
|
1397
|
+
backgroundColor: "currentColor",
|
|
1398
|
+
boxSizing: "border-box",
|
|
1399
|
+
border: "1px solid transparent",
|
|
1400
|
+
width: 20,
|
|
1401
|
+
height: 20,
|
|
1402
|
+
borderRadius: "50%"
|
|
1403
|
+
}))), bn = /*#__PURE__*/ H.forwardRef(function(e, t) {
|
|
1404
|
+
let n = N({
|
|
1405
|
+
props: e,
|
|
1406
|
+
name: "MuiSwitch"
|
|
1407
|
+
}), { className: r, color: i = "primary", edge: a = !1, size: o = "medium", sx: s, slots: c = {}, slotProps: l = {}, ...u } = n, d = {
|
|
1408
|
+
...n,
|
|
1409
|
+
color: i,
|
|
1410
|
+
edge: a,
|
|
1411
|
+
size: o
|
|
1412
|
+
}, f = hn(d), p = l.input, m = {
|
|
1413
|
+
slots: c,
|
|
1414
|
+
slotProps: l
|
|
1415
|
+
}, [h, g] = D("root", {
|
|
1416
|
+
className: z(f.root, r),
|
|
1417
|
+
elementType: gn,
|
|
1418
|
+
externalForwardedProps: m,
|
|
1419
|
+
ownerState: d,
|
|
1420
|
+
additionalProps: { sx: s }
|
|
1421
|
+
}), [v, y] = D("thumb", {
|
|
1422
|
+
className: f.thumb,
|
|
1423
|
+
elementType: yn,
|
|
1424
|
+
externalForwardedProps: m,
|
|
1425
|
+
ownerState: d
|
|
1426
|
+
}), b = /*#__PURE__*/ G(v, { ...y }), [x, S] = D("track", {
|
|
1427
|
+
className: f.track,
|
|
1428
|
+
elementType: vn,
|
|
1429
|
+
externalForwardedProps: m,
|
|
1430
|
+
ownerState: d
|
|
1431
|
+
});
|
|
1432
|
+
return /*#__PURE__*/ K(h, {
|
|
1433
|
+
...g,
|
|
1434
|
+
children: [/*#__PURE__*/ G(_n, {
|
|
1435
|
+
type: "checkbox",
|
|
1436
|
+
icon: b,
|
|
1437
|
+
checkedIcon: b,
|
|
1438
|
+
ref: t,
|
|
1439
|
+
ownerState: d,
|
|
1440
|
+
...u,
|
|
1441
|
+
classes: {
|
|
1442
|
+
...f,
|
|
1443
|
+
root: f.switchBase
|
|
1444
|
+
},
|
|
1445
|
+
slots: {
|
|
1446
|
+
...c.switchBase && { root: c.switchBase },
|
|
1447
|
+
...c.input && { input: c.input }
|
|
1448
|
+
},
|
|
1449
|
+
slotProps: {
|
|
1450
|
+
...l.switchBase && { root: typeof l.switchBase == "function" ? l.switchBase(d) : l.switchBase },
|
|
1451
|
+
input: _(typeof p == "function" ? p(d) : p, { role: "switch" })
|
|
1452
|
+
}
|
|
1453
|
+
}), /*#__PURE__*/ G(x, { ...S })]
|
|
1454
|
+
});
|
|
1455
|
+
}), Q = /* @__PURE__ */ t(me(), 1), xn = E(Mt)(() => ({ "& .MuiFormControlLabel-label": {
|
|
1456
|
+
left: "-5px",
|
|
1457
|
+
position: "relative"
|
|
1458
|
+
} })), Sn = E(tn)(() => ({ color: `${C.tertiary()} !important` })), Cn = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ G(xn, {
|
|
1459
|
+
value: t,
|
|
1460
|
+
control: /* @__PURE__ */ G(Sn, {
|
|
1461
|
+
checked: n,
|
|
1462
|
+
onChange: r
|
|
1463
|
+
}),
|
|
1464
|
+
label: e
|
|
1465
|
+
});
|
|
1466
|
+
Cn.propTypes = {
|
|
1467
|
+
label: Q.default.string,
|
|
1468
|
+
value: Q.default.string,
|
|
1469
|
+
checked: Q.default.bool,
|
|
1470
|
+
onChange: Q.default.func
|
|
1471
|
+
};
|
|
1472
|
+
//#endregion
|
|
1473
|
+
//#region ../../lib-react/config-ui/dist/tabs/index.js
|
|
1474
|
+
var wn = E(we)(() => ({})), Tn = class extends U.Component {
|
|
1475
|
+
static propTypes = {
|
|
1476
|
+
className: Q.default.string,
|
|
1477
|
+
contentClassName: Q.default.string,
|
|
1478
|
+
contentStyle: Q.default.object,
|
|
1479
|
+
children: Q.default.oneOfType([Q.default.arrayOf(Q.default.node), Q.default.node]).isRequired
|
|
1480
|
+
};
|
|
1481
|
+
constructor(e) {
|
|
1482
|
+
super(e), this.state = { value: 0 };
|
|
1483
|
+
}
|
|
1484
|
+
handleChange = (e, t) => {
|
|
1485
|
+
this.setState({ value: t });
|
|
1486
|
+
};
|
|
1487
|
+
render() {
|
|
1488
|
+
let { value: e } = this.state, { children: t, className: n, contentClassName: r, contentStyle: i = {} } = this.props;
|
|
1489
|
+
return /* @__PURE__ */ K("div", {
|
|
1490
|
+
className: n,
|
|
1491
|
+
children: [/* @__PURE__ */ G(he, {
|
|
1492
|
+
indicatorColor: "primary",
|
|
1493
|
+
value: e,
|
|
1494
|
+
onChange: this.handleChange,
|
|
1495
|
+
children: U.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ G(wn, { label: e.props.title }, t) : null)
|
|
1496
|
+
}), /* @__PURE__ */ G("div", {
|
|
1497
|
+
className: r,
|
|
1498
|
+
style: i,
|
|
1499
|
+
children: t[e]
|
|
1500
|
+
})]
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
}, En = E(Mt)(({ theme: e, mini: t }) => ({
|
|
1504
|
+
margin: 0,
|
|
1505
|
+
marginLeft: 0,
|
|
1506
|
+
padding: 0,
|
|
1507
|
+
"& .MuiFormControlLabel-label": {
|
|
1508
|
+
fontSize: e.typography.fontSize - 1,
|
|
1509
|
+
transform: "translate(-4%, 2%)",
|
|
1510
|
+
color: "rgba(0,0,0,1.0)",
|
|
1511
|
+
...t && {
|
|
1512
|
+
marginLeft: e.spacing(1),
|
|
1513
|
+
color: te[700],
|
|
1514
|
+
fontSize: e.typography.fontSize - 3
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
})), Dn = E(Et)(({ theme: e, mini: t, error: n }) => ({
|
|
1518
|
+
color: `${C.tertiary()} !important`,
|
|
1519
|
+
...t && {
|
|
1520
|
+
margin: 0,
|
|
1521
|
+
padding: 0,
|
|
1522
|
+
width: e.spacing(3),
|
|
1523
|
+
height: e.spacing(3)
|
|
1524
|
+
},
|
|
1525
|
+
...n && { color: `${e.palette.error.main} !important` }
|
|
1526
|
+
})), On = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ G(En, {
|
|
1527
|
+
mini: e,
|
|
1528
|
+
control: /* @__PURE__ */ G(Dn, {
|
|
1529
|
+
checked: t,
|
|
1530
|
+
onChange: n,
|
|
1531
|
+
value: r,
|
|
1532
|
+
mini: e,
|
|
1533
|
+
error: a
|
|
1534
|
+
}),
|
|
1535
|
+
label: i
|
|
1536
|
+
});
|
|
1537
|
+
On.propTypes = {
|
|
1538
|
+
mini: Q.default.bool,
|
|
1539
|
+
checked: Q.default.bool.isRequired,
|
|
1540
|
+
onChange: Q.default.func.isRequired,
|
|
1541
|
+
value: Q.default.string,
|
|
1542
|
+
label: Q.default.string.isRequired,
|
|
1543
|
+
error: Q.default.bool
|
|
1544
|
+
}, On.defaultProps = {
|
|
1545
|
+
value: "",
|
|
1546
|
+
mini: !1,
|
|
1547
|
+
error: !1
|
|
1548
|
+
};
|
|
1549
|
+
//#endregion
|
|
1550
|
+
//#region ../../lib-react/config-ui/dist/number-text-field.js
|
|
1551
|
+
var kn = (0, at.default)("@pie-lib:config-ui:number-text-field"), An = E(oe)(({ theme: e }) => ({
|
|
1552
|
+
marginRight: e.spacing(1),
|
|
1553
|
+
"& .MuiInputLabel-root": {
|
|
1554
|
+
width: "auto",
|
|
1555
|
+
minWidth: "max-content",
|
|
1556
|
+
maxWidth: "none",
|
|
1557
|
+
whiteSpace: "nowrap",
|
|
1558
|
+
overflow: "visible",
|
|
1559
|
+
transform: "translate(0, 8px) scale(0.75)",
|
|
1560
|
+
transformOrigin: "top left",
|
|
1561
|
+
position: "relative"
|
|
1562
|
+
},
|
|
1563
|
+
"& .MuiInputBase-root, & .MuiInput-root, & .MuiFilledInput-root, & .MuiOutlinedInput-root": {
|
|
1564
|
+
height: "auto",
|
|
1565
|
+
minHeight: "auto",
|
|
1566
|
+
marginTop: 0
|
|
1567
|
+
},
|
|
1568
|
+
"& .MuiInputBase-input": {
|
|
1569
|
+
height: "auto",
|
|
1570
|
+
minHeight: "auto",
|
|
1571
|
+
padding: "6px 0 7px"
|
|
1572
|
+
}
|
|
1573
|
+
})), jn = (e, t) => {
|
|
1574
|
+
if (!Y(e) && !Y(t)) return 0;
|
|
1575
|
+
if (!Y(e) && Y(t)) return t;
|
|
1576
|
+
if (Y(e)) return e;
|
|
1577
|
+
}, Mn = class extends U.Component {
|
|
1578
|
+
static propTypes = {
|
|
1579
|
+
disabled: Q.default.bool,
|
|
1580
|
+
className: Q.default.string,
|
|
1581
|
+
inputClassName: Q.default.string,
|
|
1582
|
+
onChange: Q.default.func.isRequired,
|
|
1583
|
+
value: Q.default.number,
|
|
1584
|
+
min: Q.default.number,
|
|
1585
|
+
max: Q.default.number,
|
|
1586
|
+
label: Q.default.string,
|
|
1587
|
+
suffix: Q.default.string,
|
|
1588
|
+
showErrorWhenOutsideRange: Q.default.bool,
|
|
1589
|
+
disableUnderline: Q.default.bool,
|
|
1590
|
+
variant: Q.default.string
|
|
1591
|
+
};
|
|
1592
|
+
static defaultProps = { showErrorWhenOutsideRange: !1 };
|
|
1593
|
+
constructor(e) {
|
|
1594
|
+
super(e);
|
|
1595
|
+
let t = this.clamp(e.value);
|
|
1596
|
+
this.state = { value: t }, t !== e.value && this.props.onChange({}, t), this.onChange = this.onChange.bind(this);
|
|
1597
|
+
}
|
|
1598
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
1599
|
+
let t = this.clamp(e.value, e.min, e.max);
|
|
1600
|
+
this.setState({ value: t });
|
|
1601
|
+
}
|
|
1602
|
+
clamp(e, t = this.props.min, n = this.props.max) {
|
|
1603
|
+
return Y(e) ? (Y(n) && (e = Math.min(e, n)), Y(t) && (e = Math.max(e, t)), e) : jn(t, n);
|
|
1604
|
+
}
|
|
1605
|
+
onBlur = (e) => {
|
|
1606
|
+
let t = e.target.value, n = parseFloat(t);
|
|
1607
|
+
kn("rawNumber: ", n);
|
|
1608
|
+
let r = this.clamp(n);
|
|
1609
|
+
kn("number: ", r), r !== this.state.value && (kn("trigger update..."), this.setState({ value: r.toString() }, () => {
|
|
1610
|
+
this.props.onChange(e, r);
|
|
1611
|
+
}));
|
|
1612
|
+
};
|
|
1613
|
+
onChange(e) {
|
|
1614
|
+
let t = e.target.value;
|
|
1615
|
+
this.setState({ value: t });
|
|
1616
|
+
}
|
|
1617
|
+
errorMessage = () => {
|
|
1618
|
+
let { min: e, max: t } = this.props;
|
|
1619
|
+
if (e && t) return `The value must be between ${e} and ${t}`;
|
|
1620
|
+
if (e) return `The value must be greater than ${e}`;
|
|
1621
|
+
if (t) return `The value must be less than ${t}`;
|
|
1622
|
+
};
|
|
1623
|
+
getError = () => {
|
|
1624
|
+
let { value: e } = this.state, t = parseFloat(e);
|
|
1625
|
+
if (this.clamp(t) !== t) return this.errorMessage();
|
|
1626
|
+
};
|
|
1627
|
+
render() {
|
|
1628
|
+
let { className: e, label: t, disabled: n, suffix: r, min: i, max: a, inputClassName: o, disableUnderline: s, showErrorWhenOutsideRange: c, variant: l } = this.props, u = c && this.getError();
|
|
1629
|
+
return /* @__PURE__ */ G(An, {
|
|
1630
|
+
variant: s ? "filled" : l || "standard",
|
|
1631
|
+
inputRef: (e) => {
|
|
1632
|
+
this.inputRef = e;
|
|
1633
|
+
},
|
|
1634
|
+
disabled: n,
|
|
1635
|
+
label: t,
|
|
1636
|
+
InputLabelProps: { shrink: !0 },
|
|
1637
|
+
value: this.state.value,
|
|
1638
|
+
error: !!u,
|
|
1639
|
+
helperText: u,
|
|
1640
|
+
onChange: this.onChange,
|
|
1641
|
+
onBlur: this.onBlur,
|
|
1642
|
+
onKeyDown: (e) => {
|
|
1643
|
+
e.key === "Enter" && this.inputRef && this.inputRef.blur();
|
|
1644
|
+
},
|
|
1645
|
+
type: "number",
|
|
1646
|
+
className: e,
|
|
1647
|
+
slotProps: { input: {
|
|
1648
|
+
endAdornment: r && /* @__PURE__ */ G(zt, {
|
|
1649
|
+
position: "end",
|
|
1650
|
+
children: r
|
|
1651
|
+
}),
|
|
1652
|
+
className: o,
|
|
1653
|
+
inputProps: {
|
|
1654
|
+
min: i,
|
|
1655
|
+
max: a
|
|
1656
|
+
}
|
|
1657
|
+
} },
|
|
1658
|
+
margin: "normal"
|
|
1659
|
+
});
|
|
1660
|
+
}
|
|
1661
|
+
};
|
|
1662
|
+
//#endregion
|
|
1663
|
+
//#region ../../lib-react/config-ui/dist/two-choice.js
|
|
1664
|
+
function Nn(e) {
|
|
1665
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
1666
|
+
}
|
|
1667
|
+
function Pn(e, t) {
|
|
1668
|
+
return !e || Nn(e) ? e : Nn(e.default) ? e.default : t && Nn(e[t]) ? e[t] : t && Nn(e[t]?.default) ? e[t].default : e;
|
|
1669
|
+
}
|
|
1670
|
+
var Fn = Pn(Ae, "InputContainer") || Pn(Rn.InputContainer, "InputContainer"), In = ye, Ln = In.default, Rn = Ln && typeof Ln == "object" ? Ln : In, zn = E("div")(({ theme: e, direction: t }) => ({
|
|
1671
|
+
display: "flex",
|
|
1672
|
+
flexWrap: "wrap",
|
|
1673
|
+
paddingLeft: 0,
|
|
1674
|
+
marginTop: e.spacing(1),
|
|
1675
|
+
...t === "vertical" && { flexDirection: "column" }
|
|
1676
|
+
})), Bn = class extends U.Component {
|
|
1677
|
+
static propTypes = {
|
|
1678
|
+
header: Q.default.string.isRequired,
|
|
1679
|
+
className: Q.default.string,
|
|
1680
|
+
customLabel: Q.default.func,
|
|
1681
|
+
opts: Q.default.array.isRequired,
|
|
1682
|
+
value: Q.default.string,
|
|
1683
|
+
onChange: Q.default.func.isRequired,
|
|
1684
|
+
direction: Q.default.oneOf(["horizontal", "vertical"])
|
|
1685
|
+
};
|
|
1686
|
+
handleChange = (e) => {
|
|
1687
|
+
this.props.onChange(e.currentTarget.value);
|
|
1688
|
+
};
|
|
1689
|
+
render() {
|
|
1690
|
+
let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
|
|
1691
|
+
label: e,
|
|
1692
|
+
value: e
|
|
1693
|
+
} : e), s = n || Cn;
|
|
1694
|
+
return /* @__PURE__ */ G(Fn, {
|
|
1695
|
+
label: e,
|
|
1696
|
+
className: t,
|
|
1697
|
+
children: /* @__PURE__ */ G(zn, {
|
|
1698
|
+
direction: a,
|
|
1699
|
+
children: o.map((e, t) => /* @__PURE__ */ G(s, {
|
|
1700
|
+
value: e.value,
|
|
1701
|
+
checked: e.value === i,
|
|
1702
|
+
onChange: this.handleChange,
|
|
1703
|
+
label: e.label
|
|
1704
|
+
}, t))
|
|
1705
|
+
})
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
}, Vn = Q.default.shape({
|
|
1709
|
+
label: Q.default.string,
|
|
1710
|
+
value: Q.default.string
|
|
1711
|
+
});
|
|
1712
|
+
(class extends U.Component {
|
|
1713
|
+
static propTypes = {
|
|
1714
|
+
header: Q.default.string.isRequired,
|
|
1715
|
+
value: Q.default.string.isRequired,
|
|
1716
|
+
onChange: Q.default.func.isRequired,
|
|
1717
|
+
one: Q.default.oneOfType([Vn, Q.default.string]),
|
|
1718
|
+
two: Q.default.oneOfType([Vn, Q.default.string]),
|
|
1719
|
+
className: Q.default.string,
|
|
1720
|
+
customLabel: Q.default.func
|
|
1721
|
+
};
|
|
1722
|
+
render() {
|
|
1723
|
+
let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
|
|
1724
|
+
return /* @__PURE__ */ G(Bn, {
|
|
1725
|
+
customLabel: i,
|
|
1726
|
+
header: n,
|
|
1727
|
+
className: r,
|
|
1728
|
+
opts: [e, t],
|
|
1729
|
+
value: a,
|
|
1730
|
+
onChange: o
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
1734
|
+
//#endregion
|
|
1735
|
+
//#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
|
|
1736
|
+
var Hn = Object.defineProperty, Un = (e, t) => {
|
|
1737
|
+
let n = {};
|
|
1738
|
+
for (var r in e) Hn(n, r, {
|
|
1739
|
+
get: e[r],
|
|
1740
|
+
enumerable: !0
|
|
1741
|
+
});
|
|
1742
|
+
return t || Hn(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
1743
|
+
}, Wn = E("div")(() => ({
|
|
1744
|
+
display: "flex",
|
|
1745
|
+
flexDirection: "column",
|
|
1746
|
+
position: "relative"
|
|
1747
|
+
})), Gn = E("div")(() => ({
|
|
1748
|
+
display: "flex",
|
|
1749
|
+
justifyContent: "space-between"
|
|
1750
|
+
})), Kn = E("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), qn = E("div")(() => ({ flex: "1" })), Jn = E("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), Yn = class extends U.Component {
|
|
1751
|
+
static propTypes = {
|
|
1752
|
+
mode: Q.default.oneOf(["tabbed", "inline"]),
|
|
1753
|
+
secondary: Q.default.oneOfType([Q.default.arrayOf(Q.default.node), Q.default.node]),
|
|
1754
|
+
children: Q.default.oneOfType([Q.default.arrayOf(Q.default.node), Q.default.node]),
|
|
1755
|
+
dimensions: Q.default.object
|
|
1756
|
+
};
|
|
1757
|
+
getConfiguration = () => {
|
|
1758
|
+
let { secondary: e } = this.props;
|
|
1759
|
+
return e?.props?.configuration || e?.props?.children?.props?.configuration || void 0;
|
|
1760
|
+
};
|
|
1761
|
+
render() {
|
|
1762
|
+
let { mode: e, secondary: t, children: n, dimensions: r } = this.props, { minHeight: i, minWidth: a, maxHeight: o, maxWidth: s } = r || {}, c = this.getConfiguration(), l = Object.entries(c || {}).some(([, e]) => !!e?.settings);
|
|
1763
|
+
if (!l) try {
|
|
1764
|
+
l = JSON.stringify(c)?.match(/settings":true/)?.length;
|
|
1765
|
+
} catch (e) {
|
|
1766
|
+
console.log(e.toString());
|
|
1767
|
+
}
|
|
1768
|
+
return /* @__PURE__ */ K(Wn, {
|
|
1769
|
+
style: {
|
|
1770
|
+
minHeight: i,
|
|
1771
|
+
minWidth: a,
|
|
1772
|
+
maxHeight: o,
|
|
1773
|
+
maxWidth: s
|
|
1774
|
+
},
|
|
1775
|
+
children: [
|
|
1776
|
+
e === "inline" && /* @__PURE__ */ K(Gn, { children: [/* @__PURE__ */ G(qn, {
|
|
1777
|
+
className: "design-container",
|
|
1778
|
+
children: n
|
|
1779
|
+
}), l && /* @__PURE__ */ G(Jn, {
|
|
1780
|
+
className: "settings-container",
|
|
1781
|
+
children: t
|
|
1782
|
+
})] }),
|
|
1783
|
+
e === "tabbed" && l && /* @__PURE__ */ K(Tn, {
|
|
1784
|
+
onChange: this.onTabsChange,
|
|
1785
|
+
contentClassName: "content-container",
|
|
1786
|
+
indicatorColor: "primary",
|
|
1787
|
+
children: [/* @__PURE__ */ G(Kn, {
|
|
1788
|
+
title: "Design",
|
|
1789
|
+
className: "design-container",
|
|
1790
|
+
children: n
|
|
1791
|
+
}), /* @__PURE__ */ G(Kn, {
|
|
1792
|
+
title: "Settings",
|
|
1793
|
+
className: "settings-container",
|
|
1794
|
+
children: t
|
|
1795
|
+
})]
|
|
1796
|
+
}),
|
|
1797
|
+
e === "tabbed" && !l && /* @__PURE__ */ G(Kn, {
|
|
1798
|
+
className: "design-container",
|
|
1799
|
+
children: n
|
|
1800
|
+
})
|
|
1801
|
+
]
|
|
1802
|
+
});
|
|
1803
|
+
}
|
|
1804
|
+
};
|
|
1805
|
+
//#endregion
|
|
1806
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1807
|
+
function Xn() {
|
|
1808
|
+
return Xn = Object.assign ? Object.assign.bind() : function(e) {
|
|
1809
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1810
|
+
var n = arguments[t];
|
|
1811
|
+
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1812
|
+
}
|
|
1813
|
+
return e;
|
|
1814
|
+
}, Xn.apply(null, arguments);
|
|
1815
|
+
}
|
|
1816
|
+
//#endregion
|
|
1817
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
1818
|
+
function Zn(e, t) {
|
|
1819
|
+
if (e == null) return {};
|
|
1820
|
+
var n = {};
|
|
1821
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
1822
|
+
if (t.indexOf(r) !== -1) continue;
|
|
1823
|
+
n[r] = e[r];
|
|
1824
|
+
}
|
|
1825
|
+
return n;
|
|
1826
|
+
}
|
|
1827
|
+
//#endregion
|
|
1828
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
1829
|
+
function Qn(e, t) {
|
|
1830
|
+
return Qn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1831
|
+
return e.__proto__ = t, e;
|
|
1832
|
+
}, Qn(e, t);
|
|
1833
|
+
}
|
|
1834
|
+
//#endregion
|
|
1835
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
1836
|
+
function $n(e, t) {
|
|
1837
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Qn(e, t);
|
|
1838
|
+
}
|
|
1839
|
+
//#endregion
|
|
1840
|
+
//#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
1841
|
+
var er = (function() {
|
|
1842
|
+
if (typeof Map < "u") return Map;
|
|
1843
|
+
function e(e, t) {
|
|
1844
|
+
var n = -1;
|
|
1845
|
+
return e.some(function(e, r) {
|
|
1846
|
+
return e[0] === t ? (n = r, !0) : !1;
|
|
1847
|
+
}), n;
|
|
1848
|
+
}
|
|
1849
|
+
return function() {
|
|
1850
|
+
function t() {
|
|
1851
|
+
this.__entries__ = [];
|
|
1852
|
+
}
|
|
1853
|
+
return Object.defineProperty(t.prototype, "size", {
|
|
1854
|
+
get: function() {
|
|
1855
|
+
return this.__entries__.length;
|
|
1856
|
+
},
|
|
1857
|
+
enumerable: !0,
|
|
1858
|
+
configurable: !0
|
|
1859
|
+
}), t.prototype.get = function(t) {
|
|
1860
|
+
var n = e(this.__entries__, t), r = this.__entries__[n];
|
|
1861
|
+
return r && r[1];
|
|
1862
|
+
}, t.prototype.set = function(t, n) {
|
|
1863
|
+
var r = e(this.__entries__, t);
|
|
1864
|
+
~r ? this.__entries__[r][1] = n : this.__entries__.push([t, n]);
|
|
1865
|
+
}, t.prototype.delete = function(t) {
|
|
1866
|
+
var n = this.__entries__, r = e(n, t);
|
|
1867
|
+
~r && n.splice(r, 1);
|
|
1868
|
+
}, t.prototype.has = function(t) {
|
|
1869
|
+
return !!~e(this.__entries__, t);
|
|
1870
|
+
}, t.prototype.clear = function() {
|
|
1871
|
+
this.__entries__.splice(0);
|
|
1872
|
+
}, t.prototype.forEach = function(e, t) {
|
|
1873
|
+
t === void 0 && (t = null);
|
|
1874
|
+
for (var n = 0, r = this.__entries__; n < r.length; n++) {
|
|
1875
|
+
var i = r[n];
|
|
1876
|
+
e.call(t, i[1], i[0]);
|
|
1877
|
+
}
|
|
1878
|
+
}, t;
|
|
1879
|
+
}();
|
|
1880
|
+
})(), tr = typeof window < "u" && typeof document < "u" && window.document === document, nr = (function() {
|
|
1881
|
+
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1882
|
+
})(), rr = (function() {
|
|
1883
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(nr) : function(e) {
|
|
1884
|
+
return setTimeout(function() {
|
|
1885
|
+
return e(Date.now());
|
|
1886
|
+
}, 1e3 / 60);
|
|
1887
|
+
};
|
|
1888
|
+
})(), ir = 2;
|
|
1889
|
+
function ar(e, t) {
|
|
1890
|
+
var n = !1, r = !1, i = 0;
|
|
1891
|
+
function a() {
|
|
1892
|
+
n && (n = !1, e()), r && s();
|
|
1893
|
+
}
|
|
1894
|
+
function o() {
|
|
1895
|
+
rr(a);
|
|
1896
|
+
}
|
|
1897
|
+
function s() {
|
|
1898
|
+
var e = Date.now();
|
|
1899
|
+
if (n) {
|
|
1900
|
+
if (e - i < ir) return;
|
|
1901
|
+
r = !0;
|
|
1902
|
+
} else n = !0, r = !1, setTimeout(o, t);
|
|
1903
|
+
i = e;
|
|
1904
|
+
}
|
|
1905
|
+
return s;
|
|
1906
|
+
}
|
|
1907
|
+
var or = 20, sr = [
|
|
1908
|
+
"top",
|
|
1909
|
+
"right",
|
|
1910
|
+
"bottom",
|
|
1911
|
+
"left",
|
|
1912
|
+
"width",
|
|
1913
|
+
"height",
|
|
1914
|
+
"size",
|
|
1915
|
+
"weight"
|
|
1916
|
+
], cr = typeof MutationObserver < "u", lr = function() {
|
|
1917
|
+
function e() {
|
|
1918
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = ar(this.refresh.bind(this), or);
|
|
1919
|
+
}
|
|
1920
|
+
return e.prototype.addObserver = function(e) {
|
|
1921
|
+
~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
|
|
1922
|
+
}, e.prototype.removeObserver = function(e) {
|
|
1923
|
+
var t = this.observers_, n = t.indexOf(e);
|
|
1924
|
+
~n && t.splice(n, 1), !t.length && this.connected_ && this.disconnect_();
|
|
1925
|
+
}, e.prototype.refresh = function() {
|
|
1926
|
+
this.updateObservers_() && this.refresh();
|
|
1927
|
+
}, e.prototype.updateObservers_ = function() {
|
|
1928
|
+
var e = this.observers_.filter(function(e) {
|
|
1929
|
+
return e.gatherActive(), e.hasActive();
|
|
1930
|
+
});
|
|
1931
|
+
return e.forEach(function(e) {
|
|
1932
|
+
return e.broadcastActive();
|
|
1933
|
+
}), e.length > 0;
|
|
1934
|
+
}, e.prototype.connect_ = function() {
|
|
1935
|
+
!tr || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), cr ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1936
|
+
attributes: !0,
|
|
1937
|
+
childList: !0,
|
|
1938
|
+
characterData: !0,
|
|
1939
|
+
subtree: !0
|
|
1940
|
+
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1941
|
+
}, e.prototype.disconnect_ = function() {
|
|
1942
|
+
!tr || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
1943
|
+
}, e.prototype.onTransitionEnd_ = function(e) {
|
|
1944
|
+
var t = e.propertyName, n = t === void 0 ? "" : t;
|
|
1945
|
+
sr.some(function(e) {
|
|
1946
|
+
return !!~n.indexOf(e);
|
|
1947
|
+
}) && this.refresh();
|
|
1948
|
+
}, e.getInstance = function() {
|
|
1949
|
+
return this.instance_ ||= new e(), this.instance_;
|
|
1950
|
+
}, e.instance_ = null, e;
|
|
1951
|
+
}(), ur = (function(e, t) {
|
|
1952
|
+
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
1953
|
+
var i = r[n];
|
|
1954
|
+
Object.defineProperty(e, i, {
|
|
1955
|
+
value: t[i],
|
|
1956
|
+
enumerable: !1,
|
|
1957
|
+
writable: !1,
|
|
1958
|
+
configurable: !0
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
return e;
|
|
1962
|
+
}), dr = (function(e) {
|
|
1963
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || nr;
|
|
1964
|
+
}), fr = Sr(0, 0, 0, 0);
|
|
1965
|
+
function pr(e) {
|
|
1966
|
+
return parseFloat(e) || 0;
|
|
1967
|
+
}
|
|
1968
|
+
function mr(e) {
|
|
1969
|
+
return [...arguments].slice(1).reduce(function(t, n) {
|
|
1970
|
+
var r = e["border-" + n + "-width"];
|
|
1971
|
+
return t + pr(r);
|
|
1972
|
+
}, 0);
|
|
1973
|
+
}
|
|
1974
|
+
function hr(e) {
|
|
1975
|
+
for (var t = [
|
|
1976
|
+
"top",
|
|
1977
|
+
"right",
|
|
1978
|
+
"bottom",
|
|
1979
|
+
"left"
|
|
1980
|
+
], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
1981
|
+
var a = i[r], o = e["padding-" + a];
|
|
1982
|
+
n[a] = pr(o);
|
|
1983
|
+
}
|
|
1984
|
+
return n;
|
|
1985
|
+
}
|
|
1986
|
+
function gr(e) {
|
|
1987
|
+
var t = e.getBBox();
|
|
1988
|
+
return Sr(0, 0, t.width, t.height);
|
|
1989
|
+
}
|
|
1990
|
+
function _r(e) {
|
|
1991
|
+
var t = e.clientWidth, n = e.clientHeight;
|
|
1992
|
+
if (!t && !n) return fr;
|
|
1993
|
+
var r = dr(e).getComputedStyle(e), i = hr(r), a = i.left + i.right, o = i.top + i.bottom, s = pr(r.width), c = pr(r.height);
|
|
1994
|
+
if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= mr(r, "left", "right") + a), Math.round(c + o) !== n && (c -= mr(r, "top", "bottom") + o)), !yr(e)) {
|
|
1995
|
+
var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
|
|
1996
|
+
Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
|
|
1997
|
+
}
|
|
1998
|
+
return Sr(i.left, i.top, s, c);
|
|
1999
|
+
}
|
|
2000
|
+
var vr = (function() {
|
|
2001
|
+
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
2002
|
+
return e instanceof dr(e).SVGGraphicsElement;
|
|
2003
|
+
} : function(e) {
|
|
2004
|
+
return e instanceof dr(e).SVGElement && typeof e.getBBox == "function";
|
|
2005
|
+
};
|
|
2006
|
+
})();
|
|
2007
|
+
function yr(e) {
|
|
2008
|
+
return e === dr(e).document.documentElement;
|
|
2009
|
+
}
|
|
2010
|
+
function br(e) {
|
|
2011
|
+
return tr ? vr(e) ? gr(e) : _r(e) : fr;
|
|
2012
|
+
}
|
|
2013
|
+
function xr(e) {
|
|
2014
|
+
var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
2015
|
+
return ur(a, {
|
|
2016
|
+
x: t,
|
|
2017
|
+
y: n,
|
|
2018
|
+
width: r,
|
|
2019
|
+
height: i,
|
|
2020
|
+
top: n,
|
|
2021
|
+
right: t + r,
|
|
2022
|
+
bottom: i + n,
|
|
2023
|
+
left: t
|
|
2024
|
+
}), a;
|
|
2025
|
+
}
|
|
2026
|
+
function Sr(e, t, n, r) {
|
|
2027
|
+
return {
|
|
2028
|
+
x: e,
|
|
2029
|
+
y: t,
|
|
2030
|
+
width: n,
|
|
2031
|
+
height: r
|
|
2032
|
+
};
|
|
2033
|
+
}
|
|
2034
|
+
var Cr = function() {
|
|
2035
|
+
function e(e) {
|
|
2036
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Sr(0, 0, 0, 0), this.target = e;
|
|
2037
|
+
}
|
|
2038
|
+
return e.prototype.isActive = function() {
|
|
2039
|
+
var e = br(this.target);
|
|
2040
|
+
return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
|
|
2041
|
+
}, e.prototype.broadcastRect = function() {
|
|
2042
|
+
var e = this.contentRect_;
|
|
2043
|
+
return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
|
|
2044
|
+
}, e;
|
|
2045
|
+
}(), wr = function() {
|
|
2046
|
+
function e(e, t) {
|
|
2047
|
+
var n = xr(t);
|
|
2048
|
+
ur(this, {
|
|
2049
|
+
target: e,
|
|
2050
|
+
contentRect: n
|
|
2051
|
+
});
|
|
2052
|
+
}
|
|
2053
|
+
return e;
|
|
2054
|
+
}(), Tr = function() {
|
|
2055
|
+
function e(e, t, n) {
|
|
2056
|
+
if (this.activeObservations_ = [], this.observations_ = new er(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
|
|
2057
|
+
this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
|
|
2058
|
+
}
|
|
2059
|
+
return e.prototype.observe = function(e) {
|
|
2060
|
+
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
2061
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
2062
|
+
if (!(e instanceof dr(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
2063
|
+
var t = this.observations_;
|
|
2064
|
+
t.has(e) || (t.set(e, new Cr(e)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
2065
|
+
}
|
|
2066
|
+
}, e.prototype.unobserve = function(e) {
|
|
2067
|
+
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
2068
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
2069
|
+
if (!(e instanceof dr(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
|
|
2070
|
+
var t = this.observations_;
|
|
2071
|
+
t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
|
|
2072
|
+
}
|
|
2073
|
+
}, e.prototype.disconnect = function() {
|
|
2074
|
+
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
2075
|
+
}, e.prototype.gatherActive = function() {
|
|
2076
|
+
var e = this;
|
|
2077
|
+
this.clearActive(), this.observations_.forEach(function(t) {
|
|
2078
|
+
t.isActive() && e.activeObservations_.push(t);
|
|
2079
|
+
});
|
|
2080
|
+
}, e.prototype.broadcastActive = function() {
|
|
2081
|
+
if (this.hasActive()) {
|
|
2082
|
+
var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
|
|
2083
|
+
return new wr(e.target, e.broadcastRect());
|
|
2084
|
+
});
|
|
2085
|
+
this.callback_.call(e, t, e), this.clearActive();
|
|
2086
|
+
}
|
|
2087
|
+
}, e.prototype.clearActive = function() {
|
|
2088
|
+
this.activeObservations_.splice(0);
|
|
2089
|
+
}, e.prototype.hasActive = function() {
|
|
2090
|
+
return this.activeObservations_.length > 0;
|
|
2091
|
+
}, e;
|
|
2092
|
+
}(), Er = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new er(), Dr = function() {
|
|
2093
|
+
function e(t) {
|
|
2094
|
+
if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
|
|
2095
|
+
if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
|
|
2096
|
+
var n = new Tr(t, lr.getInstance(), this);
|
|
2097
|
+
Er.set(this, n);
|
|
2098
|
+
}
|
|
2099
|
+
return e;
|
|
2100
|
+
}();
|
|
2101
|
+
[
|
|
2102
|
+
"observe",
|
|
2103
|
+
"unobserve",
|
|
2104
|
+
"disconnect"
|
|
2105
|
+
].forEach(function(e) {
|
|
2106
|
+
Dr.prototype[e] = function() {
|
|
2107
|
+
var t;
|
|
2108
|
+
return (t = Er.get(this))[e].apply(t, arguments);
|
|
2109
|
+
};
|
|
2110
|
+
});
|
|
2111
|
+
var Or = (function() {
|
|
2112
|
+
return nr.ResizeObserver === void 0 ? Dr : nr.ResizeObserver;
|
|
2113
|
+
})(), kr = [
|
|
2114
|
+
"client",
|
|
2115
|
+
"offset",
|
|
2116
|
+
"scroll",
|
|
2117
|
+
"bounds",
|
|
2118
|
+
"margin"
|
|
2119
|
+
];
|
|
2120
|
+
function Ar(e) {
|
|
2121
|
+
var t = [];
|
|
2122
|
+
return kr.forEach(function(n) {
|
|
2123
|
+
e[n] && t.push(n);
|
|
2124
|
+
}), t;
|
|
2125
|
+
}
|
|
2126
|
+
function jr(e, t) {
|
|
2127
|
+
var n = {};
|
|
2128
|
+
if (t.indexOf("client") > -1 && (n.client = {
|
|
2129
|
+
top: e.clientTop,
|
|
2130
|
+
left: e.clientLeft,
|
|
2131
|
+
width: e.clientWidth,
|
|
2132
|
+
height: e.clientHeight
|
|
2133
|
+
}), t.indexOf("offset") > -1 && (n.offset = {
|
|
2134
|
+
top: e.offsetTop,
|
|
2135
|
+
left: e.offsetLeft,
|
|
2136
|
+
width: e.offsetWidth,
|
|
2137
|
+
height: e.offsetHeight
|
|
2138
|
+
}), t.indexOf("scroll") > -1 && (n.scroll = {
|
|
2139
|
+
top: e.scrollTop,
|
|
2140
|
+
left: e.scrollLeft,
|
|
2141
|
+
width: e.scrollWidth,
|
|
2142
|
+
height: e.scrollHeight
|
|
2143
|
+
}), t.indexOf("bounds") > -1) {
|
|
2144
|
+
var r = e.getBoundingClientRect();
|
|
2145
|
+
n.bounds = {
|
|
2146
|
+
top: r.top,
|
|
2147
|
+
right: r.right,
|
|
2148
|
+
bottom: r.bottom,
|
|
2149
|
+
left: r.left,
|
|
2150
|
+
width: r.width,
|
|
2151
|
+
height: r.height
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
if (t.indexOf("margin") > -1) {
|
|
2155
|
+
var i = getComputedStyle(e);
|
|
2156
|
+
n.margin = {
|
|
2157
|
+
top: i ? parseInt(i.marginTop) : 0,
|
|
2158
|
+
right: i ? parseInt(i.marginRight) : 0,
|
|
2159
|
+
bottom: i ? parseInt(i.marginBottom) : 0,
|
|
2160
|
+
left: i ? parseInt(i.marginLeft) : 0
|
|
2161
|
+
};
|
|
2162
|
+
}
|
|
2163
|
+
return n;
|
|
2164
|
+
}
|
|
2165
|
+
function Mr(e) {
|
|
2166
|
+
return e && e.ownerDocument && e.ownerDocument.defaultView || window;
|
|
2167
|
+
}
|
|
2168
|
+
function Nr(e) {
|
|
2169
|
+
return function(t) {
|
|
2170
|
+
var n, r;
|
|
2171
|
+
return r = n = /*#__PURE__*/ function(n) {
|
|
2172
|
+
$n(r, n);
|
|
2173
|
+
function r() {
|
|
2174
|
+
var t, r = [...arguments];
|
|
2175
|
+
return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
|
|
2176
|
+
entry: {},
|
|
2177
|
+
client: {},
|
|
2178
|
+
offset: {},
|
|
2179
|
+
scroll: {},
|
|
2180
|
+
bounds: {},
|
|
2181
|
+
margin: {}
|
|
2182
|
+
} }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
|
|
2183
|
+
var r = jr(t._node, e || Ar(t.props));
|
|
2184
|
+
n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
|
|
2185
|
+
t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
|
|
2186
|
+
});
|
|
2187
|
+
}, t._handleRef = function(e) {
|
|
2188
|
+
t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = Mr(t._node);
|
|
2189
|
+
var n = t.props.innerRef;
|
|
2190
|
+
n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
|
|
2191
|
+
}, t;
|
|
2192
|
+
}
|
|
2193
|
+
var i = r.prototype;
|
|
2194
|
+
return i.componentDidMount = function() {
|
|
2195
|
+
this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new Or(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(jr(this._node, e || Ar(this.props))));
|
|
2196
|
+
}, i.componentWillUnmount = function() {
|
|
2197
|
+
this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
2198
|
+
}, i.render = function() {
|
|
2199
|
+
var e = this.props;
|
|
2200
|
+
return e.innerRef, e.onResize, Ie(t, Xn({}, Zn(e, ["innerRef", "onResize"]), {
|
|
2201
|
+
measureRef: this._handleRef,
|
|
2202
|
+
measure: this.measure,
|
|
2203
|
+
contentRect: this.state.contentRect
|
|
2204
|
+
}));
|
|
2205
|
+
}, r;
|
|
2206
|
+
}(Fe), n.propTypes = {
|
|
2207
|
+
client: Q.default.bool,
|
|
2208
|
+
offset: Q.default.bool,
|
|
2209
|
+
scroll: Q.default.bool,
|
|
2210
|
+
bounds: Q.default.bool,
|
|
2211
|
+
margin: Q.default.bool,
|
|
2212
|
+
innerRef: Q.default.oneOfType([Q.default.object, Q.default.func]),
|
|
2213
|
+
onResize: Q.default.func
|
|
2214
|
+
}, r;
|
|
2215
|
+
};
|
|
2216
|
+
}
|
|
2217
|
+
var Pr = Nr()(function(e) {
|
|
2218
|
+
var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
|
|
2219
|
+
return i({
|
|
2220
|
+
measure: t,
|
|
2221
|
+
measureRef: n,
|
|
2222
|
+
contentRect: r
|
|
2223
|
+
});
|
|
2224
|
+
});
|
|
2225
|
+
Pr.displayName = "Measure", Pr.propTypes.children = Q.default.func;
|
|
2226
|
+
//#endregion
|
|
2227
|
+
//#region ../../lib-react/config-ui/dist/layout/settings-box.js
|
|
2228
|
+
var Fr = E("div")(({ theme: e }) => ({
|
|
2229
|
+
backgroundColor: e.palette.background.paper,
|
|
2230
|
+
border: `2px solid ${e.palette.grey[200]}`,
|
|
2231
|
+
display: "flex",
|
|
2232
|
+
flexDirection: "column",
|
|
2233
|
+
justifyContent: "flex-start",
|
|
2234
|
+
minWidth: "275px",
|
|
2235
|
+
maxWidth: "300px",
|
|
2236
|
+
padding: "20px 4px 4px 20px",
|
|
2237
|
+
zIndex: 99
|
|
2238
|
+
})), Ir = class extends U.Component {
|
|
2239
|
+
static propTypes = {
|
|
2240
|
+
className: Q.default.string,
|
|
2241
|
+
children: Q.default.oneOfType([Q.default.arrayOf(Q.default.node), Q.default.node]).isRequired
|
|
2242
|
+
};
|
|
2243
|
+
static defaultProps = {};
|
|
2244
|
+
render() {
|
|
2245
|
+
let { className: e, children: t } = this.props;
|
|
2246
|
+
return /* @__PURE__ */ G(Fr, {
|
|
2247
|
+
className: e,
|
|
2248
|
+
children: t
|
|
2249
|
+
});
|
|
2250
|
+
}
|
|
2251
|
+
}, Lr = F({
|
|
2252
|
+
typography: { fontFamily: "inherit" },
|
|
2253
|
+
components: { MuiButton: { styleOverrides: { contained: {
|
|
2254
|
+
backgroundColor: "#e0e0e0",
|
|
2255
|
+
color: "#000000",
|
|
2256
|
+
"&:hover": { backgroundColor: "#bdbdbd" }
|
|
2257
|
+
} } } }
|
|
2258
|
+
}), Rr = class extends U.Component {
|
|
2259
|
+
static propTypes = {
|
|
2260
|
+
children: Q.default.oneOfType([
|
|
2261
|
+
Q.default.string,
|
|
2262
|
+
Q.default.arrayOf(Q.default.element),
|
|
2263
|
+
Q.default.element
|
|
2264
|
+
]),
|
|
2265
|
+
className: Q.default.string,
|
|
2266
|
+
dimensions: Q.default.object,
|
|
2267
|
+
settings: Q.default.element,
|
|
2268
|
+
sidePanelMinWidth: Q.default.number,
|
|
2269
|
+
hideSettings: Q.default.bool,
|
|
2270
|
+
extraCSSRules: Q.default.shape({
|
|
2271
|
+
names: Q.default.arrayOf(Q.default.string),
|
|
2272
|
+
rules: Q.default.string
|
|
2273
|
+
})
|
|
2274
|
+
};
|
|
2275
|
+
static defaultProps = {
|
|
2276
|
+
sidePanelMinWidth: 1135,
|
|
2277
|
+
hideSettings: !1,
|
|
2278
|
+
dimensions: {}
|
|
2279
|
+
};
|
|
2280
|
+
constructor(...e) {
|
|
2281
|
+
super(...e), this.state = { layoutMode: void 0 };
|
|
2282
|
+
}
|
|
2283
|
+
onResize = (e) => {
|
|
2284
|
+
let { bounds: t } = e, { sidePanelMinWidth: n, dimensions: r } = this.props, { maxWidth: i } = r || {}, a = t.width > n && (!i || i > n) ? "inline" : "tabbed";
|
|
2285
|
+
a !== this.state.layoutMode && this.setState({ layoutMode: a });
|
|
2286
|
+
};
|
|
2287
|
+
render() {
|
|
2288
|
+
return /* @__PURE__ */ G(ge, {
|
|
2289
|
+
injectFirst: !0,
|
|
2290
|
+
children: /* @__PURE__ */ G(Ce, {
|
|
2291
|
+
theme: Lr,
|
|
2292
|
+
children: /* @__PURE__ */ G(Pr, {
|
|
2293
|
+
bounds: !0,
|
|
2294
|
+
onResize: this.onResize,
|
|
2295
|
+
children: ({ measureRef: e }) => {
|
|
2296
|
+
let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ G(Ir, {
|
|
2297
|
+
className: "settings-box",
|
|
2298
|
+
children: n
|
|
2299
|
+
}) : n;
|
|
2300
|
+
return /* @__PURE__ */ K("div", {
|
|
2301
|
+
ref: e,
|
|
2302
|
+
className: "main-container extraCSSRules",
|
|
2303
|
+
children: [a?.rules ? /* @__PURE__ */ G("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ G(Yn, {
|
|
2304
|
+
mode: o,
|
|
2305
|
+
secondary: s,
|
|
2306
|
+
dimensions: i,
|
|
2307
|
+
children: t
|
|
2308
|
+
})]
|
|
2309
|
+
});
|
|
2310
|
+
}
|
|
2311
|
+
})
|
|
2312
|
+
})
|
|
2313
|
+
});
|
|
2314
|
+
}
|
|
2315
|
+
}, zr = Nr("bounds")(Rr), Br = /* @__PURE__ */ Un({
|
|
2316
|
+
ConfigLayout: () => zr,
|
|
2317
|
+
LayoutContents: () => Yn
|
|
2318
|
+
}), Vr = E("div")(() => ({
|
|
2319
|
+
display: "flex",
|
|
2320
|
+
width: "100%",
|
|
2321
|
+
justifyContent: "space-between"
|
|
2322
|
+
})), Hr = E(ce)(({ theme: e }) => ({
|
|
2323
|
+
color: "rgba(0, 0, 0, 0.89)",
|
|
2324
|
+
fontSize: e.typography.fontSize,
|
|
2325
|
+
paddingTop: e.spacing(2)
|
|
2326
|
+
})), Ur = E(bn)(({ checked: e }) => ({
|
|
2327
|
+
"&.Mui-checked .MuiSwitch-thumb": { color: `${C.tertiary()} !important` },
|
|
2328
|
+
"&.Mui-checked .MuiSwitch-track": { backgroundColor: `${C.tertiaryLight()} !important` },
|
|
2329
|
+
"& .MuiSwitch-track": { backgroundColor: e ? `${C.tertiaryLight()} !important` : void 0 }
|
|
2330
|
+
})), Wr = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ K(Vr, { children: [/* @__PURE__ */ G(Hr, { children: n }), /* @__PURE__ */ G(Ur, {
|
|
2331
|
+
checked: e,
|
|
2332
|
+
disabled: t,
|
|
2333
|
+
onChange: (e) => r(e.target.checked)
|
|
2334
|
+
})] });
|
|
2335
|
+
Wr.propTypes = {
|
|
2336
|
+
checked: Q.default.bool,
|
|
2337
|
+
disabled: Q.default.bool,
|
|
2338
|
+
label: Q.default.string.isRequired,
|
|
2339
|
+
toggle: Q.default.func.isRequired
|
|
2340
|
+
};
|
|
2341
|
+
//#endregion
|
|
2342
|
+
//#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
|
|
2343
|
+
var Gr = E(Mt)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
|
|
2344
|
+
color: "rgba(0, 0, 0, 0.89)",
|
|
2345
|
+
fontSize: e.typography.fontSize - 2,
|
|
2346
|
+
left: "-5px",
|
|
2347
|
+
position: "relative"
|
|
2348
|
+
} })), Kr = E(tn)(() => ({ color: `${C.tertiary()} !important` })), qr = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ G(Gr, {
|
|
2349
|
+
value: t,
|
|
2350
|
+
control: /* @__PURE__ */ G(Kr, {
|
|
2351
|
+
checked: n,
|
|
2352
|
+
onChange: r
|
|
2353
|
+
}),
|
|
2354
|
+
label: e
|
|
2355
|
+
});
|
|
2356
|
+
qr.propTypes = {
|
|
2357
|
+
label: Q.default.string,
|
|
2358
|
+
value: Q.default.string,
|
|
2359
|
+
checked: Q.default.bool,
|
|
2360
|
+
onChange: Q.default.func
|
|
2361
|
+
};
|
|
2362
|
+
//#endregion
|
|
2363
|
+
//#region ../../lib-react/config-ui/dist/settings/panel.js
|
|
2364
|
+
var Jr = (0, at.default)("pie-lib:config-ui:settings:panel"), Yr = {
|
|
2365
|
+
label: Q.default.string,
|
|
2366
|
+
value: Q.default.string
|
|
2367
|
+
}, Xr = {
|
|
2368
|
+
label: Q.default.string,
|
|
2369
|
+
value: Q.default.string,
|
|
2370
|
+
onChange: Q.default.func
|
|
2371
|
+
}, Zr = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ G(On, {
|
|
2372
|
+
checked: t,
|
|
2373
|
+
label: e,
|
|
2374
|
+
onChange: (e) => {
|
|
2375
|
+
n(e.target.checked);
|
|
2376
|
+
}
|
|
2377
|
+
});
|
|
2378
|
+
Zr.propTypes = {
|
|
2379
|
+
label: Q.default.string,
|
|
2380
|
+
value: Q.default.bool,
|
|
2381
|
+
onChange: Q.default.func
|
|
2382
|
+
};
|
|
2383
|
+
var Qr = E(Bn)(({ theme: e }) => ({
|
|
2384
|
+
marginTop: e.spacing(.5),
|
|
2385
|
+
paddingBottom: e.spacing(.5),
|
|
2386
|
+
width: "100%",
|
|
2387
|
+
"& > label": {
|
|
2388
|
+
color: "rgba(0, 0, 0, 0.89)",
|
|
2389
|
+
transform: "translate(0, 10px) scale(1)",
|
|
2390
|
+
fontSize: "18px",
|
|
2391
|
+
marginTop: e.spacing(2.5)
|
|
2392
|
+
},
|
|
2393
|
+
"& > div": { marginTop: e.spacing(2.5) }
|
|
2394
|
+
})), $r = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ G(Qr, {
|
|
2395
|
+
direction: "horizontal",
|
|
2396
|
+
customLabel: qr,
|
|
2397
|
+
value: t,
|
|
2398
|
+
header: e,
|
|
2399
|
+
opts: r,
|
|
2400
|
+
onChange: n
|
|
2401
|
+
});
|
|
2402
|
+
$r.propTypes = {
|
|
2403
|
+
...Xr,
|
|
2404
|
+
choices: Q.default.arrayOf(Q.default.shape(Yr))
|
|
2405
|
+
};
|
|
2406
|
+
var ei = $r, ti = E("p")(({ theme: e }) => ({
|
|
2407
|
+
margin: 0,
|
|
2408
|
+
fontSize: e.typography.fontSize
|
|
2409
|
+
})), ni = E(Te)(({ theme: e }) => ({
|
|
2410
|
+
marginTop: e.spacing(.5),
|
|
2411
|
+
border: "2px solid lightgrey",
|
|
2412
|
+
padding: `0 ${e.spacing(1)}`,
|
|
2413
|
+
borderRadius: "4px"
|
|
2414
|
+
})), ri = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
|
|
2415
|
+
let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
|
|
2416
|
+
return /* @__PURE__ */ K("div", { children: [e && /* @__PURE__ */ G(ti, { children: e }), /* @__PURE__ */ G(ni, {
|
|
2417
|
+
value: t || r && r[0],
|
|
2418
|
+
onChange: ({ target: e }) => n(e.value),
|
|
2419
|
+
input: /* @__PURE__ */ G(le, { id: `dropdown-${e}` }),
|
|
2420
|
+
disableUnderline: !0,
|
|
2421
|
+
MenuProps: { transitionDuration: {
|
|
2422
|
+
enter: 225,
|
|
2423
|
+
exit: 195
|
|
2424
|
+
} },
|
|
2425
|
+
children: r.map((e, t) => /* @__PURE__ */ G(xe, {
|
|
2426
|
+
value: a(e),
|
|
2427
|
+
children: i(e)
|
|
2428
|
+
}, t))
|
|
2429
|
+
})] });
|
|
2430
|
+
};
|
|
2431
|
+
ri.propTypes = {
|
|
2432
|
+
...Xr,
|
|
2433
|
+
choices: Q.default.arrayOf(Q.default.string)
|
|
2434
|
+
};
|
|
2435
|
+
var ii = E(L)(({ theme: e }) => ({
|
|
2436
|
+
marginRight: e.spacing(3),
|
|
2437
|
+
marginTop: e.spacing(1)
|
|
2438
|
+
})), ai = ({ label: e }) => /* @__PURE__ */ G(ii, { children: e }), oi = E(Mn)(({ theme: e }) => ({
|
|
2439
|
+
width: "35%",
|
|
2440
|
+
marginRight: e.spacing(3),
|
|
2441
|
+
marginTop: e.spacing(1),
|
|
2442
|
+
"& .MuiInputBase-root": {
|
|
2443
|
+
marginTop: e.spacing(.5),
|
|
2444
|
+
border: "2px solid lightgrey",
|
|
2445
|
+
borderRadius: "4px",
|
|
2446
|
+
padding: `0 ${e.spacing(1)}`,
|
|
2447
|
+
backgroundColor: "transparent"
|
|
2448
|
+
}
|
|
2449
|
+
})), si = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ G(oi, {
|
|
2450
|
+
variant: "standard",
|
|
2451
|
+
label: e || "Label",
|
|
2452
|
+
value: t,
|
|
2453
|
+
max: a,
|
|
2454
|
+
min: i,
|
|
2455
|
+
onChange: (e, t) => n(t),
|
|
2456
|
+
suffix: r,
|
|
2457
|
+
showErrorWhenOutsideRange: !0,
|
|
2458
|
+
disableUnderline: !0
|
|
2459
|
+
});
|
|
2460
|
+
si.propTypes = {
|
|
2461
|
+
...Xr,
|
|
2462
|
+
suffix: Q.default.string,
|
|
2463
|
+
min: Q.default.number,
|
|
2464
|
+
max: Q.default.number,
|
|
2465
|
+
value: Q.default.number
|
|
2466
|
+
}, ai.propTypes = { ...Xr };
|
|
2467
|
+
var ci = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ G(Wr, {
|
|
2468
|
+
label: t,
|
|
2469
|
+
checked: !!n,
|
|
2470
|
+
disabled: !!e,
|
|
2471
|
+
toggle: r
|
|
2472
|
+
});
|
|
2473
|
+
ci.propTypes = {
|
|
2474
|
+
...Xr,
|
|
2475
|
+
value: Q.default.bool
|
|
2476
|
+
};
|
|
2477
|
+
var li = {
|
|
2478
|
+
toggle: ci,
|
|
2479
|
+
radio: ei,
|
|
2480
|
+
dropdown: ri,
|
|
2481
|
+
numberField: si,
|
|
2482
|
+
checkbox: Zr,
|
|
2483
|
+
textField: ai
|
|
2484
|
+
}, ui = E("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), di = E("div")(({ theme: e }) => ({
|
|
2485
|
+
color: "#495B8F",
|
|
2486
|
+
fontSize: e.typography.fontSize + 2,
|
|
2487
|
+
fontWeight: 600,
|
|
2488
|
+
marginBottom: e.spacing(1)
|
|
2489
|
+
})), fi = E("p")(({ theme: e }) => ({
|
|
2490
|
+
fontSize: e.typography.fontSize,
|
|
2491
|
+
marginBottom: 0
|
|
2492
|
+
})), pi = (e) => {
|
|
2493
|
+
let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
|
|
2494
|
+
let { isConfigProperty: o, ...s } = f(e, r || n), c = f(o ? i : t, n), l = {
|
|
2495
|
+
...s,
|
|
2496
|
+
key: n,
|
|
2497
|
+
value: c
|
|
2498
|
+
}, u = li[l.type];
|
|
2499
|
+
return /* @__PURE__ */ G(u, {
|
|
2500
|
+
...l,
|
|
2501
|
+
onChange: (e) => a(n, e, o)
|
|
2502
|
+
}, n);
|
|
2503
|
+
}, s = (e, t) => {
|
|
2504
|
+
let n = e[t];
|
|
2505
|
+
if (!n) return null;
|
|
2506
|
+
let { type: r, label: i, fields: a, choices: s } = n;
|
|
2507
|
+
return r === "numberFields" ? /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(fi, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
|
|
2508
|
+
};
|
|
2509
|
+
return /* @__PURE__ */ K(ui, { children: [/* @__PURE__ */ G(di, { children: n }), Object.keys(r).map((e) => s(r, e))] });
|
|
2510
|
+
};
|
|
2511
|
+
pi.propTypes = {
|
|
2512
|
+
model: Q.default.object,
|
|
2513
|
+
label: Q.default.string,
|
|
2514
|
+
group: Q.default.object,
|
|
2515
|
+
configuration: Q.default.object,
|
|
2516
|
+
onChange: Q.default.func
|
|
2517
|
+
};
|
|
2518
|
+
var mi = class extends U.Component {
|
|
2519
|
+
static propTypes = {
|
|
2520
|
+
model: Q.default.object,
|
|
2521
|
+
configuration: Q.default.object,
|
|
2522
|
+
groups: Q.default.object,
|
|
2523
|
+
onChangeModel: Q.default.func,
|
|
2524
|
+
onChangeConfiguration: Q.default.func,
|
|
2525
|
+
modal: Q.default.object
|
|
2526
|
+
};
|
|
2527
|
+
static defaultProps = {
|
|
2528
|
+
onChangeModel: () => {},
|
|
2529
|
+
onChangeConfiguration: () => {}
|
|
2530
|
+
};
|
|
2531
|
+
change = (e, t, n = !1) => {
|
|
2532
|
+
Jr("[changeModel]", e, t);
|
|
2533
|
+
let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
|
|
2534
|
+
n ? (tt(o, e, t), i(o, e)) : (tt(a, e, t), r(a, e));
|
|
2535
|
+
};
|
|
2536
|
+
render() {
|
|
2537
|
+
let { groups: e, model: t, configuration: n, modal: r } = this.props;
|
|
2538
|
+
return Jr("render:", t), /* @__PURE__ */ K("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ G(pi, {
|
|
2539
|
+
label: r,
|
|
2540
|
+
model: t,
|
|
2541
|
+
configuration: n,
|
|
2542
|
+
group: e[r],
|
|
2543
|
+
onChange: this.change
|
|
2544
|
+
}, r) : null), r] });
|
|
2545
|
+
}
|
|
2546
|
+
}, hi = /* @__PURE__ */ Un({
|
|
2547
|
+
Panel: () => mi,
|
|
2548
|
+
checkbox: () => Ci,
|
|
2549
|
+
checkboxes: () => wi,
|
|
2550
|
+
dropdown: () => bi,
|
|
2551
|
+
numberField: () => xi,
|
|
2552
|
+
numberFields: () => Si,
|
|
2553
|
+
radio: () => yi,
|
|
2554
|
+
textField: () => gi,
|
|
2555
|
+
toggle: () => _i
|
|
2556
|
+
}), gi = (e, t = !0) => ({
|
|
2557
|
+
label: e,
|
|
2558
|
+
type: "textField",
|
|
2559
|
+
isConfigProperty: t
|
|
2560
|
+
}), _i = (e, t = !1, n = !1) => ({
|
|
2561
|
+
type: "toggle",
|
|
2562
|
+
label: e,
|
|
2563
|
+
isConfigProperty: t,
|
|
2564
|
+
disabled: n
|
|
2565
|
+
}), vi = (e) => typeof e == "string" ? {
|
|
2566
|
+
label: e,
|
|
2567
|
+
value: e
|
|
2568
|
+
} : e, yi = function() {
|
|
2569
|
+
let [e, t, n = !1] = Array.prototype.slice.call(arguments);
|
|
2570
|
+
return {
|
|
2571
|
+
type: "radio",
|
|
2572
|
+
label: e,
|
|
2573
|
+
choices: t && t.map((e) => vi(e)),
|
|
2574
|
+
isConfigProperty: n
|
|
2575
|
+
};
|
|
2576
|
+
}, bi = (e, t, n = !1) => ({
|
|
2577
|
+
type: "dropdown",
|
|
2578
|
+
label: e,
|
|
2579
|
+
choices: t,
|
|
2580
|
+
isConfigProperty: n
|
|
2581
|
+
}), xi = (e, t, n = !1) => ({
|
|
2582
|
+
...t,
|
|
2583
|
+
label: e,
|
|
2584
|
+
type: "numberField",
|
|
2585
|
+
isConfigProperty: n
|
|
2586
|
+
}), Si = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
2587
|
+
t[e] = xi(t[e].label, t[e], n);
|
|
2588
|
+
}), {
|
|
2589
|
+
type: "numberFields",
|
|
2590
|
+
label: e,
|
|
2591
|
+
fields: t
|
|
2592
|
+
}), Ci = (e, t, n = !1) => ({
|
|
2593
|
+
...t,
|
|
2594
|
+
label: e,
|
|
2595
|
+
type: "checkbox",
|
|
2596
|
+
isConfigProperty: n
|
|
2597
|
+
}), wi = (e, t, n = !1) => (Object.keys(t).map((e) => {
|
|
2598
|
+
t[e] = Ci(t[e].label, t[e], n);
|
|
2599
|
+
}), {
|
|
2600
|
+
type: "checkboxes",
|
|
2601
|
+
label: e,
|
|
2602
|
+
choices: t
|
|
2603
|
+
});
|
|
2604
|
+
//#endregion
|
|
2605
|
+
//#region ../../lib-react/config-ui/dist/index.js
|
|
2606
|
+
function Ti(e) {
|
|
2607
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
2608
|
+
}
|
|
2609
|
+
function Ei(e, t) {
|
|
2610
|
+
return !e || Ti(e) ? e : Ti(e.default) ? e.default : t && Ti(e[t]) ? e[t] : t && Ti(e[t]?.default) ? e[t].default : e;
|
|
2611
|
+
}
|
|
2612
|
+
var Di = Ei(Ae, "InputContainer") || Ei(Ai.InputContainer, "InputContainer"), Oi = ye, ki = Oi.default, Ai = ki && typeof ki == "object" ? ki : Oi, ji = A(/*#__PURE__*/ G("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), Mi = "imes|riangle|an|heta|herefore", Ni = "throot|parallel|cong|approx|eq|e|sim", Pi = RegExp(`(\\t(?!${Mi}))|(\\n(?!${Ni}))|(\\\\t(?!${Mi}))|(\\\\n(?!${Ni}))`, "g"), Fi = (e) => e.replace(Pi, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), Ii = (e = "") => {
|
|
2613
|
+
let t = document.createElement("div");
|
|
2614
|
+
return t.innerHTML = e.trim(), t;
|
|
2615
|
+
}, Li = (e) => {
|
|
2616
|
+
let t = Ii(Fi(e || "") || ""), n = 0;
|
|
2617
|
+
return t.querySelectorAll("[data-type=\"explicit_constructed_response\"]").forEach((e) => {
|
|
2618
|
+
e.replaceWith(`{{${n++}}}`);
|
|
2619
|
+
}), t.innerHTML;
|
|
2620
|
+
}, Ri = /\{\{(\d+)\}\}/g, zi = (e, t) => e ? Fi(e).replace(Ri, (e, n) => `<span data-type="explicit_constructed_response" data-index="${n}" data-value="${Ke(t[n][0].label || "")}"></span>`) : "", Bi = (e) => e <= 2 ? e + 2 : e <= 4 ? e + 3 : e <= 6 ? e + 4 : e + 5, Vi = (e) => typeof e == "string" ? e.replace(/<\/?[^>]+(>|$)/g, "") : "", Hi = (e) => new DOMParser().parseFromString(e, "text/html").body.textContent || "", Ui = E(B)(({ theme: e }) => ({
|
|
2621
|
+
backgroundColor: e.palette.common.white,
|
|
2622
|
+
outline: "none",
|
|
2623
|
+
lineHeight: "15px"
|
|
2624
|
+
})), Wi = class extends U.Component {
|
|
2625
|
+
static propTypes = {
|
|
2626
|
+
correctChoice: Q.default.object,
|
|
2627
|
+
node: Q.default.object,
|
|
2628
|
+
pos: Q.default.number,
|
|
2629
|
+
onDone: Q.default.func,
|
|
2630
|
+
onChangeResponse: Q.default.func.isRequired,
|
|
2631
|
+
onToolbarDone: Q.default.func.isRequired,
|
|
2632
|
+
value: Q.default.shape({
|
|
2633
|
+
change: Q.default.func.isRequired,
|
|
2634
|
+
document: Q.default.shape({ getNextText: Q.default.func.isRequired })
|
|
2635
|
+
}),
|
|
2636
|
+
editor: Q.default.object,
|
|
2637
|
+
maxLengthPerChoiceEnabled: Q.default.bool,
|
|
2638
|
+
pluginProps: Q.default.object,
|
|
2639
|
+
spellCheck: Q.default.bool
|
|
2640
|
+
};
|
|
2641
|
+
state = {
|
|
2642
|
+
markup: "",
|
|
2643
|
+
toolbarStyle: {}
|
|
2644
|
+
};
|
|
2645
|
+
componentDidMount() {
|
|
2646
|
+
let { correctChoice: e, node: t, editor: n } = this.props, r = e || {}, i = n.view.nodeDOM(n.state.selection.from);
|
|
2647
|
+
if (i?.nodeType === 1) {
|
|
2648
|
+
let e = i.getBoundingClientRect(), t = i.closest(".tiptap").getBoundingClientRect();
|
|
2649
|
+
e.top - t.top, e.left - t.left, this.setState({
|
|
2650
|
+
markup: r.label,
|
|
2651
|
+
toolbarStyle: {
|
|
2652
|
+
position: "absolute",
|
|
2653
|
+
top: 0,
|
|
2654
|
+
left: 0,
|
|
2655
|
+
width: `${e.width - 4}px`
|
|
2656
|
+
}
|
|
2657
|
+
});
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
onDone = (e) => {
|
|
2661
|
+
let { editor: t, node: n, onToolbarDone: r, onChangeResponse: i, pos: a } = this.props, o = Vi(e);
|
|
2662
|
+
this.setState({ markup: o });
|
|
2663
|
+
let { tr: s } = t.state, c = s.doc.nodeAt(a);
|
|
2664
|
+
if (!c || c.isText || !c.isAtom || !c.isInline) return !1;
|
|
2665
|
+
s.setNodeMarkup(a, void 0, {
|
|
2666
|
+
...n.attrs,
|
|
2667
|
+
value: o
|
|
2668
|
+
}), t.view.dispatch(s), r(!0), i(o);
|
|
2669
|
+
};
|
|
2670
|
+
onRespAreaChange = (e) => {
|
|
2671
|
+
this.setState({ respAreaMarkup: e });
|
|
2672
|
+
};
|
|
2673
|
+
onKeyDown = (e) => e.key === "Enter";
|
|
2674
|
+
onBlur = () => {
|
|
2675
|
+
this.clickedInside &&= !1;
|
|
2676
|
+
};
|
|
2677
|
+
render() {
|
|
2678
|
+
let { maxLengthPerChoiceEnabled: e, pluginProps: t, spellCheck: n } = this.props, { markup: r, toolbarStyle: i } = this.state, a = e ? {} : { maxLength: 25 };
|
|
2679
|
+
return /* @__PURE__ */ G("div", {
|
|
2680
|
+
style: i,
|
|
2681
|
+
children: /* @__PURE__ */ G(Ui, {
|
|
2682
|
+
autoFocus: !0,
|
|
2683
|
+
disableUnderline: !0,
|
|
2684
|
+
onChange: (e) => {
|
|
2685
|
+
this.preventDone || this.onRespAreaChange(e);
|
|
2686
|
+
},
|
|
2687
|
+
onDone: (e) => {
|
|
2688
|
+
this.preventDone || this.onDone(e);
|
|
2689
|
+
},
|
|
2690
|
+
onBlur: (e) => {
|
|
2691
|
+
this.preventDone = e.relatedTarget && e.relatedTarget.closest(".insert-character-dialog"), this.onBlur(e);
|
|
2692
|
+
},
|
|
2693
|
+
onKeyDown: this.onKeyDown,
|
|
2694
|
+
markup: r || "",
|
|
2695
|
+
activePlugins: ["languageCharacters"],
|
|
2696
|
+
pluginProps: t,
|
|
2697
|
+
languageCharactersProps: [{ language: "spanish" }],
|
|
2698
|
+
minHeight: "15px",
|
|
2699
|
+
maxHeight: "15px",
|
|
2700
|
+
spellCheck: n,
|
|
2701
|
+
autoWidthToolbar: !0,
|
|
2702
|
+
toolbarOpts: {
|
|
2703
|
+
minWidth: "auto",
|
|
2704
|
+
isHidden: !!t?.characters?.disabled
|
|
2705
|
+
},
|
|
2706
|
+
...a
|
|
2707
|
+
})
|
|
2708
|
+
});
|
|
2709
|
+
}
|
|
2710
|
+
}, Gi = E("div")(({ theme: e }) => ({ marginBottom: e.spacing(.5) })), Ki = E("div")(({ theme: e }) => ({
|
|
2711
|
+
alignItems: "flex-start",
|
|
2712
|
+
flexDirection: "column",
|
|
2713
|
+
display: "flex",
|
|
2714
|
+
paddingTop: e.spacing(2.5),
|
|
2715
|
+
"& > *": {
|
|
2716
|
+
marginBottom: e.spacing(2.5),
|
|
2717
|
+
width: "100%"
|
|
2718
|
+
}
|
|
2719
|
+
})), qi = E(B)(({ theme: e, hasError: t }) => ({
|
|
2720
|
+
flex: "1",
|
|
2721
|
+
marginRight: e.spacing(2.5),
|
|
2722
|
+
...t && {
|
|
2723
|
+
border: `2px solid ${e.palette.error.main}`,
|
|
2724
|
+
borderRadius: "6px"
|
|
2725
|
+
}
|
|
2726
|
+
})), Ji = E(ue)(({ theme: e }) => ({ "& svg": { fill: e.palette.grey[600] } })), Yi = E("div")({
|
|
2727
|
+
alignItems: "flex-end",
|
|
2728
|
+
display: "flex",
|
|
2729
|
+
justifyContent: "space-between",
|
|
2730
|
+
width: "100%"
|
|
2731
|
+
}), Xi = E("div")({
|
|
2732
|
+
alignItems: "center",
|
|
2733
|
+
display: "flex"
|
|
2734
|
+
}), Zi = E(oe)(({ theme: e }) => ({
|
|
2735
|
+
width: "230px",
|
|
2736
|
+
marginRight: e.spacing(2.5),
|
|
2737
|
+
"& .MuiInput-underline:before": { borderBottomColor: e.palette.divider },
|
|
2738
|
+
"& .MuiInput-underline:hover:not(.Mui-disabled):before": { borderBottomColor: e.palette.text.primary },
|
|
2739
|
+
"& .MuiInput-underline:after": { borderBottomColor: e.palette.primary.main }
|
|
2740
|
+
})), Qi = E("div")(({ theme: e }) => ({
|
|
2741
|
+
fontSize: e.typography.fontSize - 2,
|
|
2742
|
+
color: e.palette.error.main,
|
|
2743
|
+
paddingTop: e.spacing(.5)
|
|
2744
|
+
})), $i = E("div")({
|
|
2745
|
+
alignItems: "center",
|
|
2746
|
+
display: "flex",
|
|
2747
|
+
justifyContent: "space-between"
|
|
2748
|
+
}), ea = class extends U.Component {
|
|
2749
|
+
static propTypes = {
|
|
2750
|
+
error: Q.default.string,
|
|
2751
|
+
markup: Q.default.string,
|
|
2752
|
+
onChange: Q.default.func.isRequired,
|
|
2753
|
+
onDelete: Q.default.func.isRequired,
|
|
2754
|
+
value: Q.default.string,
|
|
2755
|
+
spellCheck: Q.default.bool,
|
|
2756
|
+
showMaxLength: Q.default.bool,
|
|
2757
|
+
pluginProps: Q.default.object
|
|
2758
|
+
};
|
|
2759
|
+
state = { value: this.props.markup };
|
|
2760
|
+
updateText = Se(this.props.onChange, 300);
|
|
2761
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
2762
|
+
e.markup && this.setState({ value: e.markup });
|
|
2763
|
+
}
|
|
2764
|
+
onChange = (e) => {
|
|
2765
|
+
let t = Vi(e);
|
|
2766
|
+
this.setState({ value: t }), this.updateText(t);
|
|
2767
|
+
};
|
|
2768
|
+
onKeyDown = (e) => {
|
|
2769
|
+
if (e.key === "Enter") return !0;
|
|
2770
|
+
};
|
|
2771
|
+
render() {
|
|
2772
|
+
let { value: e } = this.state, { onDelete: t, spellCheck: n, error: r, showMaxLength: i, pluginProps: a } = this.props, o = i ? {} : { maxLength: 25 };
|
|
2773
|
+
return /* @__PURE__ */ K(U.Fragment, { children: [/* @__PURE__ */ K($i, { children: [/* @__PURE__ */ G(qi, {
|
|
2774
|
+
hasError: !!r,
|
|
2775
|
+
disableUnderline: !0,
|
|
2776
|
+
onChange: this.onChange,
|
|
2777
|
+
onKeyDown: this.onKeyDown,
|
|
2778
|
+
markup: e || "",
|
|
2779
|
+
activePlugins: ["languageCharacters"],
|
|
2780
|
+
pluginProps: a,
|
|
2781
|
+
languageCharactersProps: [{ language: "spanish" }],
|
|
2782
|
+
spellCheck: n,
|
|
2783
|
+
autoWidthToolbar: !0,
|
|
2784
|
+
toolbarOpts: {
|
|
2785
|
+
minWidth: "auto",
|
|
2786
|
+
isHidden: !!a?.characters?.disabled
|
|
2787
|
+
},
|
|
2788
|
+
...o
|
|
2789
|
+
}), /* @__PURE__ */ G(Ji, {
|
|
2790
|
+
"aria-label": "delete",
|
|
2791
|
+
onClick: t,
|
|
2792
|
+
size: "large",
|
|
2793
|
+
children: /* @__PURE__ */ G(De, {})
|
|
2794
|
+
})] }), r && /* @__PURE__ */ G(Qi, { children: r })] });
|
|
2795
|
+
}
|
|
2796
|
+
}, ta = class extends U.Component {
|
|
2797
|
+
static propTypes = {
|
|
2798
|
+
choices: Q.default.array,
|
|
2799
|
+
selectChoices: Q.default.array.isRequired,
|
|
2800
|
+
errors: Q.default.object,
|
|
2801
|
+
onSelect: Q.default.func.isRequired,
|
|
2802
|
+
choiceChanged: Q.default.func.isRequired,
|
|
2803
|
+
lengthChanged: Q.default.func,
|
|
2804
|
+
choiceRemoved: Q.default.func.isRequired,
|
|
2805
|
+
value: Q.default.string,
|
|
2806
|
+
maxLength: Q.default.number,
|
|
2807
|
+
showMaxLength: Q.default.bool,
|
|
2808
|
+
spellCheck: Q.default.bool,
|
|
2809
|
+
pluginProps: Q.default.object
|
|
2810
|
+
};
|
|
2811
|
+
state = {};
|
|
2812
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
2813
|
+
this.updateChoicesIfNeeded(e);
|
|
2814
|
+
}
|
|
2815
|
+
componentDidMount() {
|
|
2816
|
+
this.updateChoicesIfNeeded(this.props);
|
|
2817
|
+
}
|
|
2818
|
+
updateChoicesIfNeeded = (e) => {
|
|
2819
|
+
(!this.state.choices || !se(e.choices, this.state.choices) || !se(e.choices, this.props.choices)) && this.setState({ choices: e.choices });
|
|
2820
|
+
};
|
|
2821
|
+
handleSelect = (e) => {
|
|
2822
|
+
let { onSelect: t, selectChoices: n } = this.props, { value: r } = e.target;
|
|
2823
|
+
t(n.find((e) => e.value === r));
|
|
2824
|
+
};
|
|
2825
|
+
onAddChoice = () => {
|
|
2826
|
+
let { choices: e } = this.state;
|
|
2827
|
+
if (e.length && e[e.length - 1].label !== "") {
|
|
2828
|
+
let t = Xe(e.map((e) => parseInt(e.value)).filter((e) => !isNaN(e))) || 0;
|
|
2829
|
+
this.setState({ choices: [...e, {
|
|
2830
|
+
value: `${t + 1}`,
|
|
2831
|
+
label: ""
|
|
2832
|
+
}] });
|
|
2833
|
+
}
|
|
2834
|
+
};
|
|
2835
|
+
onChoiceChanged = (e, t, n) => {
|
|
2836
|
+
let { choiceChanged: r, lengthChanged: i, maxLength: a, choices: o } = this.props, s = o.map((e) => Hi(e.label || "").length);
|
|
2837
|
+
s[n] = Hi(t).length;
|
|
2838
|
+
let c = Math.max(...s);
|
|
2839
|
+
r({
|
|
2840
|
+
...e,
|
|
2841
|
+
label: t
|
|
2842
|
+
}), (c > a || c + 10 <= a) && i(Bi(c));
|
|
2843
|
+
};
|
|
2844
|
+
onRemoveChoice = (e) => {
|
|
2845
|
+
let { choiceRemoved: t } = this.props;
|
|
2846
|
+
t(e.value);
|
|
2847
|
+
};
|
|
2848
|
+
getChoicesMaxLength = () => {
|
|
2849
|
+
let { choices: e } = this.state;
|
|
2850
|
+
if (!e) return 1;
|
|
2851
|
+
let t = e.map((e) => Hi(e.label || "").length);
|
|
2852
|
+
return Math.max(...t);
|
|
2853
|
+
};
|
|
2854
|
+
changeLength = (e) => {
|
|
2855
|
+
let { lengthChanged: t } = this.props, n = parseInt(e.target.value, 10), r = this.getChoicesMaxLength();
|
|
2856
|
+
n && n >= r && n <= r + 10 && t(n);
|
|
2857
|
+
};
|
|
2858
|
+
render() {
|
|
2859
|
+
let { selectChoices: e, maxLength: t, showMaxLength: n, value: r, spellCheck: i, errors: a, pluginProps: o } = this.props, { choices: s } = this.state, c = this.getChoicesMaxLength();
|
|
2860
|
+
return /* @__PURE__ */ K(Gi, { children: [
|
|
2861
|
+
/* @__PURE__ */ K(Yi, { children: [/* @__PURE__ */ K(Te, {
|
|
2862
|
+
variant: "standard",
|
|
2863
|
+
displayEmpty: !0,
|
|
2864
|
+
onChange: this.handleSelect,
|
|
2865
|
+
value: r || "",
|
|
2866
|
+
readOnly: n,
|
|
2867
|
+
MenuProps: { transitionDuration: {
|
|
2868
|
+
enter: 225,
|
|
2869
|
+
exit: 195
|
|
2870
|
+
} },
|
|
2871
|
+
children: [/* @__PURE__ */ G(xe, {
|
|
2872
|
+
value: "",
|
|
2873
|
+
children: /* @__PURE__ */ G("em", { children: r ? "Remove selection" : "Select a response" })
|
|
2874
|
+
}), e.map((e, t) => /* @__PURE__ */ G(xe, {
|
|
2875
|
+
value: e?.value,
|
|
2876
|
+
children: Hi(e?.label)
|
|
2877
|
+
}, t))]
|
|
2878
|
+
}), s && s.length > 0 && /* @__PURE__ */ K(Xi, { children: [t && n && /* @__PURE__ */ G(Zi, {
|
|
2879
|
+
variant: "standard",
|
|
2880
|
+
label: "Maximum length (characters)",
|
|
2881
|
+
type: "number",
|
|
2882
|
+
inputProps: {
|
|
2883
|
+
min: c,
|
|
2884
|
+
max: c + 10
|
|
2885
|
+
},
|
|
2886
|
+
value: t,
|
|
2887
|
+
onChange: this.changeLength
|
|
2888
|
+
}), /* @__PURE__ */ G(re, {
|
|
2889
|
+
variant: "contained",
|
|
2890
|
+
color: "primary",
|
|
2891
|
+
onClick: this.onAddChoice,
|
|
2892
|
+
children: "Add"
|
|
2893
|
+
})] })] }),
|
|
2894
|
+
a && a[0] && /* @__PURE__ */ G(Qi, { children: a[0] }),
|
|
2895
|
+
/* @__PURE__ */ G(Ki, { children: s && s.map((e, t) => t > 0 && /* @__PURE__ */ G(ea, {
|
|
2896
|
+
markup: e.label,
|
|
2897
|
+
onChange: (n) => this.onChoiceChanged(e, n, t),
|
|
2898
|
+
onDelete: () => this.onRemoveChoice(e),
|
|
2899
|
+
spellCheck: i,
|
|
2900
|
+
error: a && a[t],
|
|
2901
|
+
showMaxLength: n,
|
|
2902
|
+
pluginProps: o
|
|
2903
|
+
}, t)) })
|
|
2904
|
+
] });
|
|
2905
|
+
}
|
|
2906
|
+
}, na = class extends U.Component {
|
|
2907
|
+
static propTypes = {
|
|
2908
|
+
choicesErrors: Q.default.object,
|
|
2909
|
+
model: Q.default.object.isRequired,
|
|
2910
|
+
onChange: Q.default.func.isRequired,
|
|
2911
|
+
onLengthChange: Q.default.func.isRequired,
|
|
2912
|
+
maxLengthPerChoiceEnabled: Q.default.bool.isRequired,
|
|
2913
|
+
spellCheck: Q.default.bool,
|
|
2914
|
+
pluginProps: Q.default.object
|
|
2915
|
+
};
|
|
2916
|
+
state = { maxLengthPerChoice: J(this.props.model.maxLengthPerChoice) };
|
|
2917
|
+
UNSAFE_componentWillReceiveProps(e) {
|
|
2918
|
+
this.updateChoicesIfNeeded(e);
|
|
2919
|
+
}
|
|
2920
|
+
componentDidMount() {
|
|
2921
|
+
this.updateChoicesIfNeeded(this.props);
|
|
2922
|
+
}
|
|
2923
|
+
updateChoicesIfNeeded = (e) => {
|
|
2924
|
+
if (!this.state.choices || !se(this.state.choices, e.model.choices) || !se(e.model.choices, this.props.model.choices) || this.state.values && Object.keys(this.state.values).length !== Object.keys(this.props.model.choices).length || e.maxLengthPerChoiceEnabled !== this.props.maxLengthPerChoiceEnabled) {
|
|
2925
|
+
let { choices: t, maxLengthPerChoice: n } = e.model, r = Pe(t, (t, n, r) => (n && (e.maxLengthPerChoiceEnabled || n.length > 1) && (t[r] = n[0]), t), {});
|
|
2926
|
+
this.setState({
|
|
2927
|
+
choices: e.model.choices,
|
|
2928
|
+
values: r,
|
|
2929
|
+
maxLengthPerChoice: J(n)
|
|
2930
|
+
});
|
|
2931
|
+
}
|
|
2932
|
+
};
|
|
2933
|
+
getRemainingChoices = (e) => {
|
|
2934
|
+
let { choices: t } = this.state;
|
|
2935
|
+
return Pe(t, (t, n, r) => (n && n.length === 1 && !e && t.push({
|
|
2936
|
+
label: n[0].label,
|
|
2937
|
+
value: r
|
|
2938
|
+
}), t), []);
|
|
2939
|
+
};
|
|
2940
|
+
onChoiceChanged = (e, t) => {
|
|
2941
|
+
let { onChange: n } = this.props, { choices: r } = this.state, i = r[t] || [], a = !i.find((t) => t.value === e.value), o = i.reduce((t, n) => {
|
|
2942
|
+
let r = n.value === e.value ? e : n;
|
|
2943
|
+
return t.push(r), t;
|
|
2944
|
+
}, []);
|
|
2945
|
+
a && o.push(e), n({
|
|
2946
|
+
...r,
|
|
2947
|
+
[t]: o
|
|
2948
|
+
});
|
|
2949
|
+
};
|
|
2950
|
+
onChoiceRemoved = (e, t) => {
|
|
2951
|
+
let { onChange: n } = this.props, { choices: r } = this.state, i = (r[t] || []).reduce((t, n) => (n.value === e || t.push(n), t), []);
|
|
2952
|
+
n({
|
|
2953
|
+
...r,
|
|
2954
|
+
[t]: i
|
|
2955
|
+
});
|
|
2956
|
+
};
|
|
2957
|
+
onSectionSelect = (e, t) => {
|
|
2958
|
+
let { onChange: n } = this.props, { choices: r, values: i } = this.state;
|
|
2959
|
+
r[t] && r[t].length > 1 ? e || n({
|
|
2960
|
+
...r,
|
|
2961
|
+
[t]: [r[t][0]]
|
|
2962
|
+
}) : this.setState({
|
|
2963
|
+
choices: {
|
|
2964
|
+
...r,
|
|
2965
|
+
[t]: [...r[t], {
|
|
2966
|
+
label: "",
|
|
2967
|
+
value: "1"
|
|
2968
|
+
}]
|
|
2969
|
+
},
|
|
2970
|
+
values: {
|
|
2971
|
+
...i,
|
|
2972
|
+
[t]: r[t][0]
|
|
2973
|
+
}
|
|
2974
|
+
});
|
|
2975
|
+
};
|
|
2976
|
+
onLengthChanged = (e, t) => {
|
|
2977
|
+
let { model: n, onLengthChange: r } = this.props, { maxLengthPerChoice: i } = n;
|
|
2978
|
+
i[t] = e, r(i);
|
|
2979
|
+
};
|
|
2980
|
+
render() {
|
|
2981
|
+
let { choices: e } = this.state, { model: { maxLengthPerChoice: t, maxLengthPerChoiceEnabled: n }, spellCheck: r, choicesErrors: i, pluginProps: a } = this.props;
|
|
2982
|
+
return /* @__PURE__ */ K("div", { children: [Ne(e, (e, o) => {
|
|
2983
|
+
if (e && (n || e.length > 1)) {
|
|
2984
|
+
let s = this.state.values[o];
|
|
2985
|
+
return /* @__PURE__ */ G(ta, {
|
|
2986
|
+
value: s && s.value,
|
|
2987
|
+
errors: i && i[o],
|
|
2988
|
+
onSelect: (e) => this.onSectionSelect(e, o),
|
|
2989
|
+
choiceChanged: (e) => this.onChoiceChanged(e, o),
|
|
2990
|
+
choiceRemoved: (e) => this.onChoiceRemoved(e, o),
|
|
2991
|
+
lengthChanged: (e) => this.onLengthChanged(e, o),
|
|
2992
|
+
selectChoices: [s],
|
|
2993
|
+
choices: e,
|
|
2994
|
+
maxLength: t[o],
|
|
2995
|
+
showMaxLength: n,
|
|
2996
|
+
spellCheck: r,
|
|
2997
|
+
pluginProps: a
|
|
2998
|
+
}, o);
|
|
2999
|
+
}
|
|
3000
|
+
}), e && Object.keys(this.state.values).length !== Object.keys(e).length && /* @__PURE__ */ G(ta, {
|
|
3001
|
+
value: "",
|
|
3002
|
+
onSelect: (e) => this.onSectionSelect(e, e.value),
|
|
3003
|
+
choiceChanged: (e) => this.onChoiceChanged(e),
|
|
3004
|
+
choiceRemoved: (e) => this.onChoiceRemoved(e),
|
|
3005
|
+
selectChoices: this.getRemainingChoices(),
|
|
3006
|
+
spellCheck: r,
|
|
3007
|
+
pluginProps: a
|
|
3008
|
+
})] });
|
|
3009
|
+
}
|
|
3010
|
+
}, ra = (e) => {
|
|
3011
|
+
let { maxResponseAreas: t } = e;
|
|
3012
|
+
return "Validation requirements:" + ("\nCorrect answers should not be blank.\nEach answer defined for a response area should be unique.\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + " defined.");
|
|
3013
|
+
}, { toggle: $, Panel: ia, dropdown: aa } = hi, oa = E(Di)(({ theme: e }) => ({
|
|
3014
|
+
width: "100%",
|
|
3015
|
+
paddingTop: e.spacing(1),
|
|
3016
|
+
marginTop: e.spacing(2),
|
|
3017
|
+
marginBottom: e.spacing(2)
|
|
3018
|
+
})), sa = E(B)(({ theme: e }) => ({
|
|
3019
|
+
minHeight: "100px",
|
|
3020
|
+
paddingTop: e.spacing(1),
|
|
3021
|
+
width: "100%",
|
|
3022
|
+
"& [data-slate-editor=\"true\"]": { minHeight: "100px" }
|
|
3023
|
+
})), ca = E(L)(({ theme: e }) => ({ fontSize: e.typography.fontSize + 2 })), la = E(pn)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
|
|
3024
|
+
fontSize: e.typography.fontSize - 2,
|
|
3025
|
+
whiteSpace: "pre",
|
|
3026
|
+
maxWidth: "500px"
|
|
3027
|
+
} })), ua = E("div")(({ theme: e }) => ({
|
|
3028
|
+
fontSize: e.typography.fontSize - 2,
|
|
3029
|
+
color: e.palette.error.main,
|
|
3030
|
+
paddingTop: e.spacing(1)
|
|
3031
|
+
})), da = E("div")({
|
|
3032
|
+
display: "flex",
|
|
3033
|
+
alignItems: "center"
|
|
3034
|
+
}), fa = E(L)(({ theme: e }) => ({
|
|
3035
|
+
fontSize: e.typography.fontSize + 2,
|
|
3036
|
+
marginTop: e.spacing(3),
|
|
3037
|
+
marginBottom: e.spacing(1)
|
|
3038
|
+
})), pa = (e) => {
|
|
3039
|
+
let t = document.createElement("div");
|
|
3040
|
+
return t.innerHTML = e.trim(), t;
|
|
3041
|
+
}, ma = class extends U.Component {
|
|
3042
|
+
static propTypes = {
|
|
3043
|
+
configuration: Q.default.object.isRequired,
|
|
3044
|
+
model: Q.default.object.isRequired,
|
|
3045
|
+
disableSidePanel: Q.default.bool,
|
|
3046
|
+
onModelChanged: Q.default.func.isRequired,
|
|
3047
|
+
onConfigurationChanged: Q.default.func.isRequired,
|
|
3048
|
+
imageSupport: Q.default.shape({
|
|
3049
|
+
add: Q.default.func.isRequired,
|
|
3050
|
+
delete: Q.default.func.isRequired
|
|
3051
|
+
}),
|
|
3052
|
+
uploadSoundSupport: Q.default.object
|
|
3053
|
+
};
|
|
3054
|
+
state = {};
|
|
3055
|
+
componentDidMount() {
|
|
3056
|
+
let { model: { slateMarkup: e, choices: t, maxLengthPerChoice: n = [] }, onModelChanged: r } = this.props, i = !n.length;
|
|
3057
|
+
this.setState({ markup: e }), Object.values(t).forEach((e, t) => {
|
|
3058
|
+
let r = e.map((e) => Hi(e.label || "").length), a = Math.max(...r);
|
|
3059
|
+
(i || !n[t] || n[t] < a || n[t] > a + 10) && (n[t] = Bi(a));
|
|
3060
|
+
}), r({ maxLengthPerChoice: n });
|
|
3061
|
+
}
|
|
3062
|
+
onModelChange = (e) => {
|
|
3063
|
+
this.props.onModelChanged({ ...e });
|
|
3064
|
+
};
|
|
3065
|
+
onPromptChanged = (e) => {
|
|
3066
|
+
this.props.onModelChanged({ prompt: e });
|
|
3067
|
+
};
|
|
3068
|
+
onRationaleChanged = (e) => {
|
|
3069
|
+
this.props.onModelChanged({ rationale: e });
|
|
3070
|
+
};
|
|
3071
|
+
onTeacherInstructionsChanged = (e) => {
|
|
3072
|
+
let { onModelChanged: t } = this.props;
|
|
3073
|
+
t({ teacherInstructions: e });
|
|
3074
|
+
};
|
|
3075
|
+
onMarkupChanged = (e) => {
|
|
3076
|
+
this.props.onModelChanged({ slateMarkup: e });
|
|
3077
|
+
};
|
|
3078
|
+
onResponsesChanged = (e) => {
|
|
3079
|
+
this.props.onModelChanged({ choices: e });
|
|
3080
|
+
};
|
|
3081
|
+
onLengthChanged = (e) => {
|
|
3082
|
+
let { onModelChanged: t } = this.props;
|
|
3083
|
+
t({ maxLengthPerChoice: e });
|
|
3084
|
+
};
|
|
3085
|
+
onChangeResponse = (e, t) => {
|
|
3086
|
+
let { model: n, onModelChanged: r } = this.props, { choices: i } = n, { maxLengthPerChoice: a } = n, o = Hi(t || "").length;
|
|
3087
|
+
if (!i[e] || !i[e].length) {
|
|
3088
|
+
i[e] = [{
|
|
3089
|
+
label: t || "",
|
|
3090
|
+
value: "0"
|
|
3091
|
+
}];
|
|
3092
|
+
let n = e > a.length ? e - a.length : 0;
|
|
3093
|
+
a = [...a, ...Array(n).fill(1)], a.splice(e, 0, Bi(o));
|
|
3094
|
+
} else i[e][0].label = t || "", a && (a[e] < o || a[e] > o + 10) && (a[e] = Bi(o));
|
|
3095
|
+
r({
|
|
3096
|
+
choices: i,
|
|
3097
|
+
maxLengthPerChoice: a
|
|
3098
|
+
});
|
|
3099
|
+
};
|
|
3100
|
+
onChange = (e) => {
|
|
3101
|
+
let { model: { choices: t, maxLengthPerChoice: n }, onModelChanged: r } = this.props, i = pa(e), a = i.querySelectorAll("[data-type=\"explicit_constructed_response\"]"), o = {}, s = [];
|
|
3102
|
+
a.forEach((e, r) => {
|
|
3103
|
+
let i = J(t[e.dataset.index]);
|
|
3104
|
+
i && (i[0] = {
|
|
3105
|
+
label: e.dataset.value || "",
|
|
3106
|
+
value: "0"
|
|
3107
|
+
}, s[r] = n[e.dataset.index]), o[r] = i, e.dataset.index = r;
|
|
3108
|
+
}), this.setState({ cachedChoices: void 0 }, () => r({
|
|
3109
|
+
choices: o,
|
|
3110
|
+
slateMarkup: i.innerHTML,
|
|
3111
|
+
maxLengthPerChoice: s
|
|
3112
|
+
}));
|
|
3113
|
+
};
|
|
3114
|
+
onHandleAreaChange = rt((e) => {
|
|
3115
|
+
let { model: { choices: t }, onModelChanged: n } = this.props, { cachedChoices: r } = this.state;
|
|
3116
|
+
if (!e) return;
|
|
3117
|
+
let i = t ? J(t) : {}, a = r ? J(r) : {};
|
|
3118
|
+
e.forEach((e) => {
|
|
3119
|
+
let t = e.index;
|
|
3120
|
+
!i[t] && a[t] ? (Object.assign(i, et(a, t)), Object.prototype.hasOwnProperty.call(a, t) && delete a[t]) : (Object.assign(a, et(i, t)), Object.prototype.hasOwnProperty.call(i, t) && delete i[t]);
|
|
3121
|
+
}), this.setState({ cachedChoices: a }, () => n({ choices: i }));
|
|
3122
|
+
}, 500, {
|
|
3123
|
+
trailing: !1,
|
|
3124
|
+
leading: !0
|
|
3125
|
+
});
|
|
3126
|
+
render() {
|
|
3127
|
+
let { model: e, configuration: t, onConfigurationChanged: n, imageSupport: r, uploadSoundSupport: i } = this.props, { baseInputConfiguration: a = {}, contentDimensions: o = {}, maxImageWidth: s = {}, maxImageHeight: c = {}, maxLengthPerChoice: l = {}, maxResponseAreas: u, partialScoring: d = {}, playerSpellCheck: f = {}, prompt: m = {}, rationale: h = {}, template: g = {}, settingsPanelDisabled: _, spellCheck: v = {}, editSource: y = {}, teacherInstructions: b = {}, withRubric: x = {}, mathMlOptions: S = {}, language: C = {}, languageChoices: w = {}, spanishButton: T = {}, responseAreaInputConfiguration: E = {} } = t || {}, { errors: D, extraCSSRules: ee, maxLengthPerChoiceEnabled: O, promptEnabled: k, rationaleEnabled: A, spellCheckEnabled: te, teacherInstructionsEnabled: j, toolbarEditorPosition: ne } = e || {}, { choices: re = {}, prompt: M, rationale: ie, responseAreas: N, teacherInstructions: ae } = D || {}, P = ra(t), F = s && s.prompt, oe = c && c.prompt, se = { position: ne === "top" ? "top" : "bottom" }, ce = {
|
|
3128
|
+
partialScoring: d.settings && $(d.label),
|
|
3129
|
+
maxLengthPerChoiceEnabled: l.settings && $(l.label),
|
|
3130
|
+
"language.enabled": C.settings && $(C.label, !0),
|
|
3131
|
+
language: C.settings && C.enabled && aa(w.label, w.options),
|
|
3132
|
+
"responseAreaInputConfiguration.inputConfiguration.characters.disabled": T.settings && $(T.label, !0)
|
|
3133
|
+
}, le = {
|
|
3134
|
+
teacherInstructionsEnabled: b.settings && $(b.label),
|
|
3135
|
+
rationaleEnabled: h.settings && $(h.label),
|
|
3136
|
+
promptEnabled: m.settings && $(m.label),
|
|
3137
|
+
spellCheckEnabled: v.settings && $(v.label),
|
|
3138
|
+
playerSpellCheckEnabled: f.settings && $(f.label),
|
|
3139
|
+
rubricEnabled: x?.settings && $(x?.label),
|
|
3140
|
+
"editSource.enabled": y?.settings && $(y.label, !0)
|
|
3141
|
+
}, I = (e = {}) => ({
|
|
3142
|
+
...a,
|
|
3143
|
+
...e
|
|
3144
|
+
});
|
|
3145
|
+
return /* @__PURE__ */ K(Br.ConfigLayout, {
|
|
3146
|
+
extraCSSRules: ee,
|
|
3147
|
+
dimensions: o,
|
|
3148
|
+
hideSettings: _,
|
|
3149
|
+
settings: /* @__PURE__ */ G(ia, {
|
|
3150
|
+
model: e,
|
|
3151
|
+
configuration: t,
|
|
3152
|
+
onChangeModel: (e) => this.onModelChange(e),
|
|
3153
|
+
onChangeConfiguration: (e) => n(e, !0),
|
|
3154
|
+
groups: {
|
|
3155
|
+
Settings: ce,
|
|
3156
|
+
Properties: le
|
|
3157
|
+
}
|
|
3158
|
+
}),
|
|
3159
|
+
children: [
|
|
3160
|
+
j && /* @__PURE__ */ K(oa, {
|
|
3161
|
+
label: b.label,
|
|
3162
|
+
children: [/* @__PURE__ */ G(B, {
|
|
3163
|
+
className: "prompt",
|
|
3164
|
+
markup: e.teacherInstructions || "",
|
|
3165
|
+
onChange: this.onTeacherInstructionsChanged,
|
|
3166
|
+
imageSupport: r,
|
|
3167
|
+
nonEmpty: !1,
|
|
3168
|
+
error: ae,
|
|
3169
|
+
toolbarOpts: se,
|
|
3170
|
+
pluginProps: I(b?.inputConfiguration),
|
|
3171
|
+
spellCheck: te,
|
|
3172
|
+
maxImageWidth: s && s.teacherInstructions || F,
|
|
3173
|
+
maxImageHeight: c && c.teacherInstructions || oe,
|
|
3174
|
+
uploadSoundSupport: i,
|
|
3175
|
+
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
3176
|
+
mathMlOptions: S,
|
|
3177
|
+
autoWidthToolbar: !0
|
|
3178
|
+
}), ae && /* @__PURE__ */ G(ua, { children: ae })]
|
|
3179
|
+
}),
|
|
3180
|
+
k && /* @__PURE__ */ K(oa, {
|
|
3181
|
+
label: m.label,
|
|
3182
|
+
children: [/* @__PURE__ */ G(B, {
|
|
3183
|
+
className: "prompt",
|
|
3184
|
+
markup: e.prompt,
|
|
3185
|
+
onChange: this.onPromptChanged,
|
|
3186
|
+
imageSupport: r,
|
|
3187
|
+
nonEmpty: !1,
|
|
3188
|
+
disableUnderline: !0,
|
|
3189
|
+
error: M,
|
|
3190
|
+
toolbarOpts: se,
|
|
3191
|
+
pluginProps: I(m?.inputConfiguration),
|
|
3192
|
+
spellCheck: te,
|
|
3193
|
+
maxImageWidth: F,
|
|
3194
|
+
maxImageHeight: oe,
|
|
3195
|
+
uploadSoundSupport: i,
|
|
3196
|
+
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
3197
|
+
mathMlOptions: S,
|
|
3198
|
+
autoWidthToolbar: !0
|
|
3199
|
+
}), M && /* @__PURE__ */ G(ua, { children: M })]
|
|
3200
|
+
}),
|
|
3201
|
+
/* @__PURE__ */ K(da, { children: [/* @__PURE__ */ G(ca, {
|
|
3202
|
+
component: "div",
|
|
3203
|
+
children: "Define Template, Choices, and Correct Responses"
|
|
3204
|
+
}), /* @__PURE__ */ G(la, {
|
|
3205
|
+
disableFocusListener: !0,
|
|
3206
|
+
disableTouchListener: !0,
|
|
3207
|
+
placement: "right",
|
|
3208
|
+
title: P,
|
|
3209
|
+
children: /* @__PURE__ */ G(ji, {
|
|
3210
|
+
fontSize: "small",
|
|
3211
|
+
color: "primary",
|
|
3212
|
+
style: { marginLeft: "8px" }
|
|
3213
|
+
})
|
|
3214
|
+
})] }),
|
|
3215
|
+
/* @__PURE__ */ G(sa, {
|
|
3216
|
+
activePlugins: pe,
|
|
3217
|
+
toolbarOpts: { position: "top" },
|
|
3218
|
+
spellCheck: te,
|
|
3219
|
+
pluginProps: I(g?.inputConfiguration),
|
|
3220
|
+
responseAreaProps: {
|
|
3221
|
+
type: "explicit-constructed-response",
|
|
3222
|
+
options: { duplicates: !0 },
|
|
3223
|
+
maxResponseAreas: u,
|
|
3224
|
+
respAreaToolbar: (e, t, n) => {
|
|
3225
|
+
let [r, i] = e, { model: a } = this.props, o = (a.choices[r.attrs.index] || [])[0];
|
|
3226
|
+
return () => /* @__PURE__ */ G(Wi, {
|
|
3227
|
+
onChangeResponse: (e) => this.onChangeResponse(r.attrs.index, e),
|
|
3228
|
+
node: r,
|
|
3229
|
+
pos: i,
|
|
3230
|
+
editor: t,
|
|
3231
|
+
onToolbarDone: n,
|
|
3232
|
+
correctChoice: o,
|
|
3233
|
+
maxLengthPerChoiceEnabled: O,
|
|
3234
|
+
pluginProps: I(E?.inputConfiguration)
|
|
3235
|
+
});
|
|
3236
|
+
},
|
|
3237
|
+
error: () => re,
|
|
3238
|
+
onHandleAreaChange: this.onHandleAreaChange
|
|
3239
|
+
},
|
|
3240
|
+
markup: e.slateMarkup,
|
|
3241
|
+
onChange: this.onChange,
|
|
3242
|
+
imageSupport: r,
|
|
3243
|
+
disableImageAlignmentButtons: !0,
|
|
3244
|
+
onBlur: this.onBlur,
|
|
3245
|
+
disabled: !1,
|
|
3246
|
+
highlightShape: !1,
|
|
3247
|
+
error: N,
|
|
3248
|
+
uploadSoundSupport: i,
|
|
3249
|
+
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
3250
|
+
mathMlOptions: S,
|
|
3251
|
+
autoWidthToolbar: !0
|
|
3252
|
+
}),
|
|
3253
|
+
N && /* @__PURE__ */ G(ua, { children: N }),
|
|
3254
|
+
!p(e.choices) && /* @__PURE__ */ G(fa, { children: `Define Alternates ${O ? "and Character Limits" : ""}` }),
|
|
3255
|
+
/* @__PURE__ */ G(na, {
|
|
3256
|
+
model: e,
|
|
3257
|
+
onChange: this.onResponsesChanged,
|
|
3258
|
+
onLengthChange: this.onLengthChanged,
|
|
3259
|
+
maxLengthPerChoiceEnabled: O,
|
|
3260
|
+
spellCheck: te,
|
|
3261
|
+
choicesErrors: re,
|
|
3262
|
+
pluginProps: I(E?.inputConfiguration)
|
|
3263
|
+
}),
|
|
3264
|
+
A && /* @__PURE__ */ K(oa, {
|
|
3265
|
+
label: h.label,
|
|
3266
|
+
children: [/* @__PURE__ */ G(B, {
|
|
3267
|
+
className: "prompt",
|
|
3268
|
+
markup: e.rationale || "",
|
|
3269
|
+
onChange: this.onRationaleChanged,
|
|
3270
|
+
imageSupport: r,
|
|
3271
|
+
error: ie,
|
|
3272
|
+
toolbarOpts: se,
|
|
3273
|
+
pluginProps: I(h?.inputConfiguration),
|
|
3274
|
+
spellCheck: te,
|
|
3275
|
+
maxImageWidth: s && s.rationale || F,
|
|
3276
|
+
maxImageHeight: c && c.rationale || oe,
|
|
3277
|
+
uploadSoundSupport: i,
|
|
3278
|
+
languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
|
|
3279
|
+
mathMlOptions: S,
|
|
3280
|
+
autoWidthToolbar: !0
|
|
3281
|
+
}), ie && /* @__PURE__ */ G(ua, { children: ie })]
|
|
3282
|
+
})
|
|
3283
|
+
]
|
|
3284
|
+
});
|
|
3285
|
+
}
|
|
3286
|
+
}, ha = {
|
|
3287
|
+
model: {
|
|
3288
|
+
choices: {},
|
|
3289
|
+
displayType: "block",
|
|
3290
|
+
markup: "",
|
|
3291
|
+
maxLengthPerChoiceEnabled: !0,
|
|
3292
|
+
playerSpellCheckEnabled: !0,
|
|
3293
|
+
prompt: "",
|
|
3294
|
+
promptEnabled: !0,
|
|
3295
|
+
rationale: "",
|
|
3296
|
+
rationaleEnabled: !0,
|
|
3297
|
+
spellCheckEnabled: !0,
|
|
3298
|
+
studentInstructionsEnabled: !0,
|
|
3299
|
+
teacherInstructions: "",
|
|
3300
|
+
teacherInstructionsEnabled: !0,
|
|
3301
|
+
toolbarEditorPosition: "bottom",
|
|
3302
|
+
responseAreaInputConfiguration: {}
|
|
3303
|
+
},
|
|
3304
|
+
configuration: {
|
|
3305
|
+
baseInputConfiguration: {
|
|
3306
|
+
h3: { disabled: !0 },
|
|
3307
|
+
html: { disabled: !0 },
|
|
3308
|
+
audio: { disabled: !1 },
|
|
3309
|
+
video: { disabled: !1 },
|
|
3310
|
+
image: { disabled: !1 },
|
|
3311
|
+
textAlign: { disabled: !0 },
|
|
3312
|
+
showParagraphs: { disabled: !1 },
|
|
3313
|
+
separateParagraphs: { disabled: !0 }
|
|
3314
|
+
},
|
|
3315
|
+
prompt: {
|
|
3316
|
+
settings: !0,
|
|
3317
|
+
label: "Prompt",
|
|
3318
|
+
inputConfiguration: {
|
|
3319
|
+
audio: { disabled: !1 },
|
|
3320
|
+
video: { disabled: !1 },
|
|
3321
|
+
image: { disabled: !1 }
|
|
3322
|
+
},
|
|
3323
|
+
required: !1
|
|
3324
|
+
},
|
|
3325
|
+
partialScoring: {
|
|
3326
|
+
settings: !1,
|
|
3327
|
+
label: "Allow Partial Scoring"
|
|
3328
|
+
},
|
|
3329
|
+
rationale: {
|
|
3330
|
+
settings: !0,
|
|
3331
|
+
label: "Rationale",
|
|
3332
|
+
inputConfiguration: {
|
|
3333
|
+
audio: { disabled: !1 },
|
|
3334
|
+
video: { disabled: !1 },
|
|
3335
|
+
image: { disabled: !1 }
|
|
3336
|
+
},
|
|
3337
|
+
required: !1
|
|
3338
|
+
},
|
|
3339
|
+
settingsPanelDisabled: !1,
|
|
3340
|
+
spellCheck: {
|
|
3341
|
+
label: "Spellcheck",
|
|
3342
|
+
settings: !1,
|
|
3343
|
+
enabled: !0
|
|
3344
|
+
},
|
|
3345
|
+
editSource: {
|
|
3346
|
+
label: "Edit Source",
|
|
3347
|
+
settings: !1,
|
|
3348
|
+
enabled: !1
|
|
3349
|
+
},
|
|
3350
|
+
playerSpellCheck: {
|
|
3351
|
+
label: "Student Spellcheck",
|
|
3352
|
+
settings: !0,
|
|
3353
|
+
enabled: !0
|
|
3354
|
+
},
|
|
3355
|
+
teacherInstructions: {
|
|
3356
|
+
settings: !0,
|
|
3357
|
+
label: "Teacher Instructions",
|
|
3358
|
+
inputConfiguration: {
|
|
3359
|
+
audio: { disabled: !1 },
|
|
3360
|
+
video: { disabled: !1 },
|
|
3361
|
+
image: { disabled: !1 }
|
|
3362
|
+
},
|
|
3363
|
+
required: !1
|
|
3364
|
+
},
|
|
3365
|
+
template: { inputConfiguration: {
|
|
3366
|
+
audio: { disabled: !1 },
|
|
3367
|
+
video: { disabled: !1 },
|
|
3368
|
+
image: { disabled: !1 },
|
|
3369
|
+
h3: { disabled: !0 },
|
|
3370
|
+
blockquote: { disabled: !0 }
|
|
3371
|
+
} },
|
|
3372
|
+
maxLengthPerChoice: {
|
|
3373
|
+
settings: !0,
|
|
3374
|
+
label: "Maximum Length Per Choice"
|
|
3375
|
+
},
|
|
3376
|
+
maxResponseAreas: 10,
|
|
3377
|
+
maxImageWidth: {
|
|
3378
|
+
teacherInstructions: 300,
|
|
3379
|
+
prompt: 300,
|
|
3380
|
+
rationale: 300
|
|
3381
|
+
},
|
|
3382
|
+
maxImageHeight: {
|
|
3383
|
+
teacherInstructions: 300,
|
|
3384
|
+
prompt: 300,
|
|
3385
|
+
rationale: 300
|
|
3386
|
+
},
|
|
3387
|
+
withRubric: {
|
|
3388
|
+
settings: !1,
|
|
3389
|
+
label: "Add Rubric"
|
|
3390
|
+
},
|
|
3391
|
+
mathMlOptions: {
|
|
3392
|
+
mmlOutput: !1,
|
|
3393
|
+
mmlEditing: !1
|
|
3394
|
+
},
|
|
3395
|
+
language: {
|
|
3396
|
+
settings: !1,
|
|
3397
|
+
label: "Specify Language",
|
|
3398
|
+
enabled: !1
|
|
3399
|
+
},
|
|
3400
|
+
languageChoices: {
|
|
3401
|
+
label: "Language Choices",
|
|
3402
|
+
options: []
|
|
3403
|
+
},
|
|
3404
|
+
responseAreaInputConfiguration: { inputConfiguration: { characters: { disabled: !0 } } },
|
|
3405
|
+
spanishButton: {
|
|
3406
|
+
settings: !0,
|
|
3407
|
+
label: "Disable Spanish Characters"
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
}, ga = (0, at.default)("explicit-constructed-response:configure"), _a = class e extends HTMLElement {
|
|
3411
|
+
static prepareModel = (e = {}) => {
|
|
3412
|
+
let t = {
|
|
3413
|
+
...ha.model,
|
|
3414
|
+
...e
|
|
3415
|
+
}, n = t.slateMarkup || zi(t.markup, t.choices), r = Li(n);
|
|
3416
|
+
return t.choices && Object.keys(t.choices).forEach((e) => {
|
|
3417
|
+
a(t.choices[e]) && (t.choices[e] = (t.choices[e] || []).map((e, t) => e.value ? e : (ga("Choice does not contain \"value\" property, which is required.", e), {
|
|
3418
|
+
value: `${t}`,
|
|
3419
|
+
...e
|
|
3420
|
+
})));
|
|
3421
|
+
}), {
|
|
3422
|
+
...t,
|
|
3423
|
+
slateMarkup: n,
|
|
3424
|
+
markup: r
|
|
3425
|
+
};
|
|
3426
|
+
};
|
|
3427
|
+
constructor() {
|
|
3428
|
+
super(), this._root = null, this._model = e.prepareModel(), this._configuration = ha.configuration;
|
|
3429
|
+
}
|
|
3430
|
+
set model(t) {
|
|
3431
|
+
this._model = e.prepareModel(t), this._model.responseAreaInputConfiguration && (this._model.responseAreaInputConfiguration = this._configuration.responseAreaInputConfiguration?.inputConfiguration), this._render();
|
|
3432
|
+
}
|
|
3433
|
+
set configuration(e) {
|
|
3434
|
+
this._configuration = He(e, ha.configuration), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
|
|
3435
|
+
value: this._model.language,
|
|
3436
|
+
label: this._model.language
|
|
3437
|
+
})) : delete this._model.language, this._render();
|
|
3438
|
+
}
|
|
3439
|
+
set disableSidePanel(e) {
|
|
3440
|
+
this._disableSidePanel = e, this._render();
|
|
3441
|
+
}
|
|
3442
|
+
dispatchModelUpdated(e) {
|
|
3443
|
+
let t = !!e;
|
|
3444
|
+
this.dispatchEvent(new ot(this._model, t));
|
|
3445
|
+
}
|
|
3446
|
+
onModelChanged = (t, n) => {
|
|
3447
|
+
this._model = e.prepareModel({
|
|
3448
|
+
...this._model,
|
|
3449
|
+
...t
|
|
3450
|
+
}), this._render(), this.dispatchModelUpdated(n);
|
|
3451
|
+
};
|
|
3452
|
+
onConfigurationChanged = (e) => {
|
|
3453
|
+
this._configuration = e;
|
|
3454
|
+
let t = this._configuration?.responseAreaInputConfiguration?.inputConfiguration;
|
|
3455
|
+
this._model = {
|
|
3456
|
+
...this._model,
|
|
3457
|
+
responseAreaInputConfiguration: t
|
|
3458
|
+
}, this.onModelChanged(this._model);
|
|
3459
|
+
};
|
|
3460
|
+
insertImage(e) {
|
|
3461
|
+
this.dispatchEvent(new ct(e));
|
|
3462
|
+
}
|
|
3463
|
+
onDeleteImage(e, t) {
|
|
3464
|
+
this.dispatchEvent(new st(e, t));
|
|
3465
|
+
}
|
|
3466
|
+
insertSound(e) {
|
|
3467
|
+
this.dispatchEvent(new ut(e));
|
|
3468
|
+
}
|
|
3469
|
+
onDeleteSound(e, t) {
|
|
3470
|
+
this.dispatchEvent(new lt(e, t));
|
|
3471
|
+
}
|
|
3472
|
+
_render() {
|
|
3473
|
+
ga("_render");
|
|
3474
|
+
let e = U.createElement(ma, {
|
|
3475
|
+
model: this._model,
|
|
3476
|
+
configuration: this._configuration,
|
|
3477
|
+
onModelChanged: this.onModelChanged,
|
|
3478
|
+
onConfigurationChanged: this.onConfigurationChanged,
|
|
3479
|
+
disableSidePanel: this._disableSidePanel,
|
|
3480
|
+
imageSupport: {
|
|
3481
|
+
add: this.insertImage.bind(this),
|
|
3482
|
+
delete: this.onDeleteImage.bind(this)
|
|
3483
|
+
},
|
|
3484
|
+
uploadSoundSupport: {
|
|
3485
|
+
add: this.insertSound.bind(this),
|
|
3486
|
+
delete: this.onDeleteSound.bind(this)
|
|
3487
|
+
}
|
|
3488
|
+
});
|
|
3489
|
+
this._root ||= W(this), this._root.render(e);
|
|
3490
|
+
}
|
|
3491
|
+
disconnectedCallback() {
|
|
3492
|
+
this._root && this._root.unmount();
|
|
3493
|
+
}
|
|
3494
|
+
};
|
|
3495
|
+
//#endregion
|
|
3496
|
+
export { _a as default };
|
|
3497
|
+
|
|
3498
|
+
//# sourceMappingURL=index.js.map
|