lido-player 0.0.2-alpha-60-dev → 0.0.2-alpha-61

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.
Files changed (110) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/lido-avatar_22.cjs.entry.js +70 -28
  3. package/dist/cjs/lido-player.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-28faa755.js → utils-9cf49b55.js} +118 -55
  6. package/dist/collection/components/container/lido-container.js +21 -18
  7. package/dist/collection/components/home/lido-home.js +4 -4
  8. package/dist/collection/components/root/lido-root.js +5 -5
  9. package/dist/collection/components/text/lido-text.js +3 -2
  10. package/dist/collection/stories/Templates/balancing/balancing.stories.js +1 -1
  11. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +16 -15
  12. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +9 -7
  13. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +8 -6
  14. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +2 -2
  15. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +1 -1
  16. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +31 -18
  17. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +5 -5
  18. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +10 -7
  19. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +10 -6
  20. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +19 -14
  21. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +8 -8
  22. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +17 -10
  23. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +97 -0
  24. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +6 -6
  25. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +16 -19
  26. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +17 -18
  27. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +22 -19
  28. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +9 -9
  29. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +9 -9
  30. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +13 -13
  31. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +9 -9
  32. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +63 -0
  33. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +7 -7
  34. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +13 -13
  35. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +7 -7
  36. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +1 -1
  37. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +6 -5
  38. package/dist/collection/utils/audioPlayer.js +10 -0
  39. package/dist/collection/utils/customEvents.js +2 -1
  40. package/dist/collection/utils/i18n.js +2 -0
  41. package/dist/collection/utils/utils.js +4 -11
  42. package/dist/collection/utils/utilsHandlers/clickHandler.js +12 -7
  43. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +26 -52
  44. package/dist/collection/utils/utilsHandlers/lidoBalanceHandler.js +4 -5
  45. package/dist/collection/utils/utilsHandlers/timer.js +53 -0
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/lido-avatar.js +1 -1
  48. package/dist/components/lido-balance.js +1 -1
  49. package/dist/components/lido-calculator.js +1 -1
  50. package/dist/components/lido-canvas.js +1 -1
  51. package/dist/components/lido-cell.js +1 -1
  52. package/dist/components/lido-col.js +1 -1
  53. package/dist/components/lido-container.js +1 -1
  54. package/dist/components/lido-flash-card.js +1 -1
  55. package/dist/components/lido-float.js +1 -1
  56. package/dist/components/lido-home.js +1 -1
  57. package/dist/components/lido-image.js +1 -1
  58. package/dist/components/lido-keyboard.js +1 -1
  59. package/dist/components/lido-math-matrix.js +1 -1
  60. package/dist/components/lido-pos.js +1 -1
  61. package/dist/components/lido-random.js +1 -1
  62. package/dist/components/lido-root.js +27 -27
  63. package/dist/components/lido-row.js +1 -1
  64. package/dist/components/lido-shape.js +1 -1
  65. package/dist/components/lido-slide-fill.js +1 -1
  66. package/dist/components/lido-text.js +1 -1
  67. package/dist/components/lido-trace.js +1 -1
  68. package/dist/components/lido-wrap.js +1 -1
  69. package/dist/components/{p-354f7b19.js → p-0f54f212.js} +2 -2
  70. package/dist/components/{p-3acada8c.js → p-16a6a6f6.js} +1 -1
  71. package/dist/components/{p-b151457d.js → p-27bfb88f.js} +22 -20
  72. package/dist/components/{p-93acfbb2.js → p-2b0ef6d4.js} +1 -1
  73. package/dist/components/{p-c90d92db.js → p-2ce1503f.js} +1 -1
  74. package/dist/components/{p-8f082c62.js → p-2fedf56d.js} +1 -1
  75. package/dist/components/{p-a182c9a2.js → p-3c9dd098.js} +1 -1
  76. package/dist/components/{p-235091a1.js → p-40afd35f.js} +118 -56
  77. package/dist/components/{p-57400ebc.js → p-4a1af1bb.js} +1 -1
  78. package/dist/components/{p-74c270d2.js → p-4c1d15df.js} +2 -2
  79. package/dist/components/{p-5e7c6afa.js → p-4ec94e44.js} +1 -1
  80. package/dist/components/{p-3acd9a2e.js → p-572f8490.js} +1 -1
  81. package/dist/components/{p-16604098.js → p-6bee9883.js} +1 -1
  82. package/dist/components/{p-4d01394c.js → p-76947363.js} +1 -1
  83. package/dist/components/{p-de45dcab.js → p-8632f479.js} +25 -25
  84. package/dist/components/{p-db2a05f5.js → p-97ca067d.js} +3 -3
  85. package/dist/components/{p-8a32f7cb.js → p-be063cbd.js} +1 -1
  86. package/dist/components/{p-8c0667eb.js → p-d28496a9.js} +1 -1
  87. package/dist/components/{p-b867548e.js → p-df6042b0.js} +1 -1
  88. package/dist/components/{p-06cecca5.js → p-dfa70e99.js} +1 -1
  89. package/dist/components/{p-37c86a94.js → p-e4b71ba1.js} +47 -7
  90. package/dist/components/{p-32c89979.js → p-f241ab97.js} +1 -1
  91. package/dist/esm/index.js +1 -1
  92. package/dist/esm/lido-avatar_22.entry.js +70 -28
  93. package/dist/esm/lido-player.js +1 -1
  94. package/dist/esm/loader.js +1 -1
  95. package/dist/esm/{utils-2edeb213.js → utils-01d6cbb5.js} +118 -56
  96. package/dist/lido-player/index.esm.js +1 -1
  97. package/dist/lido-player/lido-player.esm.js +1 -1
  98. package/dist/lido-player/{p-add7f36e.js → p-c5ca9462.js} +2 -2
  99. package/dist/lido-player/p-e4d5dabf.entry.js +1 -0
  100. package/dist/types/components/container/lido-container.d.ts +1 -1
  101. package/dist/types/components/home/lido-home.d.ts +1 -1
  102. package/dist/types/components/root/lido-root.d.ts +1 -1
  103. package/dist/types/components.d.ts +24 -24
  104. package/dist/types/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.d.ts +4 -0
  105. package/dist/types/stories/Templates/sentenceMatch/sentenceMatch.stories.d.ts +4 -0
  106. package/dist/types/utils/audioPlayer.d.ts +1 -0
  107. package/dist/types/utils/constants.d.ts +4 -5
  108. package/dist/types/utils/utilsHandlers/timer.d.ts +14 -0
  109. package/package.json +1 -1
  110. package/dist/lido-player/p-280e3d34.entry.js +0 -1
