@everymatrix/player-sms-verification 1.55.0 → 1.56.0
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-1ab65bbf.js → index-2de7dcf7.js} +174 -68
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/player-sms-verification.cjs.entry.js +102 -39
- package/dist/cjs/player-sms-verification.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/player-sms-verification/player-sms-verification.js +76 -38
- package/dist/esm/{index-2261775b.js → index-3ab66176.js} +174 -68
- package/dist/esm/loader.js +3 -3
- package/dist/esm/player-sms-verification.entry.js +102 -39
- package/dist/esm/player-sms-verification.js +4 -4
- package/dist/player-sms-verification/{p-9cdfa3fa.entry.js → p-8b381f95.entry.js} +1 -1
- package/dist/player-sms-verification/p-e4128523.js +2 -0
- package/dist/player-sms-verification/player-sms-verification.esm.js +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/player-sms-verification/player-sms-verification.d.ts +5 -3
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/player-sms-verification/p-3e6eb9ea.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
const NAMESPACE = 'player-sms-verification';
|
|
2
|
-
const BUILD = /* player-sms-verification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback:
|
|
2
|
+
const BUILD = /* player-sms-verification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// src/client/client-host-ref.ts
|
|
12
14
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
15
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
16
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
17
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
+
};
|
|
15
19
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
20
|
const hostRef = {
|
|
17
21
|
$flags$: 0,
|
|
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
28
|
hostElement["s-p"] = [];
|
|
25
29
|
hostElement["s-rc"] = [];
|
|
26
30
|
}
|
|
27
|
-
|
|
31
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
32
|
+
return ref;
|
|
28
33
|
};
|
|
29
34
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
35
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
66
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
67
|
/* webpackMode: "lazy" */
|
|
63
68
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
69
|
+
).then(
|
|
70
|
+
(importedModule) => {
|
|
71
|
+
{
|
|
72
|
+
cmpModules.set(bundleId, importedModule);
|
|
73
|
+
}
|
|
74
|
+
return importedModule[exportName];
|
|
75
|
+
},
|
|
76
|
+
(e) => {
|
|
77
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
78
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
79
|
+
);
|
|
70
80
|
};
|
|
71
81
|
|
|
72
82
|
// src/client/client-style.ts
|
|
73
83
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
85
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
86
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
87
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -128,12 +139,6 @@ var flush = () => {
|
|
|
128
139
|
};
|
|
129
140
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
130
141
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
-
|
|
132
|
-
// src/utils/constants.ts
|
|
133
|
-
var EMPTY_OBJ = {};
|
|
134
|
-
|
|
135
|
-
// src/utils/helpers.ts
|
|
136
|
-
var isDef = (v) => v != null;
|
|
137
142
|
var isComplexType = (o) => {
|
|
138
143
|
o = typeof o;
|
|
139
144
|
return o === "object" || o === "function";
|
|
@@ -315,7 +320,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
315
320
|
}
|
|
316
321
|
if (!appliedStyles.has(scopeId2)) {
|
|
317
322
|
{
|
|
318
|
-
styleElm = doc.createElement("style");
|
|
323
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
319
324
|
styleElm.innerHTML = style;
|
|
320
325
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
321
326
|
if (nonce != null) {
|
|
@@ -325,7 +330,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
325
330
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
326
331
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
327
332
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
328
|
-
styleContainerNode.insertBefore(
|
|
333
|
+
styleContainerNode.insertBefore(
|
|
334
|
+
styleElm,
|
|
335
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
336
|
+
);
|
|
329
337
|
} else if ("host" in styleContainerNode) {
|
|
330
338
|
if (supportsConstructableStylesheets) {
|
|
331
339
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -343,7 +351,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
343
351
|
styleContainerNode.append(styleElm);
|
|
344
352
|
}
|
|
345
353
|
}
|
|
346
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
354
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
347
355
|
styleContainerNode.insertBefore(styleElm, null);
|
|
348
356
|
}
|
|
349
357
|
}
|
|
@@ -368,23 +376,25 @@ var attachStyles = (hostRef) => {
|
|
|
368
376
|
const scopeId2 = addStyle(
|
|
369
377
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
370
378
|
cmpMeta);
|
|
371
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
379
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
372
380
|
elm["s-sc"] = scopeId2;
|
|
373
381
|
elm.classList.add(scopeId2 + "-h");
|
|
374
382
|
}
|
|
375
383
|
endAttachStyles();
|
|
376
384
|
};
|
|
377
385
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
378
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
386
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
379
387
|
if (oldValue !== newValue) {
|
|
380
388
|
let isProp = isMemberInElement(elm, memberName);
|
|
381
389
|
let ln = memberName.toLowerCase();
|
|
382
390
|
if (memberName === "class") {
|
|
383
391
|
const classList = elm.classList;
|
|
384
392
|
const oldClasses = parseClassList(oldValue);
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
393
|
+
let newClasses = parseClassList(newValue);
|
|
394
|
+
{
|
|
395
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
396
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
397
|
+
}
|
|
388
398
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
389
399
|
if (newValue) {
|
|
390
400
|
newValue(elm);
|
|
@@ -422,7 +432,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
422
432
|
elm.setAttribute(memberName, n);
|
|
423
433
|
}
|
|
424
434
|
}
|
|
425
|
-
} else {
|
|
435
|
+
} else if (elm[memberName] !== newValue) {
|
|
426
436
|
elm[memberName] = newValue;
|
|
427
437
|
}
|
|
428
438
|
} catch (e) {
|
|
@@ -444,24 +454,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
444
454
|
}
|
|
445
455
|
};
|
|
446
456
|
var parseClassListRegex = /\s/;
|
|
447
|
-
var parseClassList = (value) =>
|
|
457
|
+
var parseClassList = (value) => {
|
|
458
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
459
|
+
value = value.baseVal;
|
|
460
|
+
}
|
|
461
|
+
if (!value || typeof value !== "string") {
|
|
462
|
+
return [];
|
|
463
|
+
}
|
|
464
|
+
return value.split(parseClassListRegex);
|
|
465
|
+
};
|
|
448
466
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
449
467
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
450
468
|
|
|
451
469
|
// src/runtime/vdom/update-element.ts
|
|
452
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
470
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
453
471
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
454
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
455
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
472
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
473
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
456
474
|
{
|
|
457
475
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
458
476
|
if (!(memberName in newVnodeAttrs)) {
|
|
459
|
-
setAccessor(
|
|
477
|
+
setAccessor(
|
|
478
|
+
elm,
|
|
479
|
+
memberName,
|
|
480
|
+
oldVnodeAttrs[memberName],
|
|
481
|
+
void 0,
|
|
482
|
+
isSvgMode2,
|
|
483
|
+
newVnode.$flags$);
|
|
460
484
|
}
|
|
461
485
|
}
|
|
462
486
|
}
|
|
463
487
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
464
|
-
setAccessor(
|
|
488
|
+
setAccessor(
|
|
489
|
+
elm,
|
|
490
|
+
memberName,
|
|
491
|
+
oldVnodeAttrs[memberName],
|
|
492
|
+
newVnodeAttrs[memberName],
|
|
493
|
+
isSvgMode2,
|
|
494
|
+
newVnode.$flags$);
|
|
465
495
|
}
|
|
466
496
|
};
|
|
467
497
|
function sortedAttrNames(attrNames) {
|
|
@@ -473,13 +503,10 @@ function sortedAttrNames(attrNames) {
|
|
|
473
503
|
attrNames
|
|
474
504
|
);
|
|
475
505
|
}
|
|
476
|
-
|
|
477
|
-
// src/runtime/vdom/vdom-render.ts
|
|
478
|
-
var scopeId;
|
|
479
506
|
var hostTagName;
|
|
480
507
|
var useNativeShadowDom = false;
|
|
481
508
|
var isSvgMode = false;
|
|
482
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
509
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
483
510
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
484
511
|
let i2 = 0;
|
|
485
512
|
let elm;
|
|
@@ -493,11 +520,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
493
520
|
{
|
|
494
521
|
updateElement(null, newVNode2, isSvgMode);
|
|
495
522
|
}
|
|
496
|
-
const rootNode = elm.getRootNode();
|
|
497
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
498
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
499
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
500
|
-
}
|
|
501
523
|
if (newVNode2.$children$) {
|
|
502
524
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
503
525
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -627,6 +649,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
627
649
|
if (!isInitialRender) {
|
|
628
650
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
629
651
|
}
|
|
652
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
653
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
654
|
+
}
|
|
630
655
|
return true;
|
|
631
656
|
}
|
|
632
657
|
return false;
|
|
@@ -666,8 +691,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
666
691
|
}
|
|
667
692
|
};
|
|
668
693
|
var insertBefore = (parent, newNode, reference) => {
|
|
669
|
-
|
|
670
|
-
|
|
694
|
+
{
|
|
695
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
696
|
+
}
|
|
671
697
|
};
|
|
672
698
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
673
699
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -692,17 +718,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
692
718
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
693
719
|
hostRef.$vnode$ = rootVnode;
|
|
694
720
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
695
|
-
|
|
696
|
-
scopeId = hostElm["s-sc"];
|
|
697
|
-
}
|
|
698
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
721
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
699
722
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
700
723
|
};
|
|
701
724
|
|
|
702
725
|
// src/runtime/update-component.ts
|
|
703
726
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
704
727
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
705
|
-
ancestorComponent["s-p"].push(
|
|
728
|
+
const index = ancestorComponent["s-p"].push(
|
|
729
|
+
new Promise(
|
|
730
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
731
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
732
|
+
r();
|
|
733
|
+
}
|
|
734
|
+
)
|
|
735
|
+
);
|
|
706
736
|
}
|
|
707
737
|
};
|
|
708
738
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -729,7 +759,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
729
759
|
let maybePromise;
|
|
730
760
|
if (isInitialLoad) {
|
|
731
761
|
{
|
|
732
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
762
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
733
763
|
}
|
|
734
764
|
}
|
|
735
765
|
endSchedule();
|
|
@@ -803,7 +833,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
803
833
|
addHydratedFlag(elm);
|
|
804
834
|
}
|
|
805
835
|
{
|
|
806
|
-
safeCall(instance, "componentDidLoad");
|
|
836
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
807
837
|
}
|
|
808
838
|
endPostUpdate();
|
|
809
839
|
{
|
|
@@ -827,17 +857,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
827
857
|
}
|
|
828
858
|
};
|
|
829
859
|
var appDidLoad = (who) => {
|
|
830
|
-
{
|
|
831
|
-
addHydratedFlag(doc.documentElement);
|
|
832
|
-
}
|
|
833
860
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
834
861
|
};
|
|
835
|
-
var safeCall = (instance, method, arg) => {
|
|
862
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
836
863
|
if (instance && instance[method]) {
|
|
837
864
|
try {
|
|
838
865
|
return instance[method](arg);
|
|
839
866
|
} catch (e) {
|
|
840
|
-
consoleError(e);
|
|
867
|
+
consoleError(e, elm);
|
|
841
868
|
}
|
|
842
869
|
}
|
|
843
870
|
return void 0;
|
|
@@ -896,15 +923,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
896
923
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
897
924
|
members.map(([memberName, [memberFlags]]) => {
|
|
898
925
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
926
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
927
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
928
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
929
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
930
|
+
Object.defineProperty(prototype, memberName, {
|
|
931
|
+
get() {
|
|
932
|
+
{
|
|
933
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
934
|
+
return getValue(this, memberName);
|
|
935
|
+
}
|
|
936
|
+
const ref = getHostRef(this);
|
|
937
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
938
|
+
if (!instance) return;
|
|
939
|
+
return instance[memberName];
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
configurable: true,
|
|
943
|
+
enumerable: true
|
|
944
|
+
});
|
|
945
|
+
}
|
|
899
946
|
Object.defineProperty(prototype, memberName, {
|
|
900
|
-
get() {
|
|
901
|
-
return getValue(this, memberName);
|
|
902
|
-
},
|
|
903
947
|
set(newValue) {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
948
|
+
const ref = getHostRef(this);
|
|
949
|
+
if (origSetter) {
|
|
950
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
951
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
952
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
953
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
954
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
955
|
+
}
|
|
956
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
957
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
958
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
959
|
+
return;
|
|
960
|
+
}
|
|
961
|
+
{
|
|
962
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
963
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
964
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
965
|
+
ref.$onReadyPromise$.then(() => {
|
|
966
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
967
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
return;
|
|
972
|
+
}
|
|
973
|
+
const setterSetVal = () => {
|
|
974
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
975
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
976
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
977
|
+
}
|
|
978
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
979
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
980
|
+
};
|
|
981
|
+
if (ref.$lazyInstance$) {
|
|
982
|
+
setterSetVal();
|
|
983
|
+
} else {
|
|
984
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
908
988
|
});
|
|
909
989
|
}
|
|
910
990
|
});
|
|
@@ -914,7 +994,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
914
994
|
plt.jmp(() => {
|
|
915
995
|
var _a2;
|
|
916
996
|
const propName = attrNameToPropName.get(attrName);
|
|
917
|
-
if (this.hasOwnProperty(propName)) {
|
|
997
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
918
998
|
newValue = this[propName];
|
|
919
999
|
delete this[propName];
|
|
920
1000
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -934,7 +1014,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
934
1014
|
}
|
|
935
1015
|
return;
|
|
936
1016
|
}
|
|
937
|
-
|
|
1017
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1018
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1019
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1020
|
+
this[propName] = newValue;
|
|
1021
|
+
}
|
|
938
1022
|
});
|
|
939
1023
|
};
|
|
940
1024
|
Cstr.observedAttributes = Array.from(
|
|
@@ -963,7 +1047,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
963
1047
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
964
1048
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
965
1049
|
if (bundleId) {
|
|
966
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1050
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
967
1051
|
if (CstrImport && "then" in CstrImport) {
|
|
968
1052
|
const endLoad = uniqueTime();
|
|
969
1053
|
Cstr = await CstrImport;
|
|
@@ -988,7 +1072,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
988
1072
|
try {
|
|
989
1073
|
new Cstr(hostRef);
|
|
990
1074
|
} catch (e) {
|
|
991
|
-
consoleError(e);
|
|
1075
|
+
consoleError(e, elm);
|
|
992
1076
|
}
|
|
993
1077
|
{
|
|
994
1078
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1023,7 +1107,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1023
1107
|
schedule();
|
|
1024
1108
|
}
|
|
1025
1109
|
};
|
|
1026
|
-
var fireConnectedCallback = (instance) => {
|
|
1110
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1027
1111
|
};
|
|
1028
1112
|
|
|
1029
1113
|
// src/runtime/connected-callback.ts
|
|
@@ -1063,15 +1147,26 @@ var connectedCallback = (elm) => {
|
|
|
1063
1147
|
endConnected();
|
|
1064
1148
|
}
|
|
1065
1149
|
};
|
|
1066
|
-
var disconnectInstance = (instance) => {
|
|
1150
|
+
var disconnectInstance = (instance, elm) => {
|
|
1151
|
+
{
|
|
1152
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1153
|
+
}
|
|
1067
1154
|
};
|
|
1068
1155
|
var disconnectedCallback = async (elm) => {
|
|
1069
1156
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1070
1157
|
const hostRef = getHostRef(elm);
|
|
1071
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1072
|
-
hostRef.$
|
|
1158
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1159
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1160
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1161
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1073
1162
|
}
|
|
1074
1163
|
}
|
|
1164
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1165
|
+
rootAppliedStyles.delete(elm);
|
|
1166
|
+
}
|
|
1167
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1168
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1169
|
+
}
|
|
1075
1170
|
};
|
|
1076
1171
|
|
|
1077
1172
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1152,6 +1247,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1152
1247
|
}
|
|
1153
1248
|
disconnectedCallback() {
|
|
1154
1249
|
plt.jmp(() => disconnectedCallback(this));
|
|
1250
|
+
plt.raf(() => {
|
|
1251
|
+
var _a3;
|
|
1252
|
+
const hostRef = getHostRef(this);
|
|
1253
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1254
|
+
if (i2 > -1) {
|
|
1255
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1256
|
+
}
|
|
1257
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1258
|
+
delete hostRef.$vnode$.$elm$;
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1155
1261
|
}
|
|
1156
1262
|
componentOnReady() {
|
|
1157
1263
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-3ab66176.js';
|
|
2
|
+
export { s as setNonce } from './index-3ab66176.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["player-sms-verification",[[1,"player-sms-verification",{"endpoint":[513],"userId":[513,"user-id"],"lang":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"tempBtnResendCount":[32],"code":[32],"errMsg":[32],"msgEnterCode":[32]},null,{"clientStyling":["
|
|
8
|
+
return bootstrapLazy([["player-sms-verification",[[1,"player-sms-verification",{"endpoint":[513],"userId":[513,"user-id"],"lang":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[513,"translation-url"],"tempBtnResendCount":[32],"code":[32],"errMsg":[32],"msgEnterCode":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|