lido-player 0.0.2-alpha-71 → 0.0.2-alpha-72
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/index.cjs.js +1 -1
- package/dist/cjs/lido-avatar_22.cjs.entry.js +1 -1
- package/dist/cjs/{utils-ae351bf9.js → utils-648c493a.js} +11 -6
- package/dist/collection/utils/utils.js +3 -5
- package/dist/collection/utils/utilsHandlers/clickHandler.js +3 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +5 -0
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-cell.js +1 -1
- package/dist/components/lido-col.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-flash-card.js +1 -1
- package/dist/components/lido-float.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-math-matrix.js +1 -1
- package/dist/components/lido-pos.js +1 -1
- package/dist/components/lido-random.js +1 -1
- package/dist/components/lido-root.js +22 -22
- package/dist/components/lido-row.js +1 -1
- package/dist/components/lido-shape.js +1 -1
- package/dist/components/lido-slide-fill.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/lido-wrap.js +1 -1
- package/dist/components/{p-cdad69b4.js → p-1726d6f6.js} +3 -3
- package/dist/components/{p-cfa3ee5a.js → p-22d39087.js} +1 -1
- package/dist/components/{p-748cf9b7.js → p-2fc491ed.js} +2 -2
- package/dist/components/{p-f74bbf6d.js → p-3aca9848.js} +1 -1
- package/dist/components/{p-537df8bb.js → p-3bfa11a4.js} +2 -2
- package/dist/components/{p-70f456bf.js → p-48e0097d.js} +1 -1
- package/dist/components/{p-36cec627.js → p-6268ef05.js} +1 -1
- package/dist/components/{p-6a641a33.js → p-715a8bf6.js} +1 -1
- package/dist/components/{p-e3b0162a.js → p-7e46549c.js} +11 -6
- package/dist/components/{p-00d571d2.js → p-8dbe420f.js} +1 -1
- package/dist/components/{p-24161f17.js → p-a41d80a5.js} +1 -1
- package/dist/components/{p-e09b2519.js → p-aaac7d0a.js} +1 -1
- package/dist/components/{p-c64e168a.js → p-b3bcdf31.js} +2 -2
- package/dist/components/{p-b64d918c.js → p-b44a5f34.js} +1 -1
- package/dist/components/{p-34ce3004.js → p-c19283ce.js} +1 -1
- package/dist/components/{p-c8fff180.js → p-ca8f0593.js} +1 -1
- package/dist/components/{p-d3434c5b.js → p-d2bf80bf.js} +1 -1
- package/dist/components/{p-8bf8f4d0.js → p-d6545e4f.js} +1 -1
- package/dist/components/{p-00b30860.js → p-d8484fa1.js} +1 -1
- package/dist/components/{p-49c66cd9.js → p-ee538ee5.js} +21 -21
- package/dist/components/{p-7c74638f.js → p-f3fba3fc.js} +1 -1
- package/dist/components/{p-f40a32cf.js → p-ff304bfa.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +1 -1
- package/dist/esm/{utils-2a8ac9ef.js → utils-0c9b564c.js} +11 -6
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-0d71614f.js → p-87420a60.js} +2 -2
- package/dist/lido-player/{p-8b2a2700.entry.js → p-cccdeff1.entry.js} +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -392,6 +392,8 @@ function enableDraggingWithScaling(element) {
|
|
|
392
392
|
console.error(`Container with ID "container" not found.`);
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
|
+
if (container.getAttribute("canplay") === "false")
|
|
396
|
+
return;
|
|
395
397
|
handlingElementFlexibleWidth(element, 'drag');
|
|
396
398
|
const onStart = (event) => {
|
|
397
399
|
var _a, _b;
|
|
@@ -1061,6 +1063,9 @@ function handleDropElement(element) {
|
|
|
1061
1063
|
updateDropBorder(element);
|
|
1062
1064
|
}
|
|
1063
1065
|
async function onClickDropOrDragElement(element, type) {
|
|
1066
|
+
const container = document.getElementById(LidoContainer);
|
|
1067
|
+
if (container.getAttribute('canplay') === 'false')
|
|
1068
|
+
return;
|
|
1064
1069
|
// Remove the highlight class from elements matching the selector
|
|
1065
1070
|
const highlightedElements = document.querySelectorAll(`[type='${type}']`);
|
|
1066
1071
|
highlightedElements.forEach(el => {
|
|
@@ -3587,6 +3592,9 @@ function onTouchListenerForOnTouch(element) {
|
|
|
3587
3592
|
}
|
|
3588
3593
|
function addClickListenerForClickType(element) {
|
|
3589
3594
|
handlingElementFlexibleWidth(element, 'click');
|
|
3595
|
+
const container = document.getElementById(LidoContainer);
|
|
3596
|
+
if (container.getAttribute('canplay') === 'false')
|
|
3597
|
+
return;
|
|
3590
3598
|
element.style.cursor = 'pointer';
|
|
3591
3599
|
if (!element) {
|
|
3592
3600
|
console.error('No element provided.');
|
|
@@ -3594,7 +3602,6 @@ function addClickListenerForClickType(element) {
|
|
|
3594
3602
|
}
|
|
3595
3603
|
const onClick = async () => {
|
|
3596
3604
|
var _a;
|
|
3597
|
-
const container = document.getElementById(LidoContainer);
|
|
3598
3605
|
const lido_buttons = element.getAttribute('id');
|
|
3599
3606
|
if (lido_buttons === 'lido-arrow-left' || lido_buttons === 'lido-arrow-right') {
|
|
3600
3607
|
return;
|
|
@@ -68970,10 +68977,6 @@ const initEventsForElement = async (element, type) => {
|
|
|
68970
68977
|
}
|
|
68971
68978
|
const onEntry = element.getAttribute('onEntry');
|
|
68972
68979
|
await executeActions(onEntry, element);
|
|
68973
|
-
const canplay = container.getAttribute('canplay');
|
|
68974
|
-
if (canplay != null && canplay === 'false') {
|
|
68975
|
-
container.style.pointerEvents = 'none';
|
|
68976
|
-
}
|
|
68977
68980
|
switch (type) {
|
|
68978
68981
|
case 'drag': {
|
|
68979
68982
|
enableDraggingWithScaling(element);
|
|
@@ -69618,8 +69621,10 @@ const validateObjectiveStatus = async () => {
|
|
|
69618
69621
|
if (onCorrect) {
|
|
69619
69622
|
await executeActions(onCorrect, container);
|
|
69620
69623
|
}
|
|
69621
|
-
storeActivityScore(100);
|
|
69622
69624
|
storingEachActivityScore(true);
|
|
69625
|
+
storeActivityScore(100);
|
|
69626
|
+
gameScore.rightMoves = 0;
|
|
69627
|
+
gameScore.wrongMoves = 0;
|
|
69623
69628
|
triggerNextContainer();
|
|
69624
69629
|
return;
|
|
69625
69630
|
}
|
|
@@ -61,10 +61,6 @@ export const initEventsForElement = async (element, type) => {
|
|
|
61
61
|
}
|
|
62
62
|
const onEntry = element.getAttribute('onEntry');
|
|
63
63
|
await executeActions(onEntry, element);
|
|
64
|
-
const canplay = container.getAttribute('canplay');
|
|
65
|
-
if (canplay != null && canplay === 'false') {
|
|
66
|
-
container.style.pointerEvents = 'none';
|
|
67
|
-
}
|
|
68
64
|
switch (type) {
|
|
69
65
|
case 'drag': {
|
|
70
66
|
enableDraggingWithScaling(element);
|
|
@@ -712,8 +708,10 @@ export const validateObjectiveStatus = async () => {
|
|
|
712
708
|
if (onCorrect) {
|
|
713
709
|
await executeActions(onCorrect, container);
|
|
714
710
|
}
|
|
715
|
-
storeActivityScore(100);
|
|
716
711
|
storingEachActivityScore(true);
|
|
712
|
+
storeActivityScore(100);
|
|
713
|
+
gameScore.rightMoves = 0;
|
|
714
|
+
gameScore.wrongMoves = 0;
|
|
717
715
|
triggerNextContainer();
|
|
718
716
|
return;
|
|
719
717
|
}
|
|
@@ -57,6 +57,9 @@ export function onTouchListenerForOnTouch(element) {
|
|
|
57
57
|
}
|
|
58
58
|
export function addClickListenerForClickType(element) {
|
|
59
59
|
handlingElementFlexibleWidth(element, 'click');
|
|
60
|
+
const container = document.getElementById(LidoContainer);
|
|
61
|
+
if (container.getAttribute('canplay') === 'false')
|
|
62
|
+
return;
|
|
60
63
|
element.style.cursor = 'pointer';
|
|
61
64
|
if (!element) {
|
|
62
65
|
console.error('No element provided.');
|
|
@@ -64,7 +67,6 @@ export function addClickListenerForClickType(element) {
|
|
|
64
67
|
}
|
|
65
68
|
const onClick = async () => {
|
|
66
69
|
var _a;
|
|
67
|
-
const container = document.getElementById(LidoContainer);
|
|
68
70
|
const lido_buttons = element.getAttribute('id');
|
|
69
71
|
if (lido_buttons === 'lido-arrow-left' || lido_buttons === 'lido-arrow-right') {
|
|
70
72
|
return;
|
|
@@ -65,6 +65,8 @@ export function enableDraggingWithScaling(element) {
|
|
|
65
65
|
console.error(`Container with ID "container" not found.`);
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
+
if (container.getAttribute("canplay") === "false")
|
|
69
|
+
return;
|
|
68
70
|
handlingElementFlexibleWidth(element, 'drag');
|
|
69
71
|
let verticalDistance;
|
|
70
72
|
let horizontalDistance;
|
|
@@ -744,6 +746,9 @@ export function handleDropElement(element) {
|
|
|
744
746
|
updateDropBorder(element);
|
|
745
747
|
}
|
|
746
748
|
export async function onClickDropOrDragElement(element, type) {
|
|
749
|
+
const container = document.getElementById(LidoContainer);
|
|
750
|
+
if (container.getAttribute('canplay') === 'false')
|
|
751
|
+
return;
|
|
747
752
|
// Remove the highlight class from elements matching the selector
|
|
748
753
|
const highlightedElements = document.querySelectorAll(`[type='${type}']`);
|
|
749
754
|
highlightedElements.forEach(el => {
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as format, g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
1
|
+
export { f as format, g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-7e46549c.js';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-
|
|
2
|
-
import { d as defineCustomElement$4, i as instance } from './p-
|
|
3
|
-
import { d as defineCustomElement$m } from './p-
|
|
4
|
-
import { d as defineCustomElement$l } from './p-
|
|
5
|
-
import { d as defineCustomElement$k } from './p-
|
|
6
|
-
import { d as defineCustomElement$j } from './p-
|
|
7
|
-
import { d as defineCustomElement$i } from './p-
|
|
8
|
-
import { d as defineCustomElement$h } from './p-
|
|
9
|
-
import { d as defineCustomElement$g } from './p-
|
|
10
|
-
import { d as defineCustomElement$f } from './p-
|
|
11
|
-
import { d as defineCustomElement$e } from './p-
|
|
12
|
-
import { d as defineCustomElement$d } from './p-
|
|
13
|
-
import { d as defineCustomElement$c } from './p-
|
|
14
|
-
import { d as defineCustomElement$b } from './p-
|
|
15
|
-
import { d as defineCustomElement$a } from './p-
|
|
16
|
-
import { d as defineCustomElement$9 } from './p-
|
|
17
|
-
import { d as defineCustomElement$8 } from './p-
|
|
18
|
-
import { d as defineCustomElement$7 } from './p-
|
|
19
|
-
import { d as defineCustomElement$6 } from './p-
|
|
20
|
-
import { d as defineCustomElement$5 } from './p-
|
|
21
|
-
import { d as defineCustomElement$3 } from './p-
|
|
22
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-7e46549c.js';
|
|
2
|
+
import { d as defineCustomElement$4, i as instance } from './p-3aca9848.js';
|
|
3
|
+
import { d as defineCustomElement$m } from './p-22d39087.js';
|
|
4
|
+
import { d as defineCustomElement$l } from './p-aaac7d0a.js';
|
|
5
|
+
import { d as defineCustomElement$k } from './p-1726d6f6.js';
|
|
6
|
+
import { d as defineCustomElement$j } from './p-2fc491ed.js';
|
|
7
|
+
import { d as defineCustomElement$i } from './p-d6545e4f.js';
|
|
8
|
+
import { d as defineCustomElement$h } from './p-a41d80a5.js';
|
|
9
|
+
import { d as defineCustomElement$g } from './p-3bfa11a4.js';
|
|
10
|
+
import { d as defineCustomElement$f } from './p-ca8f0593.js';
|
|
11
|
+
import { d as defineCustomElement$e } from './p-8dbe420f.js';
|
|
12
|
+
import { d as defineCustomElement$d } from './p-ee538ee5.js';
|
|
13
|
+
import { d as defineCustomElement$c } from './p-b44a5f34.js';
|
|
14
|
+
import { d as defineCustomElement$b } from './p-b3bcdf31.js';
|
|
15
|
+
import { d as defineCustomElement$a } from './p-48e0097d.js';
|
|
16
|
+
import { d as defineCustomElement$9 } from './p-ff304bfa.js';
|
|
17
|
+
import { d as defineCustomElement$8 } from './p-6268ef05.js';
|
|
18
|
+
import { d as defineCustomElement$7 } from './p-715a8bf6.js';
|
|
19
|
+
import { d as defineCustomElement$6 } from './p-d2bf80bf.js';
|
|
20
|
+
import { d as defineCustomElement$5 } from './p-f3fba3fc.js';
|
|
21
|
+
import { d as defineCustomElement$3 } from './p-d8484fa1.js';
|
|
22
|
+
import { d as defineCustomElement$2 } from './p-c19283ce.js';
|
|
23
23
|
|
|
24
24
|
const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
|
|
25
25
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, q as calculateScore, N as NextContainerKey, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, q as calculateScore, N as NextContainerKey, h, j as Host } from './p-7e46549c.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-d6545e4f.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-3aca9848.js';
|
|
4
4
|
|
|
5
5
|
const lidoCalculatorCss = "#lidoCalculator{border-radius:19px;border:5px solid #029A9A;position:relative;display:flex;flex-direction:column;padding:2%;box-sizing:border-box}.lido-calculator-btn-special{background-color:#014D4D !important;--btn-shadow-color:#0a2f2f !important}.lido-calculator-btn-default{background-color:#029A9A !important;color:#000;--btn-shadow-color:#0f4242 !important}#lido-calculator-penIcon{--btn-bg-color:#FB7038 !important;--btn-shadow-px:0 8px 0 !important;--btn-shadow-color:#D74B12 !important;border-radius:5px !important}.lido-calculator-displayParent{width:89%;height:107px;background-color:rgb(68, 186, 186);border-radius:5px;margin:14px auto 17px auto;overflow:hidden;display:flex;align-items:end}.lido-calculator-display{width:97%;height:94px;background:#029A9A;color:#fff;text-align:right;display:flex;justify-content:flex-end;align-items:center;font-size:72px;font-weight:700;font-family:'Baloo Bhai 2', serif;border-radius:5px 0px 0px 5px;box-sizing:border-box;margin:0 0px -6px auto}.lido-calculator-buttons{flex:1;display:grid;grid-template-columns:repeat(3, 1fr);grid-auto-rows:1fr;gap:0%;width:100%;justify-items:center;align-items:center;position:relative;top:-1%}.lido-calculator-buttons lido-text{display:flex !important;justify-content:center;align-items:center;width:96px !important;height:80px !important;font-size:72px !important;font-weight:700 !important;color:#fff;border-radius:5px !important;cursor:pointer;text-align:center;line-height:1;box-sizing:border-box;transition:transform 0.1s}.lido-calculator-buttons lido-text:active{transform:scale(0.95)}";
|
|
6
6
|
const LidoCalculatorStyle0 = lidoCalculatorCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-
|
|
1
|
+
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
var rive = {exports: {}};
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-3aca9848.js';
|
|
3
3
|
|
|
4
4
|
const lidoCanvasCss = ":host{display:flex;justify-content:center;align-items:center}.lido-canvas{background:red;border:2px solid #ccc;border-radius:8px;display:flex;flex-direction:column;overflow:hidden;position:relative}#lido-exit-button{padding:6px 14px;border:none;background:transparent;color:#fff;border-radius:6px;cursor:pointer;font-size:14px;position:relative;top:-43%;left:18%;z-index:10}canvas{touch-action:none;display:block}";
|
|
5
5
|
const LidoCanvasStyle0 = lidoCanvasCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, t as attachSpeakIcon, L as LIDO_COMMON_AUDIO_READY_EVENT, e as convertUrlToRelative, k as parseProp, h, j as Host, u as LIDO_COMMON_AUDIO_PATH } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, t as attachSpeakIcon, L as LIDO_COMMON_AUDIO_READY_EVENT, e as convertUrlToRelative, k as parseProp, h, j as Host, u as LIDO_COMMON_AUDIO_PATH } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const isString = obj => typeof obj === 'string';
|
|
4
4
|
const defer = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, T as TemplateID, v as calculateScale, e as convertUrlToRelative, i as initEventsForElement, w as highlightElement, x as Timer, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$1, i as instance } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, T as TemplateID, v as calculateScale, e as convertUrlToRelative, i as initEventsForElement, w as highlightElement, x as Timer, h, j as Host } from './p-7e46549c.js';
|
|
2
|
+
import { d as defineCustomElement$1, i as instance } from './p-3aca9848.js';
|
|
3
3
|
|
|
4
4
|
const lidoContainerCss = ".lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}";
|
|
5
5
|
const LidoContainerStyle0 = lidoContainerCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, _ as validateObjectiveStatus, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, _ as validateObjectiveStatus, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoMathMatrixCss = ".math-matrix{width:100%;height:100%;display:flex;justify-content:center}.slot{width:100%;height:100%;text-align:center;align-content:center;font-size:42px;font-weight:800;font-family:'Baloo Bhai 2';box-sizing:content-box}.slot:hover{opacity:0.7}.slot-parent{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.slot-active{background-color:var(--active-bg-color);background-image:var(--bg-image);background-size:contain;background-position:center;background-repeat:no-repeat}.slot-inactive{background-color:var(--deactive-bg-color);background-size:cover;background-position:center;background-repeat:no-repeat}.topIndex,.leftIndex,.bottomIndex{height:100%;width:100%;text-align:center;align-content:center;font-size:30px;font-weight:600;font-family:'Baloo Bhai 2'}";
|
|
4
4
|
const LidoMathMatrixStyle0 = lidoMathMatrixCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, t as attachSpeakIcon, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, t as attachSpeakIcon, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoRandomCss = ".lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}";
|
|
4
4
|
const LidoRandomStyle0 = lidoRandomCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoRowCss = ".lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}";
|
|
4
4
|
const LidoRowStyle0 = lidoRowCss;
|
|
@@ -1831,6 +1831,8 @@ function enableDraggingWithScaling(element) {
|
|
|
1831
1831
|
console.error(`Container with ID "container" not found.`);
|
|
1832
1832
|
return;
|
|
1833
1833
|
}
|
|
1834
|
+
if (container.getAttribute("canplay") === "false")
|
|
1835
|
+
return;
|
|
1834
1836
|
handlingElementFlexibleWidth(element, 'drag');
|
|
1835
1837
|
const onStart = (event) => {
|
|
1836
1838
|
var _a, _b;
|
|
@@ -2500,6 +2502,9 @@ function handleDropElement(element) {
|
|
|
2500
2502
|
updateDropBorder(element);
|
|
2501
2503
|
}
|
|
2502
2504
|
async function onClickDropOrDragElement(element, type) {
|
|
2505
|
+
const container = document.getElementById(LidoContainer);
|
|
2506
|
+
if (container.getAttribute('canplay') === 'false')
|
|
2507
|
+
return;
|
|
2503
2508
|
// Remove the highlight class from elements matching the selector
|
|
2504
2509
|
const highlightedElements = document.querySelectorAll(`[type='${type}']`);
|
|
2505
2510
|
highlightedElements.forEach(el => {
|
|
@@ -5026,6 +5031,9 @@ function onTouchListenerForOnTouch(element) {
|
|
|
5026
5031
|
}
|
|
5027
5032
|
function addClickListenerForClickType(element) {
|
|
5028
5033
|
handlingElementFlexibleWidth(element, 'click');
|
|
5034
|
+
const container = document.getElementById(LidoContainer);
|
|
5035
|
+
if (container.getAttribute('canplay') === 'false')
|
|
5036
|
+
return;
|
|
5029
5037
|
element.style.cursor = 'pointer';
|
|
5030
5038
|
if (!element) {
|
|
5031
5039
|
console.error('No element provided.');
|
|
@@ -5033,7 +5041,6 @@ function addClickListenerForClickType(element) {
|
|
|
5033
5041
|
}
|
|
5034
5042
|
const onClick = async () => {
|
|
5035
5043
|
var _a;
|
|
5036
|
-
const container = document.getElementById(LidoContainer);
|
|
5037
5044
|
const lido_buttons = element.getAttribute('id');
|
|
5038
5045
|
if (lido_buttons === 'lido-arrow-left' || lido_buttons === 'lido-arrow-right') {
|
|
5039
5046
|
return;
|
|
@@ -70409,10 +70416,6 @@ const initEventsForElement = async (element, type) => {
|
|
|
70409
70416
|
}
|
|
70410
70417
|
const onEntry = element.getAttribute('onEntry');
|
|
70411
70418
|
await executeActions(onEntry, element);
|
|
70412
|
-
const canplay = container.getAttribute('canplay');
|
|
70413
|
-
if (canplay != null && canplay === 'false') {
|
|
70414
|
-
container.style.pointerEvents = 'none';
|
|
70415
|
-
}
|
|
70416
70419
|
switch (type) {
|
|
70417
70420
|
case 'drag': {
|
|
70418
70421
|
enableDraggingWithScaling(element);
|
|
@@ -71057,8 +71060,10 @@ const validateObjectiveStatus = async () => {
|
|
|
71057
71060
|
if (onCorrect) {
|
|
71058
71061
|
await executeActions(onCorrect, container);
|
|
71059
71062
|
}
|
|
71060
|
-
storeActivityScore(100);
|
|
71061
71063
|
storingEachActivityScore(true);
|
|
71064
|
+
storeActivityScore(100);
|
|
71065
|
+
gameScore.rightMoves = 0;
|
|
71066
|
+
gameScore.wrongMoves = 0;
|
|
71062
71067
|
triggerNextContainer();
|
|
71063
71068
|
return;
|
|
71064
71069
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, y as handleFloatElementPosition, z as handleElementClick, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, y as handleFloatElementPosition, z as handleElementClick, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoFloatCss = ".lido-float{position:relative}.lido-float>*{position:absolute;cursor:pointer}@keyframes float-up{from{top:var(--el-top)}to{top:-500px}}#removeShadow{box-shadow:unset !important}@keyframes float-lr{from{right:var(--el-left)}to{right:-500px}}";
|
|
4
4
|
const LidoFloatStyle0 = lidoFloatCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, e as convertUrlToRelative, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoColCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}";
|
|
4
4
|
const LidoColStyle0 = lidoColCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoBalanceCss = "#lido-balance{position:relative;height:500px;width:1205px;top:20%;left:-91px;z-index:0}.lido-balance-symbol{position:absolute;top:64%;left:50%;transform:translate(-50%, -50%);font-size:5vw;font-weight:bold;color:black;pointer-events:none;z-index:999}@media (orientation: portrait){.lido-balance-shadow{height:100px;position:absolute;top:80%;left:28%}}@media (orientation: landscape){.lido-balance-shadow{height:100px;position:absolute;top:90%;left:33%}}@media (orientation: portrait){#pivotimg{position:absolute;height:auto;width:23%;bottom:18%;left:38%;z-index:100}}#pivotimg::after{content:\"\";position:absolute;bottom:-30px;left:50%;transform:translateX(-50%);width:120%;height:60px;background-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/balancing/Shadow.svg\");background-size:contain;background-repeat:no-repeat;background-position:center;pointer-events:none;z-index:10}@media (orientation: landscape){#pivotimg{position:absolute;height:auto;width:23%;bottom:8%;left:38%;z-index:100}}.lido-balance .pivot svg{width:100%;height:auto}#scaleimg{position:absolute;width:73%;height:auto;top:61%;left:14%;z-index:90}.lido-balance .scale svg{width:100%;height:auto}@media (orientation: landscape){#handlerimg{position:absolute;width:35%;height:auto;top:49%;left:2%}}@media (orientation:portrait ){#handlerimg{position:absolute;width:35%;height:auto;top:53%;left:2%}}.lido-balance .handler svg{width:100%;height:auto;fill:brown}@media (orientation: landscape){#handimg{position:absolute;width:35%;height:auto;top:49%;right:2%}}@media (orientation:portrait){#handimg{position:absolute;width:35%;height:auto;top:53%;right:2%}}.lido-balance .hand svg{width:100%;height:auto;fill:brown}.pivot svg path:nth-of-type(1){fill:brown}.pivot svg path[d^=\"M78.9414\"]{fill:white}";
|
|
4
4
|
const LidoBalanceStyle0 = lidoBalanceCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, S as SelectedValuesKey, M as LidoContainer, o as executeActions, U as triggerNextContainer, y as handleFloatElementPosition, n as storingEachActivityScore, Z as DropAction, k as parseProp, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, S as SelectedValuesKey, M as LidoContainer, o as executeActions, U as triggerNextContainer, y as handleFloatElementPosition, n as storingEachActivityScore, Z as DropAction, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-3aca9848.js';
|
|
3
3
|
|
|
4
4
|
const lidoKeyboardCss = ".lido-keyboard{display:flex;flex-direction:column;align-items:center;gap:30px}.input-area{display:flex;gap:15px}input[type=\"text\"]{font-size:30px;font-weight:600;padding-left:20px;width:300px;height:70px;border:2px solid;background:whitesmoke;border-radius:20px;text-align:center}.keyboard-wrapper{justify-content:center;width:700px}.disabled{opacity:0.5;pointer-events:none}.key-button{background:aquamarine;font-weight:600}";
|
|
5
5
|
const LidoKeyboardStyle0 = lidoKeyboardCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, X as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, Y as tinyColor, t as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-
|
|
1
|
+
import { c as commonjsGlobal, X as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, Y as tinyColor, t as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
var lib = {exports: {}};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoWrapCss = ".lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;background-color:var(--child-bg-color, #f0f0f0);box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}";
|
|
4
4
|
const LidoWrapStyle0 = lidoWrapCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoFlashCardCss = ".card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}";
|
|
4
4
|
const LidoFlashCardStyle0 = lidoFlashCardCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoShapeCss = ".lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z);justify-content:center;align-items:center}.lido-rectangle{border-radius:0}.lido-circle{width:var(--width);height:var(--width);border-radius:50%;background-color:var(--bgColor)}.lido-ellipse{width:var(--width);height:var(--height);border-radius:50%;background-color:var(--bgColor)}.lido-triangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(50% 0%, 100% 100%, 0% 100%)}.lido-rightTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(100% 0%, 100% 100%, 0% 100%)}.lido-leftTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--triangleBgColor);clip-path:polygon(0% 0%, 100% 100%, 0% 100%)}.lido-parallelogram{width:var(--paralleWidth);height:var(--paralleHeight);transform:skew(20deg)}.lido-trapezoid{width:var(--trapezoidWidth);height:var(--trapezoidHeight);background-color:var(--bgColor);clip-path:polygon(\r\n 20% 0%, \r\n 80% 0%, \r\n 100% 100%,\r\n 0% 100% \r\n )}.lido-hexagon{width:var(--hexagonWidth);height:var(--hexagonHeight);background-color:var(--bgColor);clip-path:polygon(\r\n 25% 0%, \r\n 75% 0%, \r\n 100% 50%, \r\n 75% 100%, \r\n 25% 100%, \r\n 0% 50% \r\n )}.lido-cone{width:var(--coneWidth);height:var(--coneHeight);background-color:var(--bgColor);clip-path:polygon(\r\n \r\n 15% 10%,\r\n 25% 4%,\r\n 35% 1%,\r\n 50% 0%,\r\n 65% 1%,\r\n 75% 4%,\r\n 85% 10%,\r\n\r\n \r\n 50% 100%\r\n )}.lido-star{width:var(--starWidth);height:var(--starHeight);background-color:var(--starBgColor);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.lido-pentagon{width:var(--pentagonWidth);height:var(--pentagonHeight);background-color:var(--pentagonBgColor);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.lido-heptagon{width:var(--heptagonWidth);height:var(--heptagonHeight);background-color:var(--heptagonBgColor);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.lido-octagon{width:var(--octagonWidth);height:var(--octagonHeight);background-color:var(--octagonBgColor);clip-path:polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%)}.lido-rhombus{width:var(--rhombusWidth);height:var(--rhombusHeight);background-color:var(--rhombusBgColor);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.lido-heart{height:var(--heartHeight);width:var(--heartWidth);border-image:radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;clip-path:polygon(-41% 0, 50% 91%, 141% 0)}.cube{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateX(-20deg) rotateY(45deg)}.face{position:absolute;width:var(--face-width,150px);height:var(--face-width,150px);background:var(--face-bg-color,150px);box-shadow:inset -20px -20px 40px rgba(0,0,0,0.3)}.front{transform:rotateY( 0deg) translateZ(var(--face-translate, 75px))}.back{transform:rotateY(180deg) translateZ(var(--face-translate, 75px))}.right{transform:rotateY( 90deg) translateZ(var(--face-translate, 75px))}.left{transform:rotateY(-90deg) translateZ(var(--face-translate, 75px))}.top{transform:rotateX( 90deg) translateZ(var(--face-translate, 75px))}.bottom{transform:rotateX(-90deg) translateZ(var(--face-translate, 75px))}.lido-cylinder{width:var(--width);height:var(--height);border-radius:100% / 80px;background:radial-gradient(50% 40px at 50% 40px, #0003 99.99%, #0000 0),\r\n radial-gradient(50% 40px at 50% calc(100% - 40px), #fff3 99.99%, #0000 0),\r\n red}";
|
|
4
4
|
const LidoShapeStyle0 = lidoShapeCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoCellCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}.lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}.lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}.lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}.lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}.lido-col::-webkit-scrollbar,.lido-wrap::-webkit-scrollbar,.lido-flex::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.lido-col::-webkit-scrollbar-thumb,.lido-wrap::-webkit-scrollbar-thumb,.lido-flex::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;border:3px solid transparent;background-clip:content-box}.lido-col::-webkit-scrollbar-track,.lido-wrap::-webkit-scrollbar-track,.lido-flex::-webkit-scrollbar-track{background:#f1f1f1}";
|
|
4
4
|
const LidoCellStyle0 = lidoCellCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, a0 as TraceMode, e as convertUrlToRelative, d as setVisibilityWithDelay, a1 as speakIcon, n as storingEachActivityScore, o as executeActions, q as calculateScore, U as triggerNextContainer, M as LidoContainer, k as parseProp, h, j as Host, a2 as fingerUrl } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, a0 as TraceMode, e as convertUrlToRelative, d as setVisibilityWithDelay, a1 as speakIcon, n as storingEachActivityScore, o as executeActions, q as calculateScore, U as triggerNextContainer, M as LidoContainer, k as parseProp, h, j as Host, a2 as fingerUrl } from './p-7e46549c.js';
|
|
2
2
|
|
|
3
3
|
const lidoTraceCss = ":host{display:block;position:relative}#lido-svgContainer{display:flex;justify-content:center;align-items:center;overflow:hidden}svg{width:100%;height:100%;touch-action:none}#lido-draggableCircle{cursor:pointer;fill:#CF1565;transition:fill 0.2s, r 0.2s}.lido-blindTracing{stroke:none !important}.lido-blindFreeTrace{stroke:none !important}.lido-hovered{cursor:grab;fill:darkred}#lido-controls{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;padding:10px;background-color:#f0f0f0;border-top:1px solid #ccc}button{padding:10px;font-size:16px}@media (max-width: 600px){button{padding:8px;font-size:14px}}.lido-trace-path-green{}.lido-flow-indicator{stroke:blue;stroke-width:2;stroke-dasharray:6, 6;fill:none}.lido-trace{height:700px;width:700px;z-index:1;justify-items:center;align-content:center}.trace-animate{animation:trace-bounce 0.5s}@keyframes trace-bounce{0%{transform:scale(1)}30%{transform:scale(1.05)}60%{transform:scale(0.95)}100%{transform:scale(1)}}";
|
|
4
4
|
const LidoTraceStyle0 = lidoTraceCss;
|