lido-player 0.0.2-alpha-85 → 0.0.2-alpha-87

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 (79) hide show
  1. package/dist/cjs/{decode-B3JrVl9F.js → decode-C80xU-sR.js} +1 -1
  2. package/dist/cjs/{index-D8bbXUb6.js → index-C1PT3dXa.js} +8 -8
  3. package/dist/cjs/{index-BrME-8br.js → index-Dl8SlqP-.js} +24 -15
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/lido-avatar_22.cjs.entry.js +54 -31
  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 +2 -1
  9. package/dist/collection/components/calculator/lido-calculator.js +2 -2
  10. package/dist/collection/components/root/lido-root.js +5 -5
  11. package/dist/collection/components/scale/lido-balance.js +5 -5
  12. package/dist/collection/stories/Templates/balancing/balancing.stories.js +3 -2
  13. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
  14. package/dist/collection/stories/Templates/total/total.stories.js +1 -2
  15. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +1 -1
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/lido-avatar.js +1 -1
  18. package/dist/components/lido-balance.js +1 -1
  19. package/dist/components/lido-calculator.js +1 -1
  20. package/dist/components/lido-canvas.js +1 -1
  21. package/dist/components/lido-cell.js +1 -1
  22. package/dist/components/lido-col.js +1 -1
  23. package/dist/components/lido-container.js +1 -1
  24. package/dist/components/lido-flash-card.js +1 -1
  25. package/dist/components/lido-float.js +1 -1
  26. package/dist/components/lido-home.js +1 -1
  27. package/dist/components/lido-image.js +1 -1
  28. package/dist/components/lido-keyboard.js +1 -1
  29. package/dist/components/lido-math-matrix.js +1 -1
  30. package/dist/components/lido-random.js +1 -1
  31. package/dist/components/lido-root.js +1 -1
  32. package/dist/components/lido-row.js +1 -1
  33. package/dist/components/lido-shape.js +1 -1
  34. package/dist/components/lido-slide-fill.js +1 -1
  35. package/dist/components/lido-text.js +1 -1
  36. package/dist/components/lido-trace.js +1 -1
  37. package/dist/components/lido-wrap.js +1 -1
  38. package/dist/components/p-1PmJa9_u.js +1 -0
  39. package/dist/components/{p-BgobUKTe.js → p-B97yn0-n.js} +1 -1
  40. package/dist/components/{p-D03VKJGo.js → p-BLx2hZ8d.js} +1 -1
  41. package/dist/components/{p-Crep3X11.js → p-BOHNyYPi.js} +1 -1
  42. package/dist/components/{p-DrtTwP2F.js → p-BOTEFjDY.js} +1 -1
  43. package/dist/components/{p-RjRCz7yT.js → p-BRBNRF2F.js} +1 -1
  44. package/dist/components/p-CBg54ApH.js +1 -0
  45. package/dist/components/{p-B3HgEpJG.js → p-CfdL3fZ9.js} +1 -1
  46. package/dist/components/{p-IcMu8wni.js → p-CusU-d3G.js} +1 -1
  47. package/dist/components/{p-td_1ZVnU.js → p-D4JZI_JB.js} +1 -1
  48. package/dist/components/{p-BsPnNAAL.js → p-D5OuulAW.js} +1 -1
  49. package/dist/components/p-DFnbzZUc.js +1 -0
  50. package/dist/components/{p-Dn-hbXwJ.js → p-DVoNbO_j.js} +1 -1
  51. package/dist/components/{p-0px10m_v.js → p-De6WHLEQ.js} +1 -1
  52. package/dist/components/{p-CLKF3KKQ.js → p-DqskvXvD.js} +1 -1
  53. package/dist/components/{p-CFm5fhyW.js → p-Dr5sh_El.js} +1 -1
  54. package/dist/components/{p-BazrpAkN.js → p-DuWrKD5Z.js} +1 -1
  55. package/dist/components/{p-D9uv_vD8.js → p-JtdpRTRi.js} +1 -1
  56. package/dist/components/{p-DABXleaM.js → p-jt8Ishvd.js} +1 -1
  57. package/dist/components/p-v5QPz3yz.js +1 -0
  58. package/dist/esm/{decode-5650cvSZ.js → decode-CT8SQ-Bc.js} +1 -1
  59. package/dist/esm/{index-BS8hqwC8.js → index-DumOk5HE.js} +8 -8
  60. package/dist/esm/{index-DoO-CWOR.js → index-DwCQErNN.js} +24 -15
  61. package/dist/esm/index.js +2 -2
  62. package/dist/esm/lido-avatar_22.entry.js +54 -31
  63. package/dist/esm/lido-player.js +3 -3
  64. package/dist/esm/loader.js +2 -2
  65. package/dist/lido-player/index.esm.js +1 -1
  66. package/dist/lido-player/lido-player.esm.js +1 -1
  67. package/dist/lido-player/p-620b7bc6.entry.js +1 -0
  68. package/dist/lido-player/{p-CfnmyWEH.js → p-DT7g3bxF.js} +1 -1
  69. package/dist/lido-player/p-DWRQJAW3.js +1 -0
  70. package/dist/lido-player/p-DwCQErNN.js +2 -0
  71. package/dist/types/stencil-public-runtime.d.ts +3 -1
  72. package/package.json +1 -1
  73. package/dist/components/p-8hUAy6h_.js +0 -1
  74. package/dist/components/p-DY8oDVo1.js +0 -1
  75. package/dist/components/p-Uxk5qsqJ.js +0 -1
  76. package/dist/components/p-hMN8yrUc.js +0 -1
  77. package/dist/lido-player/p-30bd3a9b.entry.js +0 -1
  78. package/dist/lido-player/p-CMJGsr8z.js +0 -1
  79. package/dist/lido-player/p-DoO-CWOR.js +0 -2
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D8bbXUb6.js');
3
+ var index = require('./index-C1PT3dXa.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-BrME-8br.js');
3
+ var index$1 = require('./index-Dl8SlqP-.js');
4
4
 
