lido-player 0.0.2-alpha-60-dev → 0.0.2-alpha-62
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-b13cba29.js} +130 -64
- 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 +4 -3
- package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +3 -2
- package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +32 -19
- 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 +11 -8
- package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +18 -14
- package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +9 -9
- package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +17 -10
- package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +98 -0
- package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +8 -8
- 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 +21 -18
- package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +26 -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 +15 -15
- package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +11 -11
- 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 +8 -12
- package/dist/collection/utils/utilsHandlers/clickHandler.js +20 -14
- 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-74c270d2.js → p-21938b85.js} +2 -2
- package/dist/components/{p-a182c9a2.js → p-39767aae.js} +1 -1
- package/dist/components/{p-3acd9a2e.js → p-3db5a756.js} +1 -1
- package/dist/components/{p-93acfbb2.js → p-40dd6fa3.js} +1 -1
- package/dist/components/{p-5e7c6afa.js → p-552f581f.js} +1 -1
- package/dist/components/{p-37c86a94.js → p-5a3a7f41.js} +47 -7
- package/dist/components/{p-b151457d.js → p-5da9c4a0.js} +22 -20
- package/dist/components/{p-3acada8c.js → p-64b85ae6.js} +1 -1
- package/dist/components/{p-4d01394c.js → p-6c1ea24d.js} +1 -1
- package/dist/components/{p-b867548e.js → p-7256917d.js} +1 -1
- package/dist/components/{p-8a32f7cb.js → p-777293d6.js} +1 -1
- package/dist/components/{p-8c0667eb.js → p-85eaa0b7.js} +1 -1
- package/dist/components/{p-8f082c62.js → p-8f174468.js} +1 -1
- package/dist/components/{p-235091a1.js → p-bd09bc5b.js} +130 -65
- package/dist/components/{p-32c89979.js → p-bf0c1e81.js} +1 -1
- package/dist/components/{p-c90d92db.js → p-cdb5b0e6.js} +1 -1
- package/dist/components/{p-db2a05f5.js → p-d0d890d8.js} +3 -3
- package/dist/components/{p-57400ebc.js → p-d2d6e641.js} +1 -1
- package/dist/components/{p-354f7b19.js → p-da85322a.js} +2 -2
- package/dist/components/{p-16604098.js → p-e42ddea5.js} +1 -1
- package/dist/components/{p-06cecca5.js → p-f4c980f0.js} +1 -1
- package/dist/components/{p-de45dcab.js → p-fb9e274c.js} +25 -25
- 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-b7ed15c2.js} +130 -65
- 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-1557f3df.js} +2 -2
- package/dist/lido-player/p-7e79ea93.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));
|
|
@@ -3180,9 +3240,9 @@ function onTouchListenerForOnTouch(element) {
|
|
|
3180
3240
|
return;
|
|
3181
3241
|
const container = document.getElementById('lido-container');
|
|
3182
3242
|
// const container = element.closest('lido-container') as HTMLElement;
|
|
3183
|
-
if (container && container.getAttribute('disable-speak') === 'true') {
|
|
3184
|
-
|
|
3185
|
-
}
|
|
3243
|
+
// if (container && container.getAttribute('disable-speak') === 'true') {
|
|
3244
|
+
// return;
|
|
3245
|
+
// }
|
|
3186
3246
|
// if (element.closest('[disableSpeak="true"]')) {
|
|
3187
3247
|
// return;
|
|
3188
3248
|
// }
|
|
@@ -3191,6 +3251,9 @@ function onTouchListenerForOnTouch(element) {
|
|
|
3191
3251
|
let onholdTriggered = false;
|
|
3192
3252
|
const onholdTime = 1000;
|
|
3193
3253
|
const playAudio = async () => {
|
|
3254
|
+
if (container && container.getAttribute('disable-speak') === 'true') {
|
|
3255
|
+
return;
|
|
3256
|
+
}
|
|
3194
3257
|
onholdTriggered = true;
|
|
3195
3258
|
setDraggingDisabled(true);
|
|
3196
3259
|
await AudioPlayer.getI().play(element);
|
|
@@ -3231,6 +3294,7 @@ function addClickListenerForClickType(element) {
|
|
|
3231
3294
|
}
|
|
3232
3295
|
const onClick = async () => {
|
|
3233
3296
|
var _a;
|
|
3297
|
+
const container = document.getElementById(LidoContainer);
|
|
3234
3298
|
const lido_buttons = element.getAttribute('id');
|
|
3235
3299
|
if (lido_buttons === 'lido-arrow-left' || lido_buttons === 'lido-arrow-right') {
|
|
3236
3300
|
return;
|
|
@@ -3240,7 +3304,6 @@ function addClickListenerForClickType(element) {
|
|
|
3240
3304
|
if (hasValidAudio) {
|
|
3241
3305
|
AudioPlayer.getI().stop();
|
|
3242
3306
|
}
|
|
3243
|
-
const container = document.getElementById(LidoContainer);
|
|
3244
3307
|
const objective = container['objective'].split(',');
|
|
3245
3308
|
const checkButton = document.querySelector('#lido-checkButton');
|
|
3246
3309
|
const showCheck = container.getAttribute('show-check') === 'true';
|
|
@@ -3257,12 +3320,13 @@ function addClickListenerForClickType(element) {
|
|
|
3257
3320
|
container.setAttribute(SelectedValuesKey, JSON.stringify([element['value']]));
|
|
3258
3321
|
const isCorrect = objective.includes(element['value']);
|
|
3259
3322
|
dispatchClickEvent(element, isCorrect);
|
|
3260
|
-
if (isCorrect) {
|
|
3323
|
+
if (isCorrect || container.getAttribute('is-continue-on-correct') === 'false') {
|
|
3261
3324
|
const onCorrect = element.getAttribute('onCorrect');
|
|
3262
|
-
if
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3325
|
+
// if(!(element.id && element.id.startsWith('key-button')))
|
|
3326
|
+
// {
|
|
3327
|
+
// // element.style.pointerEvents = 'none';
|
|
3328
|
+
// }
|
|
3329
|
+
// document.body.style.pointerEvents = 'none';
|
|
3266
3330
|
await executeActions(onCorrect, element);
|
|
3267
3331
|
}
|
|
3268
3332
|
else {
|
|
@@ -3271,12 +3335,14 @@ function addClickListenerForClickType(element) {
|
|
|
3271
3335
|
// showWrongAnswerAnimation([element]);
|
|
3272
3336
|
}
|
|
3273
3337
|
// const calciEl=document.querySelector('#lidoCalculator') as any;
|
|
3274
|
-
const isInsideCalculator = element.closest('#lidoCalculator') !== null;
|
|
3275
|
-
if
|
|
3276
|
-
|
|
3277
|
-
}
|
|
3338
|
+
// const isInsideCalculator = element.closest('#lidoCalculator') !== null;
|
|
3339
|
+
// if(!isInsideCalculator){
|
|
3340
|
+
// storingEachActivityScore(isCorrect);
|
|
3341
|
+
// }
|
|
3278
3342
|
highlightElement();
|
|
3279
|
-
|
|
3343
|
+
if (!container.getAttribute("click-completed")) {
|
|
3344
|
+
handleShowCheck();
|
|
3345
|
+
}
|
|
3280
3346
|
return;
|
|
3281
3347
|
}
|
|
3282
3348
|
if (showCheck) {
|
|
@@ -68718,6 +68784,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68718
68784
|
const container = document.getElementById(LidoContainer);
|
|
68719
68785
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
68720
68786
|
targetElement.style.pointerEvents = 'none';
|
|
68787
|
+
AudioPlayer.getI().stop();
|
|
68721
68788
|
}
|
|
68722
68789
|
await validateObjectiveStatus();
|
|
68723
68790
|
break;
|
|
@@ -68885,7 +68952,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
68885
68952
|
}
|
|
68886
68953
|
}
|
|
68887
68954
|
}
|
|
68888
|
-
body.style.pointerEvents = 'auto';
|
|
68955
|
+
// body.style.pointerEvents = 'auto';
|
|
68889
68956
|
};
|
|
68890
68957
|
const afterDropDragHandling = (dragElement, dropElement) => {
|
|
68891
68958
|
const container = document.getElementById(LidoContainer);
|
|
@@ -68949,7 +69016,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
68949
69016
|
const scaledLeft = (dropCenterX - dragCenterX) / containerScale;
|
|
68950
69017
|
const scaledTop = (dropCenterY - dragCenterY) / containerScale;
|
|
68951
69018
|
dragElement.style.transform = `translate(${scaledLeft}px, ${scaledTop}px)`;
|
|
68952
|
-
},
|
|
69019
|
+
}, 700);
|
|
68953
69020
|
}
|
|
68954
69021
|
};
|
|
68955
69022
|
// function cloneElementWithComputedStyles(originalEl: HTMLElement): HTMLElement {
|
|
@@ -69133,18 +69200,14 @@ async function onActivityComplete(dragElement, dropElement) {
|
|
|
69133
69200
|
const storedTabIndexes = Object.keys(dragScore).map(Number);
|
|
69134
69201
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
69135
69202
|
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';
|
|
69203
|
+
if (otherElement) {
|
|
69204
|
+
otherElement.style.opacity = "0";
|
|
69140
69205
|
}
|
|
69141
69206
|
}
|
|
69142
69207
|
}
|
|
69143
69208
|
else {
|
|
69144
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
69145
|
-
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
69209
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') {
|
|
69146
69210
|
otherElement.style.opacity = '1';
|
|
69147
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
69148
69211
|
}
|
|
69149
69212
|
}
|
|
69150
69213
|
});
|
|
@@ -69177,6 +69240,7 @@ const storeActivityScore = (score) => {
|
|
|
69177
69240
|
const handleShowCheck = () => {
|
|
69178
69241
|
var _a, _b;
|
|
69179
69242
|
const container = document.getElementById(LidoContainer);
|
|
69243
|
+
container.setAttribute("click-completed", "true");
|
|
69180
69244
|
const objectiveString = container['objective'];
|
|
69181
69245
|
const selectValues = (_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '';
|
|
69182
69246
|
const checkButton = document.querySelector('#lido-checkButton');
|
|
@@ -69204,7 +69268,6 @@ const handleShowCheck = () => {
|
|
|
69204
69268
|
validateObjectiveStatus();
|
|
69205
69269
|
}
|
|
69206
69270
|
};
|
|
69207
|
-
const body = document.body;
|
|
69208
69271
|
let res;
|
|
69209
69272
|
const validateObjectiveStatus = async () => {
|
|
69210
69273
|
var _a, _b;
|
|
@@ -69270,6 +69333,7 @@ const validateObjectiveStatus = async () => {
|
|
|
69270
69333
|
const onCorrect = container.getAttribute('onCorrect');
|
|
69271
69334
|
if (!isContinueOnCorrect) {
|
|
69272
69335
|
await calculateScore();
|
|
69336
|
+
storingEachActivityScore(false);
|
|
69273
69337
|
await executeActions(onCorrect, container);
|
|
69274
69338
|
triggerNextContainer();
|
|
69275
69339
|
}
|
|
@@ -69277,6 +69341,7 @@ const validateObjectiveStatus = async () => {
|
|
|
69277
69341
|
const onInCorrect = container.getAttribute('onInCorrect');
|
|
69278
69342
|
storingEachActivityScore(false);
|
|
69279
69343
|
await executeActions(onInCorrect, container);
|
|
69344
|
+
container.removeAttribute("click-completed");
|
|
69280
69345
|
}
|
|
69281
69346
|
}
|
|
69282
69347
|
};
|
|
@@ -69935,4 +70000,4 @@ const updateCalculatorAnswer = (el) => {
|
|
|
69935
70000
|
el.setAttribute('string', value);
|
|
69936
70001
|
};
|
|
69937
70002
|
|
|
69938
|
-
export { ActivityScoreKey as A,
|
|
70003
|
+
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-1557f3df.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-7e79ea93",[[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))));
|