lido-player 0.0.2-alpha-57-dev → 0.0.2-alpha-59-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 +94 -34
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-a61cfc6b.js → utils-03573882.js} +160 -124
- package/dist/collection/components/container/lido-container.js +60 -3
- package/dist/collection/components/flashCard/lido-flash-card.js +10 -1
- package/dist/collection/components/float/lido-float.js +1 -1
- package/dist/collection/components/home/lido-home.js +22 -12
- package/dist/collection/components/keyboard/lido-keyboard.js +2 -2
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
- package/dist/collection/components/position/lido-pos.js +1 -1
- package/dist/collection/components/random/lido-random.js +1 -1
- package/dist/collection/components/row/lido-row.js +1 -1
- package/dist/collection/components/scale/lido-balance.js +1 -1
- package/dist/collection/components/shape/lido-shape.js +2 -2
- package/dist/collection/components/slideFill/lido-slide-fill.js +1 -1
- package/dist/collection/components/text/lido-text.js +1 -1
- package/dist/collection/components/trace/lido-trace.js +18 -7
- package/dist/collection/components/wrap/lido-wrap.js +1 -1
- package/dist/collection/css/animation.css +17 -0
- package/dist/collection/css/index.css +1 -1
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +3 -3
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +74 -44
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +4 -4
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +2 -2
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +91 -0
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +84 -0
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +0 -2
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +0 -2
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +6 -5
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +6 -6
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +106 -0
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +91 -0
- package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +86 -0
- package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +131 -0
- package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +61 -0
- package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +87 -0
- package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +72 -0
- package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +61 -0
- package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +60 -0
- package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +73 -0
- package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +88 -0
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +88 -0
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +66 -0
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +1 -1
- package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +7 -7
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +1 -1
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +16 -13
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +17 -14
- package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +111 -0
- package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +70 -0
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +11 -10
- package/dist/collection/stories/Templates/total/total.stories.js +2 -0
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +76 -0
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +74 -0
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +1 -1
- package/dist/collection/utils/constants.js +2 -1
- package/dist/collection/utils/utils.js +29 -20
- package/dist/collection/utils/utilsHandlers/clickHandler.js +2 -0
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +24 -20
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +50 -2
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +5 -4
- 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 +22 -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-73e3f0f4.js → p-2bb1f74d.js} +203 -1
- package/dist/components/{p-f3bc4577.js → p-33b83222.js} +1 -1
- package/dist/components/{p-0712a27e.js → p-3513b1f3.js} +159 -125
- package/dist/components/{p-f2b53e8e.js → p-356e56bd.js} +2 -2
- package/dist/components/{p-b9875116.js → p-49ccf573.js} +18 -7
- package/dist/components/{p-330caab8.js → p-4d9462ab.js} +4 -4
- package/dist/components/{p-4d332eab.js → p-5aa24314.js} +2 -2
- package/dist/components/{p-d1b5079b.js → p-5c990168.js} +45 -6
- package/dist/components/{p-21852d55.js → p-5eeaccab.js} +2 -2
- package/dist/components/{p-480f708a.js → p-6819005f.js} +11 -2
- package/dist/components/{p-ffc40642.js → p-6bbad90f.js} +2 -2
- package/dist/components/{p-e1ba0c44.js → p-73e4bb01.js} +41 -33
- package/dist/components/{p-ff801ba1.js → p-84302365.js} +1 -1
- package/dist/components/{p-0a41b2f8.js → p-99fcbae4.js} +1 -1
- package/dist/components/{p-9104d427.js → p-9b35082a.js} +2 -2
- package/dist/components/{p-882b291d.js → p-ad0f335e.js} +2 -2
- package/dist/components/{p-c4739621.js → p-aff68c41.js} +3 -3
- package/dist/components/{p-2829c82c.js → p-d9b17242.js} +2 -2
- package/dist/components/{p-cca36777.js → p-de62d08e.js} +3 -3
- package/dist/components/{p-4e041807.js → p-e8e9250e.js} +2 -2
- package/dist/components/{p-17f84b2f.js → p-f238004e.js} +2 -2
- package/dist/components/{p-eab0ebb7.js → p-f9426cbe.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +94 -34
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-7ed76799.js → utils-3995d2d5.js} +159 -125
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.css +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-75daccb0.entry.js +1 -0
- package/dist/lido-player/{p-17d93181.js → p-aee89fba.js} +2 -2
- package/dist/types/components/container/lido-container.d.ts +15 -2
- package/dist/types/components/trace/lido-trace.d.ts +3 -3
- package/dist/types/components.d.ts +10 -2
- package/dist/types/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.d.ts +11 -0
- package/dist/types/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.d.ts +12 -0
- package/dist/types/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.d.ts +5 -0
- package/dist/types/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.d.ts +4 -0
- package/dist/types/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.d.ts +4 -0
- package/dist/types/stories/Templates/pictureClues/pictureClues.stories.d.ts +4 -0
- package/dist/types/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.d.ts +4 -0
- package/dist/types/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.d.ts +4 -0
- package/dist/types/stories/Templates/substraction/substractionWithimg.stories.d.ts +4 -0
- package/dist/types/stories/Templates/substraction/substractionWithoutImg.stories.d.ts +4 -0
- package/dist/types/stories/Templates/wordBuilding/wordBuildingwithimg.stories.d.ts +4 -0
- package/dist/types/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.d.ts +4 -0
- package/dist/types/utils/constants.d.ts +9 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/highlightHandler.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-7ab0a273.js +0 -204
- package/dist/lido-player/p-fa9dfdf8.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\",{\"commonAudioPath\":[1,\"common-audio-path\"],\"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\"],\"commonAudioPath\":[\"onCommonAudioPathChange\"],\"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\"],\"style\":[32]}],[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);
|
|
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\",{\"commonAudioPath\":[1,\"common-audio-path\"],\"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\"],\"commonAudioPath\":[\"onCommonAudioPathChange\"],\"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]}],[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\"],\"templateId\":[1,\"template-id\"],\"instructName\":[32],\"speakFlag\":[32]},null,{\"locale\":[\"languageChanged\"]}],[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-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\"],\"style\":[32]}],[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;
|
|
@@ -20,6 +20,7 @@ const DropTimeAttr = 'drop-time';
|
|
|
20
20
|
const LidoContainer = 'lido-container';
|
|
21
21
|
const LIDO_COMMON_AUDIO_PATH = '__LIDO_COMMON_AUDIO_PATH__';
|
|
22
22
|
const LIDO_COMMON_AUDIO_READY_EVENT = 'lidoCommonAudioPathReady';
|
|
23
|
+
const TemplateID = 'template-id';
|
|
23
24
|
exports.TraceMode = void 0;
|
|
24
25
|
(function (TraceMode) {
|
|
25
26
|
TraceMode["NoFlow"] = "noFlow";
|
|
@@ -51,7 +52,7 @@ exports.DropAction = void 0;
|
|
|
51
52
|
const exitUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Close.svg';
|
|
52
53
|
const prevUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Previous.svg';
|
|
53
54
|
const nextUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Next.svg';
|
|
54
|
-
const speakUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/
|
|
55
|
+
const speakUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/audio.png';
|
|
55
56
|
const fingerUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Tracing-hand.svg';
|
|
56
57
|
|
|
57
58
|
function dispatchCustomEvent(eventName, detail) {
|
|
@@ -104,64 +105,6 @@ class RiveService {
|
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
|
|
107
|
-
function removeHighlight(element) {
|
|
108
|
-
element.classList.remove('highlight');
|
|
109
|
-
element.ariaPressed = 'false';
|
|
110
|
-
}
|
|
111
|
-
// Function to highlight the speaking element
|
|
112
|
-
function highlightSpeakingElement(element) {
|
|
113
|
-
if (!element)
|
|
114
|
-
return;
|
|
115
|
-
// Add a custom class for highlighting
|
|
116
|
-
element.classList.add('speaking-highlight');
|
|
117
|
-
// Inject keyframe animation and class styles into the document's head if it doesn't already exist
|
|
118
|
-
const styleId = '#speaking-highlight-style';
|
|
119
|
-
if (!document.querySelector(styleId)) {
|
|
120
|
-
const style = document.createElement('style');
|
|
121
|
-
style.id = styleId;
|
|
122
|
-
style.innerHTML = `
|
|
123
|
-
.speaking-highlight {
|
|
124
|
-
--base-transform: ${element.style.transform};
|
|
125
|
-
box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9) !important; /* Stronger orange glow effect */
|
|
126
|
-
// border: 3px solid green !important;
|
|
127
|
-
// transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;
|
|
128
|
-
// transform: scale(1.05); /* Subtle scale effect to pop the element */
|
|
129
|
-
// animation: pulseEffect 1.5s infinite; /* Pulsing animation */
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@keyframes pulseEffect {
|
|
134
|
-
0% {
|
|
135
|
-
box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);
|
|
136
|
-
// transform: var(--base-transform) scale(1.05);
|
|
137
|
-
// background-color: #FFFF0B;
|
|
138
|
-
}
|
|
139
|
-
50% {
|
|
140
|
-
box-shadow: 0 0 30px 15px rgba(255, 165, 0, 1);
|
|
141
|
-
// transform: var(--base-transform) scale(1.1);
|
|
142
|
-
// background-color: #FFFF0B;
|
|
143
|
-
}
|
|
144
|
-
100% {
|
|
145
|
-
box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);
|
|
146
|
-
// transform: var(--base-transform) scale(1.05);
|
|
147
|
-
// background-color: #FFFF0B;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
`;
|
|
151
|
-
document.head.appendChild(style);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
// Function to stop highlighting
|
|
155
|
-
function stopHighlightForSpeakingElement(element) {
|
|
156
|
-
if (!element)
|
|
157
|
-
return;
|
|
158
|
-
// Remove the custom class for highlighting
|
|
159
|
-
element.classList.remove('speaking-highlight');
|
|
160
|
-
// Remove inline styles
|
|
161
|
-
// element.style.boxShadow = '';
|
|
162
|
-
// element.style.border = '';
|
|
163
|
-
}
|
|
164
|
-
|
|
165
108
|
function updateBalanceOnDrop(dragElement, dropElement) {
|
|
166
109
|
const balanceEl = document.querySelector('lido-balance');
|
|
167
110
|
if (!balanceEl)
|
|
@@ -177,7 +120,7 @@ function updateBalanceOnDrop(dragElement, dropElement) {
|
|
|
177
120
|
}
|
|
178
121
|
function calculateValue(elements, operation) {
|
|
179
122
|
if (elements.length === 0)
|
|
180
|
-
return
|
|
123
|
+
return 0;
|
|
181
124
|
if (operation === "count") {
|
|
182
125
|
return elements.length;
|
|
183
126
|
}
|
|
@@ -209,15 +152,18 @@ function calculateValue(elements, operation) {
|
|
|
209
152
|
}
|
|
210
153
|
}
|
|
211
154
|
function balanceResult(container, objectiveString) {
|
|
155
|
+
var _a, _b, _c, _d, _e, _f;
|
|
212
156
|
const additionalCheck = container.getAttribute('equationCheck');
|
|
213
157
|
if (!additionalCheck)
|
|
214
158
|
return false;
|
|
215
159
|
const balanceEl = document.querySelector('lido-balance');
|
|
216
160
|
if (!balanceEl)
|
|
217
161
|
return false;
|
|
218
|
-
const leftVal = balanceEl.leftVal;
|
|
219
|
-
const rightVal = balanceEl.rightVal;
|
|
220
|
-
|
|
162
|
+
const leftVal = Number((_c = (_a = balanceEl.leftVal) !== null && _a !== void 0 ? _a : (_b = balanceEl.dataset) === null || _b === void 0 ? void 0 : _b.leftVal) !== null && _c !== void 0 ? _c : 0);
|
|
163
|
+
const rightVal = Number((_f = (_d = balanceEl.rightVal) !== null && _d !== void 0 ? _d : (_e = balanceEl.dataset) === null || _e === void 0 ? void 0 : _e.rightVal) !== null && _f !== void 0 ? _f : 0);
|
|
164
|
+
const hasLeft = !isNaN(leftVal);
|
|
165
|
+
const hasRight = !isNaN(rightVal);
|
|
166
|
+
if (!hasLeft || !hasRight) {
|
|
221
167
|
return false;
|
|
222
168
|
}
|
|
223
169
|
const symbol = leftVal > rightVal ? '>' : leftVal < rightVal ? '<' : '=';
|
|
@@ -488,20 +434,14 @@ function enableDraggingWithScaling(element) {
|
|
|
488
434
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
489
435
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
490
436
|
if (!(((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
491
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
492
|
-
otherElement.style.border = ''; // Reset border
|
|
493
|
-
otherElement.style.backgroundColor = 'transparent'; // Reset background color
|
|
494
|
-
}
|
|
437
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
495
438
|
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
496
439
|
otherElement.style.opacity = '0';
|
|
497
440
|
}
|
|
498
441
|
}
|
|
499
442
|
}
|
|
500
443
|
else {
|
|
501
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
502
|
-
otherElement.style.border = ''; // Reset border
|
|
503
|
-
otherElement.style.backgroundColor = ''; // Reset background color
|
|
504
|
-
}
|
|
444
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
505
445
|
if (otherElement.tagName.toLowerCase() === 'lido-image' || 'lido-cell') {
|
|
506
446
|
otherElement.style.opacity = '1';
|
|
507
447
|
}
|
|
@@ -509,10 +449,7 @@ function enableDraggingWithScaling(element) {
|
|
|
509
449
|
});
|
|
510
450
|
// Apply styles only to the most overlapped element
|
|
511
451
|
if (mostOverlappedElement) {
|
|
512
|
-
if (mostOverlappedElement.tagName.toLowerCase() === 'lido-text')
|
|
513
|
-
mostOverlappedElement.style.border = '2px dashed #ff0000'; // Red dashed border
|
|
514
|
-
mostOverlappedElement.style.backgroundColor = 'rgba(255, 0, 0, 0.1)'; // Light red background
|
|
515
|
-
}
|
|
452
|
+
if (mostOverlappedElement.tagName.toLowerCase() === 'lido-text') ;
|
|
516
453
|
else {
|
|
517
454
|
if (!document.getElementById('unitsDrop') || !document.getElementById('tensDrop') || !document.getElementById('hundredsDrop')) {
|
|
518
455
|
mostOverlappedElement.style.opacity = '0.3';
|
|
@@ -548,10 +485,7 @@ function enableDraggingWithScaling(element) {
|
|
|
548
485
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
549
486
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
550
487
|
if (!(((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
551
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
552
|
-
otherElement.style.border = ''; // Reset border
|
|
553
|
-
otherElement.style.backgroundColor = 'transparent'; // Reset background color
|
|
554
|
-
}
|
|
488
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
555
489
|
else if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
556
490
|
otherElement.style.opacity = '0';
|
|
557
491
|
}
|
|
@@ -561,10 +495,7 @@ function enableDraggingWithScaling(element) {
|
|
|
561
495
|
}
|
|
562
496
|
}
|
|
563
497
|
else {
|
|
564
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
565
|
-
otherElement.style.border = ''; // Reset border
|
|
566
|
-
otherElement.style.backgroundColor = ''; // Reset background color
|
|
567
|
-
}
|
|
498
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
568
499
|
if (otherElement.tagName.toLowerCase() === 'lido-image' || 'lido-cell') {
|
|
569
500
|
otherElement.style.opacity = '1';
|
|
570
501
|
}
|
|
@@ -712,6 +643,7 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
712
643
|
let prevDropItem = Object.values(dropHasDrag).find(item => document.getElementById(item.drop) === currentDrop);
|
|
713
644
|
if (prevDropItem) {
|
|
714
645
|
prevDropItem.isFull = false;
|
|
646
|
+
highlightElement();
|
|
715
647
|
// container.setAttribute(DropHasDrag, JSON.stringify(dropHasDrag));
|
|
716
648
|
const dropEl = document.getElementById(prevDropItem.drop);
|
|
717
649
|
if (dropEl) {
|
|
@@ -743,9 +675,7 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
743
675
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
744
676
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
745
677
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
746
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
747
|
-
otherElement.style.backgroundColor = 'transparent'; // Reset background color
|
|
748
|
-
}
|
|
678
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
749
679
|
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
750
680
|
otherElement.style.opacity = '0';
|
|
751
681
|
otherElement.style.backgroundColor = 'transparent';
|
|
@@ -753,9 +683,7 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
753
683
|
}
|
|
754
684
|
}
|
|
755
685
|
else {
|
|
756
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
757
|
-
otherElement.style.backgroundColor = 'transparent'; // Reset background color
|
|
758
|
-
}
|
|
686
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
759
687
|
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
760
688
|
otherElement.style.opacity = '1';
|
|
761
689
|
otherElement.style.backgroundColor = 'transparent';
|
|
@@ -763,6 +691,7 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
763
691
|
}
|
|
764
692
|
});
|
|
765
693
|
handleShowCheck();
|
|
694
|
+
highlightElement();
|
|
766
695
|
}
|
|
767
696
|
async function onElementDropComplete(dragElement, dropElement) {
|
|
768
697
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -876,6 +805,7 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
876
805
|
if (isAllowOnlyOneDrop && isisFull) {
|
|
877
806
|
isisFull.isFull = true;
|
|
878
807
|
dropElement.setAttribute('is-full', 'true');
|
|
808
|
+
highlightElement();
|
|
879
809
|
}
|
|
880
810
|
else {
|
|
881
811
|
console.warn('No matching drop item found for', dropElement);
|
|
@@ -919,20 +849,14 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
919
849
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
920
850
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
921
851
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
922
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
923
|
-
otherElement.style.border = ''; // Reset border
|
|
924
|
-
otherElement.style.backgroundColor = 'transparent'; // Reset background color
|
|
925
|
-
}
|
|
852
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
926
853
|
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
927
854
|
otherElement.style.opacity = '0';
|
|
928
855
|
}
|
|
929
856
|
}
|
|
930
857
|
}
|
|
931
858
|
else {
|
|
932
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
933
|
-
otherElement.style.border = ''; // Reset border
|
|
934
|
-
otherElement.style.backgroundColor = ''; // Reset background color
|
|
935
|
-
}
|
|
859
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
936
860
|
if (otherElement.tagName.toLowerCase() === 'lido-image' || 'lido-cell') {
|
|
937
861
|
otherElement.style.opacity = '1';
|
|
938
862
|
}
|
|
@@ -991,6 +915,7 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
991
915
|
dragElement.style.opacity = '1';
|
|
992
916
|
const allDropElements = document.querySelectorAll('.drop-element');
|
|
993
917
|
allDropElements.forEach(el => updateDropBorder(el));
|
|
918
|
+
highlightElement();
|
|
994
919
|
await onActivityComplete(dragElement, dropElement);
|
|
995
920
|
}
|
|
996
921
|
function updateDropBorder(element) {
|
|
@@ -1053,10 +978,10 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
1053
978
|
`;
|
|
1054
979
|
document.head.appendChild(style);
|
|
1055
980
|
}
|
|
1056
|
-
element === null || element === void 0 ? void 0 : element.classList.add('highlight');
|
|
981
|
+
element === null || element === void 0 ? void 0 : element.classList.add('highlight-element');
|
|
1057
982
|
element.ariaPressed = 'true';
|
|
1058
|
-
const selectedDropElement = type === 'drop' ? element : document.querySelector("[type='drop'].highlight");
|
|
1059
|
-
const selectedDragElement = type === 'drag' ? element : document.querySelector("[type='drag'].highlight");
|
|
983
|
+
const selectedDropElement = type === 'drop' ? element : document.querySelector("[type='drop'].highlight-element");
|
|
984
|
+
const selectedDragElement = type === 'drag' ? element : document.querySelector("[type='drag'].highlight-element");
|
|
1060
985
|
if (!selectedDropElement) {
|
|
1061
986
|
onClickDragElement(element);
|
|
1062
987
|
}
|
|
@@ -1165,6 +1090,110 @@ const reduceSizeToOriginal = () => {
|
|
|
1165
1090
|
});
|
|
1166
1091
|
};
|
|
1167
1092
|
|
|
1093
|
+
function removeHighlight(element) {
|
|
1094
|
+
element.classList.remove('highlight-element');
|
|
1095
|
+
element.ariaPressed = 'false';
|
|
1096
|
+
}
|
|
1097
|
+
// Function to highlight the speaking element
|
|
1098
|
+
function highlightSpeakingElement(element) {
|
|
1099
|
+
if (!element)
|
|
1100
|
+
return;
|
|
1101
|
+
// Add a custom class for highlighting
|
|
1102
|
+
element.classList.add('speaking-highlight');
|
|
1103
|
+
// Inject keyframe animation and class styles into the document's head if it doesn't already exist
|
|
1104
|
+
const styleId = '#speaking-highlight-style';
|
|
1105
|
+
if (!document.querySelector(styleId)) {
|
|
1106
|
+
const style = document.createElement('style');
|
|
1107
|
+
style.id = styleId;
|
|
1108
|
+
style.innerHTML = `
|
|
1109
|
+
.speaking-highlight {
|
|
1110
|
+
--base-transform: ${element.style.transform};
|
|
1111
|
+
box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9) !important; /* Stronger orange glow effect */
|
|
1112
|
+
// border: 3px solid green !important;
|
|
1113
|
+
// transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;
|
|
1114
|
+
// transform: scale(1.05); /* Subtle scale effect to pop the element */
|
|
1115
|
+
// animation: pulseEffect 1.5s infinite; /* Pulsing animation */
|
|
1116
|
+
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
@keyframes pulseEffect {
|
|
1120
|
+
0% {
|
|
1121
|
+
box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);
|
|
1122
|
+
// transform: var(--base-transform) scale(1.05);
|
|
1123
|
+
// background-color: #FFFF0B;
|
|
1124
|
+
}
|
|
1125
|
+
50% {
|
|
1126
|
+
box-shadow: 0 0 30px 15px rgba(255, 165, 0, 1);
|
|
1127
|
+
// transform: var(--base-transform) scale(1.1);
|
|
1128
|
+
// background-color: #FFFF0B;
|
|
1129
|
+
}
|
|
1130
|
+
100% {
|
|
1131
|
+
box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);
|
|
1132
|
+
// transform: var(--base-transform) scale(1.05);
|
|
1133
|
+
// background-color: #FFFF0B;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
`;
|
|
1137
|
+
document.head.appendChild(style);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
// Function to stop highlighting
|
|
1141
|
+
function stopHighlightForSpeakingElement(element) {
|
|
1142
|
+
if (!element)
|
|
1143
|
+
return;
|
|
1144
|
+
// Remove the custom class for highlighting
|
|
1145
|
+
element.classList.remove('speaking-highlight');
|
|
1146
|
+
// Remove inline styles
|
|
1147
|
+
// element.style.boxShadow = '';
|
|
1148
|
+
// element.style.border = '';
|
|
1149
|
+
}
|
|
1150
|
+
function highlightElement() {
|
|
1151
|
+
const container = document.querySelector(LidoContainer);
|
|
1152
|
+
if (!container)
|
|
1153
|
+
return;
|
|
1154
|
+
const dropElements = buildDropHasDragFromDOM();
|
|
1155
|
+
let firstFalse = Object.values(dropElements).find(item => !item.isFull);
|
|
1156
|
+
if (firstFalse) {
|
|
1157
|
+
const dropEls = container.querySelectorAll(`[type="drop"]`);
|
|
1158
|
+
dropEls.forEach(dropEl => {
|
|
1159
|
+
dropEl.classList.remove('highlight-element');
|
|
1160
|
+
});
|
|
1161
|
+
const dropEle = container.querySelector(`#${firstFalse.drop}`);
|
|
1162
|
+
if (dropEle) {
|
|
1163
|
+
dropEle.classList.add('highlight-element');
|
|
1164
|
+
}
|
|
1165
|
+
// Highlight corresponding drag elements if mistakes are more than 2
|
|
1166
|
+
const dragElements = container.querySelectorAll(`[type="drag"]`);
|
|
1167
|
+
if (countOfMistakes > 2) {
|
|
1168
|
+
dragElements.forEach(dragEl => {
|
|
1169
|
+
dragEl.classList.remove('highlight-element');
|
|
1170
|
+
if (dragEl.getAttribute('value') === dropEle.getAttribute('value')) {
|
|
1171
|
+
dragEl.classList.add('highlight-element');
|
|
1172
|
+
dragEl.classList.remove('drag-element');
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
else {
|
|
1177
|
+
dragElements.forEach(dragEl => {
|
|
1178
|
+
dragEl.classList.remove('highlight-element');
|
|
1179
|
+
dragEl.classList.add('drag-element');
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
else {
|
|
1184
|
+
if (countOfMistakes <= 2)
|
|
1185
|
+
return;
|
|
1186
|
+
const clickTemplate = container.querySelectorAll("[type='click']");
|
|
1187
|
+
clickTemplate.forEach(clickEl => {
|
|
1188
|
+
if (clickEl.getAttribute('value') === container.getAttribute('objective')) {
|
|
1189
|
+
if (!clickEl.classList.contains('highlight-element')) {
|
|
1190
|
+
clickEl.classList.add('highlight-element');
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1168
1197
|
class AudioPlayer {
|
|
1169
1198
|
constructor() {
|
|
1170
1199
|
this.audioElement = document.createElement('audio');
|
|
@@ -3248,6 +3277,7 @@ function addClickListenerForClickType(element) {
|
|
|
3248
3277
|
if (!isInsideCalculator) {
|
|
3249
3278
|
storingEachActivityScore(isCorrect);
|
|
3250
3279
|
}
|
|
3280
|
+
highlightElement();
|
|
3251
3281
|
handleShowCheck();
|
|
3252
3282
|
return;
|
|
3253
3283
|
}
|
|
@@ -68606,7 +68636,7 @@ const initEventsForElement = async (element, type) => {
|
|
|
68606
68636
|
const executeActions = async (actionsString, thisElement, element) => {
|
|
68607
68637
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
68608
68638
|
const actions = parseActions(actionsString);
|
|
68609
|
-
body.style.pointerEvents = 'none';
|
|
68639
|
+
// body.style.pointerEvents = 'none';
|
|
68610
68640
|
for (let i = 0; i < actions.length; i++) {
|
|
68611
68641
|
const action = actions[i];
|
|
68612
68642
|
const queriedElement = document.querySelector(action.actor);
|
|
@@ -69050,12 +69080,16 @@ const countPatternWords = (pattern) => {
|
|
|
69050
69080
|
}
|
|
69051
69081
|
return wordCount;
|
|
69052
69082
|
};
|
|
69083
|
+
let countOfMistakes = 0;
|
|
69053
69084
|
const storingEachActivityScore = (flag) => {
|
|
69054
69085
|
if (flag) {
|
|
69055
69086
|
gameScore.rightMoves += 1;
|
|
69087
|
+
countOfMistakes = 0;
|
|
69088
|
+
highlightElement();
|
|
69056
69089
|
}
|
|
69057
69090
|
else {
|
|
69058
69091
|
gameScore.wrongMoves += 1;
|
|
69092
|
+
countOfMistakes += 1;
|
|
69059
69093
|
}
|
|
69060
69094
|
console.log('Right Moves : ', gameScore.rightMoves);
|
|
69061
69095
|
console.log('Wrong Moves : ', gameScore.wrongMoves);
|
|
@@ -69101,9 +69135,7 @@ async function onActivityComplete(dragElement, dropElement) {
|
|
|
69101
69135
|
const storedTabIndexes = Object.keys(dragScore).map(Number);
|
|
69102
69136
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
69103
69137
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
69104
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
69105
|
-
otherElement.style.backgroundColor = 'transparent'; // Reset background color**
|
|
69106
|
-
}
|
|
69138
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
69107
69139
|
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
69108
69140
|
otherElement.style.opacity = '0';
|
|
69109
69141
|
otherElement.style.backgroundColor = 'transparent';
|
|
@@ -69111,9 +69143,7 @@ async function onActivityComplete(dragElement, dropElement) {
|
|
|
69111
69143
|
}
|
|
69112
69144
|
}
|
|
69113
69145
|
else {
|
|
69114
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
69115
|
-
otherElement.style.backgroundColor = 'transparent'; // Reset background color**********
|
|
69116
|
-
}
|
|
69146
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') ;
|
|
69117
69147
|
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
69118
69148
|
otherElement.style.opacity = '1';
|
|
69119
69149
|
otherElement.style.backgroundColor = 'transparent';
|
|
@@ -69239,8 +69269,10 @@ const validateObjectiveStatus = async () => {
|
|
|
69239
69269
|
}
|
|
69240
69270
|
else {
|
|
69241
69271
|
const isContinueOnCorrect = container.getAttribute('is-continue-on-correct') === 'true';
|
|
69272
|
+
const onCorrect = container.getAttribute('onCorrect');
|
|
69242
69273
|
if (!isContinueOnCorrect) {
|
|
69243
69274
|
await calculateScore();
|
|
69275
|
+
await executeActions(onCorrect, container);
|
|
69244
69276
|
triggerNextContainer();
|
|
69245
69277
|
}
|
|
69246
69278
|
else {
|
|
@@ -69702,10 +69734,22 @@ const animateBoxCells = async (element, value) => {
|
|
|
69702
69734
|
await new Promise(resolve => setTimeout(resolve, 600)); // Adjust delay as needed
|
|
69703
69735
|
cell.classList.remove('lido-box-highlight');
|
|
69704
69736
|
}
|
|
69705
|
-
//
|
|
69706
|
-
|
|
69707
|
-
|
|
69708
|
-
|
|
69737
|
+
// checkout parent cell first then pick the first text child inside cell
|
|
69738
|
+
const parentCell = document.getElementById(LidoContainer);
|
|
69739
|
+
if (!parentCell)
|
|
69740
|
+
return;
|
|
69741
|
+
const firstTextChild = parentCell.querySelector('lido-text');
|
|
69742
|
+
if (firstTextChild) {
|
|
69743
|
+
// play the text child inside parent cell
|
|
69744
|
+
await AudioPlayer.getI().play(firstTextChild);
|
|
69745
|
+
}
|
|
69746
|
+
// Now select each box cell's text child and play them one by one
|
|
69747
|
+
for (const box of boxCells) {
|
|
69748
|
+
const text = box.querySelector('lido-text');
|
|
69749
|
+
console.log('box text', text);
|
|
69750
|
+
if (!text)
|
|
69751
|
+
continue;
|
|
69752
|
+
await AudioPlayer.getI().play(text);
|
|
69709
69753
|
}
|
|
69710
69754
|
};
|
|
69711
69755
|
const questionBoxAnimation = async (element, value) => {
|
|
@@ -69727,20 +69771,10 @@ const questionBoxAnimation = async (element, value) => {
|
|
|
69727
69771
|
});
|
|
69728
69772
|
// Reveal all drop childrens which is hidden
|
|
69729
69773
|
const dropElements = Array.from(element.querySelectorAll("[type='drop']"));
|
|
69730
|
-
let check = false;
|
|
69731
69774
|
dropElements.forEach(dropEl => {
|
|
69732
69775
|
const dropVal = dropEl.getAttribute("value");
|
|
69733
69776
|
if (dropVal && dropEl.innerText.trim() === "?") {
|
|
69734
69777
|
dropEl.innerText = dropVal;
|
|
69735
|
-
if (dropElements.length > 1 && check == false) {
|
|
69736
|
-
if (window.innerWidth > window.innerHeight) {
|
|
69737
|
-
dropEl.style.marginRight = "-45px";
|
|
69738
|
-
}
|
|
69739
|
-
else {
|
|
69740
|
-
dropEl.style.marginRight = "-65px";
|
|
69741
|
-
}
|
|
69742
|
-
check = true;
|
|
69743
|
-
}
|
|
69744
69778
|
}
|
|
69745
69779
|
});
|
|
69746
69780
|
};
|
|
@@ -69750,9 +69784,9 @@ const SumTogetherAnimation = async (element, value) => {
|
|
|
69750
69784
|
if (!value)
|
|
69751
69785
|
return;
|
|
69752
69786
|
// Expecting structure: [_, TopRow, questionRow, optionRow, ...]
|
|
69753
|
-
const TopRow = Array.from(element.children)[
|
|
69754
|
-
const questionRow = Array.from(element.children)[
|
|
69755
|
-
const optionRow = Array.from(element.children)[
|
|
69787
|
+
const TopRow = Array.from(element.children)[2];
|
|
69788
|
+
const questionRow = Array.from(element.children)[3];
|
|
69789
|
+
const optionRow = Array.from(element.children)[4];
|
|
69756
69790
|
if (!TopRow || !questionRow || !optionRow)
|
|
69757
69791
|
return;
|
|
69758
69792
|
const topRowChildren = Array.from(TopRow.children);
|
|
@@ -69912,6 +69946,7 @@ exports.NextContainerKey = NextContainerKey;
|
|
|
69912
69946
|
exports.PrevContainerKey = PrevContainerKey;
|
|
69913
69947
|
exports.RiveService = RiveService;
|
|
69914
69948
|
exports.SelectedValuesKey = SelectedValuesKey;
|
|
69949
|
+
exports.TemplateID = TemplateID;
|
|
69915
69950
|
exports.attachSpeakIcon = attachSpeakIcon;
|
|
69916
69951
|
exports.calculateScale = calculateScale;
|
|
69917
69952
|
exports.calculateScore = calculateScore;
|
|
@@ -69932,6 +69967,7 @@ exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
|
69932
69967
|
exports.handleElementClick = handleElementClick;
|
|
69933
69968
|
exports.handleFloatElementPosition = handleFloatElementPosition;
|
|
69934
69969
|
exports.handlingChildElements = handlingChildElements;
|
|
69970
|
+
exports.highlightElement = highlightElement;
|
|
69935
69971
|
exports.initEventsForElement = initEventsForElement;
|
|
69936
69972
|
exports.matchStringPattern = matchStringPattern;
|
|
69937
69973
|
exports.nextUrl = nextUrl;
|