lido-player 0.0.2-alpha-41 → 0.0.2-alpha-43
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_19.cjs.entry.js +8 -8
- package/dist/cjs/{utils-9e484ec0.js → utils-efe8e4b6.js} +2 -1
- package/dist/collection/components/trace/lido-trace.css +1 -1
- package/dist/collection/components/trace/lido-trace.js +5 -5
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +2 -1
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.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 +19 -19
- 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-4aa39b17.js → p-00c74f3e.js} +1 -1
- package/dist/components/{p-14dae335.js → p-0237e3f3.js} +1 -1
- package/dist/components/{p-8df305dc.js → p-051c07db.js} +1 -1
- package/dist/components/{p-006bafa5.js → p-108ed5e4.js} +1 -1
- package/dist/components/{p-84f4839f.js → p-26f1f79e.js} +1 -1
- package/dist/components/{p-ddfa7880.js → p-45b63a44.js} +2 -2
- package/dist/components/{p-5028a4d6.js → p-72965f85.js} +1 -1
- package/dist/components/{p-bb824646.js → p-7cd61ce0.js} +1 -1
- package/dist/components/{p-a1340ae7.js → p-81ab4b42.js} +1 -1
- package/dist/components/{p-ac5ba8ca.js → p-8993a2e7.js} +2 -1
- package/dist/components/{p-3cffc5c6.js → p-a7ec59f9.js} +1 -1
- package/dist/components/{p-bbc5cd43.js → p-a93ad459.js} +1 -1
- package/dist/components/{p-b6d93a6c.js → p-aa95ef9c.js} +18 -18
- package/dist/components/{p-d8dc7418.js → p-ab2d491d.js} +1 -1
- package/dist/components/{p-f41bfb24.js → p-b22f0479.js} +1 -1
- package/dist/components/{p-d73ee4cd.js → p-d12f6a47.js} +1 -1
- package/dist/components/{p-70bd36c1.js → p-e17362d8.js} +8 -8
- package/dist/components/{p-9da9273c.js → p-eb298c74.js} +1 -1
- package/dist/components/{p-82667ced.js → p-f4363dd9.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lido-avatar_19.entry.js +8 -8
- package/dist/esm/{utils-1130854a.js → utils-31627add.js} +2 -1
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/{p-ee14fefd.js → p-288697a6.js} +2 -2
- package/dist/lido-player/{p-6b1ed256.entry.js → p-8efa2f2f.entry.js} +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fe562525.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-efe8e4b6.js');
|
|
7
7
|
|
|
8
8
|
var rive = {exports: {}};
|
|
9
9
|
|
|
@@ -11265,7 +11265,7 @@ const LidoText = class {
|
|
|
11265
11265
|
};
|
|
11266
11266
|
LidoText.style = LidoTextStyle0;
|
|
11267
11267
|
|
|
11268
|
-
const lidoTraceCss = ":host{display:block;position:relative}#lido-svgContainer{display:flex;justify-content:center;align-items:center;overflow:hidden}svg{width:100%;height:100%;
|
|
11268
|
+
const lidoTraceCss = ":host{display:block;position:relative}#lido-svgContainer{display:flex;justify-content:center;align-items:center;overflow:hidden}svg{width:100%;height:100%;touch-action:none}#lido-draggableCircle{cursor:pointer;fill:#CF1565;transition:fill 0.2s, r 0.2s}.lido-blindTracing{stroke:none !important}.lido-blindFreeTrace{stroke:none !important}.lido-hovered{cursor:grab;fill:darkred}#lido-controls{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;padding:10px;background-color:#f0f0f0;border-top:1px solid #ccc}button{padding:10px;font-size:16px}@media (max-width: 600px){button{padding:8px;font-size:14px}}.lido-trace-path-green{}.lido-flow-indicator{stroke:blue;stroke-width:2;stroke-dasharray:6, 6;fill:none}.lido-trace{height:700px;width:700px;z-index:1;justify-items:center;align-content:center}.trace-animate{animation:trace-bounce 0.5s}@keyframes trace-bounce{0%{transform:scale(1)}30%{transform:scale(1.05)}60%{transform:scale(0.95)}100%{transform:scale(1)}}";
|
|
11269
11269
|
const LidoTraceStyle0 = lidoTraceCss;
|
|
11270
11270
|
|
|
11271
11271
|
const LidoTrace = class {
|
|
@@ -11590,11 +11590,11 @@ const LidoTrace = class {
|
|
|
11590
11590
|
var _a;
|
|
11591
11591
|
const firstPathStart = state.paths[0].getPointAtLength(0);
|
|
11592
11592
|
const circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
|
|
11593
|
-
|
|
11593
|
+
state.paths[state.currentPathIndex].style['stroke-width'] || state.paths[state.currentPathIndex].getAttribute('stroke-width');
|
|
11594
11594
|
circle.setAttribute('id', 'lido-draggableCircle');
|
|
11595
11595
|
circle.setAttribute('cx', firstPathStart.x.toString());
|
|
11596
11596
|
circle.setAttribute('cy', firstPathStart.y.toString());
|
|
11597
|
-
circle.setAttribute('r', `calc(
|
|
11597
|
+
circle.setAttribute('r', `calc(20)`); // Radius of the draggable circle
|
|
11598
11598
|
circle.setAttribute('fill', '#CF1565'); // fill the color for the circle
|
|
11599
11599
|
(_a = state.svg) === null || _a === void 0 ? void 0 : _a.appendChild(circle);
|
|
11600
11600
|
state.circle = circle;
|
|
@@ -11922,7 +11922,7 @@ const LidoTrace = class {
|
|
|
11922
11922
|
if (!textElem)
|
|
11923
11923
|
return;
|
|
11924
11924
|
// Extract audio URLs from the trace element's audio attribute
|
|
11925
|
-
const audioList =
|
|
11925
|
+
const audioList = this.audio;
|
|
11926
11926
|
if (!audioList)
|
|
11927
11927
|
return;
|
|
11928
11928
|
this.audioUrls = audioList.split(';').map(s => s.trim());
|
|
@@ -11945,7 +11945,7 @@ const LidoTrace = class {
|
|
|
11945
11945
|
letter.classList.add('letter-highlight');
|
|
11946
11946
|
if (this.audioUrls[this.currentSvgIndex]) {
|
|
11947
11947
|
console.log('Playing audio:', this.audioUrls[this.currentSvgIndex]);
|
|
11948
|
-
const audio = new Audio(this.audioUrls[this.currentSvgIndex]);
|
|
11948
|
+
const audio = new Audio(utils.convertUrlToRelative(this.audioUrls[this.currentSvgIndex]));
|
|
11949
11949
|
await audio.play();
|
|
11950
11950
|
}
|
|
11951
11951
|
}
|
|
@@ -11959,7 +11959,7 @@ const LidoTrace = class {
|
|
|
11959
11959
|
if (word) {
|
|
11960
11960
|
word.classList.add('word-highlight');
|
|
11961
11961
|
if (this.audioUrls[this.currentSvgIndex]) {
|
|
11962
|
-
const audio = new Audio(this.audioUrls[this.currentSvgIndex]);
|
|
11962
|
+
const audio = new Audio(utils.convertUrlToRelative(this.audioUrls[this.currentSvgIndex]));
|
|
11963
11963
|
await audio.play();
|
|
11964
11964
|
}
|
|
11965
11965
|
}
|
|
@@ -11977,7 +11977,7 @@ const LidoTrace = class {
|
|
|
11977
11977
|
};
|
|
11978
11978
|
}
|
|
11979
11979
|
render() {
|
|
11980
|
-
return (index.h(index.Host, { key: '
|
|
11980
|
+
return (index.h(index.Host, { key: '7a49dba3768bd241b1c293df53b069eaf96c81fe', class: "lido-trace", id: this.id, audio: this.audio, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, tabindex: this.tabIndex, "disable-speak": this.disableSpeak }, index.h("div", { key: '4735241945bf67599faf715815d13ac69aef6174', style: this.style, id: "lido-svgContainer" })));
|
|
11981
11981
|
}
|
|
11982
11982
|
static get assetsDirs() { return ["svg", "images"]; }
|
|
11983
11983
|
get el() { return index.getElement(this); }
|
|
@@ -211,7 +211,7 @@ function enableDraggingWithScaling(element) {
|
|
|
211
211
|
isDragging = false;
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
AudioPlayer.getI().stop();
|
|
214
|
+
// AudioPlayer.getI().stop();
|
|
215
215
|
removeHighlight(element);
|
|
216
216
|
isDragging = true;
|
|
217
217
|
isClicked = true;
|
|
@@ -941,6 +941,7 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
941
941
|
}
|
|
942
942
|
const dragToDropMap = new Map();
|
|
943
943
|
async function onClickDragElement(element) {
|
|
944
|
+
AudioPlayer.getI().stop();
|
|
944
945
|
const dropElements = JSON.parse(localStorage.getItem(DropHasDrag) || '{}');
|
|
945
946
|
const dragEl = element;
|
|
946
947
|
if (!dragEl) {
|
|
@@ -327,7 +327,7 @@ export class LidoTrace {
|
|
|
327
327
|
circle.setAttribute('id', 'lido-draggableCircle');
|
|
328
328
|
circle.setAttribute('cx', firstPathStart.x.toString());
|
|
329
329
|
circle.setAttribute('cy', firstPathStart.y.toString());
|
|
330
|
-
circle.setAttribute('r', `calc(
|
|
330
|
+
circle.setAttribute('r', `calc(20)`); // Radius of the draggable circle
|
|
331
331
|
circle.setAttribute('fill', '#CF1565'); // fill the color for the circle
|
|
332
332
|
(_a = state.svg) === null || _a === void 0 ? void 0 : _a.appendChild(circle);
|
|
333
333
|
state.circle = circle;
|
|
@@ -655,7 +655,7 @@ export class LidoTrace {
|
|
|
655
655
|
if (!textElem)
|
|
656
656
|
return;
|
|
657
657
|
// Extract audio URLs from the trace element's audio attribute
|
|
658
|
-
const audioList =
|
|
658
|
+
const audioList = this.audio;
|
|
659
659
|
if (!audioList)
|
|
660
660
|
return;
|
|
661
661
|
this.audioUrls = audioList.split(';').map(s => s.trim());
|
|
@@ -678,7 +678,7 @@ export class LidoTrace {
|
|
|
678
678
|
letter.classList.add('letter-highlight');
|
|
679
679
|
if (this.audioUrls[this.currentSvgIndex]) {
|
|
680
680
|
console.log('Playing audio:', this.audioUrls[this.currentSvgIndex]);
|
|
681
|
-
const audio = new Audio(this.audioUrls[this.currentSvgIndex]);
|
|
681
|
+
const audio = new Audio(convertUrlToRelative(this.audioUrls[this.currentSvgIndex]));
|
|
682
682
|
await audio.play();
|
|
683
683
|
}
|
|
684
684
|
}
|
|
@@ -692,7 +692,7 @@ export class LidoTrace {
|
|
|
692
692
|
if (word) {
|
|
693
693
|
word.classList.add('word-highlight');
|
|
694
694
|
if (this.audioUrls[this.currentSvgIndex]) {
|
|
695
|
-
const audio = new Audio(this.audioUrls[this.currentSvgIndex]);
|
|
695
|
+
const audio = new Audio(convertUrlToRelative(this.audioUrls[this.currentSvgIndex]));
|
|
696
696
|
await audio.play();
|
|
697
697
|
}
|
|
698
698
|
}
|
|
@@ -710,7 +710,7 @@ export class LidoTrace {
|
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
render() {
|
|
713
|
-
return (h(Host, { key: '
|
|
713
|
+
return (h(Host, { key: '7a49dba3768bd241b1c293df53b069eaf96c81fe', class: "lido-trace", id: this.id, audio: this.audio, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, tabindex: this.tabIndex, "disable-speak": this.disableSpeak }, h("div", { key: '4735241945bf67599faf715815d13ac69aef6174', style: this.style, id: "lido-svgContainer" })));
|
|
714
714
|
}
|
|
715
715
|
static get is() { return "lido-trace"; }
|
|
716
716
|
static get originalStyleUrls() {
|
|
@@ -56,7 +56,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
56
56
|
isDragging = false;
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
AudioPlayer.getI().stop();
|
|
59
|
+
// AudioPlayer.getI().stop();
|
|
60
60
|
removeHighlight(element);
|
|
61
61
|
isDragging = true;
|
|
62
62
|
isClicked = true;
|
|
@@ -790,6 +790,7 @@ export async function onClickDropOrDragElement(element, type) {
|
|
|
790
790
|
}
|
|
791
791
|
export const dragToDropMap = new Map();
|
|
792
792
|
async function onClickDragElement(element) {
|
|
793
|
+
AudioPlayer.getI().stop();
|
|
793
794
|
const dropElements = JSON.parse(localStorage.getItem(DropHasDrag) || '{}');
|
|
794
795
|
const dragEl = element;
|
|
795
796
|
if (!dragEl) {
|
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-8993a2e7.js';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-
|
|
2
|
-
import { d as defineCustomElement$j } from './p-
|
|
3
|
-
import { d as defineCustomElement$i } from './p-
|
|
4
|
-
import { d as defineCustomElement$h } from './p-
|
|
5
|
-
import { d as defineCustomElement$g } from './p-
|
|
6
|
-
import { d as defineCustomElement$f } from './p-
|
|
7
|
-
import { d as defineCustomElement$e } from './p-
|
|
8
|
-
import { d as defineCustomElement$d } from './p-
|
|
9
|
-
import { d as defineCustomElement$c } from './p-
|
|
10
|
-
import { d as defineCustomElement$b } from './p-
|
|
11
|
-
import { d as defineCustomElement$a } from './p-
|
|
12
|
-
import { d as defineCustomElement$9 } from './p-
|
|
13
|
-
import { d as defineCustomElement$8 } from './p-
|
|
14
|
-
import { d as defineCustomElement$7 } from './p-
|
|
15
|
-
import { d as defineCustomElement$6 } from './p-
|
|
16
|
-
import { d as defineCustomElement$5 } from './p-
|
|
17
|
-
import { d as defineCustomElement$4 } from './p-
|
|
18
|
-
import { d as defineCustomElement$3 } from './p-
|
|
19
|
-
import { d as defineCustomElement$2 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-8993a2e7.js';
|
|
2
|
+
import { d as defineCustomElement$j } from './p-d12f6a47.js';
|
|
3
|
+
import { d as defineCustomElement$i } from './p-0237e3f3.js';
|
|
4
|
+
import { d as defineCustomElement$h } from './p-26f1f79e.js';
|
|
5
|
+
import { d as defineCustomElement$g } from './p-eb298c74.js';
|
|
6
|
+
import { d as defineCustomElement$f } from './p-b22f0479.js';
|
|
7
|
+
import { d as defineCustomElement$e } from './p-72965f85.js';
|
|
8
|
+
import { d as defineCustomElement$d } from './p-aa95ef9c.js';
|
|
9
|
+
import { d as defineCustomElement$c } from './p-7cd61ce0.js';
|
|
10
|
+
import { d as defineCustomElement$b } from './p-45b63a44.js';
|
|
11
|
+
import { d as defineCustomElement$a } from './p-108ed5e4.js';
|
|
12
|
+
import { d as defineCustomElement$9 } from './p-f4363dd9.js';
|
|
13
|
+
import { d as defineCustomElement$8 } from './p-ab2d491d.js';
|
|
14
|
+
import { d as defineCustomElement$7 } from './p-051c07db.js';
|
|
15
|
+
import { d as defineCustomElement$6 } from './p-81ab4b42.js';
|
|
16
|
+
import { d as defineCustomElement$5 } from './p-a93ad459.js';
|
|
17
|
+
import { d as defineCustomElement$4 } from './p-a7ec59f9.js';
|
|
18
|
+
import { d as defineCustomElement$3 } from './p-e17362d8.js';
|
|
19
|
+
import { d as defineCustomElement$2 } from './p-00c74f3e.js';
|
|
20
20
|
|
|
21
21
|
const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
|
|
22
22
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoWrapCss = ".lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;background-color:var(--child-bg-color, #f0f0f0);box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}";
|
|
4
4
|
const LidoWrapStyle0 = lidoWrapCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoCellCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}.lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}.lido-wrap{display:grid;grid-gap:10px;grid-template-columns:repeat(auto-fill, minmax(186px, auto))}.lido-wrap>*{padding:10px;box-sizing:border-box}.lido-flex{display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px}.lido-pos{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);display:flex;justify-content:space-around;flex-direction:column;position:fixed}.lido-pos>*{position:absolute}.lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}.lido-col::-webkit-scrollbar,.lido-wrap::-webkit-scrollbar,.lido-flex::-webkit-scrollbar{width:var(--scrollbar-width);height:var(--scrollbar-width)}.lido-col::-webkit-scrollbar-thumb,.lido-wrap::-webkit-scrollbar-thumb,.lido-flex::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;border:3px solid transparent;background-clip:content-box}.lido-col::-webkit-scrollbar-track,.lido-wrap::-webkit-scrollbar-track,.lido-flex::-webkit-scrollbar-track{background:#f1f1f1}";
|
|
4
4
|
const LidoCellStyle0 = lidoCellCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, m as parseProp, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoRowCss = ".lido-row{display:flex;justify-content:space-around;align-items:center;}.lido-row>*{}";
|
|
4
4
|
const LidoRowStyle0 = lidoRowCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoMathMatrixCss = ".math-matrix{width:100%;height:100%;display:flex;justify-content:center}.slot{width:100%;height:100%}.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:cover;background-position:center;background-repeat:no-repeat}.slot-inactive{background-color:var(--inactive-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}";
|
|
4
4
|
const LidoMathMatrixStyle0 = lidoMathMatrixCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, i as initEventsForElement, k as handlingChildElements, l as attachSpeakIcon, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoColCss = ".lido-col{top:var(--y, 0);left:var(--x, 0);height:var(--height, 100%);width:var(--width, 100%);background-color:var(--bgColor, #eeeeee);padding:15px;border-radius:10px;display:flex;justify-content:space-around;flex-direction:column;align-items:center}.lido-col>*{}";
|
|
4
4
|
const LidoColStyle0 = lidoColCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, S as SelectedValuesKey, L as LidoContainer, F as executeActions, K as triggerNextContainer, o as handleFloatElementPosition, M as storingEachActivityScore, O as DropAction, m as parseProp, h, j as Host } from './p-
|
|
2
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, S as SelectedValuesKey, L as LidoContainer, F as executeActions, K as triggerNextContainer, o as handleFloatElementPosition, M as storingEachActivityScore, O as DropAction, m as parseProp, h, j as Host } from './p-8993a2e7.js';
|
|
2
|
+
import { d as defineCustomElement$1 } from './p-a7ec59f9.js';
|
|
3
3
|
|
|
4
4
|
const lidoKeyboardCss = ".lido-keyboard{display:flex;flex-direction:column;align-items:center;gap:30px}.input-area{display:flex;gap:15px}input[type=\"text\"]{font-size:30px;font-weight:600;padding-left:20px;width:300px;height:70px;border:2px solid;background:whitesmoke;border-radius:20px;text-align:center}.keyboard-wrapper{justify-content:center;width:700px}.disabled{opacity:0.5;pointer-events:none}.key-button{background:aquamarine;font-weight:600}";
|
|
5
5
|
const LidoKeyboardStyle0 = lidoKeyboardCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, o as handleFloatElementPosition, q as handleElementClick, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, o as handleFloatElementPosition, q as handleElementClick, m as parseProp, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoFloatCss = ".lido-float{position:relative}.lido-float>*{position:absolute;cursor:pointer}@keyframes float-up{from{top:var(--el-top)}to{top:-500px}}#removeShadow{box-shadow:unset !important}@keyframes float-lr{from{right:var(--el-left)}to{right:-500px}}";
|
|
4
4
|
const LidoFloatStyle0 = lidoFloatCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, I as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, J as tinyColor, l as attachSpeakIcon, m as parseProp, e as convertUrlToRelative, h, j as Host } from './p-
|
|
1
|
+
import { c as commonjsGlobal, I as getDefaultExportFromCjs, p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, J as tinyColor, l as attachSpeakIcon, m as parseProp, e as convertUrlToRelative, h, j as Host } from './p-8993a2e7.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, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-8993a2e7.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;
|
|
@@ -1607,7 +1607,7 @@ function enableDraggingWithScaling(element) {
|
|
|
1607
1607
|
isDragging = false;
|
|
1608
1608
|
return;
|
|
1609
1609
|
}
|
|
1610
|
-
AudioPlayer.getI().stop();
|
|
1610
|
+
// AudioPlayer.getI().stop();
|
|
1611
1611
|
removeHighlight(element);
|
|
1612
1612
|
isDragging = true;
|
|
1613
1613
|
isClicked = true;
|
|
@@ -2337,6 +2337,7 @@ async function onClickDropOrDragElement(element, type) {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
const dragToDropMap = new Map();
|
|
2339
2339
|
async function onClickDragElement(element) {
|
|
2340
|
+
AudioPlayer.getI().stop();
|
|
2340
2341
|
const dropElements = JSON.parse(localStorage.getItem(DropHasDrag) || '{}');
|
|
2341
2342
|
const dragEl = element;
|
|
2342
2343
|
if (!dragEl) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, l as attachSpeakIcon, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, l as attachSpeakIcon, e as convertUrlToRelative, m as parseProp, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoTextCss = ".lido-text{transition:background-color 0.3s ease;user-select:none;align-items:center;justify-content:center;text-align:center;border-radius:24px;color:#333;cursor:pointer;font-family:'Baloo Bhai 2', serif}.text-letters{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-letters.letter-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-letter-bounce 0.4s}.text-words{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-words.word-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-word-bounce 0.4s}@keyframes text-letter-bounce{0%{transform:scale(1)}60%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes text-word-bounce{0%{transform:scale(1)}60%{transform:scale(1.3)}100%{transform:scale(1)}}";
|
|
4
4
|
const LidoTextStyle0 = lidoTextCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, m as parseProp, Q as fraction, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, m as parseProp, Q as fraction, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoSlideFillCss = ".svg-element,svg{width:100%;height:100%}";
|
|
4
4
|
const LidoSlideFillStyle0 = lidoSlideFillCss;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, r as clearLocalStorage, t as dispatchActivityChangeEvent, A as ActivityScoreKey, u as dispatchGameCompletedEvent, v as dispatchGameExitEvent, w as AudioPlayer, x as generateUUIDFallback, y as exitUrl, z as prevUrl, B as nextUrl, C as speakUrl, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer, h, D as getCancelBtnPopup, n as calculateScale, E as triggerPrevcontainer, F as executeActions, j as Host, e as convertUrlToRelative, G as setCancelBtnPopup } from './p-
|
|
2
|
-
import { d as defineCustomElement$h } from './p-
|
|
3
|
-
import { d as defineCustomElement$g } from './p-
|
|
4
|
-
import { d as defineCustomElement$f } from './p-
|
|
5
|
-
import { d as defineCustomElement$e } from './p-
|
|
6
|
-
import { d as defineCustomElement$d } from './p-
|
|
7
|
-
import { d as defineCustomElement$c } from './p-
|
|
8
|
-
import { d as defineCustomElement$b } from './p-
|
|
9
|
-
import { d as defineCustomElement$a } from './p-
|
|
10
|
-
import { d as defineCustomElement$9 } from './p-
|
|
11
|
-
import { d as defineCustomElement$8 } from './p-
|
|
12
|
-
import { d as defineCustomElement$7 } from './p-
|
|
13
|
-
import { d as defineCustomElement$6 } from './p-
|
|
14
|
-
import { d as defineCustomElement$5 } from './p-
|
|
15
|
-
import { d as defineCustomElement$4 } from './p-
|
|
16
|
-
import { d as defineCustomElement$3 } from './p-
|
|
17
|
-
import { d as defineCustomElement$2 } from './p-
|
|
18
|
-
import { d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, r as clearLocalStorage, t as dispatchActivityChangeEvent, A as ActivityScoreKey, u as dispatchGameCompletedEvent, v as dispatchGameExitEvent, w as AudioPlayer, x as generateUUIDFallback, y as exitUrl, z as prevUrl, B as nextUrl, C as speakUrl, N as NextContainerKey, P as PrevContainerKey, L as LidoContainer, h, D as getCancelBtnPopup, n as calculateScale, E as triggerPrevcontainer, F as executeActions, j as Host, e as convertUrlToRelative, G as setCancelBtnPopup } from './p-8993a2e7.js';
|
|
2
|
+
import { d as defineCustomElement$h } from './p-d12f6a47.js';
|
|
3
|
+
import { d as defineCustomElement$g } from './p-0237e3f3.js';
|
|
4
|
+
import { d as defineCustomElement$f } from './p-26f1f79e.js';
|
|
5
|
+
import { d as defineCustomElement$e } from './p-eb298c74.js';
|
|
6
|
+
import { d as defineCustomElement$d } from './p-b22f0479.js';
|
|
7
|
+
import { d as defineCustomElement$c } from './p-72965f85.js';
|
|
8
|
+
import { d as defineCustomElement$b } from './p-7cd61ce0.js';
|
|
9
|
+
import { d as defineCustomElement$a } from './p-45b63a44.js';
|
|
10
|
+
import { d as defineCustomElement$9 } from './p-108ed5e4.js';
|
|
11
|
+
import { d as defineCustomElement$8 } from './p-f4363dd9.js';
|
|
12
|
+
import { d as defineCustomElement$7 } from './p-ab2d491d.js';
|
|
13
|
+
import { d as defineCustomElement$6 } from './p-051c07db.js';
|
|
14
|
+
import { d as defineCustomElement$5 } from './p-81ab4b42.js';
|
|
15
|
+
import { d as defineCustomElement$4 } from './p-a93ad459.js';
|
|
16
|
+
import { d as defineCustomElement$3 } from './p-a7ec59f9.js';
|
|
17
|
+
import { d as defineCustomElement$2 } from './p-e17362d8.js';
|
|
18
|
+
import { d as defineCustomElement$1 } from './p-00c74f3e.js';
|
|
19
19
|
|
|
20
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}";
|
|
21
21
|
const LidoHomeStyle0 = indexCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, l as attachSpeakIcon, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, l as attachSpeakIcon, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoRandomCss = ".lido-random{position:relative;width:100%;height:100%}.lido-random>*{position:absolute}";
|
|
4
4
|
const LidoRandomStyle0 = lidoRandomCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, m as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, m as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
const lidoFlashCardCss = ".card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}";
|
|
4
4
|
const LidoFlashCardStyle0 = lidoFlashCardCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-
|
|
1
|
+
import { c as commonjsGlobal, p as proxyCustomElement, H, g as getAssetPath, d as setVisibilityWithDelay, i as initEventsForElement, e as convertUrlToRelative, h, j as Host, R as RiveService } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
3
|
var rive = {exports: {}};
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, T as TraceMode, e as convertUrlToRelative, d as setVisibilityWithDelay, U as speakIcon, F as executeActions, K as triggerNextContainer, L as LidoContainer, m as parseProp, h, j as Host, V as fingerUrl } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, T as TraceMode, e as convertUrlToRelative, d as setVisibilityWithDelay, U as speakIcon, F as executeActions, K as triggerNextContainer, L as LidoContainer, m as parseProp, h, j as Host, V as fingerUrl } from './p-8993a2e7.js';
|
|
2
2
|
|
|
3
|
-
const lidoTraceCss = ":host{display:block;position:relative}#lido-svgContainer{display:flex;justify-content:center;align-items:center;overflow:hidden}svg{width:100%;height:100%;
|
|
3
|
+
const lidoTraceCss = ":host{display:block;position:relative}#lido-svgContainer{display:flex;justify-content:center;align-items:center;overflow:hidden}svg{width:100%;height:100%;touch-action:none}#lido-draggableCircle{cursor:pointer;fill:#CF1565;transition:fill 0.2s, r 0.2s}.lido-blindTracing{stroke:none !important}.lido-blindFreeTrace{stroke:none !important}.lido-hovered{cursor:grab;fill:darkred}#lido-controls{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;padding:10px;background-color:#f0f0f0;border-top:1px solid #ccc}button{padding:10px;font-size:16px}@media (max-width: 600px){button{padding:8px;font-size:14px}}.lido-trace-path-green{}.lido-flow-indicator{stroke:blue;stroke-width:2;stroke-dasharray:6, 6;fill:none}.lido-trace{height:700px;width:700px;z-index:1;justify-items:center;align-content:center}.trace-animate{animation:trace-bounce 0.5s}@keyframes trace-bounce{0%{transform:scale(1)}30%{transform:scale(1.05)}60%{transform:scale(0.95)}100%{transform:scale(1)}}";
|
|
4
4
|
const LidoTraceStyle0 = lidoTraceCss;
|
|
5
5
|
|
|
6
6
|
const LidoTrace = /*@__PURE__*/ proxyCustomElement(class LidoTrace extends H {
|
|
@@ -326,11 +326,11 @@ const LidoTrace = /*@__PURE__*/ proxyCustomElement(class LidoTrace extends H {
|
|
|
326
326
|
var _a;
|
|
327
327
|
const firstPathStart = state.paths[0].getPointAtLength(0);
|
|
328
328
|
const circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
|
|
329
|
-
|
|
329
|
+
state.paths[state.currentPathIndex].style['stroke-width'] || state.paths[state.currentPathIndex].getAttribute('stroke-width');
|
|
330
330
|
circle.setAttribute('id', 'lido-draggableCircle');
|
|
331
331
|
circle.setAttribute('cx', firstPathStart.x.toString());
|
|
332
332
|
circle.setAttribute('cy', firstPathStart.y.toString());
|
|
333
|
-
circle.setAttribute('r', `calc(
|
|
333
|
+
circle.setAttribute('r', `calc(20)`); // Radius of the draggable circle
|
|
334
334
|
circle.setAttribute('fill', '#CF1565'); // fill the color for the circle
|
|
335
335
|
(_a = state.svg) === null || _a === void 0 ? void 0 : _a.appendChild(circle);
|
|
336
336
|
state.circle = circle;
|
|
@@ -658,7 +658,7 @@ const LidoTrace = /*@__PURE__*/ proxyCustomElement(class LidoTrace extends H {
|
|
|
658
658
|
if (!textElem)
|
|
659
659
|
return;
|
|
660
660
|
// Extract audio URLs from the trace element's audio attribute
|
|
661
|
-
const audioList =
|
|
661
|
+
const audioList = this.audio;
|
|
662
662
|
if (!audioList)
|
|
663
663
|
return;
|
|
664
664
|
this.audioUrls = audioList.split(';').map(s => s.trim());
|
|
@@ -681,7 +681,7 @@ const LidoTrace = /*@__PURE__*/ proxyCustomElement(class LidoTrace extends H {
|
|
|
681
681
|
letter.classList.add('letter-highlight');
|
|
682
682
|
if (this.audioUrls[this.currentSvgIndex]) {
|
|
683
683
|
console.log('Playing audio:', this.audioUrls[this.currentSvgIndex]);
|
|
684
|
-
const audio = new Audio(this.audioUrls[this.currentSvgIndex]);
|
|
684
|
+
const audio = new Audio(convertUrlToRelative(this.audioUrls[this.currentSvgIndex]));
|
|
685
685
|
await audio.play();
|
|
686
686
|
}
|
|
687
687
|
}
|
|
@@ -695,7 +695,7 @@ const LidoTrace = /*@__PURE__*/ proxyCustomElement(class LidoTrace extends H {
|
|
|
695
695
|
if (word) {
|
|
696
696
|
word.classList.add('word-highlight');
|
|
697
697
|
if (this.audioUrls[this.currentSvgIndex]) {
|
|
698
|
-
const audio = new Audio(this.audioUrls[this.currentSvgIndex]);
|
|
698
|
+
const audio = new Audio(convertUrlToRelative(this.audioUrls[this.currentSvgIndex]));
|
|
699
699
|
await audio.play();
|
|
700
700
|
}
|
|
701
701
|
}
|
|
@@ -713,7 +713,7 @@ const LidoTrace = /*@__PURE__*/ proxyCustomElement(class LidoTrace extends H {
|
|
|
713
713
|
};
|
|
714
714
|
}
|
|
715
715
|
render() {
|
|
716
|
-
return (h(Host, { key: '
|
|
716
|
+
return (h(Host, { key: '7a49dba3768bd241b1c293df53b069eaf96c81fe', class: "lido-trace", id: this.id, audio: this.audio, onCorrect: this.onCorrect, onInCorrect: this.onInCorrect, style: this.style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, tabindex: this.tabIndex, "disable-speak": this.disableSpeak }, h("div", { key: '4735241945bf67599faf715815d13ac69aef6174', style: this.style, id: "lido-svgContainer" })));
|
|
717
717
|
}
|
|
718
718
|
static get assetsDirs() { return ["svg", "images"]; }
|
|
719
719
|
get el() { return this; }
|