lido-player 0.0.2-alpha-86 → 0.0.2-alpha-88

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 (43) hide show
  1. package/dist/cjs/{decode-DIUvWF6N.js → decode-BCtIYiSY.js} +1 -1
  2. package/dist/cjs/{index-Cfl2KMDg.js → index-BDnxAitU.js} +12 -13
  3. package/dist/cjs/{index-7Dh-uOww.js → index-Dl8SlqP-.js} +1 -1
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/lido-avatar_22.cjs.entry.js +22 -24
  6. package/dist/cjs/lido-player.cjs.js +2 -2
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/container/lido-container.js +2 -2
  10. package/dist/collection/utils/utils.js +11 -12
  11. package/dist/components/index.js +1 -1
  12. package/dist/components/lido-avatar.js +1 -1
  13. package/dist/components/lido-calculator.js +1 -1
  14. package/dist/components/lido-canvas.js +1 -1
  15. package/dist/components/lido-container.js +1 -1
  16. package/dist/components/lido-home.js +1 -1
  17. package/dist/components/lido-keyboard.js +1 -1
  18. package/dist/components/lido-root.js +1 -1
  19. package/dist/components/lido-text.js +1 -1
  20. package/dist/components/{p-DnN6oHI6.js → p-BOHNyYPi.js} +1 -1
  21. package/dist/components/p-CBg54ApH.js +1 -0
  22. package/dist/components/{p-NUpSLJ0I.js → p-D5OuulAW.js} +1 -1
  23. package/dist/components/{p-DWBY6jC3.js → p-DAwJrK6q.js} +1 -1
  24. package/dist/components/{p-BRbyZYnO.js → p-DVoNbO_j.js} +1 -1
  25. package/dist/components/p-Dz6mSTPu.js +1 -0
  26. package/dist/components/{p-DgBmezg8.js → p-v5QPz3yz.js} +1 -1
  27. package/dist/esm/{decode-D8gAeIM7.js → decode-CT-ttsFh.js} +1 -1
  28. package/dist/esm/{index-DazuHWZm.js → index-Da41OKR1.js} +12 -13
  29. package/dist/esm/{index-CBmYf7sZ.js → index-DwCQErNN.js} +1 -1
  30. package/dist/esm/index.js +2 -2
  31. package/dist/esm/lido-avatar_22.entry.js +22 -24
  32. package/dist/esm/lido-player.js +3 -3
  33. package/dist/esm/loader.js +2 -2
  34. package/dist/lido-player/index.esm.js +1 -1
  35. package/dist/lido-player/lido-player.esm.js +1 -1
  36. package/dist/lido-player/p-36a1471e.entry.js +1 -0
  37. package/dist/lido-player/{p-Kx5tRAEh.js → p-CspJVyn4.js} +1 -1
  38. package/dist/lido-player/{p-g3lu02Fa.js → p-DO-Y_QEx.js} +1 -1
  39. package/package.json +1 -1
  40. package/dist/components/p-BVjdl5J1.js +0 -1
  41. package/dist/components/p-BkQGpxcR.js +0 -1
  42. package/dist/lido-player/p-75b0ae79.entry.js +0 -1
  43. /package/dist/lido-player/{p-CBmYf7sZ.js → p-DwCQErNN.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cfl2KMDg.js');
3
+ var index = require('./index-BDnxAitU.js');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  m.forEach(function (e) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index$1 = require('./index-7Dh-uOww.js');
3
+ var index$1 = require('./index-Dl8SlqP-.js');
4
4
 
5
5
  const DragMapKey = 'lidoDragMap';
6
6
  const SelectedValuesKey = 'lidoSelectedValues';
@@ -72266,6 +72266,17 @@ const executeActions = async (actionsString, thisElement, element) => {
72266
72266
  const container = document.getElementById(LidoContainer);
72267
72267
  if (container.getAttribute('canplay') === 'false')
72268
72268
  return;
72269
+ const balanceEl = document.querySelector('lido-balance');
72270
+ if (balanceEl) {
72271
+ const objectiveString = container['objective'];
72272
+ res = balanceResult(container, objectiveString);
72273
+ if (res) {
72274
+ await executeActions("this.showBalanceSymbol='true'", targetElement);
72275
+ }
72276
+ else {
72277
+ await executeActions("this.hideBalanceSymbol='true'", targetElement);
72278
+ }
72279
+ }
72269
72280
  if (container.getAttribute('is-continue-on-correct') !== 'true') {
72270
72281
  targetElement.style.pointerEvents = 'none';
72271
72282
  AudioPlayer.getI().stop();
@@ -72768,18 +72779,6 @@ const handleShowCheck = () => {
72768
72779
  const showCheck = container.getAttribute('show-check') == 'true';
72769
72780
  if (showCheck) {
72770
72781
  (_b = checkButton === null || checkButton === void 0 ? void 0 : checkButton.classList) === null || _b === void 0 ? void 0 : _b.remove('lido-disable-check-button');
72771
- const balanceEl = document.querySelector('lido-balance');
72772
- if (balanceEl) {
72773
- if (!checkButton.hasAttribute('data-balance-listener')) {
72774
- checkButton.addEventListener('click', async function onClick() {
72775
- if (balanceResult && res) {
72776
- await executeActions("this.showBalanceSymbol='true'", checkButton);
72777
- checkButton.removeEventListener('click', onClick);
72778
- }
72779
- });
72780
- checkButton.setAttribute('data-balance-listener', 'true');
72781
- }
72782
- }
72783
72782
  }
72784
72783
  else {
72785
72784
  if (!container.getAttribute("game-completed") && !container.querySelector("[type='slide']") && !container.querySelector("[type='category']")) {
@@ -25,7 +25,7 @@ const globalScripts = () => {};
25
25
  const globalStyles = "@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap'); body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/template/audioIcon.png\");background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;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:left 55ms linear,\r\n top 55ms linear,\r\n width 55ms ease-out,\r\n height 55ms ease-out,\r\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height}";
26
26
 
27
27
  /*
28
- Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
28
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
29
29
  */
30
30
 
31
31
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cfl2KMDg.js');
4
- require('./index-7Dh-uOww.js');
3
+ var index = require('./index-BDnxAitU.js');
4
+ require('./index-Dl8SlqP-.js');
5
5
 
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-7Dh-uOww.js');
4
- var index$1 = require('./index-Cfl2KMDg.js');
3
+ var index = require('./index-Dl8SlqP-.js');
4
+ var index$1 = require('./index-BDnxAitU.js');
5
5
 
6
6
  var rive$1 = {exports: {}};
7
7
 
@@ -747,7 +747,7 @@ function requireRive () {
747
747
  return Wa(c, a, b);
748
748
  }));
749
749
  }
750
- var Za, $a, db = {491234:(a, b, c, d, e) => {
750
+ var Za, $a, db = {478226:(a, b, c, d, e) => {
751
751
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
752
752
  return 0;
753
753
  }
@@ -810,11 +810,11 @@ function requireRive () {
810
810
  }
811
811
  window.h.za += 1;
812
812
  return 1;
813
- }, 493412:() => {
813
+ }, 480404:() => {
814
814
  "undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
815
815
  document.removeEventListener(a, window.h.unlock, true);
816
816
  }), --window.h.za, 0 === window.h.za && delete window.h);
817
- }, 493716:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493820:() => {
817
+ }, 480708:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 480812:() => {
818
818
  try {
819
819
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
820
820
  a.close();
@@ -822,7 +822,7 @@ function requireRive () {
822
822
  } catch (c) {
823
823
  return 0;
824
824
  }
825
- }, 493991:(a, b, c, d, e, f) => {
825
+ }, 480983:(a, b, c, d, e, f) => {
826
826
  if ("undefined" === typeof window.h) {
827
827
  return -1;
828
828
  }
@@ -868,7 +868,7 @@ function requireRive () {
868
868
  a == window.h.J.xa && g.Z.connect(g.L.destination);
869
869
  g.pb = f;
870
870
  return window.h.sc(g);
871
- }, 496868:a => window.h.qa(a).L.sampleRate, 496941:a => {
871
+ }, 483860:a => window.h.qa(a).L.sampleRate, 483933:a => {
872
872
  a = window.h.qa(a);
873
873
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
874
874
  }, a.Z.disconnect(), a.Z = void 0);
@@ -876,13 +876,13 @@ function requireRive () {
876
876
  a.L.close();
877
877
  a.L = void 0;
878
878
  a.pb = void 0;
879
- }, 497341:a => {
879
+ }, 484333:a => {
880
880
  window.h.Ab(a);
881
- }, 497391:a => {
881
+ }, 484383:a => {
882
882
  a = window.h.qa(a);
883
883
  a.L.resume();
884
884
  a.state = window.h.ga.wb;
885
- }, 497530:a => {
885
+ }, 484522:a => {
886
886
  a = window.h.qa(a);
887
887
  a.L.suspend();
888
888
  a.state = window.h.ga.stopped;
@@ -3390,7 +3390,7 @@ function requireRive () {
3390
3390
  /* 2 */
3391
3391
  /***/ ((module) => {
3392
3392
 
3393
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.35.2","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3393
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.35.3","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3394
3394
 
3395
3395
  /***/ }),
3396
3396
  /* 3 */
@@ -9573,8 +9573,8 @@ function keysFromSelector(selector, opts) {
9573
9573
  const nsSeparator = opts?.nsSeparator ?? ':';
9574
9574
  if (path.length > 1 && nsSeparator) {
9575
9575
  const ns = opts?.ns;
9576
- const namespaces = ns ? Array.isArray(ns) ? ns : [ns] : [];
9577
- if (namespaces.includes(path[0])) {
9576
+ const nsArray = Array.isArray(ns) ? ns : null;
9577
+ if (nsArray && nsArray.length > 1 && nsArray.slice(1).includes(path[0])) {
9578
9578
  return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
9579
9579
  }
9580
9580
  }
@@ -11167,21 +11167,19 @@ class I18n extends EventEmitter {
11167
11167
  o.lngs = o.lngs || fixedT.lngs;
11168
11168
  o.ns = o.ns || fixedT.ns;
11169
11169
  if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
11170
+ const selectorOpts = {
11171
+ ...this.options,
11172
+ ...o
11173
+ };
11170
11174
  const keySeparator = this.options.keySeparator || '.';
11171
11175
  let resultKey;
11172
11176
  if (o.keyPrefix && Array.isArray(key)) {
11173
11177
  resultKey = key.map(k => {
11174
- if (typeof k === 'function') k = keysFromSelector(k, {
11175
- ...this.options,
11176
- ...opts
11177
- });
11178
+ if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);
11178
11179
  return `${o.keyPrefix}${keySeparator}${k}`;
11179
11180
  });
11180
11181
  } else {
11181
- if (typeof key === 'function') key = keysFromSelector(key, {
11182
- ...this.options,
11183
- ...opts
11184
- });
11182
+ if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);
11185
11183
  resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
11186
11184
  }
11187
11185
  return this.t(resultKey, o);
@@ -12224,7 +12222,7 @@ const LidoContainer = class {
12224
12222
  "quizMathShapes": "quizMathShapes" /* templateAudio.quizMathShapes */,
12225
12223
  "reorder": "reorder" /* templateAudio.reorder */,
12226
12224
  "rocketGame": "rocketGame" /* templateAudio.rocketGame */,
12227
- "rowBlock ": "rowBlock" /* templateAudio.rowBlock */,
12225
+ "rowBlock": "rowBlock" /* templateAudio.rowBlock */,
12228
12226
  "sequenceBox1": "sequenceBox1" /* templateAudio.sequenceBox1 */,
12229
12227
  "shapeTractor": "shapeTractor" /* templateAudio.shapeTractor */,
12230
12228
  "spellDoor": "spellDoor" /* templateAudio.spellDoor */,
@@ -12409,7 +12407,7 @@ const LidoContainer = class {
12409
12407
  userSelect: 'none', // Prevent any field selection
12410
12408
  };
12411
12409
  console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
12412
- return (index.h(index.Host, { key: '251a6c4300e30a424f5bcf6099ee0f1252267de6', 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: '0ae4e3e6cc9d82969e396f0af924630565fa548b', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: 'e93ea96beb6733bf8d8f0e7c2ff11a7f2cda09a8' })));
12410
+ return (index.h(index.Host, { key: 'abcebd40adfbb553ac4878f9e0d7b76800d74a59', 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: '94b6176383b21924018ba601e4c69d6f640e6cac', visible: "false", id: this.templateId, audio: "", string: this.instructName }), index.h("slot", { key: 'fb107851146dc5e3d3a17cef43a84dd894fad646' })));
12413
12411
  }
12414
12412
  get el() { return index.getElement(this); }
12415
12413
  static get watchers() { return {
@@ -12933,7 +12931,7 @@ const LidoHome = class {
12933
12931
  }
12934
12932
  // Pure-JS fallback (no wasm asset required)
12935
12933
  try {
12936
- const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-DIUvWF6N.js'); }).then(function (n) { return n.decode; });
12934
+ const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-BCtIYiSY.js'); }).then(function (n) { return n.decode; });
12937
12935
  const brotliDecompressBuffer = brotliDecodeModule.BrotliDecompressBuffer ||
12938
12936
  ((_a = brotliDecodeModule.default) === null || _a === void 0 ? void 0 : _a.BrotliDecompressBuffer);
12939
12937
  if (typeof brotliDecompressBuffer !== 'function') {
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-7Dh-uOww.js');
3
+ var index = require('./index-Dl8SlqP-.js');
4
4
 
5
5
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
6
6
  /*
7
- Stencil Client Patch Browser v4.43.2 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Patch Browser v4.43.3 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
 
10
10
  var patchBrowser = () => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-7Dh-uOww.js');
3
+ var index = require('./index-Dl8SlqP-.js');
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
@@ -26,7 +26,7 @@
26
26
  "mixins": [],
27
27
  "compiler": {
28
28
  "name": "@stencil/core",
29
- "version": "4.43.2",
29
+ "version": "4.43.3",
30
30
  "typescriptVersion": "5.8.3"
31
31
  },
32
32
  "collections": [],
@@ -239,7 +239,7 @@ export class LidoContainer {
239
239
  "quizMathShapes": "quizMathShapes" /* templateAudio.quizMathShapes */,
240
240
  "reorder": "reorder" /* templateAudio.reorder */,
241
241
  "rocketGame": "rocketGame" /* templateAudio.rocketGame */,
242
- "rowBlock ": "rowBlock" /* templateAudio.rowBlock */,
242
+ "rowBlock": "rowBlock" /* templateAudio.rowBlock */,
243
243
  "sequenceBox1": "sequenceBox1" /* templateAudio.sequenceBox1 */,
244
244
  "shapeTractor": "shapeTractor" /* templateAudio.shapeTractor */,
245
245
  "spellDoor": "spellDoor" /* templateAudio.spellDoor */,
@@ -424,7 +424,7 @@ export class LidoContainer {
424
424
  userSelect: 'none', // Prevent any field selection
425
425
  };
426
426
  console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
427
- return (h(Host, { key: '251a6c4300e30a424f5bcf6099ee0f1252267de6', 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: '0ae4e3e6cc9d82969e396f0af924630565fa548b', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: 'e93ea96beb6733bf8d8f0e7c2ff11a7f2cda09a8' })));
427
+ return (h(Host, { key: 'abcebd40adfbb553ac4878f9e0d7b76800d74a59', 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: '94b6176383b21924018ba601e4c69d6f640e6cac', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: 'fb107851146dc5e3d3a17cef43a84dd894fad646' })));
428
428
  }
429
429
  static get is() { return "lido-container"; }
430
430
  static get originalStyleUrls() {
@@ -188,6 +188,17 @@ export const executeActions = async (actionsString, thisElement, element) => {
188
188
  const container = document.getElementById(LidoContainer);
189
189
  if (container.getAttribute('canplay') === 'false')
190
190
  return;
191
+ const balanceEl = document.querySelector('lido-balance');
192
+ if (balanceEl) {
193
+ const objectiveString = container['objective'];
194
+ res = balanceResult(container, objectiveString);
195
+ if (res) {
196
+ await executeActions("this.showBalanceSymbol='true'", targetElement);
197
+ }
198
+ else {
199
+ await executeActions("this.hideBalanceSymbol='true'", targetElement);
200
+ }
201
+ }
191
202
  if (container.getAttribute('is-continue-on-correct') !== 'true') {
192
203
  targetElement.style.pointerEvents = 'none';
193
204
  AudioPlayer.getI().stop();
@@ -690,18 +701,6 @@ export const handleShowCheck = () => {
690
701
  const showCheck = container.getAttribute('show-check') == 'true';
691
702
  if (showCheck) {
692
703
  (_b = checkButton === null || checkButton === void 0 ? void 0 : checkButton.classList) === null || _b === void 0 ? void 0 : _b.remove('lido-disable-check-button');
693
- const balanceEl = document.querySelector('lido-balance');
694
- if (balanceEl) {
695
- if (!checkButton.hasAttribute('data-balance-listener')) {
696
- checkButton.addEventListener('click', async function onClick() {
697
- if (balanceResult && res) {
698
- await executeActions("this.showBalanceSymbol='true'", checkButton);
699
- checkButton.removeEventListener('click', onClick);
700
- }
701
- });
702
- checkButton.setAttribute('data-balance-listener', 'true');
703
- }
704
- }
705
704
  }
706
705
  else {
707
706
  if (!container.getAttribute("game-completed") && !container.querySelector("[type='slide']") && !container.querySelector("[type='category']")) {