lido-player 0.0.2-beta-22-dev → 0.0.2-beta-24-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/LICENSE +21 -21
- package/dist/cjs/{decode-Cr5DANqc.js → decode-B7mZm_nK.js} +1 -1
- package/dist/cjs/{index-0BvcfeCt.js → index-BCRDjbaz.js} +276 -98
- package/dist/cjs/{index-DnaH8sO-.js → index-DBCFoh1I.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +231 -59
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/avatar/lido-avatar.css +4 -4
- package/dist/collection/components/avatar/lido-avatar.js +9 -2
- package/dist/collection/components/avatar/lido-avatar.tsx +214 -207
- package/dist/collection/components/avatar/readme.md +49 -49
- package/dist/collection/components/calculator/lido-calculator.css +89 -89
- package/dist/collection/components/calculator/lido-calculator.js +2 -2
- package/dist/collection/components/canvas/lido-canvas.css +33 -33
- package/dist/collection/components/canvas/lido-canvas.js +1 -1
- package/dist/collection/components/cell/lido-cell.css +100 -100
- package/dist/collection/components/cell/lido-cell.js +12 -12
- package/dist/collection/components/column/lido-col.css +19 -19
- package/dist/collection/components/column/lido-col.js +6 -6
- package/dist/collection/components/container/lido-container.css +34 -10
- package/dist/collection/components/container/lido-container.js +39 -8
- package/dist/collection/components/flashCard/lido-flash-card.css +72 -46
- package/dist/collection/components/flashCard/lido-flash-card.js +156 -15
- package/dist/collection/components/float/lido-float.css +30 -30
- package/dist/collection/components/float/lido-float.js +2 -2
- package/dist/collection/components/home/lido-home.css +309 -309
- package/dist/collection/components/home/lido-home.js +5 -5
- package/dist/collection/components/image/lido-image.css +17 -17
- package/dist/collection/components/image/lido-image.js +6 -6
- package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
- package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
- package/dist/collection/components/position/lido-pos.css +16 -16
- package/dist/collection/components/position/lido-pos.js +2 -2
- package/dist/collection/components/random/lido-random.css +8 -8
- package/dist/collection/components/random/lido-random.js +2 -2
- package/dist/collection/components/root/lido-root.js +5 -5
- package/dist/collection/components/row/lido-row.css +10 -10
- package/dist/collection/components/row/lido-row.js +6 -6
- package/dist/collection/components/scale/assets/Shadow.svg +9 -9
- package/dist/collection/components/scale/lido-balance.css +174 -174
- package/dist/collection/components/scale/lido-balance.js +13 -13
- package/dist/collection/components/shape/lido-shape.css +216 -216
- package/dist/collection/components/shape/lido-shape.js +6 -6
- package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
- package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
- package/dist/collection/components/text/lido-text.css +53 -53
- package/dist/collection/components/text/lido-text.js +5 -5
- package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
- package/dist/collection/components/trace/lido-trace.css +97 -97
- package/dist/collection/components/trace/lido-trace.js +7 -14
- package/dist/collection/components/wrap/lido-wrap.css +18 -18
- package/dist/collection/components/wrap/lido-wrap.js +6 -6
- package/dist/collection/css/animation.css +211 -211
- package/dist/collection/css/index.css +323 -323
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
- package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
- package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
- package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
- package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
- package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
- package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
- package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
- package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
- package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
- package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
- package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
- package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
- package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
- package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
- package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
- package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
- package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
- package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
- package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
- package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
- package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
- package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
- package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
- package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
- package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
- package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
- package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
- package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
- package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
- package/dist/collection/stories/Templates/total/total.stories.js +28 -28
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
- package/dist/collection/stories/components/flash-card.stories.js +48 -48
- package/dist/collection/stories/components/keyboard.stories.js +10 -10
- package/dist/collection/stories/components/slider.stories.js +4 -4
- package/dist/collection/stories/components/trace.stories.js +5 -5
- package/dist/collection/utils/audioPlayer.js +7 -4
- package/dist/collection/utils/utils.js +70 -14
- package/dist/collection/utils/utilsHandlers/clickHandler.js +4 -3
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +137 -28
- package/dist/collection/utils/utilsHandlers/highlightHandler.js +56 -56
- package/dist/collection/utils/utilsHandlers/slideHandler.js +17 -8
- package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
- 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-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 +1 -1
- 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-B-mIxynb.js +1 -0
- package/dist/components/{p-DdQ1eqJr.js → p-B8nzzM8c.js} +1 -1
- package/dist/components/{p-D2GhaM-T.js → p-Bv1hunWk.js} +1 -1
- package/dist/components/{p-DDS30M3y.js → p-C-pHQRbp.js} +1 -1
- package/dist/components/{p-CPYnt0P-.js → p-C5WmmkI6.js} +1 -1
- package/dist/components/{p-useuhkjH.js → p-C70ykycD.js} +1 -1
- package/dist/components/{p-CFzvgrMa.js → p-CFPSty2U.js} +1 -1
- package/dist/components/p-CFWohOId.js +1 -0
- package/dist/components/{p-BfwUqpXc.js → p-CTlcpv4a.js} +1 -1
- package/dist/components/{p-CyGxEcn7.js → p-CXHPZN3m.js} +1 -1
- package/dist/components/{p-Bw-OC9iR.js → p-CgsPIpg0.js} +1 -1
- package/dist/components/{p-ChfVUoX4.js → p-CsDu4kiC.js} +1 -1
- package/dist/components/{p-CwDTdXe5.js → p-DG0KR2iN.js} +1 -1
- package/dist/components/p-DLyacZap.js +1 -0
- package/dist/components/{p-BiBt9LGP.js → p-DNo3iX_r.js} +1 -1
- package/dist/components/p-DONbWJGn.js +1 -0
- package/dist/components/p-DXy70SGv.js +1 -0
- package/dist/components/{p-CkxAm8rY.js → p-DfjbSSI2.js} +2 -2
- package/dist/components/{p-BJiyBHYT.js → p-Gwko4CTL.js} +1 -1
- package/dist/components/p-uuyVO2B1.js +1 -0
- package/dist/esm/{decode-DkSXjv7K.js → decode-CyhHNDvT.js} +1 -1
- package/dist/esm/{index-D9-TTsdZ.js → index-CndbFQ5I.js} +276 -98
- package/dist/esm/{index-Dvjbti-h.js → index-mMpK8062.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +231 -59
- package/dist/esm/lido-player.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/lido-player/assets/Shadow.svg +9 -9
- package/dist/lido-player/assets/Tracing-hand.svg +8 -8
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-avatar.css +4 -4
- package/dist/lido-player/lido-avatar.tsx +214 -207
- package/dist/lido-player/lido-player.css +7 -7
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-77iyGppv.js +1 -0
- package/dist/lido-player/p-d760e67b.entry.js +12 -0
- package/dist/lido-player/{p-Dc8j8Hxw.js → p-etMb7U6W.js} +1 -1
- package/dist/lido-player/p-mMpK8062.js +2 -0
- package/dist/lido-player/readme.md +49 -49
- package/dist/types/components/container/lido-container.d.ts +4 -0
- package/dist/types/components/flashCard/lido-flash-card.d.ts +17 -0
- package/dist/types/types/json.d.ts +3 -3
- package/dist/types/utils/audioPlayer.d.ts +2 -1
- package/dist/types/utils/utils.d.ts +5 -1
- package/dist/types/utils/utilsHandlers/clickHandler.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/slideHandler.d.ts +1 -1
- package/package.json +73 -74
- package/readme.md +113 -113
- package/dist/components/p-BUfCIPRa.js +0 -1
- package/dist/components/p-DP6jQ5ML.js +0 -1
- package/dist/components/p-DZRNZCPt.js +0 -1
- package/dist/components/p-DbR5sNOj.js +0 -1
- package/dist/components/p-leIEepjl.js +0 -1
- package/dist/components/p-u3czV7QM.js +0 -1
- package/dist/lido-player/p-35fa0b8b.entry.js +0 -12
- package/dist/lido-player/p-D2iINRNN.js +0 -1
- package/dist/lido-player/p-Dvjbti-h.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement, c as getAssetPath, d as createEvent } from './index-
|
|
2
|
-
import { R as RiveService, s as setVisibilityWithDelay, i as initEventsForElement, c as convertUrlToRelative, p as parseProp, e as equationCheck, S as SelectedValuesKey, a as storingEachActivityScore, A as AudioPlayer, b as executeActions, d as calculateScore, t as triggerNextContainer, C as CalculatorOk, h as handlingChildElements, f as attachSpeakIcon, L as LIDO_INTERACTION_CLEANUP_EVENT, T as TemplateID, j as calculateScale, k as highlightElement, l as Timer, r as resetFloatState, m as handleFloatElementPosition, n as handleElementClick, o as commonjsGlobal, g as getDefaultExportFromCjs, q as generateUUIDFallback, u as ActivityScoreKey, v as dispatchActivityChangeEvent, G as GameScore, w as dispatchGameExitEvent, x as speakUrl, y as nextUrl, z as prevUrl, B as exitUrl, N as NextContainerKey, P as PrevContainerKey, D as LIDO_COMMON_AUDIO_PATH, E as LidoContainer$1, F as getCancelBtnPopup, H as matchStringPattern, I as triggerPrevcontainer, J as setActiveZipAssets, K as clearActiveZipAssets, M as setCancelBtnPopup, O as tinycolor, Q as stopHighlightForSpeakingElement, U as DropAction, V as validateObjectiveStatus, W as fraction, X as LIDO_COMMON_AUDIO_READY_EVENT, Y as TraceMode, Z as speakIcon, _ as fingerUrl } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement, c as getAssetPath, d as createEvent } from './index-mMpK8062.js';
|
|
2
|
+
import { R as RiveService, s as setVisibilityWithDelay, i as initEventsForElement, c as convertUrlToRelative, p as parseProp, e as equationCheck, S as SelectedValuesKey, a as storingEachActivityScore, A as AudioPlayer, b as executeActions, d as calculateScore, t as triggerNextContainer, C as CalculatorOk, h as handlingChildElements, f as attachSpeakIcon, L as LIDO_INTERACTION_CLEANUP_EVENT, T as TemplateID, j as calculateScale, k as highlightElement, l as Timer, r as resetFloatState, m as handleFloatElementPosition, n as handleElementClick, o as commonjsGlobal, g as getDefaultExportFromCjs, q as generateUUIDFallback, u as ActivityScoreKey, v as dispatchActivityChangeEvent, G as GameScore, w as dispatchGameExitEvent, x as speakUrl, y as nextUrl, z as prevUrl, B as exitUrl, N as NextContainerKey, P as PrevContainerKey, D as LIDO_COMMON_AUDIO_PATH, E as LidoContainer$1, F as getCancelBtnPopup, H as matchStringPattern, I as triggerPrevcontainer, J as setActiveZipAssets, K as clearActiveZipAssets, M as setCancelBtnPopup, O as tinycolor, Q as stopHighlightForSpeakingElement, U as DropAction, V as validateObjectiveStatus, W as fraction, X as LIDO_COMMON_AUDIO_READY_EVENT, Y as TraceMode, Z as speakIcon, _ as fingerUrl } from './index-CndbFQ5I.js';
|
|
3
3
|
|
|
4
4
|
var rive$1 = {exports: {}};
|
|
5
5
|
|
|
@@ -8125,9 +8125,16 @@ const LidoAvatar = class {
|
|
|
8125
8125
|
this.riveInstance = new riveExports.Rive({
|
|
8126
8126
|
src: rivSrc,
|
|
8127
8127
|
canvas: canvas,
|
|
8128
|
-
stateMachines: '
|
|
8128
|
+
stateMachines: 'State Machine 1',
|
|
8129
8129
|
autoplay: true,
|
|
8130
8130
|
onLoad: () => {
|
|
8131
|
+
// Some avatars expose an idle animation instead of the expected state machine.
|
|
8132
|
+
if (!this.riveInstance.stateMachineNames.includes('State Machine 1')) {
|
|
8133
|
+
const idleAnimation = this.riveInstance.animationNames.find(name => name.toLowerCase() === 'idle');
|
|
8134
|
+
if (idleAnimation) {
|
|
8135
|
+
this.riveInstance.play(idleAnimation);
|
|
8136
|
+
}
|
|
8137
|
+
}
|
|
8131
8138
|
this.riveInstance.resizeDrawingSurfaceToCanvas();
|
|
8132
8139
|
riveService.setRiveInstance(this.riveInstance);
|
|
8133
8140
|
},
|
|
@@ -8158,7 +8165,7 @@ const LidoAvatar = class {
|
|
|
8158
8165
|
display: this.visible ? 'flex' : 'none',
|
|
8159
8166
|
zIndex: this.z,
|
|
8160
8167
|
};
|
|
8161
|
-
return (h(Host, { key: '
|
|
8168
|
+
return (h(Host, { key: '0e63e186eeccefd216831d41dc691fa89225f30d', id: this.id, type: this.type, "tab-index": this.tabIndex, value: this.value, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, src: this.src }, h("canvas", { key: '7e902dc84a2ae1f92b077053bdb6c935332d40e3', class: "lido-canvas" })));
|
|
8162
8169
|
}
|
|
8163
8170
|
static get assetsDirs() { return ["."]; }
|
|
8164
8171
|
get el() { return getElement(this); }
|
|
@@ -8400,7 +8407,7 @@ const LidoBalance = class {
|
|
|
8400
8407
|
};
|
|
8401
8408
|
}
|
|
8402
8409
|
render() {
|
|
8403
|
-
return (h(Host, { key: '
|
|
8410
|
+
return (h(Host, { key: 'e0e67ca26ec3906d9f085686dcb7c12f5022c35c', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString(), "pivot-image": this.pivotSvg, "scale-image": this.scaleSvg, "handler-image": this.handlerSvg }, h("div", { key: 'e69bada9ab75d0d73dbf2b999b52e149125d213b', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), h("div", { key: '2b0cc721fe9e90c4343e9401ce6b2c5a6c689d2e', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), h("div", { key: 'd2acc209d2fb3e74c148b8464895bec91f9e32ad', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), h("div", { key: 'e5c1c7f4143e97c30b0866dde1919667b3ec4a61', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), h("div", { key: '425602ff5dcbd12479651c7ed3f9585dcc1fcf06', class: "balance-plate-feedback left", ref: (el) => (this.leftFeedbackEl = el), style: { backgroundColor: this.feedbackColor }, "aria-hidden": !this.feedbackColor }), h("div", { key: '2bb09b99cc5ed98773c65465a1c6f28c89e97800', class: "balance-plate-feedback right", ref: (el) => (this.rightFeedbackEl = el), style: { backgroundColor: this.feedbackColor }, "aria-hidden": !this.feedbackColor }), h("div", { key: 'cc31758d61122a9e7ecca387d4e62fcab55516a4', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
|
|
8404
8411
|
}
|
|
8405
8412
|
static get assetsDirs() { return ["assets"]; }
|
|
8406
8413
|
get el() { return getElement(this); }
|
|
@@ -8593,7 +8600,7 @@ const LidoCalculator = class {
|
|
|
8593
8600
|
}
|
|
8594
8601
|
render() {
|
|
8595
8602
|
const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
|
|
8596
|
-
return (h(Host, { key: '
|
|
8603
|
+
return (h(Host, { key: 'ae833326069dd4cf9588701995962b0d1b3b0091', onEntry: this.onEntry, id: "lidoCalculator", style: { width: this.width, height: this.height, backgroundColor: this.bgColor, left: this.x, top: this.y } }, h("lido-cell", { key: '135b08be24862393217a0a93d4afd3ec8647547c', visible: "true", height: "94px", width: "60px" }, h("lido-text", { key: 'e6fb20b06bef347d68e427748669bb176c30b7a3', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "204%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, h("img", { key: '2b6077ffad1046fdedb816402fdcb906539afa5c', src: convertUrlToRelative(this.penIcon), alt: "pen", style: { width: '100%', height: '100%' } }))), h("div", { key: '96dfabdab176f66e16d6b03efb2e8ecad74c9d45', class: "lido-calculator-displayParent" }, h("div", { key: '9c711dd53ada73ca9ddac1c37b0719c5c746a591', class: "lido-calculator-display" }, this.displayValue)), h("div", { key: '5d595bf410fc1a75fa57c485fd08a8e97064016a', class: "lido-calculator-buttons" }, numbers.map((num, i) => (h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
|
|
8597
8604
|
'lido-calculator-btn-special': num === '←' || num === 'OK',
|
|
8598
8605
|
'lido-calculator-btn-default': num !== '←' && num !== 'OK'
|
|
8599
8606
|
}, onClick: () => this.handleClick(num) }))))));
|
|
@@ -8707,7 +8714,7 @@ const LidoCanvas = class {
|
|
|
8707
8714
|
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
8708
8715
|
}
|
|
8709
8716
|
render() {
|
|
8710
|
-
return (h(Host, { key: '
|
|
8717
|
+
return (h(Host, { key: 'ca88c99317fe079d25b16410d78cbd63e13d712c', id: "lido-canvas", class: "lido-canvas", style: this.style }, h("button", { key: '3e1085ff4be21ca281483367a41b51ba4ff49736', id: "lido-exit-button", onClick: () => this.clearCanvas() }), h("canvas", { key: '9c1f485a2a84b2da9468e8b83f1962cce7852efc', id: "lido-canvas" })));
|
|
8711
8718
|
}
|
|
8712
8719
|
get el() { return getElement(this); }
|
|
8713
8720
|
};
|
|
@@ -8966,7 +8973,7 @@ const LidoCell = class {
|
|
|
8966
8973
|
this.el.className = `lido-${parseProp(this.layout, orientation)}`;
|
|
8967
8974
|
}
|
|
8968
8975
|
render() {
|
|
8969
|
-
return (h(Host, { key: '
|
|
8976
|
+
return (h(Host, { key: '53d510e92a72d1f855e6d0cb0c0564c2f4351b64', id: this.id, class: "lido-cell", value: this.value, type: this.type, "tab-index": this.tabIndex, style: this.style, minDrops: this.minDrops, maxDrops: this.maxDrops, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "flex-direction": this.flexDirection, "disable-speak": this.disableSpeak }, h("slot", { key: '1af7a1f78e12bb1babcd91266eaf209b9d7530dc' })));
|
|
8970
8977
|
}
|
|
8971
8978
|
get el() { return getElement(this); }
|
|
8972
8979
|
};
|
|
@@ -9044,7 +9051,7 @@ const LidoCol = class {
|
|
|
9044
9051
|
};
|
|
9045
9052
|
}
|
|
9046
9053
|
render() {
|
|
9047
|
-
return (h(Host, { key: '
|
|
9054
|
+
return (h(Host, { key: 'b2ecb19a78feed7275d9e996255db4144d5e0153', id: this.id, class: "lido-col", type: this.type, "tab-index": this.tabIndex, value: this.value, style: this.style, minDrops: this.minDrops, maxDrops: this.maxDrops, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: '2d285d2c1557647e05abb470490da6c7c735a39d' })));
|
|
9048
9055
|
}
|
|
9049
9056
|
get el() { return getElement(this); }
|
|
9050
9057
|
};
|
|
@@ -11927,7 +11934,7 @@ instance
|
|
|
11927
11934
|
},
|
|
11928
11935
|
});
|
|
11929
11936
|
|
|
11930
|
-
const lidoContainerCss = () => `.lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}`;
|
|
11937
|
+
const lidoContainerCss = () => `.lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}lido-container[template-id="writeCard"] #arrow{box-sizing:border-box;border:10px solid transparent;box-shadow:0px 8px 0px 0px #8b310f;animation:flash-card-next-attention 1.4s ease-in-out infinite}lido-container[template-id="writeCard"] #arrow.fading{opacity:1 !important}@keyframes flash-card-next-attention{0%,100%{border-color:#ffc34d;filter:drop-shadow(0 0 0 rgba(255, 195, 77, 0))}50%{border-color:#fff1a8;filter:drop-shadow(0 0 10px rgba(255, 195, 77, 0.95))}}`;
|
|
11931
11938
|
|
|
11932
11939
|
const LidoContainer = class {
|
|
11933
11940
|
constructor(hostRef) {
|
|
@@ -12087,6 +12094,32 @@ const LidoContainer = class {
|
|
|
12087
12094
|
this.speakFlag = false;
|
|
12088
12095
|
this.handleWindowResize = () => this.scaleContainer(this.el);
|
|
12089
12096
|
this.handleWindowLoad = () => this.scaleContainer(this.el);
|
|
12097
|
+
this.isWriteCardContainer = () => this.templateId === 'writeCard';
|
|
12098
|
+
this.syncWriteCardArrowHighlight = () => {
|
|
12099
|
+
if (!this.isWriteCardContainer())
|
|
12100
|
+
return;
|
|
12101
|
+
const arrow = this.el.querySelector('#arrow');
|
|
12102
|
+
if (!arrow)
|
|
12103
|
+
return;
|
|
12104
|
+
const style = window.getComputedStyle(arrow);
|
|
12105
|
+
const hidden = style.display === 'none' ||
|
|
12106
|
+
style.visibility === 'hidden' ||
|
|
12107
|
+
style.opacity === '0';
|
|
12108
|
+
arrow.classList.toggle('flash-card-next-glowing', !hidden);
|
|
12109
|
+
};
|
|
12110
|
+
this.observeWriteCardArrow = () => {
|
|
12111
|
+
var _a;
|
|
12112
|
+
if (!this.isWriteCardContainer())
|
|
12113
|
+
return;
|
|
12114
|
+
(_a = this.writeCardArrowObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
12115
|
+
this.writeCardArrowObserver = new MutationObserver(() => this.syncWriteCardArrowHighlight());
|
|
12116
|
+
this.writeCardArrowObserver.observe(this.el, {
|
|
12117
|
+
subtree: true,
|
|
12118
|
+
attributes: true,
|
|
12119
|
+
attributeFilter: ['class', 'style', 'visible'],
|
|
12120
|
+
});
|
|
12121
|
+
this.syncWriteCardArrowHighlight();
|
|
12122
|
+
};
|
|
12090
12123
|
}
|
|
12091
12124
|
cleanupInteractionHandlers() {
|
|
12092
12125
|
this.el.querySelectorAll('[type="drag"], [type="slide"], [move="true"]').forEach(element => {
|
|
@@ -12332,10 +12365,12 @@ const LidoContainer = class {
|
|
|
12332
12365
|
setTimeout(() => {
|
|
12333
12366
|
this.el.setAttribute("onEntry", `${this.templateId}.speak='${!this.speakFlag}'; ` + this.el.getAttribute("onEntry"));
|
|
12334
12367
|
initEventsForElement(this.el, this.type);
|
|
12368
|
+
this.observeWriteCardArrow();
|
|
12335
12369
|
}, 100);
|
|
12336
12370
|
}
|
|
12337
12371
|
else {
|
|
12338
12372
|
initEventsForElement(this.el, this.type);
|
|
12373
|
+
this.observeWriteCardArrow();
|
|
12339
12374
|
}
|
|
12340
12375
|
if (this.customStyle) {
|
|
12341
12376
|
const styleElement = document.createElement('style');
|
|
@@ -12351,9 +12386,12 @@ const LidoContainer = class {
|
|
|
12351
12386
|
Timer.getI().start();
|
|
12352
12387
|
}
|
|
12353
12388
|
disconnectedCallback() {
|
|
12389
|
+
var _a;
|
|
12354
12390
|
this.cleanupInteractionHandlers();
|
|
12355
12391
|
window.removeEventListener('resize', this.handleWindowResize);
|
|
12356
12392
|
window.removeEventListener('load', this.handleWindowLoad);
|
|
12393
|
+
(_a = this.writeCardArrowObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
12394
|
+
this.writeCardArrowObserver = undefined;
|
|
12357
12395
|
document.body.style.backgroundColor = '';
|
|
12358
12396
|
document.body.style.backgroundImage = '';
|
|
12359
12397
|
resetFloatState();
|
|
@@ -12370,7 +12408,7 @@ const LidoContainer = class {
|
|
|
12370
12408
|
margin: this.margin,
|
|
12371
12409
|
userSelect: 'none', // Prevent any field selection
|
|
12372
12410
|
};
|
|
12373
|
-
return (h(Host, { key: '
|
|
12411
|
+
return (h(Host, { key: '403faa36329230b28c8c0e3a627c20b48fc1a9d0', id: "lido-container", Lang: this.Lang, "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}`, "template-id": this.templateId, audio: this.audio, "highlight-word-by-word": `${this.highlightWordByWord}` }, h("lido-text", { key: '683740c0a8495c875c988b41b8281a362f7713b8', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: '743c0652d70b294513dcdb3cfdd9674b694cd2e8' })));
|
|
12374
12412
|
}
|
|
12375
12413
|
get el() { return getElement(this); }
|
|
12376
12414
|
static get watchers() { return {
|
|
@@ -12381,7 +12419,7 @@ const LidoContainer = class {
|
|
|
12381
12419
|
};
|
|
12382
12420
|
LidoContainer.style = lidoContainerCss();
|
|
12383
12421
|
|
|
12384
|
-
const lidoFlashCardCss = () => `.card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}lido-container[template-id="flashcardtemplate"] #arrow{position:absolute !important;left:auto !important;top:50% !important;right:13.3% !important;transform:translateY(-50%);z-index:4 !important;overflow:visible}@media (orientation: portrait){lido-container[template-id="flashcardtemplate"] #arrow{right:-4.3% !important}}`;
|
|
12422
|
+
const lidoFlashCardCss = () => `.card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}lido-container[template-id="flashcardtemplate"] #arrow{position:absolute !important;left:auto !important;top:50% !important;right:13.3% !important;transform:translateY(-50%);z-index:4 !important;overflow:visible;box-sizing:border-box;border:10px solid transparent;box-shadow:0px 8px 0px 0px #8b310f !important}lido-container[template-id="flashcardtemplate"] #arrow.flash-card-next-glowing{animation:flash-card-next-attention 1.4s ease-in-out infinite}@keyframes flash-card-next-attention{0%,100%{border-color:#ffc34d;filter:drop-shadow(0 0 0 rgba(255, 195, 77, 0))}50%{border-color:#fff1a8;filter:drop-shadow(0 0 10px rgba(255, 195, 77, 0.95))}}lido-container[template-id="flashcardtemplate"] #arrow:active{transform:translateY(calc(-50% + 8px)) !important;box-shadow:0px 0px 0px 0px !important}@media (orientation: portrait){lido-container[template-id="flashcardtemplate"] #arrow{right:-4.3% !important}}`;
|
|
12385
12423
|
|
|
12386
12424
|
const LidoFlash = class {
|
|
12387
12425
|
constructor(hostRef) {
|
|
@@ -12462,16 +12500,49 @@ const LidoFlash = class {
|
|
|
12462
12500
|
*/
|
|
12463
12501
|
this.flipped = false;
|
|
12464
12502
|
this.autoFlipAfter = 4500;
|
|
12503
|
+
this.narrationTarget = null;
|
|
12504
|
+
this.narrationHandled = false;
|
|
12465
12505
|
this.instructionDone = false;
|
|
12466
|
-
this.
|
|
12506
|
+
this.instructionStarted = false;
|
|
12507
|
+
this.onAudioStarted = (event) => {
|
|
12467
12508
|
var _a;
|
|
12468
12509
|
const target = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
|
|
12510
|
+
if (target === this.instructionText())
|
|
12511
|
+
this.instructionStarted = true;
|
|
12512
|
+
if (target && target === this.narrationTarget && !this.narrationHandled) {
|
|
12513
|
+
if (this.narrationGraceTimer)
|
|
12514
|
+
window.clearTimeout(this.narrationGraceTimer);
|
|
12515
|
+
this.narrationGraceTimer = undefined;
|
|
12516
|
+
}
|
|
12517
|
+
};
|
|
12518
|
+
this.onAudioPlaying = (event) => {
|
|
12519
|
+
const detail = event.detail;
|
|
12520
|
+
const target = detail === null || detail === void 0 ? void 0 : detail.target;
|
|
12521
|
+
if ((target === null || target === void 0 ? void 0 : target.id) !== 'lido-avatar')
|
|
12522
|
+
return;
|
|
12523
|
+
if (detail.playbackContext !== this.goodJobPlaybackContext)
|
|
12524
|
+
return;
|
|
12525
|
+
const arrow = this.nextArrow();
|
|
12526
|
+
if (!arrow || !this.flipped)
|
|
12527
|
+
return;
|
|
12528
|
+
this.goodJobPlaybackId = detail.playbackId;
|
|
12529
|
+
arrow.classList.add('flash-card-next-glowing');
|
|
12530
|
+
};
|
|
12531
|
+
this.onAudioEnded = (event) => {
|
|
12532
|
+
var _a, _b, _c;
|
|
12533
|
+
const target = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
|
|
12469
12534
|
const instruction = this.instructionText();
|
|
12470
12535
|
if (!target || (target !== instruction && target.id !== 'lido-avatar' && !this.el.contains(target)))
|
|
12471
12536
|
return;
|
|
12537
|
+
if (target === this.narrationTarget && !this.narrationHandled) {
|
|
12538
|
+
this.finishNarration(target);
|
|
12539
|
+
return;
|
|
12540
|
+
}
|
|
12541
|
+
if (this.narrationHandled && target === this.narrationTarget)
|
|
12542
|
+
return;
|
|
12472
12543
|
if (target === this.instructionText()) {
|
|
12473
12544
|
this.instructionDone = true;
|
|
12474
|
-
window.setTimeout(() => {
|
|
12545
|
+
this.frontStartTimer = window.setTimeout(() => {
|
|
12475
12546
|
this.speakFront();
|
|
12476
12547
|
}, 1200);
|
|
12477
12548
|
}
|
|
@@ -12490,6 +12561,11 @@ const LidoFlash = class {
|
|
|
12490
12561
|
this.showArrow();
|
|
12491
12562
|
}
|
|
12492
12563
|
else if (target.id === 'lido-avatar') {
|
|
12564
|
+
const playbackId = (_b = event.detail) === null || _b === void 0 ? void 0 : _b.playbackId;
|
|
12565
|
+
const playbackContext = (_c = event.detail) === null || _c === void 0 ? void 0 : _c.playbackContext;
|
|
12566
|
+
if (playbackContext !== this.goodJobPlaybackContext || playbackId !== this.goodJobPlaybackId)
|
|
12567
|
+
return;
|
|
12568
|
+
this.goodJobPlaybackId = undefined;
|
|
12493
12569
|
executeActions("this.avatarAnimate='Idle'", target);
|
|
12494
12570
|
}
|
|
12495
12571
|
};
|
|
@@ -12529,13 +12605,15 @@ const LidoFlash = class {
|
|
|
12529
12605
|
if (this.autoFlipTimer)
|
|
12530
12606
|
window.clearTimeout(this.autoFlipTimer);
|
|
12531
12607
|
AudioPlayer.getI().stop();
|
|
12608
|
+
this.clearNarrationTimers();
|
|
12532
12609
|
const goingBack = !this.flipped;
|
|
12533
12610
|
this.flipped = !this.flipped;
|
|
12611
|
+
this.stopGoodJobGlow();
|
|
12534
12612
|
this.setArrowVisible(false);
|
|
12535
12613
|
if (goingBack) {
|
|
12536
12614
|
const text = this.backText();
|
|
12537
12615
|
if (text && ((_a = text.textContent) === null || _a === void 0 ? void 0 : _a.trim()))
|
|
12538
|
-
|
|
12616
|
+
this.startNarration(text);
|
|
12539
12617
|
else
|
|
12540
12618
|
this.showArrow();
|
|
12541
12619
|
}
|
|
@@ -12543,40 +12621,113 @@ const LidoFlash = class {
|
|
|
12543
12621
|
this.speakFront();
|
|
12544
12622
|
}
|
|
12545
12623
|
};
|
|
12546
|
-
this.instructionText = () => {
|
|
12624
|
+
this.instructionText = () => {
|
|
12625
|
+
const container = this.el.closest('lido-container');
|
|
12626
|
+
const id = container === null || container === void 0 ? void 0 : container.getAttribute('template-id');
|
|
12627
|
+
return id ? container === null || container === void 0 ? void 0 : container.querySelector(`[id="${id}"]`) : null;
|
|
12628
|
+
};
|
|
12547
12629
|
this.frontText = () => this.el.querySelector('.card-front lido-text');
|
|
12548
12630
|
this.backText = () => this.el.querySelector('.card-back lido-text');
|
|
12549
|
-
this.
|
|
12631
|
+
this.nextArrow = () => { var _a; return (_a = this.el.closest('lido-container')) === null || _a === void 0 ? void 0 : _a.querySelector('#arrow'); };
|
|
12632
|
+
this.stopGoodJobGlow = () => {
|
|
12550
12633
|
var _a;
|
|
12634
|
+
this.goodJobPlaybackId = undefined;
|
|
12635
|
+
this.goodJobPlaybackContext = undefined;
|
|
12636
|
+
(_a = this.nextArrow()) === null || _a === void 0 ? void 0 : _a.classList.remove('flash-card-next-glowing');
|
|
12637
|
+
};
|
|
12638
|
+
this.speakFront = () => {
|
|
12639
|
+
var _a, _b;
|
|
12551
12640
|
const text = this.frontText();
|
|
12552
12641
|
if (this.instructionDone && !this.flipped && text && ((_a = text.textContent) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
12553
|
-
|
|
12642
|
+
this.startNarration(text);
|
|
12643
|
+
}
|
|
12644
|
+
else if (this.instructionDone && !this.flipped && (!text || !((_b = text.textContent) === null || _b === void 0 ? void 0 : _b.trim()))) {
|
|
12645
|
+
if (this.autoFlipTimer)
|
|
12646
|
+
window.clearTimeout(this.autoFlipTimer);
|
|
12647
|
+
this.autoFlipTimer = window.setTimeout(() => {
|
|
12648
|
+
if (!this.flipped)
|
|
12649
|
+
this.handleFlip();
|
|
12650
|
+
}, this.autoFlipAfter);
|
|
12651
|
+
}
|
|
12652
|
+
};
|
|
12653
|
+
this.clearNarrationTimers = () => {
|
|
12654
|
+
if (this.narrationGraceTimer)
|
|
12655
|
+
window.clearTimeout(this.narrationGraceTimer);
|
|
12656
|
+
this.narrationGraceTimer = undefined;
|
|
12657
|
+
this.narrationTarget = null;
|
|
12658
|
+
this.narrationHandled = false;
|
|
12659
|
+
};
|
|
12660
|
+
this.continueAfterNarration = (target) => {
|
|
12661
|
+
if (target === this.instructionText()) {
|
|
12662
|
+
this.instructionDone = true;
|
|
12663
|
+
this.frontStartTimer = window.setTimeout(() => this.speakFront(), 1200);
|
|
12664
|
+
}
|
|
12665
|
+
else if (target === this.frontText()) {
|
|
12666
|
+
if (this.flipped)
|
|
12667
|
+
return;
|
|
12668
|
+
if (this.autoFlipTimer)
|
|
12669
|
+
window.clearTimeout(this.autoFlipTimer);
|
|
12670
|
+
this.autoFlipTimer = window.setTimeout(() => {
|
|
12671
|
+
if (!this.flipped)
|
|
12672
|
+
this.handleFlip();
|
|
12673
|
+
}, this.autoFlipAfter);
|
|
12674
|
+
}
|
|
12675
|
+
else if (target === this.backText()) {
|
|
12676
|
+
if (this.flipped)
|
|
12677
|
+
this.showArrow();
|
|
12554
12678
|
}
|
|
12555
12679
|
};
|
|
12680
|
+
this.finishNarration = (target) => {
|
|
12681
|
+
if (target !== this.narrationTarget || this.narrationHandled)
|
|
12682
|
+
return;
|
|
12683
|
+
this.narrationHandled = true;
|
|
12684
|
+
if (this.narrationGraceTimer)
|
|
12685
|
+
window.clearTimeout(this.narrationGraceTimer);
|
|
12686
|
+
this.narrationGraceTimer = undefined;
|
|
12687
|
+
this.continueAfterNarration(target);
|
|
12688
|
+
};
|
|
12689
|
+
this.startNarration = (target) => {
|
|
12690
|
+
this.clearNarrationTimers();
|
|
12691
|
+
this.narrationTarget = target;
|
|
12692
|
+
this.narrationGraceTimer = window.setTimeout(() => {
|
|
12693
|
+
if (!this.narrationHandled)
|
|
12694
|
+
this.finishNarration(target);
|
|
12695
|
+
}, LidoFlash.narrationStartGrace);
|
|
12696
|
+
executeActions("this.speak='true'", target);
|
|
12697
|
+
};
|
|
12556
12698
|
this.showArrow = () => {
|
|
12557
12699
|
if (!this.flipped)
|
|
12558
12700
|
return;
|
|
12559
|
-
const
|
|
12701
|
+
const container = this.el.closest('lido-container');
|
|
12702
|
+
if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) !== 'flashcardtemplate')
|
|
12703
|
+
return;
|
|
12704
|
+
const arrow = this.nextArrow();
|
|
12560
12705
|
if (!arrow)
|
|
12561
12706
|
return;
|
|
12562
12707
|
// Existing ZIPs may not have the newer template onTouch action. Reuse
|
|
12563
12708
|
// the same direct nextBtn action as the shared home arrow for them.
|
|
12564
12709
|
if (!arrow.getAttribute('onTouch'))
|
|
12565
12710
|
arrow.setAttribute('onTouch', "this.nextBtn='true';");
|
|
12566
|
-
const mascot =
|
|
12711
|
+
const mascot = container.querySelector('#lido-avatar');
|
|
12567
12712
|
const scaffoldAudio = arrow.getAttribute('audio');
|
|
12568
12713
|
if (mascot && scaffoldAudio) {
|
|
12569
12714
|
mascot.setAttribute('audio', scaffoldAudio);
|
|
12570
|
-
arrow.removeAttribute('audio');
|
|
12571
12715
|
}
|
|
12572
12716
|
this.setArrowVisible(true);
|
|
12717
|
+
// Keep the next action highlighted after mascot audio ends.
|
|
12718
|
+
arrow.classList.add('flash-card-next-glowing');
|
|
12573
12719
|
if (mascot) {
|
|
12720
|
+
this.goodJobPlaybackContext = {};
|
|
12721
|
+
this.goodJobPlaybackId = undefined;
|
|
12574
12722
|
executeActions("this.avatarAnimate='Idle speak'", mascot);
|
|
12575
|
-
AudioPlayer.getI().play(mascot, true);
|
|
12723
|
+
AudioPlayer.getI().play(mascot, true, this.goodJobPlaybackContext);
|
|
12576
12724
|
}
|
|
12577
12725
|
};
|
|
12578
12726
|
this.setArrowVisible = (visible) => {
|
|
12579
|
-
const
|
|
12727
|
+
const container = this.el.closest('lido-container');
|
|
12728
|
+
if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) !== 'flashcardtemplate')
|
|
12729
|
+
return;
|
|
12730
|
+
const arrow = container.querySelector('#arrow');
|
|
12580
12731
|
if (!arrow)
|
|
12581
12732
|
return;
|
|
12582
12733
|
arrow.visible = visible;
|
|
@@ -12587,6 +12738,7 @@ const LidoFlash = class {
|
|
|
12587
12738
|
arrow.style.display = visible ? 'block' : 'none';
|
|
12588
12739
|
arrow.style.visibility = visible ? 'visible' : 'hidden';
|
|
12589
12740
|
arrow.style.opacity = visible ? '1' : '0';
|
|
12741
|
+
arrow.style.pointerEvents = visible ? 'auto' : 'none';
|
|
12590
12742
|
const arrowImage = arrow.querySelector('lido-image');
|
|
12591
12743
|
if (arrowImage) {
|
|
12592
12744
|
arrowImage.style.display = visible ? 'flex' : 'none';
|
|
@@ -12609,21 +12761,47 @@ const LidoFlash = class {
|
|
|
12609
12761
|
window.addEventListener('load', this.updateStyles);
|
|
12610
12762
|
}
|
|
12611
12763
|
componentDidLoad() {
|
|
12764
|
+
var _a;
|
|
12612
12765
|
setVisibilityWithDelay(this.el, this.delayVisible);
|
|
12613
12766
|
initEventsForElement(this.el, this.type);
|
|
12767
|
+
window.addEventListener('lidoAudioStarted', this.onAudioStarted);
|
|
12768
|
+
window.addEventListener('lidoAudioPlaying', this.onAudioPlaying);
|
|
12614
12769
|
window.addEventListener('lidoAudioEnded', this.onAudioEnded);
|
|
12770
|
+
const container = this.el.closest('lido-container');
|
|
12771
|
+
if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) === 'flashcardtemplate') {
|
|
12772
|
+
(_a = container.querySelector('#lido-avatar')) === null || _a === void 0 ? void 0 : _a.setAttribute('disable-speak', 'true');
|
|
12773
|
+
this.instructionStartTimer = window.setTimeout(() => {
|
|
12774
|
+
if (!this.instructionStarted && !this.instructionDone) {
|
|
12775
|
+
const instruction = this.instructionText();
|
|
12776
|
+
if (instruction)
|
|
12777
|
+
this.startNarration(instruction);
|
|
12778
|
+
}
|
|
12779
|
+
}, 150);
|
|
12780
|
+
}
|
|
12615
12781
|
// handlingChildElements(this.el, this.minLength, this.maxLength, this.childElementsLength, 'inline-block');
|
|
12616
12782
|
}
|
|
12617
12783
|
disconnectedCallback() {
|
|
12618
12784
|
window.removeEventListener('lidoAudioEnded', this.onAudioEnded);
|
|
12785
|
+
window.removeEventListener('lidoAudioPlaying', this.onAudioPlaying);
|
|
12786
|
+
window.removeEventListener('lidoAudioStarted', this.onAudioStarted);
|
|
12619
12787
|
if (this.autoFlipTimer)
|
|
12620
12788
|
window.clearTimeout(this.autoFlipTimer);
|
|
12789
|
+
if (this.instructionStartTimer)
|
|
12790
|
+
window.clearTimeout(this.instructionStartTimer);
|
|
12791
|
+
if (this.frontStartTimer)
|
|
12792
|
+
window.clearTimeout(this.frontStartTimer);
|
|
12793
|
+
this.clearNarrationTimers();
|
|
12621
12794
|
window.removeEventListener('resize', this.updateStyles);
|
|
12622
12795
|
window.removeEventListener('load', this.updateStyles);
|
|
12623
12796
|
}
|
|
12624
12797
|
/* ---------- Render ---------- */
|
|
12625
12798
|
render() {
|
|
12626
|
-
return (h(Host, { key: '
|
|
12799
|
+
return (h(Host, { key: '57b9dc5ecf618dc381a58e107fa2990b84f5517a', value: this.value, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, type: this.type, onClick: (event) => {
|
|
12800
|
+
var _a, _b;
|
|
12801
|
+
if ((_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest) === null || _b === void 0 ? void 0 : _b.call(_a, '#lido-avatar'))
|
|
12802
|
+
return;
|
|
12803
|
+
this.handleFlip();
|
|
12804
|
+
}, "disable-speak": this.disableSpeak }, h("div", { key: '3712fc66e33323bdd55e0abb747370ee461dc808', class: `card ${this.flipped ? 'flipped' : ''}` }, h("div", { key: 'eb8af2e445393592c0e8a3e4c5934c71dcab4b4e', class: "card-face card-front" }, this.front != null ? this.front : h("slot", { name: "front" })), h("div", { key: 'efa14cc7ea506714342151b12a9724bdcdb1eba8', class: "card-face card-back" }, this.back != null ? this.back : h("slot", { name: "back" })))));
|
|
12627
12805
|
}
|
|
12628
12806
|
get el() { return getElement(this); }
|
|
12629
12807
|
static get watchers() { return {
|
|
@@ -12632,6 +12810,7 @@ const LidoFlash = class {
|
|
|
12632
12810
|
}]
|
|
12633
12811
|
}; }
|
|
12634
12812
|
};
|
|
12813
|
+
LidoFlash.narrationStartGrace = 800;
|
|
12635
12814
|
LidoFlash.style = lidoFlashCardCss();
|
|
12636
12815
|
|
|
12637
12816
|
const lidoFloatCss = () => `.lido-float{position:relative}.lido-float>*{position:absolute;cursor:pointer}@keyframes float-up{from{top:var(--el-top)}to{top:-500px}}#removeShadow{box-shadow:unset !important}@keyframes float-lr{from{right:var(--el-left)}to{right:-500px}}`;
|
|
@@ -12720,7 +12899,7 @@ const LidoFloat = class {
|
|
|
12720
12899
|
};
|
|
12721
12900
|
}
|
|
12722
12901
|
render() {
|
|
12723
|
-
return (h(Host, { key: '
|
|
12902
|
+
return (h(Host, { key: '26ada4c2834a58fe1f45348a32f9d1dcecb79a14', class: "lido-float", "float-direction": this.floatDirection, id: this.id, "tab-index": this.tabIndex, style: this.style, onEntry: this.onEntry }, h("slot", { key: '6f4ca358f564e268390f221cc1f84af1f303761b' })));
|
|
12724
12903
|
}
|
|
12725
12904
|
get el() { return getElement(this); }
|
|
12726
12905
|
};
|
|
@@ -12758,9 +12937,9 @@ function requireJszip_min () {
|
|
|
12758
12937
|
var jszip_minExports = requireJszip_min();
|
|
12759
12938
|
var JSZip = /*@__PURE__*/getDefaultExportFromCjs(jszip_minExports);
|
|
12760
12939
|
|
|
12761
|
-
const indexCss = () => `@font-face{font-family:'Baloo Bhai 2';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/offline-assets/fonts/Baloo-Bhai-2/Baloo-Bhai-2-Variable.woff2') format('woff2')}body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;left:0;top:0;pointer-events:none;z-index:9999;background:linear-gradient(
|
|
12940
|
+
const indexCss = () => `@font-face{font-family:'Baloo Bhai 2';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/offline-assets/fonts/Baloo-Bhai-2/Baloo-Bhai-2-Variable.woff2') format('woff2')}body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;left:0;top:0;pointer-events:none;z-index:9999;background:linear-gradient( 180deg, rgba(255, 235, 59, 0.95), rgba(255, 214, 0, 0.95) );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:width 25ms ease-out, height 25ms ease-out, opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height;contain:layout paint style}.category-dropped-onCorrect{box-shadow:rgba(129, 193, 39, 1) 0px 8px 8px 0px !important}.category-dropped-onInCorrect{box-shadow:rgba(255, 4, 16, 1) 0px 8px 8px 0px !important}`;
|
|
12762
12941
|
|
|
12763
|
-
const animationCss = () => `@keyframes rightToPlace{from{transform:translateX(2000px)}to{transform:translateX(0)}}@keyframes topToPlace{from{transform:translateY(-1000px)}to{transform:translateY(0)}}@keyframes bottomToPlace{from{transform:translateY(1000px)}to{transform:translateY(0)}}@keyframes placeToLeft{from{}to{transform:translateX(-2000px)}}@keyframes placeToRight{from{}to{transform:translateX(2000px)}}@keyframes leftToPlace{from{transform:translateX(-2000px)}to{transform:translateX(0)}}@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-5px)}20%{transform:translateX(5px)}30%{transform:translateX(-5px)}40%{transform:translateX(5px)}50%{transform:translateX(-5px)}60%{transform:translateX(5px)}70%{transform:translateX(-5px)}80%{transform:translateX(5px)}90%{transform:translateX(-5px)}100%{transform:translateX(0)}}@keyframes fallAndBounce{0%{transform:translateY(-1000px)}25%{transform:translateY(0px)}50%{transform:translateY(-200px)}75%{transform:translateY(0)}90%{transform:translateY(-100px)}100%{transform:translateY(0)}}@keyframes placeToDown{0%{transform:translateY(0)}100%{transform:translateY(1000px)}}@keyframes strongShake{0%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}100%{transform:translateX(0)}}@keyframes scaledShake{0%{transform:scale(1) translateX(0);box-shadow:0 0 0 transparent}20%{transform:scale(1.10) translateX(-12px);box-shadow:0 0 10px red}40%{transform:scale(1.10) translateX(12px);box-shadow:0 0 12px red}60%{transform:scale(1.10) translateX(-8px);box-shadow:0 0 10px red}80%{transform:scale(1.10) translateX(8px);box-shadow:0 0 12px red}100%{transform:scale(1) translateX(0);box-shadow:none}}@keyframes horizontalShake{0%{transform:scale(1) translateX(0);background-color:transparent}20%{transform:translateX(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateX(20px);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateX(-10px);background-color:rgba(255, 0, 0, 0.3)}80%{transform:translateX(10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translateX(0);background-color:transparent}}@keyframes verticalShake{0%{transform:translateY(0);background-color:transparent}20%{transform:translateY(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateY(20px);background-color:rgba(255, 0, 0, 0.2)}80%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.1)}100%{transform:translateY(0);background-color:transparent}}@keyframes diagonalShake{0%{transform:translate(0, 0);background-color:transparent}25%{transform:translate(20px, -20px);background-color:rgba(255, 0, 0, 0.2)}50%{transform:translate(-20px, 20px);background-color:rgba(255, 0, 0, 0.3)}75%{transform:translate(10px, -10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translate(0, 0);background-color:transparent}}@keyframes glowPulse{0%{filter:drop-shadow(0 0 5px yellow)
|
|
12942
|
+
const animationCss = () => `@keyframes rightToPlace{from{transform:translateX(2000px)}to{transform:translateX(0)}}@keyframes topToPlace{from{transform:translateY(-1000px)}to{transform:translateY(0)}}@keyframes bottomToPlace{from{transform:translateY(1000px)}to{transform:translateY(0)}}@keyframes placeToLeft{from{}to{transform:translateX(-2000px)}}@keyframes placeToRight{from{}to{transform:translateX(2000px)}}@keyframes leftToPlace{from{transform:translateX(-2000px)}to{transform:translateX(0)}}@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-5px)}20%{transform:translateX(5px)}30%{transform:translateX(-5px)}40%{transform:translateX(5px)}50%{transform:translateX(-5px)}60%{transform:translateX(5px)}70%{transform:translateX(-5px)}80%{transform:translateX(5px)}90%{transform:translateX(-5px)}100%{transform:translateX(0)}}@keyframes fallAndBounce{0%{transform:translateY(-1000px)}25%{transform:translateY(0px)}50%{transform:translateY(-200px)}75%{transform:translateY(0)}90%{transform:translateY(-100px)}100%{transform:translateY(0)}}@keyframes placeToDown{0%{transform:translateY(0)}100%{transform:translateY(1000px)}}@keyframes strongShake{0%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}100%{transform:translateX(0)}}@keyframes scaledShake{0%{transform:scale(1) translateX(0);box-shadow:0 0 0 transparent}20%{transform:scale(1.10) translateX(-12px);box-shadow:0 0 10px red}40%{transform:scale(1.10) translateX(12px);box-shadow:0 0 12px red}60%{transform:scale(1.10) translateX(-8px);box-shadow:0 0 10px red}80%{transform:scale(1.10) translateX(8px);box-shadow:0 0 12px red}100%{transform:scale(1) translateX(0);box-shadow:none}}@keyframes horizontalShake{0%{transform:scale(1) translateX(0);background-color:transparent}20%{transform:translateX(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateX(20px);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateX(-10px);background-color:rgba(255, 0, 0, 0.3)}80%{transform:translateX(10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translateX(0);background-color:transparent}}@keyframes verticalShake{0%{transform:translateY(0);background-color:transparent}20%{transform:translateY(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateY(20px);background-color:rgba(255, 0, 0, 0.2)}80%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.1)}100%{transform:translateY(0);background-color:transparent}}@keyframes diagonalShake{0%{transform:translate(0, 0);background-color:transparent}25%{transform:translate(20px, -20px);background-color:rgba(255, 0, 0, 0.2)}50%{transform:translate(-20px, 20px);background-color:rgba(255, 0, 0, 0.3)}75%{transform:translate(10px, -10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translate(0, 0);background-color:transparent}}@keyframes glowPulse{0%{filter:drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 30px orange)}50%{filter:drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 40px yellow) drop-shadow(0 0 50px orange)}100%{filter:drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 30px orange)}}@keyframes trace-animation{0%{}100%{width:var(--trace-width, 100px);height:var(--trace-height, 100px)}}`;
|
|
12764
12943
|
|
|
12765
12944
|
const lidoHomeCss = () => `.lido-snackbar{visibility:visible;min-width:250px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:16px;position:fixed;z-index:1;bottom:30px;left:50%;transform:translateX(-50%);font-size:17px}.lido-dot-container{display:flex;justify-content:space-between;align-items:center;visibility:hidden;position:absolute;left:50%;padding:0 5px;z-index:1;width:100vw;max-width:100vw;box-sizing:border-box;height:0px}.lido-dot{height:18px;width:18px;margin:0 4px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color 0.3s;cursor:pointer;z-index:1}.lido-btn-dot-container{flex-shrink:1;flex-grow:1;display:flex;justify-content:center;align-items:center;text-align:center;z-index:1;min-width:0;height:0px}.lido-dot.completed{background-color:grey}.lido-dot.current{background-color:green}.lido-dot:not(.completed):not(.current){background-color:#bbb}#lido-arrow-left,#lido-arrow-right{width:88px;height:88px;display:flex;align-items:center;justify-content:center;border-radius:12px;z-index:1000;box-shadow:0px 8px 0px 0px #8b310f;background-color:#f34d08;cursor:pointer;visibility:hidden;flex-shrink:0}#lido-arrow-left:active,#lido-arrow-right:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px}.navbar{display:flex;justify-content:center}.lido-exit-button,#main-audio{width:80px;height:80px;z-index:1000;cursor:pointer;background-color:white;display:flex;align-items:center;justify-content:center;border:4px solid #f34d08;border-radius:16px;box-shadow:0px 8px #f34d08;flex-shrink:0;}#main-audio:active,.popup-button:active,.lido-exit-button:active{margin-bottom:-8px;box-shadow:0px 0px 0px 0px !important}.lido-alert-popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1000}@media (max-width: 768px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0 8px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0 8px}.lido-dot{height:16px;width:16px;margin:0 2.5px}}@media (max-width: 480px){#lido-arrow-left,#lido-arrow-right{width:74px;height:74px;margin:0px 5px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0px 5px}.lido-dot{height:15px;width:15px;margin:0 1.5px}.lido-dot-container{padding:0 3px}}@media (max-width: 375px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 3px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 3px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 2px}}@media (max-width: 320px){#lido-arrow-left,#lido-arrow-right,.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 2px}.lido-dot{height:12px;width:12px;margin:0 0.5px}.lido-dot-container{padding:0 2px}}@media (max-width: 900px) and (orientation: landscape){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 5px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 5px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 5px}}.popup-exit-text{white-space:nowrap;font-size:22px;font-weight:600;margin-top:-8%}.lido-alert-parent{z-index:10000 !important;position:absolute;top:0;left:0}.popup-button{width:80px;height:80px;z-index:1000;cursor:pointer;display:flex;align-items:center;justify-content:center;border:4px solid #F34D08;border-radius:16px;box-shadow:0 8px 0 #F34D08}.nav-for-lanai{position:absolute;top:0%;left:0%;max-width:none;width:100%;height:auto;visibility:visible}`;
|
|
12766
12945
|
|
|
@@ -13070,7 +13249,7 @@ const LidoHome = class {
|
|
|
13070
13249
|
}
|
|
13071
13250
|
// Pure-JS fallback (no wasm asset required)
|
|
13072
13251
|
try {
|
|
13073
|
-
const brotliDecodeModule = await import('./decode-
|
|
13252
|
+
const brotliDecodeModule = await import('./decode-CyhHNDvT.js').then(function (n) { return n.d; });
|
|
13074
13253
|
const brotliDecompressBuffer = brotliDecodeModule.BrotliDecompressBuffer || ((_a = brotliDecodeModule.default) === null || _a === void 0 ? void 0 : _a.BrotliDecompressBuffer);
|
|
13075
13254
|
if (typeof brotliDecompressBuffer !== 'function') {
|
|
13076
13255
|
throw new Error('BrotliDecompressBuffer function not found in brotli/dec/decode');
|
|
@@ -16804,10 +16983,10 @@ const LidoKeyboard = class {
|
|
|
16804
16983
|
const keysArray = this.keys.split(',').map(k => k.trim());
|
|
16805
16984
|
const container = document.getElementById(LidoContainer$1);
|
|
16806
16985
|
const showCheck = container.getAttribute('show-check') === 'true';
|
|
16807
|
-
return (h(Host, { key: '
|
|
16986
|
+
return (h(Host, { key: '5773e8189c512e90d63217048f9372d00e4a7fe9', class: "lido-keyboard", style: { width: this.style.width, height: this.style.height, position: 'relative', margin: this.style.margin, zIndex: this.z } }, this.keyboardInput && (h("div", { key: '136fa3a2b0459a9a63e14ac8e212997e4bd32224', class: "input-area" }, h("input", { key: 'd9a1dc064d615b40b1e0e2b008dbf79ec70eb19b', type: "text", value: this.inputString, class: "input-area", readonly: true }), h("lido-text", { key: 'e6c53ea590c607b355d1f57d445d078c0bcf9085', visible: showCheck ? 'true' : 'false', string: "<<", "bg-color": "black", "font-color": "white", "border-radius": "20px", "font-size": "30px", width: "100px", height: "70px", type: "click", onClick: () => {
|
|
16808
16987
|
this.inputString = this.inputString.slice(0, -1);
|
|
16809
16988
|
this.inputValidation(event);
|
|
16810
|
-
} }), h("lido-text", { key: '
|
|
16989
|
+
} }), h("lido-text", { key: '815877bd027aa3540871c511df5937cfb0b6f149', visible: showCheck ? 'true' : 'false', id: "lido-checkButton", string: "Enter", "bg-color": "green", "font-color": "white", "border-radius": "20px", "font-size": "30px", width: "150px", height: "70px", type: "click" }))), this.letterLength && (h("lido-text", { key: '73c08eac4f9c154f47371e812fb337de26b10691', visible: "true", string: `${this.numberOfClick}/${this.letterLength}`, "font-size": "60px", "font-color": "white", onEntry: "this.position='absolute'; this.right='0'; this.fontWeight='800';", x: "unset" })), h("div", { key: '1e7855724f15fdb432320f6186fc356518a29224', class: "keyboard-wrapper", style: {
|
|
16811
16990
|
display: 'flex',
|
|
16812
16991
|
flexWrap: 'wrap',
|
|
16813
16992
|
justifyContent: 'center',
|
|
@@ -17042,7 +17221,7 @@ const LidoMathMatrix = class {
|
|
|
17042
17221
|
render() {
|
|
17043
17222
|
let slotNumber = 1;
|
|
17044
17223
|
const slotData = this.getSlotData();
|
|
17045
|
-
return (h(Host, { key: '
|
|
17224
|
+
return (h(Host, { key: '2ef30835855363ba9fc7932122d1d505a451e055', class: "math-matrix", style: {
|
|
17046
17225
|
height: this.style.height,
|
|
17047
17226
|
width: this.style.width,
|
|
17048
17227
|
z: this.style.z,
|
|
@@ -17189,7 +17368,7 @@ const LidoPos = class {
|
|
|
17189
17368
|
};
|
|
17190
17369
|
}
|
|
17191
17370
|
render() {
|
|
17192
|
-
return (h(Host, { key: '
|
|
17371
|
+
return (h(Host, { key: '4c417a789cc167f7d701b8469890631f9871fe6f', id: this.id, class: "lido-pos", type: this.type, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, minDrops: this.minDrops, maxDrops: this.maxDrops, value: this.value, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: 'd5026f61804b53e63aa1cc6c15b3de91543cf426' })));
|
|
17193
17372
|
}
|
|
17194
17373
|
get el() { return getElement(this); }
|
|
17195
17374
|
};
|
|
@@ -17333,7 +17512,7 @@ const LidoRandom = class {
|
|
|
17333
17512
|
backgroundColor: this.bgColor,
|
|
17334
17513
|
margin: this.margin,
|
|
17335
17514
|
};
|
|
17336
|
-
return (h(Host, { key: '
|
|
17515
|
+
return (h(Host, { key: 'e0ed354e54ea3c5112d0e068b2a94356ef437874', class: "lido-random", type: this.type, "tab-index": this.tabIndex, value: this.value, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, minDrops: this.minDrops, maxDrops: this.maxDrops, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: 'ed0386cda3ba55d89fb08607775a49a4180f08b3' })));
|
|
17337
17516
|
}
|
|
17338
17517
|
get el() { return getElement(this); }
|
|
17339
17518
|
};
|
|
@@ -17504,13 +17683,13 @@ const LidoRow = class {
|
|
|
17504
17683
|
};
|
|
17505
17684
|
}
|
|
17506
17685
|
render() {
|
|
17507
|
-
return (h(Host, { key: '
|
|
17686
|
+
return (h(Host, { key: '30b1857fc65b826cfad9c08f71ea1c2f7cc966e4', class: "lido-row", type: this.type, "tab-index": this.tabIndex, value: this.value, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, minDrops: this.minDrops, maxDrops: this.maxDrops, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "disable-speak": this.disableSpeak }, h("slot", { key: '747f20051ad1fd1dd075ba457b612e9d8ef7d27d' })));
|
|
17508
17687
|
}
|
|
17509
17688
|
get el() { return getElement(this); }
|
|
17510
17689
|
};
|
|
17511
17690
|
LidoRow.style = lidoRowCss();
|
|
17512
17691
|
|
|
17513
|
-
const lidoShapeCss = () => `.lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z);justify-content:center;align-items:center}.lido-rectangle{border-radius:0}.lido-circle{width:var(--width);height:var(--width);border-radius:50%;background-color:var(--bgColor)}.lido-ellipse{width:var(--width);height:var(--height);border-radius:50%;background-color:var(--bgColor)}.lido-triangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(50% 0%, 100% 100%, 0% 100%)}.lido-rightTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(100% 0%, 100% 100%, 0% 100%)}.lido-leftTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--triangleBgColor);clip-path:polygon(0% 0%, 100% 100%, 0% 100%)}.lido-parallelogram{width:var(--paralleWidth);height:var(--paralleHeight);transform:skew(20deg)}.lido-trapezium{width:var(--trapeziumWidth);height:var(--trapeziumHeight);background-color:var(--bgColor);clip-path:polygon(
|
|
17692
|
+
const lidoShapeCss = () => `.lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z);justify-content:center;align-items:center}.lido-rectangle{border-radius:0}.lido-circle{width:var(--width);height:var(--width);border-radius:50%;background-color:var(--bgColor)}.lido-ellipse{width:var(--width);height:var(--height);border-radius:50%;background-color:var(--bgColor)}.lido-triangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(50% 0%, 100% 100%, 0% 100%)}.lido-rightTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(100% 0%, 100% 100%, 0% 100%)}.lido-leftTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--triangleBgColor);clip-path:polygon(0% 0%, 100% 100%, 0% 100%)}.lido-parallelogram{width:var(--paralleWidth);height:var(--paralleHeight);transform:skew(20deg)}.lido-trapezium{width:var(--trapeziumWidth);height:var(--trapeziumHeight);background-color:var(--bgColor);clip-path:polygon( 20% 0%, 80% 0%, 100% 100%, 0% 100% )}.lido-hexagon{width:var(--hexagonWidth);height:var(--hexagonHeight);background-color:var(--bgColor);clip-path:polygon( 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50% )}.lido-cone{width:var(--coneWidth);height:var(--coneHeight);background-color:var(--bgColor);clip-path:polygon( 15% 10%, 25% 4%, 35% 1%, 50% 0%, 65% 1%, 75% 4%, 85% 10%, 50% 100% )}.lido-star{width:var(--starWidth);height:var(--starHeight);background-color:var(--starBgColor);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.lido-pentagon{width:var(--pentagonWidth);height:var(--pentagonHeight);background-color:var(--pentagonBgColor);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.lido-heptagon{width:var(--heptagonWidth);height:var(--heptagonHeight);background-color:var(--heptagonBgColor);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.lido-octagon{width:var(--octagonWidth);height:var(--octagonHeight);background-color:var(--octagonBgColor);clip-path:polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%)}.lido-rhombus{width:var(--rhombusWidth);height:var(--rhombusHeight);background-color:var(--rhombusBgColor);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.lido-heart{height:var(--heartHeight);width:var(--heartWidth);border-image:radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;clip-path:polygon(-41% 0, 50% 91%, 141% 0)}.cube{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateX(-20deg) rotateY(45deg)}.face{position:absolute;width:var(--face-width,150px);height:var(--face-width,150px);background:var(--face-bg-color,150px);box-shadow:inset -20px -20px 40px rgba(0,0,0,0.3)}.front{transform:rotateY( 0deg) translateZ(var(--face-translate, 75px))}.back{transform:rotateY(180deg) translateZ(var(--face-translate, 75px))}.right{transform:rotateY( 90deg) translateZ(var(--face-translate, 75px))}.left{transform:rotateY(-90deg) translateZ(var(--face-translate, 75px))}.top{transform:rotateX( 90deg) translateZ(var(--face-translate, 75px))}.bottom{transform:rotateX(-90deg) translateZ(var(--face-translate, 75px))}.lido-cylinder{width:var(--width);height:var(--height);border-radius:100% / 80px;background:radial-gradient(50% 40px at 50% 40px, #0003 99.99%, #0000 0), radial-gradient(50% 40px at 50% calc(100% - 40px), #fff3 99.99%, #0000 0), red}.lido-sphere{position:relative;width:var(--width);height:var(--width);border-radius:50%;background:radial-gradient(circle at 30% 18%, #22d4ff 0%, #18c2f4 9%, rgba(24, 194, 244, 0.2) 18%, transparent 30%), radial-gradient(circle at 36% 26%, #0f8fff 0%, #0b67e6 30%, #083fbe 62%, #120084 100%);box-shadow:inset -22px -26px 40px rgba(5, 0, 70, 0.38), inset 14px 14px 24px rgba(255, 255, 255, 0.05), 0 4px 2px rgba(0, 0, 0, 0.78);overflow:visible}.lido-sphere::after{content:'';position:absolute;top:50%;left:50%;width:100%;height:16%;border-radius:50%;border-top:2px dashed rgba(0, 0, 0, 0.65);border-bottom:3px solid rgba(0, 0, 0, 0.85);box-sizing:border-box;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
17514
17693
|
|
|
17515
17694
|
const LidoShape = class {
|
|
17516
17695
|
constructor(hostRef) {
|
|
@@ -17662,8 +17841,8 @@ const LidoShape = class {
|
|
|
17662
17841
|
backgroundColor: this.shapeType !== 'polygon' ? this.bgColor : 'transparent', // Apply background only if not a polygon
|
|
17663
17842
|
margin: this.margin,
|
|
17664
17843
|
};
|
|
17665
|
-
return (h(Host, { key: '
|
|
17666
|
-
h("div", { key: '
|
|
17844
|
+
return (h(Host, { key: '27ddc6d8019a8aaed121d5af47ffc6b76dbeda9c', class: `lido-shape ${this.shapeType}`, value: this.value, type: this.type, "tab-index": this.tabIndex, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, minDrops: this.minDrops, maxDrops: this.maxDrops, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "disable-speak": this.disableSpeak }, this.shapeType === "lido-cube" &&
|
|
17845
|
+
h("div", { key: 'e46ef618c7652aa4aee6e1e618be42a6f1a6b654', class: "cube" }, h("div", { key: 'af6d6e16ffaeadaff6906e2a927d9dd120bcbced', class: "face top" }), h("div", { key: 'dcfefb7a09127f5d5fab9e4538e750bf36f3fb79', class: "face bottom" }), h("div", { key: '08d30a512aabb0fdb2fe50f6db375897b02ebde8', class: "face left" }), h("div", { key: 'cec476d4b207c936aa71be50457ada4e029d12e8', class: "face right" }), h("div", { key: 'f36023469d224c14b9172b215fd7cda57e5144df', class: "face front" }), h("div", { key: 'af4df1450a0b0f18c8e50079b45aaaabe49b3b8e', class: "face back" }))));
|
|
17667
17846
|
}
|
|
17668
17847
|
get el() { return getElement(this); }
|
|
17669
17848
|
};
|
|
@@ -17758,13 +17937,13 @@ const LidoSlideFill = class {
|
|
|
17758
17937
|
const id = pathIndex === 1 ? 'glassPath' : pathIndex === 2 ? 'rulerPath' : `path${pathIndex}`;
|
|
17759
17938
|
return `<path id="${id}"${attrs}>`;
|
|
17760
17939
|
});
|
|
17761
|
-
const clipPathDef = `
|
|
17762
|
-
<clipPath id="clipGlass">
|
|
17763
|
-
<use xlink:href="#glassPath" />
|
|
17764
|
-
</clipPath>
|
|
17940
|
+
const clipPathDef = `
|
|
17941
|
+
<clipPath id="clipGlass">
|
|
17942
|
+
<use xlink:href="#glassPath" />
|
|
17943
|
+
</clipPath>
|
|
17765
17944
|
`;
|
|
17766
|
-
svgText = svgText.replace(/<svg([^>]*)>/, `<svg class="lido-slide-svg"$1>
|
|
17767
|
-
${clipPathDef}
|
|
17945
|
+
svgText = svgText.replace(/<svg([^>]*)>/, `<svg class="lido-slide-svg"$1>
|
|
17946
|
+
${clipPathDef}
|
|
17768
17947
|
`);
|
|
17769
17948
|
svgText = svgText.replace(/<rect([^>]*)\/?>/, `<rect id="fillArea" $1 clip-path="url(#clipGlass)" />`);
|
|
17770
17949
|
this.svgContent = svgText;
|
|
@@ -17889,7 +18068,7 @@ const LidoSlideFill = class {
|
|
|
17889
18068
|
}
|
|
17890
18069
|
}
|
|
17891
18070
|
render() {
|
|
17892
|
-
return (h(Host, { key: '
|
|
18071
|
+
return (h(Host, { key: 'cbb9f4087cff87a6aab9d196a968b8965acb79c7', id: this.id, class: "lido-slide-fill", src: this.src, fill: this.fill, fillDirection: this.fillDirection, slider: this.slider, style: this.style, min: this.min, max: this.max, division: this.division, numberType: this.numberType, onEntry: this.onEntry, type: this.type, "disable-speak": this.disableSpeak }, h("div", { key: '35b1e30cfccd868de54619b29d89870ca29b1fcc', innerHTML: this.svgContent, class: "lido-svg-element" })));
|
|
17893
18072
|
}
|
|
17894
18073
|
get el() { return getElement(this); }
|
|
17895
18074
|
static get watchers() { return {
|
|
@@ -18178,7 +18357,7 @@ const LidoText = class {
|
|
|
18178
18357
|
}
|
|
18179
18358
|
render() {
|
|
18180
18359
|
const displayText = instance.t(this.string).replace(/_phonics?/gi, '');
|
|
18181
|
-
return (h(Host, { key: '
|
|
18360
|
+
return (h(Host, { key: 'f15f324ad2bf6bf540e1b99bebc18aee13e0f76e', class: "lido-text", value: this.value, "required-drops": this.requiredDrops, type: this.type, "tab-index": this.tabIndex, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, minDrops: this.minDrops, maxDrops: this.maxDrops, id: this.id, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, move: this.move, "span-type": this.spanType, "disable-speak": `${this.disableSpeak}` }, this.spanType !== '' ? h("div", { class: "lido-text-content" }, " ", displayText) : displayText));
|
|
18182
18361
|
}
|
|
18183
18362
|
get el() { return getElement(this); }
|
|
18184
18363
|
};
|
|
@@ -18774,16 +18953,9 @@ const LidoTrace = class {
|
|
|
18774
18953
|
const proximitySquared = proximityThreshold * proximityThreshold;
|
|
18775
18954
|
// Calculate the distance between the pointer and the draggable circle
|
|
18776
18955
|
const distanceSquared = this.getDistanceSquared(pointerPos, circlePos);
|
|
18777
|
-
//
|
|
18778
|
-
|
|
18779
|
-
|
|
18780
|
-
// remains on the trace. This prevents long, narrow curves from becoming
|
|
18781
|
-
// stuck halfway through a stroke.
|
|
18782
|
-
const pointerLeadThreshold = evt.pointerType === 'touch'
|
|
18783
|
-
? Math.max(proximityThreshold * 4, 180)
|
|
18784
|
-
: Math.max(proximityThreshold * 2, 120);
|
|
18785
|
-
if (distanceSquared > pointerLeadThreshold * pointerLeadThreshold) {
|
|
18786
|
-
return;
|
|
18956
|
+
// If the pointer is outside the proximity threshold, do not proceed with drawing or moving
|
|
18957
|
+
if (distanceSquared > proximitySquared) {
|
|
18958
|
+
return; // Skip any further actions
|
|
18787
18959
|
}
|
|
18788
18960
|
const isFreeTraceMode = state.mode === TraceMode.FreeTrace || state.mode === TraceMode.BlindFreeTrace;
|
|
18789
18961
|
const closestPoint = this.getClosestPointOnPath(currentPath, pointerPos, isFreeTraceMode ? undefined : state.lastLength);
|
|
@@ -18823,7 +18995,7 @@ const LidoTrace = class {
|
|
|
18823
18995
|
state.freeTracePointsCount = 1;
|
|
18824
18996
|
}
|
|
18825
18997
|
// Limit the number of points in the free trace path for performance
|
|
18826
|
-
const MAX_FREE_TRACE_POINTS =
|
|
18998
|
+
const MAX_FREE_TRACE_POINTS = 5;
|
|
18827
18999
|
state.freeTracePointsCount = (state.freeTracePointsCount || 1) + 1;
|
|
18828
19000
|
if (state.freeTracePointsCount > MAX_FREE_TRACE_POINTS) {
|
|
18829
19001
|
// If limit reached, skip adding more points
|
|
@@ -18859,7 +19031,7 @@ const LidoTrace = class {
|
|
|
18859
19031
|
// In normal modes, allow movement and drawing only within the general proximity threshold
|
|
18860
19032
|
const BACKWARD_TOLERANCE = 20; // allow slight backward movement
|
|
18861
19033
|
const MAX_FORWARD_JUMP = 80; // prevent jumping to wrong segment
|
|
18862
|
-
const RECOVERY_FORWARD_JUMP = Math.min(
|
|
19034
|
+
const RECOVERY_FORWARD_JUMP = Math.min(320, Math.max(160, state.totalPathLength * 0.45)); // recover on long strokes without skipping short paths
|
|
18863
19035
|
const RECOVERY_END_BUFFER = Math.min(60, Math.max(24, state.totalPathLength * 0.12)); // don't let recovery auto-finish the last part
|
|
18864
19036
|
const RECOVERY_POINTER_MOVE_THRESHOLD = 8; // only recover after a meaningful drag, not during slow tracing
|
|
18865
19037
|
let guidedClosestPoint = closestPoint;
|
|
@@ -19316,7 +19488,7 @@ const LidoTrace = class {
|
|
|
19316
19488
|
};
|
|
19317
19489
|
}
|
|
19318
19490
|
render() {
|
|
19319
|
-
return (h(Host, { key: '
|
|
19491
|
+
return (h(Host, { key: '361e60977f10125a19ce2c3a358c4b450d3f2d6c', class: "lido-trace", id: this.id, audio: this.audio, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, tabindex: this.tabIndex, "disable-speak": this.disableSpeak }, h("div", { key: 'f003ed4286f05229490221854c5cba19e7930425', style: this.style, id: "lido-svgContainer" })));
|
|
19320
19492
|
}
|
|
19321
19493
|
static get assetsDirs() { return ["assets"]; }
|
|
19322
19494
|
get el() { return getElement(this); }
|
|
@@ -19402,7 +19574,7 @@ const LidoWrap = class {
|
|
|
19402
19574
|
};
|
|
19403
19575
|
}
|
|
19404
19576
|
render() {
|
|
19405
|
-
return (h(Host, { key: '
|
|
19577
|
+
return (h(Host, { key: '80d8d410ffcc60ca8b70a8d76073f941324d311c', class: "lido-wrap", value: this.value, type: this.type, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, minDrops: this.minDrops, maxDrops: this.maxDrops, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, disableSpeak: this.disableSpeak }, h("slot", { key: '8b2c0f1bfe3568a72545657814ca457640d2d797' })));
|
|
19406
19578
|
}
|
|
19407
19579
|
get el() { return getElement(this); }
|
|
19408
19580
|
};
|