lido-player 0.0.2-alpha-52-dev → 0.0.2-alpha-55-dev
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/cjs/index.cjs.js +1 -1
- package/dist/cjs/lido-avatar_22.cjs.entry.js +187 -59
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-ce99b0d0.js → utils-4b44610b.js} +111 -86
- package/dist/collection/components/calculator/lido-calculator.js +4 -2
- package/dist/collection/components/container/lido-container.js +24 -2
- package/dist/collection/components/home/lido-home.css +4 -0
- package/dist/collection/components/home/lido-home.js +27 -3
- package/dist/collection/components/trace/lido-trace.js +122 -47
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +26 -25
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +3 -1
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +1 -1
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +1 -1
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
- package/dist/collection/stories/Templates/blender/blender.stories.js +1 -1
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +1 -1
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +1 -1
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +1 -1
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +1 -1
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +1 -1
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +1 -1
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +1 -1
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +1 -1
- package/dist/collection/stories/Templates/grid/grid.stories.js +5 -1
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +1 -1
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +4 -2
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +1 -1
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +1 -1
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +4 -2
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +1 -1
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +1 -1
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +1 -1
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +1 -1
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +1 -1
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +2 -2
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +2 -2
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +1 -1
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +1 -1
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +1 -1
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +5 -1
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +1 -1
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +3 -1
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +2 -2
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +6 -6
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +7 -6
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +1 -1
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +25 -21
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +1 -1
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +8 -6
- package/dist/collection/stories/Templates/total/total.stories.js +1 -1
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +1 -1
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +2 -2
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +6 -6
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +1 -1
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +7 -6
- package/dist/collection/utils/customEvents.js +1 -0
- package/dist/collection/utils/utils.js +20 -17
- package/dist/collection/utils/utilsHandlers/animationHandler.js +58 -0
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +19 -60
- package/dist/collection/utils/utilsHandlers/slideHandler.js +7 -6
- package/dist/collection/utils/utilsHandlers/sortHandler.js +3 -5
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-image.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-math-matrix.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +23 -23
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.js +1 -1
- package/dist/components/lido-slide-fill.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/lido-wrap.js +1 -1
- package/dist/components/{p-39a2e638.js → p-0be6b5d5.js} +2 -2
- package/dist/components/{p-11bf64aa.js → p-2c518dbe.js} +1 -1
- package/dist/components/{p-c4abfd0f.js → p-2e023f67.js} +1 -1
- package/dist/components/{p-58c67252.js → p-36c2e21a.js} +110 -87
- package/dist/components/{p-52e77394.js → p-3fc01453.js} +1 -1
- package/dist/components/{p-06171259.js → p-43d79c61.js} +1 -1
- package/dist/components/{p-00777872.js → p-5078599e.js} +26 -4
- package/dist/components/{p-26df0769.js → p-590ce2c9.js} +1 -1
- package/dist/components/{p-5b5f59a8.js → p-67a24ad4.js} +2 -2
- package/dist/components/{p-68112f8c.js → p-72d6a594.js} +1 -1
- package/dist/components/{p-3ce3744c.js → p-73b2bd74.js} +6 -4
- package/dist/components/{p-0fbeb3a1.js → p-73e3f0f4.js} +12 -6
- package/dist/components/{p-0c2aebfb.js → p-9acf0fcc.js} +1 -1
- package/dist/components/{p-a2f96840.js → p-b095de27.js} +1 -1
- package/dist/components/{p-b2125fc9.js → p-b0dbee97.js} +48 -24
- package/dist/components/{p-a516a324.js → p-b847f269.js} +123 -48
- package/dist/components/{p-9d34d59d.js → p-bc5202db.js} +2 -2
- package/dist/components/{p-cb56a853.js → p-c296051d.js} +1 -1
- package/dist/components/{p-8a34b98b.js → p-c69ef266.js} +1 -1
- package/dist/components/{p-2d53e1a5.js → p-ca8aea4b.js} +1 -1
- package/dist/components/{p-3f4d4c0a.js → p-de2193c5.js} +1 -1
- package/dist/components/{p-09f1e2d2.js → p-e534ea52.js} +1 -1
- package/dist/components/{p-8f2ed62f.js → p-f8c00485.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +187 -59
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-107b15a7.js → utils-ae1eb036.js} +110 -87
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-d1251482.js → p-a632e2ce.js} +2 -2
- package/dist/lido-player/p-f1b879f6.entry.js +1 -0
- package/dist/types/components/container/lido-container.d.ts +1 -0
- package/dist/types/components/home/lido-home.d.ts +1 -0
- package/dist/types/components/trace/lido-trace.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/types/utils/utilsHandlers/animationHandler.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lido-player/p-606ea279.entry.js +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy(JSON.parse("[[\"lido-avatar_22.cjs\",[[0,\"lido-root\",{\"locale\":[1],\"xmlPath\":[1,\"xml-path\"],\"initialIndex\":[2,\"initial-index\"],\"margin\":[1],\"canplay\":[4],\"baseUrl\":[1,\"base-url\"],\"exitButtonUrl\":[1,\"exit-button-url\"],\"prevButtonUrl\":[1,\"prev-button-url\"],\"nextButtonUrl\":[1,\"next-button-url\"],\"speakerButtonUrl\":[1,\"speaker-button-url\"],\"xmlData\":[32]},null,{\"locale\":[\"onLangChange\"]}],[0,\"lido-home\",{\"showNav\":[4,\"show-nav\"],\"activeContainerIndexes\":[16],\"locale\":[1],\"xmlData\":[1,\"xml-data\"],\"initialIndex\":[2,\"initial-index\"],\"canplay\":[4],\"baseUrl\":[1,\"base-url\"],\"height\":[1],\"exitButtonUrl\":[1,\"exit-button-url\"],\"prevButtonUrl\":[1,\"prev-button-url\"],\"nextButtonUrl\":[1,\"next-button-url\"],\"speakerButtonUrl\":[1,\"speaker-button-url\"],\"avatarUrl\":[1,\"avatar-url\"],\"uuid\":[1],\"navBarIcons\":[32],\"currentContainerIndex\":[32],\"exitFlag\":[32],\"containers\":[32],\"showDotsandbtn\":[32]},null,{\"locale\":[\"onLangChange\"],\"xmlData\":[\"onXmlDataChange\"]}],[0,\"lido-calculator\",{\"width\":[1],\"visible\":[8],\"height\":[1],\"objective\":[1],\"onEntry\":[1,\"on-entry\"],\"x\":[1],\"y\":[1],\"bgColor\":[1,\"bg-color\"],\"penIcon\":[1,\"pen-icon\"],\"displayValue\":[32],\"style\":[32]}],[1,\"lido-canvas\",{\"bgImage\":[1,\"bg-image\"],\"width\":[1],\"height\":[1],\"x\":[1],\"y\":[1],\"onEntry\":[1,\"on-entry\"],\"style\":[32]}],[0,\"lido-keyboard\",{\"keys\":[1],\"width\":[1],\"height\":[1],\"fontSize\":[1,\"font-size\"],\"fontColor\":[1,\"font-color\"],\"fontFamily\":[1,\"font-family\"],\"gap\":[1],\"bgColor\":[1,\"bg-color\"],\"borderRadius\":[1,\"border-radius\"],\"y\":[1],\"x\":[1],\"z\":[1],\"margin\":[1],\"padding\":[1],\"visible\":[1],\"onEntry\":[1,\"on-entry\"],\"type\":[1],\"keyboardInput\":[4,\"keyboard-input\"],\"columns\":[1],\"letterLength\":[2,\"letter-length\"],\"disableSpeak\":[4,\"disable-speak\"],\"numberOfClick\":[32],\"inputString\":[32],\"style\":[32]}],[0,\"lido-avatar\",{\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"src\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"delayVisible\":[1,\"delay-visible\"]}],[0,\"lido-balance\",{\"pivotimage\":[1],\"scaleimage\":[1],\"handlerimage\":[1],\"fill\":[1],\"tilt\":[2],\"maxTilt\":[2,\"max-tilt\"],\"onEntry\":[1,\"on-entry\"],\"height\":[1],\"width\":[1],\"x\":[1],\"y\":[1],\"z\":[1],\"visible\":[8],\"margin\":[1],\"padding\":[1],\"balanceSymbol\":[1537,\"balance-symbol\"],\"showSymbol\":[1540,\"show-symbol\"],\"operation\":[1],\"pivotSvg\":[32],\"scaleSvg\":[32],\"handlerSvg\":[32],\"style\":[32],\"tiltf\":[32],\"leftVal\":[32],\"rightVal\":[32],\"revealSymbol\":[64],\"hideSymbol\":[64],\"updateTilt\":[64]},null,{\"tilt\":[\"tiltChanged\"]}],[4,\"lido-col\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"childElementsLength\":[2,\"child-elements-length\"],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"direction\":[1],\"borderImage\":[1,\"border-image\"],\"boxShadow\":[1,\"box-shadow\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"style\":[32]}],[4,\"lido-container\",{\"locale\":[1],\"showDropBorder\":[4,\"show-drop-border\"],\"appendToDropOnCompletion\":[4,\"append-to-drop-on-completion\"],\"id\":[1],\"objective\":[1],\"customStyle\":[1,\"custom-style\"],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"bgImage\":[1,\"bg-image\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"canplay\":[4],\"showCheck\":[4,\"show-check\"],\"isContinueOnCorrect\":[4,\"is-continue-on-correct\"],\"isAllowOnlyCorrect\":[4,\"is-allow-only-correct\"],\"baseUrl\":[1,\"base-url\"],\"margin\":[1],\"exitButtonUrl\":[1,\"exit-button-url\"],\"prevButtonUrl\":[1,\"prev-button-url\"],\"nextButtonUrl\":[1,\"next-button-url\"],\"speakerButtonUrl\":[1,\"speaker-button-url\"],\"showPrevButton\":[1,\"show-prev-button\"],\"showNextButton\":[1,\"show-next-button\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"]},null,{\"locale\":[\"languageChanged\"]}],[4,\"lido-flash-card\",{\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"direction\":[1],\"display\":[1],\"front\":[8],\"back\":[8],\"flipped\":[1540],\"margin\":[1],\"disableSpeak\":[4,\"disable-speak\"],\"delayVisible\":[1,\"delay-visible\"],\"style\":[32]},null,{\"flipped\":[\"handleFlippedChange\"]}],[4,\"lido-float\",{\"id\":[1],\"value\":[1],\"z\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"onEntry\":[1,\"on-entry\"],\"width\":[1],\"height\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"delayVisible\":[1,\"delay-visible\"],\"floatDirection\":[1,\"float-direction\"],\"style\":[32]}],[0,\"lido-image\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[8],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"src\":[1],\"isSlice\":[1,\"is-slice\"],\"sliceWidth\":[1,\"slice-width\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"padding\":[1],\"filter\":[1],\"borderRadius\":[1,\"border-radius\"],\"transform\":[1],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}],[0,\"lido-math-matrix\",{\"rows\":[1],\"cols\":[1],\"defualtFill\":[1538,\"defualt-fill\"],\"leftIndex\":[4,\"left-index\"],\"topIndex\":[4,\"top-index\"],\"bottomIndex\":[4,\"bottom-index\"],\"clickable\":[4],\"activeOnlyVisible\":[4,\"active-only-visible\"],\"matrixImage\":[1,\"matrix-image\"],\"activeBgColor\":[1537,\"active-bg-color\"],\"deactiveBgColor\":[1537,\"deactive-bg-color\"],\"border\":[1537],\"height\":[1537],\"width\":[1537],\"borderRadius\":[1,\"border-radius\"],\"z\":[1],\"margin\":[1],\"padding\":[1],\"visible\":[1],\"text\":[1],\"type\":[1],\"value\":[1],\"tabIndex\":[2,\"tab-index\"],\"x\":[1],\"y\":[1],\"fontColor\":[1,\"font-color\"],\"onCorrect\":[1,\"on-correct\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onEntry\":[1,\"on-entry\"],\"previousFilledSlot\":[32],\"previousFilledSlotElement\":[32],\"style\":[32]}],[4,\"lido-pos\",{\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[8],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"style\":[32]}],[4,\"lido-random\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1]}],[4,\"lido-row\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"childElementsLength\":[2,\"child-elements-length\"],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"direction\":[1],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"display\":[1],\"margin\":[1],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}],[0,\"lido-shape\",{\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"shapeType\":[1,\"shape-type\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"]}],[0,\"lido-slide-fill\",{\"id\":[1],\"width\":[1],\"height\":[1],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"visible\":[8],\"margin\":[1],\"padding\":[1],\"borderRadius\":[1,\"border-radius\"],\"fill\":[1],\"numberType\":[1,\"number-type\"],\"min\":[2],\"division\":[2],\"max\":[2],\"slider\":[4],\"src\":[1],\"fillDirection\":[1,\"fill-direction\"],\"type\":[1],\"onEntry\":[1,\"on-entry\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"svgContent\":[32],\"style\":[32]},null,{\"src\":[\"onSrcChange\"],\"fill\":[\"onPropChange\"],\"division\":[\"onPropChange\"],\"fillDirection\":[\"onPropChange\"],\"numberType\":[\"onPropChange\"],\"min\":[\"onPropChange\"],\"max\":[\"onPropChange\"]}],[0,\"lido-trace\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"svgSource\":[1,\"svg-source\"],\"value\":[1],\"height\":[1],\"width\":[1],\"audio\":[1],\"x\":[1],\"y\":[1],\"z\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"tabIndex\":[2,\"tab-index\"],\"mode\":[1],\"fingerHintUrl\":[1,\"finger-hint-url\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"highlightTextId\":[1,\"highlight-text-id\"],\"animationTrace\":[4,\"animation-trace\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"svgUrls\":[32],\"audioUrls\":[32],\"currentSvgIndex\":[32],\"moving\":[32],\"style\":[32],\"fileIndex\":[32],\"isDragging\":[32],\"activePointerId\":[32],\"idleTimer\":[32],\"fingerImg\":[32]},null,{\"svgSource\":[\"initializeSVG\"],\"mode\":[\"initializeSVG\"]}],[4,\"lido-wrap\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"childElementsLength\":[2,\"child-elements-length\"],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"flex\":[1],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}],[4,\"lido-cell\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"scrollbarWidth\":[1,\"scrollbar-width\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"gap\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[1],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"childElementsLength\":[2,\"child-elements-length\"],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"layout\":[1],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"padding\":[1],\"alignItems\":[1,\"align-items\"],\"borderRadius\":[1,\"border-radius\"],\"flexDirection\":[1,\"flex-direction\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}],[0,\"lido-text\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"string\":[1],\"fontFamily\":[1,\"font-family\"],\"fontSize\":[1,\"font-size\"],\"fontColor\":[1,\"font-color\"],\"highlightWhileSpeaking\":[4,\"highlight-while-speaking\"],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"borderImage\":[1,\"border-image\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[8],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"onEntry\":[1,\"on-entry\"],\"margin\":[1],\"padding\":[1],\"borderRadius\":[1,\"border-radius\"],\"spanType\":[1,\"span-type\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}]]]]"), options);
|
|
11
|
+
return index.bootstrapLazy(JSON.parse("[[\"lido-avatar_22.cjs\",[[0,\"lido-root\",{\"locale\":[1],\"xmlPath\":[1,\"xml-path\"],\"initialIndex\":[2,\"initial-index\"],\"margin\":[1],\"canplay\":[4],\"baseUrl\":[1,\"base-url\"],\"exitButtonUrl\":[1,\"exit-button-url\"],\"prevButtonUrl\":[1,\"prev-button-url\"],\"nextButtonUrl\":[1,\"next-button-url\"],\"speakerButtonUrl\":[1,\"speaker-button-url\"],\"xmlData\":[32]},null,{\"locale\":[\"onLangChange\"]}],[0,\"lido-home\",{\"showNav\":[4,\"show-nav\"],\"activeContainerIndexes\":[16],\"locale\":[1],\"xmlData\":[1,\"xml-data\"],\"initialIndex\":[2,\"initial-index\"],\"canplay\":[4],\"baseUrl\":[1,\"base-url\"],\"height\":[1],\"exitButtonUrl\":[1,\"exit-button-url\"],\"prevButtonUrl\":[1,\"prev-button-url\"],\"nextButtonUrl\":[1,\"next-button-url\"],\"speakerButtonUrl\":[1,\"speaker-button-url\"],\"avatarUrl\":[1,\"avatar-url\"],\"uuid\":[1],\"navBarIcons\":[32],\"currentContainerIndex\":[32],\"exitFlag\":[32],\"containers\":[32],\"showDotsandbtn\":[32]},null,{\"locale\":[\"onLangChange\"],\"xmlData\":[\"onXmlDataChange\"]}],[0,\"lido-calculator\",{\"width\":[1],\"visible\":[8],\"height\":[1],\"objective\":[1],\"onEntry\":[1,\"on-entry\"],\"x\":[1],\"y\":[1],\"bgColor\":[1,\"bg-color\"],\"penIcon\":[1,\"pen-icon\"],\"displayValue\":[32],\"style\":[32]}],[1,\"lido-canvas\",{\"bgImage\":[1,\"bg-image\"],\"width\":[1],\"height\":[1],\"x\":[1],\"y\":[1],\"onEntry\":[1,\"on-entry\"],\"style\":[32]}],[0,\"lido-keyboard\",{\"keys\":[1],\"width\":[1],\"height\":[1],\"fontSize\":[1,\"font-size\"],\"fontColor\":[1,\"font-color\"],\"fontFamily\":[1,\"font-family\"],\"gap\":[1],\"bgColor\":[1,\"bg-color\"],\"borderRadius\":[1,\"border-radius\"],\"y\":[1],\"x\":[1],\"z\":[1],\"margin\":[1],\"padding\":[1],\"visible\":[1],\"onEntry\":[1,\"on-entry\"],\"type\":[1],\"keyboardInput\":[4,\"keyboard-input\"],\"columns\":[1],\"letterLength\":[2,\"letter-length\"],\"disableSpeak\":[4,\"disable-speak\"],\"numberOfClick\":[32],\"inputString\":[32],\"style\":[32]}],[0,\"lido-avatar\",{\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"src\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"delayVisible\":[1,\"delay-visible\"]}],[0,\"lido-balance\",{\"pivotimage\":[1],\"scaleimage\":[1],\"handlerimage\":[1],\"fill\":[1],\"tilt\":[2],\"maxTilt\":[2,\"max-tilt\"],\"onEntry\":[1,\"on-entry\"],\"height\":[1],\"width\":[1],\"x\":[1],\"y\":[1],\"z\":[1],\"visible\":[8],\"margin\":[1],\"padding\":[1],\"balanceSymbol\":[1537,\"balance-symbol\"],\"showSymbol\":[1540,\"show-symbol\"],\"operation\":[1],\"pivotSvg\":[32],\"scaleSvg\":[32],\"handlerSvg\":[32],\"style\":[32],\"tiltf\":[32],\"leftVal\":[32],\"rightVal\":[32],\"revealSymbol\":[64],\"hideSymbol\":[64],\"updateTilt\":[64]},null,{\"tilt\":[\"tiltChanged\"]}],[4,\"lido-col\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"childElementsLength\":[2,\"child-elements-length\"],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"direction\":[1],\"borderImage\":[1,\"border-image\"],\"boxShadow\":[1,\"box-shadow\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"style\":[32]}],[4,\"lido-container\",{\"locale\":[1],\"showDropBorder\":[4,\"show-drop-border\"],\"appendToDropOnCompletion\":[4,\"append-to-drop-on-completion\"],\"id\":[1],\"objective\":[1],\"customStyle\":[1,\"custom-style\"],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"bgImage\":[1,\"bg-image\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"canplay\":[4],\"showCheck\":[4,\"show-check\"],\"isContinueOnCorrect\":[4,\"is-continue-on-correct\"],\"isAllowOnlyCorrect\":[4,\"is-allow-only-correct\"],\"baseUrl\":[1,\"base-url\"],\"margin\":[1],\"exitButtonUrl\":[1,\"exit-button-url\"],\"prevButtonUrl\":[1,\"prev-button-url\"],\"nextButtonUrl\":[1,\"next-button-url\"],\"speakerButtonUrl\":[1,\"speaker-button-url\"],\"showPrevButton\":[1,\"show-prev-button\"],\"showNextButton\":[1,\"show-next-button\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"]},null,{\"locale\":[\"languageChanged\"]}],[4,\"lido-flash-card\",{\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"direction\":[1],\"display\":[1],\"front\":[8],\"back\":[8],\"flipped\":[1540],\"margin\":[1],\"disableSpeak\":[4,\"disable-speak\"],\"delayVisible\":[1,\"delay-visible\"],\"style\":[32]},null,{\"flipped\":[\"handleFlippedChange\"]}],[4,\"lido-float\",{\"id\":[1],\"value\":[1],\"z\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"onEntry\":[1,\"on-entry\"],\"width\":[1],\"height\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"delayVisible\":[1,\"delay-visible\"],\"floatDirection\":[1,\"float-direction\"],\"style\":[32]}],[0,\"lido-image\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[8],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"src\":[1],\"isSlice\":[1,\"is-slice\"],\"sliceWidth\":[1,\"slice-width\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"padding\":[1],\"filter\":[1],\"borderRadius\":[1,\"border-radius\"],\"transform\":[1],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}],[0,\"lido-math-matrix\",{\"rows\":[1],\"cols\":[1],\"defualtFill\":[1538,\"defualt-fill\"],\"leftIndex\":[4,\"left-index\"],\"topIndex\":[4,\"top-index\"],\"bottomIndex\":[4,\"bottom-index\"],\"clickable\":[4],\"activeOnlyVisible\":[4,\"active-only-visible\"],\"matrixImage\":[1,\"matrix-image\"],\"activeBgColor\":[1537,\"active-bg-color\"],\"deactiveBgColor\":[1537,\"deactive-bg-color\"],\"border\":[1537],\"height\":[1537],\"width\":[1537],\"borderRadius\":[1,\"border-radius\"],\"z\":[1],\"margin\":[1],\"padding\":[1],\"visible\":[1],\"text\":[1],\"type\":[1],\"value\":[1],\"tabIndex\":[2,\"tab-index\"],\"x\":[1],\"y\":[1],\"fontColor\":[1,\"font-color\"],\"onCorrect\":[1,\"on-correct\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onEntry\":[1,\"on-entry\"],\"previousFilledSlot\":[32],\"previousFilledSlotElement\":[32],\"style\":[32]}],[4,\"lido-pos\",{\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[8],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"style\":[32]}],[4,\"lido-random\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1]}],[4,\"lido-row\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"childElementsLength\":[2,\"child-elements-length\"],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"direction\":[1],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"display\":[1],\"margin\":[1],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}],[0,\"lido-shape\",{\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"shapeType\":[1,\"shape-type\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"]}],[0,\"lido-slide-fill\",{\"id\":[1],\"width\":[1],\"height\":[1],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"visible\":[8],\"margin\":[1],\"padding\":[1],\"borderRadius\":[1,\"border-radius\"],\"fill\":[1],\"numberType\":[1,\"number-type\"],\"min\":[2],\"division\":[2],\"max\":[2],\"slider\":[4],\"src\":[1],\"fillDirection\":[1,\"fill-direction\"],\"type\":[1],\"onEntry\":[1,\"on-entry\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"svgContent\":[32],\"style\":[32]},null,{\"src\":[\"onSrcChange\"],\"fill\":[\"onPropChange\"],\"division\":[\"onPropChange\"],\"fillDirection\":[\"onPropChange\"],\"numberType\":[\"onPropChange\"],\"min\":[\"onPropChange\"],\"max\":[\"onPropChange\"]}],[0,\"lido-trace\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"svgSource\":[1,\"svg-source\"],\"value\":[1],\"height\":[1],\"width\":[1],\"audio\":[1],\"x\":[1],\"y\":[1],\"z\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"tabIndex\":[2,\"tab-index\"],\"mode\":[1],\"fingerHintUrl\":[1,\"finger-hint-url\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"highlightTextId\":[1,\"highlight-text-id\"],\"animationTrace\":[4,\"animation-trace\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"svgUrls\":[32],\"audioUrls\":[32],\"currentSvgIndex\":[32],\"moving\":[32],\"style\":[32],\"fileIndex\":[32],\"isDragging\":[32],\"activePointerId\":[32],\"freeTraceUpdateCounter\":[32],\"idleTimer\":[32],\"fingerImg\":[32]},null,{\"svgSource\":[\"initializeSVG\"],\"mode\":[\"initializeSVG\"]}],[4,\"lido-wrap\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[4],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"childElementsLength\":[2,\"child-elements-length\"],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"flex\":[1],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}],[4,\"lido-cell\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"scrollbarWidth\":[1,\"scrollbar-width\"],\"id\":[1],\"value\":[1],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"gap\":[1],\"bgColor\":[1,\"bg-color\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[1],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"onEntry\":[1,\"on-entry\"],\"childElementsLength\":[2,\"child-elements-length\"],\"minLength\":[2,\"min-length\"],\"maxLength\":[2,\"max-length\"],\"layout\":[1],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"margin\":[1],\"padding\":[1],\"alignItems\":[1,\"align-items\"],\"borderRadius\":[1,\"border-radius\"],\"flexDirection\":[1,\"flex-direction\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}],[0,\"lido-text\",{\"showSpeakIcon\":[4,\"show-speak-icon\"],\"id\":[1],\"value\":[1],\"string\":[1],\"fontFamily\":[1,\"font-family\"],\"fontSize\":[1,\"font-size\"],\"fontColor\":[1,\"font-color\"],\"highlightWhileSpeaking\":[4,\"highlight-while-speaking\"],\"height\":[1],\"width\":[1],\"ariaLabel\":[1,\"aria-label\"],\"ariaHidden\":[1,\"aria-hidden\"],\"x\":[1],\"y\":[1],\"z\":[1],\"bgColor\":[1,\"bg-color\"],\"borderImage\":[1,\"border-image\"],\"type\":[1],\"tabIndex\":[2,\"tab-index\"],\"visible\":[8],\"audio\":[1],\"onTouch\":[1,\"on-touch\"],\"onInCorrect\":[1,\"on-in-correct\"],\"onCorrect\":[1,\"on-correct\"],\"minDrops\":[2,\"min-drops\"],\"maxDrops\":[2,\"max-drops\"],\"onEntry\":[1,\"on-entry\"],\"margin\":[1],\"padding\":[1],\"borderRadius\":[1,\"border-radius\"],\"spanType\":[1,\"span-type\"],\"delayVisible\":[1,\"delay-visible\"],\"disableSpeak\":[4,\"disable-speak\"],\"style\":[32]}]]]]"), options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -53,6 +53,7 @@ const speakUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/pub
|
|
|
53
53
|
const fingerUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Tracing-hand.svg';
|
|
54
54
|
|
|
55
55
|
function dispatchCustomEvent(eventName, detail) {
|
|
56
|
+
console.log("👍Event Name : ", eventName, "Detail : ", detail.toString());
|
|
56
57
|
const event = new CustomEvent(eventName, { detail });
|
|
57
58
|
window.dispatchEvent(event);
|
|
58
59
|
}
|
|
@@ -226,6 +227,63 @@ function balanceResult(container, objectiveString) {
|
|
|
226
227
|
return res;
|
|
227
228
|
}
|
|
228
229
|
|
|
230
|
+
const tempVanishedValues = [];
|
|
231
|
+
function dragDropAnimation(container, dragElement, dropElement) {
|
|
232
|
+
container.style.pointerEvents = "none";
|
|
233
|
+
setTimeout(() => {
|
|
234
|
+
var _a, _b, _c;
|
|
235
|
+
const div = document.createElement('div');
|
|
236
|
+
container.append(div);
|
|
237
|
+
div.classList.add('after-drop-popup-container');
|
|
238
|
+
dragElement.style.scale = `1`;
|
|
239
|
+
dropElement.style.scale = `1`;
|
|
240
|
+
const allDragElements = container.querySelectorAll('[type="drag"]');
|
|
241
|
+
const dragParents = Array.from(allDragElements).map(el => el.parentElement);
|
|
242
|
+
const allSameParent = dragParents.every(parent => parent === dragElement.parentElement);
|
|
243
|
+
JSON.parse((_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '[]');
|
|
244
|
+
const vanishedValue = (_b = dragElement.getAttribute('value')) !== null && _b !== void 0 ? _b : (_c = dragElement.textContent) === null || _c === void 0 ? void 0 : _c.trim();
|
|
245
|
+
if (vanishedValue) {
|
|
246
|
+
tempVanishedValues.push(vanishedValue);
|
|
247
|
+
}
|
|
248
|
+
// Remove from old parents
|
|
249
|
+
if (allSameParent) {
|
|
250
|
+
dragElement.remove();
|
|
251
|
+
dropElement.remove();
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
dragElement.parentElement.parentElement.remove();
|
|
255
|
+
dropElement.parentElement.parentElement.remove();
|
|
256
|
+
}
|
|
257
|
+
// Add animation and popup classes
|
|
258
|
+
dragElement.classList.add('zoom-fade-in', 'after-drop-popup-drag-element');
|
|
259
|
+
dropElement.classList.add('zoom-fade-in', 'after-drop-popup-drop-element');
|
|
260
|
+
div.appendChild(dragElement);
|
|
261
|
+
div.appendChild(dropElement);
|
|
262
|
+
dropElement.classList.remove('empty');
|
|
263
|
+
setTimeout(() => {
|
|
264
|
+
dragElement.classList.remove('zoom-fade-in');
|
|
265
|
+
dropElement.classList.remove('zoom-fade-in');
|
|
266
|
+
dragElement.classList.add('zoom-fade-out');
|
|
267
|
+
dropElement.classList.add('zoom-fade-out');
|
|
268
|
+
setTimeout(() => {
|
|
269
|
+
div.remove();
|
|
270
|
+
container.style.pointerEvents = 'auto';
|
|
271
|
+
const objective = container.getAttribute('objective');
|
|
272
|
+
if (objective && tempVanishedValues.map(v => v.trim()).sort().join(',') === objective.split(',').map(v => v.trim()).sort().join(',')) {
|
|
273
|
+
(async () => {
|
|
274
|
+
// isCorrect=true;
|
|
275
|
+
const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
|
|
276
|
+
await executeActions(onCorrect, container);
|
|
277
|
+
window.dispatchEvent(new CustomEvent(NextContainerKey));
|
|
278
|
+
calculateScore();
|
|
279
|
+
tempVanishedValues.length = 0;
|
|
280
|
+
})();
|
|
281
|
+
}
|
|
282
|
+
}, 800); // match animation duration
|
|
283
|
+
}, 2000); // stay for 2 seconds
|
|
284
|
+
}, 250);
|
|
285
|
+
}
|
|
286
|
+
|
|
229
287
|
function buildDropHasDragFromDOM() {
|
|
230
288
|
const dropHasDrag = {};
|
|
231
289
|
const dropElements = document.querySelectorAll("[type='drop']");
|
|
@@ -292,7 +350,7 @@ function enableDraggingWithScaling(element) {
|
|
|
292
350
|
isDragging = false;
|
|
293
351
|
return;
|
|
294
352
|
}
|
|
295
|
-
|
|
353
|
+
AudioPlayer.getI().stop();
|
|
296
354
|
removeHighlight(element);
|
|
297
355
|
isDragging = true;
|
|
298
356
|
isClicked = true;
|
|
@@ -396,6 +454,7 @@ function enableDraggingWithScaling(element) {
|
|
|
396
454
|
// Start observing the element
|
|
397
455
|
observer.observe(container, observerConfig);
|
|
398
456
|
const onMove = (event) => {
|
|
457
|
+
console.log('moved');
|
|
399
458
|
if (!isDragging)
|
|
400
459
|
return;
|
|
401
460
|
if (isDraggingDisabled) {
|
|
@@ -404,7 +463,7 @@ function enableDraggingWithScaling(element) {
|
|
|
404
463
|
}
|
|
405
464
|
isClicked = false;
|
|
406
465
|
element.style.transition = 'none';
|
|
407
|
-
const containerScale =
|
|
466
|
+
const containerScale = calculateScale();
|
|
408
467
|
let dx = 0;
|
|
409
468
|
let dy = 0;
|
|
410
469
|
if (event instanceof MouseEvent) {
|
|
@@ -703,7 +762,6 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
703
762
|
});
|
|
704
763
|
handleShowCheck();
|
|
705
764
|
}
|
|
706
|
-
const tempVanishedValues = [];
|
|
707
765
|
async function onElementDropComplete(dragElement, dropElement) {
|
|
708
766
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
709
767
|
const container = document.getElementById(LidoContainer);
|
|
@@ -730,7 +788,6 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
730
788
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
|
|
731
789
|
return;
|
|
732
790
|
}
|
|
733
|
-
// let isCorrect = dropElement.getAttribute('value').toLowerCase().includes(dragElement.getAttribute('value').toLowerCase());
|
|
734
791
|
let isCorrect;
|
|
735
792
|
const dragValue = ((_c = dragElement.getAttribute('value')) === null || _c === void 0 ? void 0 : _c.trim()) || "";
|
|
736
793
|
const dropValue = ((_d = dropElement.getAttribute('value')) === null || _d === void 0 ? void 0 : _d.trim()) || "";
|
|
@@ -747,7 +804,8 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
747
804
|
}
|
|
748
805
|
}
|
|
749
806
|
else {
|
|
750
|
-
|
|
807
|
+
//strings
|
|
808
|
+
isCorrect = dropValue.toLowerCase().includes(dragValue.toLowerCase());
|
|
751
809
|
}
|
|
752
810
|
if (!isCorrect) {
|
|
753
811
|
dragElement.style.transition = 'transform 0.5s ease';
|
|
@@ -757,6 +815,7 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
757
815
|
await executeActions(onInCorrect, dropElement, dragElement);
|
|
758
816
|
setTimeout(() => {
|
|
759
817
|
dragElement.style.transform = 'translate(0, 0)';
|
|
818
|
+
storingEachActivityScore(false);
|
|
760
819
|
// const oldDropIndex = dragToDropMap[dragElement.getAttribute('data-id')];
|
|
761
820
|
// if (oldDropIndex !== undefined && dropHasDrag[oldDropIndex]) {
|
|
762
821
|
// dropHasDrag[oldDropIndex].isFull = false;
|
|
@@ -782,61 +841,18 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
782
841
|
else {
|
|
783
842
|
const checkdropAttr = container.getAttribute('dropAttr');
|
|
784
843
|
if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
var _a, _b, _c;
|
|
788
|
-
const div = document.createElement('div');
|
|
789
|
-
container.append(div);
|
|
790
|
-
div.classList.add('after-drop-popup-container');
|
|
791
|
-
dragElement.style.scale = `1`;
|
|
792
|
-
dropElement.style.scale = `1`;
|
|
793
|
-
const allDragElements = container.querySelectorAll('[type="drag"]');
|
|
794
|
-
const dragParents = Array.from(allDragElements).map(el => el.parentElement);
|
|
795
|
-
const allSameParent = dragParents.every(parent => parent === dragElement.parentElement);
|
|
796
|
-
JSON.parse((_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '[]');
|
|
797
|
-
const vanishedValue = (_b = dragElement.getAttribute('value')) !== null && _b !== void 0 ? _b : (_c = dragElement.textContent) === null || _c === void 0 ? void 0 : _c.trim();
|
|
798
|
-
if (vanishedValue) {
|
|
799
|
-
tempVanishedValues.push(vanishedValue);
|
|
800
|
-
}
|
|
801
|
-
// Remove from old parents
|
|
802
|
-
if (allSameParent) {
|
|
803
|
-
dragElement.remove();
|
|
804
|
-
dropElement.remove();
|
|
805
|
-
}
|
|
806
|
-
else {
|
|
807
|
-
dragElement.parentElement.parentElement.remove();
|
|
808
|
-
dropElement.parentElement.parentElement.remove();
|
|
809
|
-
}
|
|
810
|
-
// Add animation and popup classes
|
|
811
|
-
dragElement.classList.add('zoom-fade-in', 'after-drop-popup-drag-element');
|
|
812
|
-
dropElement.classList.add('zoom-fade-in', 'after-drop-popup-drop-element');
|
|
813
|
-
div.appendChild(dragElement);
|
|
814
|
-
div.appendChild(dropElement);
|
|
815
|
-
dropElement.classList.remove('empty');
|
|
816
|
-
setTimeout(() => {
|
|
817
|
-
dragElement.classList.remove('zoom-fade-in');
|
|
818
|
-
dropElement.classList.remove('zoom-fade-in');
|
|
819
|
-
dragElement.classList.add('zoom-fade-out');
|
|
820
|
-
dropElement.classList.add('zoom-fade-out');
|
|
821
|
-
setTimeout(() => {
|
|
822
|
-
div.remove();
|
|
823
|
-
container.style.pointerEvents = 'auto';
|
|
824
|
-
const objective = container.getAttribute('objective');
|
|
825
|
-
if (objective && tempVanishedValues.map(v => v.trim()).sort().join(',') === objective.split(',').map(v => v.trim()).sort().join(',')) {
|
|
826
|
-
(async () => {
|
|
827
|
-
isCorrect = true;
|
|
828
|
-
const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
|
|
829
|
-
await executeActions(onCorrect, container);
|
|
830
|
-
window.dispatchEvent(new CustomEvent(NextContainerKey));
|
|
831
|
-
tempVanishedValues.length = 0;
|
|
832
|
-
})();
|
|
833
|
-
}
|
|
834
|
-
}, 800); // match animation duration
|
|
835
|
-
}, 2000); // stay for 2 seconds
|
|
836
|
-
}, 250);
|
|
844
|
+
//This function coming from animationhandler.ts
|
|
845
|
+
dragDropAnimation(container, dragElement, dropElement);
|
|
837
846
|
}
|
|
838
847
|
}
|
|
839
848
|
}
|
|
849
|
+
else {
|
|
850
|
+
const checkdropAttr = container.getAttribute('dropAttr');
|
|
851
|
+
if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
|
|
852
|
+
//This function coming from animationhandler.ts
|
|
853
|
+
dragDropAnimation(container, dragElement, dropElement);
|
|
854
|
+
}
|
|
855
|
+
}
|
|
840
856
|
if (dropElement) {
|
|
841
857
|
let selectedValues = JSON.parse((_e = container.getAttribute(SelectedValuesKey)) !== null && _e !== void 0 ? _e : "[]");
|
|
842
858
|
const dragValue = dragElement.getAttribute('value');
|
|
@@ -969,11 +985,11 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
969
985
|
// Add pulse and highlight effect for a successful match
|
|
970
986
|
const isCorrect = dropElement['value'].toLowerCase().includes(dragElement['value'].toLowerCase());
|
|
971
987
|
dispatchElementDropEvent(dragElement, dropElement, isCorrect);
|
|
972
|
-
storingEachActivityScore(isCorrect);
|
|
988
|
+
// storingEachActivityScore(isCorrect);
|
|
973
989
|
dragElement.style.opacity = '1';
|
|
974
|
-
await onActivityComplete(dragElement, dropElement);
|
|
975
990
|
const allDropElements = document.querySelectorAll('.drop-element');
|
|
976
991
|
allDropElements.forEach(el => updateDropBorder(el));
|
|
992
|
+
await onActivityComplete(dragElement, dropElement);
|
|
977
993
|
}
|
|
978
994
|
function updateDropBorder(element) {
|
|
979
995
|
if (!element || !element.classList.contains('drop-element'))
|
|
@@ -1365,7 +1381,7 @@ function enableReorderDrag(element) {
|
|
|
1365
1381
|
isClicked = false;
|
|
1366
1382
|
event.preventDefault();
|
|
1367
1383
|
const containerRect = container.getBoundingClientRect();
|
|
1368
|
-
const containerScale =
|
|
1384
|
+
const containerScale = calculateScale();
|
|
1369
1385
|
const newLeft = (point.clientX - containerRect.left - offsetXInElement) / containerScale;
|
|
1370
1386
|
const newTop = (point.clientY - containerRect.top - offsetYInElement) / containerScale;
|
|
1371
1387
|
element.style.left = `${newLeft}px`;
|
|
@@ -1432,9 +1448,7 @@ function enableReorderDrag(element) {
|
|
|
1432
1448
|
else {
|
|
1433
1449
|
if (element.parentElement['type'] !== 'category') {
|
|
1434
1450
|
executeActions('this.alignMatch=true', divEl, element);
|
|
1435
|
-
|
|
1436
|
-
divEl.replaceWith(element);
|
|
1437
|
-
}, 500);
|
|
1451
|
+
divEl.replaceWith(element);
|
|
1438
1452
|
}
|
|
1439
1453
|
else {
|
|
1440
1454
|
const categoryElement = element.parentElement;
|
|
@@ -1910,9 +1924,6 @@ function slidingWithScaling(element) {
|
|
|
1910
1924
|
element.style.transform = 'translate(0, 0)'; // Initialize transform for consistent dragging
|
|
1911
1925
|
element.addEventListener('mousedown', onStart);
|
|
1912
1926
|
element.addEventListener('touchstart', onStart);
|
|
1913
|
-
element.addEventListener('click', ev => {
|
|
1914
|
-
onClickDropOrDragElement(element, 'drag');
|
|
1915
|
-
});
|
|
1916
1927
|
}
|
|
1917
1928
|
const slideCompleted = (slideElement) => {
|
|
1918
1929
|
var _a;
|
|
@@ -1928,8 +1939,13 @@ const slideCompleted = (slideElement) => {
|
|
|
1928
1939
|
const objectiveArray = objectiveString.split(',');
|
|
1929
1940
|
const elementIndex = slideArr.indexOf(slideElement['value']);
|
|
1930
1941
|
const isCorrect = matchStringPattern(slideElement['value'], [objectiveArray[elementIndex].trim()]);
|
|
1931
|
-
|
|
1932
|
-
|
|
1942
|
+
if (container.getAttribute('is-continue-on-correct') === 'true') {
|
|
1943
|
+
storingEachActivityScore(true);
|
|
1944
|
+
handleShowCheck();
|
|
1945
|
+
}
|
|
1946
|
+
else {
|
|
1947
|
+
storingEachActivityScore(isCorrect);
|
|
1948
|
+
}
|
|
1933
1949
|
};
|
|
1934
1950
|
|
|
1935
1951
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -3214,7 +3230,10 @@ function addClickListenerForClickType(element) {
|
|
|
3214
3230
|
dispatchClickEvent(element, isCorrect);
|
|
3215
3231
|
if (isCorrect) {
|
|
3216
3232
|
const onCorrect = element.getAttribute('onCorrect');
|
|
3217
|
-
|
|
3233
|
+
if (!(element.id && element.id.startsWith('key-button'))) {
|
|
3234
|
+
element.style.pointerEvents = 'none';
|
|
3235
|
+
}
|
|
3236
|
+
document.body.style.pointerEvents = 'none';
|
|
3218
3237
|
await executeActions(onCorrect, element);
|
|
3219
3238
|
}
|
|
3220
3239
|
else {
|
|
@@ -3271,6 +3290,7 @@ function addClickListenerForClickType(element) {
|
|
|
3271
3290
|
container.setAttribute(SelectedValuesKey, JSON.stringify(sortedValues));
|
|
3272
3291
|
const isCorrect = objective.includes(element['value']);
|
|
3273
3292
|
dispatchClickEvent(element, isCorrect);
|
|
3293
|
+
AudioPlayer.getI().stop();
|
|
3274
3294
|
if (isCorrect) {
|
|
3275
3295
|
const onCorrect = element.getAttribute('onCorrect');
|
|
3276
3296
|
await executeActions(onCorrect, element);
|
|
@@ -68584,6 +68604,7 @@ const initEventsForElement = async (element, type) => {
|
|
|
68584
68604
|
const executeActions = async (actionsString, thisElement, element) => {
|
|
68585
68605
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
68586
68606
|
const actions = parseActions(actionsString);
|
|
68607
|
+
body.style.pointerEvents = 'none';
|
|
68587
68608
|
for (let i = 0; i < actions.length; i++) {
|
|
68588
68609
|
const action = actions[i];
|
|
68589
68610
|
const queriedElement = document.querySelector(action.actor);
|
|
@@ -68614,7 +68635,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68614
68635
|
const container = document.getElementById(LidoContainer);
|
|
68615
68636
|
const containerScale = getElementScale$1(container);
|
|
68616
68637
|
dragElement.style.transform = 'translate(0,0)';
|
|
68617
|
-
console.log(
|
|
68638
|
+
console.log('logg alinmatch');
|
|
68618
68639
|
const dropRect = dropElement.getBoundingClientRect();
|
|
68619
68640
|
const dragRect = dragElement.getBoundingClientRect();
|
|
68620
68641
|
const dropCenterX = dropRect.left + dropRect.width / 2;
|
|
@@ -68668,7 +68689,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68668
68689
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
68669
68690
|
targetElement.style.pointerEvents = 'none';
|
|
68670
68691
|
}
|
|
68671
|
-
validateObjectiveStatus();
|
|
68692
|
+
await validateObjectiveStatus();
|
|
68672
68693
|
break;
|
|
68673
68694
|
}
|
|
68674
68695
|
case 'prevBtn': {
|
|
@@ -68822,7 +68843,9 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68822
68843
|
break;
|
|
68823
68844
|
}
|
|
68824
68845
|
case 'updateCalculatorAnswer': {
|
|
68825
|
-
|
|
68846
|
+
if (targetElement) {
|
|
68847
|
+
updateCalculatorAnswer(targetElement);
|
|
68848
|
+
}
|
|
68826
68849
|
break;
|
|
68827
68850
|
}
|
|
68828
68851
|
default: {
|
|
@@ -68832,6 +68855,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68832
68855
|
}
|
|
68833
68856
|
}
|
|
68834
68857
|
}
|
|
68858
|
+
body.style.pointerEvents = 'auto';
|
|
68835
68859
|
};
|
|
68836
68860
|
const afterDropDragHandling = (dragElement, dropElement) => {
|
|
68837
68861
|
const container = document.getElementById(LidoContainer);
|
|
@@ -69050,6 +69074,8 @@ async function onActivityComplete(dragElement, dropElement) {
|
|
|
69050
69074
|
await executeActions("this.alignMatch='true'", dropElement, dragElement);
|
|
69051
69075
|
if (dragElement && dropElement) {
|
|
69052
69076
|
const isCorrect = dropElement['value'].toLowerCase().includes(dragElement['value'].toLowerCase());
|
|
69077
|
+
// storing each activity score based on isCorrect for (all drag-drop events)
|
|
69078
|
+
storingEachActivityScore(isCorrect);
|
|
69053
69079
|
if (isCorrect) {
|
|
69054
69080
|
const onCorrect = dropElement.getAttribute('onCorrect');
|
|
69055
69081
|
if (onCorrect) {
|
|
@@ -69148,6 +69174,7 @@ const handleShowCheck = () => {
|
|
|
69148
69174
|
validateObjectiveStatus();
|
|
69149
69175
|
}
|
|
69150
69176
|
};
|
|
69177
|
+
const body = document.body;
|
|
69151
69178
|
let res;
|
|
69152
69179
|
const validateObjectiveStatus = async () => {
|
|
69153
69180
|
var _a, _b;
|
|
@@ -69212,6 +69239,7 @@ const validateObjectiveStatus = async () => {
|
|
|
69212
69239
|
if (!isContinueOnCorrect) {
|
|
69213
69240
|
triggerNextContainer();
|
|
69214
69241
|
await calculateScore();
|
|
69242
|
+
triggerNextContainer();
|
|
69215
69243
|
}
|
|
69216
69244
|
else {
|
|
69217
69245
|
const onInCorrect = container.getAttribute('onInCorrect');
|
|
@@ -69234,16 +69262,16 @@ const triggerPrevcontainer = () => {
|
|
|
69234
69262
|
function convertUrlToRelative(url) {
|
|
69235
69263
|
const container = document.getElementById(LidoContainer);
|
|
69236
69264
|
const baseUrl = container.getAttribute('baseUrl');
|
|
69237
|
-
if ((url === null || url === void 0 ? void 0 : url.startsWith('http')) || (url === null || url === void 0 ? void 0 : url.startsWith('blob'))) {
|
|
69265
|
+
if ((url === null || url === void 0 ? void 0 : url.startsWith('http')) || (url === null || url === void 0 ? void 0 : url.startsWith('blob')) || (url === null || url === void 0 ? void 0 : url.startsWith('data'))) {
|
|
69238
69266
|
return url;
|
|
69239
69267
|
}
|
|
69240
|
-
|
|
69241
|
-
const newUrl =
|
|
69242
|
-
|
|
69243
|
-
|
|
69244
|
-
|
|
69245
|
-
return index$1.getAssetPath(url);
|
|
69268
|
+
if (baseUrl) {
|
|
69269
|
+
const newUrl = url.startsWith('/') ? url.slice(1) : url;
|
|
69270
|
+
if (newUrl.startsWith(baseUrl.replace(/^\/+|\/+$/g, '')))
|
|
69271
|
+
return newUrl;
|
|
69272
|
+
return baseUrl.endsWith('/') ? baseUrl + newUrl : `${baseUrl}/${newUrl}`;
|
|
69246
69273
|
}
|
|
69274
|
+
return index$1.getAssetPath(url);
|
|
69247
69275
|
}
|
|
69248
69276
|
/**
|
|
69249
69277
|
* Asynchronously speaks the given text using the browser's text-to-speech API.
|
|
@@ -69715,9 +69743,6 @@ const SumTogetherAnimation = async (element, value) => {
|
|
|
69715
69743
|
return;
|
|
69716
69744
|
if (!value)
|
|
69717
69745
|
return;
|
|
69718
|
-
const container = document.getElementById(LidoContainer);
|
|
69719
|
-
if (!container)
|
|
69720
|
-
return;
|
|
69721
69746
|
// Expecting structure: [_, TopRow, questionRow, optionRow, ...]
|
|
69722
69747
|
const TopRow = Array.from(element.children)[1];
|
|
69723
69748
|
const questionRow = Array.from(element.children)[2];
|
|
@@ -69861,17 +69886,15 @@ function placeElementInDropZone(dropElement, dragElement, orientation, dropAttr)
|
|
|
69861
69886
|
dragElement.style.width = "auto";
|
|
69862
69887
|
dragElement.style.height = "auto";
|
|
69863
69888
|
}
|
|
69864
|
-
const updateCalculatorAnswer = () => {
|
|
69889
|
+
const updateCalculatorAnswer = (el) => {
|
|
69865
69890
|
const container = document.getElementById(LidoContainer);
|
|
69866
69891
|
if (!container)
|
|
69867
69892
|
return;
|
|
69868
69893
|
const calci = document.querySelector('#lidoCalculator');
|
|
69869
69894
|
if (!calci)
|
|
69870
69895
|
return;
|
|
69871
|
-
const answerText = container.querySelector('#answer');
|
|
69872
69896
|
const value = calci.getAttribute('value');
|
|
69873
|
-
|
|
69874
|
-
answerText.setAttribute('string', value);
|
|
69897
|
+
el.setAttribute('string', value);
|
|
69875
69898
|
};
|
|
69876
69899
|
|
|
69877
69900
|
exports.ActivityScoreKey = ActivityScoreKey;
|
|
@@ -69883,6 +69906,7 @@ exports.RiveService = RiveService;
|
|
|
69883
69906
|
exports.SelectedValuesKey = SelectedValuesKey;
|
|
69884
69907
|
exports.attachSpeakIcon = attachSpeakIcon;
|
|
69885
69908
|
exports.calculateScale = calculateScale;
|
|
69909
|
+
exports.calculateScore = calculateScore;
|
|
69886
69910
|
exports.commonjsGlobal = commonjsGlobal;
|
|
69887
69911
|
exports.convertUrlToRelative = convertUrlToRelative;
|
|
69888
69912
|
exports.dispatchActivityChangeEvent = dispatchActivityChangeEvent;
|
|
@@ -69901,6 +69925,7 @@ exports.handleElementClick = handleElementClick;
|
|
|
69901
69925
|
exports.handleFloatElementPosition = handleFloatElementPosition;
|
|
69902
69926
|
exports.handlingChildElements = handlingChildElements;
|
|
69903
69927
|
exports.initEventsForElement = initEventsForElement;
|
|
69928
|
+
exports.matchStringPattern = matchStringPattern;
|
|
69904
69929
|
exports.nextUrl = nextUrl;
|
|
69905
69930
|
exports.parseProp = parseProp;
|
|
69906
69931
|
exports.prevUrl = prevUrl;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { executeActions, equationCheck, storingEachActivityScore } from "../../utils/utils";
|
|
2
|
+
import { executeActions, equationCheck, storingEachActivityScore, calculateScore } from "../../utils/utils";
|
|
3
3
|
import { NextContainerKey } from "../../utils/constants";
|
|
4
4
|
export class LidoCalculator {
|
|
5
5
|
constructor() {
|
|
@@ -101,10 +101,12 @@ export class LidoCalculator {
|
|
|
101
101
|
await executeActions(onCorrect, container);
|
|
102
102
|
if (onCorrect.includes('scrollCellAfterEquationSolved')) {
|
|
103
103
|
if (this.objective.length === 0) {
|
|
104
|
+
calculateScore();
|
|
104
105
|
window.dispatchEvent(new CustomEvent(NextContainerKey));
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
108
|
else {
|
|
109
|
+
calculateScore();
|
|
108
110
|
window.dispatchEvent(new CustomEvent(NextContainerKey));
|
|
109
111
|
}
|
|
110
112
|
}
|
|
@@ -117,7 +119,7 @@ export class LidoCalculator {
|
|
|
117
119
|
}
|
|
118
120
|
render() {
|
|
119
121
|
const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
|
|
120
|
-
return (h(Host, { key: '
|
|
122
|
+
return (h(Host, { key: '394177b08965252a6008cce3284475c6176eca3d', onEntry: this.onEntry, id: "lidoCalculator", style: { width: this.width, height: this.height, backgroundColor: this.bgColor, left: this.x, top: this.y } }, h("lido-cell", { key: '1c79a951e666ad4171b686400f0ba391783e693f', visible: "true", height: "94px", width: "60px" }, h("lido-text", { key: '70da4a0990c7ae72367f8d61026c1d4e6f682d48', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "176%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, h("img", { key: 'c510e7f1cc6ec5d34683030fff988054ac721225', src: this.penIcon, alt: "pen", style: { width: '100%', height: '100%' } }))), h("div", { key: '790d7bd307e296cc8e05e29705ebf4bfdda49906', class: "lido-calculator-displayParent" }, h("div", { key: 'f0195ce772bffdee06483da524f8a392dffdde38', class: "lido-calculator-display" }, this.displayValue)), h("div", { key: '00fda79dab52a801acafe6006db0dd50923ea74b', class: "lido-calculator-buttons" }, numbers.map((num, i) => (h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
|
|
121
123
|
'lido-calculator-btn-special': num === '←' || num === 'OK',
|
|
122
124
|
'lido-calculator-btn-default': num !== '←' && num !== 'OK'
|
|
123
125
|
}, onClick: () => this.handleClick(num) }))))));
|
|
@@ -98,13 +98,34 @@ export class LidoContainer {
|
|
|
98
98
|
* @param container The container element to be scaled.
|
|
99
99
|
*/
|
|
100
100
|
scaleContainer(container) {
|
|
101
|
+
// Calculate the scale factor based on the closest parent element's width and height (1600x900 reference)
|
|
102
|
+
const parentElement = this.getClosestParentWithWidth();
|
|
103
|
+
let scaleFactor = 0;
|
|
104
|
+
if (parentElement) {
|
|
105
|
+
const parentWidth = parentElement.clientWidth;
|
|
106
|
+
const parentHeight = parentElement.clientHeight;
|
|
107
|
+
const scaleX = parentWidth / 1600;
|
|
108
|
+
const scaleY = parentHeight / 900;
|
|
109
|
+
scaleFactor = Math.min(scaleX, scaleY);
|
|
110
|
+
}
|
|
101
111
|
// Center the container and apply scaling
|
|
102
|
-
container.style.transform = `translate(-50%, -50%) scale(${calculateScale()})`;
|
|
112
|
+
container.style.transform = `translate(-50%, -50%) scale(${scaleFactor != 0 ? scaleFactor : calculateScale()})`;
|
|
103
113
|
container.style.left = '50%';
|
|
104
114
|
container.style.top = '50%';
|
|
105
115
|
container.style.position = 'absolute'; // Ensure proper positioning
|
|
106
116
|
this.screenOrientation();
|
|
107
117
|
}
|
|
118
|
+
// Find and return the nearest parent element that has a measurable (non-zero) width
|
|
119
|
+
getClosestParentWithWidth() {
|
|
120
|
+
let parent = this.el.parentElement;
|
|
121
|
+
while (parent) {
|
|
122
|
+
if (parent.offsetWidth > 0) {
|
|
123
|
+
return parent;
|
|
124
|
+
}
|
|
125
|
+
parent = parent.parentElement;
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
108
129
|
screenOrientation() {
|
|
109
130
|
if (window.innerHeight > window.innerWidth) {
|
|
110
131
|
this.el.style.height = '1600px';
|
|
@@ -133,6 +154,7 @@ export class LidoContainer {
|
|
|
133
154
|
componentDidLoad() {
|
|
134
155
|
this.scaleContainer(this.el);
|
|
135
156
|
const backGroundImage = this.bgImage ? convertUrlToRelative(this.bgImage) : '';
|
|
157
|
+
document.body.style.pointerEvents = 'auto';
|
|
136
158
|
document.body.style.backgroundColor = this.bgColor;
|
|
137
159
|
document.body.style.backgroundImage = backGroundImage ? `url(${backGroundImage})` : 'none';
|
|
138
160
|
document.body.style.backgroundPosition = backGroundImage ? `bottom` : 'none';
|
|
@@ -166,7 +188,7 @@ export class LidoContainer {
|
|
|
166
188
|
userSelect: 'none', // Prevent any field selection
|
|
167
189
|
};
|
|
168
190
|
console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
|
|
169
|
-
return (h(Host, { key: '
|
|
191
|
+
return (h(Host, { key: '338ef0be8cc9d052764785ce9314254be7c8a7f8', id: "lido-container", locale: this.locale, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak }, h("slot", { key: '59d66b47f4749a99ece4da48dbaebaf720cb0b2b' })));
|
|
170
192
|
}
|
|
171
193
|
static get is() { return "lido-container"; }
|
|
172
194
|
static get originalStyleUrls() {
|