@everymatrix/user-deposit-withdrawal 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-43a33fec.js → index-8df72484.js} +174 -74
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +107 -54
- package/dist/cjs/user-deposit-withdrawal.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +117 -54
- package/dist/esm/{index-657e7a14.js → index-c7e52808.js} +174 -74
- package/dist/esm/loader.js +3 -3
- package/dist/esm/user-deposit-withdrawal.entry.js +107 -54
- package/dist/esm/user-deposit-withdrawal.js +4 -4
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +7 -4
- package/dist/types/components.d.ts +8 -0
- package/dist/user-deposit-withdrawal/p-0522d925.entry.js +1 -0
- package/dist/user-deposit-withdrawal/p-2ae4c897.js +2 -0
- package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/packages/stencil/user-deposit-withdrawal/stencil.config.dev.d.ts +0 -2
- package/dist/user-deposit-withdrawal/p-0913d346.entry.js +0 -1
- package/dist/user-deposit-withdrawal/p-8690bdb0.js +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-deposit-withdrawal/.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/user-deposit-withdrawal/.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/user-deposit-withdrawal/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
const NAMESPACE = 'user-deposit-withdrawal';
|
|
2
|
-
const BUILD = /* user-deposit-withdrawal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
2
|
+
const BUILD = /* user-deposit-withdrawal */ { 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: true, propMutable: false, 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, 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/utils/constants.ts
|
|
14
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
+
|
|
17
|
+
// src/client/client-host-ref.ts
|
|
12
18
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
19
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
20
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
21
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
+
};
|
|
15
23
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
24
|
const hostRef = {
|
|
17
25
|
$flags$: 0,
|
|
@@ -24,7 +32,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
32
|
hostElement["s-p"] = [];
|
|
25
33
|
hostElement["s-rc"] = [];
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
36
|
+
return ref;
|
|
28
37
|
};
|
|
29
38
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
39
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
70
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
71
|
/* webpackMode: "lazy" */
|
|
63
72
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
73
|
+
).then(
|
|
74
|
+
(importedModule) => {
|
|
75
|
+
{
|
|
76
|
+
cmpModules.set(bundleId, importedModule);
|
|
77
|
+
}
|
|
78
|
+
return importedModule[exportName];
|
|
79
|
+
},
|
|
80
|
+
(e) => {
|
|
81
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
82
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
83
|
+
);
|
|
70
84
|
};
|
|
71
85
|
|
|
72
86
|
// src/client/client-style.ts
|
|
73
87
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
89
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
90
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
91
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -128,14 +143,6 @@ var flush = () => {
|
|
|
128
143
|
};
|
|
129
144
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
130
145
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
-
|
|
132
|
-
// src/utils/constants.ts
|
|
133
|
-
var EMPTY_OBJ = {};
|
|
134
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
135
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
136
|
-
|
|
137
|
-
// src/utils/helpers.ts
|
|
138
|
-
var isDef = (v) => v != null;
|
|
139
146
|
var isComplexType = (o) => {
|
|
140
147
|
o = typeof o;
|
|
141
148
|
return o === "object" || o === "function";
|
|
@@ -320,7 +327,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
320
327
|
}
|
|
321
328
|
if (!appliedStyles.has(scopeId2)) {
|
|
322
329
|
{
|
|
323
|
-
styleElm = doc.createElement("style");
|
|
330
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
324
331
|
styleElm.innerHTML = style;
|
|
325
332
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
326
333
|
if (nonce != null) {
|
|
@@ -330,7 +337,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
330
337
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
331
338
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
332
339
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
333
|
-
styleContainerNode.insertBefore(
|
|
340
|
+
styleContainerNode.insertBefore(
|
|
341
|
+
styleElm,
|
|
342
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
343
|
+
);
|
|
334
344
|
} else if ("host" in styleContainerNode) {
|
|
335
345
|
if (supportsConstructableStylesheets) {
|
|
336
346
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -348,7 +358,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
348
358
|
styleContainerNode.append(styleElm);
|
|
349
359
|
}
|
|
350
360
|
}
|
|
351
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
361
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
352
362
|
styleContainerNode.insertBefore(styleElm, null);
|
|
353
363
|
}
|
|
354
364
|
}
|
|
@@ -373,23 +383,25 @@ var attachStyles = (hostRef) => {
|
|
|
373
383
|
const scopeId2 = addStyle(
|
|
374
384
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
375
385
|
cmpMeta);
|
|
376
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
386
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
377
387
|
elm["s-sc"] = scopeId2;
|
|
378
388
|
elm.classList.add(scopeId2 + "-h");
|
|
379
389
|
}
|
|
380
390
|
endAttachStyles();
|
|
381
391
|
};
|
|
382
392
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
383
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
393
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
384
394
|
if (oldValue !== newValue) {
|
|
385
395
|
let isProp = isMemberInElement(elm, memberName);
|
|
386
396
|
let ln = memberName.toLowerCase();
|
|
387
397
|
if (memberName === "class") {
|
|
388
398
|
const classList = elm.classList;
|
|
389
399
|
const oldClasses = parseClassList(oldValue);
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
400
|
+
let newClasses = parseClassList(newValue);
|
|
401
|
+
{
|
|
402
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
403
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
404
|
+
}
|
|
393
405
|
} else if (memberName === "style") {
|
|
394
406
|
{
|
|
395
407
|
for (const prop in oldValue) {
|
|
@@ -448,7 +460,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
448
460
|
elm.setAttribute(memberName, n);
|
|
449
461
|
}
|
|
450
462
|
}
|
|
451
|
-
} else {
|
|
463
|
+
} else if (elm[memberName] !== newValue) {
|
|
452
464
|
elm[memberName] = newValue;
|
|
453
465
|
}
|
|
454
466
|
} catch (e) {
|
|
@@ -470,24 +482,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
470
482
|
}
|
|
471
483
|
};
|
|
472
484
|
var parseClassListRegex = /\s/;
|
|
473
|
-
var parseClassList = (value) =>
|
|
485
|
+
var parseClassList = (value) => {
|
|
486
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
487
|
+
value = value.baseVal;
|
|
488
|
+
}
|
|
489
|
+
if (!value || typeof value !== "string") {
|
|
490
|
+
return [];
|
|
491
|
+
}
|
|
492
|
+
return value.split(parseClassListRegex);
|
|
493
|
+
};
|
|
474
494
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
475
495
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
476
496
|
|
|
477
497
|
// src/runtime/vdom/update-element.ts
|
|
478
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
498
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
479
499
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
480
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
481
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
500
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
501
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
482
502
|
{
|
|
483
503
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
484
504
|
if (!(memberName in newVnodeAttrs)) {
|
|
485
|
-
setAccessor(
|
|
505
|
+
setAccessor(
|
|
506
|
+
elm,
|
|
507
|
+
memberName,
|
|
508
|
+
oldVnodeAttrs[memberName],
|
|
509
|
+
void 0,
|
|
510
|
+
isSvgMode2,
|
|
511
|
+
newVnode.$flags$);
|
|
486
512
|
}
|
|
487
513
|
}
|
|
488
514
|
}
|
|
489
515
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
490
|
-
setAccessor(
|
|
516
|
+
setAccessor(
|
|
517
|
+
elm,
|
|
518
|
+
memberName,
|
|
519
|
+
oldVnodeAttrs[memberName],
|
|
520
|
+
newVnodeAttrs[memberName],
|
|
521
|
+
isSvgMode2,
|
|
522
|
+
newVnode.$flags$);
|
|
491
523
|
}
|
|
492
524
|
};
|
|
493
525
|
function sortedAttrNames(attrNames) {
|
|
@@ -499,13 +531,10 @@ function sortedAttrNames(attrNames) {
|
|
|
499
531
|
attrNames
|
|
500
532
|
);
|
|
501
533
|
}
|
|
502
|
-
|
|
503
|
-
// src/runtime/vdom/vdom-render.ts
|
|
504
|
-
var scopeId;
|
|
505
534
|
var hostTagName;
|
|
506
535
|
var useNativeShadowDom = false;
|
|
507
536
|
var isSvgMode = false;
|
|
508
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
537
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
509
538
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
510
539
|
let i2 = 0;
|
|
511
540
|
let elm;
|
|
@@ -526,11 +555,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
526
555
|
{
|
|
527
556
|
updateElement(null, newVNode2, isSvgMode);
|
|
528
557
|
}
|
|
529
|
-
const rootNode = elm.getRootNode();
|
|
530
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
531
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
532
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
533
|
-
}
|
|
534
558
|
if (newVNode2.$children$) {
|
|
535
559
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
536
560
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -667,6 +691,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
667
691
|
if (!isInitialRender) {
|
|
668
692
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
669
693
|
}
|
|
694
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
695
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
696
|
+
}
|
|
670
697
|
return true;
|
|
671
698
|
}
|
|
672
699
|
return false;
|
|
@@ -713,8 +740,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
713
740
|
}
|
|
714
741
|
};
|
|
715
742
|
var insertBefore = (parent, newNode, reference) => {
|
|
716
|
-
|
|
717
|
-
|
|
743
|
+
{
|
|
744
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
745
|
+
}
|
|
718
746
|
};
|
|
719
747
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
720
748
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -739,17 +767,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
739
767
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
740
768
|
hostRef.$vnode$ = rootVnode;
|
|
741
769
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
742
|
-
|
|
743
|
-
scopeId = hostElm["s-sc"];
|
|
744
|
-
}
|
|
745
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
770
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
746
771
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
747
772
|
};
|
|
748
773
|
|
|
749
774
|
// src/runtime/update-component.ts
|
|
750
775
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
751
776
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
752
|
-
ancestorComponent["s-p"].push(
|
|
777
|
+
const index = ancestorComponent["s-p"].push(
|
|
778
|
+
new Promise(
|
|
779
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
780
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
781
|
+
r();
|
|
782
|
+
}
|
|
783
|
+
)
|
|
784
|
+
);
|
|
753
785
|
}
|
|
754
786
|
};
|
|
755
787
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -776,7 +808,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
776
808
|
let maybePromise;
|
|
777
809
|
if (isInitialLoad) {
|
|
778
810
|
{
|
|
779
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
811
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
780
812
|
}
|
|
781
813
|
}
|
|
782
814
|
endSchedule();
|
|
@@ -844,16 +876,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
844
876
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
845
877
|
const instance = hostRef.$lazyInstance$ ;
|
|
846
878
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
847
|
-
{
|
|
848
|
-
safeCall(instance, "componentDidRender");
|
|
849
|
-
}
|
|
850
879
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
851
880
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
852
881
|
{
|
|
853
882
|
addHydratedFlag(elm);
|
|
854
883
|
}
|
|
855
884
|
{
|
|
856
|
-
safeCall(instance, "componentDidLoad");
|
|
885
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
857
886
|
}
|
|
858
887
|
endPostUpdate();
|
|
859
888
|
{
|
|
@@ -877,17 +906,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
877
906
|
}
|
|
878
907
|
};
|
|
879
908
|
var appDidLoad = (who) => {
|
|
880
|
-
{
|
|
881
|
-
addHydratedFlag(doc.documentElement);
|
|
882
|
-
}
|
|
883
909
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
884
910
|
};
|
|
885
|
-
var safeCall = (instance, method, arg) => {
|
|
911
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
886
912
|
if (instance && instance[method]) {
|
|
887
913
|
try {
|
|
888
914
|
return instance[method](arg);
|
|
889
915
|
} catch (e) {
|
|
890
|
-
consoleError(e);
|
|
916
|
+
consoleError(e, elm);
|
|
891
917
|
}
|
|
892
918
|
}
|
|
893
919
|
return void 0;
|
|
@@ -946,15 +972,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
946
972
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
947
973
|
members.map(([memberName, [memberFlags]]) => {
|
|
948
974
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
975
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
976
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
977
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
978
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
979
|
+
Object.defineProperty(prototype, memberName, {
|
|
980
|
+
get() {
|
|
981
|
+
{
|
|
982
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
983
|
+
return getValue(this, memberName);
|
|
984
|
+
}
|
|
985
|
+
const ref = getHostRef(this);
|
|
986
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
987
|
+
if (!instance) return;
|
|
988
|
+
return instance[memberName];
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
configurable: true,
|
|
992
|
+
enumerable: true
|
|
993
|
+
});
|
|
994
|
+
}
|
|
949
995
|
Object.defineProperty(prototype, memberName, {
|
|
950
|
-
get() {
|
|
951
|
-
return getValue(this, memberName);
|
|
952
|
-
},
|
|
953
996
|
set(newValue) {
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
997
|
+
const ref = getHostRef(this);
|
|
998
|
+
if (origSetter) {
|
|
999
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1000
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1001
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1002
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1003
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1004
|
+
}
|
|
1005
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1006
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1007
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
{
|
|
1011
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1012
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1013
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1014
|
+
ref.$onReadyPromise$.then(() => {
|
|
1015
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1016
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
const setterSetVal = () => {
|
|
1023
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1024
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1025
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1026
|
+
}
|
|
1027
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1028
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1029
|
+
};
|
|
1030
|
+
if (ref.$lazyInstance$) {
|
|
1031
|
+
setterSetVal();
|
|
1032
|
+
} else {
|
|
1033
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
958
1037
|
});
|
|
959
1038
|
}
|
|
960
1039
|
});
|
|
@@ -964,7 +1043,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
964
1043
|
plt.jmp(() => {
|
|
965
1044
|
var _a2;
|
|
966
1045
|
const propName = attrNameToPropName.get(attrName);
|
|
967
|
-
if (this.hasOwnProperty(propName)) {
|
|
1046
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
968
1047
|
newValue = this[propName];
|
|
969
1048
|
delete this[propName];
|
|
970
1049
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -984,7 +1063,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
984
1063
|
}
|
|
985
1064
|
return;
|
|
986
1065
|
}
|
|
987
|
-
|
|
1066
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1067
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1068
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1069
|
+
this[propName] = newValue;
|
|
1070
|
+
}
|
|
988
1071
|
});
|
|
989
1072
|
};
|
|
990
1073
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1013,7 +1096,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1013
1096
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1014
1097
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1015
1098
|
if (bundleId) {
|
|
1016
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1099
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1017
1100
|
if (CstrImport && "then" in CstrImport) {
|
|
1018
1101
|
const endLoad = uniqueTime();
|
|
1019
1102
|
Cstr = await CstrImport;
|
|
@@ -1038,7 +1121,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1038
1121
|
try {
|
|
1039
1122
|
new Cstr(hostRef);
|
|
1040
1123
|
} catch (e) {
|
|
1041
|
-
consoleError(e);
|
|
1124
|
+
consoleError(e, elm);
|
|
1042
1125
|
}
|
|
1043
1126
|
{
|
|
1044
1127
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1073,7 +1156,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1073
1156
|
schedule();
|
|
1074
1157
|
}
|
|
1075
1158
|
};
|
|
1076
|
-
var fireConnectedCallback = (instance) => {
|
|
1159
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1077
1160
|
};
|
|
1078
1161
|
|
|
1079
1162
|
// src/runtime/connected-callback.ts
|
|
@@ -1113,20 +1196,26 @@ var connectedCallback = (elm) => {
|
|
|
1113
1196
|
endConnected();
|
|
1114
1197
|
}
|
|
1115
1198
|
};
|
|
1116
|
-
var disconnectInstance = (instance) => {
|
|
1199
|
+
var disconnectInstance = (instance, elm) => {
|
|
1117
1200
|
{
|
|
1118
|
-
safeCall(instance, "disconnectedCallback");
|
|
1201
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1119
1202
|
}
|
|
1120
1203
|
};
|
|
1121
1204
|
var disconnectedCallback = async (elm) => {
|
|
1122
1205
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1123
1206
|
const hostRef = getHostRef(elm);
|
|
1124
1207
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1125
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1208
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1126
1209
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1127
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1210
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1128
1211
|
}
|
|
1129
1212
|
}
|
|
1213
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1214
|
+
rootAppliedStyles.delete(elm);
|
|
1215
|
+
}
|
|
1216
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1217
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1218
|
+
}
|
|
1130
1219
|
};
|
|
1131
1220
|
|
|
1132
1221
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1207,6 +1296,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1207
1296
|
}
|
|
1208
1297
|
disconnectedCallback() {
|
|
1209
1298
|
plt.jmp(() => disconnectedCallback(this));
|
|
1299
|
+
plt.raf(() => {
|
|
1300
|
+
var _a3;
|
|
1301
|
+
const hostRef = getHostRef(this);
|
|
1302
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1303
|
+
if (i2 > -1) {
|
|
1304
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1305
|
+
}
|
|
1306
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1307
|
+
delete hostRef.$vnode$.$elm$;
|
|
1308
|
+
}
|
|
1309
|
+
});
|
|
1210
1310
|
}
|
|
1211
1311
|
componentOnReady() {
|
|
1212
1312
|
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-c7e52808.js';
|
|
2
|
+
export { s as setNonce } from './index-c7e52808.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([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"
|
|
8
|
+
return bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"dynamicHeight":[32],"cashierInfoUrl":[32]},null,{"session":["watchLoadWidget"],"userId":["watchLoadWidget"],"isShortCashier":["watchLoadWidget"],"currency":["watchLoadWidget"],"showBonusSelectionInput":["watchLoadWidget"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|