lido-player 0.0.2-alpha-52-dev → 0.0.2-alpha-53-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/lido-avatar_22.cjs.entry.js +184 -58
  3. package/dist/cjs/lido-player.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-ce99b0d0.js → utils-3c1ce74e.js} +89 -85
  6. package/dist/collection/components/container/lido-container.js +24 -2
  7. package/dist/collection/components/home/lido-home.css +4 -0
  8. package/dist/collection/components/home/lido-home.js +27 -3
  9. package/dist/collection/components/trace/lido-trace.js +122 -47
  10. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +26 -25
  11. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +3 -1
  12. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +1 -1
  13. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +1 -1
  14. package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
  15. package/dist/collection/stories/Templates/blender/blender.stories.js +1 -1
  16. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +1 -1
  17. package/dist/collection/stories/Templates/calculator/calculator.stories.js +1 -1
  18. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +1 -1
  19. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +1 -1
  20. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +1 -1
  21. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +1 -1
  22. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +1 -1
  23. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +1 -1
  24. package/dist/collection/stories/Templates/grid/grid.stories.js +5 -1
  25. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +1 -1
  26. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +4 -2
  27. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +1 -1
  28. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +1 -1
  29. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +4 -2
  30. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +1 -1
  31. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +1 -1
  32. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
  33. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +1 -1
  34. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +1 -1
  35. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +1 -1
  36. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +2 -2
  37. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +2 -2
  38. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +1 -1
  39. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +1 -1
  40. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +1 -1
  41. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +5 -1
  42. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +1 -1
  43. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +1 -1
  44. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +1 -1
  45. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +1 -1
  46. package/dist/collection/stories/Templates/reorder/reorder.stories.js +3 -1
  47. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +2 -2
  48. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +6 -6
  49. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +7 -6
  50. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +1 -1
  51. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +25 -21
  52. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +1 -1
  53. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +8 -6
  54. package/dist/collection/stories/Templates/total/total.stories.js +1 -1
  55. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +1 -1
  56. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +2 -2
  57. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +6 -6
  58. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +1 -1
  59. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +7 -6
  60. package/dist/collection/utils/utils.js +18 -17
  61. package/dist/collection/utils/utilsHandlers/animationHandler.js +38 -0
  62. package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
  63. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +19 -58
  64. package/dist/collection/utils/utilsHandlers/slideHandler.js +7 -6
  65. package/dist/collection/utils/utilsHandlers/sortHandler.js +3 -5
  66. package/dist/components/index.js +1 -1
  67. package/dist/components/lido-avatar.js +1 -1
  68. package/dist/components/lido-balance.js +1 -1
  69. package/dist/components/lido-calculator.js +1 -1
  70. package/dist/components/lido-canvas.js +1 -1
  71. package/dist/components/lido-cell.js +1 -1
  72. package/dist/components/lido-col.js +1 -1
  73. package/dist/components/lido-container.js +1 -1
  74. package/dist/components/lido-flash-card.js +1 -1
  75. package/dist/components/lido-float.js +1 -1
  76. package/dist/components/lido-home.js +1 -1
  77. package/dist/components/lido-image.js +1 -1
  78. package/dist/components/lido-keyboard.js +1 -1
  79. package/dist/components/lido-math-matrix.js +1 -1
  80. package/dist/components/lido-pos.js +1 -1
  81. package/dist/components/lido-random.js +1 -1
  82. package/dist/components/lido-root.js +23 -23
  83. package/dist/components/lido-row.js +1 -1
  84. package/dist/components/lido-shape.js +1 -1
  85. package/dist/components/lido-slide-fill.js +1 -1
  86. package/dist/components/lido-text.js +1 -1
  87. package/dist/components/lido-trace.js +1 -1
  88. package/dist/components/lido-wrap.js +1 -1
  89. package/dist/components/{p-3ce3744c.js → p-004adc43.js} +3 -3
  90. package/dist/components/{p-b2125fc9.js → p-057fb7b8.js} +48 -24
  91. package/dist/components/{p-8f2ed62f.js → p-0733b277.js} +1 -1
  92. package/dist/components/{p-26df0769.js → p-09b3b152.js} +1 -1
  93. package/dist/components/{p-09f1e2d2.js → p-23549651.js} +1 -1
  94. package/dist/components/{p-a516a324.js → p-3e8ae1c5.js} +123 -48
  95. package/dist/components/{p-68112f8c.js → p-3f0e4436.js} +1 -1
  96. package/dist/components/{p-58c67252.js → p-511377d2.js} +89 -86
  97. package/dist/components/{p-3f4d4c0a.js → p-561908ec.js} +1 -1
  98. package/dist/components/{p-5b5f59a8.js → p-567983a9.js} +2 -2
  99. package/dist/components/{p-8a34b98b.js → p-6beee44b.js} +1 -1
  100. package/dist/components/{p-9d34d59d.js → p-71ded596.js} +2 -2
  101. package/dist/components/{p-0fbeb3a1.js → p-73e3f0f4.js} +12 -6
  102. package/dist/components/{p-06171259.js → p-875c1411.js} +1 -1
  103. package/dist/components/{p-0c2aebfb.js → p-8774f517.js} +1 -1
  104. package/dist/components/{p-a2f96840.js → p-90f7dd48.js} +1 -1
  105. package/dist/components/{p-c4abfd0f.js → p-92b9ae9e.js} +1 -1
  106. package/dist/components/{p-00777872.js → p-9ea1a67d.js} +26 -4
  107. package/dist/components/{p-39a2e638.js → p-b3e67e7f.js} +2 -2
  108. package/dist/components/{p-52e77394.js → p-cca545f9.js} +1 -1
  109. package/dist/components/{p-cb56a853.js → p-d2fe2bb6.js} +1 -1
  110. package/dist/components/{p-2d53e1a5.js → p-d568d595.js} +1 -1
  111. package/dist/components/{p-11bf64aa.js → p-df1af62c.js} +1 -1
  112. package/dist/esm/index.js +1 -1
  113. package/dist/esm/lido-avatar_22.entry.js +184 -58
  114. package/dist/esm/lido-player.js +1 -1
  115. package/dist/esm/loader.js +1 -1
  116. package/dist/esm/{utils-107b15a7.js → utils-eefe4a1c.js} +89 -86
  117. package/dist/lido-player/index.esm.js +1 -1
  118. package/dist/lido-player/lido-player.esm.js +1 -1
  119. package/dist/lido-player/p-4d9ad047.entry.js +1 -0
  120. package/dist/lido-player/{p-d1251482.js → p-589fc3b8.js} +2 -2
  121. package/dist/types/components/container/lido-container.d.ts +1 -0
  122. package/dist/types/components/home/lido-home.d.ts +1 -0
  123. package/dist/types/components/trace/lido-trace.d.ts +1 -0
  124. package/dist/types/utils/utils.d.ts +1 -1
  125. package/dist/types/utils/utilsHandlers/animationHandler.d.ts +1 -0
  126. package/package.json +1 -1
  127. package/dist/lido-player/p-606ea279.entry.js +0 -1