@@ -1,31 +1,31 @@
1
- import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-235091a1.js';
2
- import { d as defineCustomElement$4, i as instance } from './p-37c86a94.js';
3
- import { d as defineCustomElement$m } from './p-4d01394c.js';
4
- import { d as defineCustomElement$l } from './p-06cecca5.js';
5
- import { d as defineCustomElement$k } from './p-db2a05f5.js';
6
- import { d as defineCustomElement$j } from './p-354f7b19.js';
7
- import { d as defineCustomElement$i } from './p-3acada8c.js';
8
- import { d as defineCustomElement$h } from './p-57400ebc.js';
9
- import { d as defineCustomElement$g } from './p-b151457d.js';
10
- import { d as defineCustomElement$f } from './p-8f082c62.js';
11
- import { d as defineCustomElement$e } from './p-b867548e.js';
12
- import { d as defineCustomElement$d } from './p-de45dcab.js';
13
- import { d as defineCustomElement$c } from './p-16604098.js';
14
- import { d as defineCustomElement$b } from './p-74c270d2.js';
15
- import { d as defineCustomElement$a } from './p-93acfbb2.js';
16
- import { d as defineCustomElement$9 } from './p-c90d92db.js';
17
- import { d as defineCustomElement$8 } from './p-8c0667eb.js';
18
- import { d as defineCustomElement$7 } from './p-3acd9a2e.js';
19
- import { d as defineCustomElement$6 } from './p-8a32f7cb.js';
20
- import { d as defineCustomElement$5 } from './p-a182c9a2.js';
21
- import { d as defineCustomElement$3 } from './p-32c89979.js';
22
- import { d as defineCustomElement$2 } from './p-5e7c6afa.js';
1
+ import { p as proxyCustomElement, H, g as getAssetPath, h } from './p-40afd35f.js';
2
+ import { d as defineCustomElement$4, i as instance } from './p-e4b71ba1.js';
3
+ import { d as defineCustomElement$m } from './p-76947363.js';
4
+ import { d as defineCustomElement$l } from './p-dfa70e99.js';
5
+ import { d as defineCustomElement$k } from './p-97ca067d.js';
6
+ import { d as defineCustomElement$j } from './p-0f54f212.js';
7
+ import { d as defineCustomElement$i } from './p-16a6a6f6.js';
8
+ import { d as defineCustomElement$h } from './p-4a1af1bb.js';
9
+ import { d as defineCustomElement$g } from './p-27bfb88f.js';
10
+ import { d as defineCustomElement$f } from './p-2fedf56d.js';
11
+ import { d as defineCustomElement$e } from './p-df6042b0.js';
12
+ import { d as defineCustomElement$d } from './p-8632f479.js';
13
+ import { d as defineCustomElement$c } from './p-6bee9883.js';
14
+ import { d as defineCustomElement$b } from './p-4c1d15df.js';
15
+ import { d as defineCustomElement$a } from './p-2b0ef6d4.js';
16
+ import { d as defineCustomElement$9 } from './p-2ce1503f.js';
17
+ import { d as defineCustomElement$8 } from './p-d28496a9.js';
18
+ import { d as defineCustomElement$7 } from './p-572f8490.js';
19
+ import { d as defineCustomElement$6 } from './p-be063cbd.js';
20
+ import { d as defineCustomElement$5 } from './p-3c9dd098.js';
21
+ import { d as defineCustomElement$3 } from './p-f241ab97.js';
22
+ import { d as defineCustomElement$2 } from './p-4ec94e44.js';
23
23
 
