lido-player 0.0.2-beta-24-dev → 0.0.2-beta-24

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 (29) hide show
  1. package/dist/cjs/{decode-B7mZm_nK.js → decode-BCvdWRyT.js} +1 -1
  2. package/dist/cjs/{index-BCRDjbaz.js → index-DjM03fsg.js} +5 -5
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/lido-avatar_22.cjs.entry.js +9 -49
  5. package/dist/collection/components/container/lido-container.css +0 -24
  6. package/dist/collection/components/container/lido-container.js +1 -32
  7. package/dist/collection/components/flashCard/lido-flash-card.js +5 -14
  8. package/dist/components/index.js +1 -1
  9. package/dist/components/lido-container.js +1 -1
  10. package/dist/components/lido-flash-card.js +1 -1
  11. package/dist/components/lido-home.js +1 -1
  12. package/dist/components/lido-root.js +1 -1
  13. package/dist/components/{p-DfjbSSI2.js → p-CgBwmr9A.js} +2 -2
  14. package/dist/components/p-Ckb8QhUV.js +1 -0
  15. package/dist/components/p-DDwqmTYM.js +1 -0
  16. package/dist/esm/{decode-CyhHNDvT.js → decode-BxzUG5XP.js} +1 -1
  17. package/dist/esm/{index-CndbFQ5I.js → index-C_uxZLF-.js} +5 -5
  18. package/dist/esm/index.js +1 -1
  19. package/dist/esm/lido-avatar_22.entry.js +9 -49
  20. package/dist/lido-player/index.esm.js +1 -1
  21. package/dist/lido-player/lido-player.esm.js +1 -1
  22. package/dist/lido-player/{p-d760e67b.entry.js → p-00993d1a.entry.js} +2 -2
  23. package/dist/lido-player/{p-etMb7U6W.js → p-CsCr7DlS.js} +1 -1
  24. package/dist/lido-player/p-v3GBrpv9.js +1 -0
  25. package/dist/types/components/container/lido-container.d.ts +0 -4
  26. package/package.json +1 -1
  27. package/dist/components/p-B-mIxynb.js +0 -1
  28. package/dist/components/p-uuyVO2B1.js +0 -1
  29. package/dist/lido-player/p-77iyGppv.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BCRDjbaz.js');
3
+ var index = require('./index-DjM03fsg.js');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  m.forEach(function (e) {
@@ -32022,15 +32022,15 @@ function _typeof(o) {
32022
32022
  }, _typeof(o);
32023
32023
  }
32024
32024
 
32025
- function toPrimitive(t, r) {
32025
+ function toPrimitive(t, e) {
32026
32026
  if ("object" != _typeof(t) || !t) return t;
32027
- var e = t[Symbol.toPrimitive];
32028
- if (void 0 !== e) {
32029
- var i = e.call(t, r);
32027
+ var r;
32028
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
32029
+ var i = r.call(t, e);
32030
32030
  if ("object" != _typeof(i)) return i;
32031
32031
  throw new TypeError("@@toPrimitive must return a primitive value.");
32032
32032
  }
32033
- return ("string" === r ? String : Number)(t);
32033
+ return ("string" === e ? String : Number)(t);
32034
32034
  }
32035
32035
 
32036
32036
  function toPropertyKey(t) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BCRDjbaz.js');
3
+ var index = require('./index-DjM03fsg.js');
4
4
  require('./index-DBCFoh1I.js');
5
5
 
6
6
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DBCFoh1I.js');
4
- var index$1 = require('./index-BCRDjbaz.js');
4
+ var index$1 = require('./index-DjM03fsg.js');
5
5
 
6
6
  var rive$1 = {exports: {}};
7
7
 
@@ -11936,7 +11936,7 @@ instance
11936
11936
  },
11937
11937
  });
11938
11938
 
