lido-player 0.0.2-alpha-49 → 0.0.2-alpha-43-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-fe562525.js → index-6a69c33a.js} +36 -3
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{lido-avatar_19.cjs.entry.js → lido-avatar_21.cjs.entry.js} +431 -180
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{utils-96ce5641.js → utils-079a5e7d.js} +1032 -165
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/calculator/lido-calculator.css +87 -0
- package/dist/collection/components/calculator/lido-calculator.js +321 -0
- package/dist/collection/components/cell/lido-cell.js +1 -1
- package/dist/collection/components/column/lido-col.js +1 -1
- package/dist/collection/components/container/lido-container.js +20 -1
- package/dist/collection/components/flashCard/lido-flash-card.js +1 -1
- package/dist/collection/components/float/lido-float.js +1 -1
- package/dist/collection/components/home/lido-home.js +9 -29
- package/dist/collection/components/keyboard/lido-keyboard.js +2 -2
- package/dist/collection/components/mathMatrix/lido-math-matrix.css +10 -2
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +226 -20
- package/dist/collection/components/position/lido-pos.js +1 -1
- package/dist/collection/components/random/lido-random.js +1 -1
- package/dist/collection/components/row/lido-row.js +1 -1
- package/dist/collection/components/scale/lido-balance.css +114 -0
- package/dist/collection/components/scale/lido-balance.js +549 -0
- package/dist/collection/components/shape/lido-shape.js +1 -1
- package/dist/collection/components/slideFill/lido-slide-fill.js +1 -1
- package/dist/collection/components/text/lido-text.js +1 -1
- package/dist/collection/components/trace/lido-trace.js +49 -128
- package/dist/collection/components/wrap/lido-wrap.js +1 -1
- package/dist/collection/css/animation.css +21 -0
- package/dist/collection/css/index.css +45 -0
- package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +24 -25
- package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +0 -3
- package/dist/collection/stories/Templates/balancing/balancing.stories.js +67 -0
- package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +156 -0
- package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +49 -0
- package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +66 -0
- package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +65 -0
- package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +105 -0
- package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +92 -0
- package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +47 -0
- package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +59 -0
- package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +93 -0
- package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +100 -0
- package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +212 -0
- package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +6 -7
- package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +6 -7
- package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +158 -0
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +102 -0
- package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +94 -0
- package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +184 -0
- package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +213 -0
- package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +109 -0
- package/dist/collection/stories/Templates/total/total.stories.js +59 -0
- package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +96 -0
- package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +55 -0
- package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +5 -6
- package/dist/collection/utils/utils.js +439 -81
- package/dist/collection/utils/utilsHandlers/clickHandler.js +21 -25
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +95 -42
- package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +67 -0
- package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +94 -0
- package/dist/collection/utils/utilsHandlers/matrixHandler.js +298 -0
- package/dist/collection/utils/utilsHandlers/slideHandler.js +4 -2
- package/dist/collection/utils/utilsHandlers/sortHandler.js +21 -12
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-balance.d.ts +11 -0
- package/dist/components/lido-balance.js +6 -0
- package/dist/components/lido-calculator.d.ts +11 -0
- package/dist/components/lido-calculator.js +6 -0
- 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 +32 -20
- 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-08d0deab.js +254 -0
- package/dist/components/{p-b5b6ad27.js → p-15971ede.js} +1 -1
- package/dist/components/{p-0bf92c7f.js → p-1fbdb431.js} +2 -2
- package/dist/components/{p-b43ce4e1.js → p-29bdd953.js} +2 -2
- package/dist/components/{p-b8af26e6.js → p-322acda6.js} +40 -48
- package/dist/components/{p-51943db6.js → p-3f406017.js} +2 -2
- package/dist/components/p-44808985.js +186 -0
- package/dist/components/{p-4cabbf28.js → p-52844fa4.js} +2 -2
- package/dist/components/{p-4882df37.js → p-73e31a86.js} +2 -2
- package/dist/components/{p-af54a485.js → p-74849cdd.js} +4 -4
- package/dist/components/{p-9c56f378.js → p-7f7e5672.js} +2 -2
- package/dist/components/{p-4dbae73b.js → p-835b973d.js} +2 -2
- package/dist/components/{p-b55af747.js → p-90465904.js} +50 -129
- package/dist/components/{p-cae021c6.js → p-904711c8.js} +2 -2
- package/dist/components/{p-e735dce9.js → p-9be56729.js} +5 -3
- package/dist/components/{p-cac6c8bf.js → p-afbc196f.js} +2 -2
- package/dist/components/{p-cfa2aec8.js → p-bed94c37.js} +1047 -164
- package/dist/components/{p-7f11a624.js → p-cbac3cbc.js} +1 -1
- package/dist/components/{p-61d97438.js → p-d37ab4dc.js} +2 -2
- package/dist/components/p-e36ddcc1.js +166 -0
- package/dist/components/{p-03e4cafe.js → p-e4e42677.js} +2 -2
- package/dist/esm/{index-f47852d4.js → index-170e58c7.js} +36 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/{lido-avatar_19.entry.js → lido-avatar_21.entry.js} +430 -181
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-9ce243d8.js → utils-5df09162.js} +1031 -164
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.css +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-137c99ce.js +2 -0
- package/dist/lido-player/p-7556e652.js +9 -0
- package/dist/lido-player/p-eb956325.entry.js +1 -0
- package/dist/types/components/calculator/lido-calculator.d.ts +40 -0
- package/dist/types/components/container/lido-container.d.ts +4 -0
- package/dist/types/components/home/lido-home.d.ts +0 -1
- package/dist/types/components/mathMatrix/lido-math-matrix.d.ts +24 -4
- package/dist/types/components/scale/lido-balance.d.ts +160 -0
- package/dist/types/components/trace/lido-trace.d.ts +0 -1
- package/dist/types/components.d.ts +342 -14
- package/dist/types/stories/Templates/balancing/balancing.stories.d.ts +4 -0
- package/dist/types/stories/Templates/checker-block/checkerBlock.stories.d.ts +4 -0
- package/dist/types/stories/Templates/checkerBlock/checkerBlock.stories.d.ts +4 -0
- package/dist/types/stories/Templates/fillAnswer/fill-answer.stories.d.ts +4 -0
- package/dist/types/stories/Templates/foodJar/food-jar.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchBox/matchBox.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchBox/matchBox2.stories.d.ts +4 -0
- package/dist/types/stories/Templates/matchingCard/matching-card.stories.d.ts +4 -0
- package/dist/types/stories/Templates/multiplyBeeds/multiplyBeeds.stories.d.ts +9 -0
- package/dist/types/stories/Templates/nimbleTable/nimbleTable.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberBoardTwo/numberBoardTwo.stories.d.ts +4 -0
- package/dist/types/stories/Templates/numberPair/numberPair.stories.d.ts +4 -0
- package/dist/types/stories/Templates/questionBoard/questionBoard.stories.d.ts +15 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox1.stories.d.ts +11 -0
- package/dist/types/stories/Templates/sequenceBox/sequenceBox2.stories.d.ts +11 -0
- package/dist/types/stories/Templates/shapePair/shape-pair.stories.d.ts +4 -0
- package/dist/types/stories/Templates/shapeTractor/shape-tractor.stories.d.ts +12 -0
- package/dist/types/stories/Templates/sumTogether/sumTogether.stories.d.ts +11 -0
- package/dist/types/stories/Templates/total/total.stories.d.ts +4 -0
- package/dist/types/stories/Templates/writeNumber/writeNumber.stories.d.ts +13 -0
- package/dist/types/stories/Templates/writeSet/writeSet.stories.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +8 -2
- package/dist/types/utils/utilsHandlers/dragDropHandler.d.ts +4 -0
- package/dist/types/utils/utilsHandlers/lidoBalanceHandler.d.ts +2 -0
- package/dist/types/utils/utilsHandlers/lidoCalculatorHandler.d.ts +1 -0
- package/dist/types/utils/utilsHandlers/matrixHandler.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-a8ab771b.js +0 -160
- package/dist/lido-player/p-90212aa9.js +0 -9
- package/dist/lido-player/p-d3911ee1.entry.js +0 -1
- package/dist/lido-player/p-ddf627b0.js +0 -2
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, T as validateObjectiveStatus, h, j as Host } from './p-bed94c37.js';
|
|
2
|
+
|
|
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
|
+
const LidoMathMatrixStyle0 = lidoMathMatrixCss;
|
|
5
|
+
|
|
6
|
+
const LidoMathMatrix = /*@__PURE__*/ proxyCustomElement(class LidoMathMatrix extends H {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.rows = "7";
|
|
11
|
+
this.cols = "5";
|
|
12
|
+
this.defualtFill = 0;
|
|
13
|
+
this.leftIndex = false;
|
|
14
|
+
this.topIndex = false;
|
|
15
|
+
this.bottomIndex = false;
|
|
16
|
+
this.clickable = true;
|
|
17
|
+
this.activeOnlyVisible = false;
|
|
18
|
+
this.matrixImage = undefined;
|
|
19
|
+
this.activeBgColor = 'transparent';
|
|
20
|
+
this.deactiveBgColor = 'transparent';
|
|
21
|
+
this.border = '2px solid green';
|
|
22
|
+
this.height = '100%';
|
|
23
|
+
this.width = '100%';
|
|
24
|
+
this.borderRadius = '5px';
|
|
25
|
+
this.z = undefined;
|
|
26
|
+
this.margin = undefined;
|
|
27
|
+
this.padding = undefined;
|
|
28
|
+
this.visible = 'false';
|
|
29
|
+
this.text = undefined;
|
|
30
|
+
this.type = undefined;
|
|
31
|
+
this.value = undefined;
|
|
32
|
+
this.tabIndex = undefined;
|
|
33
|
+
this.x = undefined;
|
|
34
|
+
this.y = undefined;
|
|
35
|
+
this.fontColor = undefined;
|
|
36
|
+
this.previousFilledSlot = -1;
|
|
37
|
+
this.previousFilledSlotElement = null;
|
|
38
|
+
this.style = {};
|
|
39
|
+
}
|
|
40
|
+
updateValue(index) {
|
|
41
|
+
this.el.setAttribute('value', index);
|
|
42
|
+
}
|
|
43
|
+
componentDidLoad() {
|
|
44
|
+
const slotElements = this.el.querySelectorAll('.slot');
|
|
45
|
+
initEventsForElement(this.el, this.type);
|
|
46
|
+
slotElements.forEach((el, i) => {
|
|
47
|
+
const slot = el;
|
|
48
|
+
slot.style.setProperty('--active-bg-color', this.activeBgColor);
|
|
49
|
+
slot.style.setProperty('--deactive-bg-color', this.deactiveBgColor);
|
|
50
|
+
this.clickable ? (slot.style.pointerEvents = '') : (slot.style.pointerEvents = 'none');
|
|
51
|
+
slot.style.border = this.border;
|
|
52
|
+
slot.style.color = this.fontColor;
|
|
53
|
+
if (slot.className.includes('slot-active')) {
|
|
54
|
+
slot.style.visibility = 'visible';
|
|
55
|
+
if (this.matrixImage) {
|
|
56
|
+
slot.style.setProperty('--bg-image', `url(${convertUrlToRelative(this.matrixImage)})`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
else if (this.activeOnlyVisible) {
|
|
60
|
+
slot.style.visibility = 'hidden';
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
this.updateSlots();
|
|
64
|
+
this.updateStyles();
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Lifecycle method that runs before the component is rendered.
|
|
68
|
+
* Initializes styles and sets up event listeners for resize and load events.
|
|
69
|
+
*/
|
|
70
|
+
componentWillLoad() {
|
|
71
|
+
this.updateStyles();
|
|
72
|
+
this.updateSlots();
|
|
73
|
+
window.addEventListener('resize', this.updateStyles.bind(this));
|
|
74
|
+
window.addEventListener('load', this.updateStyles.bind(this));
|
|
75
|
+
}
|
|
76
|
+
disconnectedCallback() {
|
|
77
|
+
window.removeEventListener('resize', this.updateStyles.bind(this));
|
|
78
|
+
window.removeEventListener('load', this.updateStyles.bind(this));
|
|
79
|
+
}
|
|
80
|
+
updateSlots() {
|
|
81
|
+
const slotElement = this.el.querySelectorAll('.slot');
|
|
82
|
+
const fristElement = this.el.querySelector('.slot');
|
|
83
|
+
if (!slotElement.length || !fristElement)
|
|
84
|
+
return;
|
|
85
|
+
const slotMaxValues = fristElement.offsetWidth < fristElement.offsetHeight ? fristElement.offsetWidth : fristElement.offsetHeight;
|
|
86
|
+
const slotParent = this.el.querySelectorAll('.slot-parent');
|
|
87
|
+
slotParent.forEach(parent => {
|
|
88
|
+
parent.style.width = `${slotMaxValues}px`;
|
|
89
|
+
Array.from(parent.children).forEach(el => {
|
|
90
|
+
const item = el;
|
|
91
|
+
item.style.width = `${slotMaxValues}px`;
|
|
92
|
+
item.style.height = `${slotMaxValues}px`;
|
|
93
|
+
if (this.type === 'drop' || this.type === 'drag' || this.type === 'checkerBlock') {
|
|
94
|
+
this.el.style.width = 'auto';
|
|
95
|
+
this.el.style.height = 'auto';
|
|
96
|
+
}
|
|
97
|
+
if ((!this.topIndex && item.classList.contains('topIndex')) ||
|
|
98
|
+
(!this.leftIndex && item.classList.contains('leftIndex')) ||
|
|
99
|
+
(!this.bottomIndex && item.classList.contains('bottomIndex'))) {
|
|
100
|
+
if (item.classList.contains('leftIndex'))
|
|
101
|
+
item.parentElement.remove();
|
|
102
|
+
item.remove();
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
updateStyles() {
|
|
108
|
+
const orientation = window.innerHeight > window.innerWidth ? 'portrait' : 'landscape';
|
|
109
|
+
this.style = {
|
|
110
|
+
height: parseProp(this.height, orientation),
|
|
111
|
+
width: parseProp(this.width, orientation),
|
|
112
|
+
zIndex: this.z,
|
|
113
|
+
display: parseProp(`${this.visible}`, orientation) === 'true' ? 'flex' : 'none',
|
|
114
|
+
borderRadius: parseProp(this.borderRadius, orientation),
|
|
115
|
+
left: parseProp(this.x, orientation),
|
|
116
|
+
top: parseProp(this.y, orientation),
|
|
117
|
+
cols: parseProp(`${this.cols}`, orientation),
|
|
118
|
+
rows: parseProp(`${this.rows}`, orientation),
|
|
119
|
+
};
|
|
120
|
+
// console.log("cols and rows : ", );
|
|
121
|
+
}
|
|
122
|
+
handleClickSlot(element) {
|
|
123
|
+
const index = parseInt(element.className.split(' ')[1].split('-')[1]);
|
|
124
|
+
const slotElements = this.el.querySelectorAll('.slot');
|
|
125
|
+
slotElements.forEach((el, i) => {
|
|
126
|
+
const slotEl = el;
|
|
127
|
+
if (i < index) {
|
|
128
|
+
slotEl.classList.add('slot-active');
|
|
129
|
+
slotEl.classList.remove('slot-inactive');
|
|
130
|
+
if (this.matrixImage) {
|
|
131
|
+
slotEl.style.setProperty('--bg-image', `url(${convertUrlToRelative(this.matrixImage)})`);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
slotEl.classList.remove('slot-active');
|
|
136
|
+
slotEl.classList.add('slot-inactive');
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
if (this.previousFilledSlot !== -1) {
|
|
140
|
+
// Clear the text from the previously filled slot
|
|
141
|
+
if (this.previousFilledSlotElement !== null) {
|
|
142
|
+
this.previousFilledSlotElement.textContent = '';
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// Display the slot value/text on the clicked slot itself
|
|
146
|
+
element.textContent = index.toString();
|
|
147
|
+
// Track this slot as the previously filled slot for next click
|
|
148
|
+
this.previousFilledSlot = index;
|
|
149
|
+
this.previousFilledSlotElement = element;
|
|
150
|
+
// If the slot is the bottom-most slot for this matrix, dispatch a generic event
|
|
151
|
+
// so templates or global handlers can handle bottom-slot behaviour (e.g., MultiplyBeadsAnimation).
|
|
152
|
+
if (index === slotElements.length) {
|
|
153
|
+
try {
|
|
154
|
+
const event = new CustomEvent('math-matrix-bottom-click', {
|
|
155
|
+
detail: {
|
|
156
|
+
matrix: this.el,
|
|
157
|
+
cols: this.style.cols,
|
|
158
|
+
rows: this.style.rows,
|
|
159
|
+
},
|
|
160
|
+
bubbles: true,
|
|
161
|
+
composed: true,
|
|
162
|
+
});
|
|
163
|
+
// dispatch from the host so listeners on container or document receive it
|
|
164
|
+
this.el.dispatchEvent(event);
|
|
165
|
+
}
|
|
166
|
+
catch (err) {
|
|
167
|
+
console.warn('Error dispatching math-matrix-bottom-click from handleClickSlot', err);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
this.updateValue(index.toString());
|
|
171
|
+
// trigger the next container if right slot was clicked
|
|
172
|
+
validateObjectiveStatus();
|
|
173
|
+
}
|
|
174
|
+
getSlotData() {
|
|
175
|
+
const data = {};
|
|
176
|
+
if (!this.text)
|
|
177
|
+
return data;
|
|
178
|
+
this.text.split(',').forEach((item, index) => {
|
|
179
|
+
const [rawText, rawColor] = item.split('-');
|
|
180
|
+
const num = parseInt(rawText.trim());
|
|
181
|
+
if (!isNaN(num)) {
|
|
182
|
+
data[index] = { text: rawText.trim(), color: rawColor === null || rawColor === void 0 ? void 0 : rawColor.trim() };
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
return data;
|
|
186
|
+
}
|
|
187
|
+
render() {
|
|
188
|
+
let slotNumber = 1;
|
|
189
|
+
const slotData = this.getSlotData();
|
|
190
|
+
return (h(Host, { key: '66d627c33553f3f6473c6d1b465c9af7cc6741d3', class: "math-matrix", style: {
|
|
191
|
+
height: this.style.height,
|
|
192
|
+
width: this.style.width,
|
|
193
|
+
z: this.style.z,
|
|
194
|
+
display: this.style.display,
|
|
195
|
+
top: this.style.top,
|
|
196
|
+
left: this.style.left,
|
|
197
|
+
}, type: this.type, value: this.value, "tab-index": this.tabIndex, rows: this.style.rows, cols: this.style.cols, text: this.text }, Array.from({ length: parseInt(this.style.rows) + 1 }, (_, rowIndex) => (h("div", { class: "slot-parent", key: `row-${rowIndex}` }, h("div", { style: rowIndex === 0 && { visibility: 'hidden' }, class: "topIndex" }, rowIndex), Array.from({ length: parseInt(this.style.cols) }, (_, colIndex) => {
|
|
198
|
+
var _a, _b;
|
|
199
|
+
return rowIndex === 0 ? (h("div", { class: "leftIndex" }, ++colIndex)) : (h("div", { class: `slot slot-${slotNumber} ${this.defualtFill >= slotNumber ? 'slot-active' : 'slot-inactive'}`, onClick: (ev) => this.handleClickSlot(ev.currentTarget), key: `slot-${rowIndex}-${colIndex}`, style: {
|
|
200
|
+
borderRadius: this.style.borderRadius,
|
|
201
|
+
backgroundColor: ((_a = slotData[slotNumber - 1]) === null || _a === void 0 ? void 0 : _a.color) || '',
|
|
202
|
+
} }, (_b = slotData[slotNumber - 1]) === null || _b === void 0 ? void 0 :
|
|
203
|
+
_b.text, slotNumber++ && null));
|
|
204
|
+
}), h("div", { style: rowIndex === 0 && { visibility: 'hidden' }, class: "bottomIndex" }, parseInt(this.style.cols) * rowIndex))))));
|
|
205
|
+
}
|
|
206
|
+
get el() { return this; }
|
|
207
|
+
static get style() { return LidoMathMatrixStyle0; }
|
|
208
|
+
}, [0, "lido-math-matrix", {
|
|
209
|
+
"rows": [1],
|
|
210
|
+
"cols": [1],
|
|
211
|
+
"defualtFill": [2, "defualt-fill"],
|
|
212
|
+
"leftIndex": [4, "left-index"],
|
|
213
|
+
"topIndex": [4, "top-index"],
|
|
214
|
+
"bottomIndex": [4, "bottom-index"],
|
|
215
|
+
"clickable": [4],
|
|
216
|
+
"activeOnlyVisible": [4, "active-only-visible"],
|
|
217
|
+
"matrixImage": [1, "matrix-image"],
|
|
218
|
+
"activeBgColor": [1, "active-bg-color"],
|
|
219
|
+
"deactiveBgColor": [1, "deactive-bg-color"],
|
|
220
|
+
"border": [1],
|
|
221
|
+
"height": [1],
|
|
222
|
+
"width": [1],
|
|
223
|
+
"borderRadius": [1, "border-radius"],
|
|
224
|
+
"z": [1],
|
|
225
|
+
"margin": [1],
|
|
226
|
+
"padding": [1],
|
|
227
|
+
"visible": [1],
|
|
228
|
+
"text": [1],
|
|
229
|
+
"type": [1],
|
|
230
|
+
"value": [1],
|
|
231
|
+
"tabIndex": [2, "tab-index"],
|
|
232
|
+
"x": [1],
|
|
233
|
+
"y": [1],
|
|
234
|
+
"fontColor": [1, "font-color"],
|
|
235
|
+
"previousFilledSlot": [32],
|
|
236
|
+
"previousFilledSlotElement": [32],
|
|
237
|
+
"style": [32]
|
|
238
|
+
}]);
|
|
239
|
+
function defineCustomElement() {
|
|
240
|
+
if (typeof customElements === "undefined") {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
const components = ["lido-math-matrix"];
|
|
244
|
+
components.forEach(tagName => { switch (tagName) {
|
|
245
|
+
case "lido-math-matrix":
|
|
246
|
+
if (!customElements.get(tagName)) {
|
|
247
|
+
customElements.define(tagName, LidoMathMatrix);
|
|
248
|
+
}
|
|
249
|
+
break;
|
|
250
|
+
} });
|
|
251
|
+
}
|
|
252
|
+
defineCustomElement();
|
|
253
|
+
|
|
254
|
+
export { LidoMathMatrix as L, defineCustomElement as d };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, K as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, M as tinyColor,
|
|
1
|
+
import { c as commonjsGlobal, K as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, M as tinyColor, r as attachSpeakIcon, k as parseProp, e as convertUrlToRelative, h, j as Host } from './p-bed94c37.js';
|
|
2
2
|
|
|
3
3
|
var lib = {exports: {}};
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement,
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, u as handleFloatElementPosition, v as handleElementClick, k as parseProp, h, j as Host } from './p-bed94c37.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;
|
|
@@ -60,7 +60,7 @@ const LidoFloat = /*@__PURE__*/ proxyCustomElement(class LidoFloat extends H {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'b4c271689b52272251d5623e53b67ef78389c012', class: "lido-float", "float-direction": this.floatDirection, id: this.id, "tab-index": this.tabIndex, style: this.style, onEntry: this.onEntry }, h("slot", { key: '852149328b2a8e85e84fdf9e2a4a64bb2ec8ad3a' })));
|
|
64
64
|
}
|
|
65
65
|
get el() { return this; }
|
|
66
66
|
static get style() { return LidoFloatStyle0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement,
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, q as handlingChildElements, r as attachSpeakIcon, k as parseProp, h, j as Host } from './p-bed94c37.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;
|
|
@@ -129,7 +129,7 @@ const LidoCell = /*@__PURE__*/ proxyCustomElement(class LidoCell extends H {
|
|
|
129
129
|
this.el.className = `lido-${parseProp(this.layout, orientation)}`;
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: '00183a8d67c4c64eae2d2bb2e3db5def7ffe3caf', id: this.id, class: "lido-cell", value: this.value, type: this.type, "tab-index": this.tabIndex, style: this.style, minDrops: this.minDrops, maxDrops: this.maxDrops, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, onEntry: this.onEntry, "flex-direction": this.flexDirection, "disable-speak": this.disableSpeak }, h("slot", { key: '33fbb691c5c8f015bc9c6cf1e86c237758f126c3' })));
|
|
133
133
|
}
|
|
134
134
|
get el() { return this; }
|
|
135
135
|
static get style() { return LidoCellStyle0; }
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
2
|
-
import { d as defineCustomElement$
|
|
3
|
-
import { d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$
|
|
16
|
-
import { d as defineCustomElement$
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
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, I as triggerPrevcontainer, o as executeActions, j as Host, e as convertUrlToRelative, J as setCancelBtnPopup } from './p-bed94c37.js';
|
|
2
|
+
import { d as defineCustomElement$j } from './p-cbac3cbc.js';
|
|
3
|
+
import { d as defineCustomElement$i } from './p-44808985.js';
|
|
4
|
+
import { d as defineCustomElement$h } from './p-e36ddcc1.js';
|
|
5
|
+
import { d as defineCustomElement$g } from './p-29bdd953.js';
|
|
6
|
+
import { d as defineCustomElement$f } from './p-52844fa4.js';
|
|
7
|
+
import { d as defineCustomElement$e } from './p-9be56729.js';
|
|
8
|
+
import { d as defineCustomElement$d } from './p-e4e42677.js';
|
|
9
|
+
import { d as defineCustomElement$c } from './p-1fbdb431.js';
|
|
10
|
+
import { d as defineCustomElement$b } from './p-15971ede.js';
|
|
11
|
+
import { d as defineCustomElement$a } from './p-74849cdd.js';
|
|
12
|
+
import { d as defineCustomElement$9 } from './p-08d0deab.js';
|
|
13
|
+
import { d as defineCustomElement$8 } from './p-d37ab4dc.js';
|
|
14
|
+
import { d as defineCustomElement$7 } from './p-3f406017.js';
|
|
15
|
+
import { d as defineCustomElement$6 } from './p-7f7e5672.js';
|
|
16
|
+
import { d as defineCustomElement$5 } from './p-904711c8.js';
|
|
17
|
+
import { d as defineCustomElement$4 } from './p-73e31a86.js';
|
|
18
|
+
import { d as defineCustomElement$3 } from './p-afbc196f.js';
|
|
19
|
+
import { d as defineCustomElement$2 } from './p-90465904.js';
|
|
20
|
+
import { d as defineCustomElement$1 } from './p-835b973d.js';
|
|
19
21
|
|
|
20
|
-
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}";
|
|
22
|
+
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}";
|
|
21
23
|
const LidoHomeStyle0 = indexCss;
|
|
22
24
|
|
|
23
|
-
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}}";
|
|
25
|
+
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)\n drop-shadow(0 0 10px yellow)\n drop-shadow(0 0 20px yellow)\n drop-shadow(0 0 30px orange)}50%{filter:drop-shadow(0 0 10px yellow)\n drop-shadow(0 0 20px yellow)\n drop-shadow(0 0 40px yellow)\n drop-shadow(0 0 50px orange)}100%{filter:drop-shadow(0 0 5px yellow)\n drop-shadow(0 0 10px yellow)\n drop-shadow(0 0 20px yellow)\n drop-shadow(0 0 30px orange)}}";
|
|
24
26
|
const LidoHomeStyle1 = animationCss;
|
|
25
27
|
|
|
26
28
|
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}";
|
|
@@ -43,7 +45,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
43
45
|
if (index != undefined && index == this.currentContainerIndex)
|
|
44
46
|
return;
|
|
45
47
|
// Clear selected values from localStorage on container transition
|
|
46
|
-
|
|
48
|
+
// clearmemoryStorage();
|
|
47
49
|
if (index != undefined && index < this.containers.length) {
|
|
48
50
|
// Move to the next container
|
|
49
51
|
this.currentContainerIndex = index;
|
|
@@ -73,7 +75,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
73
75
|
if (this.currentContainerIndex <= 0)
|
|
74
76
|
return;
|
|
75
77
|
// Clear selected values from localStorage on container transition
|
|
76
|
-
|
|
78
|
+
// clearmemoryStorage();
|
|
77
79
|
// Move to the previous container
|
|
78
80
|
this.currentContainerIndex--;
|
|
79
81
|
// Dispatch event to update the UI or state
|
|
@@ -115,7 +117,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
115
117
|
dispatchGameExitEvent();
|
|
116
118
|
AudioPlayer.getI().stop();
|
|
117
119
|
localStorage.removeItem(ActivityScoreKey);
|
|
118
|
-
|
|
120
|
+
// clearmemoryStorage();
|
|
119
121
|
alertElement.remove();
|
|
120
122
|
this.currentContainerIndex = 0;
|
|
121
123
|
}
|
|
@@ -154,7 +156,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
154
156
|
};
|
|
155
157
|
if (this.currentContainerIndex === 0) {
|
|
156
158
|
localStorage.removeItem(ActivityScoreKey);
|
|
157
|
-
|
|
159
|
+
// clearmemoryStorage();
|
|
158
160
|
}
|
|
159
161
|
// Listen for 'NextContainerKey' event to transition between containers
|
|
160
162
|
window.addEventListener(NextContainerKey, () => {
|
|
@@ -172,7 +174,7 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
172
174
|
window.addEventListener('beforeunload', () => {
|
|
173
175
|
AudioPlayer.getI().stop();
|
|
174
176
|
localStorage.removeItem(ActivityScoreKey);
|
|
175
|
-
|
|
177
|
+
// clearmemoryStorage();
|
|
176
178
|
});
|
|
177
179
|
}
|
|
178
180
|
componentDidLoad() {
|
|
@@ -315,6 +317,8 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
315
317
|
'lido-float': h("lido-float", Object.assign({}, props), children),
|
|
316
318
|
'lido-keyboard': h("lido-keyboard", Object.assign({}, props), children),
|
|
317
319
|
'lido-math-matrix': h("lido-math-matrix", Object.assign({}, props), children),
|
|
320
|
+
'lido-balance': h("lido-balance", Object.assign({}, props), children),
|
|
321
|
+
'lido-calculator': h("lido-calculator", Object.assign({}, props), children),
|
|
318
322
|
};
|
|
319
323
|
// If the tag is known, return the corresponding Stencil component, otherwise log a warning
|
|
320
324
|
if (componentMapping[tagName]) {
|
|
@@ -338,16 +342,6 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
338
342
|
});
|
|
339
343
|
this.containers = containers;
|
|
340
344
|
}
|
|
341
|
-
areAllDropsFilled() {
|
|
342
|
-
const drops = Array.from(document.querySelectorAll('[type="drop"]'));
|
|
343
|
-
const drags = Array.from(document.querySelectorAll('[type="drag"]')).filter(drag => drag.getAttribute('drop-to'));
|
|
344
|
-
console.log('drops', drops);
|
|
345
|
-
console.log('drags', drags);
|
|
346
|
-
return drops.every(drop => {
|
|
347
|
-
const dropId = drop.id;
|
|
348
|
-
return drags.some(drag => drag.getAttribute('drop-to') === dropId);
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
345
|
async btnpopup() {
|
|
352
346
|
setCancelBtnPopup(false);
|
|
353
347
|
await AudioPlayer.getI().stop();
|
|
@@ -367,18 +361,6 @@ const LidoHome = /*@__PURE__*/ proxyCustomElement(class LidoHome extends H {
|
|
|
367
361
|
await new Promise(resolve => setTimeout(resolve, 300));
|
|
368
362
|
}
|
|
369
363
|
}
|
|
370
|
-
if (this.areAllDropsFilled()) {
|
|
371
|
-
const objectiveString = container['objective'];
|
|
372
|
-
const objectiveArray = JSON.parse(localStorage.getItem(SelectedValuesKey) || '[]');
|
|
373
|
-
const res = matchStringPattern(objectiveString, objectiveArray);
|
|
374
|
-
console.log('Resultt', res);
|
|
375
|
-
if (res) {
|
|
376
|
-
triggerNextContainer();
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
console.log('Not yet filled ');
|
|
381
|
-
}
|
|
382
364
|
}
|
|
383
365
|
scaleNavbarContainer() {
|
|
384
366
|
setTimeout(() => {
|
|
@@ -477,7 +459,7 @@ function defineCustomElement() {
|
|
|
477
459
|
if (typeof customElements === "undefined") {
|
|
478
460
|
return;
|
|
479
461
|
}
|
|
480
|
-
const components = ["lido-home", "lido-avatar", "lido-cell", "lido-col", "lido-container", "lido-flash-card", "lido-float", "lido-image", "lido-keyboard", "lido-math-matrix", "lido-pos", "lido-random", "lido-row", "lido-shape", "lido-slide-fill", "lido-text", "lido-trace", "lido-wrap"];
|
|
462
|
+
const components = ["lido-home", "lido-avatar", "lido-balance", "lido-calculator", "lido-cell", "lido-col", "lido-container", "lido-flash-card", "lido-float", "lido-image", "lido-keyboard", "lido-math-matrix", "lido-pos", "lido-random", "lido-row", "lido-shape", "lido-slide-fill", "lido-text", "lido-trace", "lido-wrap"];
|
|
481
463
|
components.forEach(tagName => { switch (tagName) {
|
|
482
464
|
case "lido-home":
|
|
483
465
|
if (!customElements.get(tagName)) {
|
|
@@ -485,6 +467,16 @@ function defineCustomElement() {
|
|
|
485
467
|
}
|
|
486
468
|
break;
|
|
487
469
|
case "lido-avatar":
|
|
470
|
+
if (!customElements.get(tagName)) {
|
|
471
|
+
defineCustomElement$j();
|
|
472
|
+
}
|
|
473
|
+
break;
|
|
474
|
+
case "lido-balance":
|
|
475
|
+
if (!customElements.get(tagName)) {
|
|
476
|
+
defineCustomElement$i();
|
|
477
|
+
}
|
|
478
|
+
break;
|
|
479
|
+
case "lido-calculator":
|
|
488
480
|
if (!customElements.get(tagName)) {
|
|
489
481
|
defineCustomElement$h();
|
|
490
482
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H,
|
|
1
|
+
import { p as proxyCustomElement, H, r as attachSpeakIcon, h, j as Host } from './p-bed94c37.js';
|
|
2
2
|
|
|
3
3
|
const lidoRandomCss = ".lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}";
|
|
4
4
|
const LidoRandomStyle0 = lidoRandomCss;
|
|
@@ -76,7 +76,7 @@ const LidoRandom = /*@__PURE__*/ proxyCustomElement(class LidoRandom extends H {
|
|
|
76
76
|
backgroundColor: this.bgColor,
|
|
77
77
|
margin: this.margin,
|
|
78
78
|
};
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '328c7a0533a52a1be5cee0d71fc7a43338e5290f', class: "lido-random", type: this.type, "tab-index": this.tabIndex, value: this.value, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, audio: this.audio, onTouch: this.onTouch, onCorrect: this.onCorrect, minDrops: this.minDrops, maxDrops: this.maxDrops, onInCorrect: this.onInCorrect, onEntry: this.onEntry }, h("slot", { key: 'c1a93405cbbd2a06a92134c4ff5853204215c317' })));
|
|
80
80
|
}
|
|
81
81
|
get el() { return this; }
|
|
82
82
|
static get style() { return LidoRandomStyle0; }
|