@everymatrix/player-sms-verification 1.54.12 → 1.55.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-b3d161e5.js → index-1ab65bbf.js} +66 -167
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-sms-verification.cjs.entry.js +11 -20
- package/dist/cjs/player-sms-verification.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/player-sms-verification/player-sms-verification.js +10 -31
- package/dist/esm/{index-36c69749.js → index-2261775b.js} +66 -167
- package/dist/esm/loader.js +2 -2
- package/dist/esm/player-sms-verification.entry.js +11 -20
- package/dist/esm/player-sms-verification.js +3 -3
- package/dist/player-sms-verification/p-3e6eb9ea.js +2 -0
- package/dist/player-sms-verification/{p-a03171e7.entry.js → p-9cdfa3fa.entry.js} +1 -1
- package/dist/player-sms-verification/player-sms-verification.esm.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.d.ts +2 -0
- 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 +2 -0
- package/package.json +1 -1
- package/dist/player-sms-verification/p-30f94a36.js +0 -2
- 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 +0 -2
- 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 +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'player-sms-verification';
|
|
24
|
-
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: false, 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,
|
|
24
|
+
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: false, 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, 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 };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -161,6 +150,12 @@ var flush = () => {
|
|
|
161
150
|
};
|
|
162
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
163
152
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
+
|
|
154
|
+
// src/utils/constants.ts
|
|
155
|
+
var EMPTY_OBJ = {};
|
|
156
|
+
|
|
157
|
+
// src/utils/helpers.ts
|
|
158
|
+
var isDef = (v) => v != null;
|
|
164
159
|
var isComplexType = (o) => {
|
|
165
160
|
o = typeof o;
|
|
166
161
|
return o === "object" || o === "function";
|
|
@@ -342,7 +337,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
342
337
|
}
|
|
343
338
|
if (!appliedStyles.has(scopeId2)) {
|
|
344
339
|
{
|
|
345
|
-
styleElm =
|
|
340
|
+
styleElm = doc.createElement("style");
|
|
346
341
|
styleElm.innerHTML = style;
|
|
347
342
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
348
343
|
if (nonce != null) {
|
|
@@ -352,10 +347,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
352
347
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
353
348
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
354
349
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
355
|
-
styleContainerNode.insertBefore(
|
|
356
|
-
styleElm,
|
|
357
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
358
|
-
);
|
|
350
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
359
351
|
} else if ("host" in styleContainerNode) {
|
|
360
352
|
if (supportsConstructableStylesheets) {
|
|
361
353
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -373,7 +365,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
373
365
|
styleContainerNode.append(styleElm);
|
|
374
366
|
}
|
|
375
367
|
}
|
|
376
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
368
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
377
369
|
styleContainerNode.insertBefore(styleElm, null);
|
|
378
370
|
}
|
|
379
371
|
}
|
|
@@ -398,25 +390,23 @@ var attachStyles = (hostRef) => {
|
|
|
398
390
|
const scopeId2 = addStyle(
|
|
399
391
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
400
392
|
cmpMeta);
|
|
401
|
-
if (
|
|
393
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
402
394
|
elm["s-sc"] = scopeId2;
|
|
403
395
|
elm.classList.add(scopeId2 + "-h");
|
|
404
396
|
}
|
|
405
397
|
endAttachStyles();
|
|
406
398
|
};
|
|
407
399
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
408
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
400
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
409
401
|
if (oldValue !== newValue) {
|
|
410
402
|
let isProp = isMemberInElement(elm, memberName);
|
|
411
403
|
let ln = memberName.toLowerCase();
|
|
412
404
|
if (memberName === "class") {
|
|
413
405
|
const classList = elm.classList;
|
|
414
406
|
const oldClasses = parseClassList(oldValue);
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
419
|
-
}
|
|
407
|
+
const newClasses = parseClassList(newValue);
|
|
408
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
409
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
420
410
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
421
411
|
if (newValue) {
|
|
422
412
|
newValue(elm);
|
|
@@ -454,7 +444,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
454
444
|
elm.setAttribute(memberName, n);
|
|
455
445
|
}
|
|
456
446
|
}
|
|
457
|
-
} else
|
|
447
|
+
} else {
|
|
458
448
|
elm[memberName] = newValue;
|
|
459
449
|
}
|
|
460
450
|
} catch (e) {
|
|
@@ -476,44 +466,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
476
466
|
}
|
|
477
467
|
};
|
|
478
468
|
var parseClassListRegex = /\s/;
|
|
479
|
-
var parseClassList = (value) =>
|
|
480
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
481
|
-
value = value.baseVal;
|
|
482
|
-
}
|
|
483
|
-
if (!value || typeof value !== "string") {
|
|
484
|
-
return [];
|
|
485
|
-
}
|
|
486
|
-
return value.split(parseClassListRegex);
|
|
487
|
-
};
|
|
469
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
488
470
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
489
471
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
490
472
|
|
|
491
473
|
// src/runtime/vdom/update-element.ts
|
|
492
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
474
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
493
475
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
494
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
495
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
476
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
477
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
496
478
|
{
|
|
497
479
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
498
480
|
if (!(memberName in newVnodeAttrs)) {
|
|
499
|
-
setAccessor(
|
|
500
|
-
elm,
|
|
501
|
-
memberName,
|
|
502
|
-
oldVnodeAttrs[memberName],
|
|
503
|
-
void 0,
|
|
504
|
-
isSvgMode2,
|
|
505
|
-
newVnode.$flags$);
|
|
481
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
506
482
|
}
|
|
507
483
|
}
|
|
508
484
|
}
|
|
509
485
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
510
|
-
setAccessor(
|
|
511
|
-
elm,
|
|
512
|
-
memberName,
|
|
513
|
-
oldVnodeAttrs[memberName],
|
|
514
|
-
newVnodeAttrs[memberName],
|
|
515
|
-
isSvgMode2,
|
|
516
|
-
newVnode.$flags$);
|
|
486
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
517
487
|
}
|
|
518
488
|
};
|
|
519
489
|
function sortedAttrNames(attrNames) {
|
|
@@ -525,10 +495,13 @@ function sortedAttrNames(attrNames) {
|
|
|
525
495
|
attrNames
|
|
526
496
|
);
|
|
527
497
|
}
|
|
498
|
+
|
|
499
|
+
// src/runtime/vdom/vdom-render.ts
|
|
500
|
+
var scopeId;
|
|
528
501
|
var hostTagName;
|
|
529
502
|
var useNativeShadowDom = false;
|
|
530
503
|
var isSvgMode = false;
|
|
531
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
504
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
532
505
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
533
506
|
let i2 = 0;
|
|
534
507
|
let elm;
|
|
@@ -542,6 +515,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
542
515
|
{
|
|
543
516
|
updateElement(null, newVNode2, isSvgMode);
|
|
544
517
|
}
|
|
518
|
+
const rootNode = elm.getRootNode();
|
|
519
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
520
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
521
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
522
|
+
}
|
|
545
523
|
if (newVNode2.$children$) {
|
|
546
524
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
547
525
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -671,9 +649,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
671
649
|
if (!isInitialRender) {
|
|
672
650
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
673
651
|
}
|
|
674
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
675
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
676
|
-
}
|
|
677
652
|
return true;
|
|
678
653
|
}
|
|
679
654
|
return false;
|
|
@@ -713,9 +688,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
713
688
|
}
|
|
714
689
|
};
|
|
715
690
|
var insertBefore = (parent, newNode, reference) => {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
691
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
692
|
+
return inserted;
|
|
719
693
|
};
|
|
720
694
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
721
695
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -740,21 +714,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
740
714
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
741
715
|
hostRef.$vnode$ = rootVnode;
|
|
742
716
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
743
|
-
|
|
717
|
+
{
|
|
718
|
+
scopeId = hostElm["s-sc"];
|
|
719
|
+
}
|
|
720
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
744
721
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
745
722
|
};
|
|
746
723
|
|
|
747
724
|
// src/runtime/update-component.ts
|
|
748
725
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
749
726
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
750
|
-
|
|
751
|
-
new Promise(
|
|
752
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
753
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
754
|
-
r();
|
|
755
|
-
}
|
|
756
|
-
)
|
|
757
|
-
);
|
|
727
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
758
728
|
}
|
|
759
729
|
};
|
|
760
730
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -781,7 +751,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
781
751
|
let maybePromise;
|
|
782
752
|
if (isInitialLoad) {
|
|
783
753
|
{
|
|
784
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
754
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
785
755
|
}
|
|
786
756
|
}
|
|
787
757
|
endSchedule();
|
|
@@ -855,7 +825,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
855
825
|
addHydratedFlag(elm);
|
|
856
826
|
}
|
|
857
827
|
{
|
|
858
|
-
safeCall(instance, "componentDidLoad"
|
|
828
|
+
safeCall(instance, "componentDidLoad");
|
|
859
829
|
}
|
|
860
830
|
endPostUpdate();
|
|
861
831
|
{
|
|
@@ -879,14 +849,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
879
849
|
}
|
|
880
850
|
};
|
|
881
851
|
var appDidLoad = (who) => {
|
|
852
|
+
{
|
|
853
|
+
addHydratedFlag(doc.documentElement);
|
|
854
|
+
}
|
|
882
855
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
883
856
|
};
|
|
884
|
-
var safeCall = (instance, method, arg
|
|
857
|
+
var safeCall = (instance, method, arg) => {
|
|
885
858
|
if (instance && instance[method]) {
|
|
886
859
|
try {
|
|
887
860
|
return instance[method](arg);
|
|
888
861
|
} catch (e) {
|
|
889
|
-
consoleError(e
|
|
862
|
+
consoleError(e);
|
|
890
863
|
}
|
|
891
864
|
}
|
|
892
865
|
return void 0;
|
|
@@ -945,68 +918,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
945
918
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
946
919
|
members.map(([memberName, [memberFlags]]) => {
|
|
947
920
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
948
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
949
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
950
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
951
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
952
|
-
Object.defineProperty(prototype, memberName, {
|
|
953
|
-
get() {
|
|
954
|
-
{
|
|
955
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
956
|
-
return getValue(this, memberName);
|
|
957
|
-
}
|
|
958
|
-
const ref = getHostRef(this);
|
|
959
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
960
|
-
if (!instance) return;
|
|
961
|
-
return instance[memberName];
|
|
962
|
-
}
|
|
963
|
-
},
|
|
964
|
-
configurable: true,
|
|
965
|
-
enumerable: true
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
921
|
Object.defineProperty(prototype, memberName, {
|
|
922
|
+
get() {
|
|
923
|
+
return getValue(this, memberName);
|
|
924
|
+
},
|
|
969
925
|
set(newValue) {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
975
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
976
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
977
|
-
}
|
|
978
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
979
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
980
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
981
|
-
return;
|
|
982
|
-
}
|
|
983
|
-
{
|
|
984
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
985
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
986
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
987
|
-
ref.$onReadyPromise$.then(() => {
|
|
988
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
989
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
990
|
-
}
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
return;
|
|
994
|
-
}
|
|
995
|
-
const setterSetVal = () => {
|
|
996
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
997
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
998
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
999
|
-
}
|
|
1000
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1001
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1002
|
-
};
|
|
1003
|
-
if (ref.$lazyInstance$) {
|
|
1004
|
-
setterSetVal();
|
|
1005
|
-
} else {
|
|
1006
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
926
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
927
|
+
},
|
|
928
|
+
configurable: true,
|
|
929
|
+
enumerable: true
|
|
1010
930
|
});
|
|
1011
931
|
}
|
|
1012
932
|
});
|
|
@@ -1016,7 +936,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1016
936
|
plt.jmp(() => {
|
|
1017
937
|
var _a2;
|
|
1018
938
|
const propName = attrNameToPropName.get(attrName);
|
|
1019
|
-
if (this.hasOwnProperty(propName)
|
|
939
|
+
if (this.hasOwnProperty(propName)) {
|
|
1020
940
|
newValue = this[propName];
|
|
1021
941
|
delete this[propName];
|
|
1022
942
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1036,11 +956,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1036
956
|
}
|
|
1037
957
|
return;
|
|
1038
958
|
}
|
|
1039
|
-
|
|
1040
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1041
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1042
|
-
this[propName] = newValue;
|
|
1043
|
-
}
|
|
959
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1044
960
|
});
|
|
1045
961
|
};
|
|
1046
962
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1069,7 +985,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1069
985
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1070
986
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1071
987
|
if (bundleId) {
|
|
1072
|
-
const CstrImport = loadModule(cmpMeta
|
|
988
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1073
989
|
if (CstrImport && "then" in CstrImport) {
|
|
1074
990
|
const endLoad = uniqueTime();
|
|
1075
991
|
Cstr = await CstrImport;
|
|
@@ -1094,7 +1010,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1094
1010
|
try {
|
|
1095
1011
|
new Cstr(hostRef);
|
|
1096
1012
|
} catch (e) {
|
|
1097
|
-
consoleError(e
|
|
1013
|
+
consoleError(e);
|
|
1098
1014
|
}
|
|
1099
1015
|
{
|
|
1100
1016
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1129,7 +1045,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1129
1045
|
schedule();
|
|
1130
1046
|
}
|
|
1131
1047
|
};
|
|
1132
|
-
var fireConnectedCallback = (instance
|
|
1048
|
+
var fireConnectedCallback = (instance) => {
|
|
1133
1049
|
};
|
|
1134
1050
|
|
|
1135
1051
|
// src/runtime/connected-callback.ts
|
|
@@ -1169,7 +1085,7 @@ var connectedCallback = (elm) => {
|
|
|
1169
1085
|
endConnected();
|
|
1170
1086
|
}
|
|
1171
1087
|
};
|
|
1172
|
-
var disconnectInstance = (instance
|
|
1088
|
+
var disconnectInstance = (instance) => {
|
|
1173
1089
|
};
|
|
1174
1090
|
var disconnectedCallback = async (elm) => {
|
|
1175
1091
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1178,12 +1094,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1178
1094
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1179
1095
|
}
|
|
1180
1096
|
}
|
|
1181
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1182
|
-
rootAppliedStyles.delete(elm);
|
|
1183
|
-
}
|
|
1184
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1185
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1186
|
-
}
|
|
1187
1097
|
};
|
|
1188
1098
|
|
|
1189
1099
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1264,17 +1174,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1264
1174
|
}
|
|
1265
1175
|
disconnectedCallback() {
|
|
1266
1176
|
plt.jmp(() => disconnectedCallback(this));
|
|
1267
|
-
plt.raf(() => {
|
|
1268
|
-
var _a3;
|
|
1269
|
-
const hostRef = getHostRef(this);
|
|
1270
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1271
|
-
if (i2 > -1) {
|
|
1272
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1273
|
-
}
|
|
1274
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1275
|
-
delete hostRef.$vnode$.$elm$;
|
|
1276
|
-
}
|
|
1277
|
-
});
|
|
1278
1177
|
}
|
|
1279
1178
|
componentOnReady() {
|
|
1280
1179
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1ab65bbf.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1ab65bbf.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
@@ -200,25 +200,6 @@ const PlayerSmsVerificationStyle0 = playerSmsVerificationCss;
|
|
|
200
200
|
const PlayerSmsVerification = class {
|
|
201
201
|
constructor(hostRef) {
|
|
202
202
|
index.registerInstance(this, hostRef);
|
|
203
|
-
/**
|
|
204
|
-
* Currently selected language
|
|
205
|
-
*/
|
|
206
|
-
this.lang = 'en';
|
|
207
|
-
/**
|
|
208
|
-
* Client custom styling via inline styles
|
|
209
|
-
*/
|
|
210
|
-
this.clientStyling = '';
|
|
211
|
-
/**
|
|
212
|
-
* Client custom styling via url
|
|
213
|
-
*/
|
|
214
|
-
this.clientStylingUrl = '';
|
|
215
|
-
/**
|
|
216
|
-
* Translations via URL
|
|
217
|
-
*/
|
|
218
|
-
this.translationUrl = '';
|
|
219
|
-
this.code = '';
|
|
220
|
-
this.errMsg = '';
|
|
221
|
-
this.msgEnterCode = '';
|
|
222
203
|
// Other variables
|
|
223
204
|
this.btnResendCount = 60;
|
|
224
205
|
this.isCodeSentOnce = false;
|
|
@@ -241,6 +222,16 @@ const PlayerSmsVerification = class {
|
|
|
241
222
|
console.log('error ', err);
|
|
242
223
|
});
|
|
243
224
|
};
|
|
225
|
+
this.endpoint = undefined;
|
|
226
|
+
this.userId = undefined;
|
|
227
|
+
this.lang = 'en';
|
|
228
|
+
this.clientStyling = '';
|
|
229
|
+
this.clientStylingUrl = '';
|
|
230
|
+
this.translationUrl = '';
|
|
231
|
+
this.tempBtnResendCount = undefined;
|
|
232
|
+
this.code = '';
|
|
233
|
+
this.errMsg = '';
|
|
234
|
+
this.msgEnterCode = '';
|
|
244
235
|
}
|
|
245
236
|
updateClientStyling() {
|
|
246
237
|
if (this.clientStyling)
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1ab65bbf.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('player-sms-verification.cjs.js', document.baseURI).href));
|
|
@@ -2,25 +2,6 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { getTranslations, translate } from "../../utils/utils";
|
|
3
3
|
export class PlayerSmsVerification {
|
|
4
4
|
constructor() {
|
|
5
|
-
/**
|
|
6
|
-
* Currently selected language
|
|
7
|
-
*/
|
|
8
|
-
this.lang = 'en';
|
|
9
|
-
/**
|
|
10
|
-
* Client custom styling via inline styles
|
|
11
|
-
*/
|
|
12
|
-
this.clientStyling = '';
|
|
13
|
-
/**
|
|
14
|
-
* Client custom styling via url
|
|
15
|
-
*/
|
|
16
|
-
this.clientStylingUrl = '';
|
|
17
|
-
/**
|
|
18
|
-
* Translations via URL
|
|
19
|
-
*/
|
|
20
|
-
this.translationUrl = '';
|
|
21
|
-
this.code = '';
|
|
22
|
-
this.errMsg = '';
|
|
23
|
-
this.msgEnterCode = '';
|
|
24
5
|
// Other variables
|
|
25
6
|
this.btnResendCount = 60;
|
|
26
7
|
this.isCodeSentOnce = false;
|
|
@@ -43,6 +24,16 @@ export class PlayerSmsVerification {
|
|
|
43
24
|
console.log('error ', err);
|
|
44
25
|
});
|
|
45
26
|
};
|
|
27
|
+
this.endpoint = undefined;
|
|
28
|
+
this.userId = undefined;
|
|
29
|
+
this.lang = 'en';
|
|
30
|
+
this.clientStyling = '';
|
|
31
|
+
this.clientStylingUrl = '';
|
|
32
|
+
this.translationUrl = '';
|
|
33
|
+
this.tempBtnResendCount = undefined;
|
|
34
|
+
this.code = '';
|
|
35
|
+
this.errMsg = '';
|
|
36
|
+
this.msgEnterCode = '';
|
|
46
37
|
}
|
|
47
38
|
updateClientStyling() {
|
|
48
39
|
if (this.clientStyling)
|
|
@@ -198,8 +189,6 @@ export class PlayerSmsVerification {
|
|
|
198
189
|
"tags": [],
|
|
199
190
|
"text": "NorWAy Endpoint for all the calls."
|
|
200
191
|
},
|
|
201
|
-
"getter": false,
|
|
202
|
-
"setter": false,
|
|
203
192
|
"attribute": "endpoint",
|
|
204
193
|
"reflect": true
|
|
205
194
|
},
|
|
@@ -217,8 +206,6 @@ export class PlayerSmsVerification {
|
|
|
217
206
|
"tags": [],
|
|
218
207
|
"text": "The NWA user id"
|
|
219
208
|
},
|
|
220
|
-
"getter": false,
|
|
221
|
-
"setter": false,
|
|
222
209
|
"attribute": "user-id",
|
|
223
210
|
"reflect": true
|
|
224
211
|
},
|
|
@@ -236,8 +223,6 @@ export class PlayerSmsVerification {
|
|
|
236
223
|
"tags": [],
|
|
237
224
|
"text": "Currently selected language"
|
|
238
225
|
},
|
|
239
|
-
"getter": false,
|
|
240
|
-
"setter": false,
|
|
241
226
|
"attribute": "lang",
|
|
242
227
|
"reflect": true,
|
|
243
228
|
"defaultValue": "'en'"
|
|
@@ -256,8 +241,6 @@ export class PlayerSmsVerification {
|
|
|
256
241
|
"tags": [],
|
|
257
242
|
"text": "Client custom styling via inline styles"
|
|
258
243
|
},
|
|
259
|
-
"getter": false,
|
|
260
|
-
"setter": false,
|
|
261
244
|
"attribute": "client-styling",
|
|
262
245
|
"reflect": true,
|
|
263
246
|
"defaultValue": "''"
|
|
@@ -276,8 +259,6 @@ export class PlayerSmsVerification {
|
|
|
276
259
|
"tags": [],
|
|
277
260
|
"text": "Client custom styling via url"
|
|
278
261
|
},
|
|
279
|
-
"getter": false,
|
|
280
|
-
"setter": false,
|
|
281
262
|
"attribute": "client-styling-url",
|
|
282
263
|
"reflect": true,
|
|
283
264
|
"defaultValue": "''"
|
|
@@ -296,8 +277,6 @@ export class PlayerSmsVerification {
|
|
|
296
277
|
"tags": [],
|
|
297
278
|
"text": "Translations via URL"
|
|
298
279
|
},
|
|
299
|
-
"getter": false,
|
|
300
|
-
"setter": false,
|
|
301
280
|
"attribute": "translation-url",
|
|
302
281
|
"reflect": true,
|
|
303
282
|
"defaultValue": "''"
|