11939
- 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}lido-container[template-id="writeCard"] #arrow{box-sizing:border-box;border:10px solid transparent;box-shadow:0px 8px 0px 0px #8b310f;animation:flash-card-next-attention 1.4s ease-in-out infinite}lido-container[template-id="writeCard"] #arrow.fading{opacity:1 !important}@keyframes flash-card-next-attention{0%,100%{border-color:#ffc34d;filter:drop-shadow(0 0 0 rgba(255, 195, 77, 0))}50%{border-color:#fff1a8;filter:drop-shadow(0 0 10px rgba(255, 195, 77, 0.95))}}`;
11939
+ 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}`;
11940
11940
 
11941
11941
  const LidoContainer = class {
11942
11942
  constructor(hostRef) {
@@ -12096,32 +12096,6 @@ const LidoContainer = class {
12096
12096
  this.speakFlag = false;
12097
12097
  this.handleWindowResize = () => this.scaleContainer(this.el);
12098
12098
  this.handleWindowLoad = () => this.scaleContainer(this.el);
12099
- this.isWriteCardContainer = () => this.templateId === 'writeCard';
12100
- this.syncWriteCardArrowHighlight = () => {
12101
- if (!this.isWriteCardContainer())
12102
- return;
12103
- const arrow = this.el.querySelector('#arrow');
12104
- if (!arrow)
12105
- return;
12106
- const style = window.getComputedStyle(arrow);
12107
- const hidden = style.display === 'none' ||
12108
- style.visibility === 'hidden' ||
12109
- style.opacity === '0';
12110
- arrow.classList.toggle('flash-card-next-glowing', !hidden);
12111
- };
12112
- this.observeWriteCardArrow = () => {
12113
- var _a;
12114
- if (!this.isWriteCardContainer())
12115
- return;
12116
- (_a = this.writeCardArrowObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
12117
- this.writeCardArrowObserver = new MutationObserver(() => this.syncWriteCardArrowHighlight());
12118
- this.writeCardArrowObserver.observe(this.el, {
12119
- subtree: true,
12120
- attributes: true,
12121
- attributeFilter: ['class', 'style', 'visible'],
12122
- });
12123
- this.syncWriteCardArrowHighlight();
12124
- };
12125
12099
  }
12126
12100
  cleanupInteractionHandlers() {
12127
12101
  this.el.querySelectorAll('[type="drag"], [type="slide"], [move="true"]').forEach(element => {
@@ -12367,12 +12341,10 @@ const LidoContainer = class {
12367
12341
  setTimeout(() => {
12368
12342
  this.el.setAttribute("onEntry", `${this.templateId}.speak='${!this.speakFlag}'; ` + this.el.getAttribute("onEntry"));
12369
12343
  index$1.initEventsForElement(this.el, this.type);
12370
- this.observeWriteCardArrow();
12371
12344
  }, 100);
12372
12345
  }
12373
12346
  else {
12374
12347
  index$1.initEventsForElement(this.el, this.type);
12375
- this.observeWriteCardArrow();
12376
12348
  }
12377
12349
  if (this.customStyle) {
12378
12350
  const styleElement = document.createElement('style');
@@ -12388,12 +12360,9 @@ const LidoContainer = class {
12388
12360
  index$1.Timer.getI().start();
12389
12361
  }
12390
12362
  disconnectedCallback() {
12391
- var _a;
12392
12363
  this.cleanupInteractionHandlers();
12393
12364
  window.removeEventListener('resize', this.handleWindowResize);
12394
12365
  window.removeEventListener('load', this.handleWindowLoad);
12395
- (_a = this.writeCardArrowObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
12396
- this.writeCardArrowObserver = undefined;
12397
12366
  document.body.style.backgroundColor = '';
12398
12367
  document.body.style.backgroundImage = '';
12399
12368
  index$1.resetFloatState();
@@ -12410,7 +12379,7 @@ const LidoContainer = class {
12410
12379
  margin: this.margin,
12411
12380
  userSelect: 'none', // Prevent any field selection
12412
12381
  };
12413
- return (index.h(index.Host, { key: '403faa36329230b28c8c0e3a627c20b48fc1a9d0', id: "lido-container", Lang: this.Lang, "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}`, "template-id": this.templateId, audio: this.audio, "highlight-word-by-word": `${this.highlightWordByWord}` }, index.h("lido-text", { key: '683740c0a8495c875c988b41b8281a362f7713b8', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: '743c0652d70b294513dcdb3cfdd9674b694cd2e8' })));
12382
+ return (index.h(index.Host, { key: '9dd374c6cdfcc88a5b18e7dc7fec527c853a4719', id: "lido-container", Lang: this.Lang, "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}`, "template-id": this.templateId, audio: this.audio, "highlight-word-by-word": `${this.highlightWordByWord}` }, index.h("lido-text", { key: '8295782a74ce6ef8ca9a623de8a28b539d9f6d4f', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: 'eb3c995b777986e07dcb6aa935ef38d41aa1e7e7' })));
12414
12383
  }
12415
12384
  get el() { return index.getElement(this); }
12416
12385
  static get watchers() { return {
@@ -12531,7 +12500,7 @@ const LidoFlash = class {
12531
12500
  arrow.classList.add('flash-card-next-glowing');
12532
12501
  };
12533
12502
  this.onAudioEnded = (event) => {
12534
- var _a, _b, _c;
12503
+ var _a, _b, _c, _d;
12535
12504
  const target = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
12536
12505
  const instruction = this.instructionText();
12537
12506
  if (!target || (target !== instruction && target.id !== 'lido-avatar' && !this.el.contains(target)))
@@ -12568,6 +12537,7 @@ const LidoFlash = class {
12568
12537
  if (playbackContext !== this.goodJobPlaybackContext || playbackId !== this.goodJobPlaybackId)
12569
12538
  return;
12570
12539
  this.goodJobPlaybackId = undefined;
12540
+ (_d = this.nextArrow()) === null || _d === void 0 ? void 0 : _d.classList.remove('flash-card-next-glowing');
12571
12541
  index$1.executeActions("this.avatarAnimate='Idle'", target);
12572
12542
  }
12573
12543
  };
@@ -12638,19 +12608,11 @@ const LidoFlash = class {
12638
12608
  (_a = this.nextArrow()) === null || _a === void 0 ? void 0 : _a.classList.remove('flash-card-next-glowing');
12639
12609
  };
12640
12610
  this.speakFront = () => {
12641
- var _a, _b;
12611
+ var _a;
12642
12612
  const text = this.frontText();
12643
12613
  if (this.instructionDone && !this.flipped && text && ((_a = text.textContent) === null || _a === void 0 ? void 0 : _a.trim())) {
12644
12614
  this.startNarration(text);
12645
12615
  }
12646
- else if (this.instructionDone && !this.flipped && (!text || !((_b = text.textContent) === null || _b === void 0 ? void 0 : _b.trim()))) {
12647
- if (this.autoFlipTimer)
12648
- window.clearTimeout(this.autoFlipTimer);
12649
- this.autoFlipTimer = window.setTimeout(() => {
12650
- if (!this.flipped)
12651
- this.handleFlip();
12652
- }, this.autoFlipAfter);
12653
- }
12654
12616
  };
12655
12617
  this.clearNarrationTimers = () => {
12656
12618
  if (this.narrationGraceTimer)
@@ -12716,8 +12678,6 @@ const LidoFlash = class {
12716
12678
  mascot.setAttribute('audio', scaffoldAudio);
12717
12679
  }
12718
12680
  this.setArrowVisible(true);
12719
- // Keep the next action highlighted after mascot audio ends.
12720
- arrow.classList.add('flash-card-next-glowing');
12721
12681
  if (mascot) {
12722
12682
  this.goodJobPlaybackContext = {};
12723
12683
  this.goodJobPlaybackId = undefined;
@@ -12798,12 +12758,12 @@ const LidoFlash = class {
12798
12758
  }
12799
12759
  /* ---------- Render ---------- */
12800
12760
  render() {
12801
- return (index.h(index.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) => {
12761
+ return (index.h(index.Host, { key: '9098ad4c1f41ac70e6737438209f2f3027153b3b', 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) => {
12802
12762
  var _a, _b;
12803
12763
  if ((_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest) === null || _b === void 0 ? void 0 : _b.call(_a, '#lido-avatar'))
12804
12764
  return;
12805
12765
  this.handleFlip();
12806
- }, "disable-speak": this.disableSpeak }, index.h("div", { key: '3712fc66e33323bdd55e0abb747370ee461dc808', class: `card ${this.flipped ? 'flipped' : ''}` }, index.h("div", { key: 'eb8af2e445393592c0e8a3e4c5934c71dcab4b4e', class: "card-face card-front" }, this.front != null ? this.front : index.h("slot", { name: "front" })), index.h("div", { key: 'efa14cc7ea506714342151b12a9724bdcdb1eba8', class: "card-face card-back" }, this.back != null ? this.back : index.h("slot", { name: "back" })))));
12766
+ }, "disable-speak": this.disableSpeak }, index.h("div", { key: 'b235e008f35e29db21991d76bd83fccac471ba75', class: `card ${this.flipped ? 'flipped' : ''}` }, index.h("div", { key: '7b2306efdc5a4dac6edfe5004ae34ef486b73dd5', class: "card-face card-front" }, this.front != null ? this.front : index.h("slot", { name: "front" })), index.h("div", { key: '3d164fa2faa72b7ffcbaf20482bfea2148aeaaf4', class: "card-face card-back" }, this.back != null ? this.back : index.h("slot", { name: "back" })))));
12807
12767
  }
12808
12768
  get el() { return index.getElement(this); }
12809
12769
  static get watchers() { return {
@@ -13251,7 +13211,7 @@ const LidoHome = class {
13251
13211
  }
13252
13212
  // Pure-JS fallback (no wasm asset required)
13253
13213
  try {
13254
- const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-B7mZm_nK.js'); }).then(function (n) { return n.decode; });
13214
+ const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-BCvdWRyT.js'); }).then(function (n) { return n.decode; });
13255
13215
  const brotliDecompressBuffer = brotliDecodeModule.BrotliDecompressBuffer || ((_a = brotliDecodeModule.default) === null || _a === void 0 ? void 0 : _a.BrotliDecompressBuffer);
13256
13216
  if (typeof brotliDecompressBuffer !== 'function') {
13257
13217
  throw new Error('BrotliDecompressBuffer function not found in brotli/dec/decode');
@@ -8,27 +8,3 @@
8
8
  justify-content: center;
9
9
  align-items: center;
10
10
  }
11
-
12
- /* Reuse the Flash Card attention treatment for generated Write Card arrows. */
13
- lido-container[template-id="writeCard"] #arrow {
14
- box-sizing: border-box;
15
- border: 10px solid transparent;
16
- box-shadow: 0px 8px 0px 0px #8b310f;
17
- animation: flash-card-next-attention 1.4s ease-in-out infinite;
18
- }
19
-
20
- lido-container[template-id="writeCard"] #arrow.fading {
21
- opacity: 1 !important;
22
- }
23
-
24
- @keyframes flash-card-next-attention {
25
- 0%,
26
- 100% {
27
- border-color: #ffc34d;
28
- filter: drop-shadow(0 0 0 rgba(255, 195, 77, 0));
29
- }
30
- 50% {
31
- border-color: #fff1a8;
32
- filter: drop-shadow(0 0 10px rgba(255, 195, 77, 0.95));
33
- }
34
- }
@@ -169,32 +169,6 @@ export class LidoContainer {
169
169
  this.speakFlag = false;
170
170
  this.handleWindowResize = () => this.scaleContainer(this.el);
171
171
  this.handleWindowLoad = () => this.scaleContainer(this.el);
172
- this.isWriteCardContainer = () => this.templateId === 'writeCard';
173
- this.syncWriteCardArrowHighlight = () => {
174
- if (!this.isWriteCardContainer())
175
- return;
176
- const arrow = this.el.querySelector('#arrow');
177
- if (!arrow)
178
- return;
179
- const style = window.getComputedStyle(arrow);
180
- const hidden = style.display === 'none' ||
181
- style.visibility === 'hidden' ||
182
- style.opacity === '0';
183
- arrow.classList.toggle('flash-card-next-glowing', !hidden);
184
- };
185
- this.observeWriteCardArrow = () => {
186
- var _a;
187
- if (!this.isWriteCardContainer())
188
- return;
189
- (_a = this.writeCardArrowObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
190
- this.writeCardArrowObserver = new MutationObserver(() => this.syncWriteCardArrowHighlight());
191
- this.writeCardArrowObserver.observe(this.el, {
192
- subtree: true,
193
- attributes: true,
194
- attributeFilter: ['class', 'style', 'visible'],
195
- });
196
- this.syncWriteCardArrowHighlight();
197
- };
198
172
  }
199
173
  cleanupInteractionHandlers() {
200
174
  this.el.querySelectorAll('[type="drag"], [type="slide"], [move="true"]').forEach(element => {
@@ -440,12 +414,10 @@ export class LidoContainer {
440
414
  setTimeout(() => {
441
415
  this.el.setAttribute("onEntry", `${this.templateId}.speak='${!this.speakFlag}'; ` + this.el.getAttribute("onEntry"));
442
416
  initEventsForElement(this.el, this.type);
443
- this.observeWriteCardArrow();
444
417
  }, 100);
445
418
  }
446
419
  else {
447
420
  initEventsForElement(this.el, this.type);
448
- this.observeWriteCardArrow();
449
421
  }
450
422
  if (this.customStyle) {
451
423
  const styleElement = document.createElement('style');
@@ -461,12 +433,9 @@ export class LidoContainer {
461
433
  Timer.getI().start();
462
434
  }
463
435
  disconnectedCallback() {
464
- var _a;
465
436
  this.cleanupInteractionHandlers();
466
437
  window.removeEventListener('resize', this.handleWindowResize);
467
438
  window.removeEventListener('load', this.handleWindowLoad);
468
- (_a = this.writeCardArrowObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
469
- this.writeCardArrowObserver = undefined;
470
439
  document.body.style.backgroundColor = '';
471
440
  document.body.style.backgroundImage = '';
472
441
  resetFloatState();
@@ -483,7 +452,7 @@ export class LidoContainer {
483
452
  margin: this.margin,
484
453
  userSelect: 'none', // Prevent any field selection
485
454
  };
486
- return (h(Host, { key: '403faa36329230b28c8c0e3a627c20b48fc1a9d0', id: "lido-container", Lang: this.Lang, "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}`, "template-id": this.templateId, audio: this.audio, "highlight-word-by-word": `${this.highlightWordByWord}` }, h("lido-text", { key: '683740c0a8495c875c988b41b8281a362f7713b8', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: '743c0652d70b294513dcdb3cfdd9674b694cd2e8' })));
455
+ return (h(Host, { key: '9dd374c6cdfcc88a5b18e7dc7fec527c853a4719', id: "lido-container", Lang: this.Lang, "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}`, "template-id": this.templateId, audio: this.audio, "highlight-word-by-word": `${this.highlightWordByWord}` }, h("lido-text", { key: '8295782a74ce6ef8ca9a623de8a28b539d9f6d4f', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: 'eb3c995b777986e07dcb6aa935ef38d41aa1e7e7' })));
487
456
  }
488
457
  static get is() { return "lido-container"; }
489
458
  static get originalStyleUrls() {
@@ -113,7 +113,7 @@ export class LidoFlash {
113
113
  arrow.classList.add('flash-card-next-glowing');
114
114
  };
115
115
  this.onAudioEnded = (event) => {
116
- var _a, _b, _c;
116
+ var _a, _b, _c, _d;
117
117
  const target = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.target;
118
118
  const instruction = this.instructionText();
119
119
  if (!target || (target !== instruction && target.id !== 'lido-avatar' && !this.el.contains(target)))
@@ -150,6 +150,7 @@ export class LidoFlash {
150
150
  if (playbackContext !== this.goodJobPlaybackContext || playbackId !== this.goodJobPlaybackId)
151
151
  return;
152
152
  this.goodJobPlaybackId = undefined;
153
+ (_d = this.nextArrow()) === null || _d === void 0 ? void 0 : _d.classList.remove('flash-card-next-glowing');
153
154
  executeActions("this.avatarAnimate='Idle'", target);
154
155
  }
155
156
  };
@@ -220,19 +221,11 @@ export class LidoFlash {
220
221
  (_a = this.nextArrow()) === null || _a === void 0 ? void 0 : _a.classList.remove('flash-card-next-glowing');
221
222
  };
222
223
  this.speakFront = () => {
223
- var _a, _b;
224
+ var _a;
224
225
  const text = this.frontText();
225
226
  if (this.instructionDone && !this.flipped && text && ((_a = text.textContent) === null || _a === void 0 ? void 0 : _a.trim())) {
226
227
  this.startNarration(text);
227
228
  }
228
- else if (this.instructionDone && !this.flipped && (!text || !((_b = text.textContent) === null || _b === void 0 ? void 0 : _b.trim()))) {
229
- if (this.autoFlipTimer)
230
- window.clearTimeout(this.autoFlipTimer);
231
- this.autoFlipTimer = window.setTimeout(() => {
232
- if (!this.flipped)
233
- this.handleFlip();
234
- }, this.autoFlipAfter);
235
- }
236
229
  };
237
230
  this.clearNarrationTimers = () => {
238
231
  if (this.narrationGraceTimer)
@@ -298,8 +291,6 @@ export class LidoFlash {
298
291
  mascot.setAttribute('audio', scaffoldAudio);
299
292
  }
300
293
  this.setArrowVisible(true);
301
- // Keep the next action highlighted after mascot audio ends.
302
- arrow.classList.add('flash-card-next-glowing');
303
294
  if (mascot) {
304
295
  this.goodJobPlaybackContext = {};
305
296
  this.goodJobPlaybackId = undefined;
@@ -380,12 +371,12 @@ export class LidoFlash {
380
371
  }
381
372
  /* ---------- Render ---------- */
382
373
  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) => {
374
+ return (h(Host, { key: '9098ad4c1f41ac70e6737438209f2f3027153b3b', 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
375
  var _a, _b;
385
376
  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
377
  return;
387
378
  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" })))));
379
+ }, "disable-speak": this.disableSpeak }, h("div", { key: 'b235e008f35e29db21991d76bd83fccac471ba75', class: `card ${this.flipped ? 'flipped' : ''}` }, h("div", { key: '7b2306efdc5a4dac6edfe5004ae34ef486b73dd5', class: "card-face card-front" }, this.front != null ? this.front : h("slot", { name: "front" })), h("div", { key: '3d164fa2faa72b7ffcbaf20482bfea2148aeaaf4', class: "card-face card-back" }, this.back != null ? this.back : h("slot", { name: "back" })))));
389
380
  }
390
381
  static get is() { return "lido-flash-card"; }
391
382
  static get originalStyleUrls() {