24
24
  const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
25
25
  constructor() {
26
26
  super();
27
27
  this.__registerHost();
28
- this.locale = '';
28
+ this.Lang = '';
29
29
  this.xmlPath = '';
30
30
  this.initialIndex = 0;
31
31
  this.margin = '';
@@ -42,7 +42,7 @@ const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
42
42
  * It fetches the XML data from the specified path or URL and sets it to the component's state.
43
43
  */
44
44
  connectedCallback() {
45
- this.setLanguage(this.locale);
45
+ this.setLanguage(this.Lang);
46
46
  }
47
47
  onLangChange(newLang) {
48
48
  this.setLanguage(newLang);
@@ -94,10 +94,10 @@ const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
94
94
  }
95
95
  static get assetsDirs() { return ["assets"]; }
96
96
  static get watchers() { return {
97
- "locale": ["onLangChange"]
97
+ "Lang": ["onLangChange"]
98
98
  }; }
99
99
  }, [0, "lido-root", {
100
- "locale": [1],
100
+ "Lang": [1, "lang"],
101
101
  "xmlPath": [1, "xml-path"],
102
102
  "initialIndex": [2, "initial-index"],
103
103
  "margin": [1],
@@ -109,7 +109,7 @@ const LidoRoot$1 = /*@__PURE__*/ proxyCustomElement(class LidoRoot extends H {
109
109
  "speakerButtonUrl": [1, "speaker-button-url"],
110
110
  "xmlData": [32]
111
111
  }, undefined, {
112
- "locale": ["onLangChange"]
112
+ "Lang": ["onLangChange"]
113
113
  }]);
114
114
  function defineCustomElement$1() {
115
115
  if (typeof customElements === "undefined") {
@@ -1,4 +1,4 @@
1
- import { L as LidoRow$1, d as defineCustomElement$1 } from './p-3acd9a2e.js';
1
+ import { L as LidoRow$1, d as defineCustomElement$1 } from './p-572f8490.js';
2
2
 
3
3
  const LidoRow = LidoRow$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { L as LidoShape$1, d as defineCustomElement$1 } from './p-8a32f7cb.js';
1
+ import { L as LidoShape$1, d as defineCustomElement$1 } from './p-be063cbd.js';
2
2
 
3
3
  const LidoShape = LidoShape$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { L as LidoSlideFill$1, d as defineCustomElement$1 } from './p-a182c9a2.js';
1
+ import { L as LidoSlideFill$1, d as defineCustomElement$1 } from './p-3c9dd098.js';
2
2
 
3
3
  const LidoSlideFill = LidoSlideFill$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { L as LidoText$1, d as defineCustomElement$1 } from './p-37c86a94.js';
1
+ import { L as LidoText$1, d as defineCustomElement$1 } from './p-e4b71ba1.js';
2
2
 
3
3
  const LidoText = LidoText$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { L as LidoTrace$1, d as defineCustomElement$1 } from './p-32c89979.js';
1
+ import { L as LidoTrace$1, d as defineCustomElement$1 } from './p-f241ab97.js';
2
2
 
3
3
  const LidoTrace = LidoTrace$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { L as LidoWrap$1, d as defineCustomElement$1 } from './p-5e7c6afa.js';
1
+ import { L as LidoWrap$1, d as defineCustomElement$1 } from './p-4ec94e44.js';
2
2
 
3
3
  const LidoWrap = LidoWrap$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,5 +1,5 @@
1
- import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-235091a1.js';
2
- import { d as defineCustomElement$1 } from './p-37c86a94.js';
1
+ import { p as proxyCustomElement, H, k as parseProp, h, j as Host } from './p-40afd35f.js';
2
+ import { d as defineCustomElement$1 } from './p-e4b71ba1.js';
3
3
 
4
4
  const lidoCanvasCss = ":host{display:flex;justify-content:center;align-items:center}.lido-canvas{background:red;border:2px solid #ccc;border-radius:8px;display:flex;flex-direction:column;overflow:hidden;position:relative}#lido-exit-button{padding:6px 14px;border:none;background:transparent;color:#fff;border-radius:6px;cursor:pointer;font-size:14px;position:relative;top:-43%;left:18%;z-index:10}canvas{touch-action:none;display:block}";
5
5
  const LidoCanvasStyle0 = lidoCanvasCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-235091a1.js';
1
+ import { p as proxyCustomElement, H, d as setVisibilityWithDelay, i as initEventsForElement, r as handlingChildElements, t as attachSpeakIcon, k as parseProp, h, j as Host } from './p-40afd35f.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,5 +1,5 @@
1
- import { p as proxyCustomElement, H, T as TemplateID, v as calculateScale, e as convertUrlToRelative, i as initEventsForElement, w as highlightElement, h, j as Host } from './p-235091a1.js';
2
- import { d as defineCustomElement$1, i as instance } from './p-37c86a94.js';
1
+ import { p as proxyCustomElement, H, T as TemplateID, v as calculateScale, e as convertUrlToRelative, i as initEventsForElement, w as highlightElement, x as Timer, h, j as Host } from './p-40afd35f.js';
2
+ import { d as defineCustomElement$1, i as instance } from './p-e4b71ba1.js';
3
3
 
4
4
  const lidoContainerCss = ".lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}";
5
5
  const LidoContainerStyle0 = lidoContainerCss;
@@ -8,7 +8,7 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
8
8
  constructor() {
9
9
  super();
10
10
  this.__registerHost();
11
- this.locale = '';
11
+ this.Lang = '';
12
12
  this.showDropBorder = true;
13
13
  this.appendToDropOnCompletion = false;
14
14
  this.id = '';
@@ -61,13 +61,13 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
61
61
  }
62
62
  resolveInstructionAudio() {
63
63
  var _a;
64
- this.instructName =
65
- (_a = {
66
- flashcard: "Review the flashcards to reinforce your learning." /* templateAudio.flashcards */,
67
- mcq: "Select the correct answer from the options provided." /* templateAudio.mcq */,
68
- tracing: "Trace the shape by following the outline carefully." /* templateAudio.tracing */,
69
- dragAndDrop: "Match the items by dragging and dropping them into the correct places." /* templateAudio.dragAndDrop */,
70
- }[this.templateId]) !== null && _a !== void 0 ? _a : '';
64
+ const key = (_a = {
65
+ flashcard: "instruction.flashcards" /* templateAudio.flashcards */,
66
+ mcq: "instruction.mcq" /* templateAudio.mcq */,
67
+ tracing: "instruction.tracing" /* templateAudio.tracing */,
68
+ dragAndDrop: "instruction.dragAndDrop" /* templateAudio.dragAndDrop */,
69
+ }[this.templateId]) !== null && _a !== void 0 ? _a : '';
70
+ this.instructName = key ? instance.t(key) : '';
71
71
  const home = document.querySelector('lido-home');
72
72
  if (!home)
73
73
  return;
@@ -80,16 +80,16 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
80
80
  resolveLanguage() {
81
81
  var _a, _b;
82
82
  const rootEl = this.el.closest('lido-root');
83
- const rootLang = (rootEl === null || rootEl === void 0 ? void 0 : rootEl.locale) || '';
83
+ const rootLang = (rootEl === null || rootEl === void 0 ? void 0 : rootEl.Lang) || '';
84
84
  if (rootLang === null || rootLang === void 0 ? void 0 : rootLang.trim())
85
85
  return rootLang;
86
86
  const homeEl = this.el.closest('lido-home');
87
- const homeLang = (homeEl === null || homeEl === void 0 ? void 0 : homeEl.locale) || '';
87
+ const homeLang = (homeEl === null || homeEl === void 0 ? void 0 : homeEl.Lang) || '';
88
88
  if (homeLang === null || homeLang === void 0 ? void 0 : homeLang.trim())
89
89
  return homeLang;
90
- if ((_a = this.locale) === null || _a === void 0 ? void 0 : _a.trim())
91
- return this.locale;
92
- const xmlLang = this.el.getAttribute('locale');
90
+ if ((_a = this.Lang) === null || _a === void 0 ? void 0 : _a.trim())
91
+ return this.Lang;
92
+ const xmlLang = this.el.getAttribute('Lang');
93
93
  if (xmlLang === null || xmlLang === void 0 ? void 0 : xmlLang.trim())
94
94
  return xmlLang;
95
95
  return (_b = this.el.textContent) === null || _b === void 0 ? void 0 : _b.trim();
@@ -161,7 +161,7 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
161
161
  instance.changeLanguage(appliedLang);
162
162
  const texts = this.el.querySelectorAll('lido-text');
163
163
  texts.forEach((textEl) => {
164
- textEl.locale = appliedLang;
164
+ textEl.Lang = appliedLang;
165
165
  textEl.dispatchEvent(new CustomEvent('languageChanged', { bubbles: true }));
166
166
  });
167
167
  }
@@ -200,12 +200,14 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
200
200
  setTimeout(() => {
201
201
  highlightElement();
202
202
  }, 100);
203
+ Timer.getI().start();
203
204
  }
204
205
  disconnectedCallback() {
205
206
  window.removeEventListener('resize', () => this.scaleContainer(this.el));
206
207
  window.removeEventListener('load', () => this.scaleContainer(this.el));
207
208
  document.body.style.backgroundColor = '';
208
209
  document.body.style.backgroundImage = '';
210
+ Timer.getI().stop();
209
211
  }
210
212
  render() {
211
213
  // Define the styles for the container element
@@ -219,15 +221,15 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
219
221
  userSelect: 'none', // Prevent any field selection
220
222
  };
221
223
  console.log('🚀 ~ LidoContainer ~ canplay:', this.canplay);
222
- return (h(Host, { key: 'bdae7c7d24046fc0f726668b9b1bbb84f3ddd3dd', id: "lido-container", locale: this.locale, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, h("lido-text", { key: 'aa5d73493b429f0d99c5737aed89488c565e1699', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: 'd251b1fed4468aabd66a6f6c14b3de234329ab64' })));
224
+ return (h(Host, { key: 'b2b35ac6c3be99cabf0eeaf2708611bfd4c3360c', id: "lido-container", Lang: this.Lang, "tab-index": 0, class: "lido-container", objective: this.objective, baseUrl: this.baseUrl, style: style, "aria-label": this.ariaLabel, "aria-hidden": this.ariaHidden, onTouch: this.onTouch, onInCorrect: this.onInCorrect, onCorrect: this.onCorrect, onEntry: this.onEntry, "show-check": `${this.showCheck}`, "is-continue-on-correct": `${this.isContinueOnCorrect}`, "is-allow-only-correct": `${this.isAllowOnlyCorrect}`, canplay: `${this.canplay}`, appendToDropOnCompletion: `${this.appendToDropOnCompletion}`, "show-prev-button": `${this.showPrevButton}`, "show-next-button": `${this.showNextButton}`, "show-drop-border": `${this.showDropBorder}`, "bg-image": this.bgImage, "exit-button-url": this.exitButtonUrl, "prev-button-url": this.prevButtonUrl, "next-button-url": this.nextButtonUrl, "speaker-button-url": this.speakerButtonUrl, "disable-speak": this.disableSpeak, "template-id": this.templateId, audio: this.audio }, h("lido-text", { key: 'ebd91c0603caa4e52d583dd86a1692b57b99afb4', visible: "false", id: this.templateId, audio: "", string: this.instructName }), h("slot", { key: '76f7f53558af814bbd0ce4516b80d4fa970e3c48' })));
223
225
  }
224
226
  get el() { return this; }
225
227
  static get watchers() { return {
226
- "locale": ["languageChanged"]
228
+ "Lang": ["languageChanged"]
227
229
  }; }
228
230
  static get style() { return LidoContainerStyle0; }
229
231
  }, [4, "lido-container", {
230
- "locale": [1],
232
+ "Lang": [1, "lang"],
231
233
  "showDropBorder": [4, "show-drop-border"],
232
234
  "appendToDropOnCompletion": [4, "append-to-drop-on-completion"],
233
235
  "id": [1],
@@ -269,7 +271,7 @@ const LidoContainer = /*@__PURE__*/ proxyCustomElement(class LidoContainer exten
269
271
  "instructName": [32],
270
272
  "speakFlag": [32]
271
273
  }, undefined, {
272
- "locale": ["languageChanged"]
274
+ "Lang": ["languageChanged"]
273
275
  }]);
274
276
  function defineCustomElement() {
275
277
  if (typeof customElements === "undefined") {
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, Z as validateObjectiveStatus, h, j as Host } from './p-235091a1.js';
1
+ import { p as proxyCustomElement, H, i as initEventsForElement, e as convertUrlToRelative, k as parseProp, _ as validateObjectiveStatus, h, j as Host } from './p-40afd35f.js';
2
2
 
3
3
  const lidoMathMatrixCss = ".math-matrix{width:100%;height:100%;display:flex;justify-content:center}.slot{width:100%;height:100%;text-align:center;align-content:center;font-size:42px;font-weight:800;font-family:'Baloo Bhai 2';box-sizing:content-box}.slot:hover{opacity:0.7}.slot-parent{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.slot-active{background-color:var(--active-bg-color);background-image:var(--bg-image);background-size:contain;background-position:center;background-repeat:no-repeat}.slot-inactive{background-color:var(--deactive-bg-color);background-size:cover;background-position:center;background-repeat:no-repeat}.topIndex,.leftIndex,.bottomIndex{height:100%;width:100%;text-align:center;align-content:center;font-size:30px;font-weight:600;font-family:'Baloo Bhai 2'}";
4
4
  const LidoMathMatrixStyle0 = lidoMathMatrixCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-235091a1.js';
1
+ import { p as proxyCustomElement, H, i as initEventsForElement, k as parseProp, h, j as Host } from './p-40afd35f.js';
2
2
 
3
3
  const lidoPosCss = ".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}";
4
4
  const LidoPosStyle0 = lidoPosCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-235091a1.js';
1
+ import { p as proxyCustomElement, H, k as parseProp, d as setVisibilityWithDelay, i as initEventsForElement, h, j as Host } from './p-40afd35f.js';
2
2
 
3
3
  const lidoFlashCardCss = ".card{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform 0.6s ease;cursor:pointer}.card.flipped{transform:rotateY(180deg)}.card-face{position:absolute;width:100%;height:100%;backface-visibility:hidden;display:flex;align-items:center;justify-content:center}.card-back{transform:rotateY(180deg)}";
4
4
  const LidoFlashCardStyle0 = lidoFlashCardCss;
@@ -1,4 +1,4 @@
1
- import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, _ as fraction, h, j as Host } from './p-235091a1.js';
1
+ import { p as proxyCustomElement, H, e as convertUrlToRelative, d as setVisibilityWithDelay, i as initEventsForElement, k as parseProp, $ as fraction, h, j as Host } from './p-40afd35f.js';
2
2
 
3
3
  const lidoSlideFillCss = ".svg-element,svg{width:100%;height:100%}";
4
4
  const LidoSlideFillStyle0 = lidoSlideFillCss;