lido-player 0.0.2-beta-18-dev → 0.0.2-beta-21-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 (232) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{decode-DUZYNXIv.js → decode-Buln7Iaf.js} +1 -1
  3. package/dist/cjs/{index-BEjUmVtH.js → index-Bb_TFgTA.js} +137 -64
  4. package/dist/cjs/{index-DnqQXD5x.js → index-DBCFoh1I.js} +12 -53
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/lido-avatar_22.cjs.entry.js +139 -50
  7. package/dist/cjs/lido-player.cjs.js +2 -2
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/avatar/lido-avatar.css +4 -4
  11. package/dist/collection/components/avatar/lido-avatar.js +1 -1
  12. package/dist/collection/components/avatar/lido-avatar.tsx +207 -207
  13. package/dist/collection/components/avatar/readme.md +49 -49
  14. package/dist/collection/components/calculator/lido-calculator.css +89 -89
  15. package/dist/collection/components/calculator/lido-calculator.js +2 -2
  16. package/dist/collection/components/canvas/lido-canvas.css +33 -33
  17. package/dist/collection/components/canvas/lido-canvas.js +1 -1
  18. package/dist/collection/components/cell/lido-cell.css +100 -100
  19. package/dist/collection/components/cell/lido-cell.js +12 -12
  20. package/dist/collection/components/column/lido-col.css +19 -19
  21. package/dist/collection/components/column/lido-col.js +6 -6
  22. package/dist/collection/components/container/lido-container.css +10 -10
  23. package/dist/collection/components/container/lido-container.js +8 -8
  24. package/dist/collection/components/flashCard/lido-flash-card.css +28 -28
  25. package/dist/collection/components/flashCard/lido-flash-card.js +4 -4
  26. package/dist/collection/components/float/lido-float.css +30 -30
  27. package/dist/collection/components/float/lido-float.js +2 -2
  28. package/dist/collection/components/home/lido-home.css +309 -309
  29. package/dist/collection/components/home/lido-home.js +5 -5
  30. package/dist/collection/components/image/lido-image.css +17 -17
  31. package/dist/collection/components/image/lido-image.js +6 -6
  32. package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
  33. package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
  34. package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
  35. package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
  36. package/dist/collection/components/position/lido-pos.css +16 -16
  37. package/dist/collection/components/position/lido-pos.js +2 -2
  38. package/dist/collection/components/random/lido-random.css +8 -8
  39. package/dist/collection/components/random/lido-random.js +2 -2
  40. package/dist/collection/components/root/lido-root.js +5 -5
  41. package/dist/collection/components/row/lido-row.css +10 -10
  42. package/dist/collection/components/row/lido-row.js +6 -6
  43. package/dist/collection/components/scale/assets/Shadow.svg +9 -9
  44. package/dist/collection/components/scale/lido-balance.css +145 -145
  45. package/dist/collection/components/scale/lido-balance.js +13 -13
  46. package/dist/collection/components/shape/lido-shape.css +216 -216
  47. package/dist/collection/components/shape/lido-shape.js +6 -6
  48. package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
  49. package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
  50. package/dist/collection/components/text/lido-text.css +53 -53
  51. package/dist/collection/components/text/lido-text.js +5 -5
  52. package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
  53. package/dist/collection/components/trace/lido-trace.css +97 -97
  54. package/dist/collection/components/trace/lido-trace.js +108 -19
  55. package/dist/collection/components/wrap/lido-wrap.css +18 -18
  56. package/dist/collection/components/wrap/lido-wrap.js +6 -6
  57. package/dist/collection/css/animation.css +211 -211
  58. package/dist/collection/css/index.css +324 -315
  59. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
  60. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
  61. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
  62. package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
  63. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
  64. package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
  65. package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
  66. package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
  67. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
  68. package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
  69. package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
  70. package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
  71. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
  72. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
  73. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
  74. package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
  75. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
  76. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
  77. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
  78. package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
  79. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
  80. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
  81. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
  82. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
  83. package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
  84. package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
  85. package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
  86. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
  87. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
  88. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
  89. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
  90. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
  91. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
  92. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
  93. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
  94. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
  95. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
  96. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
  97. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
  98. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
  99. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
  100. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
  101. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
  102. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
  103. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
  104. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
  105. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
  106. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
  107. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
  108. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
  109. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
  110. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
  111. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
  112. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
  113. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
  114. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
  115. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
  116. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
  117. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
  118. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
  119. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
  120. package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
  121. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
  122. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
  123. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
  124. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
  125. package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
  126. package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
  127. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
  128. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
  129. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
  130. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
  131. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
  132. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
  133. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
  134. package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
  135. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
  136. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
  137. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
  138. package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
  139. package/dist/collection/stories/Templates/total/total.stories.js +28 -28
  140. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
  141. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
  142. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
  143. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
  144. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
  145. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
  146. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
  147. package/dist/collection/stories/components/flash-card.stories.js +48 -48
  148. package/dist/collection/stories/components/keyboard.stories.js +10 -10
  149. package/dist/collection/stories/components/slider.stories.js +4 -4
  150. package/dist/collection/stories/components/trace.stories.js +5 -5
  151. package/dist/collection/utils/audioPlayer.js +2 -5
  152. package/dist/collection/utils/utils.js +49 -9
  153. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +10 -10
  154. package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
  155. package/dist/collection/utils/utilsHandlers/sortHandler.js +53 -15
  156. package/dist/components/index.js +1 -1
  157. package/dist/components/lido-avatar.js +1 -1
  158. package/dist/components/lido-balance.js +1 -1
  159. package/dist/components/lido-calculator.js +1 -1
  160. package/dist/components/lido-canvas.js +1 -1
  161. package/dist/components/lido-cell.js +1 -1
  162. package/dist/components/lido-col.js +1 -1
  163. package/dist/components/lido-container.js +1 -1
  164. package/dist/components/lido-flash-card.js +1 -1
  165. package/dist/components/lido-float.js +1 -1
  166. package/dist/components/lido-home.js +1 -1
  167. package/dist/components/lido-keyboard.js +1 -1
  168. package/dist/components/lido-math-matrix.js +1 -1
  169. package/dist/components/lido-pos.js +1 -1
  170. package/dist/components/lido-random.js +1 -1
  171. package/dist/components/lido-root.js +1 -1
  172. package/dist/components/lido-row.js +1 -1
  173. package/dist/components/lido-shape.js +1 -1
  174. package/dist/components/lido-slide-fill.js +1 -1
  175. package/dist/components/lido-text.js +1 -1
  176. package/dist/components/lido-trace.js +1 -1
  177. package/dist/components/lido-wrap.js +1 -1
  178. package/dist/components/{p-yT7udDfd.js → p-B4YAipq-.js} +1 -1
  179. package/dist/components/{p-DdQ1eqJr.js → p-B8nzzM8c.js} +1 -1
  180. package/dist/components/p-BAfFgI9q.js +1 -0
  181. package/dist/components/{p-Sl9R-E6h.js → p-BBHM059l.js} +1 -1
  182. package/dist/components/{p-SPZTb5fI.js → p-BJMjg5wu.js} +1 -1
  183. package/dist/components/{p-Cj-6tqzU.js → p-BOQDbCrm.js} +1 -1
  184. package/dist/components/{p-CwDTdXe5.js → p-BeRr8u5m.js} +1 -1
  185. package/dist/components/{p-CjdDpXfk.js → p-BfqihbR6.js} +1 -1
  186. package/dist/components/{p-CPYnt0P-.js → p-C5WmmkI6.js} +1 -1
  187. package/dist/components/{p-useuhkjH.js → p-C70ykycD.js} +1 -1
  188. package/dist/components/{p-BE25wHoo.js → p-CCR42e0i.js} +1 -1
  189. package/dist/components/{p-BfwUqpXc.js → p-CTlcpv4a.js} +1 -1
  190. package/dist/components/{p-CyGxEcn7.js → p-CXHPZN3m.js} +1 -1
  191. package/dist/components/{p-Bw-OC9iR.js → p-CgsPIpg0.js} +1 -1
  192. package/dist/components/{p-D54c-ybm.js → p-CljvnHkI.js} +1 -1
  193. package/dist/components/p-CwIlwnQk.js +1 -0
  194. package/dist/components/p-DLyacZap.js +1 -0
  195. package/dist/components/p-DONbWJGn.js +1 -0
  196. package/dist/components/p-DVTigdH_.js +1 -0
  197. package/dist/components/{p-BNNX1Pew.js → p-wF7SBGpr.js} +2 -2
  198. package/dist/esm/{decode-BgBfbPZu.js → decode-B_VrYFdJ.js} +1 -1
  199. package/dist/esm/{index-D-29PaRa.js → index-B-VyHxJa.js} +137 -64
  200. package/dist/esm/{index-BeHFCsWf.js → index-mMpK8062.js} +12 -53
  201. package/dist/esm/index.js +2 -2
  202. package/dist/esm/lido-avatar_22.entry.js +139 -50
  203. package/dist/esm/lido-player.js +3 -3
  204. package/dist/esm/loader.js +2 -2
  205. package/dist/lido-player/assets/Shadow.svg +9 -9
  206. package/dist/lido-player/assets/Tracing-hand.svg +8 -8
  207. package/dist/lido-player/index.esm.js +1 -1
  208. package/dist/lido-player/lido-avatar.css +4 -4
  209. package/dist/lido-player/lido-avatar.tsx +207 -207
  210. package/dist/lido-player/lido-player.css +8 -8
  211. package/dist/lido-player/lido-player.esm.js +1 -1
  212. package/dist/lido-player/{p-856e1956.entry.js → p-744dee1c.entry.js} +2 -2
  213. package/dist/lido-player/p-BK926Rl3.js +1 -0
  214. package/dist/lido-player/{p-BA2X6O7O.js → p-Cw84dpIR.js} +1 -1
  215. package/dist/lido-player/p-mMpK8062.js +2 -0
  216. package/dist/lido-player/readme.md +49 -49
  217. package/dist/types/components/trace/lido-trace.d.ts +9 -1
  218. package/dist/types/stencil-public-runtime.d.ts +0 -12
  219. package/dist/types/types/json.d.ts +3 -3
  220. package/dist/types/utils/utils.d.ts +1 -1
  221. package/dist/types/utils/utilsHandlers/dragDropHandler.d.ts +1 -0
  222. package/dist/types/utils/utilsHandlers/sortHandler.d.ts +2 -0
  223. package/loader/index.d.ts +1 -1
  224. package/package.json +74 -74
  225. package/readme.md +113 -113
  226. package/dist/components/p-BSV5U72F.js +0 -1
  227. package/dist/components/p-CTlwn9r7.js +0 -1
  228. package/dist/components/p-D-B1groh.js +0 -1
  229. package/dist/components/p-DbR5sNOj.js +0 -1
  230. package/dist/components/p-leIEepjl.js +0 -1
  231. package/dist/lido-player/p-BeHFCsWf.js +0 -3
  232. package/dist/lido-player/p-TuBmCgtK.js +0 -1
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from './index-D-29PaRa.js';
1
+ import { g as getDefaultExportFromCjs } from './index-B-VyHxJa.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -1,4 +1,4 @@
1
- import { c as getAssetPath } from './index-BeHFCsWf.js';
1
+ import { c as getAssetPath } from './index-mMpK8062.js';
2
2
 
