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