lido-player 0.0.2-beta-16-dev → 0.0.2-beta-17-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{decode-C08Ujimj.js → decode-DUZYNXIv.js} +1 -1
- package/dist/cjs/{index-BkBqiwe8.js → index-BEjUmVtH.js} +189 -53
- package/dist/cjs/{index-Dy19zuTX.js → index-DnqQXD5x.js} +53 -12
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/lido-avatar_22.cjs.entry.js +60 -54
- package/dist/cjs/lido-player.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/calculator/lido-calculator.js +3 -3
- package/dist/collection/components/mathMatrix/lido-math-matrix.js +12 -2
- package/dist/collection/components/scale/assets/Shadow.svg +9 -0
- package/dist/collection/components/scale/lido-balance.css +1 -1
- package/dist/collection/components/scale/lido-balance.js +13 -11
- package/dist/collection/components/text/lido-text.js +28 -2
- package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -0
- package/dist/collection/components/trace/lido-trace.js +25 -38
- package/dist/collection/css/index.css +7 -4
- package/dist/collection/stories/Templates/blender/blender.stories.js +9 -5
- package/dist/collection/utils/audioPlayer.js +31 -9
- package/dist/collection/utils/utils.js +20 -10
- package/dist/collection/utils/utilsHandlers/animationHandler.js +9 -2
- package/dist/collection/utils/utilsHandlers/clickHandler.js +8 -0
- package/dist/collection/utils/utilsHandlers/dragDropHandler.js +28 -8
- package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +12 -15
- package/dist/collection/utils/utilsHandlers/slideHandler.js +76 -17
- package/dist/components/index.js +1 -1
- package/dist/components/lido-balance.js +1 -1
- package/dist/components/lido-calculator.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-math-matrix.js +1 -1
- package/dist/components/lido-root.js +1 -1
- package/dist/components/lido-text.js +1 -1
- package/dist/components/lido-trace.js +1 -1
- package/dist/components/p-BNNX1Pew.js +12 -0
- package/dist/components/p-CTlwn9r7.js +1 -0
- package/dist/components/{p-C2p0KZh4.js → p-Cj-6tqzU.js} +1 -1
- package/dist/components/p-CjdDpXfk.js +1 -0
- package/dist/components/{p-Uluc7jQ7.js → p-D54c-ybm.js} +1 -1
- package/dist/components/p-DdQ1eqJr.js +1 -0
- package/dist/components/{p-D-IYWSAa.js → p-SPZTb5fI.js} +1 -1
- package/dist/components/p-yT7udDfd.js +1 -0
- package/dist/esm/{decode-CGJIPA4t.js → decode-BgBfbPZu.js} +1 -1
- package/dist/esm/{index-Dq-Z8Dx0.js → index-BeHFCsWf.js} +54 -13
- package/dist/esm/{index-C854B63S.js → index-D-29PaRa.js} +189 -53
- package/dist/esm/index.js +2 -2
- package/dist/esm/lido-avatar_22.entry.js +60 -54
- package/dist/esm/lido-player.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/lido-player/assets/Shadow.svg +9 -0
- package/dist/lido-player/assets/Tracing-hand.svg +8 -0
- package/dist/lido-player/index.esm.js +1 -1
- package/dist/lido-player/lido-player.css +1 -1
- package/dist/lido-player/lido-player.esm.js +1 -1
- package/dist/lido-player/p-856e1956.entry.js +12 -0
- package/dist/lido-player/{p-Bg5mBsd9.js → p-BA2X6O7O.js} +1 -1
- package/dist/lido-player/p-BeHFCsWf.js +3 -0
- package/dist/lido-player/p-TuBmCgtK.js +1 -0
- package/dist/types/components/scale/lido-balance.d.ts +2 -2
- package/dist/types/components/text/lido-text.d.ts +6 -1
- package/dist/types/components/trace/lido-trace.d.ts +1 -1
- package/dist/types/components.d.ts +21 -10
- package/dist/types/stencil-public-runtime.d.ts +12 -0
- package/dist/types/utils/audioPlayer.d.ts +2 -0
- package/dist/types/utils/utilsHandlers/slideHandler.d.ts +5 -0
- package/loader/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/p-C7U1h9gI.js +0 -1
- package/dist/components/p-CS6iRQJh.js +0 -1
- package/dist/components/p-DGvzMlyn.js +0 -12
- package/dist/components/p-DPAlnts-.js +0 -1
- package/dist/components/p-DYs8s-uh.js +0 -1
- package/dist/lido-player/p-C4OTDhbr.js +0 -1
- package/dist/lido-player/p-Dq-Z8Dx0.js +0 -2
- package/dist/lido-player/p-f0e333c6.entry.js +0 -12
|
@@ -2,10 +2,10 @@ const NAMESPACE = 'lido-player';
|
|
|
2
2
|
const BUILD = /* lido-player */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
|
|
3
3
|
|
|
4
4
|
const globalScripts = () => {};
|
|
5
|
-
const globalStyles = "@
|
|
5
|
+
const globalStyles = "@font-face{font-family:'Baloo Bhai 2';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/offline-assets/fonts/Baloo-Bhai-2/Baloo-Bhai-2-Variable.woff2') format('woff2')}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-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;left:0;top:0;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:width 25ms ease-out,\r\n height 25ms ease-out,\r\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height;contain:layout paint style}";
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Platform v4.
|
|
8
|
+
Stencil Client Platform v4.44.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
|
|
@@ -93,7 +93,9 @@ var consoleError = (e, el) => (0, console.error)(e, el);
|
|
|
93
93
|
|
|
94
94
|
// src/client/client-load-module.ts
|
|
95
95
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
96
|
+
var failedLoadAttempts = /* @__PURE__ */ new Map();
|
|
96
97
|
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
98
|
+
var _a;
|
|
97
99
|
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
98
100
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
99
101
|
if (!bundleId) {
|
|
@@ -103,6 +105,11 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
103
105
|
if (module) {
|
|
104
106
|
return module[exportName];
|
|
105
107
|
}
|
|
108
|
+
const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;
|
|
109
|
+
const cacheBustParams = [
|
|
110
|
+
retryCount > 0 ? `s-retry=${retryCount}` : "",
|
|
111
|
+
""
|
|
112
|
+
].filter(Boolean).join("&");
|
|
106
113
|
|
|
107
114
|
if (!hmrVersionId || !BUILD.hotModuleReplacement) {
|
|
108
115
|
const processMod = importedModule => {
|
|
@@ -122,15 +129,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
122
129
|
/* webpackInclude: /\.entry\.js$/ */
|
|
123
130
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
124
131
|
/* webpackMode: "lazy" */
|
|
125
|
-
`./${bundleId}.entry.js${""}`
|
|
132
|
+
`./${bundleId}.entry.js${cacheBustParams ? "?" + cacheBustParams : ""}`
|
|
126
133
|
).then(
|
|
127
134
|
(importedModule) => {
|
|
128
135
|
{
|
|
136
|
+
failedLoadAttempts.delete(bundleId);
|
|
129
137
|
cmpModules.set(bundleId, importedModule);
|
|
130
138
|
}
|
|
131
139
|
return importedModule[exportName];
|
|
132
140
|
},
|
|
133
141
|
(e) => {
|
|
142
|
+
failedLoadAttempts.set(bundleId, retryCount + 1);
|
|
134
143
|
consoleError(e, hostRef.$hostElement$);
|
|
135
144
|
}
|
|
136
145
|
);
|
|
@@ -141,6 +150,8 @@ var styles = /* @__PURE__ */ new Map();
|
|
|
141
150
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
142
151
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
143
152
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
153
|
+
var MAX_LAZY_LOAD_RETRIES = 3;
|
|
154
|
+
var LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;
|
|
144
155
|
var win = typeof window !== "undefined" ? window : {};
|
|
145
156
|
var plt = {
|
|
146
157
|
$flags$: 0,
|
|
@@ -167,6 +178,10 @@ var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @_
|
|
|
167
178
|
var queuePending = false;
|
|
168
179
|
var queueDomReads = [];
|
|
169
180
|
var queueDomWrites = [];
|
|
181
|
+
var scheduleFlush = () => {
|
|
182
|
+
var _a;
|
|
183
|
+
return ((_a = win.document) == null ? void 0 : _a.hidden) ? nextTick(flush) : plt.raf(flush);
|
|
184
|
+
};
|
|
170
185
|
var queueTask = (queue, write) => (cb) => {
|
|
171
186
|
queue.push(cb);
|
|
172
187
|
if (!queuePending) {
|
|
@@ -174,7 +189,7 @@ var queueTask = (queue, write) => (cb) => {
|
|
|
174
189
|
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
175
190
|
nextTick(flush);
|
|
176
191
|
} else {
|
|
177
|
-
|
|
192
|
+
scheduleFlush();
|
|
178
193
|
}
|
|
179
194
|
}
|
|
180
195
|
};
|
|
@@ -193,7 +208,7 @@ var flush = () => {
|
|
|
193
208
|
{
|
|
194
209
|
consume(queueDomWrites);
|
|
195
210
|
if (queuePending = queueDomReads.length > 0) {
|
|
196
|
-
|
|
211
|
+
scheduleFlush();
|
|
197
212
|
}
|
|
198
213
|
}
|
|
199
214
|
};
|
|
@@ -274,7 +289,7 @@ function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
|
274
289
|
slottedNodes.push(childNode);
|
|
275
290
|
if (typeof slotName !== "undefined") return slottedNodes;
|
|
276
291
|
}
|
|
277
|
-
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode
|
|
292
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, "childNodes"), hostName, slotName)];
|
|
278
293
|
}
|
|
279
294
|
return slottedNodes;
|
|
280
295
|
}
|
|
@@ -518,6 +533,11 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
518
533
|
} else if (child != null && typeof child !== "boolean") {
|
|
519
534
|
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
520
535
|
child = String(child);
|
|
536
|
+
} else if (typeof nodeName !== "function" && child.$flags$ === void 0) {
|
|
537
|
+
{
|
|
538
|
+
consoleError("Invalid vNode child");
|
|
539
|
+
}
|
|
540
|
+
continue;
|
|
521
541
|
}
|
|
522
542
|
if (simple && lastSimple) {
|
|
523
543
|
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
@@ -762,7 +782,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
762
782
|
}
|
|
763
783
|
}
|
|
764
784
|
if (newValue == null || newValue === false) {
|
|
765
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
785
|
+
if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
|
|
766
786
|
if (xlink) {
|
|
767
787
|
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
768
788
|
} else {
|
|
@@ -779,6 +799,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
779
799
|
}
|
|
780
800
|
}
|
|
781
801
|
};
|
|
802
|
+
var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
|
|
803
|
+
var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
|
|
782
804
|
var parseClassListRegex = /\s/;
|
|
783
805
|
var parseClassList = (value) => {
|
|
784
806
|
if (typeof value === "object" && value && "baseVal" in value) {
|
|
@@ -1146,7 +1168,10 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
1146
1168
|
const slotName = childNode["s-sn"];
|
|
1147
1169
|
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1148
1170
|
node = hostContentNodes[j];
|
|
1149
|
-
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] &&
|
|
1171
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && // let an exact named-slot match override a stale default-slot claim. Skip this for
|
|
1172
|
+
// `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which
|
|
1173
|
+
// would trivially "match" on every re-render and force pointless re-insertion.
|
|
1174
|
+
(!node["s-sh"] || node["s-sh"] !== childNode["s-hn"] || slotName !== "" && getSlotName(node) === slotName)) {
|
|
1150
1175
|
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1151
1176
|
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1152
1177
|
checkSlotFallbackVisibility = true;
|
|
@@ -1214,7 +1239,7 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
1214
1239
|
return newNode;
|
|
1215
1240
|
}
|
|
1216
1241
|
}
|
|
1217
|
-
if (parent.__insertBefore) {
|
|
1242
|
+
if ((parent == null ? void 0 : parent.__insertBefore)) {
|
|
1218
1243
|
return parent.__insertBefore(newNode, reference);
|
|
1219
1244
|
} else {
|
|
1220
1245
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
@@ -1581,6 +1606,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1581
1606
|
};
|
|
1582
1607
|
|
|
1583
1608
|
// src/runtime/proxy-component.ts
|
|
1609
|
+
var reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? "" : String(propValue);
|
|
1584
1610
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1585
1611
|
var _a, _b;
|
|
1586
1612
|
const prototype = Cstr.prototype;
|
|
@@ -1713,7 +1739,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1713
1739
|
return;
|
|
1714
1740
|
}
|
|
1715
1741
|
const propFlags = members.find(([m]) => m === propName);
|
|
1716
|
-
const
|
|
1742
|
+
const propMemberFlags = propFlags ? propFlags[1][0] : 0;
|
|
1743
|
+
const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
|
|
1744
|
+
if (propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds
|
|
1745
|
+
// one is always external
|
|
1746
|
+
!isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {
|
|
1747
|
+
return;
|
|
1748
|
+
}
|
|
1717
1749
|
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1718
1750
|
if (isBooleanTarget) {
|
|
1719
1751
|
newValue = newValue === null || newValue === "false" ? false : true;
|
|
@@ -1745,10 +1777,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1745
1777
|
|
|
1746
1778
|
// src/runtime/initialize-component.ts
|
|
1747
1779
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1780
|
+
var _a;
|
|
1748
1781
|
let Cstr;
|
|
1749
1782
|
try {
|
|
1750
1783
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1751
1784
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1785
|
+
hostRef.$flags$ &= -1025 /* hasFailedLoad */;
|
|
1752
1786
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1753
1787
|
if (bundleId) {
|
|
1754
1788
|
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
@@ -1760,6 +1794,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1760
1794
|
Cstr = CstrImport;
|
|
1761
1795
|
}
|
|
1762
1796
|
if (!Cstr) {
|
|
1797
|
+
hostRef.$flags$ &= -33 /* hasInitializedComponent */;
|
|
1798
|
+
hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;
|
|
1799
|
+
if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {
|
|
1800
|
+
hostRef.$flags$ |= 1024 /* hasFailedLoad */;
|
|
1801
|
+
}
|
|
1763
1802
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1764
1803
|
}
|
|
1765
1804
|
if (!Cstr.isProxied) {
|
|
@@ -1824,7 +1863,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1824
1863
|
hostRef.$onRenderResolve$();
|
|
1825
1864
|
hostRef.$onRenderResolve$ = void 0;
|
|
1826
1865
|
}
|
|
1827
|
-
if (hostRef.$onReadyResolve$) {
|
|
1866
|
+
if (hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {
|
|
1828
1867
|
hostRef.$onReadyResolve$(elm);
|
|
1829
1868
|
}
|
|
1830
1869
|
}
|
|
@@ -1876,6 +1915,8 @@ var connectedCallback = (elm) => {
|
|
|
1876
1915
|
} else {
|
|
1877
1916
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1878
1917
|
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1918
|
+
} else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {
|
|
1919
|
+
setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);
|
|
1879
1920
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1880
1921
|
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1881
1922
|
}
|
|
@@ -2002,7 +2043,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2002
2043
|
}
|
|
2003
2044
|
disconnectedCallback() {
|
|
2004
2045
|
plt.jmp(() => disconnectedCallback(this));
|
|
2005
|
-
|
|
2046
|
+
nextTick(() => {
|
|
2006
2047
|
var _a3;
|
|
2007
2048
|
const hostRef = getHostRef(this);
|
|
2008
2049
|
if (!hostRef) {
|
|
@@ -2065,4 +2106,4 @@ function transformTag(tag) {
|
|
|
2065
2106
|
return tag;
|
|
2066
2107
|
}
|
|
2067
2108
|
|
|
2068
|
-
export { Host as H, getElement as a, bootstrapLazy as b,
|
|
2109
|
+
export { Host as H, getElement as a, bootstrapLazy as b, getAssetPath as c, createEvent as d, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|