3
3
  const DragMapKey = 'lidoDragMap';
4
4
  const SelectedValuesKey = 'lidoSelectedValues';
@@ -765,7 +765,7 @@ function animateDragToTarget(dragElement, targetElement, container, transition =
765
765
  const dy = dropRect.top - dragRect.top;
766
766
  const finalX = currentX + dx * (1 / calculateScale());
767
767
  const finalY = currentY + dy * (1 / calculateScale());
768
- dragElement.style.transition = 'transform 0.5s ease';
768
+ dragElement.style.transition = 'transform 1s ease';
769
769
  dragElement.style.transform = `translate(${finalX}px, ${finalY}px)`;
770
770
  }
771
771
  async function handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData, dropSelectedData) {
@@ -1177,14 +1177,14 @@ async function onClickDropOrDragElement(element, type) {
1177
1177
  if (!document.querySelector('#dynamic-highlight-style')) {
1178
1178
  const style = document.createElement('style');
1179
1179
  style.id = 'dynamic-highlight-style';
1180
- style.innerHTML = `
1181
- .highlight {
1182
- // border: 4px solid #e74c3c; /* Thicker red border for more visibility */
1183
- // border-radius: 12px; /* Larger rounded corners */
1184
- // background-color: rgba(231, 76, 60, 0.3); /* Stronger, more noticeable background */
1185
- // box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.2); /* Stronger shadow */
1186
- // outline: 4px solid rgba(231, 76, 60, 0.6); /* Glow effect */
1187
- }
1180
+ style.innerHTML = `
1181
+ .highlight {
1182
+ // border: 4px solid #e74c3c; /* Thicker red border for more visibility */
1183
+ // border-radius: 12px; /* Larger rounded corners */
1184
+ // background-color: rgba(231, 76, 60, 0.3); /* Stronger, more noticeable background */
1185
+ // box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.2); /* Stronger shadow */
1186
+ // outline: 4px solid rgba(231, 76, 60, 0.6); /* Glow effect */
1187
+ }
1188
1188
  `;
1189
1189
  document.head.appendChild(style);
1190
1190
  }
@@ -1372,34 +1372,34 @@ function highlightSpeakingElement(element) {
1372
1372
  if (!document.getElementById(styleId)) {
1373
1373
  const style = document.createElement('style');
1374
1374
  style.id = styleId;
1375
- style.innerHTML = `
1376
- .speaking-highlight {
1377
- --base-transform: ${element.style.transform};
1378
- box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9) !important; /* Stronger orange glow effect */
1379
- // border: 3px solid green !important;
1380
- // transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;
1381
- // transform: scale(1.05); /* Subtle scale effect to pop the element */
1382
- // animation: pulseEffect 1.5s infinite; /* Pulsing animation */
1383
-
1384
- }
1385
-
1386
- @keyframes pulseEffect {
1387
- 0% {
1388
- box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);
1389
- // transform: var(--base-transform) scale(1.05);
1390
- // background-color: #FFFF0B;
1391
- }
1392
- 50% {
1393
- box-shadow: 0 0 30px 15px rgba(255, 165, 0, 1);
1394
- // transform: var(--base-transform) scale(1.1);
1395
- // background-color: #FFFF0B;
1396
- }
1397
- 100% {
1398
- box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);
1399
- // transform: var(--base-transform) scale(1.05);
1400
- // background-color: #FFFF0B;
1401
- }
1402
- }
1375
+ style.innerHTML = `
1376
+ .speaking-highlight {
1377
+ --base-transform: ${element.style.transform};
1378
+ box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9) !important; /* Stronger orange glow effect */
1379
+ // border: 3px solid green !important;
1380
+ // transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;
1381
+ // transform: scale(1.05); /* Subtle scale effect to pop the element */
1382
+ // animation: pulseEffect 1.5s infinite; /* Pulsing animation */
1383
+
1384
+ }
1385
+
1386
+ @keyframes pulseEffect {
1387
+ 0% {
1388
+ box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);
1389
+ // transform: var(--base-transform) scale(1.05);
1390
+ // background-color: #FFFF0B;
1391
+ }
1392
+ 50% {
1393
+ box-shadow: 0 0 30px 15px rgba(255, 165, 0, 1);
1394
+ // transform: var(--base-transform) scale(1.1);
1395
+ // background-color: #FFFF0B;
1396
+ }
1397
+ 100% {
1398
+ box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);
1399
+ // transform: var(--base-transform) scale(1.05);
1400
+ // background-color: #FFFF0B;
1401
+ }
1402
+ }
1403
1403
  `;
