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
|
@@ -1420,6 +1420,60 @@ const nextUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/publ
|
|
|
1420
1420
|
const speakUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/audio.png';
|
|
1421
1421
|
const fingerUrl = 'https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Tracing-hand.svg';
|
|
1422
1422
|
|
|
1423
|
+
class Timer {
|
|
1424
|
+
constructor() {
|
|
1425
|
+
this.startTime = 0;
|
|
1426
|
+
this.elapsedTime = 0;
|
|
1427
|
+
this.intervalId = null;
|
|
1428
|
+
}
|
|
1429
|
+
static getI(onTick) {
|
|
1430
|
+
if (!Timer.instance) {
|
|
1431
|
+
Timer.instance = new Timer();
|
|
1432
|
+
}
|
|
1433
|
+
if (onTick) {
|
|
1434
|
+
Timer.instance.onTick = onTick;
|
|
1435
|
+
}
|
|
1436
|
+
return Timer.instance;
|
|
1437
|
+
}
|
|
1438
|
+
start() {
|
|
1439
|
+
if (this.intervalId)
|
|
1440
|
+
return;
|
|
1441
|
+
this.startTime = Date.now() - this.elapsedTime;
|
|
1442
|
+
this.intervalId = window.setInterval(() => {
|
|
1443
|
+
var _a;
|
|
1444
|
+
this.elapsedTime = Date.now() - this.startTime;
|
|
1445
|
+
(_a = this.onTick) === null || _a === void 0 ? void 0 : _a.call(this, this.elapsedTime);
|
|
1446
|
+
}, 1000);
|
|
1447
|
+
}
|
|
1448
|
+
pause() {
|
|
1449
|
+
if (!this.intervalId)
|
|
1450
|
+
return;
|
|
1451
|
+
clearInterval(this.intervalId);
|
|
1452
|
+
this.intervalId = null;
|
|
1453
|
+
this.elapsedTime = Date.now() - this.startTime;
|
|
1454
|
+
}
|
|
1455
|
+
resume() {
|
|
1456
|
+
if (this.intervalId)
|
|
1457
|
+
return;
|
|
1458
|
+
this.start();
|
|
1459
|
+
}
|
|
1460
|
+
stop() {
|
|
1461
|
+
var _a;
|
|
1462
|
+
if (this.intervalId) {
|
|
1463
|
+
clearInterval(this.intervalId);
|
|
1464
|
+
this.intervalId = null;
|
|
1465
|
+
}
|
|
1466
|
+
this.startTime = 0;
|
|
1467
|
+
this.elapsedTime = 0;
|
|
1468
|
+
(_a = this.onTick) === null || _a === void 0 ? void 0 : _a.call(this, 0);
|
|
1469
|
+
}
|
|
1470
|
+
getElapsed() {
|
|
1471
|
+
return this.intervalId
|
|
1472
|
+
? Date.now() - this.startTime
|
|
1473
|
+
: this.elapsedTime;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1423
1477
|
function dispatchCustomEvent(eventName, detail) {
|
|
1424
1478
|
console.log("👍Event Name : ", eventName, "Detail : ", detail.toString());
|
|
1425
1479
|
const event = new CustomEvent(eventName, { detail });
|
|
@@ -1429,7 +1483,7 @@ function dispatchActivityEndEvent(index, totalIndex, score) {
|
|
|
1429
1483
|
dispatchCustomEvent(ActivityEndKey, { index, totalIndex, score });
|
|
1430
1484
|
}
|
|
1431
1485
|
function dispatchLessonEndEvent(score) {
|
|
1432
|
-
dispatchCustomEvent(LessonEndKey, { score });
|
|
1486
|
+
dispatchCustomEvent(LessonEndKey, { score, timeSpent: Math.floor(Timer.getI().getElapsed() / 1000) });
|
|
1433
1487
|
}
|
|
1434
1488
|
function dispatchNextContainerEvent() {
|
|
1435
1489
|
dispatchCustomEvent(NextContainerKey, {});
|
|
@@ -1559,7 +1613,7 @@ function updateBalanceOnDrop(dragElement, dropElement) {
|
|
|
1559
1613
|
}
|
|
1560
1614
|
function calculateValue(elements, operation) {
|
|
1561
1615
|
if (elements.length === 0)
|
|
1562
|
-
return
|
|
1616
|
+
return null;
|
|
1563
1617
|
if (operation === "count") {
|
|
1564
1618
|
return elements.length;
|
|
1565
1619
|
}
|
|
@@ -1591,18 +1645,15 @@ function calculateValue(elements, operation) {
|
|
|
1591
1645
|
}
|
|
1592
1646
|
}
|
|
1593
1647
|
function balanceResult(container, objectiveString) {
|
|
1594
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1595
1648
|
const additionalCheck = container.getAttribute('equationCheck');
|
|
1596
1649
|
if (!additionalCheck)
|
|
1597
1650
|
return false;
|
|
1598
1651
|
const balanceEl = document.querySelector('lido-balance');
|
|
1599
1652
|
if (!balanceEl)
|
|
1600
1653
|
return false;
|
|
1601
|
-
const leftVal =
|
|
1602
|
-
const rightVal =
|
|
1603
|
-
|
|
1604
|
-
const hasRight = !isNaN(rightVal);
|
|
1605
|
-
if (!hasLeft || !hasRight) {
|
|
1654
|
+
const leftVal = balanceEl.leftVal;
|
|
1655
|
+
const rightVal = balanceEl.rightVal;
|
|
1656
|
+
if (leftVal == null || rightVal == null) {
|
|
1606
1657
|
return false;
|
|
1607
1658
|
}
|
|
1608
1659
|
const symbol = leftVal > rightVal ? '>' : leftVal < rightVal ? '<' : '=';
|
|
@@ -1730,6 +1781,7 @@ function enableDraggingWithScaling(element) {
|
|
|
1730
1781
|
handlingElementFlexibleWidth(element, 'drag');
|
|
1731
1782
|
const onStart = (event) => {
|
|
1732
1783
|
var _a, _b;
|
|
1784
|
+
console.log("moving start");
|
|
1733
1785
|
if (isDraggingDisabled) {
|
|
1734
1786
|
isDragging = false;
|
|
1735
1787
|
return;
|
|
@@ -1873,22 +1925,24 @@ function enableDraggingWithScaling(element) {
|
|
|
1873
1925
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
1874
1926
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
1875
1927
|
if (!(((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
1876
|
-
if (otherElement
|
|
1877
|
-
|
|
1878
|
-
otherElement.style.opacity = '0';
|
|
1928
|
+
if (otherElement) {
|
|
1929
|
+
otherElement.style.opacity = "0.3";
|
|
1879
1930
|
}
|
|
1880
1931
|
}
|
|
1881
1932
|
}
|
|
1882
1933
|
else {
|
|
1883
|
-
if (otherElement
|
|
1884
|
-
|
|
1885
|
-
otherElement.style.opacity = '1';
|
|
1934
|
+
if (otherElement) {
|
|
1935
|
+
otherElement.style.opacity = "1";
|
|
1886
1936
|
}
|
|
1887
1937
|
}
|
|
1888
1938
|
});
|
|
1889
1939
|
// Apply styles only to the most overlapped element
|
|
1890
1940
|
if (mostOverlappedElement) {
|
|
1891
|
-
if (mostOverlappedElement.tagName.toLowerCase() === 'lido-text')
|
|
1941
|
+
if (mostOverlappedElement.tagName.toLowerCase() === 'lido-text') {
|
|
1942
|
+
// mostOverlappedElement.style.border = '2px dashed #ff0000'; // Red dashed border
|
|
1943
|
+
// mostOverlappedElement.style.backgroundColor = 'rgba(255, 0, 0, 0.1)'; // Light red background
|
|
1944
|
+
mostOverlappedElement.style.opacity = "0.3";
|
|
1945
|
+
}
|
|
1892
1946
|
else {
|
|
1893
1947
|
if (!document.getElementById('unitsDrop') || !document.getElementById('tensDrop') || !document.getElementById('hundredsDrop')) {
|
|
1894
1948
|
mostOverlappedElement.style.opacity = '0.3';
|
|
@@ -1924,9 +1978,8 @@ function enableDraggingWithScaling(element) {
|
|
|
1924
1978
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
1925
1979
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
1926
1980
|
if (!(((_a = element.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
1927
|
-
if (otherElement
|
|
1928
|
-
|
|
1929
|
-
otherElement.style.opacity = '0';
|
|
1981
|
+
if (otherElement) {
|
|
1982
|
+
otherElement.style.opacity = "0";
|
|
1930
1983
|
}
|
|
1931
1984
|
else {
|
|
1932
1985
|
otherElement.style.opacity = '1';
|
|
@@ -1934,9 +1987,8 @@ function enableDraggingWithScaling(element) {
|
|
|
1934
1987
|
}
|
|
1935
1988
|
}
|
|
1936
1989
|
else {
|
|
1937
|
-
if (otherElement
|
|
1938
|
-
|
|
1939
|
-
otherElement.style.opacity = '1';
|
|
1990
|
+
if (otherElement) {
|
|
1991
|
+
otherElement.style.opacity = "1";
|
|
1940
1992
|
}
|
|
1941
1993
|
}
|
|
1942
1994
|
});
|
|
@@ -1987,6 +2039,7 @@ function enableDraggingWithScaling(element) {
|
|
|
1987
2039
|
element.addEventListener('touchstart', onStart);
|
|
1988
2040
|
element.addEventListener('click', ev => {
|
|
1989
2041
|
if (isClicked) {
|
|
2042
|
+
console.log("clicked drag elkement");
|
|
1990
2043
|
onClickDropOrDragElement(element, 'drag');
|
|
1991
2044
|
}
|
|
1992
2045
|
});
|
|
@@ -2114,18 +2167,14 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
|
|
|
2114
2167
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
2115
2168
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
2116
2169
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
2117
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
2118
|
-
|
|
2119
|
-
otherElement.style.opacity = '0';
|
|
2120
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
2170
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') {
|
|
2171
|
+
otherElement.style.opacity = "0";
|
|
2121
2172
|
}
|
|
2122
2173
|
}
|
|
2123
2174
|
}
|
|
2124
2175
|
else {
|
|
2125
|
-
if (otherElement
|
|
2126
|
-
|
|
2127
|
-
otherElement.style.opacity = '1';
|
|
2128
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
2176
|
+
if (otherElement) {
|
|
2177
|
+
otherElement.style.opacity = "1";
|
|
2129
2178
|
}
|
|
2130
2179
|
}
|
|
2131
2180
|
});
|
|
@@ -2143,11 +2192,14 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
2143
2192
|
if (!dropElement) {
|
|
2144
2193
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
|
|
2145
2194
|
}
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2195
|
+
let dropTabIndex;
|
|
2196
|
+
if (dropElement) {
|
|
2197
|
+
dropTabIndex = dropElement.getAttribute('tab-index');
|
|
2198
|
+
const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'false';
|
|
2199
|
+
if (((_b = dropHasDrag[dropTabIndex]) === null || _b === void 0 ? void 0 : _b.isFull) && !isAllowOnlyOneDrop) {
|
|
2200
|
+
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
|
|
2201
|
+
return;
|
|
2202
|
+
}
|
|
2151
2203
|
}
|
|
2152
2204
|
const isAllowOnlyCorrect = container.getAttribute('is-allow-only-correct') === 'true';
|
|
2153
2205
|
if (isAllowOnlyCorrect) {
|
|
@@ -2180,7 +2232,6 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
2180
2232
|
dragElement.style.transition = 'transform 0.5s ease';
|
|
2181
2233
|
animateDragToTarget(dragElement, dropElement, container);
|
|
2182
2234
|
const onInCorrect = dropElement.getAttribute('onInCorrect');
|
|
2183
|
-
console.log("onincorrectttt", onInCorrect);
|
|
2184
2235
|
await executeActions(onInCorrect, dropElement, dragElement);
|
|
2185
2236
|
setTimeout(() => {
|
|
2186
2237
|
dragElement.style.transform = 'translate(0, 0)';
|
|
@@ -2287,15 +2338,13 @@ async function onElementDropComplete(dragElement, dropElement) {
|
|
|
2287
2338
|
const storedTabIndexes = Object.keys(dropObject).map(Number);
|
|
2288
2339
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
2289
2340
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
2290
|
-
if (otherElement
|
|
2291
|
-
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
2341
|
+
if (otherElement) {
|
|
2292
2342
|
otherElement.style.opacity = '0';
|
|
2293
2343
|
}
|
|
2294
2344
|
}
|
|
2295
2345
|
}
|
|
2296
2346
|
else {
|
|
2297
|
-
if (otherElement
|
|
2298
|
-
if (otherElement.tagName.toLowerCase() === 'lido-image' || 'lido-cell') {
|
|
2347
|
+
if (otherElement) {
|
|
2299
2348
|
otherElement.style.opacity = '1';
|
|
2300
2349
|
}
|
|
2301
2350
|
}
|
|
@@ -2421,8 +2470,9 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
2421
2470
|
element.ariaPressed = 'true';
|
|
2422
2471
|
const selectedDropElement = type === 'drop' ? element : document.querySelector("[type='drop'].highlight-element");
|
|
2423
2472
|
const selectedDragElement = type === 'drag' ? element : document.querySelector("[type='drag'].highlight-element");
|
|
2424
|
-
if (!selectedDropElement) {
|
|
2473
|
+
if (!selectedDropElement || element.classList.contains("dropped")) {
|
|
2425
2474
|
onClickDragElement(element);
|
|
2475
|
+
return;
|
|
2426
2476
|
}
|
|
2427
2477
|
if (selectedDropElement && selectedDragElement) {
|
|
2428
2478
|
if (selectedDragElement.getAttribute('drop-to'))
|
|
@@ -2635,6 +2685,9 @@ function highlightElement() {
|
|
|
2635
2685
|
|
|
2636
2686
|
class AudioPlayer {
|
|
2637
2687
|
constructor() {
|
|
2688
|
+
this.handleUserClick = () => {
|
|
2689
|
+
this.stop();
|
|
2690
|
+
};
|
|
2638
2691
|
this.audioElement = document.createElement('audio');
|
|
2639
2692
|
this.audioElement.id = 'audio';
|
|
2640
2693
|
document.body.appendChild(this.audioElement);
|
|
@@ -2671,6 +2724,10 @@ class AudioPlayer {
|
|
|
2671
2724
|
catch (e) {
|
|
2672
2725
|
console.error('Error stopping audio before speak action:', e);
|
|
2673
2726
|
}
|
|
2727
|
+
const text = targetElement.closest('lido-text');
|
|
2728
|
+
if (text && text.getAttribute('disable-speak') === 'true') {
|
|
2729
|
+
return;
|
|
2730
|
+
}
|
|
2674
2731
|
// then play the target element audio.
|
|
2675
2732
|
let audioUrl = targetElement.getAttribute('audio') || '';
|
|
2676
2733
|
// If no direct audio attribute, check childrens for audio
|
|
@@ -2691,6 +2748,7 @@ class AudioPlayer {
|
|
|
2691
2748
|
try {
|
|
2692
2749
|
setDraggingDisabled(true);
|
|
2693
2750
|
highlightSpeakingElement(targetElement);
|
|
2751
|
+
window.addEventListener('click', this.handleUserClick, true);
|
|
2694
2752
|
await this.audioElement.play();
|
|
2695
2753
|
await new Promise(resolve => {
|
|
2696
2754
|
this.audioElement.onended = () => {
|
|
@@ -2702,6 +2760,7 @@ class AudioPlayer {
|
|
|
2702
2760
|
console.log('🎧 Audio play error:', error);
|
|
2703
2761
|
}
|
|
2704
2762
|
finally {
|
|
2763
|
+
window.removeEventListener('click', this.handleUserClick, true);
|
|
2705
2764
|
this.audioElement.onended = null; // cleanup
|
|
2706
2765
|
setDraggingDisabled(false);
|
|
2707
2766
|
stopHighlightForSpeakingElement(targetElement);
|
|
@@ -2711,6 +2770,7 @@ class AudioPlayer {
|
|
|
2711
2770
|
else if (targetElement.textContent) {
|
|
2712
2771
|
try {
|
|
2713
2772
|
highlightSpeakingElement(targetElement);
|
|
2773
|
+
window.addEventListener('click', this.handleUserClick, true);
|
|
2714
2774
|
await speakText(targetElement.textContent, targetElement);
|
|
2715
2775
|
const highlightedElements = document.querySelectorAll('.speaking-highlight');
|
|
2716
2776
|
highlightedElements.forEach(element => stopHighlightForSpeakingElement(element));
|
|
@@ -4638,7 +4698,7 @@ function onTouchListenerForOnTouch(element) {
|
|
|
4638
4698
|
setDraggingDisabled(false);
|
|
4639
4699
|
};
|
|
4640
4700
|
const onPointerDown = (event) => {
|
|
4641
|
-
event.stopPropagation();
|
|
4701
|
+
// event.stopPropagation();
|
|
4642
4702
|
onholdTriggered = false;
|
|
4643
4703
|
onholdTimer = setTimeout(() => {
|
|
4644
4704
|
playAudio();
|
|
@@ -4646,13 +4706,18 @@ function onTouchListenerForOnTouch(element) {
|
|
|
4646
4706
|
};
|
|
4647
4707
|
const onPointerUp = async (event) => {
|
|
4648
4708
|
clearTimeout(onholdTimer);
|
|
4649
|
-
|
|
4709
|
+
// If long-press happened → do nothing else
|
|
4710
|
+
if (onholdTriggered) {
|
|
4711
|
+
setDraggingDisabled(false);
|
|
4712
|
+
return;
|
|
4713
|
+
}
|
|
4714
|
+
// If an onTouch action is defined, execute it on tap.
|
|
4715
|
+
if (onTouch) {
|
|
4650
4716
|
await executeActions(onTouch, element);
|
|
4651
4717
|
}
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
}
|
|
4718
|
+
const type = element.getAttribute('type') || '';
|
|
4719
|
+
if (['category', 'option', 'click'].includes(type)) {
|
|
4720
|
+
element.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true }));
|
|
4656
4721
|
}
|
|
4657
4722
|
setDraggingDisabled(false);
|
|
4658
4723
|
};
|
|
@@ -4698,7 +4763,7 @@ function addClickListenerForClickType(element) {
|
|
|
4698
4763
|
container.setAttribute(SelectedValuesKey, JSON.stringify([element['value']]));
|
|
4699
4764
|
const isCorrect = objective.includes(element['value']);
|
|
4700
4765
|
dispatchClickEvent(element, isCorrect);
|
|
4701
|
-
if (isCorrect) {
|
|
4766
|
+
if (isCorrect || container.getAttribute('is-continue-on-correct') === 'false') {
|
|
4702
4767
|
const onCorrect = element.getAttribute('onCorrect');
|
|
4703
4768
|
if (!(element.id && element.id.startsWith('key-button'))) {
|
|
4704
4769
|
element.style.pointerEvents = 'none';
|
|
@@ -70159,6 +70224,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
70159
70224
|
const container = document.getElementById(LidoContainer);
|
|
70160
70225
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
70161
70226
|
targetElement.style.pointerEvents = 'none';
|
|
70227
|
+
AudioPlayer.getI().stop();
|
|
70162
70228
|
}
|
|
70163
70229
|
await validateObjectiveStatus();
|
|
70164
70230
|
break;
|
|
@@ -70390,7 +70456,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
|
|
|
70390
70456
|
const scaledLeft = (dropCenterX - dragCenterX) / containerScale;
|
|
70391
70457
|
const scaledTop = (dropCenterY - dragCenterY) / containerScale;
|
|
70392
70458
|
dragElement.style.transform = `translate(${scaledLeft}px, ${scaledTop}px)`;
|
|
70393
|
-
},
|
|
70459
|
+
}, 700);
|
|
70394
70460
|
}
|
|
70395
70461
|
};
|
|
70396
70462
|
// function cloneElementWithComputedStyles(originalEl: HTMLElement): HTMLElement {
|
|
@@ -70574,18 +70640,14 @@ async function onActivityComplete(dragElement, dropElement) {
|
|
|
70574
70640
|
const storedTabIndexes = Object.keys(dragScore).map(Number);
|
|
70575
70641
|
if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
|
|
70576
70642
|
if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
|
|
70577
|
-
if (otherElement
|
|
70578
|
-
|
|
70579
|
-
otherElement.style.opacity = '0';
|
|
70580
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
70643
|
+
if (otherElement) {
|
|
70644
|
+
otherElement.style.opacity = "0";
|
|
70581
70645
|
}
|
|
70582
70646
|
}
|
|
70583
70647
|
}
|
|
70584
70648
|
else {
|
|
70585
|
-
if (otherElement.tagName.toLowerCase() === 'lido-text')
|
|
70586
|
-
if (otherElement.tagName.toLowerCase() === 'lido-image') {
|
|
70649
|
+
if (otherElement.tagName.toLowerCase() === 'lido-text') {
|
|
70587
70650
|
otherElement.style.opacity = '1';
|
|
70588
|
-
otherElement.style.backgroundColor = 'transparent';
|
|
70589
70651
|
}
|
|
70590
70652
|
}
|
|
70591
70653
|
});
|
|
@@ -71376,4 +71438,4 @@ const updateCalculatorAnswer = (el) => {
|
|
|
71376
71438
|
el.setAttribute('string', value);
|
|
71377
71439
|
};
|
|
71378
71440
|
|
|
71379
|
-
export {
|
|
71441
|
+
export { fraction as $, dispatchActivityChangeEvent as A, ActivityScoreKey as B, dispatchGameCompletedEvent as C, dispatchGameExitEvent as D, AudioPlayer as E, generateUUIDFallback as F, exitUrl as G, H, prevUrl as I, nextUrl as J, speakUrl as K, LIDO_COMMON_AUDIO_READY_EVENT as L, LidoContainer as M, NextContainerKey as N, getCancelBtnPopup as O, PrevContainerKey as P, matchStringPattern as Q, RiveService as R, SelectedValuesKey as S, TemplateID as T, triggerNextContainer as U, triggerPrevcontainer as V, setCancelBtnPopup as W, getDefaultExportFromCjs as X, tinyColor as Y, DropAction as Z, validateObjectiveStatus as _, setNonce as a, TraceMode as a0, speakIcon as a1, fingerUrl as a2, setPlatformOptions as b, commonjsGlobal as c, setVisibilityWithDelay as d, convertUrlToRelative as e, format as f, getAssetPath$1 as g, h, initEventsForElement as i, Host as j, parseProp as k, createEvent as l, equationCheck as m, storingEachActivityScore as n, executeActions as o, proxyCustomElement as p, calculateScore as q, handlingChildElements as r, setAssetPath as s, attachSpeakIcon as t, LIDO_COMMON_AUDIO_PATH as u, calculateScale as v, highlightElement as w, Timer as x, handleFloatElementPosition as y, handleElementClick as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
const lidoColCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}";
|
|
4
4
|
const LidoColStyle0 = lidoColCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, S as SelectedValuesKey,
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, S as SelectedValuesKey, M as LidoContainer, o as executeActions, U as triggerNextContainer, y as handleFloatElementPosition, n as storingEachActivityScore, Z as DropAction, k as parseProp, h, j as Host } from './p-40afd35f.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-e4b71ba1.js';
|
|
3
3
|
|
|
4
4
|
const lidoKeyboardCss = ".lido-keyboard{display:flex;flex-direction:column;align-items:center;gap:30px}.input-area{display:flex;gap:15px}input[type=\"text\"]{font-size:30px;font-weight:600;padding-left:20px;width:300px;height:70px;border:2px solid;background:whitesmoke;border-radius:20px;text-align:center}.keyboard-wrapper{justify-content:center;width:700px}.disabled{opacity:0.5;pointer-events:none}.key-button{background:aquamarine;font-weight:600}";
|
|
5
5
|
const LidoKeyboardStyle0 = lidoKeyboardCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
const lidoWrapCss = ".lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;background-color:var(--child-bg-color, #f0f0f0);box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}";
|
|
4
4
|
const LidoWrapStyle0 = lidoWrapCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
const lidoRowCss = ".lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}";
|
|
4
4
|
const LidoRowStyle0 = lidoRowCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal,
|
|
1
|
+
import { c as commonjsGlobal, X as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, Y as tinyColor, t as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
var lib = {exports: {}};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-
|
|
1
|
+
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
var rive = {exports: {}};
|
|
4
4
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { d as defineCustomElement$3, i as instance } from './p-
|
|
3
|
-
import { d as defineCustomElement$k } from './p-
|
|
4
|
-
import { d as defineCustomElement$j } from './p-
|
|
5
|
-
import { d as defineCustomElement$i } from './p-
|
|
6
|
-
import { d as defineCustomElement$h } from './p-
|
|
7
|
-
import { d as defineCustomElement$g } from './p-
|
|
8
|
-
import { d as defineCustomElement$f } from './p-
|
|
9
|
-
import { d as defineCustomElement$e } from './p-
|
|
10
|
-
import { d as defineCustomElement$d } from './p-
|
|
11
|
-
import { d as defineCustomElement$c } from './p-
|
|
12
|
-
import { d as defineCustomElement$b } from './p-
|
|
13
|
-
import { d as defineCustomElement$a } from './p-
|
|
14
|
-
import { d as defineCustomElement$9 } from './p-
|
|
15
|
-
import { d as defineCustomElement$8 } from './p-
|
|
16
|
-
import { d as defineCustomElement$7 } from './p-
|
|
17
|
-
import { d as defineCustomElement$6 } from './p-
|
|
18
|
-
import { d as defineCustomElement$5 } from './p-
|
|
19
|
-
import { d as defineCustomElement$4 } from './p-
|
|
20
|
-
import { d as defineCustomElement$2 } from './p-
|
|
21
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, A as dispatchActivityChangeEvent, B as ActivityScoreKey, C as dispatchGameCompletedEvent, D as dispatchGameExitEvent, E as AudioPlayer, F as generateUUIDFallback, G as exitUrl, I as prevUrl, J as nextUrl, K as speakUrl, N as NextContainerKey, P as PrevContainerKey, u as LIDO_COMMON_AUDIO_PATH, M as LidoContainer, h, T as TemplateID, o as executeActions, O as getCancelBtnPopup, S as SelectedValuesKey, Q as matchStringPattern, U as triggerNextContainer, v as calculateScale, V as triggerPrevcontainer, j as Host, e as convertUrlToRelative, W as setCancelBtnPopup } from './p-40afd35f.js';
|
|
2
|
+
import { d as defineCustomElement$3, i as instance } from './p-e4b71ba1.js';
|
|
3
|
+
import { d as defineCustomElement$k } from './p-76947363.js';
|
|
4
|
+
import { d as defineCustomElement$j } from './p-dfa70e99.js';
|
|
5
|
+
import { d as defineCustomElement$i } from './p-97ca067d.js';
|
|
6
|
+
import { d as defineCustomElement$h } from './p-0f54f212.js';
|
|
7
|
+
import { d as defineCustomElement$g } from './p-16a6a6f6.js';
|
|
8
|
+
import { d as defineCustomElement$f } from './p-4a1af1bb.js';
|
|
9
|
+
import { d as defineCustomElement$e } from './p-27bfb88f.js';
|
|
10
|
+
import { d as defineCustomElement$d } from './p-2fedf56d.js';
|
|
11
|
+
import { d as defineCustomElement$c } from './p-df6042b0.js';
|
|
12
|
+
import { d as defineCustomElement$b } from './p-6bee9883.js';
|
|
13
|
+
import { d as defineCustomElement$a } from './p-4c1d15df.js';
|
|
14
|
+
import { d as defineCustomElement$9 } from './p-2b0ef6d4.js';
|
|
15
|
+
import { d as defineCustomElement$8 } from './p-2ce1503f.js';
|
|
16
|
+
import { d as defineCustomElement$7 } from './p-d28496a9.js';
|
|
17
|
+
import { d as defineCustomElement$6 } from './p-572f8490.js';
|
|
18
|
+
import { d as defineCustomElement$5 } from './p-be063cbd.js';
|
|
19
|
+
import { d as defineCustomElement$4 } from './p-3c9dd098.js';
|
|
20
|
+
import { d as defineCustomElement$2 } from './p-f241ab97.js';
|
|
21
|
+
import { d as defineCustomElement$1 } from './p-4ec94e44.js';
|
|
22
22
|
|
|
23
23
|
const indexCss = "@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap'); body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/template/audioIcon.png\");background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}";
|
|
24
24
|
const LidoHomeStyle0 = indexCss;
|
|
@@ -130,7 +130,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
130
130
|
this.commonAudioPath = "";
|
|
131
131
|
this.showNav = true;
|
|
132
132
|
this.activeContainerIndexes = [];
|
|
133
|
-
this.
|
|
133
|
+
this.Lang = '';
|
|
134
134
|
this.xmlData = '';
|
|
135
135
|
this.initialIndex = 0;
|
|
136
136
|
this.canplay = true;
|
|
@@ -499,7 +499,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
499
499
|
}
|
|
500
500
|
get el() { return this; }
|
|
501
501
|
static get watchers() { return {
|
|
502
|
-
"
|
|
502
|
+
"Lang": ["onLangChange"],
|
|
503
503
|
"commonAudioPath": ["onCommonAudioPathChange"],
|
|
504
504
|
"xmlData": ["onXmlDataChange"]
|
|
505
505
|
}; }
|
|
@@ -508,7 +508,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
508
508
|
"commonAudioPath": [1, "common-audio-path"],
|
|
509
509
|
"showNav": [4, "show-nav"],
|
|
510
510
|
"activeContainerIndexes": [16],
|
|
511
|
-
"
|
|
511
|
+
"Lang": [1, "lang"],
|
|
512
512
|
"xmlData": [1, "xml-data"],
|
|
513
513
|
"initialIndex": [2, "initial-index"],
|
|
514
514
|
"canplay": [4],
|
|
@@ -526,7 +526,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
526
526
|
"containers": [32],
|
|
527
527
|
"showDotsandbtn": [32]
|
|
528
528
|
}, undefined, {
|
|
529
|
-
"
|
|
529
|
+
"Lang": ["onLangChange"],
|
|
530
530
|
"commonAudioPath": ["onCommonAudioPathChange"],
|
|
531
531
|
"xmlData": ["onXmlDataChange"]
|
|
532
532
|
}]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, q as calculateScore, N as NextContainerKey, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, q as calculateScore, N as NextContainerKey, h, j as Host } from './p-40afd35f.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-16a6a6f6.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-e4b71ba1.js';
|
|
4
4
|
|
|
5
5
|
const lidoCalculatorCss = "#lidoCalculator{border-radius:19px;border:5px solid #029A9A;position:relative;display:flex;flex-direction:column;padding:2%;box-sizing:border-box}.lido-calculator-btn-special{background-color:#014D4D !important;--btn-shadow-color:#0a2f2f !important}.lido-calculator-btn-default{background-color:#029A9A !important;color:#000;--btn-shadow-color:#0f4242 !important}#lido-calculator-penIcon{--btn-bg-color:#FB7038 !important;--btn-shadow-px:0 8px 0 !important;--btn-shadow-color:#D74B12 !important;border-radius:5px !important}.lido-calculator-displayParent{width:89%;height:107px;background-color:rgb(68, 186, 186);border-radius:5px;margin:14px auto 17px auto;overflow:hidden;display:flex;align-items:end}.lido-calculator-display{width:97%;height:94px;background:#029A9A;color:#fff;text-align:right;display:flex;justify-content:flex-end;align-items:center;font-size:72px;font-weight:700;font-family:'Baloo Bhai 2', serif;border-radius:5px 0px 0px 5px;box-sizing:border-box;margin:0 0px -6px auto}.lido-calculator-buttons{flex:1;display:grid;grid-template-columns:repeat(3, 1fr);grid-auto-rows:1fr;gap:0%;width:100%;justify-items:center;align-items:center;position:relative;top:-1%}.lido-calculator-buttons lido-text{display:flex !important;justify-content:center;align-items:center;width:96px !important;height:80px !important;font-size:72px !important;font-weight:700 !important;color:#fff;border-radius:5px !important;cursor:pointer;text-align:center;line-height:1;box-sizing:border-box;transition:transform 0.1s}.lido-calculator-buttons lido-text:active{transform:scale(0.95)}";
|
|
6
6
|
const LidoCalculatorStyle0 = lidoCalculatorCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, h, j as Host } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
const lidoShapeCss = ".lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z);justify-content:center;align-items:center}.lido-rectangle{border-radius:0}.lido-circle{width:var(--width);height:var(--width);border-radius:50%;background-color:var(--bgColor)}.lido-ellipse{width:var(--width);height:var(--height);border-radius:50%;background-color:var(--bgColor)}.lido-triangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(50% 0%, 100% 100%, 0% 100%)}.lido-rightTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(100% 0%, 100% 100%, 0% 100%)}.lido-leftTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--triangleBgColor);clip-path:polygon(0% 0%, 100% 100%, 0% 100%)}.lido-parallelogram{width:var(--paralleWidth);height:var(--paralleHeight);transform:skew(20deg)}.lido-trapezoid{width:var(--trapezoidWidth);height:var(--trapezoidHeight);background-color:var(--bgColor);clip-path:polygon(\r\n 20% 0%, \r\n 80% 0%, \r\n 100% 100%,\r\n 0% 100% \r\n )}.lido-hexagon{width:var(--hexagonWidth);height:var(--hexagonHeight);background-color:var(--bgColor);clip-path:polygon(\r\n 25% 0%, \r\n 75% 0%, \r\n 100% 50%, \r\n 75% 100%, \r\n 25% 100%, \r\n 0% 50% \r\n )}.lido-cone{width:var(--coneWidth);height:var(--coneHeight);background-color:var(--bgColor);clip-path:polygon(\r\n \r\n 15% 10%,\r\n 25% 4%,\r\n 35% 1%,\r\n 50% 0%,\r\n 65% 1%,\r\n 75% 4%,\r\n 85% 10%,\r\n\r\n \r\n 50% 100%\r\n )}.lido-star{width:var(--starWidth);height:var(--starHeight);background-color:var(--starBgColor);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.lido-pentagon{width:var(--pentagonWidth);height:var(--pentagonHeight);background-color:var(--pentagonBgColor);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.lido-heptagon{width:var(--heptagonWidth);height:var(--heptagonHeight);background-color:var(--heptagonBgColor);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.lido-octagon{width:var(--octagonWidth);height:var(--octagonHeight);background-color:var(--octagonBgColor);clip-path:polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%)}.lido-rhombus{width:var(--rhombusWidth);height:var(--rhombusHeight);background-color:var(--rhombusBgColor);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.lido-heart{height:var(--heartHeight);width:var(--heartWidth);border-image:radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;clip-path:polygon(-41% 0, 50% 91%, 141% 0)}.cube{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateX(-20deg) rotateY(45deg)}.face{position:absolute;width:var(--face-width,150px);height:var(--face-width,150px);background:var(--face-bg-color,150px);box-shadow:inset -20px -20px 40px rgba(0,0,0,0.3)}.front{transform:rotateY( 0deg) translateZ(var(--face-translate, 75px))}.back{transform:rotateY(180deg) translateZ(var(--face-translate, 75px))}.right{transform:rotateY( 90deg) translateZ(var(--face-translate, 75px))}.left{transform:rotateY(-90deg) translateZ(var(--face-translate, 75px))}.top{transform:rotateX( 90deg) translateZ(var(--face-translate, 75px))}.bottom{transform:rotateX(-90deg) translateZ(var(--face-translate, 75px))}.lido-cylinder{width:var(--width);height:var(--height);border-radius:100% / 80px;background:radial-gradient(50% 40px at 50% 40px, #0003 99.99%, #0000 0),\r\n radial-gradient(50% 40px at 50% calc(100% - 40px), #fff3 99.99%, #0000 0),\r\n red}";
|
|
4
4
|
const LidoShapeStyle0 = lidoShapeCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, t as attachSpeakIcon, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, t as attachSpeakIcon, h, j as Host } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
const lidoRandomCss = ".lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}";
|
|
4
4
|
const LidoRandomStyle0 = lidoRandomCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement,
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, y as handleFloatElementPosition, z as handleElementClick, k as parseProp, h, j as Host } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
const lidoFloatCss = ".lido-float{position:relative}.lido-float>*{position:absolute;cursor:pointer}@keyframes float-up{from{top:var(--el-top)}to{top:-500px}}#removeShadow{box-shadow:unset !important}@keyframes float-lr{from{right:var(--el-left)}to{right:-500px}}";
|
|
4
4
|
const LidoFloatStyle0 = lidoFloatCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-40afd35f.js';
|
|
2
2
|
|
|
3
3
|
const lidoBalanceCss = "#lido-balance{position:relative;height:500px;width:1205px;top:20%;left:-91px;z-index:0}.lido-balance-symbol{position:absolute;top:64%;left:50%;transform:translate(-50%, -50%);font-size:5vw;font-weight:bold;color:black;pointer-events:none;z-index:999}@media (orientation: portrait){.lido-balance-shadow{height:100px;position:absolute;top:80%;left:28%}}@media (orientation: landscape){.lido-balance-shadow{height:100px;position:absolute;top:90%;left:33%}}@media (orientation: portrait){#pivotimg{position:absolute;height:auto;width:23%;bottom:18%;left:38%;z-index:100}}#pivotimg::after{content:\"\";position:absolute;bottom:-30px;left:50%;transform:translateX(-50%);width:120%;height:60px;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Shadow.svg\");background-size:contain;background-repeat:no-repeat;background-position:center;pointer-events:none;z-index:10}@media (orientation: landscape){#pivotimg{position:absolute;height:auto;width:23%;bottom:8%;left:38%;z-index:100}}.lido-balance .pivot svg{width:100%;height:auto}#scaleimg{position:absolute;width:73%;height:auto;top:61%;left:14%;z-index:90}.lido-balance .scale svg{width:100%;height:auto}@media (orientation: landscape){#handlerimg{position:absolute;width:35%;height:auto;top:49%;left:2%}}@media (orientation:portrait ){#handlerimg{position:absolute;width:35%;height:auto;top:53%;left:2%}}.lido-balance .handler svg{width:100%;height:auto;fill:brown}@media (orientation: landscape){#handimg{position:absolute;width:35%;height:auto;top:49%;right:2%}}@media (orientation:portrait){#handimg{position:absolute;width:35%;height:auto;top:53%;right:2%}}.lido-balance .hand svg{width:100%;height:auto;fill:brown}.pivot svg path:nth-of-type(1){fill:brown}.pivot svg path[d^=\"M78.9414\"]{fill:white}";
|
|
4
4
|
const LidoBalanceStyle0 = lidoBalanceCss;
|