5
5
  const DragMapKey = 'lidoDragMap';
6
6
  const SelectedValuesKey = 'lidoSelectedValues';
@@ -555,12 +555,12 @@ function enableDraggingWithScaling(element) {
555
555
  let mostOverlappedElement = findMostoverlappedElement$1(element, 'drop');
556
556
  if (!mostOverlappedElement) {
557
557
  // build current selection/drop maps so reset logic can update counts correctly
558
- const selectedValueData = (_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : "[]";
559
- const dragSelectedData = JSON.stringify(buildDragSelectedMapFromDOM());
558
+ (_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : "[]";
559
+ JSON.stringify(buildDragSelectedMapFromDOM());
560
560
  const dropSelectedDataObject = buildDragSelectedMapFromDOM();
561
561
  JSON.stringify(dropSelectedDataObject);
562
562
  const dropHasDrag = buildDropHasDragFromDOM();
563
- handleResetDragElement(element, null, dropHasDrag, selectedValueData, dragSelectedData);
563
+ handleResetDragElement(element, null, dropHasDrag, null, null);
564
564
  return;
565
565
  }
566
566
  onElementDropComplete(element, mostOverlappedElement);
@@ -7207,7 +7207,7 @@ var tanh$2 = Math.tanh || function (x) {
7207
7207
  function copysign(x, y) {
7208
7208
  var signx = true ;
7209
7209
  var signy = y > 0 ? true : y < 0 ? false : 1 / y === Infinity;
7210
- return signx ^ signy ? -6.283185307179586 : x;
7210
+ return signx ^ signy ? -x : x;
7211
7211
  }
7212
7212
  function _toNumberOrThrow(value, onError) {
7213
7213
  if (isNumber(value)) {
@@ -7830,7 +7830,7 @@ var EXP_LIMIT = 9e15, // 0 to 9e15
7830
7830
 
7831
7831
  // The minimum exponent value, beneath which underflow to zero occurs.
7832
7832
  // JavaScript numbers: -324 (5e-324)
7833
- minE: -9e15, // -1 to -EXP_LIMIT
7833
+ minE: -EXP_LIMIT, // -1 to -EXP_LIMIT
7834
7834
 
7835
7835
  // The maximum exponent value, above which overflow to Infinity occurs.
7836
7836
  // JavaScript numbers: 308 (1.7976931348623157e+308)
@@ -11956,10 +11956,10 @@ function config(obj) {
11956
11956
  ps = [
11957
11957
  'precision', 1, MAX_DIGITS,
11958
11958
  'rounding', 0, 8,
11959
- 'toExpNeg', -9e15, 0,
11959
+ 'toExpNeg', -EXP_LIMIT, 0,
11960
11960
  'toExpPos', 0, EXP_LIMIT,
11961
11961
  'maxE', 0, EXP_LIMIT,
11962
- 'minE', -9e15, 0,
11962
+ 'minE', -EXP_LIMIT, 0,
11963
11963
  'modulo', 0, 9
11964
11964
  ];
11965
11965
 
@@ -25,9 +25,22 @@ 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.0 | MIT Licensed | https://stenciljs.com
28
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
29
29
  */
30
30
 
31
+
32
+ // src/utils/get-prop-descriptor.ts
33
+ function getPropertyDescriptor(obj, memberName, getOnly) {
34
+ const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
35
+ while (obj && obj !== stopAt) {
36
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
37
+ if (desc && (!getOnly || desc.get)) return desc;
38
+ obj = Object.getPrototypeOf(obj);
39
+ }
40
+ return void 0;
41
+ }
42
+
43
+ // src/utils/es2022-rewire-class-members.ts
31
44
  var reWireGetterSetter = (instance, hostRef) => {
32
45
  var _a;
33
46
  const cmpMeta = hostRef.$cmpMeta$;
@@ -35,7 +48,7 @@ var reWireGetterSetter = (instance, hostRef) => {
35
48
  members.map(([memberName, [memberFlags]]) => {
36
49
  if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
37
50
  const ogValue = instance[memberName];
38
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
51
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
39
52
  if (ogDescriptor) {
40
53
  Object.defineProperty(instance, memberName, {
41
54
  get() {
@@ -48,18 +61,14 @@ var reWireGetterSetter = (instance, hostRef) => {
48
61
  enumerable: true
49
62
  });
50
63
  }
51
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
64
+ if (hostRef.$instanceValues$.has(memberName)) {
65
+ instance[memberName] = hostRef.$instanceValues$.get(memberName);
66
+ } else if (ogValue !== void 0) {
67
+ instance[memberName] = ogValue;
68
+ }
52
69
  }
53
70
  });
54
71
  };
55
- function getPropertyDescriptor(obj, memberName) {
56
- while (obj) {
57
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
58
- if (desc == null ? void 0 : desc.get) return desc;
59
- obj = Object.getPrototypeOf(obj);
60
- }
61
- return void 0;
62
- }
63
72
 
64
73
  // src/client/client-host-ref.ts
65
74
  var getHostRef = (ref) => {
@@ -443,7 +452,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
443
452
  }
444
453
  } else {
445
454
  const existingStyleContainer = styleContainerNode.querySelector("style");
446
- if (existingStyleContainer) {
455
+ if (existingStyleContainer && true) {
447
456
  existingStyleContainer.textContent = style + existingStyleContainer.textContent;
448
457
  } else {
449
458
  styleContainerNode.prepend(styleElm);
@@ -721,7 +730,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
721
730
  return;
722
731
  } else {
723
732
  const isComplex = isComplexType(newValue);
724
- if ((isProp || isComplex && newValue !== null) && true) {
733
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
725
734
  try {
726
735
  if (!elm.tagName.includes("-")) {
727
736
  const n = newValue == null ? "" : newValue;
@@ -1585,7 +1594,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1585
1594
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1586
1595
  members.map(([memberName, [memberFlags]]) => {
1587
1596
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1588
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1597
+ const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
1589
1598
  if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1590
1599
  if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1591
1600
  if (flags & 1 /* isElementConstructor */ || !origGetter) {
@@ -1847,7 +1856,7 @@ var connectedCallback = (elm) => {
1847
1856
  }
1848
1857
  if (cmpMeta.$members$) {
1849
1858
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1850
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1859
+ if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
1851
1860
  const value = elm[memberName];
1852
1861
  delete elm[memberName];
1853
1862
  elm[memberName] = value;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-D8bbXUb6.js');
4
- require('./index-BrME-8br.js');
3
+ var index = require('./index-C1PT3dXa.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-BrME-8br.js');
4
- var index$1 = require('./index-D8bbXUb6.js');
3
+ var index = require('./index-Dl8SlqP-.js');
4
+ var index$1 = require('./index-C1PT3dXa.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 = {491138:(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
- }, 493316:() => {
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
- }, 493620:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493724:() => {
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
- }, 493895:(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
- }, 496772:a => window.h.qa(a).L.sampleRate, 496845: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
- }, 497245:a => {
879
+ }, 484333:a => {
880
880
  window.h.Ab(a);
881
- }, 497295: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
- }, 497434: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.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}}');
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 */
@@ -8412,9 +8412,9 @@ const LidoBalance = class {
8412
8412
  }
8413
8413
  async componentWillLoad() {
8414
8414
  this.updateStyles();
8415
- this.pivotSvg = await this.fetchAndApplyFill(this.pivotimage);
8416
- this.scaleSvg = await this.fetchAndApplyFill(this.scaleimage);
8417
- this.handlerSvg = await this.fetchAndApplyFill(this.handlerimage);
8415
+ this.pivotSvg = await this.fetchAndApplyFill(index$1.convertUrlToRelative(this.pivotimage));
8416
+ this.scaleSvg = await this.fetchAndApplyFill(index$1.convertUrlToRelative(this.scaleimage));
8417
+ this.handlerSvg = await this.fetchAndApplyFill(index$1.convertUrlToRelative(this.handlerimage));
8418
8418
  }
8419
8419
  componentDidLoad() {
8420
8420
  this.animateBalance();
@@ -8499,7 +8499,7 @@ const LidoBalance = class {
8499
8499
  };
8500
8500
  }
8501
8501
  render() {
8502
- return (index.h(index.Host, { key: 'e1cdc8aab0b18f3cc654a52a1e315ba6d708adb3', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString() }, index.h("div", { key: '98ed1d2b6eb29e0fcf2ac656f8bb87cbe4420dfa', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), index.h("div", { key: '8139021fec3f6d19a8fc711f02dc9e61197e5e5c', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), index.h("div", { key: '3f7621e16932c862ea50e3ed6e941efb3b77c292', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), index.h("div", { key: '939e0df96916eb3259e6adcefa0c9a786aeccdef', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), index.h("div", { key: 'c4de234c5058cb5d6bef94b1c75f67ca85ee7fc9', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
8502
+ return (index.h(index.Host, { key: 'aded73152903b2a187a50c7caa8c50bc1a495ca8', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString(), "pivot-image": this.pivotSvg, "scale-image": this.scaleSvg, "handler-image": this.handlerSvg }, index.h("div", { key: '81e70bbf6773194baff114ab17035a5c029d10fb', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), index.h("div", { key: '9dd77bb25e1fc0f4e14303a687945147f5b20caf', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), index.h("div", { key: '0afcb89a2b8641f1268c0cb77796d2948339a32e', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), index.h("div", { key: 'f2d66362fb858602df1ac44a8e987aa9aa558e58', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), index.h("div", { key: '996d1211f5c35abe2531b46947d6015fc61a327f', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
8503
8503
  }
8504
8504
  get el() { return index.getElement(this); }
8505
8505
  static get watchers() { return {
@@ -8677,7 +8677,7 @@ const LidoCalculator = class {
8677
8677
  }
8678
8678
  render() {
8679
8679
  const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
8680
- return (index.h(index.Host, { key: '775fa662319b4143bf1f71c73f4491d07052ce03', 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: '6fb3cdc51b9cd2a1b3883d955838c8b818e8f21d', visible: "true", height: "94px", width: "60px" }, index.h("lido-text", { key: 'af2fccdc3cb045573efa2358d67bd23ea6570f30', 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: 'a6cfb8d952e224e65b33ba9cdd4ddb630cb156f7', src: this.penIcon, alt: "pen", style: { width: '100%', height: '100%' } }))), index.h("div", { key: '654e8936e30434424e507fa3df32624a6461d42e', class: "lido-calculator-displayParent" }, index.h("div", { key: 'd9edbdd17fb434fe0117c8c57c28c2f88889b09f', class: "lido-calculator-display" }, this.displayValue)), index.h("div", { key: 'b46515c1b671c7a7a32e5a750590bc7196dc7f3a', class: "lido-calculator-buttons" }, numbers.map((num, i) => (index.h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
8680
+ return (index.h(index.Host, { key: '3142741f9712fec62b3094504a689ab10a8a4adc', 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: '977a41823d740f1eaf24c6296c366ee2f070fc75', visible: "true", height: "94px", width: "60px" }, index.h("lido-text", { key: '8a16f2f6bf09e5a87cc9d08acf3ab2cf50a09876', 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: 'dabdc13613fc5f6a8ad73c933a6de69f320dc626', src: index$1.convertUrlToRelative(this.penIcon), alt: "pen", style: { width: '100%', height: '100%' } }))), index.h("div", { key: '27a068eee1580b397709c274f1f29b626d681e17', class: "lido-calculator-displayParent" }, index.h("div", { key: 'dd430c1e6366101ad8e9822961c06a92e52a7173', class: "lido-calculator-display" }, this.displayValue)), index.h("div", { key: 'ab7db4a88676205492e84cb241ce759eab93404d', class: "lido-calculator-buttons" }, numbers.map((num, i) => (index.h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
8681
8681
  'lido-calculator-btn-special': num === '←' || num === 'OK',
8682
8682
  'lido-calculator-btn-default': num !== '←' && num !== 'OK'
8683
8683
  }, onClick: () => this.handleClick(num) }))))));
@@ -9308,7 +9308,7 @@ const deepFind = (obj, path, keySeparator = '.') => {
9308
9308
  }
9309
9309
  return current;
9310
9310
  };
9311
- const getCleanedCode = code => code?.replace('_', '-');
9311
+ const getCleanedCode = code => code?.replace(/_/g, '-');
9312
9312
 
9313
9313
  const consoleLogger = {
9314
9314
  type: 'logger',
@@ -9569,7 +9569,16 @@ function keysFromSelector(selector, opts) {
9569
9569
  const {
9570
9570
  [PATH_KEY]: path
9571
9571
  } = selector(createProxy());
9572
- return path.join(opts?.keySeparator ?? '.');
9572
+ const keySeparator = opts?.keySeparator ?? '.';
9573
+ const nsSeparator = opts?.nsSeparator ?? ':';
9574
+ if (path.length > 1 && nsSeparator) {
9575
+ const ns = opts?.ns;
9576
+ const nsArray = Array.isArray(ns) ? ns : null;
9577
+ if (nsArray && nsArray.length > 1 && nsArray.slice(1).includes(path[0])) {
9578
+ return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
9579
+ }
9580
+ }
9581
+ return path.join(keySeparator);
9573
9582
  }
9574
9583
 
9575
9584
  const checkedLoadedFor = {};
@@ -9643,6 +9652,10 @@ class Translator extends EventEmitter {
9643
9652
  ...opt
9644
9653
  });
9645
9654
  if (!Array.isArray(keys)) keys = [String(keys)];
9655
+ keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {
9656
+ ...this.options,
9657
+ ...opt
9658
+ }) : String(k));
9646
9659
  const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;
9647
9660
  const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
9648
9661
  const {
@@ -9889,6 +9902,10 @@ class Translator extends EventEmitter {
9889
9902
  let usedLng;
9890
9903
  let usedNS;
9891
9904
  if (isString(keys)) keys = [keys];
9905
+ if (Array.isArray(keys)) keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {
9906
+ ...this.options,
9907
+ ...opt
9908
+ }) : k);
9892
9909
  keys.forEach(k => {
9893
9910
  if (this.isValidLookup(found)) return;
9894
9911
  const extracted = this.extractFromKey(k, opt);
@@ -10817,13 +10834,21 @@ const bindMemberFunctions = inst => {
10817
10834
  }
10818
10835
  });
10819
10836
  };
10820
- let supportNoticeShown = false;
10837
+ const SUPPORT_NOTICE_KEY = '__i18next_supportNoticeShown';
10838
+ const getSupportNoticeShown = () => typeof globalThis !== 'undefined' && !!globalThis[SUPPORT_NOTICE_KEY];
10839
+ const setSupportNoticeShown = () => {
10840
+ if (typeof globalThis !== 'undefined') globalThis[SUPPORT_NOTICE_KEY] = true;
10841
+ };
10821
10842
  const usesLocize = inst => {
10822
10843
  if (inst?.modules?.backend?.name?.indexOf('Locize') > 0) return true;
10823
10844
  if (inst?.modules?.backend?.constructor?.name?.indexOf('Locize') > 0) return true;
10824
10845
  if (inst?.options?.backend?.backends) {
10825
10846
  if (inst.options.backend.backends.some(b => b?.name?.indexOf('Locize') > 0 || b?.constructor?.name?.indexOf('Locize') > 0)) return true;
10826
10847
  }
10848
+ if (inst?.options?.backend?.projectId) return true;
10849
+ if (inst?.options?.backend?.backendOptions) {
10850
+ if (inst.options.backend.backendOptions.some(b => b?.projectId)) return true;
10851
+ }
10827
10852
  return false;
10828
10853
  };
10829
10854
  class I18n extends EventEmitter {
@@ -10878,9 +10903,9 @@ class I18n extends EventEmitter {
10878
10903
  if (typeof this.options.overloadTranslationOptionHandler !== 'function') {
10879
10904
  this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
10880
10905
  }
10881
- if (this.options.showSupportNotice !== false && !usesLocize(this) && !supportNoticeShown) {
10882
- 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 💙');
10883
- supportNoticeShown = true;
10906
+ if (this.options.showSupportNotice !== false && !usesLocize(this) && !getSupportNoticeShown()) {
10907
+ if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙');
10908
+ setSupportNoticeShown();
10884
10909
  }
10885
10910
  const createClassOnDemand = ClassOrObject => {
10886
10911
  if (!ClassOrObject) return null;
@@ -11142,21 +11167,19 @@ class I18n extends EventEmitter {
11142
11167
  o.lngs = o.lngs || fixedT.lngs;
11143
11168
  o.ns = o.ns || fixedT.ns;
11144
11169
  if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
11170
+ const selectorOpts = {
11171
+ ...this.options,
11172
+ ...o
11173
+ };
11145
11174
  const keySeparator = this.options.keySeparator || '.';
11146
11175
  let resultKey;
11147
11176
  if (o.keyPrefix && Array.isArray(key)) {
11148
11177
  resultKey = key.map(k => {
11149
- if (typeof k === 'function') k = keysFromSelector(k, {
11150
- ...this.options,
11151
- ...opts
11152
- });
11178
+ if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);
11153
11179
  return `${o.keyPrefix}${keySeparator}${k}`;
11154
11180
  });
11155
11181
  } else {
11156
- if (typeof key === 'function') key = keysFromSelector(key, {
11157
- ...this.options,
11158
- ...opts
11159
- });
11182
+ if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);
11160
11183
  resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
11161
11184
  }
11162
11185
  return this.t(resultKey, o);
@@ -12908,7 +12931,7 @@ const LidoHome = class {
12908
12931
  }
12909
12932
  // Pure-JS fallback (no wasm asset required)
12910
12933
  try {
12911
- const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-B3JrVl9F.js'); }).then(function (n) { return n.decode; });
12934
+ const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-C80xU-sR.js'); }).then(function (n) { return n.decode; });
12912
12935
  const brotliDecompressBuffer = brotliDecodeModule.BrotliDecompressBuffer ||
12913
12936
  ((_a = brotliDecodeModule.default) === null || _a === void 0 ? void 0 : _a.BrotliDecompressBuffer);
12914
12937
  if (typeof brotliDecompressBuffer !== 'function') {
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BrME-8br.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.0 | 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-BrME-8br.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;
@@ -23,9 +23,10 @@
23
23
  "components/trace/lido-trace.js",
24
24
  "components/wrap/lido-wrap.js"
25
25
  ],
26
+ "mixins": [],
26
27
  "compiler": {
27
28
  "name": "@stencil/core",
28
- "version": "4.43.0",
29
+ "version": "4.43.3",
29
30
  "typescriptVersion": "5.8.3"
30
31
  },
31
32
  "collections": [],
@@ -1,5 +1,5 @@
1
1
  import { h, Host } from "@stencil/core";
2
- import { executeActions, equationCheck, storingEachActivityScore, calculateScore, triggerNextContainer } from "../../utils/utils";
2
+ import { executeActions, equationCheck, storingEachActivityScore, calculateScore, triggerNextContainer, convertUrlToRelative } from "../../utils/utils";
3
3
  import { NextContainerKey, SelectedValuesKey, CalculatorOk } from "../../utils/constants";
4
4
  export class LidoCalculator {
5
5
  constructor() {
@@ -167,7 +167,7 @@ export class LidoCalculator {
167
167
  }
168
168
  render() {
169
169
  const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
170
- return (h(Host, { key: '775fa662319b4143bf1f71c73f4491d07052ce03', 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: '6fb3cdc51b9cd2a1b3883d955838c8b818e8f21d', visible: "true", height: "94px", width: "60px" }, h("lido-text", { key: 'af2fccdc3cb045573efa2358d67bd23ea6570f30', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "176%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, h("img", { key: 'a6cfb8d952e224e65b33ba9cdd4ddb630cb156f7', src: this.penIcon, alt: "pen", style: { width: '100%', height: '100%' } }))), h("div", { key: '654e8936e30434424e507fa3df32624a6461d42e', class: "lido-calculator-displayParent" }, h("div", { key: 'd9edbdd17fb434fe0117c8c57c28c2f88889b09f', class: "lido-calculator-display" }, this.displayValue)), h("div", { key: 'b46515c1b671c7a7a32e5a750590bc7196dc7f3a', class: "lido-calculator-buttons" }, numbers.map((num, i) => (h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
170
+ return (h(Host, { key: '3142741f9712fec62b3094504a689ab10a8a4adc', 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: '977a41823d740f1eaf24c6296c366ee2f070fc75', visible: "true", height: "94px", width: "60px" }, h("lido-text", { key: '8a16f2f6bf09e5a87cc9d08acf3ab2cf50a09876', visible: "true", id: "lido-calculator-penIcon", type: "click", height: "80px", x: "176%", width: "89px", onEntry: "this.position='relative';", class: "top-icon" }, h("img", { key: 'dabdc13613fc5f6a8ad73c933a6de69f320dc626', src: convertUrlToRelative(this.penIcon), alt: "pen", style: { width: '100%', height: '100%' } }))), h("div", { key: '27a068eee1580b397709c274f1f29b626d681e17', class: "lido-calculator-displayParent" }, h("div", { key: 'dd430c1e6366101ad8e9822961c06a92e52a7173', class: "lido-calculator-display" }, this.displayValue)), h("div", { key: 'ab7db4a88676205492e84cb241ce759eab93404d', class: "lido-calculator-buttons" }, numbers.map((num, i) => (h("lido-text", { id: `btn-${i}`, string: num, visible: "true", type: "click", class: {
171
171
  'lido-calculator-btn-special': num === '←' || num === 'OK',
172
172
  'lido-calculator-btn-default': num !== '←' && num !== 'OK'
173
173
  }, onClick: () => this.handleClick(num) }))))));
@@ -164,7 +164,7 @@ export class LidoRoot {
164
164
  "optional": false,
165
165
  "docs": {
166
166
  "tags": [],
167
- "text": "CSS margin value applied to each child element inside the container.\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
167
+ "text": "CSS margin value applied to each child element inside the container.\r\nAccepts standard CSS margin formats (e.g., '10px', '5px 10px', etc.)."
168
168
  },
169
169
  "getter": false,
170
170
  "setter": false,
@@ -224,7 +224,7 @@ export class LidoRoot {
224
224
  "optional": false,
225
225
  "docs": {
226
226
  "tags": [],
227
- "text": "Custom URL for the Exit button icon.\nFalls back to the default icon if not provided or invalid."
227
+ "text": "Custom URL for the Exit button icon.\r\nFalls back to the default icon if not provided or invalid."
228
228
  },
229
229
  "getter": false,
230
230
  "setter": false,
@@ -243,7 +243,7 @@ export class LidoRoot {
243
243
  "optional": false,
244
244
  "docs": {
245
245
  "tags": [],
246
- "text": "Custom URL for the Previous button icon.\nFalls back to the default icon if not provided or invalid."
246
+ "text": "Custom URL for the Previous button icon.\r\nFalls back to the default icon if not provided or invalid."
247
247
  },
248
248
  "getter": false,
249
249
  "setter": false,
@@ -262,7 +262,7 @@ export class LidoRoot {
262
262
  "optional": false,
263
263
  "docs": {
264
264
  "tags": [],
265
- "text": "Custom URL for the Next button icon.\nFalls back to the default icon if not provided or invalid."
265
+ "text": "Custom URL for the Next button icon.\r\nFalls back to the default icon if not provided or invalid."
266
266
  },
267
267
  "getter": false,
268
268
  "setter": false,
@@ -281,7 +281,7 @@ export class LidoRoot {
281
281
  "optional": false,
282
282
  "docs": {
283
283
  "tags": [],
284
- "text": "Custom URL for the Speaker button icon.\nFalls back to the default icon if not provided or invalid."
284
+ "text": "Custom URL for the Speaker button icon.\r\nFalls back to the default icon if not provided or invalid."
285
285
  },
286
286
  "getter": false,
287
287
  "setter": false,
@@ -1,5 +1,5 @@
1
1
  import { h, Host } from "@stencil/core";
2
- import { initEventsForElement, parseProp } from "../../utils/utils";
2
+ import { initEventsForElement, convertUrlToRelative, parseProp } from "../../utils/utils";
3
3
  export class LidoBalance {
4
4
  constructor() {
5
5
  /**
@@ -125,9 +125,9 @@ export class LidoBalance {
125
125
  }
126
126
  async componentWillLoad() {
127
127
  this.updateStyles();
128
- this.pivotSvg = await this.fetchAndApplyFill(this.pivotimage);
129
- this.scaleSvg = await this.fetchAndApplyFill(this.scaleimage);
130
- this.handlerSvg = await this.fetchAndApplyFill(this.handlerimage);
128
+ this.pivotSvg = await this.fetchAndApplyFill(convertUrlToRelative(this.pivotimage));
129
+ this.scaleSvg = await this.fetchAndApplyFill(convertUrlToRelative(this.scaleimage));
130
+ this.handlerSvg = await this.fetchAndApplyFill(convertUrlToRelative(this.handlerimage));
131
131
  }
132
132
  componentDidLoad() {
133
133
  this.animateBalance();
@@ -212,7 +212,7 @@ export class LidoBalance {
212
212
  };
213
213
  }
214
214
  render() {
215
- return (h(Host, { key: 'e1cdc8aab0b18f3cc654a52a1e315ba6d708adb3', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString() }, h("div", { key: '98ed1d2b6eb29e0fcf2ac656f8bb87cbe4420dfa', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), h("div", { key: '8139021fec3f6d19a8fc711f02dc9e61197e5e5c', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), h("div", { key: '3f7621e16932c862ea50e3ed6e941efb3b77c292', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), h("div", { key: '939e0df96916eb3259e6adcefa0c9a786aeccdef', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), h("div", { key: 'c4de234c5058cb5d6bef94b1c75f67ca85ee7fc9', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
215
+ return (h(Host, { key: 'aded73152903b2a187a50c7caa8c50bc1a495ca8', id: "lido-balance", "bg-color": "red", onEntry: this.onEntry, class: "lido-balance", tilt: this.tilt.toString(), style: this.style, operation: this.operation.toString(), "pivot-image": this.pivotSvg, "scale-image": this.scaleSvg, "handler-image": this.handlerSvg }, h("div", { key: '81e70bbf6773194baff114ab17035a5c029d10fb', innerHTML: this.pivotSvg, id: "pivotimg", class: "pivot" }), h("div", { key: '9dd77bb25e1fc0f4e14303a687945147f5b20caf', innerHTML: this.scaleSvg, id: "scaleimg", class: "scale", ref: (el) => (this.scaleEl = el) }), h("div", { key: '0afcb89a2b8641f1268c0cb77796d2948339a32e', innerHTML: this.handlerSvg, id: "handlerimg", class: "handler", ref: (el) => (this.leftHandleEl = el) }), h("div", { key: 'f2d66362fb858602df1ac44a8e987aa9aa558e58', innerHTML: this.handlerSvg, id: "handimg", class: "hand", ref: (el) => (this.rightHandleEl = el) }), h("div", { key: '996d1211f5c35abe2531b46947d6015fc61a327f', id: "balanceSymbol", class: "lido-balance-symbol", "aria-hidden": !this.showSymbol }, this.showSymbol ? this.balanceSymbol : '')));
216
216
  }
217
217
  static get is() { return "lido-balance"; }
218
218
  static get originalStyleUrls() {
@@ -34,7 +34,7 @@ function getContainerXml(args) {
34
34
  const rightValue = escapeXml(args.rightValue);
35
35
  return `
36
36
  <main>
37
- <lido-container visible="true" show-next-button="true" drop-action="move" objective="${objective}" equationCheck="$#lefthandle1,$#righthandle1" id="lido-container" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2000';" show-Check="true" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Balancing.png" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" is-continue-on-correct="true">
37
+ <lido-container visible="true" drop-action="move" objective="${objective}" equationCheck="$#lefthandle1,$#righthandle1" id="lido-container" onCorrect="lido-avatar.avatarAnimate='Success';this.sleep='2000';" show-Check="true" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Balancing.png" onInCorrect="lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" is-continue-on-correct="true">
38
38
  <!-- Chimple Avatar -->
39
39
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.396px,portrait.400px" width="landscape.298px,portrait.369px" x="landscape.82%, portrait.32%" y="landscape.63%, portrait.78%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
40
40
  <lido-avatar id="lido-avatar" disable-edit="true" visible="true" height="100%" width="100%" src="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/temp2/chimplecharacter.riv" alt-text="{chimpleCharacterRive}">
@@ -42,7 +42,8 @@ function getContainerXml(args) {
42
42
  </lido-cell>
43
43
  <!-- Check Button -->
44
44
  <lido-pos id="pos1" disable-edit="true" value="pos1" height="70px" width="150px" x="landscape.1324px,portrait.639px" y="landscape.220px,portrait.28%" aria-hidden="true" z="1" bg-color="transparent" type="" visible="true" audio="col1.mp3" onTouch="" onCorrect="" onEntry="">
45
-
45
+ <lido-text id="lido-checkButton" visible="true" bg-color="#5b5bd3" width="150px" height="70px" string="Next" type="click" font-family="'Baloo 2', serif" font-size="30px" font-color="white" onEntry="this.fontWeight='800'; this.addClass='lido-disable-check-button';">
46
+ </lido-text>
46
47
  </lido-pos>
47
48
  <!-- question -->
48
49
  <lido-text visible="true" audio="" id="heading" tab-index="12" height="landscape.100px,portrait.175px" font-family="'Baloo Bhai 2'" font-size="60px" width="landscape.auto,portrait.86%" string="Drop the elements to match the given symbol '${objective}'" font-color="black" bg-color="white" y="landscape.0%,portrait.-12%" onEntry="this.speak='true';this.font-weight='600'; this.position='relative';">
@@ -50,7 +50,7 @@ function getContainerXml(args) {
50
50
  .join('');
51
51
  return `<main>
52
52
  <lido-container id="lido-container" is-allow-only-correct="${PracticeMode}" tab-index="1" value="mainContainer1" bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Nimble%20table.png" objective="${answers.join(',')}" height="100%" width="100%" bg-color="transparent" visible="true" onCorrect="this.scrollCellAfterEquationSolved='true'; this.sleep='1000';lido-avatar.avatarAnimate='Success';this.sleep='2000'; " onEntry="this.justifyContent='space-around';" onInCorrect="this.scrollCellAfterEquationSolved='true'; lido-avatar.avatarAnimate='Fail'; this.sleep='2000';" show-check="false"
53
- is-continue-on-correct="true">
53
+ is-continue-on-correct="${PracticeMode}">
54
54
 
55
55
  <!-- Audio -->
56
56
  <lido-text visible="false" id="audio" tab-index="221" onEntry="this.display='none'; this.speak='true'" string="Solve the question at the third board and select the correct answer from the calculator." ></lido-text>
@@ -29,7 +29,7 @@ function getContainerXml(args) {
29
29
  const margins = ['0px 100px 0px 0px', '0px 80px 0px 0px', '-80px -214px 0px 0px', '-66px 367px 0px 0px', '0px -180px 0px 0px',];
30
30
  return `
31
31
  <main>
32
- <lido-container visible="true" id="lido-container" onInCorrect="lido-avatar.avatarAnimate='Fail';" onCorrect="lido-avatar.avatarAnimate='Success';bye.speak='true'; this.sleep='1000'; ${args.images.map((_, i) => `i${i + 1}.revealImageValue='true'; this.sleep='1000';`).join('')} this.sleep='2000';"
32
+ <lido-container visible="true" id="lido-container" onInCorrect="lido-avatar.avatarAnimate='Fail';" onCorrect="lido-avatar.avatarAnimate='Success'; this.sleep='1000'; ${args.images.map((_, i) => `i${i + 1}.revealImageValue='true'; this.sleep='1000';`).join('')} this.sleep='2000';"
33
33
  bg-image="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/background-images/Total.png" objective="${args.answer}" is-continue-on-correct="true" show-Check="false" >
34
34
  <!-- Chimple Avatar -->
35
35
  <lido-cell layout="pos" id="pos1" disable-edit="true" value="pos2" height="landscape.402px,portrait.402px" width="landscape.302px,portrait.398px" x="landscape.84%, portrait.-4%" y="landscape.58%, portrait.77%" aria-hidden="true" z="1" bg-color="transparent" visible="true" onEntry="">
@@ -38,7 +38,6 @@ function getContainerXml(args) {
38
38
  </lido-cell>
39
39
  <lido-text visible="false" audio="" onEntry="this.speak='true';" bg-color="red" string="Count the number of objects in the left and click the number on the number board">
40
40
  </lido-text>
41
- <lido-text id="bye" audio="https://db-stage.chimple.net/storage/v1/object/public/template-assets/fill-in-the-blanks/audio2.mp3" tab-index="1000"></lido-text>
42
41
 
43
42
  <!-- Main Layout -->
44
43
  <lido-cell layout="landscape.row,portrait.col" y="landscape.3%,portrait.0px" onEntry="this.position='relative';" visible="true" width="90%" height="90%" bg-color="transparent">
@@ -292,7 +292,7 @@ export function enableDraggingWithScaling(element) {
292
292
  const dropSelectedDataObject = buildDragSelectedMapFromDOM();
293
293
  const dropSelectedData = JSON.stringify(dropSelectedDataObject);
294
294
  const dropHasDrag = buildDropHasDragFromDOM();
295
- handleResetDragElement(element, null, dropHasDrag, selectedValueData, dragSelectedData, dropSelectedData);
295
+ handleResetDragElement(element, null, dropHasDrag, null, null, null);
296
296
  return;
297
297
  }
298
298
  onElementDropComplete(element, mostOverlappedElement);