1404
1404
  document.head.appendChild(style);
1405
1405
  }
@@ -1638,11 +1638,8 @@ class AudioPlayer {
1638
1638
  this.resolvePlaybackWait();
1639
1639
  }
1640
1640
  };
1641
- this.audioElement.onstalled = () => {
1642
- if (this.playbackHasStarted) {
1643
- this.resolvePlaybackWait();
1644
- }
1645
- };
1641
+ // Buffering is temporary: keep waiting for the clip to finish.
1642
+ this.audioElement.onstalled = null;
1646
1643
  this.audioElement.onerror = () => {
1647
1644
  if (this.playbackHasStarted) {
1648
1645
  this.resolvePlaybackWait();
@@ -2111,11 +2108,11 @@ function enableReorderDrag(element) {
2111
2108
  onDropToCategory(element, category);
2112
2109
  }
2113
2110
  if (divEl) {
2114
- const keyframes = `
2115
- @keyframes widthDecrease {
2116
- 0% { width: ${divEl.offsetWidth}px; height: ${divEl.offsetHeight}px; }
2117
- 100% { width: 0px; height: 0px;}
2118
- }
2111
+ const keyframes = `
2112
+ @keyframes widthDecrease {
2113
+ 0% { width: ${divEl.offsetWidth}px; height: ${divEl.offsetHeight}px; }
2114
+ 100% { width: 0px; height: 0px;}
2115
+ }
2119
2116
  `;
2120
2117
  const styleSheet = document.styleSheets[0];
2121
2118
  styleSheet.insertRule(keyframes, styleSheet.cssRules.length);
@@ -2124,11 +2121,16 @@ function enableReorderDrag(element) {
2124
2121
  divEl.remove();
2125
2122
  });
2126
2123
  }
2124
+ resetElementStyles(element);
2127
2125
  }
2128
2126
  else {
2129
2127
  if (element.parentElement['type'] !== 'category') {
2130
- executeActions('this.alignMatch=true', divEl, element);
2131
- divEl.replaceWith(element);
2128
+ animateDragToTarget(element, divEl, container);
2129
+ // executeActions('this.alignMatch=true', divEl, element);
2130
+ setTimeout(() => {
2131
+ divEl.replaceWith(element);
2132
+ resetElementStyles(element);
2133
+ }, 500);
2132
2134
  }
2133
2135
  else {
2134
2136
  const categoryElement = element.parentElement;
@@ -2147,13 +2149,16 @@ function enableReorderDrag(element) {
2147
2149
  });
2148
2150
  optionArea.appendChild(element);
2149
2151
  element.classList.remove('dropped');
2152
+ element.classList.remove("category-dropped-onCorrect");
2153
+ element.classList.remove("category-dropped-onInCorrect");
2150
2154
  element.removeAttribute('drop-to');
2151
2155
  if (dummy) {
2152
2156
  dummy.remove();
2153
2157
  }
2158
+ resetElementStyles(element);
2154
2159
  }
2155
2160
  }
2156
- resetElementStyles(element);
2161
+ // resetElementStyles(element);
2157
2162
  return;
2158
2163
  }
2159
2164
  if (findMostoverlappedElement(element, 'blank')) {
@@ -2208,6 +2213,8 @@ function enableReorderDrag(element) {
2208
2213
  resetElementStyles(element);
2209
2214
  dummy.replaceWith(element);
2210
2215
  element.classList.remove('dropped');
2216
+ element.classList.remove("category-dropped-onCorrect");
2217
+ element.classList.remove("category-dropped-onInCorrect");
2211
2218
  element.removeAttribute('drop-to');
2212
2219
  }, 100);
2213
2220
  return;
@@ -2328,11 +2335,11 @@ function moveWithAnimation(target, overlapped) {
2328
2335
  const dummy = createDummyElement(target);
2329
2336
  dummy.style.visibility = 'hidden';
2330
2337
  dummy.setAttribute('type', 'dummy');
2331
- const keyframes = `
2332
- @keyframes widthIncrease {
2333
- 0% { width: 0px; height: 0px; }
2334
- 100% { width: ${target.offsetWidth}px; height: ${target.offsetHeight}px;}
2335
- }
2338
+ const keyframes = `
2339
+ @keyframes widthIncrease {
2340
+ 0% { width: 0px; height: 0px; }
2341
+ 100% { width: ${target.offsetWidth}px; height: ${target.offsetHeight}px;}
2342
+ }
2336
2343
  `;
2337
2344
  if (!overlapped) {
2338
2345
  const overlapCategory = findMostoverlappedElement(target, 'category');
@@ -2377,8 +2384,34 @@ const wordDropComplete = (block, element) => {
2377
2384
  handleShowCheck();
2378
2385
  }
2379
2386
  };
2387
+ const categoryPlayback = new WeakMap();
2388
+ const categoriseCompleted = (container) => {
2389
+ const pendingPlayback = categoryPlayback.get(container);
2390
+ if (pendingPlayback)
2391
+ return pendingPlayback;
2392
+ const playback = playCategories(container).finally(() => {
2393
+ categoryPlayback.delete(container);
2394
+ });
2395
+ categoryPlayback.set(container, playback);
2396
+ return playback;
2397
+ };
2398
+ const playCategories = async (container) => {
2399
+ const allCategoriseBox = container.querySelectorAll('[type="category"]');
2400
+ const audioPlayer = AudioPlayer.getI();
2401
+ for (const categoryBox of Array.from(allCategoriseBox)) {
2402
+ const headingElement = categoryBox.parentElement.children[0];
2403
+ await audioPlayer.play(headingElement);
2404
+ for (const child of Array.from(categoryBox.children)) {
2405
+ child.scrollIntoView({
2406
+ behavior: 'smooth',
2407
+ block: 'end' // Aligns the bottom of the child with the bottom of the container
2408
+ });
2409
+ await audioPlayer.play(child);
2410
+ }
2411
+ }
2412
+ };
2380
2413
  async function onDropToCategory(dragElement, categoryElement) {
2381
- dragElement.classList.add('dropped');
2414
+ // dragElement.classList.add('dropped');
2382
2415
  let dragSelected = buildDragSelectedMapFromDOM();
2383
2416
  let elementArr = dragSelected[categoryElement.getAttribute('tab-index')];
2384
2417
  if (Array.isArray(elementArr)) {
@@ -73004,11 +73037,11 @@ const afterDropDragHandling = (dragElement, dropElement) => {
73004
73037
  }
73005
73038
  dummyElement.setAttribute('id', dragElement.getAttribute('id'));
73006
73039
  dragElement.replaceWith(dummyElement);
73007
- const keyframes = `
73008
- @keyframes widthDecrease {
73009
- 0% { width: ${dragElement.style.width}; height: ${dragElement.style.height}; margin: ${dragElement.style.margin}; }
73010
- 100% { width: 0px; height: 0px; margin: 0px;}
73011
- }
73040
+ const keyframes = `
73041
+ @keyframes widthDecrease {
73042
+ 0% { width: ${dragElement.style.width}; height: ${dragElement.style.height}; margin: ${dragElement.style.margin}; }
73043
+ 100% { width: 0px; height: 0px; margin: 0px;}
73044
+ }
73012
73045
  `;
73013
73046
  if (!isInfinite) {
73014
73047
  dummyElement.style.width = element.style.width;
@@ -73232,6 +73265,8 @@ async function onActivityComplete(dragElement, dropElement) {
73232
73265
  // storingEachActivityScore(isCorrect);
73233
73266
  if (isCorrect) {
73234
73267
  if (dropElement.getAttribute('type') === "category") {
73268
+ dragElement.classList.remove("category-dropped-onInCorrect");
73269
+ dragElement.classList.add("category-dropped-onCorrect");
73235
73270
  gameScore.rightMoves += 1;
73236
73271
  console.log("Right Moves : ", gameScore.rightMoves);
73237
73272
  console.log("Wrong Moves : ", gameScore.wrongMoves);
@@ -73249,9 +73284,33 @@ async function onActivityComplete(dragElement, dropElement) {
73249
73284
  }
73250
73285
  else {
73251
73286
  if (dropElement.getAttribute('type') === "category") {
73287
+ dragElement.classList.remove("category-dropped-onCorrect");
73288
+ dragElement.classList.add("category-dropped-onInCorrect");
73252
73289
  gameScore.wrongMoves += 1;
73253
73290
  console.log("Right Moves : ", gameScore.rightMoves);
73254
73291
  console.log("Wrong Moves : ", gameScore.wrongMoves);
73292
+ const categorizeArea = container.querySelector(`[type="optionArea"]`);
73293
+ const sameElArr = Array.from(container.querySelectorAll(`[value="${dragElement.getAttribute('value')}"]`));
73294
+ sameElArr.find(el => el !== dragElement && el.tagName === 'DIV');
73295
+ setTimeout(() => {
73296
+ const dummyEl = document.createElement("div");
73297
+ dummyEl.style.width = dragElement.offsetWidth + "px";
73298
+ dummyEl.style.height = dragElement.offsetHeight + "px";
73299
+ categorizeArea.appendChild(dummyEl);
73300
+ const dragX = dragElement.offsetLeft;
73301
+ const dragY = dragElement.offsetTop;
73302
+ dragElement.style.position = "absolute";
73303
+ dragElement.style.transition = '';
73304
+ dragElement.style.transform = `translate(${dragX}px, ${dragY}px)`;
73305
+ animateDragToTarget(dragElement, dummyEl, container);
73306
+ setTimeout(() => {
73307
+ dummyEl.replaceWith(dragElement);
73308
+ resetElementStyles(dragElement);
73309
+ dragElement.classList.remove("category-dropped-onInCorrect");
73310
+ dragElement.classList.remove("dropped");
73311
+ dragElement.removeAttribute("drop-to");
73312
+ }, 1000);
73313
+ }, 2000);
73255
73314
  }
73256
73315
  const onInCorrect = dropElement.getAttribute('onInCorrect');
73257
73316
  if (onInCorrect && !isBlender) {
@@ -73346,7 +73405,8 @@ const storeActivityScore = (score) => {
73346
73405
  ACTIVYTY_TIME_SPEND_ARRAY.length = 0;
73347
73406
  }
73348
73407
  };
73349
- const handleShowCheck = () => {
73408
+ const pendingCategoryChecks = new WeakSet();
73409
+ const handleShowCheck = async () => {
73350
73410
  var _a, _b, _c;
73351
73411
  const container = document.getElementById(LidoContainer);
73352
73412
  const objectiveString = container['objective'];
@@ -73361,7 +73421,20 @@ const handleShowCheck = () => {
73361
73421
  (_b = checkButton === null || checkButton === void 0 ? void 0 : checkButton.classList) === null || _b === void 0 ? void 0 : _b.remove('lido-disable-check-button');
73362
73422
  }
73363
73423
  else {
73364
- if (!container.getAttribute("game-completed") && !container.querySelector("[type='slide']") && !container.querySelector("[type='category']") && ((_c = container.getAttribute('dropAttr')) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== DropMode.EnableAnimation.toLowerCase()) {
73424
+ if (!container.getAttribute("game-completed") && !container.querySelector("[type='slide']") && ((_c = container.getAttribute('dropAttr')) === null || _c === void 0 ? void 0 : _c.toLowerCase()) !== DropMode.EnableAnimation.toLowerCase()) {
73425
+ if (container.querySelector("[type='category']")) {
73426
+ if (pendingCategoryChecks.has(container))
73427
+ return;
73428
+ pendingCategoryChecks.add(container);
73429
+ try {
73430
+ await categoriseCompleted(container);
73431
+ await validateObjectiveStatus();
73432
+ }
73433
+ finally {
73434
+ pendingCategoryChecks.delete(container);
73435
+ }
73436
+ return;
73437
+ }
73365
73438
  validateObjectiveStatus();
73366
73439
  }
73367
73440
  }
@@ -2,10 +2,10 @@ const NAMESPACE = 'lido-player';
2
2
  const BUILD = /* lido-player */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
3
3
 
4
4
  const globalScripts = () => {};
5
- const globalStyles = "@font-face{font-family:'Baloo Bhai 2';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/offline-assets/fonts/Baloo-Bhai-2/Baloo-Bhai-2-Variable.woff2') format('woff2')}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-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}.lido-tts-highlight-overlay{position:fixed;left:0;top:0;pointer-events:none;z-index:9999;background:linear-gradient(\r\n 180deg,\r\n rgba(255, 235, 59, 0.95),\r\n rgba(255, 214, 0, 0.95)\r\n );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18),\r\n inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:width 25ms ease-out,\r\n height 25ms ease-out,\r\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height;contain:layout paint style}";
5
+ const globalStyles = "@font-face{font-family:'Baloo Bhai 2';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/offline-assets/fonts/Baloo-Bhai-2/Baloo-Bhai-2-Variable.woff2') format('woff2')}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-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}.lido-tts-highlight-overlay{position:fixed;left:0;top:0;pointer-events:none;z-index:9999;background:linear-gradient(\n 180deg,\n rgba(255, 235, 59, 0.95),\n rgba(255, 214, 0, 0.95)\n );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18),\n inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:width 25ms ease-out,\n height 25ms ease-out,\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height;contain:layout paint style}.category-dropped-onCorrect{box-shadow:rgba(129, 193, 39, 1) 0px 8px 8px 0px !important}.category-dropped-onInCorrect{box-shadow:rgba(255, 4, 16, 1) 0px 8px 8px 0px !important}";
6
6
 
7
7
  /*
8
- Stencil Client Platform v4.44.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.43.5 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
 
@@ -93,9 +93,7 @@ var consoleError = (e, el) => (0, console.error)(e, el);
93
93
 
94
94
  // src/client/client-load-module.ts
95
95
  var cmpModules = /* @__PURE__ */ new Map();
96
- var failedLoadAttempts = /* @__PURE__ */ new Map();
97
96
  var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
98
- var _a;
99
97
  const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
100
98
  const bundleId = cmpMeta.$lazyBundleId$;
101
99
  if (!bundleId) {
@@ -105,11 +103,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
105
103
  if (module) {
106
104
  return module[exportName];
107
105
  }
108
- const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
109
- const cacheBustParams = [
110
- retryCount > 0 ? `s-retry=${retryCount}` : "",
111
- ""
112
- ].filter(Boolean).join("&");
113
106
 
114
107
  if (!hmrVersionId || !BUILD.hotModuleReplacement) {
115
108
  const processMod = importedModule => {
@@ -129,17 +122,15 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
129
122
  /* webpackInclude: /\.entry\.js$/ */
130
123
  /* webpackExclude: /\.system\.entry\.js$/ */
131
124
  /* webpackMode: "lazy" */
132
- `./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
125
+ `./${bundleId}.entry.js${""}`
133
126
  ).then(
134
127
  (importedModule) => {
135
128
  {
136
- failedLoadAttempts.delete(bundleId);
137
129
  cmpModules.set(bundleId, importedModule);
138
130
  }
139
131
  return importedModule[exportName];
140
132
  },
141
133
  (e) => {
142
- failedLoadAttempts.set(bundleId, retryCount + 1);
143
134
  consoleError(e, hostRef.$hostElement$);
144
135
  }
145
136
  );
@@ -150,8 +141,6 @@ var styles = /* @__PURE__ */ new Map();
150
141
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
151
142
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
152
143
  var XLINK_NS = "http://www.w3.org/1999/xlink";
153
- var MAX_LAZY_LOAD_RETRIES = 3;
154
- var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
155
144
  var win = typeof window !== "undefined" ? window : {};
156
145
  var plt = {
157
146
  $flags$: 0,
@@ -178,10 +167,6 @@ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @_
178
167
  var queuePending = false;
179
168
  var queueDomReads = [];
180
169
  var queueDomWrites = [];
181
- var scheduleFlush = () => {
182
- var _a;
183
- return ((_a = win.document) == null ? void 0 : _a.hidden) ? nextTick(flush) : plt.raf(flush);
184
- };
185
170
  var queueTask = (queue, write) => (cb) => {
186
171
  queue.push(cb);
187
172
  if (!queuePending) {
@@ -189,7 +174,7 @@ var queueTask = (queue, write) => (cb) => {
189
174
  if (write && plt.$flags$ & 4 /* queueSync */) {
190
175
  nextTick(flush);
191
176
  } else {
192
- scheduleFlush();
177
+ plt.raf(flush);
193
178
  }
194
179
  }
195
180
  };
@@ -208,7 +193,7 @@ var flush = () => {
208
193
  {
209
194
  consume(queueDomWrites);
210
195
  if (queuePending = queueDomReads.length > 0) {
211
- scheduleFlush();
196
+ plt.raf(flush);
212
197
  }
213
198
  }
214
199
  };
@@ -289,7 +274,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
289
274
  slottedNodes.push(childNode);
290
275
  if (typeof slotName !== "undefined") return slottedNodes;
291
276
  }
292
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
277
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
293
278
  }
294
279
  return slottedNodes;
295
280
  }
@@ -533,11 +518,6 @@ var h = (nodeName, vnodeData, ...children) => {
533
518
  } else if (child != null && typeof child !== "boolean") {
534
519
  if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
535
520
  child = String(child);
536
- } else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
537
- {
538
- consoleError("Invalid vNode child");
539
- }
540
- continue;
541
521
  }
542
522
  if (simple && lastSimple) {
543
523
  vNodeChildren[vNodeChildren.length - 1].$text$ += child;
@@ -782,7 +762,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
782
762
  }
783
763
  }
784
764
  if (newValue == null || newValue === false) {
785
- if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
765
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
786
766
  if (xlink) {
787
767
  elm.removeAttributeNS(XLINK_NS, memberName);
788
768
  } else {
@@ -799,8 +779,6 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
799
779
  }
800
780
  }
801
781
  };
