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.
Files changed (110) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/lido-avatar_22.cjs.entry.js +70 -28
  3. package/dist/cjs/lido-player.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-28faa755.js → utils-b13cba29.js} +130 -64
  6. package/dist/collection/components/container/lido-container.js +21 -18
  7. package/dist/collection/components/home/lido-home.js +4 -4
  8. package/dist/collection/components/root/lido-root.js +5 -5
  9. package/dist/collection/components/text/lido-text.js +3 -2
  10. package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
  11. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +16 -15
  12. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +9 -7
  13. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +8 -6
  14. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +4 -3
  15. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +3 -2
  16. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +32 -19
  17. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +5 -5
  18. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +10 -7
  19. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +11 -8
  20. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +18 -14
  21. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +9 -9
  22. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +17 -10
  23. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +98 -0
  24. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +8 -8
  25. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +16 -19
  26. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +21 -18
  27. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +26 -19
  28. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +9 -9
  29. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +9 -9
  30. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +15 -15
  31. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +11 -11
  32. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +63 -0
  33. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +7 -7
  34. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +13 -13
  35. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +7 -7
  36. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +1 -1
  37. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +6 -5
  38. package/dist/collection/utils/audioPlayer.js +10 -0
  39. package/dist/collection/utils/customEvents.js +2 -1
  40. package/dist/collection/utils/i18n.js +2 -0
  41. package/dist/collection/utils/utils.js +8 -12
  42. package/dist/collection/utils/utilsHandlers/clickHandler.js +20 -14
  43. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +26 -52
  44. package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +4 -5
  45. package/dist/collection/utils/utilsHandlers/timer.js +53 -0
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/lido-avatar.js +1 -1
  48. package/dist/components/lido-balance.js +1 -1
  49. package/dist/components/lido-calculator.js +1 -1
  50. package/dist/components/lido-canvas.js +1 -1
  51. package/dist/components/lido-cell.js +1 -1
  52. package/dist/components/lido-col.js +1 -1
  53. package/dist/components/lido-container.js +1 -1
  54. package/dist/components/lido-flash-card.js +1 -1
  55. package/dist/components/lido-float.js +1 -1
  56. package/dist/components/lido-home.js +1 -1
  57. package/dist/components/lido-image.js +1 -1
  58. package/dist/components/lido-keyboard.js +1 -1
  59. package/dist/components/lido-math-matrix.js +1 -1
  60. package/dist/components/lido-pos.js +1 -1
  61. package/dist/components/lido-random.js +1 -1
  62. package/dist/components/lido-root.js +27 -27
  63. package/dist/components/lido-row.js +1 -1
  64. package/dist/components/lido-shape.js +1 -1
  65. package/dist/components/lido-slide-fill.js +1 -1
  66. package/dist/components/lido-text.js +1 -1
  67. package/dist/components/lido-trace.js +1 -1
  68. package/dist/components/lido-wrap.js +1 -1
  69. package/dist/components/{p-74c270d2.js → p-21938b85.js} +2 -2
  70. package/dist/components/{p-a182c9a2.js → p-39767aae.js} +1 -1
  71. package/dist/components/{p-3acd9a2e.js → p-3db5a756.js} +1 -1
  72. package/dist/components/{p-93acfbb2.js → p-40dd6fa3.js} +1 -1
  73. package/dist/components/{p-5e7c6afa.js → p-552f581f.js} +1 -1
  74. package/dist/components/{p-37c86a94.js → p-5a3a7f41.js} +47 -7
  75. package/dist/components/{p-b151457d.js → p-5da9c4a0.js} +22 -20
  76. package/dist/components/{p-3acada8c.js → p-64b85ae6.js} +1 -1
  77. package/dist/components/{p-4d01394c.js → p-6c1ea24d.js} +1 -1
  78. package/dist/components/{p-b867548e.js → p-7256917d.js} +1 -1
  79. package/dist/components/{p-8a32f7cb.js → p-777293d6.js} +1 -1
  80. package/dist/components/{p-8c0667eb.js → p-85eaa0b7.js} +1 -1
  81. package/dist/components/{p-8f082c62.js → p-8f174468.js} +1 -1
  82. package/dist/components/{p-235091a1.js → p-bd09bc5b.js} +130 -65
  83. package/dist/components/{p-32c89979.js → p-bf0c1e81.js} +1 -1
  84. package/dist/components/{p-c90d92db.js → p-cdb5b0e6.js} +1 -1
  85. package/dist/components/{p-db2a05f5.js → p-d0d890d8.js} +3 -3
  86. package/dist/components/{p-57400ebc.js → p-d2d6e641.js} +1 -1
  87. package/dist/components/{p-354f7b19.js → p-da85322a.js} +2 -2
  88. package/dist/components/{p-16604098.js → p-e42ddea5.js} +1 -1
  89. package/dist/components/{p-06cecca5.js → p-f4c980f0.js} +1 -1
  90. package/dist/components/{p-de45dcab.js → p-fb9e274c.js} +25 -25
  91. package/dist/esm/index.js +1 -1
  92. package/dist/esm/lido-avatar_22.entry.js +70 -28
  93. package/dist/esm/lido-player.js +1 -1
  94. package/dist/esm/loader.js +1 -1
  95. package/dist/esm/{utils-2edeb213.js → utils-b7ed15c2.js} +130 -65
  96. package/dist/lido-player/index.esm.js +1 -1
  97. package/dist/lido-player/lido-player.esm.js +1 -1
  98. package/dist/lido-player/{p-add7f36e.js → p-1557f3df.js} +2 -2
  99. package/dist/lido-player/p-7e79ea93.entry.js +1 -0
  100. package/dist/types/components/container/lido-container.d.ts +1 -1
  101. package/dist/types/components/home/lido-home.d.ts +1 -1
  102. package/dist/types/components/root/lido-root.d.ts +1 -1
  103. package/dist/types/components.d.ts +24 -24
  104. package/dist/types/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.d.ts +4 -0
  105. package/dist/types/stories/Templates/sentenceMatch/sentenceMatch.stories.d.ts +4 -0
  106. package/dist/types/utils/audioPlayer.d.ts +1 -0
  107. package/dist/types/utils/constants.d.ts +4 -5
  108. package/dist/types/utils/utilsHandlers/timer.d.ts +14 -0
  109. package/package.json +1 -1
  110. 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 0;
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 = Number((_c = (_a = balanceEl.leftVal) !== null && _a !== void 0 ? _a : (_b = balanceEl.dataset) === null || _b === void 0 ? void 0 : _b.leftVal) !== null && _c !== void 0 ? _c : 0);
1602
- const rightVal = Number((_f = (_d = balanceEl.rightVal) !== null && _d !== void 0 ? _d : (_e = balanceEl.dataset) === null || _e === void 0 ? void 0 : _e.rightVal) !== null && _f !== void 0 ? _f : 0);
1603
- const hasLeft = !isNaN(leftVal);
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.tagName.toLowerCase() === 'lido-text') ;
1877
- if (otherElement.tagName.toLowerCase() === 'lido-image') {
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.tagName.toLowerCase() === 'lido-text') ;
1884
- if (otherElement.tagName.toLowerCase() === 'lido-image' || 'lido-cell') {
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.tagName.toLowerCase() === 'lido-text') ;
1928
- else if (otherElement.tagName.toLowerCase() === 'lido-image') {
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.tagName.toLowerCase() === 'lido-text') ;
1938
- if (otherElement.tagName.toLowerCase() === 'lido-image' || 'lido-cell') {
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
- if (otherElement.tagName.toLowerCase() === 'lido-image') {
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.tagName.toLowerCase() === 'lido-text') ;
2126
- if (otherElement.tagName.toLowerCase() === 'lido-image') {
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
- const dropTabIndex = dropElement.getAttribute('tab-index');
2147
- const isAllowOnlyOneDrop = dropElement.getAttribute('is-allow-only-one-drop') === 'false';
2148
- if (((_b = dropHasDrag[dropTabIndex]) === null || _b === void 0 ? void 0 : _b.isFull) && !isAllowOnlyOneDrop) {
2149
- handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
2150
- return;
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.tagName.toLowerCase() === 'lido-text') ;
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.tagName.toLowerCase() === 'lido-text') ;
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));
@@ -4621,9 +4681,9 @@ function onTouchListenerForOnTouch(element) {
4621
4681
  return;
4622
4682
  const container = document.getElementById('lido-container');
4623
4683
  // const container = element.closest('lido-container') as HTMLElement;
4624
- if (container && container.getAttribute('disable-speak') === 'true') {
4625
- return;
4626
- }
4684
+ // if (container && container.getAttribute('disable-speak') === 'true') {
4685
+ // return;
4686
+ // }
4627
4687
  // if (element.closest('[disableSpeak="true"]')) {
4628
4688
  // return;
4629
4689
  // }
@@ -4632,6 +4692,9 @@ function onTouchListenerForOnTouch(element) {
4632
4692
  let onholdTriggered = false;
4633
4693
  const onholdTime = 1000;
4634
4694
  const playAudio = async () => {
4695
+ if (container && container.getAttribute('disable-speak') === 'true') {
4696
+ return;
4697
+ }
4635
4698
  onholdTriggered = true;
4636
4699
  setDraggingDisabled(true);
4637
4700
  await AudioPlayer.getI().play(element);
@@ -4672,6 +4735,7 @@ function addClickListenerForClickType(element) {
4672
4735
  }
4673
4736
  const onClick = async () => {
4674
4737
  var _a;
4738
+ const container = document.getElementById(LidoContainer);
4675
4739
  const lido_buttons = element.getAttribute('id');
4676
4740
  if (lido_buttons === 'lido-arrow-left' || lido_buttons === 'lido-arrow-right') {
4677
4741
  return;
@@ -4681,7 +4745,6 @@ function addClickListenerForClickType(element) {
4681
4745
  if (hasValidAudio) {
4682
4746
  AudioPlayer.getI().stop();
4683
4747
  }
4684
- const container = document.getElementById(LidoContainer);
4685
4748
  const objective = container['objective'].split(',');
4686
4749
  const checkButton = document.querySelector('#lido-checkButton');
4687
4750
  const showCheck = container.getAttribute('show-check') === 'true';
@@ -4698,12 +4761,13 @@ function addClickListenerForClickType(element) {
4698
4761
  container.setAttribute(SelectedValuesKey, JSON.stringify([element['value']]));
4699
4762
  const isCorrect = objective.includes(element['value']);
4700
4763
  dispatchClickEvent(element, isCorrect);
4701
- if (isCorrect) {
4764
+ if (isCorrect || container.getAttribute('is-continue-on-correct') === 'false') {
4702
4765
  const onCorrect = element.getAttribute('onCorrect');
4703
- if (!(element.id && element.id.startsWith('key-button'))) {
4704
- element.style.pointerEvents = 'none';
4705
- }
4706
- document.body.style.pointerEvents = 'none';
4766
+ // if(!(element.id && element.id.startsWith('key-button')))
4767
+ // {
4768
+ // // element.style.pointerEvents = 'none';
4769
+ // }
4770
+ // document.body.style.pointerEvents = 'none';
4707
4771
  await executeActions(onCorrect, element);
4708
4772
  }
4709
4773
  else {
@@ -4712,12 +4776,14 @@ function addClickListenerForClickType(element) {
4712
4776
  // showWrongAnswerAnimation([element]);
4713
4777
  }
4714
4778
  // const calciEl=document.querySelector('#lidoCalculator') as any;
4715
- const isInsideCalculator = element.closest('#lidoCalculator') !== null;
4716
- if (!isInsideCalculator) {
4717
- storingEachActivityScore(isCorrect);
4718
- }
4779
+ // const isInsideCalculator = element.closest('#lidoCalculator') !== null;
4780
+ // if(!isInsideCalculator){
4781
+ // storingEachActivityScore(isCorrect);
4782
+ // }
4719
4783
  highlightElement();
4720
- handleShowCheck();
4784
+ if (!container.getAttribute("click-completed")) {
4785
+ handleShowCheck();
4786
+ }
4721
4787
  return;
4722
4788
  }
4723
4789
  if (showCheck) {
@@ -70159,6 +70225,7 @@ const executeActions = async (actionsString, thisElement, element) => {
70159
70225
  const container = document.getElementById(LidoContainer);
70160
70226
  if (container.getAttribute('is-continue-on-correct') !== 'true') {
70161
70227
  targetElement.style.pointerEvents = 'none';
70228
+ AudioPlayer.getI().stop();
70162
70229
  }
70163
70230
  await validateObjectiveStatus();
70164
70231
  break;
@@ -70326,7 +70393,7 @@ const executeActions = async (actionsString, thisElement, element) => {
70326
70393
  }
70327
70394
  }
70328
70395
  }
70329
- body.style.pointerEvents = 'auto';
70396
+ // body.style.pointerEvents = 'auto';
70330
70397
  };
70331
70398
  const afterDropDragHandling = (dragElement, dropElement) => {
70332
70399
  const container = document.getElementById(LidoContainer);
@@ -70390,7 +70457,7 @@ const afterDropDragHandling = (dragElement, dropElement) => {
70390
70457
  const scaledLeft = (dropCenterX - dragCenterX) / containerScale;
70391
70458
  const scaledTop = (dropCenterY - dragCenterY) / containerScale;
70392
70459
  dragElement.style.transform = `translate(${scaledLeft}px, ${scaledTop}px)`;
70393
- }, 100);
70460
+ }, 700);
70394
70461
  }
70395
70462
  };
70396
70463
  // function cloneElementWithComputedStyles(originalEl: HTMLElement): HTMLElement {
@@ -70574,18 +70641,14 @@ async function onActivityComplete(dragElement, dropElement) {
70574
70641
  const storedTabIndexes = Object.keys(dragScore).map(Number);
70575
70642
  if (storedTabIndexes.includes(JSON.parse(otherElement.getAttribute('tab-index')))) {
70576
70643
  if (!(((_a = otherElement.getAttribute('dropAttr')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === DropMode.Diagonal)) {
70577
- if (otherElement.tagName.toLowerCase() === 'lido-text') ;
70578
- if (otherElement.tagName.toLowerCase() === 'lido-image') {
70579
- otherElement.style.opacity = '0';
70580
- otherElement.style.backgroundColor = 'transparent';
70644
+ if (otherElement) {
70645
+ otherElement.style.opacity = "0";
70581
70646
  }
70582
70647
  }
70583
70648
  }
70584
70649
  else {
70585
- if (otherElement.tagName.toLowerCase() === 'lido-text') ;
70586
- if (otherElement.tagName.toLowerCase() === 'lido-image') {
70650
+ if (otherElement.tagName.toLowerCase() === 'lido-text') {
70587
70651
  otherElement.style.opacity = '1';
70588
- otherElement.style.backgroundColor = 'transparent';
70589
70652
  }
70590
70653
  }
70591
70654
  });
@@ -70618,6 +70681,7 @@ const storeActivityScore = (score) => {
70618
70681
  const handleShowCheck = () => {
70619
70682
  var _a, _b;
70620
70683
  const container = document.getElementById(LidoContainer);
70684
+ container.setAttribute("click-completed", "true");
70621
70685
  const objectiveString = container['objective'];
70622
70686
  const selectValues = (_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '';
70623
70687
  const checkButton = document.querySelector('#lido-checkButton');
@@ -70645,7 +70709,6 @@ const handleShowCheck = () => {
70645
70709
  validateObjectiveStatus();
70646
70710
  }
70647
70711
  };
70648
- const body = document.body;
70649
70712
  let res;
70650
70713
  const validateObjectiveStatus = async () => {
70651
70714
  var _a, _b;
@@ -70711,6 +70774,7 @@ const validateObjectiveStatus = async () => {
70711
70774
  const onCorrect = container.getAttribute('onCorrect');
70712
70775
  if (!isContinueOnCorrect) {
70713
70776
  await calculateScore();
70777
+ storingEachActivityScore(false);
70714
70778
  await executeActions(onCorrect, container);
70715
70779
  triggerNextContainer();
70716
70780
  }
@@ -70718,6 +70782,7 @@ const validateObjectiveStatus = async () => {
70718
70782
  const onInCorrect = container.getAttribute('onInCorrect');
70719
70783
  storingEachActivityScore(false);
70720
70784
  await executeActions(onInCorrect, container);
70785
+ container.removeAttribute("click-completed");
70721
70786
  }
70722
70787
  }
70723
70788
  };
@@ -71376,4 +71441,4 @@ const updateCalculatorAnswer = (el) => {
71376
71441
  el.setAttribute('string', value);
71377
71442
  };
71378
71443
 
71379
- export { TraceMode as $, ActivityScoreKey as A, dispatchGameCompletedEvent as B, dispatchGameExitEvent as C, AudioPlayer as D, generateUUIDFallback as E, exitUrl as F, prevUrl as G, H, nextUrl as I, speakUrl as J, LidoContainer as K, LIDO_COMMON_AUDIO_READY_EVENT as L, getCancelBtnPopup as M, NextContainerKey as N, matchStringPattern as O, PrevContainerKey as P, triggerNextContainer as Q, RiveService as R, SelectedValuesKey as S, TemplateID as T, triggerPrevcontainer as U, setCancelBtnPopup as V, getDefaultExportFromCjs as W, tinyColor as X, DropAction as Y, validateObjectiveStatus as Z, fraction as _, setNonce as a, speakIcon as a0, fingerUrl as a1, 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, handleFloatElementPosition as x, handleElementClick as y, dispatchActivityChangeEvent as z };
71444
+ 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, $ as TraceMode, e as convertUrlToRelative, d as setVisibilityWithDelay, a0 as speakIcon, n as storingEachActivityScore, o as executeActions, q as calculateScore, Q as triggerNextContainer, K as LidoContainer, k as parseProp, h, j as Host, a1 as fingerUrl } from './p-235091a1.js';
1
+ import { p as proxyCustomElement, H, a0 as TraceMode, e as convertUrlToRelative, d as setVisibilityWithDelay, a1 as speakIcon, n as storingEachActivityScore, o as executeActions, q as calculateScore, U as triggerNextContainer, M as LidoContainer, k as parseProp, h, j as Host, a2 as fingerUrl } from './p-bd09bc5b.js';
2
2
 
3
3
  const lidoTraceCss = ":host{display:block;position:relative}#lido-svgContainer{display:flex;justify-content:center;align-items:center;overflow:hidden}svg{width:100%;height:100%;touch-action:none}#lido-draggableCircle{cursor:pointer;fill:#CF1565;transition:fill 0.2s, r 0.2s}.lido-blindTracing{stroke:none !important}.lido-blindFreeTrace{stroke:none !important}.lido-hovered{cursor:grab;fill:darkred}#lido-controls{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;padding:10px;background-color:#f0f0f0;border-top:1px solid #ccc}button{padding:10px;font-size:16px}@media (max-width: 600px){button{padding:8px;font-size:14px}}.lido-trace-path-green{}.lido-flow-indicator{stroke:blue;stroke-width:2;stroke-dasharray:6, 6;fill:none}.lido-trace{height:700px;width:700px;z-index:1;justify-items:center;align-content:center}.trace-animate{animation:trace-bounce 0.5s}@keyframes trace-bounce{0%{transform:scale(1)}30%{transform:scale(1.05)}60%{transform:scale(0.95)}100%{transform:scale(1)}}";
4
4
  const LidoTraceStyle0 = lidoTraceCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-235091a1.js';
1
+ import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-bd09bc5b.js';
2
2
 
3
3
  const lidoPosCss = ".lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}";
4
4
  const LidoPosStyle0 = lidoPosCss;
@@ -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-235091a1.js';
2
- import { d as defineCustomElement$2 } from './p-3acada8c.js';
3
- import { d as defineCustomElement$1 } from './p-37c86a94.js';
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-bd09bc5b.js';
2
+ import { d as defineCustomElement$2 } from './p-64b85ae6.js';
3
+ import { d as defineCustomElement$1 } from './p-5a3a7f41.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, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-235091a1.js';
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-bd09bc5b.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, k as parseProp, h, j as Host } from './p-235091a1.js';
2
- import { d as defineCustomElement$1 } from './p-37c86a94.js';
1
+ import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-bd09bc5b.js';
2
+ import { d as defineCustomElement$1 } from './p-5a3a7f41.js';
3
3
 
4
4
  const lidoCanvasCss = ":host{display:flex;justify-content:center;align-items:center}.lido-canvas{background:red;border:2px solid #ccc;border-radius:8px;display:flex;flex-direction:column;overflow:hidden;position:relative}#lido-exit-button{padding:6px 14px;border:none;background:transparent;color:#fff;border-radius:6px;cursor:pointer;font-size:14px;position:relative;top:-43%;left:18%;z-index:10}canvas{touch-action:none;display:block}";
5
5
  const LidoCanvasStyle0 = lidoCanvasCss;
@@ -1,4 +1,4 @@
1
- import { c as commonjsGlobal, W as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, X as tinyColor, t as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-235091a1.js';
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-bd09bc5b.js';
2
2
 
3
3
  var lib = {exports: {}};
4
4
 
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-235091a1.js';
1
+ import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-bd09bc5b.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;
@@ -1,24 +1,24 @@
1
- import { p as proxyCustomElement, H, z as dispatchActivityChangeEvent, A as ActivityScoreKey, B as dispatchGameCompletedEvent, C as dispatchGameExitEvent, D as AudioPlayer, E as generateUUIDFallback, F as exitUrl, G as prevUrl, I as nextUrl, J as speakUrl, N as NextContainerKey, P as PrevContainerKey, u as LIDO_COMMON_AUDIO_PATH, K as LidoContainer, h, T as TemplateID, o as executeActions, M as getCancelBtnPopup, S as SelectedValuesKey, O as matchStringPattern, Q as triggerNextContainer, v as calculateScale, U as triggerPrevcontainer, j as Host, e as convertUrlToRelative, V as setCancelBtnPopup } from './p-235091a1.js';
2
- import { d as defineCustomElement$3, i as instance } from './p-37c86a94.js';
3
- import { d as defineCustomElement$k } from './p-4d01394c.js';
4
- import { d as defineCustomElement$j } from './p-06cecca5.js';
5
- import { d as defineCustomElement$i } from './p-db2a05f5.js';
6
- import { d as defineCustomElement$h } from './p-354f7b19.js';
7
- import { d as defineCustomElement$g } from './p-3acada8c.js';
8
- import { d as defineCustomElement$f } from './p-57400ebc.js';
9
- import { d as defineCustomElement$e } from './p-b151457d.js';
10
- import { d as defineCustomElement$d } from './p-8f082c62.js';
11
- import { d as defineCustomElement$c } from './p-b867548e.js';
12
- import { d as defineCustomElement$b } from './p-16604098.js';
13
- import { d as defineCustomElement$a } from './p-74c270d2.js';
14
- import { d as defineCustomElement$9 } from './p-93acfbb2.js';
15
- import { d as defineCustomElement$8 } from './p-c90d92db.js';
16
- import { d as defineCustomElement$7 } from './p-8c0667eb.js';
17
- import { d as defineCustomElement$6 } from './p-3acd9a2e.js';
18
- import { d as defineCustomElement$5 } from './p-8a32f7cb.js';
19
- import { d as defineCustomElement$4 } from './p-a182c9a2.js';
20
- import { d as defineCustomElement$2 } from './p-32c89979.js';
21
- import { d as defineCustomElement$1 } from './p-5e7c6afa.js';
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-bd09bc5b.js';
2
+ import { d as defineCustomElement$3, i as instance } from './p-5a3a7f41.js';
3
+ import { d as defineCustomElement$k } from './p-6c1ea24d.js';
4
+ import { d as defineCustomElement$j } from './p-f4c980f0.js';
5
+ import { d as defineCustomElement$i } from './p-d0d890d8.js';
6
+ import { d as defineCustomElement$h } from './p-da85322a.js';
7
+ import { d as defineCustomElement$g } from './p-64b85ae6.js';
8
+ import { d as defineCustomElement$f } from './p-d2d6e641.js';
9
+ import { d as defineCustomElement$e } from './p-5da9c4a0.js';
10
+ import { d as defineCustomElement$d } from './p-8f174468.js';
11
+ import { d as defineCustomElement$c } from './p-7256917d.js';
12
+ import { d as defineCustomElement$b } from './p-e42ddea5.js';
13
+ import { d as defineCustomElement$a } from './p-21938b85.js';
14
+ import { d as defineCustomElement$9 } from './p-40dd6fa3.js';
15
+ import { d as defineCustomElement$8 } from './p-cdb5b0e6.js';
16
+ import { d as defineCustomElement$7 } from './p-85eaa0b7.js';
17
+ import { d as defineCustomElement$6 } from './p-3db5a756.js';
18
+ import { d as defineCustomElement$5 } from './p-777293d6.js';
19
+ import { d as defineCustomElement$4 } from './p-39767aae.js';
20
+ import { d as defineCustomElement$2 } from './p-bf0c1e81.js';
21
+ import { d as defineCustomElement$1 } from './p-552f581f.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.locale = '';
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
- "locale": ["onLangChange"],
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
- "locale": [1],
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
- "locale": ["onLangChange"],
529
+ "Lang": ["onLangChange"],
530
530
  "commonAudioPath": ["onCommonAudioPathChange"],
531
531
  "xmlData": ["onXmlDataChange"]
532
532
  }]);
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { f as format } from './utils-2edeb213.js';
1
+ export { f as format } from './utils-b7ed15c2.js';
2
2
  import './index-37c2ad2d.js';