lido-player 0.0.2-beta-25-dev → 0.0.2-beta-26-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 (236) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{decode-BSImuLEU.js → decode-CE64w_Pc.js} +1 -1
  3. package/dist/cjs/{index-DRw2yVbg.js → index-Cf9LHdIw.js} +126 -60
  4. package/dist/cjs/{index-DBCFoh1I.js → index-DnaH8sO-.js} +1 -1
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/lido-avatar_22.cjs.entry.js +103 -42
  7. package/dist/cjs/lido-player.cjs.js +2 -2
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/collection/components/avatar/lido-avatar.css +4 -4
  10. package/dist/collection/components/avatar/lido-avatar.js +1 -1
  11. package/dist/collection/components/avatar/lido-avatar.tsx +214 -214
  12. package/dist/collection/components/avatar/readme.md +49 -49
  13. package/dist/collection/components/calculator/lido-calculator.css +89 -89
  14. package/dist/collection/components/calculator/lido-calculator.js +2 -2
  15. package/dist/collection/components/canvas/lido-canvas.css +33 -33
  16. package/dist/collection/components/canvas/lido-canvas.js +1 -1
  17. package/dist/collection/components/cell/lido-cell.css +100 -100
  18. package/dist/collection/components/cell/lido-cell.js +12 -12
  19. package/dist/collection/components/column/lido-col.css +19 -19
  20. package/dist/collection/components/column/lido-col.js +6 -6
  21. package/dist/collection/components/container/lido-container.css +34 -34
  22. package/dist/collection/components/container/lido-container.js +8 -8
  23. package/dist/collection/components/flashCard/lido-flash-card.css +72 -72
  24. package/dist/collection/components/flashCard/lido-flash-card.js +72 -12
  25. package/dist/collection/components/float/lido-float.css +30 -30
  26. package/dist/collection/components/float/lido-float.js +2 -2
  27. package/dist/collection/components/home/lido-home.css +309 -309
  28. package/dist/collection/components/home/lido-home.js +35 -8
  29. package/dist/collection/components/image/lido-image.css +17 -17
  30. package/dist/collection/components/image/lido-image.js +6 -6
  31. package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
  32. package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
  33. package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
  34. package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
  35. package/dist/collection/components/position/lido-pos.css +16 -16
  36. package/dist/collection/components/position/lido-pos.js +2 -2
  37. package/dist/collection/components/random/lido-random.css +8 -8
  38. package/dist/collection/components/random/lido-random.js +2 -2
  39. package/dist/collection/components/root/lido-root.js +5 -5
  40. package/dist/collection/components/row/lido-row.css +10 -10
  41. package/dist/collection/components/row/lido-row.js +6 -6
  42. package/dist/collection/components/scale/assets/Shadow.svg +9 -9
  43. package/dist/collection/components/scale/lido-balance.css +174 -174
  44. package/dist/collection/components/scale/lido-balance.js +13 -13
  45. package/dist/collection/components/shape/lido-shape.css +216 -216
  46. package/dist/collection/components/shape/lido-shape.js +6 -6
  47. package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
  48. package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
  49. package/dist/collection/components/text/lido-text.css +53 -53
  50. package/dist/collection/components/text/lido-text.js +6 -6
  51. package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
  52. package/dist/collection/components/trace/lido-trace.css +97 -97
  53. package/dist/collection/components/trace/lido-trace.js +2 -2
  54. package/dist/collection/components/wrap/lido-wrap.css +18 -18
  55. package/dist/collection/components/wrap/lido-wrap.js +6 -6
  56. package/dist/collection/css/animation.css +211 -211
  57. package/dist/collection/css/index.css +323 -323
  58. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
  59. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
  60. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
  61. package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
  62. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
  63. package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
  64. package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
  65. package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
  66. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
  67. package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
  68. package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
  69. package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
  70. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
  71. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
  72. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
  73. package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
  74. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
  75. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
  76. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
  77. package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
  78. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
  79. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
  80. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
  81. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
  82. package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
  83. package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
  84. package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
  85. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
  86. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
  87. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
  88. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
  89. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
  90. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
  91. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
  92. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
  93. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
  94. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
  95. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
  96. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
  97. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
  98. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
  99. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
  100. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
  101. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
  102. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
  103. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
  104. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
  105. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
  106. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
  107. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
  108. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
  109. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
  110. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
  111. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
  112. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
  113. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
  114. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
  115. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
  116. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
  117. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
  118. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
  119. package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
  120. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
  121. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
  122. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
  123. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
  124. package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +633 -633
  125. package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
  126. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
  127. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
  128. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
  129. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
  130. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
  131. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
  132. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
  133. package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
  134. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
  135. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
  136. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
  137. package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
  138. package/dist/collection/stories/Templates/total/total.stories.js +28 -28
  139. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
  140. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
  141. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
  142. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
  143. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
  144. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
  145. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
  146. package/dist/collection/stories/components/flash-card.stories.js +48 -48
  147. package/dist/collection/stories/components/keyboard.stories.js +10 -10
  148. package/dist/collection/stories/components/slider.stories.js +4 -4
  149. package/dist/collection/stories/components/trace.stories.js +5 -5
  150. package/dist/collection/utils/audioPlayer.js +7 -2
  151. package/dist/collection/utils/constants.js +6 -0
  152. package/dist/collection/utils/utils.js +59 -7
  153. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +8 -8
  154. package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
  155. package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
  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-image.js +1 -1
  168. package/dist/components/lido-keyboard.js +1 -1
  169. package/dist/components/lido-math-matrix.js +1 -1
  170. package/dist/components/lido-pos.js +1 -1
  171. package/dist/components/lido-random.js +1 -1
  172. package/dist/components/lido-root.js +1 -1
  173. package/dist/components/lido-row.js +1 -1
  174. package/dist/components/lido-shape.js +1 -1
  175. package/dist/components/lido-slide-fill.js +1 -1
  176. package/dist/components/lido-text.js +1 -1
  177. package/dist/components/lido-trace.js +1 -1
  178. package/dist/components/lido-wrap.js +1 -1
  179. package/dist/components/p-B4iWvszS.js +1 -0
  180. package/dist/components/{p-Cf85Nc-6.js → p-BA-XmR9g.js} +1 -1
  181. package/dist/components/p-BJt-z8VW.js +1 -0
  182. package/dist/components/{p-CTlcpv4a.js → p-BfwUqpXc.js} +1 -1
  183. package/dist/components/{p-DNo3iX_r.js → p-BiBt9LGP.js} +1 -1
  184. package/dist/components/{p-DG0KR2iN.js → p-BlN0IsR4.js} +1 -1
  185. package/dist/components/{p-BSWrnLbC.js → p-BpVpANK9.js} +1 -1
  186. package/dist/components/{p-CgsPIpg0.js → p-Bw-OC9iR.js} +1 -1
  187. package/dist/components/p-C2J7-bcH.js +1 -0
  188. package/dist/components/{p-BfJG1wmU.js → p-CEmofYPx.js} +1 -1
  189. package/dist/components/{p-C5WmmkI6.js → p-CPYnt0P-.js} +1 -1
  190. package/dist/components/{p-CsDu4kiC.js → p-ChfVUoX4.js} +1 -1
  191. package/dist/components/{p-AaE392x7.js → p-CnQ-4EIw.js} +1 -1
  192. package/dist/components/{p-CXHPZN3m.js → p-CyGxEcn7.js} +1 -1
  193. package/dist/components/{p-CuDMRxx_.js → p-D1cBkIab.js} +1 -1
  194. package/dist/components/p-DP6jQ5ML.js +1 -0
  195. package/dist/components/{p-BW0855oZ.js → p-DV-k1ulI.js} +1 -1
  196. package/dist/components/p-Qhj9-H6e.js +12 -0
  197. package/dist/components/{p-CVZEVfip.js → p-hUfX1As2.js} +1 -1
  198. package/dist/components/p-leIEepjl.js +1 -0
  199. package/dist/components/{p-CK9M0Kcf.js → p-s4oGlKg6.js} +1 -1
  200. package/dist/components/{p-C70ykycD.js → p-useuhkjH.js} +1 -1
  201. package/dist/esm/{decode-D2f5bktc.js → decode-DhjaTUf2.js} +1 -1
  202. package/dist/esm/{index-BB56Mo3L.js → index-Bc6Y7rds.js} +124 -61
  203. package/dist/esm/{index-mMpK8062.js → index-Dvjbti-h.js} +1 -1
  204. package/dist/esm/index.js +2 -2
  205. package/dist/esm/lido-avatar_22.entry.js +103 -42
  206. package/dist/esm/lido-player.js +3 -3
  207. package/dist/esm/loader.js +3 -3
  208. package/dist/lido-player/assets/Shadow.svg +9 -9
  209. package/dist/lido-player/assets/Tracing-hand.svg +8 -8
  210. package/dist/lido-player/index.esm.js +1 -1
  211. package/dist/lido-player/lido-avatar.css +4 -4
  212. package/dist/lido-player/lido-avatar.tsx +214 -214
  213. package/dist/lido-player/lido-player.css +7 -7
  214. package/dist/lido-player/lido-player.esm.js +1 -1
  215. package/dist/lido-player/{p-DSlo480E.js → p-CORilAH-.js} +1 -1
  216. package/dist/lido-player/p-D66K5DXn.js +1 -0
  217. package/dist/lido-player/p-Dvjbti-h.js +2 -0
  218. package/dist/lido-player/p-ca195982.entry.js +12 -0
  219. package/dist/lido-player/readme.md +49 -49
  220. package/dist/types/components/flashCard/lido-flash-card.d.ts +2 -0
  221. package/dist/types/components.d.ts +1 -0
  222. package/dist/types/types/json.d.ts +3 -3
  223. package/dist/types/utils/audioPlayer.d.ts +1 -1
  224. package/dist/types/utils/constants.d.ts +2 -0
  225. package/dist/types/utils/utils.d.ts +4 -0
  226. package/package.json +73 -73
  227. package/readme.md +113 -113
  228. package/dist/components/p-B-mIxynb.js +0 -1
  229. package/dist/components/p-CSxwfvl3.js +0 -1
  230. package/dist/components/p-DONbWJGn.js +0 -1
  231. package/dist/components/p-DPGOqpde.js +0 -1
  232. package/dist/components/p-DXy70SGv.js +0 -1
  233. package/dist/components/p-i3W5bJbL.js +0 -12
  234. package/dist/lido-player/p-53d245b0.entry.js +0 -12
  235. package/dist/lido-player/p-DKuh-2gv.js +0 -1
  236. package/dist/lido-player/p-mMpK8062.js +0 -2