@@ -1665,6 +1665,45 @@ function balanceResult(container, objectiveString) {
1665
1665
  return res;
1666
1666
  }
1667
1667
 
1668
+ function dragDropAnimation(container, dragElement, dropElement) {
1669
+ container.style.pointerEvents = 'none';
1670
+ setTimeout(() => {
1671
+ const div = document.createElement('div');
1672
+ container.append(div);
1673
+ div.classList.add('after-drop-popup-container');
1674
+ dragElement.style.scale = `1`;
1675
+ dropElement.style.scale = `1`;
1676
+ const allDragElements = container.querySelectorAll('[type="drag"]');
1677
+ const dragParents = Array.from(allDragElements).map(el => el.parentElement);
1678
+ const allSameParent = dragParents.every(parent => parent === dragElement.parentElement);
1679
+ // Remove from old parents
1680
+ if (allSameParent) {
1681
+ dragElement.remove();
1682
+ dropElement.remove();
1683
+ }
1684
+ else {
1685
+ dragElement.parentElement.parentElement.remove();
1686
+ dropElement.parentElement.parentElement.remove();
1687
+ }
1688
+ // Add animation and popup classes
1689
+ dragElement.classList.add('zoom-fade-in', 'after-drop-popup-drag-element');
1690
+ dropElement.classList.add('zoom-fade-in', 'after-drop-popup-drop-element');
1691
+ div.appendChild(dragElement);
1692
+ div.appendChild(dropElement);
1693
+ dropElement.classList.remove('empty');
1694
+ setTimeout(() => {
1695
+ dragElement.classList.remove('zoom-fade-in');
1696
+ dropElement.classList.remove('zoom-fade-in');
1697
+ dragElement.classList.add('zoom-fade-out');
1698
+ dropElement.classList.add('zoom-fade-out');
1699
+ setTimeout(() => {
1700
+ div.remove();
1701
+ container.style.pointerEvents = 'auto';
1702
+ }, 800); // match animation duration
1703
+ }, 2000); // stay for 2 seconds
1704
+ }, 250);
1705
+ }
1706
+
1668
1707
  function buildDropHasDragFromDOM() {
1669
1708
  const dropHasDrag = {};
1670
1709
  const dropElements = document.querySelectorAll("[type='drop']");
@@ -1731,7 +1770,7 @@ function enableDraggingWithScaling(element) {
1731
1770
  isDragging = false;
1732
1771
  return;
1733
1772
  }
1734
- // AudioPlayer.getI().stop();
1773
+ AudioPlayer.getI().stop();
1735
1774
  removeHighlight(element);
1736
1775
  isDragging = true;
1737
1776
  isClicked = true;
@@ -1835,6 +1874,7 @@ function enableDraggingWithScaling(element) {
1835
1874
  // Start observing the element
1836
1875
  observer.observe(container, observerConfig);
1837
1876
  const onMove = (event) => {
1877
+ console.log('moved');
1838
1878
  if (!isDragging)
1839
1879
  return;
1840
1880
  if (isDraggingDisabled) {
@@ -1843,7 +1883,7 @@ function enableDraggingWithScaling(element) {
1843
1883
  }
1844
1884
  isClicked = false;
1845
1885
  element.style.transition = 'none';
1846
- const containerScale = getElementScale$1(container);
1886
+ const containerScale = calculateScale();
1847
1887
  let dx = 0;
1848
1888
  let dy = 0;
1849
1889
  if (event instanceof MouseEvent) {
@@ -2142,7 +2182,6 @@ function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedV
2142
2182
  });
2143
2183
  handleShowCheck();
2144
2184
  }
2145
- const tempVanishedValues = [];
2146
2185
  async function onElementDropComplete(dragElement, dropElement) {
2147
2186
  var _a, _b, _c, _d, _e, _f, _g, _h;
2148
2187
  const container = document.getElementById(LidoContainer);
@@ -2169,7 +2208,6 @@ async function onElementDropComplete(dragElement, dropElement) {
2169
2208
  handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData);
2170
2209
  return;
2171
2210
  }
2172
- // let isCorrect = dropElement.getAttribute('value').toLowerCase().includes(dragElement.getAttribute('value').toLowerCase());
2173
2211
  let isCorrect;
2174
2212
  const dragValue = ((_c = dragElement.getAttribute('value')) === null || _c === void 0 ? void 0 : _c.trim()) || "";
2175
2213
  const dropValue = ((_d = dropElement.getAttribute('value')) === null || _d === void 0 ? void 0 : _d.trim()) || "";
@@ -2186,7 +2224,8 @@ async function onElementDropComplete(dragElement, dropElement) {
2186
2224
  }
2187
2225
  }
2188
2226
  else {
2189
- isCorrect = dropElement.getAttribute('value').toLowerCase().includes(dragElement.getAttribute('value').toLowerCase());
2227
+ //strings
2228
+ isCorrect = dropValue.toLowerCase().includes(dragValue.toLowerCase());
2190
2229
  }
2191
2230
  if (!isCorrect) {
2192
2231
  dragElement.style.transition = 'transform 0.5s ease';
@@ -2196,6 +2235,7 @@ async function onElementDropComplete(dragElement, dropElement) {
2196
2235
  await executeActions(onInCorrect, dropElement, dragElement);
2197
2236
  setTimeout(() => {
2198
2237
  dragElement.style.transform = 'translate(0, 0)';
2238
+ storingEachActivityScore(false);
2199
2239
  // const oldDropIndex = dragToDropMap[dragElement.getAttribute('data-id')];
2200
2240
  // if (oldDropIndex !== undefined && dropHasDrag[oldDropIndex]) {
2201
2241
  // dropHasDrag[oldDropIndex].isFull = false;
@@ -2221,61 +2261,18 @@ async function onElementDropComplete(dragElement, dropElement) {
2221
2261
  else {
2222
2262
  const checkdropAttr = container.getAttribute('dropAttr');
2223
2263
  if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
2224
- container.style.pointerEvents = "none";
2225
- setTimeout(() => {
2226
- var _a, _b, _c;
2227
- const div = document.createElement('div');
2228
- container.append(div);
2229
- div.classList.add('after-drop-popup-container');
2230
- dragElement.style.scale = `1`;
2231
- dropElement.style.scale = `1`;
2232
- const allDragElements = container.querySelectorAll('[type="drag"]');
2233
- const dragParents = Array.from(allDragElements).map(el => el.parentElement);
2234
- const allSameParent = dragParents.every(parent => parent === dragElement.parentElement);
2235
- JSON.parse((_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '[]');
2236
- const vanishedValue = (_b = dragElement.getAttribute('value')) !== null && _b !== void 0 ? _b : (_c = dragElement.textContent) === null || _c === void 0 ? void 0 : _c.trim();
2237
- if (vanishedValue) {
2238
- tempVanishedValues.push(vanishedValue);
2239
- }
2240
- // Remove from old parents
2241
- if (allSameParent) {
2242
- dragElement.remove();
2243
- dropElement.remove();
2244
- }
2245
- else {
2246
- dragElement.parentElement.parentElement.remove();
2247
- dropElement.parentElement.parentElement.remove();
2248
- }
2249
- // Add animation and popup classes
2250
- dragElement.classList.add('zoom-fade-in', 'after-drop-popup-drag-element');
2251
- dropElement.classList.add('zoom-fade-in', 'after-drop-popup-drop-element');
2252
- div.appendChild(dragElement);
2253
- div.appendChild(dropElement);
2254
- dropElement.classList.remove('empty');
2255
- setTimeout(() => {
2256
- dragElement.classList.remove('zoom-fade-in');
2257
- dropElement.classList.remove('zoom-fade-in');
2258
- dragElement.classList.add('zoom-fade-out');
2259
- dropElement.classList.add('zoom-fade-out');
2260
- setTimeout(() => {
2261
- div.remove();
2262
- container.style.pointerEvents = 'auto';
2263
- const objective = container.getAttribute('objective');
2264
- if (objective && tempVanishedValues.map(v => v.trim()).sort().join(',') === objective.split(',').map(v => v.trim()).sort().join(',')) {
2265
- (async () => {
2266
- isCorrect = true;
2267
- const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
2268
- await executeActions(onCorrect, container);
2269
- window.dispatchEvent(new CustomEvent(NextContainerKey));
2270
- tempVanishedValues.length = 0;
2271
- })();
2272
- }
2273
- }, 800); // match animation duration
2274
- }, 2000); // stay for 2 seconds
2275
- }, 250);
2264
+ //This function coming from animationhandler.ts
2265
+ dragDropAnimation(container, dragElement, dropElement);
2276
2266
  }
2277
2267
  }
2278
2268
  }
2269
+ else {
2270
+ const checkdropAttr = container.getAttribute('dropAttr');
2271
+ if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
2272
+ //This function coming from animationhandler.ts
2273
+ dragDropAnimation(container, dragElement, dropElement);
2274
+ }
2275
+ }
2279
2276
  if (dropElement) {
2280
2277
  let selectedValues = JSON.parse((_e = container.getAttribute(SelectedValuesKey)) !== null && _e !== void 0 ? _e : "[]");
2281
2278
  const dragValue = dragElement.getAttribute('value');
@@ -2408,11 +2405,12 @@ async function onElementDropComplete(dragElement, dropElement) {
2408
2405
  // Add pulse and highlight effect for a successful match
2409
2406
  const isCorrect = dropElement['value'].toLowerCase().includes(dragElement['value'].toLowerCase());
2410
2407
  dispatchElementDropEvent(dragElement, dropElement, isCorrect);
2411
- storingEachActivityScore(isCorrect);
2408
+ // storingEachActivityScore(isCorrect);
2412
2409
  dragElement.style.opacity = '1';
2413
2410
  await onActivityComplete(dragElement, dropElement);
2414
2411
  const allDropElements = document.querySelectorAll('.drop-element');
2415
2412
  allDropElements.forEach(el => updateDropBorder(el));
2413
+ await onActivityComplete(dragElement, dropElement);
2416
2414
  }
2417
2415
  function updateDropBorder(element) {
2418
2416
  if (!element || !element.classList.contains('drop-element'))
@@ -2804,7 +2802,7 @@ function enableReorderDrag(element) {
2804
2802
  isClicked = false;
2805
2803
  event.preventDefault();
2806
2804
  const containerRect = container.getBoundingClientRect();
2807
- const containerScale = getElementScale(container);
2805
+ const containerScale = calculateScale();
2808
2806
  const newLeft = (point.clientX - containerRect.left - offsetXInElement) / containerScale;
2809
2807
  const newTop = (point.clientY - containerRect.top - offsetYInElement) / containerScale;
2810
2808
  element.style.left = `${newLeft}px`;
@@ -2871,9 +2869,7 @@ function enableReorderDrag(element) {
2871
2869
  else {
2872
2870
  if (element.parentElement['type'] !== 'category') {
2873
2871
  executeActions('this.alignMatch=true', divEl, element);
2874
- setTimeout(() => {
2875
- divEl.replaceWith(element);
2876
- }, 500);
2872
+ divEl.replaceWith(element);
2877
2873
  }
2878
2874
  else {
2879
2875
  const categoryElement = element.parentElement;
@@ -3349,9 +3345,6 @@ function slidingWithScaling(element) {
3349
3345
  element.style.transform = 'translate(0, 0)'; // Initialize transform for consistent dragging
3350
3346
  element.addEventListener('mousedown', onStart);
3351
3347
  element.addEventListener('touchstart', onStart);
3352
- element.addEventListener('click', ev => {
3353
- onClickDropOrDragElement(element, 'drag');
3354
- });
3355
3348
  }
3356
3349
  const slideCompleted = (slideElement) => {
3357
3350
  var _a;
@@ -3367,8 +3360,13 @@ const slideCompleted = (slideElement) => {
3367
3360
  const objectiveArray = objectiveString.split(',');
3368
3361
  const elementIndex = slideArr.indexOf(slideElement['value']);
3369
3362
  const isCorrect = matchStringPattern(slideElement['value'], [objectiveArray[elementIndex].trim()]);
3370
- storingEachActivityScore(isCorrect);
3371
- handleShowCheck();
3363
+ if (container.getAttribute('is-continue-on-correct') === 'true') {
3364
+ storingEachActivityScore(true);
3365
+ handleShowCheck();
3366
+ }
3367
+ else {
3368
+ storingEachActivityScore(isCorrect);
3369
+ }
3372
3370
  };
3373
3371
 
3374
3372
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -4653,7 +4651,10 @@ function addClickListenerForClickType(element) {
4653
4651
  dispatchClickEvent(element, isCorrect);
4654
4652
  if (isCorrect) {
4655
4653
  const onCorrect = element.getAttribute('onCorrect');
4656
- // element.style.pointerEvents = 'none';
4654
+ if (!(element.id && element.id.startsWith('key-button'))) {
4655
+ element.style.pointerEvents = 'none';
4656
+ }
4657
+ document.body.style.pointerEvents = 'none';
4657
4658
  await executeActions(onCorrect, element);
4658
4659
  }
4659
4660
  else {
@@ -4710,6 +4711,7 @@ function addClickListenerForClickType(element) {
4710
4711
  container.setAttribute(SelectedValuesKey, JSON.stringify(sortedValues));
4711
4712
  const isCorrect = objective.includes(element['value']);
4712
4713
  dispatchClickEvent(element, isCorrect);
4714
+ AudioPlayer.getI().stop();
4713
4715
  if (isCorrect) {
4714
4716
  const onCorrect = element.getAttribute('onCorrect');
4715
4717
  await executeActions(onCorrect, element);
@@ -70023,6 +70025,7 @@ const initEventsForElement = async (element, type) => {
70023
70025
  const executeActions = async (actionsString, thisElement, element) => {
70024
70026
  var _a, _b, _c, _d, _e, _f, _g;
70025
70027
  const actions = parseActions(actionsString);
70028
+ body.style.pointerEvents = 'none';
70026
70029
  for (let i = 0; i < actions.length; i++) {
70027
70030
  const action = actions[i];
70028
70031
  const queriedElement = document.querySelector(action.actor);
@@ -70053,7 +70056,7 @@ const executeActions = async (actionsString, thisElement, element) => {
70053
70056
  const container = document.getElementById(LidoContainer);
70054
70057
  const containerScale = getElementScale$1(container);
70055
70058
  dragElement.style.transform = 'translate(0,0)';
70056
- console.log("logg alinmatch");
70059
+ console.log('logg alinmatch');
70057
70060
  const dropRect = dropElement.getBoundingClientRect();
70058
70061
  const dragRect = dragElement.getBoundingClientRect();
70059
70062
  const dropCenterX = dropRect.left + dropRect.width / 2;
@@ -70107,7 +70110,7 @@ const executeActions = async (actionsString, thisElement, element) => {
70107
70110
  if (container.getAttribute('is-continue-on-correct') !== 'true') {
70108
70111
  targetElement.style.pointerEvents = 'none';
70109
70112
  }
70110
- validateObjectiveStatus();
70113
+ await validateObjectiveStatus();
70111
70114
  break;
70112
70115
  }
70113
70116
  case 'prevBtn': {
@@ -70261,7 +70264,9 @@ const executeActions = async (actionsString, thisElement, element) => {
70261
70264
  break;
70262
70265
  }
70263
70266
  case 'updateCalculatorAnswer': {
70264
- updateCalculatorAnswer();
70267
+ if (targetElement) {
70268
+ updateCalculatorAnswer(targetElement);
70269
+ }
70265
70270
  break;
70266
70271
  }
70267
70272
  default: {
@@ -70271,6 +70276,7 @@ const executeActions = async (actionsString, thisElement, element) => {
70271
70276
  }
70272
70277
  }
70273
70278
  }
70279
+ body.style.pointerEvents = 'auto';
70274
70280
  };
70275
70281
  const afterDropDragHandling = (dragElement, dropElement) => {
70276
70282
  const container = document.getElementById(LidoContainer);
@@ -70587,6 +70593,7 @@ const handleShowCheck = () => {
70587
70593
  validateObjectiveStatus();
70588
70594
  }
70589
70595
  };
70596
+ const body = document.body;
70590
70597
  let res;
70591
70598
  const validateObjectiveStatus = async () => {
70592
70599
  var _a, _b;
@@ -70651,6 +70658,7 @@ const validateObjectiveStatus = async () => {
70651
70658
  if (!isContinueOnCorrect) {
70652
70659
  triggerNextContainer();
70653
70660
  await calculateScore();
70661
+ triggerNextContainer();
70654
70662
  }
70655
70663
  else {
70656
70664
  const onInCorrect = container.getAttribute('onInCorrect');
@@ -70673,16 +70681,16 @@ const triggerPrevcontainer = () => {
70673
70681
  function convertUrlToRelative(url) {
70674
70682
  const container = document.getElementById(LidoContainer);
70675
70683
  const baseUrl = container.getAttribute('baseUrl');
70676
- if ((url === null || url === void 0 ? void 0 : url.startsWith('http')) || (url === null || url === void 0 ? void 0 : url.startsWith('blob'))) {
70684
+ if ((url === null || url === void 0 ? void 0 : url.startsWith('http')) || (url === null || url === void 0 ? void 0 : url.startsWith('blob')) || (url === null || url === void 0 ? void 0 : url.startsWith('data'))) {
70677
70685
  return url;
70678
70686
  }
70679
- else if (baseUrl) {
70680
- const newUrl = !url.startsWith('/') ? url : url.substring(1);
70681
- return baseUrl + (baseUrl.endsWith('/') ? newUrl : '/' + newUrl);
70682
- }
70683
- else {
70684
- return getAssetPath(url);
70687
+ if (baseUrl) {
70688
+ const newUrl = url.startsWith('/') ? url.slice(1) : url;
70689
+ if (newUrl.startsWith(baseUrl.replace(/^\/+|\/+$/g, '')))
70690
+ return newUrl;
70691
+ return baseUrl.endsWith('/') ? baseUrl + newUrl : `${baseUrl}/${newUrl}`;
70685
70692
  }
70693
+ return getAssetPath(url);
70686
70694
  }
70687
70695
  /**
70688
70696
  * Asynchronously speaks the given text using the browser's text-to-speech API.
@@ -71154,9 +71162,6 @@ const SumTogetherAnimation = async (element, value) => {
71154
71162
  return;
71155
71163
  if (!value)
71156
71164
  return;
71157
- const container = document.getElementById(LidoContainer);
71158
- if (!container)
71159
- return;
71160
71165
  // Expecting structure: [_, TopRow, questionRow, optionRow, ...]
71161
71166
  const TopRow = Array.from(element.children)[1];
71162
71167
  const questionRow = Array.from(element.children)[2];
@@ -71300,17 +71305,15 @@ function placeElementInDropZone(dropElement, dragElement, orientation, dropAttr)
71300
71305
  dragElement.style.width = "auto";
71301
71306
  dragElement.style.height = "auto";
71302
71307
  }
71303
- const updateCalculatorAnswer = () => {
71308
+ const updateCalculatorAnswer = (el) => {
71304
71309
  const container = document.getElementById(LidoContainer);
71305
71310
  if (!container)
71306
71311
  return;
71307
71312
  const calci = document.querySelector('#lidoCalculator');
71308
71313
  if (!calci)
71309
71314
  return;
71310
- const answerText = container.querySelector('#answer');
71311
71315
  const value = calci.getAttribute('value');
71312
- console.log("😀😀😀😀😀😀😀", value);
71313
- answerText.setAttribute('string', value);
71316
+ el.setAttribute('string', value);
71314
71317
  };
71315
71318
 
71316
- export { ActivityScoreKey as A, generateUUIDFallback as B, exitUrl as C, prevUrl as D, nextUrl as E, speakUrl as F, getCancelBtnPopup as G, H, triggerPrevcontainer as I, setCancelBtnPopup as J, getDefaultExportFromCjs as K, LidoContainer as L, tinyColor as M, NextContainerKey as N, triggerNextContainer as O, PrevContainerKey as P, DropAction as Q, RiveService as R, SelectedValuesKey as S, validateObjectiveStatus as T, fraction as U, TraceMode as V, speakIcon as W, fingerUrl as X, setNonce as a, 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, handlingChildElements as q, attachSpeakIcon as r, setAssetPath as s, calculateScale as t, handleFloatElementPosition as u, handleElementClick as v, dispatchActivityChangeEvent as w, dispatchGameCompletedEvent as x, dispatchGameExitEvent as y, AudioPlayer as z };
71319
+ export { ActivityScoreKey as A, generateUUIDFallback as B, exitUrl as C, prevUrl as D, nextUrl as E, speakUrl as F, getCancelBtnPopup as G, H, matchStringPattern as I, triggerNextContainer as J, triggerPrevcontainer as K, LidoContainer as L, setCancelBtnPopup as M, NextContainerKey as N, getDefaultExportFromCjs as O, PrevContainerKey as P, tinyColor as Q, RiveService as R, SelectedValuesKey as S, DropAction as T, validateObjectiveStatus as U, fraction as V, TraceMode as W, speakIcon as X, fingerUrl as Y, setNonce as a, 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, handlingChildElements as q, attachSpeakIcon as r, setAssetPath as s, calculateScale as t, handleFloatElementPosition as u, handleElementClick as v, dispatchActivityChangeEvent as w, dispatchGameCompletedEvent as x, dispatchGameExitEvent as y, AudioPlayer as z };
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-58c67252.js';
1
+ import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-511377d2.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,5 +1,5 @@
1
- import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-58c67252.js';
2
- import { d as defineCustomElement$1 } from './p-39a2e638.js';
1
+ import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-511377d2.js';
2
+ import { d as defineCustomElement$1 } from './p-b3e67e7f.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, K as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, M as tinyColor, r as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-58c67252.js';
1
+ import { c as commonjsGlobal, O as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, Q as tinyColor, r as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-511377d2.js';
2
2
 
3
3
  var lib = {exports: {}};
4
4
 
@@ -1,5 +1,5 @@
1
- import { p as proxyCustomElement, H, S as SelectedValuesKey, L as LidoContainer, o as executeActions, O as triggerNextContainer, u as handleFloatElementPosition, n as storingEachActivityScore, Q as DropAction, k as parseProp, h, j as Host } from './p-58c67252.js';
2
- import { d as defineCustomElement$1 } from './p-39a2e638.js';
1
+ import { p as proxyCustomElement, H, S as SelectedValuesKey, L as LidoContainer, o as executeActions, J as triggerNextContainer, u as handleFloatElementPosition, n as storingEachActivityScore, T as DropAction, k as parseProp, h, j as Host } from './p-511377d2.js';
2
+ import { d as defineCustomElement$1 } from './p-b3e67e7f.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;
@@ -2631,7 +2631,8 @@ const en = {
2631
2631
  "Do you want to exit?": "Do you want to exit?",
2632
2632
  Exit: Exit$5,
2633
2633
  "Continue playing": "Continue playing",
2634
- "Drop the elements to match the given symbol order": "Drop the elements to match the given symbol order"
2634
+ "Drop the elements to match the given symbol order": "Drop the elements to match the given symbol order",
2635
+ "Fill in the blanks": "Fill in the blanks"
2635
2636
  };
2636
2637
 
2637
2638
  const Exit$4 = "Quitter";
@@ -2639,7 +2640,8 @@ const fr = {
2639
2640
  "Do you want to exit?": "Voulez-vous quitter?",
2640
2641
  Exit: Exit$4,
2641
2642
  "Continue playing": "Continuer à jouer",
2642
- "Drop the elements to match the given symbol order": "Déposez les éléments pour correspondre au symbole donné"
2643
+ "Drop the elements to match the given symbol order": "Déposez les éléments pour correspondre au symbole donné",
2644
+ "Fill in the blanks": "Remplissez les blancs"
2643
2645
  };
2644
2646
 
2645
2647
  const Exit$3 = "बाहर निकलें";
@@ -2647,7 +2649,8 @@ const hi = {
2647
2649
  "Do you want to exit?": "क्या आप बाहर निकलना चाहते हैं?",
2648
2650
  Exit: Exit$3,
2649
2651
  "Continue playing": "खेलना जारी रखें",
2650
- "Drop the elements to match the given symbol order": "दिए गए चिन्ह से मिलाने के लिए तत्वों को ड्रॉप करें"
2652
+ "Drop the elements to match the given symbol order": "दिए गए चिन्ह से मिलाने के लिए तत्वों को ड्रॉप करें",
2653
+ "Fill in the blanks": "रिक्त स्थान भरें"
2651
2654
  };
2652
2655
 
2653
2656
  const Exit$2 = "ನಿರ್ಗಮಿಸು";
@@ -2655,7 +2658,8 @@ const ka = {
2655
2658
  "Do you want to exit?": "ನೀವು ನಿರ್ಗಮಿಸಲು ಬಯಸುವಿರಾ?",
2656
2659
  Exit: Exit$2,
2657
2660
  "Continue playing": "ಆಟವನ್ನು ಮುಂದುವರಿಸಿ",
2658
- "Drop the elements to match the given symbol order": "ನೀಡಿರುವ ಸಂಕೇತಕ್ಕೆ ಹೊಂದುವಂತೆ ಅಂಶಗಳನ್ನು ಬಿಡಿ"
2661
+ "Drop the elements to match the given symbol order": "ನೀಡಿರುವ ಸಂಕೇತಕ್ಕೆ ಹೊಂದುವಂತೆ ಅಂಶಗಳನ್ನು ಬಿಡಿ",
2662
+ "Fill in the blanks": "ಖಾಲಿ ಸ್ಥಳಗಳನ್ನು ಭರ್ತಿ ಮಾಡಿ"
2659
2663
  };
2660
2664
 
2661
2665
  const Exit$1 = "బయటకు వెళ్ళు";
@@ -2663,7 +2667,8 @@ const te = {
2663
2667
  "Do you want to exit?": "మీరు బయటకు వెళ్లాలనుకుంటున్నారా?",
2664
2668
  Exit: Exit$1,
2665
2669
  "Continue playing": "ఆటను కొనసాగించు",
2666
- "Drop the elements to match the given symbol order": "ఇచ్చిన చిహ్నానికి సరిపడేలా అంశాలను డ్రాప్ చేయండి"
2670
+ "Drop the elements to match the given symbol order": "ఇచ్చిన చిహ్నానికి సరిపడేలా అంశాలను డ్రాప్ చేయండి",
2671
+ "Fill in the blanks": "ఖాళీలను నింపండి"
2667
2672
  };
2668
2673
 
2669
2674
  const Exit = "Sair";
@@ -2671,7 +2676,8 @@ const port = {
2671
2676
  "Do you want to exit?": "Você deseja sair?",
2672
2677
  Exit: Exit,
2673
2678
  "Continue playing": "Continuar jogando",
2674
- "Drop the elements to match the given symbol order": "Solte os elementos para corresponder à ordem dos símbolos fornecida"
2679
+ "Drop the elements to match the given symbol order": "Solte os elementos para corresponder à ordem dos símbolos fornecida",
2680
+ "Fill in the blanks": "Preencha os espaços em branco"
2675
2681
  };
2676
2682
 
2677
2683
  instance
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, r as attachSpeakIcon, h, j as Host } from './p-58c67252.js';
1
+ import { p as proxyCustomElement, H, r as attachSpeakIcon, h, j as Host } from './p-511377d2.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, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-58c67252.js';
1
+ import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-511377d2.js';
2
2
 
3
3
  const lidoFlashCardCss = ".card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}";
4
4
  const LidoFlashCardStyle0 = lidoFlashCardCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, U as fraction, h, j as Host } from './p-58c67252.js';
1
+ import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, V as fraction, h, j as Host } from './p-511377d2.js';
2
2
 
3
3
  const lidoSlideFillCss = ".svg-element,svg{width:100%;height:100%}";
4
4
  const LidoSlideFillStyle0 = lidoSlideFillCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-58c67252.js';
1
+ import { p as proxyCustomElement, H, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-511377d2.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,5 +1,5 @@
1
- import { p as proxyCustomElement, H, t as calculateScale, e as convertUrlToRelative, i as initEventsForElement, h, j as Host } from './p-58c67252.js';
2
- import { i as instance } from './p-0fbeb3a1.js';
1
+ import { p as proxyCustomElement, H, t as calculateScale, e as convertUrlToRelative, i as initEventsForElement, h, j as Host } from './p-511377d2.js';
2
+ import { i as instance } from './p-73e3f0f4.js';
3
3
 
4
4
  const lidoContainerCss = ".lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}";
5
5
  const LidoContainerStyle0 = lidoContainerCss;
@@ -96,13 +96,34 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
96
96
  * @param container The container element to be scaled.
97
97
  */
98
98
  scaleContainer(container) {
99
+ // Calculate the scale factor based on the closest parent element's width and height (1600x900 reference)
100
+ const parentElement = this.getClosestParentWithWidth();
101
+ let scaleFactor = 0;
102
+ if (parentElement) {
103
+ const parentWidth = parentElement.clientWidth;
104
+ const parentHeight = parentElement.clientHeight;
105
+ const scaleX = parentWidth / 1600;
106
+ const scaleY = parentHeight / 900;
107
+ scaleFactor = Math.min(scaleX, scaleY);
108
+ }
99
109
  // Center the container and apply scaling
100
- container.style.transform = `translate(-50%, -50%) scale(${calculateScale()})`;
110
+ container.style.transform = `translate(-50%, -50%) scale(${scaleFactor != 0 ? scaleFactor : calculateScale()})`;
101
111
  container.style.left = '50%';
102
112
  container.style.top = '50%';
103
113
  container.style.position = 'absolute'; // Ensure proper positioning
104
114
  this.screenOrientation();
105
115
  }
116
+ // Find and return the nearest parent element that has a measurable (non-zero) width
117
+ getClosestParentWithWidth() {
118
+ let parent = this.el.parentElement;
119
+ while (parent) {
120
+ if (parent.offsetWidth > 0) {
121
+ return parent;
122
+ }
123
+ parent = parent.parentElement;
124
+ }
125
+ return null;
126
+ }
106
127
  screenOrientation() {
107
128
  if (window.innerHeight > window.innerWidth) {
108
129
  this.el.style.height = '1600px';
@@ -131,6 +152,7 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
131
152
  componentDidLoad() {
132
153
  this.scaleContainer(this.el);
133
154
  const backGroundImage = this.bgImage ? convertUrlToRelative(this.bgImage) : '';
155
+ document.body.style.pointerEvents = 'auto';
134
156
  document.body.style.backgroundColor = this.bgColor;
135
157
  document.body.style.backgroundImage = backGroundImage ? `url(${backGroundImage})` : 'none';
136
158
  document.body.style.backgroundPosition = backGroundImage ? `bottom` : 'none';
@@ -164,7 +186,7 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
164
186
  userSelect: 'none', // Prevent any field selection
165
187
  };
166
188
  console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
167
- return (h(Host, { key: '5d7f2f02c5a231a18897942ea0d2f3a200efa502', id: "lido-container", locale: this.locale, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak }, h("slot", { key: 'b82aff47d621fc4f9d6abe5b7add974853f69219' })));
189
+ return (h(Host, { key: '338ef0be8cc9d052764785ce9314254be7c8a7f8', id: "lido-container", locale: this.locale, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak }, h("slot", { key: '59d66b47f4749a99ece4da48dbaebaf720cb0b2b' })));
168
190
  }
169
191
  get el() { return this; }
170
192
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
- import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-58c67252.js';
2
- import { i as instance } from './p-0fbeb3a1.js';
1
+ import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-511377d2.js';
2
+ import { i as instance } from './p-73e3f0f4.js';
3
3
 
4
4
  const lidoTextCss = ".lido-text{transition:background-color 0.3s ease;user-select:none;align-items:center;justify-content:center;text-align:center;border-radius:24px;color:#333;cursor:pointer;font-family:'Baloo Bhai 2', serif}.text-letters{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-letters.letter-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-letter-bounce 0.4s}.text-words{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-words.word-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-word-bounce 0.4s}@keyframes text-letter-bounce{0%{transform:scale(1)}60%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes text-word-bounce{0%{transform:scale(1)}60%{transform:scale(1.3)}100%{transform:scale(1)}}";
5
5
  const LidoTextStyle0 = lidoTextCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-58c67252.js';
1
+ import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-511377d2.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,4 +1,4 @@
1
- import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-58c67252.js';
1
+ import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-511377d2.js';
2
2
 
3
3
  const lidoCellCss = ".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>*{}.lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}.lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}.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}.lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}.lido-col::-webkit-scrollbar,.lido-wrap::-webkit-scrollbar,.lido-flex::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.lido-col::-webkit-scrollbar-thumb,.lido-wrap::-webkit-scrollbar-thumb,.lido-flex::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;border:3px solid transparent;background-clip:content-box}.lido-col::-webkit-scrollbar-track,.lido-wrap::-webkit-scrollbar-track,.lido-flex::-webkit-scrollbar-track{background:#f1f1f1}";
4
4
  const LidoCellStyle0 = lidoCellCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, u as handleFloatElementPosition, v as handleElementClick, k as parseProp, h, j as Host } from './p-58c67252.js';
1
+ import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, u as handleFloatElementPosition, v as handleElementClick, k as parseProp, h, j as Host } from './p-511377d2.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 { 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-58c67252.js';
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-511377d2.js';
2
2
 
3
3
  var rive = {exports: {}};
4
4
 
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { f as format } from './utils-107b15a7.js';
1
+ export { f as format } from './utils-eefe4a1c.js';
2
2
  import './index-37c2ad2d.js';