lido-player 0.0.2-alpha-74 → 0.0.2-alpha-76

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 (40) hide show
  1. package/dist/cjs/{index-BcKX8GV7.js → index-BeLWDohk.js} +8 -8
  2. package/dist/cjs/{index-BNAtcxNG.js → index-BrME-8br.js} +1 -1
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/lido-avatar_22.cjs.entry.js +22 -19
  5. package/dist/cjs/lido-player.cjs.js +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +1 -1
  8. package/dist/collection/components/calculator/lido-calculator.js +2 -2
  9. package/dist/collection/utils/utils.js +7 -7
  10. package/dist/components/index.js +1 -1
  11. package/dist/components/lido-avatar.js +1 -1
  12. package/dist/components/lido-calculator.js +1 -1
  13. package/dist/components/lido-canvas.js +1 -1
  14. package/dist/components/lido-container.js +1 -1
  15. package/dist/components/lido-home.js +1 -1
  16. package/dist/components/lido-keyboard.js +1 -1
  17. package/dist/components/lido-root.js +1 -1
  18. package/dist/components/lido-text.js +1 -1
  19. package/dist/components/{p-BEteaaKf.js → p-CRF2oUXd.js} +1 -1
  20. package/dist/components/p-Cucc6ihv.js +1 -0
  21. package/dist/components/{p-dOiNR1s-.js → p-DMdTR2aP.js} +1 -1
  22. package/dist/components/p-DSkkWl5m.js +1 -0
  23. package/dist/components/{p-DwMDPYdp.js → p-pXq128eR.js} +1 -1
  24. package/dist/components/{p-DSsslp38.js → p-ub5lP9Pu.js} +1 -1
  25. package/dist/components/{p-D3gyPMJP.js → p-xluptNe4.js} +1 -1
  26. package/dist/esm/{index-DOv-IceV.js → index-CJ1E0Gjh.js} +8 -8
  27. package/dist/esm/{index-Dr6Jw5p1.js → index-DoO-CWOR.js} +1 -1
  28. package/dist/esm/index.js +2 -2
  29. package/dist/esm/lido-avatar_22.entry.js +22 -19
  30. package/dist/esm/lido-player.js +3 -3
  31. package/dist/esm/loader.js +2 -2
  32. package/dist/lido-player/index.esm.js +1 -1
  33. package/dist/lido-player/lido-player.esm.js +1 -1
  34. package/dist/lido-player/p-4df627ef.entry.js +1 -0
  35. package/dist/lido-player/{p-3Ez9RNAg.js → p-CB2sCeWD.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/components/p-o7zhsGY5.js +0 -1
  38. package/dist/components/p-vBXlSGWi.js +0 -1
  39. package/dist/lido-player/p-24cfd3d1.entry.js +0 -1
  40. /package/dist/lido-player/{p-Dr6Jw5p1.js → p-DoO-CWOR.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index$1 = require('./index-BNAtcxNG.js');
3
+ var index$1 = require('./index-BrME-8br.js');
4
4
 
5
5
  const DragMapKey = 'lidoDragMap';
6
6
  const SelectedValuesKey = 'lidoSelectedValues';
@@ -73202,14 +73202,14 @@ const animateBoxCells = async (element, value) => {
73202
73202
  await new Promise(resolve => setTimeout(resolve, 600)); // Adjust delay as needed
73203
73203
  cell.classList.remove('lido-box-highlight');
73204
73204
  }
73205
- // checkout parent cell first then pick the first text child inside cell
73205
+ // checkout parent cell first then pick the second text child inside cell
73206
73206
  const parentCell = document.getElementById(LidoContainer);
73207
73207
  if (!parentCell)
73208
73208
  return;
73209
- const firstTextChild = parentCell.querySelector('lido-text');
73210
- if (firstTextChild) {
73209
+ const instructionText = parentCell.children[2];
73210
+ if (instructionText) {
73211
73211
  // play the text child inside parent cell
73212
- await AudioPlayer.getI().play(firstTextChild);
73212
+ await AudioPlayer.getI().play(instructionText);
73213
73213
  }
73214
73214
  // Now select each box cell's text child and play them one by one
73215
73215
  for (const box of boxCells) {
@@ -73250,9 +73250,9 @@ const SumTogetherAnimation = async (element, value) => {
73250
73250
  if (!value)
73251
73251
  return;
73252
73252
  // Expecting structure: [_, TopRow, questionRow, optionRow, ...]
73253
- const TopRow = Array.from(element.children)[2];
73254
- const questionRow = Array.from(element.children)[3];
73255
- const optionRow = Array.from(element.children)[4];
73253
+ const TopRow = Array.from(element.children)[3];
73254
+ const questionRow = Array.from(element.children)[4];
73255
+ const optionRow = Array.from(element.children)[5];
73256
73256
  if (!TopRow || !questionRow || !optionRow)
73257
73257
  return;
73258
73258
  const topRowChildren = Array.from(TopRow.children);
@@ -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.42.1 | MIT Licensed | https://stenciljs.com
28
+ Stencil Client Platform v4.43.0 | MIT Licensed | https://stenciljs.com
29
29
  */
30
30
 
31
31
  var reWireGetterSetter = (instance, hostRef) => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BcKX8GV7.js');
4
- require('./index-BNAtcxNG.js');
3
+ var index = require('./index-BeLWDohk.js');
4
+ require('./index-BrME-8br.js');
5
5
 
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BNAtcxNG.js');
4
- var index$1 = require('./index-BcKX8GV7.js');
3
+ var index = require('./index-BrME-8br.js');
4
+ var index$1 = require('./index-BeLWDohk.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 = {490930:(a, b, c, d, e) => {
750
+ var Za, $a, db = {491138:(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
- }, 493108:() => {
813
+ }, 493316:() => {
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
- }, 493412:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493516:() => {
817
+ }, 493620:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493724:() => {
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
- }, 493687:(a, b, c, d, e, f) => {
825
+ }, 493895:(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
- }, 496564:a => window.h.qa(a).L.sampleRate, 496637:a => {
871
+ }, 496772:a => window.h.qa(a).L.sampleRate, 496845: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
- }, 497037:a => {
879
+ }, 497245:a => {
880
880
  window.h.Ab(a);
881
- }, 497087:a => {
881
+ }, 497295:a => {
882
882
  a = window.h.qa(a);
883
883
  a.L.resume();
884
884
  a.state = window.h.ga.wb;
885
- }, 497226:a => {
885
+ }, 497434: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.34.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}}');
3393
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.35.0","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 */
@@ -5967,7 +5967,8 @@ function requireRive () {
5967
5967
  var _a;
5968
5968
  // Initialize audio if needed
5969
5969
  if (audioManager.status == SystemAudioStatus.UNAVAILABLE) {
5970
- if (((_a = this.artboard) === null || _a === void 0 ? void 0 : _a.hasAudio) && this._audioEventListener === null) {
5970
+ if (this.file.hasAudio ||
5971
+ (((_a = this.artboard) === null || _a === void 0 ? void 0 : _a.hasAudio) && this._audioEventListener === null)) {
5971
5972
  this._audioEventListener = {
5972
5973
  type: EventType.AudioStatusChange,
5973
5974
  callback: function () { return _this.onSystemAudioChanged(); },
@@ -8579,7 +8580,7 @@ const LidoCalculator = class {
8579
8580
  return;
8580
8581
  if (this.objective && this.objective != '' && !this.objective.includes(',')) {
8581
8582
  console.log("hi iscorrect verified");
8582
- isCorrect = userInput === this.objective;
8583
+ isCorrect = Number(userInput) === Number(this.objective);
8583
8584
  }
8584
8585
  // --- Multiple Objectives ---
8585
8586
  else if (this.objective && this.objective.includes(',')) {
@@ -8652,7 +8653,7 @@ const LidoCalculator = class {
8652
8653
  }
8653
8654
  render() {
8654
8655
  const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
8655
- return (index.h(index.Host, { key: '595c92e80baed8e1709c51302aa427d672b3a9e0', onEntry: this.onEntry, id: "lidoCalculator", style: { width: this.width, height: this.height, backgroundColor: this.bgColor, left: this.x, top: this.y } }, index.h("lido-cell", { key: '4a2966a46fd008d66fedeb5f44e0ee2c5e8c083a', visible: "true", height: "94px", width: "60px" }, index.h("lido-text", { key: '35e38f7412be8489b668ba0aab927b7ba3d98f29', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "176%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, index.h("img", { key: '926def912022a30a27f5419d98348beb84fc1a42', src: this.penIcon, alt: "pen", style: { width: '100%', height: '100%' } }))), index.h("div", { key: '41a69c7aa7d1dfbeea19b1a1ef095b97d2c953ba', class: "lido-calculator-displayParent" }, index.h("div", { key: '047dfc84e8b02739a982287f82b1df2b7f552dcd', class: "lido-calculator-display" }, this.displayValue)), index.h("div", { key: '41cd91f2c9aa40f6adcf6b0318e07e394bc3b38e', class: "lido-calculator-buttons" }, numbers.map((num, i) => (index.h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
8656
+ return (index.h(index.Host, { key: '29f91af1bedaa8be605cdf82fddf74b5622eff6e', onEntry: this.onEntry, id: "lidoCalculator", style: { width: this.width, height: this.height, backgroundColor: this.bgColor, left: this.x, top: this.y } }, index.h("lido-cell", { key: '1ac0f61986e688603db21b2eb1bb52bbcabca1ca', visible: "true", height: "94px", width: "60px" }, index.h("lido-text", { key: '3bdacbcb2ea2f371b11a2ed05eb271e0a75c5e09', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "176%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, index.h("img", { key: '5f7bb3c09bccdb21c2bda00ae99234409bad7eda', src: this.penIcon, alt: "pen", style: { width: '100%', height: '100%' } }))), index.h("div", { key: '0891cd4b5929861d264c29684ef260f61e65004b', class: "lido-calculator-displayParent" }, index.h("div", { key: 'ac5861ca1a9ebaee9eb7d729f8d2b88933b733d5', class: "lido-calculator-display" }, this.displayValue)), index.h("div", { key: 'f80c85a89462fd96630a4bf8a304284e4546fe72', class: "lido-calculator-buttons" }, numbers.map((num, i) => (index.h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
8656
8657
  'lido-calculator-btn-special': num === '←' || num === 'OK',
8657
8658
  'lido-calculator-btn-default': num !== '←' && num !== 'OK'
8658
8659
  }, onClick: () => this.handleClick(num) }))))));
@@ -10123,7 +10124,7 @@ class PluralResolver {
10123
10124
  type
10124
10125
  });
10125
10126
  } catch (err) {
10126
- if (!Intl) {
10127
+ if (typeof Intl === 'undefined') {
10127
10128
  this.logger.error('No Intl support, please use an Intl polyfill!');
10128
10129
  return dummyRule;
10129
10130
  }
@@ -10304,13 +10305,13 @@ class Interpolator {
10304
10305
  const handleHasOptions = (key, inheritedOptions) => {
10305
10306
  const sep = this.nestingOptionsSeparator;
10306
10307
  if (key.indexOf(sep) < 0) return key;
10307
- const c = key.split(new RegExp(`${sep}[ ]*{`));
10308
+ const c = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));
10308
10309
  let optionsString = `{${c[1]}`;
10309
10310
  key = c[0];
10310
10311
  optionsString = this.interpolate(optionsString, clonedOptions);
10311
10312
  const matchedSingleQuotes = optionsString.match(/'/g);
10312
10313
  const matchedDoubleQuotes = optionsString.match(/"/g);
10313
- if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || matchedDoubleQuotes.length % 2 !== 0) {
10314
+ if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || (matchedDoubleQuotes?.length ?? 0) % 2 !== 0) {
10314
10315
  optionsString = optionsString.replace(/'/g, '"');
10315
10316
  }
10316
10317
  try {
@@ -10792,6 +10793,7 @@ const bindMemberFunctions = inst => {
10792
10793
  }
10793
10794
  });
10794
10795
  };
10796
+ let supportNoticeShown = false;
10795
10797
  const usesLocize = inst => {
10796
10798
  if (inst?.modules?.backend?.name?.indexOf('Locize') > 0) return true;
10797
10799
  if (inst?.modules?.backend?.constructor?.name?.indexOf('Locize') > 0) return true;
@@ -10852,8 +10854,9 @@ class I18n extends EventEmitter {
10852
10854
  if (typeof this.options.overloadTranslationOptionHandler !== 'function') {
10853
10855
  this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
10854
10856
  }
10855
- if (this.options.showSupportNotice !== false && !usesLocize(this)) {
10856
- if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙');
10857
+ if (this.options.showSupportNotice !== false && !usesLocize(this) && !supportNoticeShown) {
10858
+ if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙');
10859
+ supportNoticeShown = true;
10857
10860
  }
10858
10861
  const createClassOnDemand = ClassOrObject => {
10859
10862
  if (!ClassOrObject) return null;
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BNAtcxNG.js');
3
+ var index = require('./index-BrME-8br.js');
4
4
 
5
5
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
6
6
  /*
7
- Stencil Client Patch Browser v4.42.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Patch Browser v4.43.0 | 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-BNAtcxNG.js');
3
+ var index = require('./index-BrME-8br.js');
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "compiler": {
27
27
  "name": "@stencil/core",
28
- "version": "4.42.1",
28
+ "version": "4.43.0",
29
29
  "typescriptVersion": "5.8.3"
30
30
  },
31
31
  "collections": [],
@@ -67,7 +67,7 @@ export class LidoCalculator {
67
67
  return;
68
68
  if (this.objective && this.objective != '' && !this.objective.includes(',')) {
69
69
  console.log("hi iscorrect verified");
70
- isCorrect = userInput === this.objective;
70
+ isCorrect = Number(userInput) === Number(this.objective);
71
71
  }
72
72
  // --- Multiple Objectives ---
73
73
  else if (this.objective && this.objective.includes(',')) {
@@ -143,7 +143,7 @@ export class LidoCalculator {
143
143
  }
144
144
  render() {
145
145
  const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
146
- return (h(Host, { key: '595c92e80baed8e1709c51302aa427d672b3a9e0', onEntry: this.onEntry, id: "lidoCalculator", style: { width: this.width, height: this.height, backgroundColor: this.bgColor, left: this.x, top: this.y } }, h("lido-cell", { key: '4a2966a46fd008d66fedeb5f44e0ee2c5e8c083a', visible: "true", height: "94px", width: "60px" }, h("lido-text", { key: '35e38f7412be8489b668ba0aab927b7ba3d98f29', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "176%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, h("img", { key: '926def912022a30a27f5419d98348beb84fc1a42', src: this.penIcon, alt: "pen", style: { width: '100%', height: '100%' } }))), h("div", { key: '41a69c7aa7d1dfbeea19b1a1ef095b97d2c953ba', class: "lido-calculator-displayParent" }, h("div", { key: '047dfc84e8b02739a982287f82b1df2b7f552dcd', class: "lido-calculator-display" }, this.displayValue)), h("div", { key: '41cd91f2c9aa40f6adcf6b0318e07e394bc3b38e', class: "lido-calculator-buttons" }, numbers.map((num, i) => (h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
146
+ return (h(Host, { key: '29f91af1bedaa8be605cdf82fddf74b5622eff6e', onEntry: this.onEntry, id: "lidoCalculator", style: { width: this.width, height: this.height, backgroundColor: this.bgColor, left: this.x, top: this.y } }, h("lido-cell", { key: '1ac0f61986e688603db21b2eb1bb52bbcabca1ca', visible: "true", height: "94px", width: "60px" }, h("lido-text", { key: '3bdacbcb2ea2f371b11a2ed05eb271e0a75c5e09', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "176%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, h("img", { key: '5f7bb3c09bccdb21c2bda00ae99234409bad7eda', src: this.penIcon, alt: "pen", style: { width: '100%', height: '100%' } }))), h("div", { key: '0891cd4b5929861d264c29684ef260f61e65004b', class: "lido-calculator-displayParent" }, h("div", { key: 'ac5861ca1a9ebaee9eb7d729f8d2b88933b733d5', class: "lido-calculator-display" }, this.displayValue)), h("div", { key: 'f80c85a89462fd96630a4bf8a304284e4546fe72', class: "lido-calculator-buttons" }, numbers.map((num, i) => (h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
147
147
  'lido-calculator-btn-special': num === '←' || num === 'OK',
148
148
  'lido-calculator-btn-default': num !== '←' && num !== 'OK'
149
149
  }, onClick: () => this.handleClick(num) }))))));
@@ -1226,14 +1226,14 @@ export const animateBoxCells = async (element, value) => {
1226
1226
  await new Promise(resolve => setTimeout(resolve, 600)); // Adjust delay as needed
1227
1227
  cell.classList.remove('lido-box-highlight');
1228
1228
  }
1229
- // checkout parent cell first then pick the first text child inside cell
1229
+ // checkout parent cell first then pick the second text child inside cell
1230
1230
  const parentCell = document.getElementById(LidoContainer);
1231
1231
  if (!parentCell)
1232
1232
  return;
1233
- const firstTextChild = parentCell.querySelector('lido-text');
1234
- if (firstTextChild) {
1233
+ const instructionText = parentCell.children[2];
1234
+ if (instructionText) {
1235
1235
  // play the text child inside parent cell
1236
- await AudioPlayer.getI().play(firstTextChild);
1236
+ await AudioPlayer.getI().play(instructionText);
1237
1237
  }
1238
1238
  // Now select each box cell's text child and play them one by one
1239
1239
  for (const box of boxCells) {
@@ -1274,9 +1274,9 @@ export const SumTogetherAnimation = async (element, value) => {
1274
1274
  if (!value)
1275
1275
  return;
1276
1276
  // Expecting structure: [_, TopRow, questionRow, optionRow, ...]
1277
- const TopRow = Array.from(element.children)[2];
1278
- const questionRow = Array.from(element.children)[3];
1279
- const optionRow = Array.from(element.children)[4];
1277
+ const TopRow = Array.from(element.children)[3];
1278
+ const questionRow = Array.from(element.children)[4];
1279
+ const optionRow = Array.from(element.children)[5];
1280
1280
  if (!TopRow || !questionRow || !optionRow)
1281
1281
  return;
1282
1282
  const topRowChildren = Array.from(TopRow.children);