lido-player 0.0.2-alpha-60-dev → 0.0.2-alpha-61
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 +70 -28
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-28faa755.js → utils-9cf49b55.js} +118 -55
- package/dist/collection/components/container/lido-container.js +21 -18
- package/dist/collection/components/home/lido-home.js +4 -4
- package/dist/collection/components/root/lido-root.js +5 -5
- package/dist/collection/components/text/lido-text.js +3 -2
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
- package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +16 -15
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +9 -7
- package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +8 -6
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +2 -2
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +1 -1
- package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +31 -18
- package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +5 -5
- package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +10 -7
- package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +10 -6
- package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +19 -14
- package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +8 -8
- package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +17 -10
- package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +97 -0
- package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +6 -6
- package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +16 -19
- package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +17 -18
- package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +22 -19
- package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +9 -9
- package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +9 -9
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +13 -13
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +9 -9
- package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +63 -0
- package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +7 -7
- package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +13 -13
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +7 -7
- package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +1 -1
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +6 -5
- package/dist/collection/utils/audioPlayer.js +10 -0
- package/dist/collection/utils/customEvents.js +2 -1
- package/dist/collection/utils/i18n.js +2 -0
- package/dist/collection/utils/utils.js +4 -11
- package/dist/collection/utils/utilsHandlers/clickHandler.js +12 -7
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +26 -52
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +4 -5
- package/dist/collection/utils/utilsHandlers/timer.js +53 -0
- 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 +27 -27
- 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-354f7b19.js → p-0f54f212.js} +2 -2
- package/dist/components/{p-3acada8c.js → p-16a6a6f6.js} +1 -1
- package/dist/components/{p-b151457d.js → p-27bfb88f.js} +22 -20
- package/dist/components/{p-93acfbb2.js → p-2b0ef6d4.js} +1 -1
- package/dist/components/{p-c90d92db.js → p-2ce1503f.js} +1 -1
- package/dist/components/{p-8f082c62.js → p-2fedf56d.js} +1 -1
- package/dist/components/{p-a182c9a2.js → p-3c9dd098.js} +1 -1
- package/dist/components/{p-235091a1.js → p-40afd35f.js} +118 -56
- package/dist/components/{p-57400ebc.js → p-4a1af1bb.js} +1 -1
- package/dist/components/{p-74c270d2.js → p-4c1d15df.js} +2 -2
- package/dist/components/{p-5e7c6afa.js → p-4ec94e44.js} +1 -1
- package/dist/components/{p-3acd9a2e.js → p-572f8490.js} +1 -1
- package/dist/components/{p-16604098.js → p-6bee9883.js} +1 -1
- package/dist/components/{p-4d01394c.js → p-76947363.js} +1 -1
- package/dist/components/{p-de45dcab.js → p-8632f479.js} +25 -25
- package/dist/components/{p-db2a05f5.js → p-97ca067d.js} +3 -3
- package/dist/components/{p-8a32f7cb.js → p-be063cbd.js} +1 -1
- package/dist/components/{p-8c0667eb.js → p-d28496a9.js} +1 -1
- package/dist/components/{p-b867548e.js → p-df6042b0.js} +1 -1
- package/dist/components/{p-06cecca5.js → p-dfa70e99.js} +1 -1
- package/dist/components/{p-37c86a94.js → p-e4b71ba1.js} +47 -7
- package/dist/components/{p-32c89979.js → p-f241ab97.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +70 -28
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-2edeb213.js → utils-01d6cbb5.js} +118 -56
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-add7f36e.js → p-c5ca9462.js} +2 -2
- package/dist/lido-player/p-e4d5dabf.entry.js +1 -0
- package/dist/types/components/container/lido-container.d.ts +1 -1
- package/dist/types/components/home/lido-home.d.ts +1 -1
- package/dist/types/components/root/lido-root.d.ts +1 -1
- package/dist/types/components.d.ts +24 -24
- package/dist/types/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.d.ts +4 -0
- package/dist/types/stories/Templates/sentenceMatch/sentenceMatch.stories.d.ts +4 -0
- package/dist/types/utils/audioPlayer.d.ts +1 -0
- package/dist/types/utils/constants.d.ts +4 -5
- package/dist/types/utils/utilsHandlers/timer.d.ts +14 -0
- package/package.json +1 -1
- package/dist/lido-player/p-280e3d34.entry.js +0 -1
|
@@ -53,6 +53,60 @@ const nextUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/publ
|
|
|
53
53
|
const speakUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/audio.png';
|
|
54
54
|
const fingerUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Tracing-hand.svg';
|
|
55
55
|
|
|
56
|
+
class Timer {
|
|
57
|
+
constructor() {
|
|
58
|
+
this.startTime = 0;
|
|
59
|
+
this.elapsedTime = 0;
|
|
60
|
+
this.intervalId = null;
|
|
61
|
+
}
|
|
62
|
+
static getI(onTick) {
|
|
63
|
+
if (!Timer.instance) {
|
|
64
|
+
Timer.instance = new Timer();
|
|
65
|
+
}
|
|
66
|
+
if (onTick) {
|
|
67
|
+
Timer.instance.onTick = onTick;
|
|
68
|
+
}
|
|
69
|
+
return Timer.instance;
|
|
70
|
+
}
|
|
71
|
+
start() {
|
|
72
|
+
if (this.intervalId)
|
|
73
|
+
return;
|
|
74
|
+
this.startTime = Date.now() - this.elapsedTime;
|
|
75
|
+
this.intervalId = window.setInterval(() => {
|
|
76
|
+
var _a;
|
|
77
|
+
this.elapsedTime = Date.now() - this.startTime;
|
|
78
|
+
(_a = this.onTick) === null || _a === void 0 ? void 0 : _a.call(this, this.elapsedTime);
|
|
79
|
+
}, 1000);
|
|
80
|
+
}
|
|
81
|
+
pause() {
|
|
82
|
+
if (!this.intervalId)
|
|
83
|
+
return;
|
|
84
|
+
clearInterval(this.intervalId);
|
|
85
|
+
this.intervalId = null;
|
|
86
|
+
this.elapsedTime = Date.now() - this.startTime;
|
|
87
|
+
}
|
|
88
|
+
resume() {
|
|
89
|
+
if (this.intervalId)
|
|
90
|
+
return;
|
|
91
|
+
this.start();
|
|
92
|
+
}
|
|
93
|
+
stop() {
|
|
94
|
+
var _a;
|
|
95
|
+
if (this.intervalId) {
|
|
96
|
+
clearInterval(this.intervalId);
|
|
97
|
+
this.intervalId = null;
|
|
98
|
+
}
|
|
99
|
+
this.startTime = 0;
|
|
100
|
+
this.elapsedTime = 0;
|
|
101
|
+
(_a = this.onTick) === null || _a === void 0 ? void 0 : _a.call(this, 0);
|
|
102
|
+
}
|
|
103
|
+
getElapsed() {
|
|
104
|
+
return this.intervalId
|
|
105
|
+
? Date.now() - this.startTime
|
|
106
|
+
: this.elapsedTime;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
56
110
|
function dispatchCustomEvent(eventName, detail) {
|
|
57
111
|
console.log("👍Event Name : ", eventName, "Detail : ", detail.toString());
|
|
58
112
|
const event = new CustomEvent(eventName, { detail });
|
|
@@ -62,7 +116,7 @@ function dispatchActivityEndEvent(index, totalIndex, score) {
|
|
|
62
116
|
dispatchCustomEvent(ActivityEndKey, { index, totalIndex, score });
|
|
63
117
|
}
|
|
64
118
|
function dispatchLessonEndEvent(score) {
|
|
65
|
-
dispatchCustomEvent(LessonEndKey, { score });
|
|
119
|
+
dispatchCustomEvent(LessonEndKey, { score, timeSpent: Math.floor(Timer.getI().getElapsed() / 1000) });
|
|
66
120
|
}
|
|
67
121
|
function dispatchNextContainerEvent() {
|
|
68
122
|
dispatchCustomEvent(NextContainerKey, {});
|
|
@@ -118,7 +172,7 @@ function updateBalanceOnDrop(dragElement, dropElement) {
|
|
|
118
172
|
}
|
|
119
173
|
function calculateValue(elements, operation) {
|
|
120
174
|
if (elements.length === 0)
|
|
121
|
-
return
|
|
175
|
+
return null;
|
|
122
176
|
if (operation === "count") {
|
|
123
177
|
return elements.length;
|
|
124
178
|
}
|
|
@@ -150,18 +204,15 @@ function calculateValue(elements, operation) {
|
|
|
150
204
|
}
|
|
151
205
|
}
|
|
152
206
|
function balanceResult(container, objectiveString) {
|
|
153
|
-
var _a, _b, _c, _d, _e, _f;
|
|
154
207
|
const additionalCheck = container.getAttribute('equationCheck');
|
|
155
208
|
if (!additionalCheck)
|
|
156
209
|
return false;
|
|
157
210
|
const balanceEl = document.querySelector('lido-balance');
|
|
158
211
|
if (!balanceEl)
|
|
159
212
|
return false;
|
|
160
|
-
const leftVal =
|
|
161
|
-
const rightVal =
|
|
162
|
-
|
|
163
|
-
const hasRight = !isNaN(rightVal);
|
|
164
|
-
if (!hasLeft || !hasRight) {
|
|
213
|
+
const leftVal = balanceEl.leftVal;
|
|
214
|
+
const rightVal = balanceEl.rightVal;
|
|
215
|
+
if (leftVal == null || rightVal == null) {
|
|
165
216
|
return false;
|
|
166
217
|
}
|
|
167
218
|
const symbol = leftVal > rightVal ? '>' : leftVal < rightVal ? '<' : '=';
|
|
@@ -289,6 +340,7 @@ function enableDraggingWithScaling(element) {
|
|
|
289
340
|
handlingElementFlexibleWidth(element, 'drag');
|
|
290
341
|
const onStart = (event) => {
|
|
291
342
|
var _a, _b;
|
|
343
|
+
console.log("moving start");
|
|
292
344
|
if (isDraggingDisabled) {
|
|
293
345
|
isDragging = false;
|
|
294
346
|
return;
|
|
@@ -432,22 +484,24 @@ function enableDraggingWithScaling(element) {
|
|
|
432
484
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
433
485
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
434
486
|
if (!(((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
435
|
-
if (otherElement
|
|
436
|
-
|
|
437
|
-
otherElement.style.opacity = '0';
|
|
487
|
+
if (otherElement) {
|
|
488
|
+
otherElement.style.opacity = "0.3";
|
|
438
489
|
}
|
|
439
490
|
}
|
|
440
491
|
}
|
|
441
492
|
else {
|
|
442
|
-
if (otherElement
|
|
443
|
-
|
|
444
|
-
otherElement.style.opacity = '1';
|
|
493
|
+
if (otherElement) {
|
|
494
|
+
otherElement.style.opacity = "1";
|
|
445
495
|
}
|
|
446
496
|
}
|
|
447
497
|
});
|
|
448
498
|
// Apply styles only to the most overlapped element
|
|
449
499
|
if (mostOverlappedElement) {
|
|
450
|
-
if (mostOverlappedElement.tagName.toLowerCase() === 'lido-text')
|
|
500
|
+
if (mostOverlappedElement.tagName.toLowerCase() === 'lido-text') {
|
|
501
|
+
// mostOverlappedElement.style.border = '2px dashed #ff0000'; // Red dashed border
|
|
502
|
+
// mostOverlappedElement.style.backgroundColor = 'rgba(255, 0, 0, 0.1)'; // Light red background
|
|
503
|
+
mostOverlappedElement.style.opacity = "0.3";
|
|
504
|
+
}
|
|
451
505
|
else {
|
|
452
506
|
if (!document.getElementById('unitsDrop') || !document.getElementById('tensDrop') || !document.getElementById('hundredsDrop')) {
|
|
453
507
|
mostOverlappedElement.style.opacity = '0.3';
|
|
@@ -483,9 +537,8 @@ function enableDraggingWithScaling(element) {
|
|
|
483
537
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
484
538
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
485
539
|
if (!(((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
486
|
-
if (otherElement
|
|
487
|
-
|
|
488
|
-
otherElement.style.opacity = '0';
|
|
540
|
+
if (otherElement) {
|
|
541
|
+
otherElement.style.opacity = "0";
|
|
489
542
|
}
|
|
490
543
|
else {
|
|
491
544
|
otherElement.style.opacity = '1';
|
|
@@ -493,9 +546,8 @@ function enableDraggingWithScaling(element) {
|
|
|
493
546
|
}
|
|
494
547
|
}
|
|
495
548
|
else {
|
|
496
|
-
if (otherElement
|
|
497
|
-
|
|
498
|
-
otherElement.style.opacity = '1';
|
|
549
|
+
if (otherElement) {
|
|
550
|
+
otherElement.style.opacity = "1";
|
|
499
551
|
}
|
|
500
552
|
}
|
|
501
553
|
});
|
|
@@ -546,6 +598,7 @@ function enableDraggingWithScaling(element) {
|
|
|
546
598
|
element.addEventListener('touchstart', onStart);
|
|
547
599
|
element.addEventListener('click', ev => {
|
|
548
600
|
if (isClicked) {
|
|
601
|
+
console.log("clicked drag elkement");
|
|
549
602
|
onClickDropOrDragElement(element, 'drag');
|
|
550
603
|
}
|
|
551
604
|
});
|
|
@@ -673,18 +726,14 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
673
726
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
674
727
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
675
728
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
676
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
677
|
-
|
|
678
|
-
otherElement.style.opacity = '0';
|
|
679
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
729
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') {
|
|
730
|
+
otherElement.style.opacity = "0";
|
|
680
731
|
}
|
|
681
732
|
}
|
|
682
733
|
}
|
|
683
734
|
else {
|
|
684
|
-
if (otherElement
|
|
685
|
-
|
|
686
|
-
otherElement.style.opacity = '1';
|
|
687
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
735
|
+
if (otherElement) {
|
|
736
|
+
otherElement.style.opacity = "1";
|
|
688
737
|
}
|
|
689
738
|
}
|
|
690
739
|
});
|
|
@@ -702,11 +751,14 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
702
751
|
if (!dropElement) {
|
|
703
752
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
|
|
704
753
|
}
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
754
|
+
let dropTabIndex;
|
|
755
|
+
if (dropElement) {
|
|
756
|
+
dropTabIndex = dropElement.getAttribute('tab-index');
|
|
757
|
+
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'false';
|
|
758
|
+
if (((_b = dropHasDrag[dropTabIndex]) === null || _b === void 0 ? void 0 : _b.isFull) && !isAllowOnlyOneDrop) {
|
|
759
|
+
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
710
762
|
}
|
|
711
763
|
const isAllowOnlyCorrect = container.getAttribute('is-allow-only-correct') === 'true';
|
|
712
764
|
if (isAllowOnlyCorrect) {
|
|
@@ -739,7 +791,6 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
739
791
|
dragElement.style.transition = 'transform 0.5s ease';
|
|
740
792
|
animateDragToTarget(dragElement, dropElement, container);
|
|
741
793
|
const onInCorrect = dropElement.getAttribute('onInCorrect');
|
|
742
|
-
console.log("onincorrectttt", onInCorrect);
|
|
743
794
|
await executeActions(onInCorrect, dropElement, dragElement);
|
|
744
795
|
setTimeout(() => {
|
|
745
796
|
dragElement.style.transform = 'translate(0, 0)';
|
|
@@ -846,15 +897,13 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
846
897
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
847
898
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
848
899
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
849
|
-
if (otherElement
|
|
850
|
-
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
900
|
+
if (otherElement) {
|
|
851
901
|
otherElement.style.opacity = '0';
|
|
852
902
|
}
|
|
853
903
|
}
|
|
854
904
|
}
|
|
855
905
|
else {
|
|
856
|
-
if (otherElement
|
|
857
|
-
if (otherElement.tagName.toLowerCase() === 'lido-image' || 'lido-cell') {
|
|
906
|
+
if (otherElement) {
|
|
858
907
|
otherElement.style.opacity = '1';
|
|
859
908
|
}
|
|
860
909
|
}
|
|
@@ -980,8 +1029,9 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
980
1029
|
element.ariaPressed = 'true';
|
|
981
1030
|
const selectedDropElement = type === 'drop' ? element : document.querySelector("[type='drop'].highlight-element");
|
|
982
1031
|
const selectedDragElement = type === 'drag' ? element : document.querySelector("[type='drag'].highlight-element");
|
|
983
|
-
if (!selectedDropElement) {
|
|
1032
|
+
if (!selectedDropElement || element.classList.contains("dropped")) {
|
|
984
1033
|
onClickDragElement(element);
|
|
1034
|
+
return;
|
|
985
1035
|
}
|
|
986
1036
|
if (selectedDropElement && selectedDragElement) {
|
|
987
1037
|
if (selectedDragElement.getAttribute('drop-to'))
|
|
@@ -1194,6 +1244,9 @@ function highlightElement() {
|
|
|
1194
1244
|
|
|
1195
1245
|
class AudioPlayer {
|
|
1196
1246
|
constructor() {
|
|
1247
|
+
this.handleUserClick = () => {
|
|
1248
|
+
this.stop();
|
|
1249
|
+
};
|
|
1197
1250
|
this.audioElement = document.createElement('audio');
|
|
1198
1251
|
this.audioElement.id = 'audio';
|
|
1199
1252
|
document.body.appendChild(this.audioElement);
|
|
@@ -1230,6 +1283,10 @@ class AudioPlayer {
|
|
|
1230
1283
|
catch (e) {
|
|
1231
1284
|
console.error('Error stopping audio before speak action:', e);
|
|
1232
1285
|
}
|
|
1286
|
+
const text = targetElement.closest('lido-text');
|
|
1287
|
+
if (text && text.getAttribute('disable-speak') === 'true') {
|
|
1288
|
+
return;
|
|
1289
|
+
}
|
|
1233
1290
|
// then play the target element audio.
|
|
1234
1291
|
let audioUrl = targetElement.getAttribute('audio') || '';
|
|
1235
1292
|
// If no direct audio attribute, check childrens for audio
|
|
@@ -1250,6 +1307,7 @@ class AudioPlayer {
|
|
|
1250
1307
|
try {
|
|
1251
1308
|
setDraggingDisabled(true);
|
|
1252
1309
|
highlightSpeakingElement(targetElement);
|
|
1310
|
+
window.addEventListener('click', this.handleUserClick, true);
|
|
1253
1311
|
await this.audioElement.play();
|
|
1254
1312
|
await new Promise(resolve => {
|
|
1255
1313
|
this.audioElement.onended = () => {
|
|
@@ -1261,6 +1319,7 @@ class AudioPlayer {
|
|
|
1261
1319
|
console.log('🎧 Audio play error:', error);
|
|
1262
1320
|
}
|
|
1263
1321
|
finally {
|
|
1322
|
+
window.removeEventListener('click', this.handleUserClick, true);
|
|
1264
1323
|
this.audioElement.onended = null; // cleanup
|
|
1265
1324
|
setDraggingDisabled(false);
|
|
1266
1325
|
stopHighlightForSpeakingElement(targetElement);
|
|
@@ -1270,6 +1329,7 @@ class AudioPlayer {
|
|
|
1270
1329
|
else if (targetElement.textContent) {
|
|
1271
1330
|
try {
|
|
1272
1331
|
highlightSpeakingElement(targetElement);
|
|
1332
|
+
window.addEventListener('click', this.handleUserClick, true);
|
|
1273
1333
|
await speakText(targetElement.textContent, targetElement);
|
|
1274
1334
|
const highlightedElements = document.querySelectorAll('.speaking-highlight');
|
|
1275
1335
|
highlightedElements.forEach(element => stopHighlightForSpeakingElement(element));
|
|
@@ -3197,7 +3257,7 @@ function onTouchListenerForOnTouch(element) {
|
|
|
3197
3257
|
setDraggingDisabled(false);
|
|
3198
3258
|
};
|
|
3199
3259
|
const onPointerDown = (event) => {
|
|
3200
|
-
event.stopPropagation();
|
|
3260
|
+
// event.stopPropagation();
|
|
3201
3261
|
onholdTriggered = false;
|
|
3202
3262
|
onholdTimer = setTimeout(() => {
|
|
3203
3263
|
playAudio();
|
|
@@ -3205,13 +3265,18 @@ function onTouchListenerForOnTouch(element) {
|
|
|
3205
3265
|
};
|
|
3206
3266
|
const onPointerUp = async (event) => {
|
|
3207
3267
|
clearTimeout(onholdTimer);
|
|
3208
|
-
|
|
3268
|
+
// If long-press happened → do nothing else
|
|
3269
|
+
if (onholdTriggered) {
|
|
3270
|
+
setDraggingDisabled(false);
|
|
3271
|
+
return;
|
|
3272
|
+
}
|
|
3273
|
+
// If an onTouch action is defined, execute it on tap.
|
|
3274
|
+
if (onTouch) {
|
|
3209
3275
|
await executeActions(onTouch, element);
|
|
3210
3276
|
}
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
}
|
|
3277
|
+
const type = element.getAttribute('type') || '';
|
|
3278
|
+
if (['category', 'option', 'click'].includes(type)) {
|
|
3279
|
+
element.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true }));
|
|
3215
3280
|
}
|
|
3216
3281
|
setDraggingDisabled(false);
|
|
3217
3282
|
};
|
|
@@ -3257,7 +3322,7 @@ function addClickListenerForClickType(element) {
|
|
|
3257
3322
|
container.setAttribute(SelectedValuesKey, JSON.stringify([element['value']]));
|
|
3258
3323
|
const isCorrect = objective.includes(element['value']);
|
|
3259
3324
|
dispatchClickEvent(element, isCorrect);
|
|
3260
|
-
if (isCorrect) {
|
|
3325
|
+
if (isCorrect || container.getAttribute('is-continue-on-correct') === 'false') {
|
|
3261
3326
|
const onCorrect = element.getAttribute('onCorrect');
|
|
3262
3327
|
if (!(element.id && element.id.startsWith('key-button'))) {
|
|
3263
3328
|
element.style.pointerEvents = 'none';
|
|
@@ -68718,6 +68783,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68718
68783
|
const container = document.getElementById(LidoContainer);
|
|
68719
68784
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
68720
68785
|
targetElement.style.pointerEvents = 'none';
|
|
68786
|
+
AudioPlayer.getI().stop();
|
|
68721
68787
|
}
|
|
68722
68788
|
await validateObjectiveStatus();
|
|
68723
68789
|
break;
|
|
@@ -68949,7 +69015,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
68949
69015
|
const scaledLeft = (dropCenterX - dragCenterX) / containerScale;
|
|
68950
69016
|
const scaledTop = (dropCenterY - dragCenterY) / containerScale;
|
|
68951
69017
|
dragElement.style.transform = `translate(${scaledLeft}px, ${scaledTop}px)`;
|
|
68952
|
-
},
|
|
69018
|
+
}, 700);
|
|
68953
69019
|
}
|
|
68954
69020
|
};
|
|
68955
69021
|
// function cloneElementWithComputedStyles(originalEl: HTMLElement): HTMLElement {
|
|
@@ -69133,18 +69199,14 @@ async function onActivityComplete(dragElement, dropElement) {
|
|
|
69133
69199
|
const storedTabIndexes = Object.keys(dragScore).map(Number);
|
|
69134
69200
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
69135
69201
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
69136
|
-
if (otherElement
|
|
69137
|
-
|
|
69138
|
-
otherElement.style.opacity = '0';
|
|
69139
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
69202
|
+
if (otherElement) {
|
|
69203
|
+
otherElement.style.opacity = "0";
|
|
69140
69204
|
}
|
|
69141
69205
|
}
|
|
69142
69206
|
}
|
|
69143
69207
|
else {
|
|
69144
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
69145
|
-
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
69208
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') {
|
|
69146
69209
|
otherElement.style.opacity = '1';
|
|
69147
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
69148
69210
|
}
|
|
69149
69211
|
}
|
|
69150
69212
|
});
|
|
@@ -69935,4 +69997,4 @@ const updateCalculatorAnswer = (el) => {
|
|
|
69935
69997
|
el.setAttribute('string', value);
|
|
69936
69998
|
};
|
|
69937
69999
|
|
|
69938
|
-
export { ActivityScoreKey as A,
|
|
70000
|
+
export { ActivityScoreKey as A, LidoContainer as B, getCancelBtnPopup as C, matchStringPattern as D, triggerNextContainer as E, triggerPrevcontainer as F, setCancelBtnPopup as G, getDefaultExportFromCjs as H, tinyColor as I, DropAction as J, validateObjectiveStatus as K, LIDO_COMMON_AUDIO_PATH as L, fraction as M, NextContainerKey as N, LIDO_COMMON_AUDIO_READY_EVENT as O, PrevContainerKey as P, TraceMode as Q, RiveService as R, SelectedValuesKey as S, TemplateID as T, speakIcon as U, fingerUrl as V, convertUrlToRelative as a, storingEachActivityScore as b, commonjsGlobal as c, executeActions as d, equationCheck as e, format as f, calculateScore as g, handlingChildElements as h, initEventsForElement as i, attachSpeakIcon as j, calculateScale as k, highlightElement as l, Timer as m, handleFloatElementPosition as n, handleElementClick as o, parseProp as p, dispatchActivityChangeEvent as q, dispatchGameCompletedEvent as r, setVisibilityWithDelay as s, dispatchGameExitEvent as t, AudioPlayer as u, generateUUIDFallback as v, exitUrl as w, prevUrl as x, nextUrl as y, speakUrl as z };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{f as format}from"./p-
|
|
1
|
+
export{f as format}from"./p-c5ca9462.js";import"./p-9a9d5339.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-9a9d5339.js";export{s as setNonce}from"./p-9a9d5339.js";import{g as i}from"./p-e1255160.js";(()=>{const o=import.meta.url,i={};return""!==o&&(i.resourcesUrl=new URL(".",o).href),e(i)})().then((async e=>(await i(),o(JSON.parse('[["p-280e3d34",[[0,"lido-root",{"locale":[1],"xmlPath":[1,"xml-path"],"initialIndex":[2,"initial-index"],"margin":[1],"canplay":[4],"baseUrl":[1,"base-url"],"exitButtonUrl":[1,"exit-button-url"],"prevButtonUrl":[1,"prev-button-url"],"nextButtonUrl":[1,"next-button-url"],"speakerButtonUrl":[1,"speaker-button-url"],"xmlData":[32]},null,{"locale":["onLangChange"]}],[0,"lido-home",{"commonAudioPath":[1,"common-audio-path"],"showNav":[4,"show-nav"],"activeContainerIndexes":[16],"locale":[1],"xmlData":[1,"xml-data"],"initialIndex":[2,"initial-index"],"canplay":[4],"baseUrl":[1,"base-url"],"height":[1],"exitButtonUrl":[1,"exit-button-url"],"prevButtonUrl":[1,"prev-button-url"],"nextButtonUrl":[1,"next-button-url"],"speakerButtonUrl":[1,"speaker-button-url"],"avatarUrl":[1,"avatar-url"],"uuid":[1],"navBarIcons":[32],"currentContainerIndex":[32],"exitFlag":[32],"containers":[32],"showDotsandbtn":[32]},null,{"locale":["onLangChange"],"commonAudioPath":["onCommonAudioPathChange"],"xmlData":["onXmlDataChange"]}],[0,"lido-calculator",{"width":[1],"visible":[8],"height":[1],"objective":[1],"onEntry":[1,"on-entry"],"x":[1],"y":[1],"bgColor":[1,"bg-color"],"penIcon":[1,"pen-icon"],"displayValue":[32],"style":[32]}],[1,"lido-canvas",{"bgImage":[1,"bg-image"],"width":[1],"height":[1],"x":[1],"y":[1],"onEntry":[1,"on-entry"],"style":[32]}],[4,"lido-container",{"locale":[1],"showDropBorder":[4,"show-drop-border"],"appendToDropOnCompletion":[4,"append-to-drop-on-completion"],"id":[1],"objective":[1],"customStyle":[1,"custom-style"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"bgImage":[1,"bg-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"canplay":[4],"showCheck":[4,"show-check"],"isContinueOnCorrect":[4,"is-continue-on-correct"],"isAllowOnlyCorrect":[4,"is-allow-only-correct"],"baseUrl":[1,"base-url"],"margin":[1],"exitButtonUrl":[1,"exit-button-url"],"prevButtonUrl":[1,"prev-button-url"],"nextButtonUrl":[1,"next-button-url"],"speakerButtonUrl":[1,"speaker-button-url"],"showPrevButton":[1,"show-prev-button"],"showNextButton":[1,"show-next-button"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"templateId":[1,"template-id"],"instructName":[32],"speakFlag":[32]},null,{"locale":["languageChanged"]}],[0,"lido-keyboard",{"keys":[1],"width":[1],"height":[1],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"fontFamily":[1,"font-family"],"gap":[1],"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"y":[1],"x":[1],"z":[1],"margin":[1],"padding":[1],"visible":[1],"onEntry":[1,"on-entry"],"type":[1],"keyboardInput":[4,"keyboard-input"],"columns":[1],"letterLength":[2,"letter-length"],"disableSpeak":[4,"disable-speak"],"numberOfClick":[32],"inputString":[32],"style":[32]}],[0,"lido-avatar",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"src":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"]}],[0,"lido-balance",{"pivotimage":[1],"scaleimage":[1],"handlerimage":[1],"fill":[1],"tilt":[2],"maxTilt":[2,"max-tilt"],"onEntry":[1,"on-entry"],"height":[1],"width":[1],"x":[1],"y":[1],"z":[1],"visible":[8],"margin":[1],"padding":[1],"balanceSymbol":[1537,"balance-symbol"],"showSymbol":[1540,"show-symbol"],"operation":[1],"pivotSvg":[32],"scaleSvg":[32],"handlerSvg":[32],"style":[32],"tiltf":[32],"leftVal":[32],"rightVal":[32],"revealSymbol":[64],"hideSymbol":[64],"updateTilt":[64]},null,{"tilt":["tiltChanged"]}],[4,"lido-col",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"borderImage":[1,"border-image"],"boxShadow":[1,"box-shadow"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-flash-card",{"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"direction":[1],"display":[1],"front":[8],"back":[8],"flipped":[1540],"margin":[1],"disableSpeak":[4,"disable-speak"],"delayVisible":[1,"delay-visible"],"style":[32]},null,{"flipped":["handleFlippedChange"]}],[4,"lido-float",{"id":[1],"value":[1],"z":[1],"tabIndex":[2,"tab-index"],"visible":[4],"onEntry":[1,"on-entry"],"width":[1],"height":[1],"bgColor":[1,"bg-color"],"type":[1],"delayVisible":[1,"delay-visible"],"floatDirection":[1,"float-direction"],"style":[32]}],[0,"lido-image",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"src":[1],"isSlice":[1,"is-slice"],"sliceWidth":[1,"slice-width"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"filter":[1],"borderRadius":[1,"border-radius"],"transform":[1],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"style":[32]}],[0,"lido-math-matrix",{"rows":[1],"cols":[1],"defualtFill":[1538,"defualt-fill"],"leftIndex":[4,"left-index"],"topIndex":[4,"top-index"],"bottomIndex":[4,"bottom-index"],"clickable":[4],"activeOnlyVisible":[4,"active-only-visible"],"matrixImage":[1,"matrix-image"],"activeBgColor":[1537,"active-bg-color"],"deactiveBgColor":[1537,"deactive-bg-color"],"border":[1537],"height":[1537],"width":[1537],"borderRadius":[1,"border-radius"],"z":[1],"margin":[1],"padding":[1],"visible":[1],"text":[1],"type":[1],"value":[1],"tabIndex":[2,"tab-index"],"x":[1],"y":[1],"fontColor":[1,"font-color"],"onCorrect":[1,"on-correct"],"onInCorrect":[1,"on-in-correct"],"onEntry":[1,"on-entry"],"previousFilledSlot":[32],"previousFilledSlotElement":[32],"style":[32]}],[4,"lido-pos",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-random",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1]}],[4,"lido-row",{"showSpeakIcon":[4,"show-speak-icon"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"display":[1],"margin":[1],"disableSpeak":[4,"disable-speak"],"style":[32]}],[0,"lido-shape",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"shapeType":[1,"shape-type"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"style":[32]}],[0,"lido-slide-fill",{"id":[1],"width":[1],"height":[1],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"visible":[8],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"fill":[1],"numberType":[1,"number-type"],"min":[2],"division":[2],"max":[2],"slider":[4],"src":[1],"fillDirection":[1,"fill-direction"],"type":[1],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"svgContent":[32],"style":[32]},null,{"src":["onSrcChange"],"fill":["onPropChange"],"division":["onPropChange"],"fillDirection":["onPropChange"],"numberType":["onPropChange"],"min":["onPropChange"],"max":["onPropChange"]}],[0,"lido-trace",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"svgSource":[1,"svg-source"],"value":[1],"height":[1],"width":[1],"audio":[1],"x":[1],"y":[1],"z":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"tabIndex":[2,"tab-index"],"mode":[1],"fingerHintUrl":[1,"finger-hint-url"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"highlightTextId":[1,"highlight-text-id"],"animationTrace":[4,"animation-trace"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"svgUrls":[32],"audioUrls":[32],"currentSvgIndex":[32],"moving":[32],"style":[32],"fileIndex":[32],"isDragging":[32],"activePointerId":[32],"freeTraceUpdateCounter":[32],"idleTimer":[32],"fingerImg":[32]},null,{"svgSource":["initializeSVG"],"mode":["initializeSVG"]}],[4,"lido-wrap",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"flex":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"disableSpeak":[4,"disable-speak"],"style":[32]}],[4,"lido-cell",{"showSpeakIcon":[4,"show-speak-icon"],"scrollbarWidth":[1,"scrollbar-width"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"gap":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[1],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"layout":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"alignItems":[1,"align-items"],"borderRadius":[1,"border-radius"],"flexDirection":[1,"flex-direction"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"style":[32]}],[0,"lido-text",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"string":[1],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"highlightWhileSpeaking":[4,"highlight-while-speaking"],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"borderImage":[1,"border-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"onEntry":[1,"on-entry"],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"spanType":[1,"span-type"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"style":[32]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as o}from"./p-9a9d5339.js";export{s as setNonce}from"./p-9a9d5339.js";import{g as i}from"./p-e1255160.js";(()=>{const o=import.meta.url,i={};return""!==o&&(i.resourcesUrl=new URL(".",o).href),e(i)})().then((async e=>(await i(),o(JSON.parse('[["p-e4d5dabf",[[0,"lido-root",{"Lang":[1,"lang"],"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,{"Lang":["onLangChange"]}],[0,"lido-home",{"commonAudioPath":[1,"common-audio-path"],"showNav":[4,"show-nav"],"activeContainerIndexes":[16],"Lang":[1,"lang"],"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,{"Lang":["onLangChange"],"commonAudioPath":["onCommonAudioPathChange"],"xmlData":["onXmlDataChange"]}],[0,"lido-calculator",{"width":[1],"visible":[8],"height":[1],"objective":[1],"onEntry":[1,"on-entry"],"x":[1],"y":[1],"bgColor":[1,"bg-color"],"penIcon":[1,"pen-icon"],"displayValue":[32],"style":[32]}],[1,"lido-canvas",{"bgImage":[1,"bg-image"],"width":[1],"height":[1],"x":[1],"y":[1],"onEntry":[1,"on-entry"],"style":[32]}],[4,"lido-container",{"Lang":[1,"lang"],"showDropBorder":[4,"show-drop-border"],"appendToDropOnCompletion":[4,"append-to-drop-on-completion"],"id":[1],"objective":[1],"customStyle":[1,"custom-style"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"bgImage":[1,"bg-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"canplay":[4],"showCheck":[4,"show-check"],"isContinueOnCorrect":[4,"is-continue-on-correct"],"isAllowOnlyCorrect":[4,"is-allow-only-correct"],"baseUrl":[1,"base-url"],"margin":[1],"exitButtonUrl":[1,"exit-button-url"],"prevButtonUrl":[1,"prev-button-url"],"nextButtonUrl":[1,"next-button-url"],"speakerButtonUrl":[1,"speaker-button-url"],"showPrevButton":[1,"show-prev-button"],"showNextButton":[1,"show-next-button"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"templateId":[1,"template-id"],"instructName":[32],"speakFlag":[32]},null,{"Lang":["languageChanged"]}],[0,"lido-keyboard",{"keys":[1],"width":[1],"height":[1],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"fontFamily":[1,"font-family"],"gap":[1],"bgColor":[1,"bg-color"],"borderRadius":[1,"border-radius"],"y":[1],"x":[1],"z":[1],"margin":[1],"padding":[1],"visible":[1],"onEntry":[1,"on-entry"],"type":[1],"keyboardInput":[4,"keyboard-input"],"columns":[1],"letterLength":[2,"letter-length"],"disableSpeak":[4,"disable-speak"],"numberOfClick":[32],"inputString":[32],"style":[32]}],[0,"lido-avatar",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"src":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"]}],[0,"lido-balance",{"pivotimage":[1],"scaleimage":[1],"handlerimage":[1],"fill":[1],"tilt":[2],"maxTilt":[2,"max-tilt"],"onEntry":[1,"on-entry"],"height":[1],"width":[1],"x":[1],"y":[1],"z":[1],"visible":[8],"margin":[1],"padding":[1],"balanceSymbol":[1537,"balance-symbol"],"showSymbol":[1540,"show-symbol"],"operation":[1],"pivotSvg":[32],"scaleSvg":[32],"handlerSvg":[32],"style":[32],"tiltf":[32],"leftVal":[32],"rightVal":[32],"revealSymbol":[64],"hideSymbol":[64],"updateTilt":[64]},null,{"tilt":["tiltChanged"]}],[4,"lido-col",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"borderImage":[1,"border-image"],"boxShadow":[1,"box-shadow"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-flash-card",{"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"direction":[1],"display":[1],"front":[8],"back":[8],"flipped":[1540],"margin":[1],"disableSpeak":[4,"disable-speak"],"delayVisible":[1,"delay-visible"],"style":[32]},null,{"flipped":["handleFlippedChange"]}],[4,"lido-float",{"id":[1],"value":[1],"z":[1],"tabIndex":[2,"tab-index"],"visible":[4],"onEntry":[1,"on-entry"],"width":[1],"height":[1],"bgColor":[1,"bg-color"],"type":[1],"delayVisible":[1,"delay-visible"],"floatDirection":[1,"float-direction"],"style":[32]}],[0,"lido-image",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"src":[1],"isSlice":[1,"is-slice"],"sliceWidth":[1,"slice-width"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"filter":[1],"borderRadius":[1,"border-radius"],"transform":[1],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"style":[32]}],[0,"lido-math-matrix",{"rows":[1],"cols":[1],"defualtFill":[1538,"defualt-fill"],"leftIndex":[4,"left-index"],"topIndex":[4,"top-index"],"bottomIndex":[4,"bottom-index"],"clickable":[4],"activeOnlyVisible":[4,"active-only-visible"],"matrixImage":[1,"matrix-image"],"activeBgColor":[1537,"active-bg-color"],"deactiveBgColor":[1537,"deactive-bg-color"],"border":[1537],"height":[1537],"width":[1537],"borderRadius":[1,"border-radius"],"z":[1],"margin":[1],"padding":[1],"visible":[1],"text":[1],"type":[1],"value":[1],"tabIndex":[2,"tab-index"],"x":[1],"y":[1],"fontColor":[1,"font-color"],"onCorrect":[1,"on-correct"],"onInCorrect":[1,"on-in-correct"],"onEntry":[1,"on-entry"],"previousFilledSlot":[32],"previousFilledSlotElement":[32],"style":[32]}],[4,"lido-pos",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"style":[32]}],[4,"lido-random",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1]}],[4,"lido-row",{"showSpeakIcon":[4,"show-speak-icon"],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"direction":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"display":[1],"margin":[1],"disableSpeak":[4,"disable-speak"],"style":[32]}],[0,"lido-shape",{"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"shapeType":[1,"shape-type"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"style":[32]}],[0,"lido-slide-fill",{"id":[1],"width":[1],"height":[1],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"visible":[8],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"fill":[1],"numberType":[1,"number-type"],"min":[2],"division":[2],"max":[2],"slider":[4],"src":[1],"fillDirection":[1,"fill-direction"],"type":[1],"onEntry":[1,"on-entry"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"svgContent":[32],"style":[32]},null,{"src":["onSrcChange"],"fill":["onPropChange"],"division":["onPropChange"],"fillDirection":["onPropChange"],"numberType":["onPropChange"],"min":["onPropChange"],"max":["onPropChange"]}],[0,"lido-trace",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"svgSource":[1,"svg-source"],"value":[1],"height":[1],"width":[1],"audio":[1],"x":[1],"y":[1],"z":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"tabIndex":[2,"tab-index"],"mode":[1],"fingerHintUrl":[1,"finger-hint-url"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"highlightTextId":[1,"highlight-text-id"],"animationTrace":[4,"animation-trace"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"svgUrls":[32],"audioUrls":[32],"currentSvgIndex":[32],"moving":[32],"style":[32],"fileIndex":[32],"isDragging":[32],"activePointerId":[32],"freeTraceUpdateCounter":[32],"idleTimer":[32],"fingerImg":[32]},null,{"svgSource":["initializeSVG"],"mode":["initializeSVG"]}],[4,"lido-wrap",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[4],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"flex":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"disableSpeak":[4,"disable-speak"],"style":[32]}],[4,"lido-cell",{"showSpeakIcon":[4,"show-speak-icon"],"scrollbarWidth":[1,"scrollbar-width"],"id":[1],"value":[1],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"gap":[1],"bgColor":[1,"bg-color"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[1],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"onEntry":[1,"on-entry"],"childElementsLength":[2,"child-elements-length"],"minLength":[2,"min-length"],"maxLength":[2,"max-length"],"layout":[1],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"margin":[1],"padding":[1],"alignItems":[1,"align-items"],"borderRadius":[1,"border-radius"],"flexDirection":[1,"flex-direction"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"style":[32]}],[0,"lido-text",{"showSpeakIcon":[4,"show-speak-icon"],"id":[1],"value":[1],"string":[1],"fontFamily":[1,"font-family"],"fontSize":[1,"font-size"],"fontColor":[1,"font-color"],"highlightWhileSpeaking":[4,"highlight-while-speaking"],"height":[1],"width":[1],"ariaLabel":[1,"aria-label"],"ariaHidden":[1,"aria-hidden"],"x":[1],"y":[1],"z":[1],"bgColor":[1,"bg-color"],"borderImage":[1,"border-image"],"type":[1],"tabIndex":[2,"tab-index"],"visible":[8],"audio":[1],"onTouch":[1,"on-touch"],"onInCorrect":[1,"on-in-correct"],"onCorrect":[1,"on-correct"],"minDrops":[2,"min-drops"],"maxDrops":[2,"max-drops"],"onEntry":[1,"on-entry"],"margin":[1],"padding":[1],"borderRadius":[1,"border-radius"],"spanType":[1,"span-type"],"delayVisible":[1,"delay-visible"],"disableSpeak":[4,"disable-speak"],"style":[32]}]]]]'),e))));
|