lido-player 0.0.2-alpha-86 → 0.0.2-alpha-87

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 (39) hide show
  1. package/dist/cjs/{decode-DIUvWF6N.js → decode-C80xU-sR.js} +1 -1
  2. package/dist/cjs/{index-Cfl2KMDg.js → index-C1PT3dXa.js} +1 -1
  3. package/dist/cjs/{index-7Dh-uOww.js → index-Dl8SlqP-.js} +1 -1
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/lido-avatar_22.cjs.entry.js +20 -22
  6. package/dist/cjs/lido-player.cjs.js +2 -2
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/components/lido-avatar.js +1 -1
  10. package/dist/components/lido-calculator.js +1 -1
  11. package/dist/components/lido-canvas.js +1 -1
  12. package/dist/components/lido-container.js +1 -1
  13. package/dist/components/lido-home.js +1 -1
  14. package/dist/components/lido-keyboard.js +1 -1
  15. package/dist/components/lido-root.js +1 -1
  16. package/dist/components/lido-text.js +1 -1
  17. package/dist/components/{p-DnN6oHI6.js → p-BOHNyYPi.js} +1 -1
  18. package/dist/components/{p-BVjdl5J1.js → p-BRBNRF2F.js} +1 -1
  19. package/dist/components/p-CBg54ApH.js +1 -0
  20. package/dist/components/{p-NUpSLJ0I.js → p-D5OuulAW.js} +1 -1
  21. package/dist/components/{p-BRbyZYnO.js → p-DVoNbO_j.js} +1 -1
  22. package/dist/components/{p-DWBY6jC3.js → p-DuWrKD5Z.js} +1 -1
  23. package/dist/components/{p-DgBmezg8.js → p-v5QPz3yz.js} +1 -1
  24. package/dist/esm/{decode-D8gAeIM7.js → decode-CT8SQ-Bc.js} +1 -1
  25. package/dist/esm/{index-DazuHWZm.js → index-DumOk5HE.js} +1 -1
  26. package/dist/esm/{index-CBmYf7sZ.js → index-DwCQErNN.js} +1 -1
  27. package/dist/esm/index.js +2 -2
  28. package/dist/esm/lido-avatar_22.entry.js +20 -22
  29. package/dist/esm/lido-player.js +3 -3
  30. package/dist/esm/loader.js +2 -2
  31. package/dist/lido-player/index.esm.js +1 -1
  32. package/dist/lido-player/lido-player.esm.js +1 -1
  33. package/dist/lido-player/p-620b7bc6.entry.js +1 -0
  34. package/dist/lido-player/{p-g3lu02Fa.js → p-DT7g3bxF.js} +1 -1
  35. package/dist/lido-player/{p-Kx5tRAEh.js → p-DWRQJAW3.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/components/p-BkQGpxcR.js +0 -1
  38. package/dist/lido-player/p-75b0ae79.entry.js +0 -1
  39. /package/dist/lido-player/{p-CBmYf7sZ.js → p-DwCQErNN.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cfl2KMDg.js');
3
+ var index = require('./index-C1PT3dXa.js');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  m.forEach(function (e) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index$1 = require('./index-7Dh-uOww.js');
3
+ var index$1 = require('./index-Dl8SlqP-.js');
4
4
 
5
5
  const DragMapKey = 'lidoDragMap';
6
6
  const SelectedValuesKey = 'lidoSelectedValues';
@@ -25,7 +25,7 @@ const globalScripts = () => {};
25
25
  const globalStyles = "@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:rgb(243, 77, 8) 0px 0px 40px !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}.lido-tts-highlight-overlay{position:fixed;pointer-events:none;z-index:9999;background:linear-gradient(\r\n 180deg,\r\n rgba(255, 235, 59, 0.95),\r\n rgba(255, 214, 0, 0.95)\r\n );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18),\r\n inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:left 55ms linear,\r\n top 55ms linear,\r\n width 55ms ease-out,\r\n height 55ms ease-out,\r\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height}";
26
26
 
27
27
  /*
28
- Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
28
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
29
29
  */
30
30
 
31
31
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cfl2KMDg.js');
4
- require('./index-7Dh-uOww.js');
3
+ var index = require('./index-C1PT3dXa.js');
4
+ require('./index-Dl8SlqP-.js');
5
5
 
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-7Dh-uOww.js');
4
- var index$1 = require('./index-Cfl2KMDg.js');
3
+ var index = require('./index-Dl8SlqP-.js');
4
+ var index$1 = require('./index-C1PT3dXa.js');
5
5
 
6
6
  var rive$1 = {exports: {}};
7
7
 
@@ -747,7 +747,7 @@ function requireRive () {
747
747
  return Wa(c, a, b);
748
748
  }));
749
749
  }
