lido-player 0.0.2-alpha-84 → 0.0.2-alpha-85
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.
- package/dist/cjs/{decode-DcCOGYxt.js → decode-B3JrVl9F.js} +1 -1
- package/dist/cjs/{index-7Dh-uOww.js → index-BrME-8br.js} +15 -24
- package/dist/cjs/{index-BmGzuXUP.js → index-D8bbXUb6.js} +16 -6
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +37 -46
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/calculator/lido-calculator.js +17 -4
- package/dist/collection/components/home/lido-home.js +3 -0
- package/dist/collection/components/root/lido-root.js +5 -5
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +2 -3
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
- package/dist/collection/stories/Templates/total/total.stories.js +2 -1
- package/dist/collection/utils/constants.js +1 -0
- package/dist/collection/utils/utils.js +10 -2
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-image.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/p-8hUAy6h_.js +1 -0
- package/dist/components/p-BazrpAkN.js +1 -0
- package/dist/components/{p-D9NAzHjN.js → p-BsPnNAAL.js} +1 -1
- package/dist/components/{p-Dx2gO6sh.js → p-Crep3X11.js} +1 -1
- package/dist/components/{p-DkUS6PPi.js → p-D9uv_vD8.js} +1 -1
- package/dist/components/{p-ltnEAOTv.js → p-Dn-hbXwJ.js} +1 -1
- package/dist/components/p-DrtTwP2F.js +1 -0
- package/dist/components/{p-BbmL31D0.js → p-RjRCz7yT.js} +1 -1
- package/dist/components/p-Uxk5qsqJ.js +1 -0
- package/dist/components/{p-BdmwURgL.js → p-WP-EeUIB.js} +1 -1
- package/dist/esm/{decode-DINMHb4l.js → decode-5650cvSZ.js} +1 -1
- package/dist/esm/{index-CrVvfO2B.js → index-BS8hqwC8.js} +16 -7
- package/dist/esm/{index-CBmYf7sZ.js → index-DoO-CWOR.js} +15 -24
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +37 -46
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-30bd3a9b.entry.js +1 -0
- package/dist/lido-player/p-CMJGsr8z.js +1 -0
- package/dist/lido-player/{p-CWmrkq9f.js → p-CfnmyWEH.js} +1 -1
- package/dist/lido-player/p-DoO-CWOR.js +2 -0
- package/dist/types/components/calculator/lido-calculator.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -3
- package/dist/types/utils/constants.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +2 -1
- package/package.json +1 -1
- package/dist/components/p-BVzB_wMB.js +0 -1
- package/dist/components/p-Bo_qoxns.js +0 -1
- package/dist/components/p-C-VpLebJ.js +0 -1
- package/dist/components/p-DBU82Fut.js +0 -1
- package/dist/lido-player/p-19ce1c24.entry.js +0 -1
- package/dist/lido-player/p-CBmYf7sZ.js +0 -2
- package/dist/lido-player/p-CadDPr02.js +0 -1
|
@@ -25,22 +25,9 @@ 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.
|
|
28
|
+
Stencil Client Platform v4.43.0 | 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
|
|
44
31
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
45
32
|
var _a;
|
|
46
33
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -48,7 +35,7 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
48
35
|
members.map(([memberName, [memberFlags]]) => {
|
|
49
36
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
50
37
|
const ogValue = instance[memberName];
|
|
51
|
-
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName
|
|
38
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
52
39
|
if (ogDescriptor) {
|
|
53
40
|
Object.defineProperty(instance, memberName, {
|
|
54
41
|
get() {
|
|
@@ -61,14 +48,18 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
61
48
|
enumerable: true
|
|
62
49
|
});
|
|
63
50
|
}
|
|
64
|
-
|
|
65
|
-
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
66
|
-
} else if (ogValue !== void 0) {
|
|
67
|
-
instance[memberName] = ogValue;
|
|
68
|
-
}
|
|
51
|
+
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
69
52
|
}
|
|
70
53
|
});
|
|
71
54
|
};
|
|
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
|
+
}
|
|
72
63
|
|
|
73
64
|
// src/client/client-host-ref.ts
|
|
74
65
|
var getHostRef = (ref) => {
|
|
@@ -452,7 +443,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
452
443
|
}
|
|
453
444
|
} else {
|
|
454
445
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
455
|
-
if (existingStyleContainer
|
|
446
|
+
if (existingStyleContainer) {
|
|
456
447
|
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
457
448
|
} else {
|
|
458
449
|
styleContainerNode.prepend(styleElm);
|
|
@@ -730,7 +721,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
730
721
|
return;
|
|
731
722
|
} else {
|
|
732
723
|
const isComplex = isComplexType(newValue);
|
|
733
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
724
|
+
if ((isProp || isComplex && newValue !== null) && true) {
|
|
734
725
|
try {
|
|
735
726
|
if (!elm.tagName.includes("-")) {
|
|
736
727
|
const n = newValue == null ? "" : newValue;
|
|
@@ -1594,7 +1585,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1594
1585
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1595
1586
|
members.map(([memberName, [memberFlags]]) => {
|
|
1596
1587
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1597
|
-
const { get: origGetter, set: origSetter } =
|
|
1588
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1598
1589
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1599
1590
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1600
1591
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -1856,7 +1847,7 @@ var connectedCallback = (elm) => {
|
|
|
1856
1847
|
}
|
|
1857
1848
|
if (cmpMeta.$members$) {
|
|
1858
1849
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1859
|
-
if (memberFlags & 31 /* Prop */ && Object.prototype
|
|
1850
|
+
if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
|
|
1860
1851
|
const value = elm[memberName];
|
|
1861
1852
|
delete elm[memberName];
|
|
1862
1853
|
elm[memberName] = value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./index-
|
|
3
|
+
var index$1 = require('./index-BrME-8br.js');
|
|
4
4
|
|
|
5
5
|
const DragMapKey = 'lidoDragMap';
|
|
6
6
|
const SelectedValuesKey = 'lidoSelectedValues';
|
|
@@ -21,6 +21,7 @@ const LidoContainer = 'lido-container';
|
|
|
21
21
|
const LIDO_COMMON_AUDIO_PATH = '__LIDO_COMMON_AUDIO_PATH__';
|
|
22
22
|
const LIDO_COMMON_AUDIO_READY_EVENT = 'lidoCommonAudioPathReady';
|
|
23
23
|
const TemplateID = 'template-id';
|
|
24
|
+
const CalculatorOk = 'calculator-ok';
|
|
24
25
|
exports.TraceMode = void 0;
|
|
25
26
|
(function (TraceMode) {
|
|
26
27
|
TraceMode["NoFlow"] = "noFlow";
|
|
@@ -7206,7 +7207,7 @@ var tanh$2 = Math.tanh || function (x) {
|
|
|
7206
7207
|
function copysign(x, y) {
|
|
7207
7208
|
var signx = true ;
|
|
7208
7209
|
var signy = y > 0 ? true : y < 0 ? false : 1 / y === Infinity;
|
|
7209
|
-
return signx ^ signy ? -
|
|
7210
|
+
return signx ^ signy ? -6.283185307179586 : x;
|
|
7210
7211
|
}
|
|
7211
7212
|
function _toNumberOrThrow(value, onError) {
|
|
7212
7213
|
if (isNumber(value)) {
|
|
@@ -7829,7 +7830,7 @@ var EXP_LIMIT = 9e15, // 0 to 9e15
|
|
|
7829
7830
|
|
|
7830
7831
|
// The minimum exponent value, beneath which underflow to zero occurs.
|
|
7831
7832
|
// JavaScript numbers: -324 (5e-324)
|
|
7832
|
-
minE: -
|
|
7833
|
+
minE: -9e15, // -1 to -EXP_LIMIT
|
|
7833
7834
|
|
|
7834
7835
|
// The maximum exponent value, above which overflow to Infinity occurs.
|
|
7835
7836
|
// JavaScript numbers: 308 (1.7976931348623157e+308)
|
|
@@ -11955,10 +11956,10 @@ function config(obj) {
|
|
|
11955
11956
|
ps = [
|
|
11956
11957
|
'precision', 1, MAX_DIGITS,
|
|
11957
11958
|
'rounding', 0, 8,
|
|
11958
|
-
'toExpNeg', -
|
|
11959
|
+
'toExpNeg', -9e15, 0,
|
|
11959
11960
|
'toExpPos', 0, EXP_LIMIT,
|
|
11960
11961
|
'maxE', 0, EXP_LIMIT,
|
|
11961
|
-
'minE', -
|
|
11962
|
+
'minE', -9e15, 0,
|
|
11962
11963
|
'modulo', 0, 9
|
|
11963
11964
|
];
|
|
11964
11965
|
|
|
@@ -72640,7 +72641,10 @@ const countPatternWords = (pattern) => {
|
|
|
72640
72641
|
return wordCount;
|
|
72641
72642
|
};
|
|
72642
72643
|
let countOfMistakes = 0;
|
|
72643
|
-
const storingEachActivityScore = (flag) => {
|
|
72644
|
+
const storingEachActivityScore = (flag, scoreTrigger) => {
|
|
72645
|
+
const hasCalculator = document.querySelector('lido-calculator') !== null;
|
|
72646
|
+
if (hasCalculator && scoreTrigger !== CalculatorOk)
|
|
72647
|
+
return;
|
|
72644
72648
|
if (flag) {
|
|
72645
72649
|
gameScore.rightMoves += 1;
|
|
72646
72650
|
countOfMistakes = 0;
|
|
@@ -72654,6 +72658,11 @@ const storingEachActivityScore = (flag) => {
|
|
|
72654
72658
|
console.log('Wrong Moves : ', gameScore.wrongMoves);
|
|
72655
72659
|
};
|
|
72656
72660
|
const calculateScore = () => {
|
|
72661
|
+
const container = document.getElementById(LidoContainer);
|
|
72662
|
+
const hasCalculator = document.querySelector('lido-calculator') !== null;
|
|
72663
|
+
if (hasCalculator && container && container.getAttribute('game-completed') !== 'true') {
|
|
72664
|
+
return;
|
|
72665
|
+
}
|
|
72657
72666
|
const rightMoves = gameScore.rightMoves;
|
|
72658
72667
|
const wrongMoves = gameScore.wrongMoves;
|
|
72659
72668
|
let finalScore = Math.floor((rightMoves / (rightMoves + wrongMoves)) * 100);
|
|
@@ -73533,6 +73542,7 @@ const updateCalculatorAnswer = (el) => {
|
|
|
73533
73542
|
|
|
73534
73543
|
exports.ActivityScoreKey = ActivityScoreKey;
|
|
73535
73544
|
exports.AudioPlayer = AudioPlayer;
|
|
73545
|
+
exports.CalculatorOk = CalculatorOk;
|
|
73536
73546
|
exports.LIDO_COMMON_AUDIO_PATH = LIDO_COMMON_AUDIO_PATH;
|
|
73537
73547
|
exports.LIDO_COMMON_AUDIO_READY_EVENT = LIDO_COMMON_AUDIO_READY_EVENT;
|
|
73538
73548
|
exports.LidoContainer = LidoContainer;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-BrME-8br.js');
|
|
4
|
+
var index$1 = require('./index-D8bbXUb6.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 = {
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
879
|
+
}, 497245:a => {
|
|
880
880
|
window.h.Ab(a);
|
|
881
|
-
},
|
|
881
|
+
}, 497295:a => {
|
|
882
882
|
a = window.h.qa(a);
|
|
883
883
|
a.L.resume();
|
|
884
884
|
a.state = window.h.ga.wb;
|
|
885
|
-
},
|
|
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.35.
|
|
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 */
|
|
@@ -8542,6 +8542,7 @@ const LidoCalculator = class {
|
|
|
8542
8542
|
/** Inline style object for dynamic positioning and layout control */
|
|
8543
8543
|
this.style = {};
|
|
8544
8544
|
this.userAnswers = []; // store all calculator inputs
|
|
8545
|
+
this.tempInputs = []; // store inputs before clearing display
|
|
8545
8546
|
}
|
|
8546
8547
|
updateValueAttr() {
|
|
8547
8548
|
this.el.setAttribute('value', this.displayValue);
|
|
@@ -8571,6 +8572,7 @@ const LidoCalculator = class {
|
|
|
8571
8572
|
this.updateValueAttr();
|
|
8572
8573
|
}
|
|
8573
8574
|
async verifyAnswer() {
|
|
8575
|
+
var _a;
|
|
8574
8576
|
const userInput = this.displayValue.trim();
|
|
8575
8577
|
if (!userInput)
|
|
8576
8578
|
return;
|
|
@@ -8620,9 +8622,20 @@ const LidoCalculator = class {
|
|
|
8620
8622
|
this.onOk.emit(isCorrect);
|
|
8621
8623
|
const okbtn = document.getElementById("btn-11");
|
|
8622
8624
|
if (isCorrect) {
|
|
8625
|
+
container.setAttribute("game-completed", "true");
|
|
8626
|
+
this.tempInputs.push(userInput);
|
|
8627
|
+
const existingSelected = JSON.parse((_a = container.getAttribute(index$1.SelectedValuesKey)) !== null && _a !== void 0 ? _a : '[]');
|
|
8628
|
+
const cleanedSelected = Array.isArray(existingSelected)
|
|
8629
|
+
? existingSelected.filter(v => String(v).trim() !== '')
|
|
8630
|
+
: [];
|
|
8631
|
+
const tempValue = this.tempInputs[this.tempInputs.length - 1];
|
|
8632
|
+
if (String(tempValue).trim() !== '') {
|
|
8633
|
+
cleanedSelected.push(tempValue);
|
|
8634
|
+
}
|
|
8635
|
+
container.setAttribute(index$1.SelectedValuesKey, JSON.stringify(cleanedSelected));
|
|
8623
8636
|
okbtn.style.pointerEvents = 'none'; // Disable OK button to prevent multiple clicks
|
|
8624
8637
|
this.displayValue = "";
|
|
8625
|
-
index$1.storingEachActivityScore(isCorrect);
|
|
8638
|
+
index$1.storingEachActivityScore(isCorrect, index$1.CalculatorOk);
|
|
8626
8639
|
const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
|
|
8627
8640
|
await index$1.executeActions(onCorrect, container);
|
|
8628
8641
|
const hasScrollAction = onCorrect.includes('scrollCellAfterEquationSolved');
|
|
@@ -8645,7 +8658,7 @@ const LidoCalculator = class {
|
|
|
8645
8658
|
else {
|
|
8646
8659
|
okbtn.style.pointerEvents = 'none'; // Disable OK button to prevent multiple clicks
|
|
8647
8660
|
this.displayValue = "";
|
|
8648
|
-
index$1.storingEachActivityScore(isCorrect);
|
|
8661
|
+
index$1.storingEachActivityScore(isCorrect, index$1.CalculatorOk);
|
|
8649
8662
|
const onInCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onInCorrect')) || '';
|
|
8650
8663
|
const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
|
|
8651
8664
|
const isContinueOnCorrect = container.getAttribute('is-continue-on-correct') === 'true';
|
|
@@ -8664,7 +8677,7 @@ const LidoCalculator = class {
|
|
|
8664
8677
|
}
|
|
8665
8678
|
render() {
|
|
8666
8679
|
const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
|
|
8667
|
-
return (index.h(index.Host, { key: '
|
|
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: {
|
|
8668
8681
|
'lido-calculator-btn-special': num === '←' || num === 'OK',
|
|
8669
8682
|
'lido-calculator-btn-default': num !== '←' && num !== 'OK'
|
|
8670
8683
|
}, onClick: () => this.handleClick(num) }))))));
|
|
@@ -9295,7 +9308,7 @@ const deepFind = (obj, path, keySeparator = '.') => {
|
|
|
9295
9308
|
}
|
|
9296
9309
|
return current;
|
|
9297
9310
|
};
|
|
9298
|
-
const getCleanedCode = code => code?.replace(
|
|
9311
|
+
const getCleanedCode = code => code?.replace('_', '-');
|
|
9299
9312
|
|
|
9300
9313
|
const consoleLogger = {
|
|
9301
9314
|
type: 'logger',
|
|
@@ -9556,16 +9569,7 @@ function keysFromSelector(selector, opts) {
|
|
|
9556
9569
|
const {
|
|
9557
9570
|
[PATH_KEY]: path
|
|
9558
9571
|
} = selector(createProxy());
|
|
9559
|
-
|
|
9560
|
-
const nsSeparator = opts?.nsSeparator ?? ':';
|
|
9561
|
-
if (path.length > 1 && nsSeparator) {
|
|
9562
|
-
const ns = opts?.ns;
|
|
9563
|
-
const namespaces = ns ? Array.isArray(ns) ? ns : [ns] : [];
|
|
9564
|
-
if (namespaces.includes(path[0])) {
|
|
9565
|
-
return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
|
|
9566
|
-
}
|
|
9567
|
-
}
|
|
9568
|
-
return path.join(keySeparator);
|
|
9572
|
+
return path.join(opts?.keySeparator ?? '.');
|
|
9569
9573
|
}
|
|
9570
9574
|
|
|
9571
9575
|
const checkedLoadedFor = {};
|
|
@@ -9639,10 +9643,6 @@ class Translator extends EventEmitter {
|
|
|
9639
9643
|
...opt
|
|
9640
9644
|
});
|
|
9641
9645
|
if (!Array.isArray(keys)) keys = [String(keys)];
|
|
9642
|
-
keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {
|
|
9643
|
-
...this.options,
|
|
9644
|
-
...opt
|
|
9645
|
-
}) : String(k));
|
|
9646
9646
|
const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;
|
|
9647
9647
|
const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
|
|
9648
9648
|
const {
|
|
@@ -9889,10 +9889,6 @@ class Translator extends EventEmitter {
|
|
|
9889
9889
|
let usedLng;
|
|
9890
9890
|
let usedNS;
|
|
9891
9891
|
if (isString(keys)) keys = [keys];
|
|
9892
|
-
if (Array.isArray(keys)) keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {
|
|
9893
|
-
...this.options,
|
|
9894
|
-
...opt
|
|
9895
|
-
}) : k);
|
|
9896
9892
|
keys.forEach(k => {
|
|
9897
9893
|
if (this.isValidLookup(found)) return;
|
|
9898
9894
|
const extracted = this.extractFromKey(k, opt);
|
|
@@ -10821,21 +10817,13 @@ const bindMemberFunctions = inst => {
|
|
|
10821
10817
|
}
|
|
10822
10818
|
});
|
|
10823
10819
|
};
|
|
10824
|
-
|
|
10825
|
-
const getSupportNoticeShown = () => typeof globalThis !== 'undefined' && !!globalThis[SUPPORT_NOTICE_KEY];
|
|
10826
|
-
const setSupportNoticeShown = () => {
|
|
10827
|
-
if (typeof globalThis !== 'undefined') globalThis[SUPPORT_NOTICE_KEY] = true;
|
|
10828
|
-
};
|
|
10820
|
+
let supportNoticeShown = false;
|
|
10829
10821
|
const usesLocize = inst => {
|
|
10830
10822
|
if (inst?.modules?.backend?.name?.indexOf('Locize') > 0) return true;
|
|
10831
10823
|
if (inst?.modules?.backend?.constructor?.name?.indexOf('Locize') > 0) return true;
|
|
10832
10824
|
if (inst?.options?.backend?.backends) {
|
|
10833
10825
|
if (inst.options.backend.backends.some(b => b?.name?.indexOf('Locize') > 0 || b?.constructor?.name?.indexOf('Locize') > 0)) return true;
|
|
10834
10826
|
}
|
|
10835
|
-
if (inst?.options?.backend?.projectId) return true;
|
|
10836
|
-
if (inst?.options?.backend?.backendOptions) {
|
|
10837
|
-
if (inst.options.backend.backendOptions.some(b => b?.projectId)) return true;
|
|
10838
|
-
}
|
|
10839
10827
|
return false;
|
|
10840
10828
|
};
|
|
10841
10829
|
class I18n extends EventEmitter {
|
|
@@ -10890,9 +10878,9 @@ class I18n extends EventEmitter {
|
|
|
10890
10878
|
if (typeof this.options.overloadTranslationOptionHandler !== 'function') {
|
|
10891
10879
|
this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
|
|
10892
10880
|
}
|
|
10893
|
-
if (this.options.showSupportNotice !== false && !usesLocize(this) && !
|
|
10894
|
-
if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is
|
|
10895
|
-
|
|
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;
|
|
10896
10884
|
}
|
|
10897
10885
|
const createClassOnDemand = ClassOrObject => {
|
|
10898
10886
|
if (!ClassOrObject) return null;
|
|
@@ -12920,7 +12908,7 @@ const LidoHome = class {
|
|
|
12920
12908
|
}
|
|
12921
12909
|
// Pure-JS fallback (no wasm asset required)
|
|
12922
12910
|
try {
|
|
12923
|
-
const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-
|
|
12911
|
+
const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-B3JrVl9F.js'); }).then(function (n) { return n.decode; });
|
|
12924
12912
|
const brotliDecompressBuffer = brotliDecodeModule.BrotliDecompressBuffer ||
|
|
12925
12913
|
((_a = brotliDecodeModule.default) === null || _a === void 0 ? void 0 : _a.BrotliDecompressBuffer);
|
|
12926
12914
|
if (typeof brotliDecompressBuffer !== 'function') {
|
|
@@ -13208,6 +13196,9 @@ const LidoHome = class {
|
|
|
13208
13196
|
index$1.triggerNextContainer();
|
|
13209
13197
|
}
|
|
13210
13198
|
}
|
|
13199
|
+
else if (container.getAttribute("game-completed") === 'true') {
|
|
13200
|
+
index$1.triggerNextContainer();
|
|
13201
|
+
}
|
|
13211
13202
|
else {
|
|
13212
13203
|
console.log('Not yet filled ');
|
|
13213
13204
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
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.43.
|
|
7
|
+
Stencil Client Patch Browser v4.43.0 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
var patchBrowser = () => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { executeActions, equationCheck, storingEachActivityScore, calculateScore, triggerNextContainer } from "../../utils/utils";
|
|
3
|
-
import { NextContainerKey } from "../../utils/constants";
|
|
3
|
+
import { NextContainerKey, SelectedValuesKey, CalculatorOk } from "../../utils/constants";
|
|
4
4
|
export class LidoCalculator {
|
|
5
5
|
constructor() {
|
|
6
6
|
/** Width of the calculator component (default: '479px') */
|
|
@@ -29,6 +29,7 @@ export class LidoCalculator {
|
|
|
29
29
|
/** Inline style object for dynamic positioning and layout control */
|
|
30
30
|
this.style = {};
|
|
31
31
|
this.userAnswers = []; // store all calculator inputs
|
|
32
|
+
this.tempInputs = []; // store inputs before clearing display
|
|
32
33
|
}
|
|
33
34
|
updateValueAttr() {
|
|
34
35
|
this.el.setAttribute('value', this.displayValue);
|
|
@@ -58,6 +59,7 @@ export class LidoCalculator {
|
|
|
58
59
|
this.updateValueAttr();
|
|
59
60
|
}
|
|
60
61
|
async verifyAnswer() {
|
|
62
|
+
var _a;
|
|
61
63
|
const userInput = this.displayValue.trim();
|
|
62
64
|
if (!userInput)
|
|
63
65
|
return;
|
|
@@ -110,9 +112,20 @@ export class LidoCalculator {
|
|
|
110
112
|
this.onOk.emit(isCorrect);
|
|
111
113
|
const okbtn = document.getElementById("btn-11");
|
|
112
114
|
if (isCorrect) {
|
|
115
|
+
container.setAttribute("game-completed", "true");
|
|
116
|
+
this.tempInputs.push(userInput);
|
|
117
|
+
const existingSelected = JSON.parse((_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '[]');
|
|
118
|
+
const cleanedSelected = Array.isArray(existingSelected)
|
|
119
|
+
? existingSelected.filter(v => String(v).trim() !== '')
|
|
120
|
+
: [];
|
|
121
|
+
const tempValue = this.tempInputs[this.tempInputs.length - 1];
|
|
122
|
+
if (String(tempValue).trim() !== '') {
|
|
123
|
+
cleanedSelected.push(tempValue);
|
|
124
|
+
}
|
|
125
|
+
container.setAttribute(SelectedValuesKey, JSON.stringify(cleanedSelected));
|
|
113
126
|
okbtn.style.pointerEvents = 'none'; // Disable OK button to prevent multiple clicks
|
|
114
127
|
this.displayValue = "";
|
|
115
|
-
storingEachActivityScore(isCorrect);
|
|
128
|
+
storingEachActivityScore(isCorrect, CalculatorOk);
|
|
116
129
|
const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
|
|
117
130
|
await executeActions(onCorrect, container);
|
|
118
131
|
const hasScrollAction = onCorrect.includes('scrollCellAfterEquationSolved');
|
|
@@ -135,7 +148,7 @@ export class LidoCalculator {
|
|
|
135
148
|
else {
|
|
136
149
|
okbtn.style.pointerEvents = 'none'; // Disable OK button to prevent multiple clicks
|
|
137
150
|
this.displayValue = "";
|
|
138
|
-
storingEachActivityScore(isCorrect);
|
|
151
|
+
storingEachActivityScore(isCorrect, CalculatorOk);
|
|
139
152
|
const onInCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onInCorrect')) || '';
|
|
140
153
|
const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
|
|
141
154
|
const isContinueOnCorrect = container.getAttribute('is-continue-on-correct') === 'true';
|
|
@@ -154,7 +167,7 @@ export class LidoCalculator {
|
|
|
154
167
|
}
|
|
155
168
|
render() {
|
|
156
169
|
const numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '←', '0', 'OK'];
|
|
157
|
-
return (h(Host, { key: '
|
|
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: {
|
|
158
171
|
'lido-calculator-btn-special': num === '←' || num === 'OK',
|
|
159
172
|
'lido-calculator-btn-default': num !== '←' && num !== 'OK'
|
|
160
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.\
|
|
167
|
+
"text": "CSS margin value applied to each child element inside the container.\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.\
|
|
227
|
+
"text": "Custom URL for the Exit button icon.\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.\
|
|
246
|
+
"text": "Custom URL for the Previous button icon.\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.\
|
|
265
|
+
"text": "Custom URL for the Next button icon.\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.\
|
|
284
|
+
"text": "Custom URL for the Speaker button icon.\nFalls back to the default icon if not provided or invalid."
|
|
285
285
|
},
|
|
286
286
|
"getter": false,
|
|
287
287
|
"setter": false,
|
|
@@ -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" 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" 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">
|
|
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,8 +42,7 @@ 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
|
-
|
|
46
|
-
</lido-text>
|
|
45
|
+
|
|
47
46
|
</lido-pos>
|
|
48
47
|
<!-- question -->
|
|
49
48
|
<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="
|
|
53
|
+
is-continue-on-correct="true">
|
|
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>
|