802
- var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
803
- var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
804
782
  var parseClassListRegex = /\s/;
805
783
  var parseClassList = (value) => {
806
784
  if (typeof value === "object" && value && "baseVal" in value) {
@@ -1168,10 +1146,7 @@ var markSlotContentForRelocation = (elm) => {
1168
1146
  const slotName = childNode["s-sn"];
1169
1147
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1170
1148
  node = hostContentNodes[j];
1171
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && // let an exact named-slot match override a stale default-slot claim. Skip this for
1172
- // `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which
1173
- // would trivially "match" on every re-render and force pointless re-insertion.
1174
- (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"] || slotName !== "" && getSlotName(node) === slotName)) {
1149
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!node["s-sh"] || node["s-sh"] !== childNode["s-hn"])) {
1175
1150
  if (isNodeLocatedInSlot(node, slotName)) {
1176
1151
  let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1177
1152
  checkSlotFallbackVisibility = true;
@@ -1239,7 +1214,7 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
1239
1214
  return newNode;
1240
1215
  }
1241
1216
  }
1242
- if ((parent == null ? void 0 : parent.__insertBefore)) {
1217
+ if (parent.__insertBefore) {
1243
1218
  return parent.__insertBefore(newNode, reference);
1244
1219
  } else {
1245
1220
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
@@ -1606,7 +1581,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1606
1581
  };
1607
1582
 
1608
1583
  // src/runtime/proxy-component.ts
1609
- var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
1610
1584
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1611
1585
  var _a, _b;
1612
1586
  const prototype = Cstr.prototype;
@@ -1739,13 +1713,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1739
1713
  return;
1740
1714
  }
1741
1715
  const propFlags = members.find(([m]) => m === propName);
1742
- const propMemberFlags = propFlags ? propFlags[1][0] : 0;
1743
- const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
1744
- if (propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds
1745
- // one is always external
1746
- !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {
1747
- return;
1748
- }
1716
+ const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
1749
1717
  const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1750
1718
  if (isBooleanTarget) {
1751
1719
  newValue = newValue === null || newValue === "false" ? false : true;
@@ -1777,12 +1745,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1777
1745
 
1778
1746
  // src/runtime/initialize-component.ts
1779
1747
  var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1780
- var _a;
1781
1748
  let Cstr;
1782
1749
  try {
1783
1750
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1784
1751
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1785
- hostRef.$flags$ &= -1025 /* hasFailedLoad */;
1786
1752
  const bundleId = cmpMeta.$lazyBundleId$;
1787
1753
  if (bundleId) {
1788
1754
  const CstrImport = loadModule(cmpMeta, hostRef);
@@ -1794,11 +1760,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1794
1760
  Cstr = CstrImport;
1795
1761
  }
1796
1762
  if (!Cstr) {
1797
- hostRef.$flags$ &= -33 /* hasInitializedComponent */;
1798
- hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
1799
- if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
1800
- hostRef.$flags$ |= 1024 /* hasFailedLoad */;
1801
- }
1802
1763
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1803
1764
  }
1804
1765
  if (!Cstr.isProxied) {
@@ -1863,7 +1824,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1863
1824
  hostRef.$onRenderResolve$();
1864
1825
  hostRef.$onRenderResolve$ = void 0;
1865
1826
  }
1866
- if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
1827
+ if (hostRef.$onReadyResolve$) {
1867
1828
  hostRef.$onReadyResolve$(elm);
1868
1829
  }
1869
1830
  }
@@ -1915,8 +1876,6 @@ var connectedCallback = (elm) => {
1915
1876
  } else {
1916
1877
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1917
1878
  fireConnectedCallback(hostRef.$lazyInstance$, elm);
1918
- } else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
1919
- setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
1920
1879
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1921
1880
  hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1922
1881
  }
@@ -2043,7 +2002,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2043
2002
  }
2044
2003
  disconnectedCallback() {
2045
2004
  plt.jmp(() => disconnectedCallback(this));
2046
- nextTick(() => {
2005
+ plt.raf(() => {
2047
2006
  var _a3;
2048
2007
  const hostRef = getHostRef(this);
2049
2008
  if (!hostRef) {
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { $ as format } from './index-D-29PaRa.js';
2
- import './index-BeHFCsWf.js';
1
+ export { $ as format } from './index-B-VyHxJa.js';
2
+ import './index-mMpK8062.js';