@@ -4,8 +4,9 @@
4
4
  * controllable `flipped` prop.
5
5
  * ------------------------------------------------------------------*/
6
6
  import { Host, h } from "@stencil/core";
7
- import { parseProp, initEventsForElement, setVisibilityWithDelay, executeActions } from "../../utils/utils";
7
+ import { parseProp, initEventsForElement, setVisibilityWithDelay, executeActions, getGoodJobAudio, shouldPlayGoodJobAudio } from "../../utils/utils";
8
8
  import { AudioPlayer } from "../../utils/audioPlayer";
9
+ import { TemplateID } from "../../utils/constants";
9
10
  export class LidoFlash {
10
11
  constructor() {
11
12
  /* ---------- Generic Lido props (mirrors lido‑row) ---------- */
@@ -88,6 +89,7 @@ export class LidoFlash {
88
89
  this.narrationHandled = false;
89
90
  this.instructionDone = false;
90
91
  this.instructionStarted = false;
92
+ this.shouldPlayTemplateInstruction = true;
91
93
  this.onAudioStarted = (event) => {
92
94
  var _a;
93
95
  const target = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
@@ -293,18 +295,20 @@ export class LidoFlash {
293
295
  if (!arrow.getAttribute('onTouch'))
294
296
  arrow.setAttribute('onTouch', "this.nextBtn='true';");
295
297
  const mascot = container.querySelector('#lido-avatar');
296
- const scaffoldAudio = arrow.getAttribute('audio');
297
- if (mascot && scaffoldAudio) {
298
+ const originalAudio = (mascot === null || mascot === void 0 ? void 0 : mascot.getAttribute('audio')) || undefined;
299
+ const scaffoldAudio = getGoodJobAudio(arrow) || originalAudio;
300
+ const shouldPlayGoodJob = shouldPlayGoodJobAudio(arrow);
301
+ if (mascot && scaffoldAudio && shouldPlayGoodJob) {
298
302
  mascot.setAttribute('audio', scaffoldAudio);
299
303
  }
300
304
  this.setArrowVisible(true);
301
305
  // Keep the next action highlighted after mascot audio ends.
302
306
  arrow.classList.add('flash-card-next-glowing');
303
- if (mascot) {
307
+ if (mascot && shouldPlayGoodJob) {
304
308
  this.goodJobPlaybackContext = {};
305
309
  this.goodJobPlaybackId = undefined;
306
310
  executeActions("this.avatarAnimate='Idle speak'", mascot);
307
- AudioPlayer.getI().play(mascot, true, this.goodJobPlaybackContext);
311
+ AudioPlayer.getI().play(mascot, true, this.goodJobPlaybackContext, originalAudio);
308
312
  }
309
313
  };
310
314
  this.setArrowVisible = (visible) => {
@@ -345,7 +349,7 @@ export class LidoFlash {
345
349
  window.addEventListener('load', this.updateStyles);
346
350
  }
347
351
  componentDidLoad() {
348
- var _a;
352
+ var _a, _b;
349
353
  setVisibilityWithDelay(this.el, this.delayVisible);
350
354
  initEventsForElement(this.el, this.type);
351
355
  window.addEventListener('lidoAudioStarted', this.onAudioStarted);
@@ -353,9 +357,17 @@ export class LidoFlash {
353
357
  window.addEventListener('lidoAudioEnded', this.onAudioEnded);
354
358
  const container = this.el.closest('lido-container');
355
359
  if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) === 'flashcardtemplate') {
356
- (_a = container.querySelector('#lido-avatar')) === null || _a === void 0 ? void 0 : _a.setAttribute('disable-speak', 'true');
360
+ const home = container.closest('lido-home');
361
+ const playedTemplates = ((_a = home === null || home === void 0 ? void 0 : home.getAttribute(TemplateID)) === null || _a === void 0 ? void 0 : _a.split(',').map(value => value.trim()).filter(Boolean)) || [];
362
+ this.shouldPlayTemplateInstruction = !playedTemplates.includes('flashcardtemplate');
363
+ (_b = container.querySelector('#lido-avatar')) === null || _b === void 0 ? void 0 : _b.setAttribute('disable-speak', 'true');
357
364
  this.instructionStartTimer = window.setTimeout(() => {
358
365
  if (!this.instructionStarted && !this.instructionDone) {
366
+ if (!this.shouldPlayTemplateInstruction) {
367
+ this.instructionDone = true;
368
+ this.speakFront();
369
+ return;
370
+ }
359
371
  const instruction = this.instructionText();
360
372
  if (instruction)
361
373
  this.startNarration(instruction);
@@ -378,14 +390,37 @@ export class LidoFlash {
378
390
  window.removeEventListener('resize', this.updateStyles);
379
391
  window.removeEventListener('load', this.updateStyles);
380
392
  }
393
+ async replayGoodJobAudio() {
394
+ const container = this.el.closest('lido-container');
395
+ if ((container === null || container === void 0 ? void 0 : container.getAttribute('template-id')) !== 'flashcardtemplate')
396
+ return;
397
+ const arrow = this.nextArrow();
398
+ const mascot = container.querySelector('#lido-avatar');
399
+ if (!arrow || !mascot)
400
+ return;
401
+ const arrowVisible = arrow.getAttribute('visible') === 'true'
402
+ || arrow.style.visibility === 'visible';
403
+ if (!arrowVisible)
404
+ return;
405
+ const originalAudio = mascot.getAttribute('audio') || undefined;
406
+ const localizedAudio = getGoodJobAudio(arrow);
407
+ const replayAudio = localizedAudio || originalAudio;
408
+ if (!replayAudio)
409
+ return;
410
+ mascot.setAttribute('audio', replayAudio);
411
+ this.goodJobPlaybackContext = {};
412
+ this.goodJobPlaybackId = undefined;
413
+ executeActions("this.avatarAnimate='Idle speak'", mascot);
414
+ await AudioPlayer.getI().play(mascot, true, this.goodJobPlaybackContext, originalAudio);
415
+ }
381
416
  /* ---------- Render ---------- */
382
417
  render() {
383
- return (h(Host, { key: '57b9dc5ecf618dc381a58e107fa2990b84f5517a', value: this.value, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, type: this.type, onClick: (event) => {
418
+ return (h(Host, { key: 'b6012ba4855d142b6fdbad9dcfd7251bfcbb932b', value: this.value, "tab-index": this.tabIndex, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, type: this.type, onClick: (event) => {
384
419
  var _a, _b;
385
420
  if ((_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest) === null || _b === void 0 ? void 0 : _b.call(_a, '#lido-avatar'))
386
421
  return;
387
422
  this.handleFlip();
388
- }, "disable-speak": this.disableSpeak }, h("div", { key: '3712fc66e33323bdd55e0abb747370ee461dc808', class: `card ${this.flipped ? 'flipped' : ''}` }, h("div", { key: 'eb8af2e445393592c0e8a3e4c5934c71dcab4b4e', class: "card-face card-front" }, this.front != null ? this.front : h("slot", { name: "front" })), h("div", { key: 'efa14cc7ea506714342151b12a9724bdcdb1eba8', class: "card-face card-back" }, this.back != null ? this.back : h("slot", { name: "back" })))));
423
+ }, "disable-speak": this.disableSpeak }, h("div", { key: 'fecb100c8ac0f227d8bd685d02f8314e9018fe02', class: `card ${this.flipped ? 'flipped' : ''}` }, h("div", { key: 'e89512323ad8eb884548a1dead734f635c096c8f', class: "card-face card-front" }, this.front != null ? this.front : h("slot", { name: "front" })), h("div", { key: '82820aaf5b5febcf8247f96faca59976b8fade8e', class: "card-face card-back" }, this.back != null ? this.back : h("slot", { name: "back" })))));
389
424
  }
390
425
  static get is() { return "lido-flash-card"; }
391
426
  static get originalStyleUrls() {
@@ -752,7 +787,7 @@ export class LidoFlash {
752
787
  "optional": false,
753
788
  "docs": {
754
789
  "tags": [],
755
- "text": "The number of child elements that should be displayed inside the row.\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
790
+ "text": "The number of child elements that should be displayed inside the row.\r\nThis value is dynamically adjusted based on `minLength` and `maxLength`."
756
791
  },
757
792
  "getter": false,
758
793
  "setter": false,
@@ -828,7 +863,7 @@ export class LidoFlash {
828
863
  "optional": false,
829
864
  "docs": {
830
865
  "tags": [],
831
- "text": "Whether the card is flipped (back side visible).\n`mutable` lets the component toggle itself on click;\n`reflect` keeps the `<lido-flash-card flipped>` attribute in sync."
866
+ "text": "Whether the card is flipped (back side visible).\r\n`mutable` lets the component toggle itself on click;\r\n`reflect` keeps the `<lido-flash-card flipped>` attribute in sync."
832
867
  },
833
868
  "getter": false,
834
869
  "setter": false,
@@ -868,7 +903,7 @@ export class LidoFlash {
868
903
  "optional": false,
869
904
  "docs": {
870
905
  "tags": [],
871
- "text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
906
+ "text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
872
907
  },
873
908
  "getter": false,
874
909
  "setter": false,
@@ -923,6 +958,31 @@ export class LidoFlash {
923
958
  "style": {}
924
959
  };
925
960
  }
961
+ static get methods() {
962
+ return {
963
+ "replayGoodJobAudio": {
964
+ "complexType": {
965
+ "signature": "() => Promise<void>",
966
+ "parameters": [],
967
+ "references": {
968
+ "Promise": {
969
+ "location": "global",
970
+ "id": "global::Promise"
971
+ },
972
+ "HTMLElement": {
973
+ "location": "global",
974
+ "id": "global::HTMLElement"
975
+ }
976
+ },
977
+ "return": "Promise<void>"
978
+ },
979
+ "docs": {
980
+ "text": "",
981
+ "tags": []
982
+ }
983
+ }
984
+ };
985
+ }
926
986
  static get elementRef() { return "el"; }
927
987
  static get watchers() {
928
988
  return [{
@@ -1,30 +1,30 @@
1
- .lido-float {
2
- position: relative;
3
- }
4
-
5
- .lido-float > * {
6
- position: absolute;
7
- cursor: pointer;
8
- }
9
-
10
- @keyframes float-up {
11
- from {
12
- top: var(--el-top);
13
- }
14
- to {
15
- top: -500px;
16
- }
17
- }
18
-
19
- #removeShadow {
20
- box-shadow: unset !important;
21
- }
22
-
23
- @keyframes float-lr {
24
- from {
25
- right: var(--el-left);
26
- }
27
- to {
28
- right: -500px;
29
- }
30
- }
1
+ .lido-float {
2
+ position: relative;
3
+ }
4
+
5
+ .lido-float > * {
6
+ position: absolute;
7
+ cursor: pointer;
8
+ }
9
+
10
+ @keyframes float-up {
11
+ from {
12
+ top: var(--el-top);
13
+ }
14
+ to {
15
+ top: -500px;
16
+ }
17
+ }
18
+
19
+ #removeShadow {
20
+ box-shadow: unset !important;
21
+ }
22
+
23
+ @keyframes float-lr {
24
+ from {
25
+ right: var(--el-left);
26
+ }
27
+ to {
28
+ right: -500px;
29
+ }
30
+ }
@@ -85,7 +85,7 @@ export class LidoFloat {
85
85
  };
86
86
  }
87
87
  render() {
88
- return (h(Host, { key: '26ada4c2834a58fe1f45348a32f9d1dcecb79a14', class: "lido-float", "float-direction": this.floatDirection, id: this.id, "tab-index": this.tabIndex, style: this.style, onEntry: this.onEntry }, h("slot", { key: '6f4ca358f564e268390f221cc1f84af1f303761b' })));
88
+ return (h(Host, { key: 'c461f1142dd6addd9ceb41ade183b044b875681f', class: "lido-float", "float-direction": this.floatDirection, id: this.id, "tab-index": this.tabIndex, style: this.style, onEntry: this.onEntry }, h("slot", { key: '240439bfda6a9e4e2d67e6ae2b5c878d99e632b3' })));
89
89
  }
90
90
  static get is() { return "lido-float"; }
91
91
  static get originalStyleUrls() {
@@ -328,7 +328,7 @@ export class LidoFloat {
328
328
  "optional": false,
329
329
  "docs": {
330
330
  "tags": [],
331
- "text": "Direction of the float element's movement (e.g., 'leftToRight', 'bottomToTop').\nThis can be used to control the animation or positioning of the float elements."
331
+ "text": "Direction of the float element's movement (e.g., 'leftToRight', 'bottomToTop').\r\nThis can be used to control the animation or positioning of the float elements."
332
332
  },
333
333
  "getter": false,
334
334
  "setter": false,