lido-player 0.0.2-alpha-52-dev → 0.0.2-alpha-53-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 +184 -58
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-ce99b0d0.js → utils-3c1ce74e.js} +89 -85
- 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/utils.js +18 -17
- package/dist/collection/utils/utilsHandlers/animationHandler.js +38 -0
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +19 -58
- 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-3ce3744c.js → p-004adc43.js} +3 -3
- package/dist/components/{p-b2125fc9.js → p-057fb7b8.js} +48 -24
- package/dist/components/{p-8f2ed62f.js → p-0733b277.js} +1 -1
- package/dist/components/{p-26df0769.js → p-09b3b152.js} +1 -1
- package/dist/components/{p-09f1e2d2.js → p-23549651.js} +1 -1
- package/dist/components/{p-a516a324.js → p-3e8ae1c5.js} +123 -48
- package/dist/components/{p-68112f8c.js → p-3f0e4436.js} +1 -1
- package/dist/components/{p-58c67252.js → p-511377d2.js} +89 -86
- package/dist/components/{p-3f4d4c0a.js → p-561908ec.js} +1 -1
- package/dist/components/{p-5b5f59a8.js → p-567983a9.js} +2 -2
- package/dist/components/{p-8a34b98b.js → p-6beee44b.js} +1 -1
- package/dist/components/{p-9d34d59d.js → p-71ded596.js} +2 -2
- package/dist/components/{p-0fbeb3a1.js → p-73e3f0f4.js} +12 -6
- package/dist/components/{p-06171259.js → p-875c1411.js} +1 -1
- package/dist/components/{p-0c2aebfb.js → p-8774f517.js} +1 -1
- package/dist/components/{p-a2f96840.js → p-90f7dd48.js} +1 -1
- package/dist/components/{p-c4abfd0f.js → p-92b9ae9e.js} +1 -1
- package/dist/components/{p-00777872.js → p-9ea1a67d.js} +26 -4
- package/dist/components/{p-39a2e638.js → p-b3e67e7f.js} +2 -2
- package/dist/components/{p-52e77394.js → p-cca545f9.js} +1 -1
- package/dist/components/{p-cb56a853.js → p-d2fe2bb6.js} +1 -1
- package/dist/components/{p-2d53e1a5.js → p-d568d595.js} +1 -1
- package/dist/components/{p-11bf64aa.js → p-df1af62c.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +184 -58
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-107b15a7.js → utils-eefe4a1c.js} +89 -86
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-4d9ad047.entry.js +1 -0
- package/dist/lido-player/{p-d1251482.js → p-589fc3b8.js} +2 -2
- 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;
|
|
@@ -226,6 +226,45 @@ function balanceResult(container, objectiveString) {
|
|
|
226
226
|
return res;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
function dragDropAnimation(container, dragElement, dropElement) {
|
|
230
|
+
container.style.pointerEvents = 'none';
|
|
231
|
+
setTimeout(() => {
|
|
232
|
+
const div = document.createElement('div');
|
|
233
|
+
container.append(div);
|
|
234
|
+
div.classList.add('after-drop-popup-container');
|
|
235
|
+
dragElement.style.scale = `1`;
|
|
236
|
+
dropElement.style.scale = `1`;
|
|
237
|
+
const allDragElements = container.querySelectorAll('[type="drag"]');
|
|
238
|
+
const dragParents = Array.from(allDragElements).map(el => el.parentElement);
|
|
239
|
+
const allSameParent = dragParents.every(parent => parent === dragElement.parentElement);
|
|
240
|
+
// Remove from old parents
|
|
241
|
+
if (allSameParent) {
|
|
242
|
+
dragElement.remove();
|
|
243
|
+
dropElement.remove();
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
dragElement.parentElement.parentElement.remove();
|
|
247
|
+
dropElement.parentElement.parentElement.remove();
|
|
248
|
+
}
|
|
249
|
+
// Add animation and popup classes
|
|
250
|
+
dragElement.classList.add('zoom-fade-in', 'after-drop-popup-drag-element');
|
|
251
|
+
dropElement.classList.add('zoom-fade-in', 'after-drop-popup-drop-element');
|
|
252
|
+
div.appendChild(dragElement);
|
|
253
|
+
div.appendChild(dropElement);
|
|
254
|
+
dropElement.classList.remove('empty');
|
|
255
|
+
setTimeout(() => {
|
|
256
|
+
dragElement.classList.remove('zoom-fade-in');
|
|
257
|
+
dropElement.classList.remove('zoom-fade-in');
|
|
258
|
+
dragElement.classList.add('zoom-fade-out');
|
|
259
|
+
dropElement.classList.add('zoom-fade-out');
|
|
260
|
+
setTimeout(() => {
|
|
261
|
+
div.remove();
|
|
262
|
+
container.style.pointerEvents = 'auto';
|
|
263
|
+
}, 800); // match animation duration
|
|
264
|
+
}, 2000); // stay for 2 seconds
|
|
265
|
+
}, 250);
|
|
266
|
+
}
|
|
267
|
+
|
|
229
268
|
function buildDropHasDragFromDOM() {
|
|
230
269
|
const dropHasDrag = {};
|
|
231
270
|
const dropElements = document.querySelectorAll("[type='drop']");
|
|
@@ -292,7 +331,7 @@ function enableDraggingWithScaling(element) {
|
|
|
292
331
|
isDragging = false;
|
|
293
332
|
return;
|
|
294
333
|
}
|
|
295
|
-
|
|
334
|
+
AudioPlayer.getI().stop();
|
|
296
335
|
removeHighlight(element);
|
|
297
336
|
isDragging = true;
|
|
298
337
|
isClicked = true;
|
|
@@ -396,6 +435,7 @@ function enableDraggingWithScaling(element) {
|
|
|
396
435
|
// Start observing the element
|
|
397
436
|
observer.observe(container, observerConfig);
|
|
398
437
|
const onMove = (event) => {
|
|
438
|
+
console.log('moved');
|
|
399
439
|
if (!isDragging)
|
|
400
440
|
return;
|
|
401
441
|
if (isDraggingDisabled) {
|
|
@@ -404,7 +444,7 @@ function enableDraggingWithScaling(element) {
|
|
|
404
444
|
}
|
|
405
445
|
isClicked = false;
|
|
406
446
|
element.style.transition = 'none';
|
|
407
|
-
const containerScale =
|
|
447
|
+
const containerScale = calculateScale();
|
|
408
448
|
let dx = 0;
|
|
409
449
|
let dy = 0;
|
|
410
450
|
if (event instanceof MouseEvent) {
|
|
@@ -703,7 +743,6 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
703
743
|
});
|
|
704
744
|
handleShowCheck();
|
|
705
745
|
}
|
|
706
|
-
const tempVanishedValues = [];
|
|
707
746
|
async function onElementDropComplete(dragElement, dropElement) {
|
|
708
747
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
709
748
|
const container = document.getElementById(LidoContainer);
|
|
@@ -730,7 +769,6 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
730
769
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
|
|
731
770
|
return;
|
|
732
771
|
}
|
|
733
|
-
// let isCorrect = dropElement.getAttribute('value').toLowerCase().includes(dragElement.getAttribute('value').toLowerCase());
|
|
734
772
|
let isCorrect;
|
|
735
773
|
const dragValue = ((_c = dragElement.getAttribute('value')) === null || _c === void 0 ? void 0 : _c.trim()) || "";
|
|
736
774
|
const dropValue = ((_d = dropElement.getAttribute('value')) === null || _d === void 0 ? void 0 : _d.trim()) || "";
|
|
@@ -747,7 +785,8 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
747
785
|
}
|
|
748
786
|
}
|
|
749
787
|
else {
|
|
750
|
-
|
|
788
|
+
//strings
|
|
789
|
+
isCorrect = dropValue.toLowerCase().includes(dragValue.toLowerCase());
|
|
751
790
|
}
|
|
752
791
|
if (!isCorrect) {
|
|
753
792
|
dragElement.style.transition = 'transform 0.5s ease';
|
|
@@ -757,6 +796,7 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
757
796
|
await executeActions(onInCorrect, dropElement, dragElement);
|
|
758
797
|
setTimeout(() => {
|
|
759
798
|
dragElement.style.transform = 'translate(0, 0)';
|
|
799
|
+
storingEachActivityScore(false);
|
|
760
800
|
// const oldDropIndex = dragToDropMap[dragElement.getAttribute('data-id')];
|
|
761
801
|
// if (oldDropIndex !== undefined && dropHasDrag[oldDropIndex]) {
|
|
762
802
|
// dropHasDrag[oldDropIndex].isFull = false;
|
|
@@ -782,61 +822,18 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
782
822
|
else {
|
|
783
823
|
const checkdropAttr = container.getAttribute('dropAttr');
|
|
784
824
|
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);
|
|
825
|
+
//This function coming from animationhandler.ts
|
|
826
|
+
dragDropAnimation(container, dragElement, dropElement);
|
|
837
827
|
}
|
|
838
828
|
}
|
|
839
829
|
}
|
|
830
|
+
else {
|
|
831
|
+
const checkdropAttr = container.getAttribute('dropAttr');
|
|
832
|
+
if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
|
|
833
|
+
//This function coming from animationhandler.ts
|
|
834
|
+
dragDropAnimation(container, dragElement, dropElement);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
840
837
|
if (dropElement) {
|
|
841
838
|
let selectedValues = JSON.parse((_e = container.getAttribute(SelectedValuesKey)) !== null && _e !== void 0 ? _e : "[]");
|
|
842
839
|
const dragValue = dragElement.getAttribute('value');
|
|
@@ -969,11 +966,12 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
969
966
|
// Add pulse and highlight effect for a successful match
|
|
970
967
|
const isCorrect = dropElement['value'].toLowerCase().includes(dragElement['value'].toLowerCase());
|
|
971
968
|
dispatchElementDropEvent(dragElement, dropElement, isCorrect);
|
|
972
|
-
storingEachActivityScore(isCorrect);
|
|
969
|
+
// storingEachActivityScore(isCorrect);
|
|
973
970
|
dragElement.style.opacity = '1';
|
|
974
971
|
await onActivityComplete(dragElement, dropElement);
|
|
975
972
|
const allDropElements = document.querySelectorAll('.drop-element');
|
|
976
973
|
allDropElements.forEach(el => updateDropBorder(el));
|
|
974
|
+
await onActivityComplete(dragElement, dropElement);
|
|
977
975
|
}
|
|
978
976
|
function updateDropBorder(element) {
|
|
979
977
|
if (!element || !element.classList.contains('drop-element'))
|
|
@@ -1365,7 +1363,7 @@ function enableReorderDrag(element) {
|
|
|
1365
1363
|
isClicked = false;
|
|
1366
1364
|
event.preventDefault();
|
|
1367
1365
|
const containerRect = container.getBoundingClientRect();
|
|
1368
|
-
const containerScale =
|
|
1366
|
+
const containerScale = calculateScale();
|
|
1369
1367
|
const newLeft = (point.clientX - containerRect.left - offsetXInElement) / containerScale;
|
|
1370
1368
|
const newTop = (point.clientY - containerRect.top - offsetYInElement) / containerScale;
|
|
1371
1369
|
element.style.left = `${newLeft}px`;
|
|
@@ -1432,9 +1430,7 @@ function enableReorderDrag(element) {
|
|
|
1432
1430
|
else {
|
|
1433
1431
|
if (element.parentElement['type'] !== 'category') {
|
|
1434
1432
|
executeActions('this.alignMatch=true', divEl, element);
|
|
1435
|
-
|
|
1436
|
-
divEl.replaceWith(element);
|
|
1437
|
-
}, 500);
|
|
1433
|
+
divEl.replaceWith(element);
|
|
1438
1434
|
}
|
|
1439
1435
|
else {
|
|
1440
1436
|
const categoryElement = element.parentElement;
|
|
@@ -1910,9 +1906,6 @@ function slidingWithScaling(element) {
|
|
|
1910
1906
|
element.style.transform = 'translate(0, 0)'; // Initialize transform for consistent dragging
|
|
1911
1907
|
element.addEventListener('mousedown', onStart);
|
|
1912
1908
|
element.addEventListener('touchstart', onStart);
|
|
1913
|
-
element.addEventListener('click', ev => {
|
|
1914
|
-
onClickDropOrDragElement(element, 'drag');
|
|
1915
|
-
});
|
|
1916
1909
|
}
|
|
1917
1910
|
const slideCompleted = (slideElement) => {
|
|
1918
1911
|
var _a;
|
|
@@ -1928,8 +1921,13 @@ const slideCompleted = (slideElement) => {
|
|
|
1928
1921
|
const objectiveArray = objectiveString.split(',');
|
|
1929
1922
|
const elementIndex = slideArr.indexOf(slideElement['value']);
|
|
1930
1923
|
const isCorrect = matchStringPattern(slideElement['value'], [objectiveArray[elementIndex].trim()]);
|
|
1931
|
-
|
|
1932
|
-
|
|
1924
|
+
if (container.getAttribute('is-continue-on-correct') === 'true') {
|
|
1925
|
+
storingEachActivityScore(true);
|
|
1926
|
+
handleShowCheck();
|
|
1927
|
+
}
|
|
1928
|
+
else {
|
|
1929
|
+
storingEachActivityScore(isCorrect);
|
|
1930
|
+
}
|
|
1933
1931
|
};
|
|
1934
1932
|
|
|
1935
1933
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -3214,7 +3212,10 @@ function addClickListenerForClickType(element) {
|
|
|
3214
3212
|
dispatchClickEvent(element, isCorrect);
|
|
3215
3213
|
if (isCorrect) {
|
|
3216
3214
|
const onCorrect = element.getAttribute('onCorrect');
|
|
3217
|
-
|
|
3215
|
+
if (!(element.id && element.id.startsWith('key-button'))) {
|
|
3216
|
+
element.style.pointerEvents = 'none';
|
|
3217
|
+
}
|
|
3218
|
+
document.body.style.pointerEvents = 'none';
|
|
3218
3219
|
await executeActions(onCorrect, element);
|
|
3219
3220
|
}
|
|
3220
3221
|
else {
|
|
@@ -3271,6 +3272,7 @@ function addClickListenerForClickType(element) {
|
|
|
3271
3272
|
container.setAttribute(SelectedValuesKey, JSON.stringify(sortedValues));
|
|
3272
3273
|
const isCorrect = objective.includes(element['value']);
|
|
3273
3274
|
dispatchClickEvent(element, isCorrect);
|
|
3275
|
+
AudioPlayer.getI().stop();
|
|
3274
3276
|
if (isCorrect) {
|
|
3275
3277
|
const onCorrect = element.getAttribute('onCorrect');
|
|
3276
3278
|
await executeActions(onCorrect, element);
|
|
@@ -68584,6 +68586,7 @@ const initEventsForElement = async (element, type) => {
|
|
|
68584
68586
|
const executeActions = async (actionsString, thisElement, element) => {
|
|
68585
68587
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
68586
68588
|
const actions = parseActions(actionsString);
|
|
68589
|
+
body.style.pointerEvents = 'none';
|
|
68587
68590
|
for (let i = 0; i < actions.length; i++) {
|
|
68588
68591
|
const action = actions[i];
|
|
68589
68592
|
const queriedElement = document.querySelector(action.actor);
|
|
@@ -68614,7 +68617,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68614
68617
|
const container = document.getElementById(LidoContainer);
|
|
68615
68618
|
const containerScale = getElementScale$1(container);
|
|
68616
68619
|
dragElement.style.transform = 'translate(0,0)';
|
|
68617
|
-
console.log(
|
|
68620
|
+
console.log('logg alinmatch');
|
|
68618
68621
|
const dropRect = dropElement.getBoundingClientRect();
|
|
68619
68622
|
const dragRect = dragElement.getBoundingClientRect();
|
|
68620
68623
|
const dropCenterX = dropRect.left + dropRect.width / 2;
|
|
@@ -68668,7 +68671,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68668
68671
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
68669
68672
|
targetElement.style.pointerEvents = 'none';
|
|
68670
68673
|
}
|
|
68671
|
-
validateObjectiveStatus();
|
|
68674
|
+
await validateObjectiveStatus();
|
|
68672
68675
|
break;
|
|
68673
68676
|
}
|
|
68674
68677
|
case 'prevBtn': {
|
|
@@ -68822,7 +68825,9 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68822
68825
|
break;
|
|
68823
68826
|
}
|
|
68824
68827
|
case 'updateCalculatorAnswer': {
|
|
68825
|
-
|
|
68828
|
+
if (targetElement) {
|
|
68829
|
+
updateCalculatorAnswer(targetElement);
|
|
68830
|
+
}
|
|
68826
68831
|
break;
|
|
68827
68832
|
}
|
|
68828
68833
|
default: {
|
|
@@ -68832,6 +68837,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68832
68837
|
}
|
|
68833
68838
|
}
|
|
68834
68839
|
}
|
|
68840
|
+
body.style.pointerEvents = 'auto';
|
|
68835
68841
|
};
|
|
68836
68842
|
const afterDropDragHandling = (dragElement, dropElement) => {
|
|
68837
68843
|
const container = document.getElementById(LidoContainer);
|
|
@@ -69148,6 +69154,7 @@ const handleShowCheck = () => {
|
|
|
69148
69154
|
validateObjectiveStatus();
|
|
69149
69155
|
}
|
|
69150
69156
|
};
|
|
69157
|
+
const body = document.body;
|
|
69151
69158
|
let res;
|
|
69152
69159
|
const validateObjectiveStatus = async () => {
|
|
69153
69160
|
var _a, _b;
|
|
@@ -69212,6 +69219,7 @@ const validateObjectiveStatus = async () => {
|
|
|
69212
69219
|
if (!isContinueOnCorrect) {
|
|
69213
69220
|
triggerNextContainer();
|
|
69214
69221
|
await calculateScore();
|
|
69222
|
+
triggerNextContainer();
|
|
69215
69223
|
}
|
|
69216
69224
|
else {
|
|
69217
69225
|
const onInCorrect = container.getAttribute('onInCorrect');
|
|
@@ -69234,16 +69242,16 @@ const triggerPrevcontainer = () => {
|
|
|
69234
69242
|
function convertUrlToRelative(url) {
|
|
69235
69243
|
const container = document.getElementById(LidoContainer);
|
|
69236
69244
|
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'))) {
|
|
69245
|
+
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
69246
|
return url;
|
|
69239
69247
|
}
|
|
69240
|
-
|
|
69241
|
-
const newUrl =
|
|
69242
|
-
|
|
69243
|
-
|
|
69244
|
-
|
|
69245
|
-
return index$1.getAssetPath(url);
|
|
69248
|
+
if (baseUrl) {
|
|
69249
|
+
const newUrl = url.startsWith('/') ? url.slice(1) : url;
|
|
69250
|
+
if (newUrl.startsWith(baseUrl.replace(/^\/+|\/+$/g, '')))
|
|
69251
|
+
return newUrl;
|
|
69252
|
+
return baseUrl.endsWith('/') ? baseUrl + newUrl : `${baseUrl}/${newUrl}`;
|
|
69246
69253
|
}
|
|
69254
|
+
return index$1.getAssetPath(url);
|
|
69247
69255
|
}
|
|
69248
69256
|
/**
|
|
69249
69257
|
* Asynchronously speaks the given text using the browser's text-to-speech API.
|
|
@@ -69715,9 +69723,6 @@ const SumTogetherAnimation = async (element, value) => {
|
|
|
69715
69723
|
return;
|
|
69716
69724
|
if (!value)
|
|
69717
69725
|
return;
|
|
69718
|
-
const container = document.getElementById(LidoContainer);
|
|
69719
|
-
if (!container)
|
|
69720
|
-
return;
|
|
69721
69726
|
// Expecting structure: [_, TopRow, questionRow, optionRow, ...]
|
|
69722
69727
|
const TopRow = Array.from(element.children)[1];
|
|
69723
69728
|
const questionRow = Array.from(element.children)[2];
|
|
@@ -69861,17 +69866,15 @@ function placeElementInDropZone(dropElement, dragElement, orientation, dropAttr)
|
|
|
69861
69866
|
dragElement.style.width = "auto";
|
|
69862
69867
|
dragElement.style.height = "auto";
|
|
69863
69868
|
}
|
|
69864
|
-
const updateCalculatorAnswer = () => {
|
|
69869
|
+
const updateCalculatorAnswer = (el) => {
|
|
69865
69870
|
const container = document.getElementById(LidoContainer);
|
|
69866
69871
|
if (!container)
|
|
69867
69872
|
return;
|
|
69868
69873
|
const calci = document.querySelector('#lidoCalculator');
|
|
69869
69874
|
if (!calci)
|
|
69870
69875
|
return;
|
|
69871
|
-
const answerText = container.querySelector('#answer');
|
|
69872
69876
|
const value = calci.getAttribute('value');
|
|
69873
|
-
|
|
69874
|
-
answerText.setAttribute('string', value);
|
|
69877
|
+
el.setAttribute('string', value);
|
|
69875
69878
|
};
|
|
69876
69879
|
|
|
69877
69880
|
exports.ActivityScoreKey = ActivityScoreKey;
|
|
@@ -69901,6 +69904,7 @@ exports.handleElementClick = handleElementClick;
|
|
|
69901
69904
|
exports.handleFloatElementPosition = handleFloatElementPosition;
|
|
69902
69905
|
exports.handlingChildElements = handlingChildElements;
|
|
69903
69906
|
exports.initEventsForElement = initEventsForElement;
|
|
69907
|
+
exports.matchStringPattern = matchStringPattern;
|
|
69904
69908
|
exports.nextUrl = nextUrl;
|
|
69905
69909
|
exports.parseProp = parseProp;
|
|
69906
69910
|
exports.prevUrl = prevUrl;
|
|
@@ -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() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { NextContainerKey, PrevContainerKey, LidoContainer, exitUrl, prevUrl, nextUrl, speakUrl, ActivityScoreKey, } from "../../utils/constants";
|
|
2
|
+
import { SelectedValuesKey, NextContainerKey, PrevContainerKey, LidoContainer, exitUrl, prevUrl, nextUrl, speakUrl, ActivityScoreKey, } from "../../utils/constants";
|
|
3
3
|
import { dispatchActivityChangeEvent, dispatchGameCompletedEvent, dispatchGameExitEvent } from "../../utils/customEvents";
|
|
4
|
-
import { calculateScale, getCancelBtnPopup, setCancelBtnPopup, executeActions, triggerPrevcontainer, convertUrlToRelative } from "../../utils/utils";
|
|
4
|
+
import { calculateScale, getCancelBtnPopup, setCancelBtnPopup, executeActions, triggerPrevcontainer, convertUrlToRelative, triggerNextContainer, matchStringPattern } from "../../utils/utils";
|
|
5
5
|
import { AudioPlayer } from "../../utils/audioPlayer";
|
|
6
6
|
import { generateUUIDFallback } from "../../utils/utils";
|
|
7
7
|
import i18next from "../../utils/i18n";
|
|
@@ -88,7 +88,6 @@ export class LidoHome {
|
|
|
88
88
|
rightbtn.style.visibility = 'hidden';
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
91
|
-
rightbtn.style.pointerEvents = 'auto';
|
|
92
91
|
rightbtn.style.visibility = 'visible';
|
|
93
92
|
}
|
|
94
93
|
}, 100);
|
|
@@ -299,6 +298,9 @@ export class LidoHome {
|
|
|
299
298
|
if (tagName === 'lido-text' && props.string) {
|
|
300
299
|
props.string = i18next.t(props.string);
|
|
301
300
|
}
|
|
301
|
+
if (tagName === 'lido-text' && props.string) {
|
|
302
|
+
props.string = i18next.t(props.string);
|
|
303
|
+
}
|
|
302
304
|
// Map XML tags to Stencil components
|
|
303
305
|
const componentMapping = {
|
|
304
306
|
'lido-container': (h("lido-container", Object.assign({}, props, { canplay: this.canplay, baseUrl: this.baseUrl, height: this.height }), children)),
|
|
@@ -348,6 +350,16 @@ export class LidoHome {
|
|
|
348
350
|
this.containers = containers;
|
|
349
351
|
console.log("container :::", containers);
|
|
350
352
|
}
|
|
353
|
+
areAllDropsFilled() {
|
|
354
|
+
const drops = Array.from(document.querySelectorAll('[type="drop"]'));
|
|
355
|
+
const drags = Array.from(document.querySelectorAll('[type="drag"]')).filter(drag => drag.getAttribute('drop-to'));
|
|
356
|
+
console.log('drops', drops);
|
|
357
|
+
console.log('drags', drags);
|
|
358
|
+
return drops.every(drop => {
|
|
359
|
+
const dropId = drop.id;
|
|
360
|
+
return drags.some(drag => drag.getAttribute('drop-to') === dropId);
|
|
361
|
+
});
|
|
362
|
+
}
|
|
351
363
|
async btnpopup() {
|
|
352
364
|
setCancelBtnPopup(false);
|
|
353
365
|
await AudioPlayer.getI().stop();
|
|
@@ -367,6 +379,18 @@ export class LidoHome {
|
|
|
367
379
|
await new Promise(resolve => setTimeout(resolve, 300));
|
|
368
380
|
}
|
|
369
381
|
}
|
|
382
|
+
if (this.areAllDropsFilled()) {
|
|
383
|
+
const objectiveString = container['objective'];
|
|
384
|
+
const objectiveArray = JSON.parse(localStorage.getItem(SelectedValuesKey) || '[]');
|
|
385
|
+
const res = matchStringPattern(objectiveString, objectiveArray);
|
|
386
|
+
console.log('Resultt', res);
|
|
387
|
+
if (res) {
|
|
388
|
+
triggerNextContainer();
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
console.log('Not yet filled ');
|
|
393
|
+
}
|
|
370
394
|
}
|
|
371
395
|
scaleNavbarContainer() {
|
|
372
396
|
setTimeout(() => {
|