lido-player 0.0.2-alpha-74 → 0.0.2-alpha-75
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-BNAtcxNG.js → index-BrME-8br.js} +1 -1
- package/dist/cjs/{index-BcKX8GV7.js → index-DeCNGGv1.js} +14 -17
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +20 -17
- package/dist/cjs/lido-player.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/utils/utils.js +1 -2
- package/dist/collection/utils/utilsHandlers/clickHandler.js +1 -2
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +3 -4
- package/dist/collection/utils/utilsHandlers/slideHandler.js +1 -2
- package/dist/collection/utils/utilsHandlers/sortHandler.js +6 -4
- package/dist/components/index.js +1 -1
- package/dist/components/lido-avatar.js +1 -1
- package/dist/components/lido-calculator.js +1 -1
- package/dist/components/lido-canvas.js +1 -1
- package/dist/components/lido-container.js +1 -1
- package/dist/components/lido-home.js +1 -1
- package/dist/components/lido-keyboard.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/{p-DSsslp38.js → p-BG6u4Q7r.js} +1 -1
- package/dist/components/{p-BEteaaKf.js → p-CRF2oUXd.js} +1 -1
- package/dist/components/p-Cucc6ihv.js +1 -0
- package/dist/components/{p-dOiNR1s-.js → p-DMdTR2aP.js} +1 -1
- package/dist/components/{p-vBXlSGWi.js → p-DV0uOy6-.js} +1 -1
- package/dist/components/{p-DwMDPYdp.js → p-pXq128eR.js} +1 -1
- package/dist/components/{p-D3gyPMJP.js → p-xluptNe4.js} +1 -1
- package/dist/esm/{index-Dr6Jw5p1.js → index-DoO-CWOR.js} +1 -1
- package/dist/esm/{index-DOv-IceV.js → index-sENBGO-5.js} +14 -17
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +20 -17
- package/dist/esm/lido-player.js +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-DrASbtDm.js +1 -0
- package/dist/lido-player/p-ae318367.entry.js +1 -0
- package/package.json +1 -1
- package/dist/components/p-o7zhsGY5.js +0 -1
- package/dist/lido-player/p-24cfd3d1.entry.js +0 -1
- package/dist/lido-player/p-3Ez9RNAg.js +0 -1
- /package/dist/lido-player/{p-Dr6Jw5p1.js → p-DoO-CWOR.js} +0 -0
|
@@ -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.
|
|
28
|
+
Stencil Client Platform v4.43.0 | MIT Licensed | https://stenciljs.com
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$1 = require('./index-
|
|
3
|
+
var index$1 = require('./index-BrME-8br.js');
|
|
4
4
|
|
|
5
5
|
const DragMapKey = 'lidoDragMap';
|
|
6
6
|
const SelectedValuesKey = 'lidoSelectedValues';
|
|
@@ -392,8 +392,7 @@ function enableDraggingWithScaling(element) {
|
|
|
392
392
|
console.error(`Container with ID "container" not found.`);
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
|
-
if
|
|
396
|
-
return;
|
|
395
|
+
// if(container.getAttribute("canplay") === "false")return;
|
|
397
396
|
handlingElementFlexibleWidth(element, 'drag');
|
|
398
397
|
const onStart = (event) => {
|
|
399
398
|
var _a, _b;
|
|
@@ -1063,9 +1062,9 @@ function handleDropElement(element) {
|
|
|
1063
1062
|
updateDropBorder(element);
|
|
1064
1063
|
}
|
|
1065
1064
|
async function onClickDropOrDragElement(element, type) {
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1065
|
+
AudioPlayer.getI().stop();
|
|
1066
|
+
document.getElementById(LidoContainer);
|
|
1067
|
+
// if(container.getAttribute('canplay') === 'false') return;
|
|
1069
1068
|
// Remove the highlight class from elements matching the selector
|
|
1070
1069
|
const highlightedElements = document.querySelectorAll(`[type='${type}']`);
|
|
1071
1070
|
highlightedElements.forEach(el => {
|
|
@@ -1698,8 +1697,9 @@ function enableReorderDrag(element) {
|
|
|
1698
1697
|
let startX = 0;
|
|
1699
1698
|
let startY = 0;
|
|
1700
1699
|
const container = document.getElementById(LidoContainer);
|
|
1701
|
-
if (!container
|
|
1700
|
+
if (!container)
|
|
1702
1701
|
return;
|
|
1702
|
+
// if(!container || container.getAttribute("canplay") === "false") return;
|
|
1703
1703
|
Array.from(element.children).forEach(child => {
|
|
1704
1704
|
child.style.pointerEvents = 'none';
|
|
1705
1705
|
});
|
|
@@ -1885,8 +1885,7 @@ function enableReorderDrag(element) {
|
|
|
1885
1885
|
};
|
|
1886
1886
|
const onClickElement = (element) => {
|
|
1887
1887
|
const container = document.getElementById(LidoContainer);
|
|
1888
|
-
if
|
|
1889
|
-
return;
|
|
1888
|
+
// if(container.getAttribute('canplay') === 'false')return;
|
|
1890
1889
|
if (elementType === 'option') {
|
|
1891
1890
|
const categoryArr = container.querySelectorAll('[type="category"]');
|
|
1892
1891
|
let category = Array.from(categoryArr).find(el => el.parentElement.className.includes('highlight-element'));
|
|
@@ -1959,7 +1958,9 @@ function enableReorderDrag(element) {
|
|
|
1959
1958
|
};
|
|
1960
1959
|
element.style.cursor = 'move';
|
|
1961
1960
|
element.classList.add('drag-element');
|
|
1962
|
-
element.addEventListener('pointerdown', onStart);
|
|
1961
|
+
// element.addEventListener('pointerdown', onStart);
|
|
1962
|
+
element.addEventListener('mousedown', onStart);
|
|
1963
|
+
element.addEventListener('touchstart', onStart, { passive: false });
|
|
1963
1964
|
}
|
|
1964
1965
|
const resetElementStyles = (el) => {
|
|
1965
1966
|
el.style.opacity = '';
|
|
@@ -2159,9 +2160,7 @@ function slidingWithScaling(element) {
|
|
|
2159
2160
|
console.error(`Parent element not found.`);
|
|
2160
2161
|
return;
|
|
2161
2162
|
}
|
|
2162
|
-
|
|
2163
|
-
if (container.getAttribute('canplay') === 'false')
|
|
2164
|
-
return;
|
|
2163
|
+
document.getElementById(LidoContainer);
|
|
2165
2164
|
const onStart = (event) => {
|
|
2166
2165
|
removeHighlight(element);
|
|
2167
2166
|
isDragging = true;
|
|
@@ -3585,8 +3584,7 @@ function onTouchListenerForOnTouch(element) {
|
|
|
3585
3584
|
function addClickListenerForClickType(element) {
|
|
3586
3585
|
handlingElementFlexibleWidth(element, 'click');
|
|
3587
3586
|
const container = document.getElementById(LidoContainer);
|
|
3588
|
-
if
|
|
3589
|
-
return;
|
|
3587
|
+
// if(container.getAttribute('canplay') === 'false')return;
|
|
3590
3588
|
element.style.cursor = 'pointer';
|
|
3591
3589
|
if (!element) {
|
|
3592
3590
|
console.error('No element provided.');
|
|
@@ -72163,8 +72161,7 @@ const executeActions = async (actionsString, thisElement, element) => {
|
|
|
72163
72161
|
}
|
|
72164
72162
|
case 'nextBtn': {
|
|
72165
72163
|
const container = document.getElementById(LidoContainer);
|
|
72166
|
-
if
|
|
72167
|
-
return;
|
|
72164
|
+
// if(container.getAttribute('canplay') === 'false')return;
|
|
72168
72165
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
72169
72166
|
targetElement.style.pointerEvents = 'none';
|
|
72170
72167
|
AudioPlayer.getI().stop();
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-BrME-8br.js');
|
|
4
|
+
var index$1 = require('./index-DeCNGGv1.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 = {
|
|
750
|
+
var Za, $a, db = {491138:(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
|
-
},
|
|
813
|
+
}, 493316:() => {
|
|
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
|
-
},
|
|
817
|
+
}, 493620:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493724:() => {
|
|
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
|
-
},
|
|
825
|
+
}, 493895:(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
|
-
},
|
|
871
|
+
}, 496772:a => window.h.qa(a).L.sampleRate, 496845: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
|
-
},
|
|
879
|
+
}, 497245:a => {
|
|
880
880
|
window.h.Ab(a);
|
|
881
|
-
},
|
|
881
|
+
}, 497295:a => {
|
|
882
882
|
a = window.h.qa(a);
|
|
883
883
|
a.L.resume();
|
|
884
884
|
a.state = window.h.ga.wb;
|
|
885
|
-
},
|
|
885
|
+
}, 497434: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.
|
|
3393
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.35.0","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 */
|
|
@@ -5967,7 +5967,8 @@ function requireRive () {
|
|
|
5967
5967
|
var _a;
|
|
5968
5968
|
// Initialize audio if needed
|
|
5969
5969
|
if (audioManager.status == SystemAudioStatus.UNAVAILABLE) {
|
|
5970
|
-
if (
|
|
5970
|
+
if (this.file.hasAudio ||
|
|
5971
|
+
(((_a = this.artboard) === null || _a === void 0 ? void 0 : _a.hasAudio) && this._audioEventListener === null)) {
|
|
5971
5972
|
this._audioEventListener = {
|
|
5972
5973
|
type: EventType.AudioStatusChange,
|
|
5973
5974
|
callback: function () { return _this.onSystemAudioChanged(); },
|
|
@@ -10123,7 +10124,7 @@ class PluralResolver {
|
|
|
10123
10124
|
type
|
|
10124
10125
|
});
|
|
10125
10126
|
} catch (err) {
|
|
10126
|
-
if (
|
|
10127
|
+
if (typeof Intl === 'undefined') {
|
|
10127
10128
|
this.logger.error('No Intl support, please use an Intl polyfill!');
|
|
10128
10129
|
return dummyRule;
|
|
10129
10130
|
}
|
|
@@ -10304,13 +10305,13 @@ class Interpolator {
|
|
|
10304
10305
|
const handleHasOptions = (key, inheritedOptions) => {
|
|
10305
10306
|
const sep = this.nestingOptionsSeparator;
|
|
10306
10307
|
if (key.indexOf(sep) < 0) return key;
|
|
10307
|
-
const c = key.split(new RegExp(`${sep}[ ]*{`));
|
|
10308
|
+
const c = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));
|
|
10308
10309
|
let optionsString = `{${c[1]}`;
|
|
10309
10310
|
key = c[0];
|
|
10310
10311
|
optionsString = this.interpolate(optionsString, clonedOptions);
|
|
10311
10312
|
const matchedSingleQuotes = optionsString.match(/'/g);
|
|
10312
10313
|
const matchedDoubleQuotes = optionsString.match(/"/g);
|
|
10313
|
-
if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || matchedDoubleQuotes
|
|
10314
|
+
if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || (matchedDoubleQuotes?.length ?? 0) % 2 !== 0) {
|
|
10314
10315
|
optionsString = optionsString.replace(/'/g, '"');
|
|
10315
10316
|
}
|
|
10316
10317
|
try {
|
|
@@ -10792,6 +10793,7 @@ const bindMemberFunctions = inst => {
|
|
|
10792
10793
|
}
|
|
10793
10794
|
});
|
|
10794
10795
|
};
|
|
10796
|
+
let supportNoticeShown = false;
|
|
10795
10797
|
const usesLocize = inst => {
|
|
10796
10798
|
if (inst?.modules?.backend?.name?.indexOf('Locize') > 0) return true;
|
|
10797
10799
|
if (inst?.modules?.backend?.constructor?.name?.indexOf('Locize') > 0) return true;
|
|
@@ -10852,8 +10854,9 @@ class I18n extends EventEmitter {
|
|
|
10852
10854
|
if (typeof this.options.overloadTranslationOptionHandler !== 'function') {
|
|
10853
10855
|
this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
|
|
10854
10856
|
}
|
|
10855
|
-
if (this.options.showSupportNotice !== false && !usesLocize(this)) {
|
|
10856
|
-
if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is maintained with support from
|
|
10857
|
+
if (this.options.showSupportNotice !== false && !usesLocize(this) && !supportNoticeShown) {
|
|
10858
|
+
if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙');
|
|
10859
|
+
supportNoticeShown = true;
|
|
10857
10860
|
}
|
|
10858
10861
|
const createClassOnDemand = ClassOrObject => {
|
|
10859
10862
|
if (!ClassOrObject) return null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BrME-8br.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Patch Browser v4.
|
|
7
|
+
Stencil Client Patch Browser v4.43.0 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
var patchBrowser = () => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -185,8 +185,7 @@ export const executeActions = async (actionsString, thisElement, element) => {
|
|
|
185
185
|
}
|
|
186
186
|
case 'nextBtn': {
|
|
187
187
|
const container = document.getElementById(LidoContainer);
|
|
188
|
-
if
|
|
189
|
-
return;
|
|
188
|
+
// if(container.getAttribute('canplay') === 'false')return;
|
|
190
189
|
if (container.getAttribute('is-continue-on-correct') !== 'true') {
|
|
191
190
|
targetElement.style.pointerEvents = 'none';
|
|
192
191
|
AudioPlayer.getI().stop();
|
|
@@ -58,8 +58,7 @@ export function onTouchListenerForOnTouch(element) {
|
|
|
58
58
|
export function addClickListenerForClickType(element) {
|
|
59
59
|
handlingElementFlexibleWidth(element, 'click');
|
|
60
60
|
const container = document.getElementById(LidoContainer);
|
|
61
|
-
if
|
|
62
|
-
return;
|
|
61
|
+
// if(container.getAttribute('canplay') === 'false')return;
|
|
63
62
|
element.style.cursor = 'pointer';
|
|
64
63
|
if (!element) {
|
|
65
64
|
console.error('No element provided.');
|
|
@@ -65,8 +65,7 @@ export function enableDraggingWithScaling(element) {
|
|
|
65
65
|
console.error(`Container with ID "container" not found.`);
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
if
|
|
69
|
-
return;
|
|
68
|
+
// if(container.getAttribute("canplay") === "false")return;
|
|
70
69
|
handlingElementFlexibleWidth(element, 'drag');
|
|
71
70
|
let verticalDistance;
|
|
72
71
|
let horizontalDistance;
|
|
@@ -746,9 +745,9 @@ export function handleDropElement(element) {
|
|
|
746
745
|
updateDropBorder(element);
|
|
747
746
|
}
|
|
748
747
|
export async function onClickDropOrDragElement(element, type) {
|
|
748
|
+
AudioPlayer.getI().stop();
|
|
749
749
|
const container = document.getElementById(LidoContainer);
|
|
750
|
-
if
|
|
751
|
-
return;
|
|
750
|
+
// if(container.getAttribute('canplay') === 'false') return;
|
|
752
751
|
// Remove the highlight class from elements matching the selector
|
|
753
752
|
const highlightedElements = document.querySelectorAll(`[type='${type}']`);
|
|
754
753
|
highlightedElements.forEach(el => {
|
|
@@ -76,8 +76,7 @@ export function slidingWithScaling(element) {
|
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
const container = document.getElementById(LidoContainer);
|
|
79
|
-
if
|
|
80
|
-
return;
|
|
79
|
+
// if(container.getAttribute('canplay') === 'false')return;
|
|
81
80
|
let verticalDistance;
|
|
82
81
|
let horizontalDistance;
|
|
83
82
|
const onStart = (event) => {
|
|
@@ -41,8 +41,9 @@ export function enableReorderDrag(element) {
|
|
|
41
41
|
let startX = 0;
|
|
42
42
|
let startY = 0;
|
|
43
43
|
const container = document.getElementById(LidoContainer);
|
|
44
|
-
if (!container
|
|
44
|
+
if (!container)
|
|
45
45
|
return;
|
|
46
|
+
// if(!container || container.getAttribute("canplay") === "false") return;
|
|
46
47
|
Array.from(element.children).forEach(child => {
|
|
47
48
|
child.style.pointerEvents = 'none';
|
|
48
49
|
});
|
|
@@ -228,8 +229,7 @@ export function enableReorderDrag(element) {
|
|
|
228
229
|
};
|
|
229
230
|
const onClickElement = (element) => {
|
|
230
231
|
const container = document.getElementById(LidoContainer);
|
|
231
|
-
if
|
|
232
|
-
return;
|
|
232
|
+
// if(container.getAttribute('canplay') === 'false')return;
|
|
233
233
|
if (elementType === 'option') {
|
|
234
234
|
const categoryArr = container.querySelectorAll('[type="category"]');
|
|
235
235
|
let category = Array.from(categoryArr).find(el => el.parentElement.className.includes('highlight-element'));
|
|
@@ -302,7 +302,9 @@ export function enableReorderDrag(element) {
|
|
|
302
302
|
};
|
|
303
303
|
element.style.cursor = 'move';
|
|
304
304
|
element.classList.add('drag-element');
|
|
305
|
-
element.addEventListener('pointerdown', onStart);
|
|
305
|
+
// element.addEventListener('pointerdown', onStart);
|
|
306
|
+
element.addEventListener('mousedown', onStart);
|
|
307
|
+
element.addEventListener('touchstart', onStart, { passive: false });
|
|
306
308
|
}
|
|
307
309
|
const resetElementStyles = (el) => {
|
|
308
310
|
el.style.opacity = '';
|