750
- var Za, $a, db = {491234:(a, b, c, d, e) => {
750
+ var Za, $a, db = {478226:(a, b, c, d, e) => {
751
751
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
752
752
  return 0;
753
753
  }
@@ -810,11 +810,11 @@ function requireRive () {
810
810
  }
811
811
  window.h.za += 1;
812
812
  return 1;
813
- }, 493412:() => {
813
+ }, 480404:() => {
814
814
  "undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
815
815
  document.removeEventListener(a, window.h.unlock, true);
816
816
  }), --window.h.za, 0 === window.h.za && delete window.h);
817
- }, 493716:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493820:() => {
817
+ }, 480708:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 480812:() => {
818
818
  try {
819
819
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
820
820
  a.close();
@@ -822,7 +822,7 @@ function requireRive () {
822
822
  } catch (c) {
823
823
  return 0;
824
824
  }
825
- }, 493991:(a, b, c, d, e, f) => {
825
+ }, 480983:(a, b, c, d, e, f) => {
826
826
  if ("undefined" === typeof window.h) {
827
827
  return -1;
828
828
  }
@@ -868,7 +868,7 @@ function requireRive () {
868
868
  a == window.h.J.xa && g.Z.connect(g.L.destination);
869
869
  g.pb = f;
870
870
  return window.h.sc(g);
871
- }, 496868:a => window.h.qa(a).L.sampleRate, 496941:a => {
871
+ }, 483860:a => window.h.qa(a).L.sampleRate, 483933:a => {
872
872
  a = window.h.qa(a);
873
873
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
874
874
  }, a.Z.disconnect(), a.Z = void 0);
@@ -876,13 +876,13 @@ function requireRive () {
876
876
  a.L.close();
877
877
  a.L = void 0;
878
878
  a.pb = void 0;
879
- }, 497341:a => {
879
+ }, 484333:a => {
880
880
  window.h.Ab(a);
881
- }, 497391:a => {
881
+ }, 484383:a => {
882
882
  a = window.h.qa(a);
883
883
  a.L.resume();
884
884
  a.state = window.h.ga.wb;
885
- }, 497530:a => {
885
+ }, 484522:a => {
886
886
  a = window.h.qa(a);
887
887
  a.L.suspend();
888
888
  a.state = window.h.ga.stopped;
@@ -3390,7 +3390,7 @@ function requireRive () {
3390
3390
  /* 2 */
3391
3391
  /***/ ((module) => {
3392
3392
 
3393
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.35.2","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3393
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.35.3","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3394
3394
 
3395
3395
  /***/ }),
3396
3396
  /* 3 */
@@ -9573,8 +9573,8 @@ function keysFromSelector(selector, opts) {
9573
9573
  const nsSeparator = opts?.nsSeparator ?? ':';
9574
9574
  if (path.length > 1 && nsSeparator) {
9575
9575
  const ns = opts?.ns;
9576
- const namespaces = ns ? Array.isArray(ns) ? ns : [ns] : [];
9577
- if (namespaces.includes(path[0])) {
9576
+ const nsArray = Array.isArray(ns) ? ns : null;
9577
+ if (nsArray && nsArray.length > 1 && nsArray.slice(1).includes(path[0])) {
9578
9578
  return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
9579
9579
  }
9580
9580
  }
@@ -11167,21 +11167,19 @@ class I18n extends EventEmitter {
11167
11167
  o.lngs = o.lngs || fixedT.lngs;
11168
11168
  o.ns = o.ns || fixedT.ns;
11169
11169
  if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
11170
+ const selectorOpts = {
11171
+ ...this.options,
11172
+ ...o
11173
+ };
11170
11174
  const keySeparator = this.options.keySeparator || '.';
11171
11175
  let resultKey;
11172
11176
  if (o.keyPrefix && Array.isArray(key)) {
11173
11177
  resultKey = key.map(k => {
11174
- if (typeof k === 'function') k = keysFromSelector(k, {
11175
- ...this.options,
11176
- ...opts
11177
- });
11178
+ if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);
11178
11179
  return `${o.keyPrefix}${keySeparator}${k}`;
11179
11180
  });
11180
11181
  } else {
11181
- if (typeof key === 'function') key = keysFromSelector(key, {
11182
- ...this.options,
11183
- ...opts
11184
- });
11182
+ if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);
11185
11183
  resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
11186
11184
  }
11187
11185
  return this.t(resultKey, o);
@@ -12933,7 +12931,7 @@ const LidoHome = class {
12933
12931
  }
12934
12932
  // Pure-JS fallback (no wasm asset required)
12935
12933
  try {
12936
- const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-DIUvWF6N.js'); }).then(function (n) { return n.decode; });
12934
+ const brotliDecodeModule = await Promise.resolve().then(function () { return require('./decode-C80xU-sR.js'); }).then(function (n) { return n.decode; });
12937
12935
  const brotliDecompressBuffer = brotliDecodeModule.BrotliDecompressBuffer ||
12938
12936
  ((_a = brotliDecodeModule.default) === null || _a === void 0 ? void 0 : _a.BrotliDecompressBuffer);
12939
12937
  if (typeof brotliDecompressBuffer !== 'function') {
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-7Dh-uOww.js');
3
+ var index = require('./index-Dl8SlqP-.js');
4
4
 
5
5
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
6
6
  /*
7
- Stencil Client Patch Browser v4.43.2 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Patch Browser v4.43.3 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
 
10
10
  var patchBrowser = () => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-7Dh-uOww.js');
3
+ var index = require('./index-Dl8SlqP-.js');
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
@@ -26,7 +26,7 @@
26
26
  "mixins": [],
27
27
  "compiler": {
28
28
  "name": "@stencil/core",
29
- "version": "4.43.2",
29
+ "version": "4.43.3",
30
30
  "typescriptVersion": "5.8.3"
31
31
  },
32
32
  "collections": [],
@@ -1 +1 @@
1
- import{L as o,d as s}from"./p-DnN6oHI6.js";const p=o,r=s;export{p as LidoAvatar,r as defineCustomElement}
1
+ import{L as o,d as s}from"./p-BOHNyYPi.js";const p=o,r=s;export{p as LidoAvatar,r as defineCustomElement}
@@ -1 +1 @@
1
- import{L as o,d as s}from"./p-DgBmezg8.js";const m=o,p=s;export{m as LidoCalculator,p as defineCustomElement}
1
+ import{L as o,d as s}from"./p-v5QPz3yz.js";const p=o,r=s;export{p as LidoCalculator,r as defineCustomElement}
@@ -1 +1 @@
1
- import{L as o,d as p}from"./p-NUpSLJ0I.js";const s=o,r=p;export{s as LidoCanvas,r as defineCustomElement}
1
+ import{L as o,d as s}from"./p-D5OuulAW.js";const p=o,r=s;export{p as LidoCanvas,r as defineCustomElement}
@@ -1 +1 @@
1
- import{L as o,d as s}from"./p-BVjdl5J1.js";const p=o,r=s;export{p as LidoContainer,r as defineCustomElement}
1
+ import{L as o,d as s}from"./p-BRBNRF2F.js";const p=o,r=s;export{p as LidoContainer,r as defineCustomElement}
@@ -1 +1 @@
1
- import{L as o,d as s}from"./p-DWBY6jC3.js";const p=o,r=s;export{p as LidoHome,r as defineCustomElement}
1
+ import{L as o,d as r}from"./p-DuWrKD5Z.js";const s=o,p=r;export{s as LidoHome,p as defineCustomElement}
@@ -1 +1 @@
1
- import{L as o,d as s}from"./p-BRbyZYnO.js";const p=o,r=s;export{p as LidoKeyboard,r as defineCustomElement}
1
+ import{L as o,d as s}from"./p-DVoNbO_j.js";const p=o,r=s;export{p as LidoKeyboard,r as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as o,H as s,getAssetPath as e,h as a}from"./index.js";import{d as i,i as l}from"./p-BkQGpxcR.js";import{d as r}from"./p-DnN6oHI6.js";import{d as n}from"./p-1PmJa9_u.js";import{d as m}from"./p-DgBmezg8.js";import{d}from"./p-NUpSLJ0I.js";import{d as c}from"./p-DFnbzZUc.js";import{d as p}from"./p-B97yn0-n.js";import{d as h}from"./p-BVjdl5J1.js";import{d as u}from"./p-CfdL3fZ9.js";import{d as f}from"./p-BLx2hZ8d.js";import{d as b}from"./p-DWBY6jC3.js";import{d as k}from"./p-BOTEFjDY.js";import{d as E}from"./p-BRbyZYnO.js";import{d as x}from"./p-jt8Ishvd.js";import{d as j}from"./p-Czy5pBTg.js";import{d as g}from"./p-D4JZI_JB.js";import{d as L}from"./p-CusU-d3G.js";import{d as v}from"./p-DqskvXvD.js";import{d as B}from"./p-Dr5sh_El.js";import{d as U}from"./p-JtdpRTRi.js";import{d as D}from"./p-De6WHLEQ.js";const w=o(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.Lang="",this.xmlPath="",this.initialIndex=0,this.margin="",this.canplay=!0,this.baseUrl=""}connectedCallback(){this.setLanguage(this.Lang)}onLangChange(t){this.setLanguage(t)}setLanguage(t){l.changeLanguage(t||l.language)}async componentWillLoad(){var t,o;const s=null!==(t=this.xmlPath)&&void 0!==t?t:this.baseUrl+((null===(o=this.baseUrl)||void 0===o?void 0:o.endsWith("/"))?"index.xml":"/index.xml");console.log("🚀 ~ LidoRoot ~ componentWillLoad ~ this.baseUrl:",this.baseUrl),console.log("🚀 ~ LidoRoot ~ componentWillLoad ~ this.xmlPath:",this.xmlPath),console.log("🚀 ~ LidoRoot ~ componentWillLoad ~ xmlPath:",s);try{const t=s.startsWith("http")?s:e(s),o=await fetch(t);if(!o.ok)throw Error("Failed to fetch XML data: "+o.statusText);const a=await o.text();this.xmlData=a}catch(t){console.error("Error fetching XML data:",t),this.xmlData=null}}render(){return void 0===this.xmlData?a("div",null,"Loading..."):null===this.xmlData?a("div",null,"Error loading XML data. Please check the path or URL."):a("lido-home",{showNav:!0,activeContainerIndexes:[],initialIndex:this.initialIndex,canplay:this.canplay,xmlData:this.xmlData,baseUrl:this.baseUrl,exitButtonUrl:this.exitButtonUrl,prevButtonUrl:this.prevButtonUrl,nextButtonUrl:this.nextButtonUrl,speakerButtonUrl:this.speakerButtonUrl})}static get assetsDirs(){return["assets"]}static get watchers(){return{Lang:[{onLangChange:0}]}}},[0,"lido-root",{Lang:[1,"lang"],xmlPath:[1,"xml-path"],initialIndex:[2,"initial-index"],margin:[1],canplay:[4],baseUrl:[1,"base-url"],exitButtonUrl:[1,"exit-button-url"],prevButtonUrl:[1,"prev-button-url"],nextButtonUrl:[1,"next-button-url"],speakerButtonUrl:[1,"speaker-button-url"],xmlData:[32]},void 0,{Lang:[{onLangChange:0}]}]);function y(){"undefined"!=typeof customElements&&["lido-root","lido-avatar","lido-balance","lido-calculator","lido-canvas","lido-cell","lido-col","lido-container","lido-flash-card","lido-float","lido-home","lido-image","lido-keyboard","lido-math-matrix","lido-pos","lido-random","lido-row","lido-shape","lido-slide-fill","lido-text","lido-trace","lido-wrap"].forEach((o=>{switch(o){case"lido-root":customElements.get(t(o))||customElements.define(t(o),w);break;case"lido-avatar":customElements.get(t(o))||r();break;case"lido-balance":customElements.get(t(o))||n();break;case"lido-calculator":customElements.get(t(o))||m();break;case"lido-canvas":customElements.get(t(o))||d();break;case"lido-cell":customElements.get(t(o))||c();break;case"lido-col":customElements.get(t(o))||p();break;case"lido-container":customElements.get(t(o))||h();break;case"lido-flash-card":customElements.get(t(o))||u();break;case"lido-float":customElements.get(t(o))||f();break;case"lido-home":customElements.get(t(o))||b();break;case"lido-image":customElements.get(t(o))||k();break;case"lido-keyboard":customElements.get(t(o))||E();break;case"lido-math-matrix":customElements.get(t(o))||x();break;case"lido-pos":customElements.get(t(o))||j();break;case"lido-random":customElements.get(t(o))||g();break;case"lido-row":customElements.get(t(o))||L();break;case"lido-shape":customElements.get(t(o))||v();break;case"lido-slide-fill":customElements.get(t(o))||B();break;case"lido-text":customElements.get(t(o))||i();break;case"lido-trace":customElements.get(t(o))||U();break;case"lido-wrap":customElements.get(t(o))||D()}}))}y();const C=w,R=y;export{C as LidoRoot,R as defineCustomElement}
1
+ import{t,p as o,H as s,getAssetPath as e,h as a}from"./index.js";import{d as i,i as l}from"./p-CBg54ApH.js";import{d as r}from"./p-BOHNyYPi.js";import{d as n}from"./p-1PmJa9_u.js";import{d as m}from"./p-v5QPz3yz.js";import{d}from"./p-D5OuulAW.js";import{d as c}from"./p-DFnbzZUc.js";import{d as p}from"./p-B97yn0-n.js";import{d as u}from"./p-BRBNRF2F.js";import{d as h}from"./p-CfdL3fZ9.js";import{d as f}from"./p-BLx2hZ8d.js";import{d as b}from"./p-DuWrKD5Z.js";import{d as E}from"./p-BOTEFjDY.js";import{d as k}from"./p-DVoNbO_j.js";import{d as x}from"./p-jt8Ishvd.js";import{d as j}from"./p-Czy5pBTg.js";import{d as g}from"./p-D4JZI_JB.js";import{d as L}from"./p-CusU-d3G.js";import{d as v}from"./p-DqskvXvD.js";import{d as B}from"./p-Dr5sh_El.js";import{d as D}from"./p-JtdpRTRi.js";import{d as U}from"./p-De6WHLEQ.js";const y=o(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.Lang="",this.xmlPath="",this.initialIndex=0,this.margin="",this.canplay=!0,this.baseUrl=""}connectedCallback(){this.setLanguage(this.Lang)}onLangChange(t){this.setLanguage(t)}setLanguage(t){l.changeLanguage(t||l.language)}async componentWillLoad(){var t,o;const s=null!==(t=this.xmlPath)&&void 0!==t?t:this.baseUrl+((null===(o=this.baseUrl)||void 0===o?void 0:o.endsWith("/"))?"index.xml":"/index.xml");console.log("🚀 ~ LidoRoot ~ componentWillLoad ~ this.baseUrl:",this.baseUrl),console.log("🚀 ~ LidoRoot ~ componentWillLoad ~ this.xmlPath:",this.xmlPath),console.log("🚀 ~ LidoRoot ~ componentWillLoad ~ xmlPath:",s);try{const t=s.startsWith("http")?s:e(s),o=await fetch(t);if(!o.ok)throw Error("Failed to fetch XML data: "+o.statusText);const a=await o.text();this.xmlData=a}catch(t){console.error("Error fetching XML data:",t),this.xmlData=null}}render(){return void 0===this.xmlData?a("div",null,"Loading..."):null===this.xmlData?a("div",null,"Error loading XML data. Please check the path or URL."):a("lido-home",{showNav:!0,activeContainerIndexes:[],initialIndex:this.initialIndex,canplay:this.canplay,xmlData:this.xmlData,baseUrl:this.baseUrl,exitButtonUrl:this.exitButtonUrl,prevButtonUrl:this.prevButtonUrl,nextButtonUrl:this.nextButtonUrl,speakerButtonUrl:this.speakerButtonUrl})}static get assetsDirs(){return["assets"]}static get watchers(){return{Lang:[{onLangChange:0}]}}},[0,"lido-root",{Lang:[1,"lang"],xmlPath:[1,"xml-path"],initialIndex:[2,"initial-index"],margin:[1],canplay:[4],baseUrl:[1,"base-url"],exitButtonUrl:[1,"exit-button-url"],prevButtonUrl:[1,"prev-button-url"],nextButtonUrl:[1,"next-button-url"],speakerButtonUrl:[1,"speaker-button-url"],xmlData:[32]},void 0,{Lang:[{onLangChange:0}]}]);function w(){"undefined"!=typeof customElements&&["lido-root","lido-avatar","lido-balance","lido-calculator","lido-canvas","lido-cell","lido-col","lido-container","lido-flash-card","lido-float","lido-home","lido-image","lido-keyboard","lido-math-matrix","lido-pos","lido-random","lido-row","lido-shape","lido-slide-fill","lido-text","lido-trace","lido-wrap"].forEach((o=>{switch(o){case"lido-root":customElements.get(t(o))||customElements.define(t(o),y);break;case"lido-avatar":customElements.get(t(o))||r();break;case"lido-balance":customElements.get(t(o))||n();break;case"lido-calculator":customElements.get(t(o))||m();break;case"lido-canvas":customElements.get(t(o))||d();break;case"lido-cell":customElements.get(t(o))||c();break;case"lido-col":customElements.get(t(o))||p();break;case"lido-container":customElements.get(t(o))||u();break;case"lido-flash-card":customElements.get(t(o))||h();break;case"lido-float":customElements.get(t(o))||f();break;case"lido-home":customElements.get(t(o))||b();break;case"lido-image":customElements.get(t(o))||E();break;case"lido-keyboard":customElements.get(t(o))||k();break;case"lido-math-matrix":customElements.get(t(o))||x();break;case"lido-pos":customElements.get(t(o))||j();break;case"lido-random":customElements.get(t(o))||g();break;case"lido-row":customElements.get(t(o))||L();break;case"lido-shape":customElements.get(t(o))||v();break;case"lido-slide-fill":customElements.get(t(o))||B();break;case"lido-text":customElements.get(t(o))||i();break;case"lido-trace":customElements.get(t(o))||D();break;case"lido-wrap":customElements.get(t(o))||U()}}))}w();const C=y,R=w;export{C as LidoRoot,R as defineCustomElement}
@@ -1 +1 @@
1
- import{L as o,d as p}from"./p-BkQGpxcR.js";const s=o,r=p;export{s as LidoText,r as defineCustomElement}
1
+ import{L as o,d as p}from"./p-CBg54ApH.js";const s=o,r=p;export{s as LidoText,r as defineCustomElement}