lido-player 0.0.2-alpha-52-dev → 0.0.2-alpha-53-dev
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 +184 -58
- package/dist/cjs/lido-player.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-ce99b0d0.js → utils-3c1ce74e.js} +89 -85
- package/dist/collection/components/container/lido-container.js +24 -2
- package/dist/collection/components/home/lido-home.css +4 -0
- package/dist/collection/components/home/lido-home.js +27 -3
- package/dist/collection/components/trace/lido-trace.js +122 -47
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +26 -25
- package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +3 -1
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +1 -1
- package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +1 -1
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
- package/dist/collection/stories/Templates/blender/blender.stories.js +1 -1
- package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +1 -1
- package/dist/collection/stories/Templates/calculator/calculator.stories.js +1 -1
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +1 -1
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +1 -1
- package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +1 -1
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +1 -1
- package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +1 -1
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +1 -1
- package/dist/collection/stories/Templates/grid/grid.stories.js +5 -1
- package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +1 -1
- package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +4 -2
- package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +1 -1
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +1 -1
- package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +4 -2
- package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +1 -1
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +1 -1
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +1 -1
- package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +1 -1
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +1 -1
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +1 -1
- package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +2 -2
- package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +2 -2
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +1 -1
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +1 -1
- package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +1 -1
- package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +5 -1
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +1 -1
- package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +1 -1
- package/dist/collection/stories/Templates/reorder/reorder.stories.js +3 -1
- package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +2 -2
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +6 -6
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +7 -6
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +1 -1
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +25 -21
- package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +1 -1
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +8 -6
- package/dist/collection/stories/Templates/total/total.stories.js +1 -1
- package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +1 -1
- package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +2 -2
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +6 -6
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +1 -1
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +7 -6
- package/dist/collection/utils/utils.js +18 -17
- package/dist/collection/utils/utilsHandlers/animationHandler.js +38 -0
- package/dist/collection/utils/utilsHandlers/clickHandler.js +5 -1
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +19 -58
- package/dist/collection/utils/utilsHandlers/slideHandler.js +7 -6
- package/dist/collection/utils/utilsHandlers/sortHandler.js +3 -5
- 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 +23 -23
- 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-3ce3744c.js → p-004adc43.js} +3 -3
- package/dist/components/{p-b2125fc9.js → p-057fb7b8.js} +48 -24
- package/dist/components/{p-8f2ed62f.js → p-0733b277.js} +1 -1
- package/dist/components/{p-26df0769.js → p-09b3b152.js} +1 -1
- package/dist/components/{p-09f1e2d2.js → p-23549651.js} +1 -1
- package/dist/components/{p-a516a324.js → p-3e8ae1c5.js} +123 -48
- package/dist/components/{p-68112f8c.js → p-3f0e4436.js} +1 -1
- package/dist/components/{p-58c67252.js → p-511377d2.js} +89 -86
- package/dist/components/{p-3f4d4c0a.js → p-561908ec.js} +1 -1
- package/dist/components/{p-5b5f59a8.js → p-567983a9.js} +2 -2
- package/dist/components/{p-8a34b98b.js → p-6beee44b.js} +1 -1
- package/dist/components/{p-9d34d59d.js → p-71ded596.js} +2 -2
- package/dist/components/{p-0fbeb3a1.js → p-73e3f0f4.js} +12 -6
- package/dist/components/{p-06171259.js → p-875c1411.js} +1 -1
- package/dist/components/{p-0c2aebfb.js → p-8774f517.js} +1 -1
- package/dist/components/{p-a2f96840.js → p-90f7dd48.js} +1 -1
- package/dist/components/{p-c4abfd0f.js → p-92b9ae9e.js} +1 -1
- package/dist/components/{p-00777872.js → p-9ea1a67d.js} +26 -4
- package/dist/components/{p-39a2e638.js → p-b3e67e7f.js} +2 -2
- package/dist/components/{p-52e77394.js → p-cca545f9.js} +1 -1
- package/dist/components/{p-cb56a853.js → p-d2fe2bb6.js} +1 -1
- package/dist/components/{p-2d53e1a5.js → p-d568d595.js} +1 -1
- package/dist/components/{p-11bf64aa.js → p-df1af62c.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_22.entry.js +184 -58
- package/dist/esm/lido-player.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-107b15a7.js → utils-eefe4a1c.js} +89 -86
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-4d9ad047.entry.js +1 -0
- package/dist/lido-player/{p-d1251482.js → p-589fc3b8.js} +2 -2
- package/dist/types/components/container/lido-container.d.ts +1 -0
- package/dist/types/components/home/lido-home.d.ts +1 -0
- package/dist/types/components/trace/lido-trace.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/types/utils/utilsHandlers/animationHandler.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lido-player/p-606ea279.entry.js +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { calculateScale, countPatternWords, buildDragSelectedMapFromDOM, executeActions, handleShowCheck, handlingElementFlexibleWidth, onActivityComplete, storingEachActivityScore } from "../utils";
|
|
2
2
|
import { updateBalanceOnDrop } from "./lidoBalanceHandler";
|
|
3
3
|
import { AudioPlayer } from "../audioPlayer";
|
|
4
|
-
import { DropLength, SelectedValuesKey, DropMode, DropToAttr, DropTimeAttr, LidoContainer, DropAction,
|
|
4
|
+
import { DropLength, SelectedValuesKey, DropMode, DropToAttr, DropTimeAttr, LidoContainer, DropAction, } from "../constants";
|
|
5
5
|
import { dispatchElementDropEvent } from "../customEvents";
|
|
6
6
|
import { removeHighlight } from "./highlightHandler";
|
|
7
|
+
import { dragDropAnimation } from "./animationHandler";
|
|
7
8
|
export function buildDropHasDragFromDOM() {
|
|
8
9
|
const dropHasDrag = {};
|
|
9
10
|
const dropElements = document.querySelectorAll("[type='drop']");
|
|
@@ -73,7 +74,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
73
74
|
isDragging = false;
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
+
AudioPlayer.getI().stop();
|
|
77
78
|
removeHighlight(element);
|
|
78
79
|
isDragging = true;
|
|
79
80
|
isClicked = true;
|
|
@@ -181,6 +182,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
181
182
|
// Start observing the element
|
|
182
183
|
observer.observe(container, observerConfig);
|
|
183
184
|
const onMove = (event) => {
|
|
185
|
+
console.log('moved');
|
|
184
186
|
if (!isDragging)
|
|
185
187
|
return;
|
|
186
188
|
if (isDraggingDisabled) {
|
|
@@ -189,7 +191,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
189
191
|
}
|
|
190
192
|
isClicked = false;
|
|
191
193
|
element.style.transition = 'none';
|
|
192
|
-
const containerScale =
|
|
194
|
+
const containerScale = calculateScale();
|
|
193
195
|
let dx = 0;
|
|
194
196
|
let dy = 0;
|
|
195
197
|
if (event instanceof MouseEvent) {
|
|
@@ -515,7 +517,6 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
515
517
|
handleResetDragElement(dragElement, dropElement, dropHasDrag, selectedValueData, dragSelectedData, dropSelectedData);
|
|
516
518
|
return;
|
|
517
519
|
}
|
|
518
|
-
// let isCorrect = dropElement.getAttribute('value').toLowerCase().includes(dragElement.getAttribute('value').toLowerCase());
|
|
519
520
|
let isCorrect;
|
|
520
521
|
const dragValue = ((_c = dragElement.getAttribute('value')) === null || _c === void 0 ? void 0 : _c.trim()) || "";
|
|
521
522
|
const dropValue = ((_d = dropElement.getAttribute('value')) === null || _d === void 0 ? void 0 : _d.trim()) || "";
|
|
@@ -532,7 +533,8 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
532
533
|
}
|
|
533
534
|
}
|
|
534
535
|
else {
|
|
535
|
-
|
|
536
|
+
//strings
|
|
537
|
+
isCorrect = dropValue.toLowerCase().includes(dragValue.toLowerCase());
|
|
536
538
|
}
|
|
537
539
|
if (!isCorrect) {
|
|
538
540
|
const localStorageKey = `${LidoContainer}_dropData`;
|
|
@@ -543,6 +545,7 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
543
545
|
await executeActions(onInCorrect, dropElement, dragElement);
|
|
544
546
|
setTimeout(() => {
|
|
545
547
|
dragElement.style.transform = 'translate(0, 0)';
|
|
548
|
+
storingEachActivityScore(false);
|
|
546
549
|
// const oldDropIndex = dragToDropMap[dragElement.getAttribute('data-id')];
|
|
547
550
|
// if (oldDropIndex !== undefined && dropHasDrag[oldDropIndex]) {
|
|
548
551
|
// dropHasDrag[oldDropIndex].isFull = false;
|
|
@@ -568,61 +571,18 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
568
571
|
else {
|
|
569
572
|
const checkdropAttr = container.getAttribute('dropAttr');
|
|
570
573
|
if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
var _a, _b, _c;
|
|
574
|
-
const div = document.createElement('div');
|
|
575
|
-
container.append(div);
|
|
576
|
-
div.classList.add('after-drop-popup-container');
|
|
577
|
-
dragElement.style.scale = `1`;
|
|
578
|
-
dropElement.style.scale = `1`;
|
|
579
|
-
const allDragElements = container.querySelectorAll('[type="drag"]');
|
|
580
|
-
const dragParents = Array.from(allDragElements).map(el => el.parentElement);
|
|
581
|
-
const allSameParent = dragParents.every(parent => parent === dragElement.parentElement);
|
|
582
|
-
const selectedValues = JSON.parse((_a = container.getAttribute(SelectedValuesKey)) !== null && _a !== void 0 ? _a : '[]');
|
|
583
|
-
const vanishedValue = (_b = dragElement.getAttribute('value')) !== null && _b !== void 0 ? _b : (_c = dragElement.textContent) === null || _c === void 0 ? void 0 : _c.trim();
|
|
584
|
-
if (vanishedValue) {
|
|
585
|
-
tempVanishedValues.push(vanishedValue);
|
|
586
|
-
}
|
|
587
|
-
// Remove from old parents
|
|
588
|
-
if (allSameParent) {
|
|
589
|
-
dragElement.remove();
|
|
590
|
-
dropElement.remove();
|
|
591
|
-
}
|
|
592
|
-
else {
|
|
593
|
-
dragElement.parentElement.parentElement.remove();
|
|
594
|
-
dropElement.parentElement.parentElement.remove();
|
|
595
|
-
}
|
|
596
|
-
// Add animation and popup classes
|
|
597
|
-
dragElement.classList.add('zoom-fade-in', 'after-drop-popup-drag-element');
|
|
598
|
-
dropElement.classList.add('zoom-fade-in', 'after-drop-popup-drop-element');
|
|
599
|
-
div.appendChild(dragElement);
|
|
600
|
-
div.appendChild(dropElement);
|
|
601
|
-
dropElement.classList.remove('empty');
|
|
602
|
-
setTimeout(() => {
|
|
603
|
-
dragElement.classList.remove('zoom-fade-in');
|
|
604
|
-
dropElement.classList.remove('zoom-fade-in');
|
|
605
|
-
dragElement.classList.add('zoom-fade-out');
|
|
606
|
-
dropElement.classList.add('zoom-fade-out');
|
|
607
|
-
setTimeout(() => {
|
|
608
|
-
div.remove();
|
|
609
|
-
container.style.pointerEvents = 'auto';
|
|
610
|
-
const objective = container.getAttribute('objective');
|
|
611
|
-
if (objective && tempVanishedValues.map(v => v.trim()).sort().join(',') === objective.split(',').map(v => v.trim()).sort().join(',')) {
|
|
612
|
-
(async () => {
|
|
613
|
-
isCorrect = true;
|
|
614
|
-
const onCorrect = (container === null || container === void 0 ? void 0 : container.getAttribute('onCorrect')) || '';
|
|
615
|
-
await executeActions(onCorrect, container);
|
|
616
|
-
window.dispatchEvent(new CustomEvent(NextContainerKey));
|
|
617
|
-
tempVanishedValues.length = 0;
|
|
618
|
-
})();
|
|
619
|
-
}
|
|
620
|
-
}, 800); // match animation duration
|
|
621
|
-
}, 2000); // stay for 2 seconds
|
|
622
|
-
}, 250);
|
|
574
|
+
//This function coming from animationhandler.ts
|
|
575
|
+
dragDropAnimation(container, dragElement, dropElement);
|
|
623
576
|
}
|
|
624
577
|
}
|
|
625
578
|
}
|
|
579
|
+
else {
|
|
580
|
+
const checkdropAttr = container.getAttribute('dropAttr');
|
|
581
|
+
if (checkdropAttr && checkdropAttr.toLowerCase() === DropMode.EnableAnimation.toLowerCase()) {
|
|
582
|
+
//This function coming from animationhandler.ts
|
|
583
|
+
dragDropAnimation(container, dragElement, dropElement);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
626
586
|
if (dropElement) {
|
|
627
587
|
let selectedValues = JSON.parse((_e = container.getAttribute(SelectedValuesKey)) !== null && _e !== void 0 ? _e : "[]");
|
|
628
588
|
const dragValue = dragElement.getAttribute('value');
|
|
@@ -755,11 +715,12 @@ export async function onElementDropComplete(dragElement, dropElement) {
|
|
|
755
715
|
// Add pulse and highlight effect for a successful match
|
|
756
716
|
const isCorrect = dropElement['value'].toLowerCase().includes(dragElement['value'].toLowerCase());
|
|
757
717
|
dispatchElementDropEvent(dragElement, dropElement, isCorrect);
|
|
758
|
-
storingEachActivityScore(isCorrect);
|
|
718
|
+
// storingEachActivityScore(isCorrect);
|
|
759
719
|
dragElement.style.opacity = '1';
|
|
760
720
|
await onActivityComplete(dragElement, dropElement);
|
|
761
721
|
const allDropElements = document.querySelectorAll('.drop-element');
|
|
762
722
|
allDropElements.forEach(el => updateDropBorder(el));
|
|
723
|
+
await onActivityComplete(dragElement, dropElement);
|
|
763
724
|
}
|
|
764
725
|
export function updateDropBorder(element) {
|
|
765
726
|
if (!element || !element.classList.contains('drop-element'))
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LidoContainer, SelectedValuesKey } from "../constants";
|
|
2
2
|
import { findMostoverlappedElement, getElementScale } from "./dragDropHandler";
|
|
3
3
|
import { calculateScale, handleShowCheck, matchStringPattern, storingEachActivityScore } from "../utils";
|
|
4
|
-
import { onClickDropOrDragElement } from "./dragDropHandler";
|
|
5
4
|
import { removeHighlight } from "./highlightHandler";
|
|
6
5
|
let numberOfSlides = 0;
|
|
7
6
|
const slideNumbers = (element) => {
|
|
@@ -237,9 +236,6 @@ export function slidingWithScaling(element) {
|
|
|
237
236
|
element.style.transform = 'translate(0, 0)'; // Initialize transform for consistent dragging
|
|
238
237
|
element.addEventListener('mousedown', onStart);
|
|
239
238
|
element.addEventListener('touchstart', onStart);
|
|
240
|
-
element.addEventListener('click', ev => {
|
|
241
|
-
onClickDropOrDragElement(element, 'drag');
|
|
242
|
-
});
|
|
243
239
|
}
|
|
244
240
|
const slideCompleted = (slideElement) => {
|
|
245
241
|
var _a;
|
|
@@ -255,6 +251,11 @@ const slideCompleted = (slideElement) => {
|
|
|
255
251
|
const objectiveArray = objectiveString.split(',');
|
|
256
252
|
const elementIndex = slideArr.indexOf(slideElement['value']);
|
|
257
253
|
const isCorrect = matchStringPattern(slideElement['value'], [objectiveArray[elementIndex].trim()]);
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
if (container.getAttribute('is-continue-on-correct') === 'true') {
|
|
255
|
+
storingEachActivityScore(true);
|
|
256
|
+
handleShowCheck();
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
storingEachActivityScore(isCorrect);
|
|
260
|
+
}
|
|
260
261
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LidoContainer, SelectedValuesKey, DropToAttr } from "../constants";
|
|
2
|
-
import { buildDragSelectedMapFromDOM, executeActions, handleShowCheck, matchStringPattern, onActivityComplete, storingEachActivityScore } from "../utils";
|
|
2
|
+
import { calculateScale, buildDragSelectedMapFromDOM, executeActions, handleShowCheck, matchStringPattern, onActivityComplete, storingEachActivityScore } from "../utils";
|
|
3
3
|
let preOverlap;
|
|
4
4
|
function getElementScale(element) {
|
|
5
5
|
const transform = window.getComputedStyle(element).transform;
|
|
@@ -106,7 +106,7 @@ export function enableReorderDrag(element) {
|
|
|
106
106
|
isClicked = false;
|
|
107
107
|
event.preventDefault();
|
|
108
108
|
const containerRect = container.getBoundingClientRect();
|
|
109
|
-
const containerScale =
|
|
109
|
+
const containerScale = calculateScale();
|
|
110
110
|
const newLeft = (point.clientX - containerRect.left - offsetXInElement) / containerScale;
|
|
111
111
|
const newTop = (point.clientY - containerRect.top - offsetYInElement) / containerScale;
|
|
112
112
|
element.style.left = `${newLeft}px`;
|
|
@@ -173,9 +173,7 @@ export function enableReorderDrag(element) {
|
|
|
173
173
|
else {
|
|
174
174
|
if (element.parentElement['type'] !== 'category') {
|
|
175
175
|
executeActions('this.alignMatch=true', divEl, element);
|
|
176
|
-
|
|
177
|
-
divEl.replaceWith(element);
|
|
178
|
-
}, 500);
|
|
176
|
+
divEl.replaceWith(element);
|
|
179
177
|
}
|
|
180
178
|
else {
|
|
181
179
|
const categoryElement = element.parentElement;
|
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-511377d2.js';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-
|
|
2
|
-
import { 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$4 } from './p-
|
|
22
|
-
import { d as defineCustomElement$3 } from './p-
|
|
23
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-511377d2.js';
|
|
2
|
+
import { i as instance } from './p-73e3f0f4.js';
|
|
3
|
+
import { d as defineCustomElement$m } from './p-df1af62c.js';
|
|
4
|
+
import { d as defineCustomElement$l } from './p-09b3b152.js';
|
|
5
|
+
import { d as defineCustomElement$k } from './p-004adc43.js';
|
|
6
|
+
import { d as defineCustomElement$j } from './p-567983a9.js';
|
|
7
|
+
import { d as defineCustomElement$i } from './p-d2fe2bb6.js';
|
|
8
|
+
import { d as defineCustomElement$h } from './p-3f0e4436.js';
|
|
9
|
+
import { d as defineCustomElement$g } from './p-9ea1a67d.js';
|
|
10
|
+
import { d as defineCustomElement$f } from './p-8774f517.js';
|
|
11
|
+
import { d as defineCustomElement$e } from './p-d568d595.js';
|
|
12
|
+
import { d as defineCustomElement$d } from './p-057fb7b8.js';
|
|
13
|
+
import { d as defineCustomElement$c } from './p-6beee44b.js';
|
|
14
|
+
import { d as defineCustomElement$b } from './p-71ded596.js';
|
|
15
|
+
import { d as defineCustomElement$a } from './p-23549651.js';
|
|
16
|
+
import { d as defineCustomElement$9 } from './p-cca545f9.js';
|
|
17
|
+
import { d as defineCustomElement$8 } from './p-875c1411.js';
|
|
18
|
+
import { d as defineCustomElement$7 } from './p-561908ec.js';
|
|
19
|
+
import { d as defineCustomElement$6 } from './p-0733b277.js';
|
|
20
|
+
import { d as defineCustomElement$5 } from './p-90f7dd48.js';
|
|
21
|
+
import { d as defineCustomElement$4 } from './p-b3e67e7f.js';
|
|
22
|
+
import { d as defineCustomElement$3 } from './p-3e8ae1c5.js';
|
|
23
|
+
import { d as defineCustomElement$2 } from './p-92b9ae9e.js';
|
|
24
24
|
|
|
25
25
|
const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
|
|
26
26
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, l as createEvent, m as equationCheck, n as storingEachActivityScore, o as executeActions, 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, N as NextContainerKey, h, j as Host } from './p-511377d2.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-d2fe2bb6.js';
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-b3e67e7f.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,25 +1,25 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, w as dispatchActivityChangeEvent, A as ActivityScoreKey, x as dispatchGameCompletedEvent, y as dispatchGameExitEvent, z as AudioPlayer, B as generateUUIDFallback, C as exitUrl, D as prevUrl, E as nextUrl, F as speakUrl, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer, h, G as getCancelBtnPopup, t as calculateScale,
|
|
2
|
-
import { i as instance } from './p-
|
|
3
|
-
import { d as defineCustomElement$k } from './p-
|
|
4
|
-
import { d as defineCustomElement$j } from './p-
|
|
5
|
-
import { d as defineCustomElement$i } from './p-
|
|
6
|
-
import { d as defineCustomElement$h } from './p-
|
|
7
|
-
import { d as defineCustomElement$g } from './p-
|
|
8
|
-
import { d as defineCustomElement$f } from './p-
|
|
9
|
-
import { d as defineCustomElement$e } from './p-
|
|
10
|
-
import { d as defineCustomElement$d } from './p-
|
|
11
|
-
import { d as defineCustomElement$c } from './p-
|
|
12
|
-
import { d as defineCustomElement$b } from './p-
|
|
13
|
-
import { d as defineCustomElement$a } from './p-
|
|
14
|
-
import { d as defineCustomElement$9 } from './p-
|
|
15
|
-
import { d as defineCustomElement$8 } from './p-
|
|
16
|
-
import { d as defineCustomElement$7 } from './p-
|
|
17
|
-
import { d as defineCustomElement$6 } from './p-
|
|
18
|
-
import { d as defineCustomElement$5 } from './p-
|
|
19
|
-
import { d as defineCustomElement$4 } from './p-
|
|
20
|
-
import { d as defineCustomElement$3 } from './p-
|
|
21
|
-
import { d as defineCustomElement$2 } from './p-
|
|
22
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, w as dispatchActivityChangeEvent, A as ActivityScoreKey, x as dispatchGameCompletedEvent, y as dispatchGameExitEvent, z as AudioPlayer, B as generateUUIDFallback, C as exitUrl, D as prevUrl, E as nextUrl, F as speakUrl, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer, h, G as getCancelBtnPopup, S as SelectedValuesKey, I as matchStringPattern, J as triggerNextContainer, t as calculateScale, K as triggerPrevcontainer, o as executeActions, j as Host, e as convertUrlToRelative, M as setCancelBtnPopup } from './p-511377d2.js';
|
|
2
|
+
import { i as instance } from './p-73e3f0f4.js';
|
|
3
|
+
import { d as defineCustomElement$k } from './p-df1af62c.js';
|
|
4
|
+
import { d as defineCustomElement$j } from './p-09b3b152.js';
|
|
5
|
+
import { d as defineCustomElement$i } from './p-004adc43.js';
|
|
6
|
+
import { d as defineCustomElement$h } from './p-567983a9.js';
|
|
7
|
+
import { d as defineCustomElement$g } from './p-d2fe2bb6.js';
|
|
8
|
+
import { d as defineCustomElement$f } from './p-3f0e4436.js';
|
|
9
|
+
import { d as defineCustomElement$e } from './p-9ea1a67d.js';
|
|
10
|
+
import { d as defineCustomElement$d } from './p-8774f517.js';
|
|
11
|
+
import { d as defineCustomElement$c } from './p-d568d595.js';
|
|
12
|
+
import { d as defineCustomElement$b } from './p-6beee44b.js';
|
|
13
|
+
import { d as defineCustomElement$a } from './p-71ded596.js';
|
|
14
|
+
import { d as defineCustomElement$9 } from './p-23549651.js';
|
|
15
|
+
import { d as defineCustomElement$8 } from './p-cca545f9.js';
|
|
16
|
+
import { d as defineCustomElement$7 } from './p-875c1411.js';
|
|
17
|
+
import { d as defineCustomElement$6 } from './p-561908ec.js';
|
|
18
|
+
import { d as defineCustomElement$5 } from './p-0733b277.js';
|
|
19
|
+
import { d as defineCustomElement$4 } from './p-90f7dd48.js';
|
|
20
|
+
import { d as defineCustomElement$3 } from './p-b3e67e7f.js';
|
|
21
|
+
import { d as defineCustomElement$2 } from './p-3e8ae1c5.js';
|
|
22
|
+
import { d as defineCustomElement$1 } from './p-92b9ae9e.js';
|
|
23
23
|
|
|
24
24
|
const indexCss = "@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:0 2px 4px rgba(151, 150, 150, 0.1) !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}";
|
|
25
25
|
const LidoHomeStyle0 = indexCss;
|
|
@@ -27,7 +27,7 @@ const LidoHomeStyle0 = indexCss;
|
|
|
27
27
|
const animationCss = "@keyframes rightToPlace{from{transform:translateX(2000px)}to{transform:translateX(0)}}@keyframes topToPlace{from{transform:translateY(-1000px)}to{transform:translateY(0)}}@keyframes bottomToPlace{from{transform:translateY(1000px)}to{transform:translateY(0)}}@keyframes placeToLeft{from{}to{transform:translateX(-2000px)}}@keyframes leftToPlace{from{transform:translateX(-2000px)}to{transform:translateX(0)}}@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-5px)}20%{transform:translateX(5px)}30%{transform:translateX(-5px)}40%{transform:translateX(5px)}50%{transform:translateX(-5px)}60%{transform:translateX(5px)}70%{transform:translateX(-5px)}80%{transform:translateX(5px)}90%{transform:translateX(-5px)}100%{transform:translateX(0)}}@keyframes fallAndBounce{0%{transform:translateY(-1000px)}25%{transform:translateY(0px)}50%{transform:translateY(-200px)}75%{transform:translateY(0)}90%{transform:translateY(-100px)}100%{transform:translateY(0)}}@keyframes placeToDown{0%{transform:translateY(0)}100%{transform:translateY(1000px)}}@keyframes strongShake{0%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}100%{transform:translateX(0)}}@keyframes scaledShake{0%{transform:scale(1) translateX(0);box-shadow:0 0 0 transparent}20%{transform:scale(1.10) translateX(-12px);box-shadow:0 0 10px red}40%{transform:scale(1.10) translateX(12px);box-shadow:0 0 12px red}60%{transform:scale(1.10) translateX(-8px);box-shadow:0 0 10px red}80%{transform:scale(1.10) translateX(8px);box-shadow:0 0 12px red}100%{transform:scale(1) translateX(0);box-shadow:none}}@keyframes horizontalShake{0%{transform:scale(1) translateX(0);background-color:transparent}20%{transform:translateX(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateX(20px);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateX(-10px);background-color:rgba(255, 0, 0, 0.3)}80%{transform:translateX(10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translateX(0);background-color:transparent}}@keyframes verticalShake{0%{transform:translateY(0);background-color:transparent}20%{transform:translateY(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateY(20px);background-color:rgba(255, 0, 0, 0.2)}80%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.1)}100%{transform:translateY(0);background-color:transparent}}@keyframes diagonalShake{0%{transform:translate(0, 0);background-color:transparent}25%{transform:translate(20px, -20px);background-color:rgba(255, 0, 0, 0.2)}50%{transform:translate(-20px, 20px);background-color:rgba(255, 0, 0, 0.3)}75%{transform:translate(10px, -10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translate(0, 0);background-color:transparent}}@keyframes glowPulse{0%{filter:drop-shadow(0 0 5px yellow)\r\n drop-shadow(0 0 10px yellow)\r\n drop-shadow(0 0 20px yellow)\r\n drop-shadow(0 0 30px orange)}50%{filter:drop-shadow(0 0 10px yellow)\r\n drop-shadow(0 0 20px yellow)\r\n drop-shadow(0 0 40px yellow)\r\n drop-shadow(0 0 50px orange)}100%{filter:drop-shadow(0 0 5px yellow)\r\n drop-shadow(0 0 10px yellow)\r\n drop-shadow(0 0 20px yellow)\r\n drop-shadow(0 0 30px orange)}}";
|
|
28
28
|
const LidoHomeStyle1 = animationCss;
|
|
29
29
|
|
|
30
|
-
const lidoHomeCss = ".lido-snackbar{visibility:visible;min-width:250px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:16px;position:fixed;z-index:1;bottom:30px;left:50%;transform:translateX(-50%);font-size:17px}.lido-dot-container{display:flex;justify-content:space-between;align-items:center;visibility:hidden;position:absolute;left:50%;padding:0 5px;z-index:1;width:100vw;max-width:100vw;box-sizing:border-box;height:0px}.lido-dot{height:18px;width:18px;margin:0 4px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color 0.3s;cursor:pointer;z-index:1}.lido-btn-dot-container{flex-shrink:1;flex-grow:1;display:flex;justify-content:center;align-items:center;text-align:center;z-index:1;min-width:0;height:0px}.lido-dot.completed{background-color:grey}.lido-dot.current{background-color:green}.lido-dot:not(.completed):not(.current){background-color:#bbb}#lido-arrow-left,#lido-arrow-right{width:88px;height:88px;display:flex;align-items:center;justify-content:center;border-radius:12px;z-index:1000;box-shadow:0px 8px 0px 0px #8b310f;background-color:#f34d08;cursor:pointer;visibility:hidden;flex-shrink:0}#lido-arrow-left:active,#lido-arrow-right:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px}.navbar{display:flex;justify-content:center}.lido-exit-button,#main-audio{width:80px;height:80px;z-index:1000;cursor:pointer;background-color:white;display:flex;align-items:center;justify-content:center;border:4px solid #f34d08;border-radius:16px;box-shadow:0px 8px #f34d08;flex-shrink:0;}#main-audio:active,.popup-button:active .lido-exit-button:active{margin-bottom:-8px;box-shadow:0px 0px 0px 0px !important}.lido-alert-popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1000}@media (max-width: 768px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0 8px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0 8px}.lido-dot{height:16px;width:16px;margin:0 2.5px}}@media (max-width: 480px){#lido-arrow-left,#lido-arrow-right{width:74px;height:74px;margin:0px 5px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0px 5px}.lido-dot{height:15px;width:15px;margin:0 1.5px}.lido-dot-container{padding:0 3px}}@media (max-width: 375px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 3px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 3px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 2px}}@media (max-width: 320px){#lido-arrow-left,#lido-arrow-right,.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 2px}.lido-dot{height:12px;width:12px;margin:0 0.5px}.lido-dot-container{padding:0 2px}}@media (max-width: 900px) and (orientation: landscape){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 5px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 5px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 5px}}.popup-exit-text{white-space:nowrap;font-size:22px;font-weight:600;margin-top:-8%}.lido-alert-parent{z-index:10000 !important;position:absolute;top:0;left:0}.popup-button{width:80px;height:80px;z-index:1000;cursor:pointer;display:flex;align-items:center;justify-content:center;border:4px solid #F34D08;border-radius:16px;box-shadow:0 8px 0 #F34D08}.nav-for-lanai{position:absolute;top:0%;left:0%;max-width:none;width:100%;height:auto;visibility:visible}";
|
|
30
|
+
const lidoHomeCss = ".lido-snackbar{visibility:visible;min-width:250px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:16px;position:fixed;z-index:1;bottom:30px;left:50%;transform:translateX(-50%);font-size:17px}.lido-dot-container{display:flex;justify-content:space-between;align-items:center;visibility:hidden;position:absolute;left:50%;padding:0 5px;z-index:1;width:100vw;max-width:100vw;box-sizing:border-box;height:0px}.lido-dot{height:18px;width:18px;margin:0 4px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color 0.3s;cursor:pointer;z-index:1}.lido-btn-dot-container{flex-shrink:1;flex-grow:1;display:flex;justify-content:center;align-items:center;text-align:center;z-index:1;min-width:0;height:0px}.lido-dot.completed{background-color:grey}.lido-dot.current{background-color:green}.lido-dot:not(.completed):not(.current){background-color:#bbb}#lido-arrow-left,#lido-arrow-right{width:88px;height:88px;display:flex;align-items:center;justify-content:center;border-radius:12px;z-index:1000;box-shadow:0px 8px 0px 0px #8b310f;background-color:#f34d08;cursor:pointer;visibility:hidden;flex-shrink:0}#lido-arrow-left:active,#lido-arrow-right:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px}.navbar{display:flex;justify-content:center}.lido-exit-button,#main-audio{width:80px;height:80px;z-index:1000;cursor:pointer;background-color:white;display:flex;align-items:center;justify-content:center;border:4px solid #f34d08;border-radius:16px;box-shadow:0px 8px #f34d08;flex-shrink:0;}#main-audio:active,.popup-button:active .lido-exit-button:active{margin-bottom:-8px;box-shadow:0px 0px 0px 0px !important}.lido-alert-popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1000}@media (max-width: 768px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0 8px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0 8px}.lido-dot{height:16px;width:16px;margin:0 2.5px}}@media (max-width: 480px){#lido-arrow-left,#lido-arrow-right{width:74px;height:74px;margin:0px 5px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0px 5px}.lido-dot{height:15px;width:15px;margin:0 1.5px}.lido-dot-container{padding:0 3px}}@media (max-width: 375px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 3px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 3px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 2px}}@media (max-width: 320px){#lido-arrow-left,#lido-arrow-right,.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 2px}.lido-dot{height:12px;width:12px;margin:0 0.5px}.lido-dot-container{padding:0 2px}}@media (max-width: 900px) and (orientation: landscape){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 5px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 5px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 5px}}.popup-exit-text{white-space:nowrap;font-size:22px;font-weight:600;margin-top:-8%}.lido-alert-parent{z-index:10000 !important;position:absolute;top:0;left:0}.popup-button{width:80px;height:80px;z-index:1000;cursor:pointer;display:flex;align-items:center;justify-content:center;border:4px solid #F34D08;border-radius:16px;box-shadow:0 8px 0 #F34D08}.nav-for-lanai{position:absolute;top:0%;left:0%;max-width:none;width:100%;height:auto;visibility:visible}.parent_dots{pointer-events:none}";
|
|
31
31
|
const LidoHomeStyle2 = lidoHomeCss;
|
|
32
32
|
|
|
33
33
|
const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
@@ -108,7 +108,6 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
108
108
|
rightbtn.style.visibility = 'hidden';
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
111
|
-
rightbtn.style.pointerEvents = 'auto';
|
|
112
111
|
rightbtn.style.visibility = 'visible';
|
|
113
112
|
}
|
|
114
113
|
}, 100);
|
|
@@ -319,6 +318,9 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
319
318
|
if (tagName === 'lido-text' && props.string) {
|
|
320
319
|
props.string = instance.t(props.string);
|
|
321
320
|
}
|
|
321
|
+
if (tagName === 'lido-text' && props.string) {
|
|
322
|
+
props.string = instance.t(props.string);
|
|
323
|
+
}
|
|
322
324
|
// Map XML tags to Stencil components
|
|
323
325
|
const componentMapping = {
|
|
324
326
|
'lido-container': (h("lido-container", Object.assign({}, props, { canplay: this.canplay, baseUrl: this.baseUrl, height: this.height }), children)),
|
|
@@ -368,6 +370,16 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
368
370
|
this.containers = containers;
|
|
369
371
|
console.log("container :::", containers);
|
|
370
372
|
}
|
|
373
|
+
areAllDropsFilled() {
|
|
374
|
+
const drops = Array.from(document.querySelectorAll('[type="drop"]'));
|
|
375
|
+
const drags = Array.from(document.querySelectorAll('[type="drag"]')).filter(drag => drag.getAttribute('drop-to'));
|
|
376
|
+
console.log('drops', drops);
|
|
377
|
+
console.log('drags', drags);
|
|
378
|
+
return drops.every(drop => {
|
|
379
|
+
const dropId = drop.id;
|
|
380
|
+
return drags.some(drag => drag.getAttribute('drop-to') === dropId);
|
|
381
|
+
});
|
|
382
|
+
}
|
|
371
383
|
async btnpopup() {
|
|
372
384
|
setCancelBtnPopup(false);
|
|
373
385
|
await AudioPlayer.getI().stop();
|
|
@@ -387,6 +399,18 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
387
399
|
await new Promise(resolve => setTimeout(resolve, 300));
|
|
388
400
|
}
|
|
389
401
|
}
|
|
402
|
+
if (this.areAllDropsFilled()) {
|
|
403
|
+
const objectiveString = container['objective'];
|
|
404
|
+
const objectiveArray = JSON.parse(localStorage.getItem(SelectedValuesKey) || '[]');
|
|
405
|
+
const res = matchStringPattern(objectiveString, objectiveArray);
|
|
406
|
+
console.log('Resultt', res);
|
|
407
|
+
if (res) {
|
|
408
|
+
triggerNextContainer();
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
else {
|
|
412
|
+
console.log('Not yet filled ');
|
|
413
|
+
}
|
|
390
414
|
}
|
|
391
415
|
scaleNavbarContainer() {
|
|
392
416
|
setTimeout(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-511377d2.js';
|
|
2
2
|
|
|
3
3
|
const lidoShapeCss = ".lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z)}.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-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)}";
|
|
4
4
|
const LidoShapeStyle0 = lidoShapeCss;
|
|
@@ -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-511377d2.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,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp,
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, U as validateObjectiveStatus, h, j as Host } from './p-511377d2.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;
|