@everymatrix/player-sms-verification 1.56.0 → 1.56.3
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-2de7dcf7.js → index-c10a634b.js} +69 -204
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-sms-verification.cjs.entry.js +9 -17
- package/dist/cjs/player-sms-verification.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/player-sms-verification/player-sms-verification.js +8 -30
- package/dist/esm/{index-3ab66176.js → index-99e378bb.js} +69 -204
- package/dist/esm/loader.js +2 -2
- package/dist/esm/player-sms-verification.entry.js +9 -17
- package/dist/esm/player-sms-verification.js +3 -3
- package/dist/player-sms-verification/{p-8b381f95.entry.js → p-58804c28.entry.js} +1 -1
- package/dist/player-sms-verification/p-b187e9e6.js +2 -0
- 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/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/player-sms-verification/p-e4128523.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
|
@@ -3,29 +3,21 @@ import { getTranslations, translate } from "../../utils/utils";
|
|
|
3
3
|
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
4
4
|
export class PlayerSmsVerification {
|
|
5
5
|
constructor() {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
// Other variables
|
|
7
|
+
this.btnResendCount = 60;
|
|
8
|
+
this.isCodeSentOnce = false;
|
|
9
|
+
this.isBtnSendAvailable = true;
|
|
10
|
+
this.endpoint = undefined;
|
|
11
|
+
this.userId = undefined;
|
|
9
12
|
this.lang = 'en';
|
|
10
|
-
/**
|
|
11
|
-
* Client custom styling via inline styles
|
|
12
|
-
*/
|
|
13
13
|
this.clientStyling = '';
|
|
14
|
-
/**
|
|
15
|
-
* Client custom styling via url
|
|
16
|
-
*/
|
|
17
14
|
this.clientStylingUrl = '';
|
|
18
|
-
|
|
19
|
-
* Translations via URL
|
|
20
|
-
*/
|
|
15
|
+
this.mbSource = undefined;
|
|
21
16
|
this.translationUrl = '';
|
|
17
|
+
this.tempBtnResendCount = undefined;
|
|
22
18
|
this.code = '';
|
|
23
19
|
this.errMsg = '';
|
|
24
20
|
this.msgEnterCode = '';
|
|
25
|
-
// Other variables
|
|
26
|
-
this.btnResendCount = 60;
|
|
27
|
-
this.isCodeSentOnce = false;
|
|
28
|
-
this.isBtnSendAvailable = true;
|
|
29
21
|
}
|
|
30
22
|
handleClientStylingChange(newValue, oldValue) {
|
|
31
23
|
if (newValue != oldValue) {
|
|
@@ -196,8 +188,6 @@ export class PlayerSmsVerification {
|
|
|
196
188
|
"tags": [],
|
|
197
189
|
"text": "NorWAy Endpoint for all the calls."
|
|
198
190
|
},
|
|
199
|
-
"getter": false,
|
|
200
|
-
"setter": false,
|
|
201
191
|
"attribute": "endpoint",
|
|
202
192
|
"reflect": true
|
|
203
193
|
},
|
|
@@ -215,8 +205,6 @@ export class PlayerSmsVerification {
|
|
|
215
205
|
"tags": [],
|
|
216
206
|
"text": "The NWA user id"
|
|
217
207
|
},
|
|
218
|
-
"getter": false,
|
|
219
|
-
"setter": false,
|
|
220
208
|
"attribute": "user-id",
|
|
221
209
|
"reflect": true
|
|
222
210
|
},
|
|
@@ -234,8 +222,6 @@ export class PlayerSmsVerification {
|
|
|
234
222
|
"tags": [],
|
|
235
223
|
"text": "Currently selected language"
|
|
236
224
|
},
|
|
237
|
-
"getter": false,
|
|
238
|
-
"setter": false,
|
|
239
225
|
"attribute": "lang",
|
|
240
226
|
"reflect": true,
|
|
241
227
|
"defaultValue": "'en'"
|
|
@@ -254,8 +240,6 @@ export class PlayerSmsVerification {
|
|
|
254
240
|
"tags": [],
|
|
255
241
|
"text": "Client custom styling via inline styles"
|
|
256
242
|
},
|
|
257
|
-
"getter": false,
|
|
258
|
-
"setter": false,
|
|
259
243
|
"attribute": "client-styling",
|
|
260
244
|
"reflect": true,
|
|
261
245
|
"defaultValue": "''"
|
|
@@ -274,8 +258,6 @@ export class PlayerSmsVerification {
|
|
|
274
258
|
"tags": [],
|
|
275
259
|
"text": "Client custom styling via url"
|
|
276
260
|
},
|
|
277
|
-
"getter": false,
|
|
278
|
-
"setter": false,
|
|
279
261
|
"attribute": "client-styling-url",
|
|
280
262
|
"reflect": true,
|
|
281
263
|
"defaultValue": "''"
|
|
@@ -294,8 +276,6 @@ export class PlayerSmsVerification {
|
|
|
294
276
|
"tags": [],
|
|
295
277
|
"text": ""
|
|
296
278
|
},
|
|
297
|
-
"getter": false,
|
|
298
|
-
"setter": false,
|
|
299
279
|
"attribute": "mb-source",
|
|
300
280
|
"reflect": false
|
|
301
281
|
},
|
|
@@ -313,8 +293,6 @@ export class PlayerSmsVerification {
|
|
|
313
293
|
"tags": [],
|
|
314
294
|
"text": "Translations via URL"
|
|
315
295
|
},
|
|
316
|
-
"getter": false,
|
|
317
|
-
"setter": false,
|
|
318
296
|
"attribute": "translation-url",
|
|
319
297
|
"reflect": true,
|
|
320
298
|
"defaultValue": "''"
|
|
@@ -1,21 +1,17 @@
|
|
|
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: 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,
|
|
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, 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.19.2 | 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
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -139,6 +128,12 @@ var flush = () => {
|
|
|
139
128
|
};
|
|
140
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
141
130
|
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;
|
|
142
137
|
var isComplexType = (o) => {
|
|
143
138
|
o = typeof o;
|
|
144
139
|
return o === "object" || o === "function";
|
|
@@ -320,40 +315,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
320
315
|
}
|
|
321
316
|
if (!appliedStyles.has(scopeId2)) {
|
|
322
317
|
{
|
|
323
|
-
styleElm =
|
|
318
|
+
styleElm = doc.createElement("style");
|
|
324
319
|
styleElm.innerHTML = style;
|
|
325
320
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
326
321
|
if (nonce != null) {
|
|
327
322
|
styleElm.setAttribute("nonce", nonce);
|
|
328
323
|
}
|
|
329
|
-
|
|
330
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
331
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
332
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
333
|
-
styleContainerNode.insertBefore(
|
|
334
|
-
styleElm,
|
|
335
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
336
|
-
);
|
|
337
|
-
} else if ("host" in styleContainerNode) {
|
|
338
|
-
if (supportsConstructableStylesheets) {
|
|
339
|
-
const stylesheet = new CSSStyleSheet();
|
|
340
|
-
stylesheet.replaceSync(style);
|
|
341
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
342
|
-
} else {
|
|
343
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
344
|
-
if (existingStyleContainer) {
|
|
345
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
346
|
-
} else {
|
|
347
|
-
styleContainerNode.prepend(styleElm);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
} else {
|
|
351
|
-
styleContainerNode.append(styleElm);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
355
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
356
|
-
}
|
|
324
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
357
325
|
}
|
|
358
326
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
359
327
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -376,25 +344,23 @@ var attachStyles = (hostRef) => {
|
|
|
376
344
|
const scopeId2 = addStyle(
|
|
377
345
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
378
346
|
cmpMeta);
|
|
379
|
-
if (
|
|
347
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
380
348
|
elm["s-sc"] = scopeId2;
|
|
381
349
|
elm.classList.add(scopeId2 + "-h");
|
|
382
350
|
}
|
|
383
351
|
endAttachStyles();
|
|
384
352
|
};
|
|
385
353
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
386
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
354
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
387
355
|
if (oldValue !== newValue) {
|
|
388
356
|
let isProp = isMemberInElement(elm, memberName);
|
|
389
357
|
let ln = memberName.toLowerCase();
|
|
390
358
|
if (memberName === "class") {
|
|
391
359
|
const classList = elm.classList;
|
|
392
360
|
const oldClasses = parseClassList(oldValue);
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
397
|
-
}
|
|
361
|
+
const newClasses = parseClassList(newValue);
|
|
362
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
363
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
398
364
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
399
365
|
if (newValue) {
|
|
400
366
|
newValue(elm);
|
|
@@ -426,13 +392,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
426
392
|
if (memberName === "list") {
|
|
427
393
|
isProp = false;
|
|
428
394
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
429
|
-
|
|
430
|
-
elm[memberName] = n;
|
|
431
|
-
} else {
|
|
432
|
-
elm.setAttribute(memberName, n);
|
|
433
|
-
}
|
|
395
|
+
elm[memberName] = n;
|
|
434
396
|
}
|
|
435
|
-
} else
|
|
397
|
+
} else {
|
|
436
398
|
elm[memberName] = newValue;
|
|
437
399
|
}
|
|
438
400
|
} catch (e) {
|
|
@@ -454,44 +416,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
454
416
|
}
|
|
455
417
|
};
|
|
456
418
|
var parseClassListRegex = /\s/;
|
|
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
|
-
};
|
|
419
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
466
420
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
467
421
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
468
422
|
|
|
469
423
|
// src/runtime/vdom/update-element.ts
|
|
470
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
424
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
471
425
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
472
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
473
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
426
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
427
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
474
428
|
{
|
|
475
429
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
476
430
|
if (!(memberName in newVnodeAttrs)) {
|
|
477
|
-
setAccessor(
|
|
478
|
-
elm,
|
|
479
|
-
memberName,
|
|
480
|
-
oldVnodeAttrs[memberName],
|
|
481
|
-
void 0,
|
|
482
|
-
isSvgMode2,
|
|
483
|
-
newVnode.$flags$);
|
|
431
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
484
432
|
}
|
|
485
433
|
}
|
|
486
434
|
}
|
|
487
435
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
488
|
-
setAccessor(
|
|
489
|
-
elm,
|
|
490
|
-
memberName,
|
|
491
|
-
oldVnodeAttrs[memberName],
|
|
492
|
-
newVnodeAttrs[memberName],
|
|
493
|
-
isSvgMode2,
|
|
494
|
-
newVnode.$flags$);
|
|
436
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
495
437
|
}
|
|
496
438
|
};
|
|
497
439
|
function sortedAttrNames(attrNames) {
|
|
@@ -503,10 +445,13 @@ function sortedAttrNames(attrNames) {
|
|
|
503
445
|
attrNames
|
|
504
446
|
);
|
|
505
447
|
}
|
|
448
|
+
|
|
449
|
+
// src/runtime/vdom/vdom-render.ts
|
|
450
|
+
var scopeId;
|
|
506
451
|
var hostTagName;
|
|
507
452
|
var useNativeShadowDom = false;
|
|
508
453
|
var isSvgMode = false;
|
|
509
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
454
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
510
455
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
511
456
|
let i2 = 0;
|
|
512
457
|
let elm;
|
|
@@ -520,6 +465,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
520
465
|
{
|
|
521
466
|
updateElement(null, newVNode2, isSvgMode);
|
|
522
467
|
}
|
|
468
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
469
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
470
|
+
}
|
|
523
471
|
if (newVNode2.$children$) {
|
|
524
472
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
525
473
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -649,9 +597,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
649
597
|
if (!isInitialRender) {
|
|
650
598
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
651
599
|
}
|
|
652
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
653
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
654
|
-
}
|
|
655
600
|
return true;
|
|
656
601
|
}
|
|
657
602
|
return false;
|
|
@@ -674,10 +619,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
674
619
|
elm.textContent = "";
|
|
675
620
|
}
|
|
676
621
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
677
|
-
} else if (
|
|
678
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
679
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
680
|
-
) {
|
|
622
|
+
} else if (oldChildren !== null) {
|
|
681
623
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
682
624
|
}
|
|
683
625
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -691,9 +633,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
691
633
|
}
|
|
692
634
|
};
|
|
693
635
|
var insertBefore = (parent, newNode, reference) => {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
636
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
637
|
+
return inserted;
|
|
697
638
|
};
|
|
698
639
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
699
640
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -718,21 +659,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
718
659
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
719
660
|
hostRef.$vnode$ = rootVnode;
|
|
720
661
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
721
|
-
|
|
662
|
+
{
|
|
663
|
+
scopeId = hostElm["s-sc"];
|
|
664
|
+
}
|
|
665
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
722
666
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
723
667
|
};
|
|
724
668
|
|
|
725
669
|
// src/runtime/update-component.ts
|
|
726
670
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
727
671
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
728
|
-
|
|
729
|
-
new Promise(
|
|
730
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
731
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
732
|
-
r();
|
|
733
|
-
}
|
|
734
|
-
)
|
|
735
|
-
);
|
|
672
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
736
673
|
}
|
|
737
674
|
};
|
|
738
675
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -759,7 +696,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
759
696
|
let maybePromise;
|
|
760
697
|
if (isInitialLoad) {
|
|
761
698
|
{
|
|
762
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
699
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
763
700
|
}
|
|
764
701
|
}
|
|
765
702
|
endSchedule();
|
|
@@ -833,7 +770,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
833
770
|
addHydratedFlag(elm);
|
|
834
771
|
}
|
|
835
772
|
{
|
|
836
|
-
safeCall(instance, "componentDidLoad"
|
|
773
|
+
safeCall(instance, "componentDidLoad");
|
|
837
774
|
}
|
|
838
775
|
endPostUpdate();
|
|
839
776
|
{
|
|
@@ -857,14 +794,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
857
794
|
}
|
|
858
795
|
};
|
|
859
796
|
var appDidLoad = (who) => {
|
|
797
|
+
{
|
|
798
|
+
addHydratedFlag(doc.documentElement);
|
|
799
|
+
}
|
|
860
800
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
861
801
|
};
|
|
862
|
-
var safeCall = (instance, method, arg
|
|
802
|
+
var safeCall = (instance, method, arg) => {
|
|
863
803
|
if (instance && instance[method]) {
|
|
864
804
|
try {
|
|
865
805
|
return instance[method](arg);
|
|
866
806
|
} catch (e) {
|
|
867
|
-
consoleError(e
|
|
807
|
+
consoleError(e);
|
|
868
808
|
}
|
|
869
809
|
}
|
|
870
810
|
return void 0;
|
|
@@ -923,68 +863,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
923
863
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
924
864
|
members.map(([memberName, [memberFlags]]) => {
|
|
925
865
|
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
|
-
}
|
|
946
866
|
Object.defineProperty(prototype, memberName, {
|
|
867
|
+
get() {
|
|
868
|
+
return getValue(this, memberName);
|
|
869
|
+
},
|
|
947
870
|
set(newValue) {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
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
|
-
}
|
|
871
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
872
|
+
},
|
|
873
|
+
configurable: true,
|
|
874
|
+
enumerable: true
|
|
988
875
|
});
|
|
989
876
|
}
|
|
990
877
|
});
|
|
@@ -994,11 +881,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
994
881
|
plt.jmp(() => {
|
|
995
882
|
var _a2;
|
|
996
883
|
const propName = attrNameToPropName.get(attrName);
|
|
997
|
-
if (this.hasOwnProperty(propName)
|
|
884
|
+
if (this.hasOwnProperty(propName)) {
|
|
998
885
|
newValue = this[propName];
|
|
999
886
|
delete this[propName];
|
|
1000
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1001
|
-
this[propName] == newValue) {
|
|
887
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1002
888
|
return;
|
|
1003
889
|
} else if (propName == null) {
|
|
1004
890
|
const hostRef = getHostRef(this);
|
|
@@ -1014,11 +900,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1014
900
|
}
|
|
1015
901
|
return;
|
|
1016
902
|
}
|
|
1017
|
-
|
|
1018
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1019
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1020
|
-
this[propName] = newValue;
|
|
1021
|
-
}
|
|
903
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1022
904
|
});
|
|
1023
905
|
};
|
|
1024
906
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1047,7 +929,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1047
929
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1048
930
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1049
931
|
if (bundleId) {
|
|
1050
|
-
const CstrImport = loadModule(cmpMeta
|
|
932
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1051
933
|
if (CstrImport && "then" in CstrImport) {
|
|
1052
934
|
const endLoad = uniqueTime();
|
|
1053
935
|
Cstr = await CstrImport;
|
|
@@ -1072,7 +954,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1072
954
|
try {
|
|
1073
955
|
new Cstr(hostRef);
|
|
1074
956
|
} catch (e) {
|
|
1075
|
-
consoleError(e
|
|
957
|
+
consoleError(e);
|
|
1076
958
|
}
|
|
1077
959
|
{
|
|
1078
960
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1107,7 +989,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1107
989
|
schedule();
|
|
1108
990
|
}
|
|
1109
991
|
};
|
|
1110
|
-
var fireConnectedCallback = (instance
|
|
992
|
+
var fireConnectedCallback = (instance) => {
|
|
1111
993
|
};
|
|
1112
994
|
|
|
1113
995
|
// src/runtime/connected-callback.ts
|
|
@@ -1147,26 +1029,20 @@ var connectedCallback = (elm) => {
|
|
|
1147
1029
|
endConnected();
|
|
1148
1030
|
}
|
|
1149
1031
|
};
|
|
1150
|
-
var disconnectInstance = (instance
|
|
1032
|
+
var disconnectInstance = (instance) => {
|
|
1151
1033
|
{
|
|
1152
|
-
safeCall(instance, "disconnectedCallback"
|
|
1034
|
+
safeCall(instance, "disconnectedCallback");
|
|
1153
1035
|
}
|
|
1154
1036
|
};
|
|
1155
1037
|
var disconnectedCallback = async (elm) => {
|
|
1156
1038
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1157
1039
|
const hostRef = getHostRef(elm);
|
|
1158
1040
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1159
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1041
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1160
1042
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1161
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1043
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1162
1044
|
}
|
|
1163
1045
|
}
|
|
1164
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1165
|
-
rootAppliedStyles.delete(elm);
|
|
1166
|
-
}
|
|
1167
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1168
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1169
|
-
}
|
|
1170
1046
|
};
|
|
1171
1047
|
|
|
1172
1048
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1247,17 +1123,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1247
1123
|
}
|
|
1248
1124
|
disconnectedCallback() {
|
|
1249
1125
|
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
|
-
});
|
|
1261
1126
|
}
|
|
1262
1127
|
componentOnReady() {
|
|
1263
1128
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-99e378bb.js';
|
|
2
|
+
export { s as setNonce } from './index-99e378bb.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-99e378bb.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
@@ -253,29 +253,21 @@ const PlayerSmsVerificationStyle0 = playerSmsVerificationCss;
|
|
|
253
253
|
const PlayerSmsVerification = class {
|
|
254
254
|
constructor(hostRef) {
|
|
255
255
|
registerInstance(this, hostRef);
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
// Other variables
|
|
257
|
+
this.btnResendCount = 60;
|
|
258
|
+
this.isCodeSentOnce = false;
|
|
259
|
+
this.isBtnSendAvailable = true;
|
|
260
|
+
this.endpoint = undefined;
|
|
261
|
+
this.userId = undefined;
|
|
259
262
|
this.lang = 'en';
|
|
260
|
-
/**
|
|
261
|
-
* Client custom styling via inline styles
|
|
262
|
-
*/
|
|
263
263
|
this.clientStyling = '';
|
|
264
|
-
/**
|
|
265
|
-
* Client custom styling via url
|
|
266
|
-
*/
|
|
267
264
|
this.clientStylingUrl = '';
|
|
268
|
-
|
|
269
|
-
* Translations via URL
|
|
270
|
-
*/
|
|
265
|
+
this.mbSource = undefined;
|
|
271
266
|
this.translationUrl = '';
|
|
267
|
+
this.tempBtnResendCount = undefined;
|
|
272
268
|
this.code = '';
|
|
273
269
|
this.errMsg = '';
|
|
274
270
|
this.msgEnterCode = '';
|
|
275
|
-
// Other variables
|
|
276
|
-
this.btnResendCount = 60;
|
|
277
|
-
this.isCodeSentOnce = false;
|
|
278
|
-
this.isBtnSendAvailable = true;
|
|
279
271
|
}
|
|
280
272
|
handleClientStylingChange(newValue, oldValue) {
|
|
281
273
|
if (newValue != oldValue) {
|