@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.
Files changed (26) hide show
  1. package/dist/cjs/{index-43a33fec.js → index-8df72484.js} +174 -74
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +107 -54
  4. package/dist/cjs/user-deposit-withdrawal.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +117 -54
  7. package/dist/esm/{index-657e7a14.js → index-c7e52808.js} +174 -74
  8. package/dist/esm/loader.js +3 -3
  9. package/dist/esm/user-deposit-withdrawal.entry.js +107 -54
  10. package/dist/esm/user-deposit-withdrawal.js +4 -4
  11. 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
  12. 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
  13. package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +7 -4
  14. package/dist/types/components.d.ts +8 -0
  15. package/dist/user-deposit-withdrawal/p-0522d925.entry.js +1 -0
  16. package/dist/user-deposit-withdrawal/p-2ae4c897.js +2 -0
  17. package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -1
  18. package/package.json +1 -1
  19. 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
  20. 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
  21. package/dist/user-deposit-withdrawal/p-0913d346.entry.js +0 -1
  22. package/dist/user-deposit-withdrawal/p-8690bdb0.js +0 -2
  23. /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
  24. /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
  25. /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
  26. /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
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'user-deposit-withdrawal';
24
- const BUILD = /* user-deposit-withdrawal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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: 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 };
24
+ 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.26.0 | 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/utils/constants.ts
36
+ var SVG_NS = "http://www.w3.org/2000/svg";
37
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
38
+
39
+ // src/client/client-host-ref.ts
34
40
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
41
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
42
+ var registerInstance = (lazyInstance, hostRef) => {
43
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
+ };
37
45
  var registerHost = (hostElement, cmpMeta) => {
38
46
  const hostRef = {
39
47
  $flags$: 0,
@@ -46,7 +54,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
54
  hostElement["s-p"] = [];
47
55
  hostElement["s-rc"] = [];
48
56
  }
49
- return hostRefs.set(hostElement, hostRef);
57
+ const ref = hostRefs.set(hostElement, hostRef);
58
+ return ref;
50
59
  };
51
60
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
61
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
92
  /* webpackExclude: /\.system\.entry\.js$/ */
84
93
  /* webpackMode: "lazy" */
85
94
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
95
+ )); }).then(
96
+ (importedModule) => {
97
+ {
98
+ cmpModules.set(bundleId, importedModule);
99
+ }
100
+ return importedModule[exportName];
101
+ },
102
+ (e) => {
103
+ consoleError(e, hostRef.$hostElement$);
89
104
  }
90
- return importedModule[exportName];
91
- }, consoleError);
105
+ );
92
106
  };
93
107
 
94
108
  // src/client/client-style.ts
95
109
  var styles = /* @__PURE__ */ new Map();
110
+ var HYDRATED_STYLE_ID = "sty-id";
96
111
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
112
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
113
  var win = typeof window !== "undefined" ? window : {};
@@ -150,14 +165,6 @@ var flush = () => {
150
165
  };
151
166
  var nextTick = (cb) => promiseResolve().then(cb);
152
167
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
-
154
- // src/utils/constants.ts
155
- var EMPTY_OBJ = {};
156
- var SVG_NS = "http://www.w3.org/2000/svg";
157
- var HTML_NS = "http://www.w3.org/1999/xhtml";
158
-
159
- // src/utils/helpers.ts
160
- var isDef = (v) => v != null;
161
168
  var isComplexType = (o) => {
162
169
  o = typeof o;
163
170
  return o === "object" || o === "function";
@@ -342,7 +349,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
342
349
  }
343
350
  if (!appliedStyles.has(scopeId2)) {
344
351
  {
345
- styleElm = doc.createElement("style");
352
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
346
353
  styleElm.innerHTML = style;
347
354
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
348
355
  if (nonce != null) {
@@ -352,7 +359,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
352
359
  if (styleContainerNode.nodeName === "HEAD") {
353
360
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
354
361
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
355
- styleContainerNode.insertBefore(styleElm, referenceNode2);
362
+ styleContainerNode.insertBefore(
363
+ styleElm,
364
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
365
+ );
356
366
  } else if ("host" in styleContainerNode) {
357
367
  if (supportsConstructableStylesheets) {
358
368
  const stylesheet = new CSSStyleSheet();
@@ -370,7 +380,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
370
380
  styleContainerNode.append(styleElm);
371
381
  }
372
382
  }
373
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
383
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
374
384
  styleContainerNode.insertBefore(styleElm, null);
375
385
  }
376
386
  }
@@ -395,23 +405,25 @@ var attachStyles = (hostRef) => {
395
405
  const scopeId2 = addStyle(
396
406
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
397
407
  cmpMeta);
398
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
408
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
399
409
  elm["s-sc"] = scopeId2;
400
410
  elm.classList.add(scopeId2 + "-h");
401
411
  }
402
412
  endAttachStyles();
403
413
  };
404
414
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
405
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
415
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
406
416
  if (oldValue !== newValue) {
407
417
  let isProp = isMemberInElement(elm, memberName);
408
418
  let ln = memberName.toLowerCase();
409
419
  if (memberName === "class") {
410
420
  const classList = elm.classList;
411
421
  const oldClasses = parseClassList(oldValue);
412
- const newClasses = parseClassList(newValue);
413
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
414
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
422
+ let newClasses = parseClassList(newValue);
423
+ {
424
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
426
+ }
415
427
  } else if (memberName === "style") {
416
428
  {
417
429
  for (const prop in oldValue) {
@@ -470,7 +482,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
470
482
  elm.setAttribute(memberName, n);
471
483
  }
472
484
  }
473
- } else {
485
+ } else if (elm[memberName] !== newValue) {
474
486
  elm[memberName] = newValue;
475
487
  }
476
488
  } catch (e) {
@@ -492,24 +504,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
492
504
  }
493
505
  };
494
506
  var parseClassListRegex = /\s/;
495
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
507
+ var parseClassList = (value) => {
508
+ if (typeof value === "object" && value && "baseVal" in value) {
509
+ value = value.baseVal;
510
+ }
511
+ if (!value || typeof value !== "string") {
512
+ return [];
513
+ }
514
+ return value.split(parseClassListRegex);
515
+ };
496
516
  var CAPTURE_EVENT_SUFFIX = "Capture";
497
517
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
498
518
 
499
519
  // src/runtime/vdom/update-element.ts
500
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
520
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
501
521
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
502
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
503
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
522
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
523
+ const newVnodeAttrs = newVnode.$attrs$ || {};
504
524
  {
505
525
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
506
526
  if (!(memberName in newVnodeAttrs)) {
507
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
527
+ setAccessor(
528
+ elm,
529
+ memberName,
530
+ oldVnodeAttrs[memberName],
531
+ void 0,
532
+ isSvgMode2,
533
+ newVnode.$flags$);
508
534
  }
509
535
  }
510
536
  }
511
537
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
512
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
538
+ setAccessor(
539
+ elm,
540
+ memberName,
541
+ oldVnodeAttrs[memberName],
542
+ newVnodeAttrs[memberName],
543
+ isSvgMode2,
544
+ newVnode.$flags$);
513
545
  }
514
546
  };
515
547
  function sortedAttrNames(attrNames) {
@@ -521,13 +553,10 @@ function sortedAttrNames(attrNames) {
521
553
  attrNames
522
554
  );
523
555
  }
524
-
525
- // src/runtime/vdom/vdom-render.ts
526
- var scopeId;
527
556
  var hostTagName;
528
557
  var useNativeShadowDom = false;
529
558
  var isSvgMode = false;
530
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
559
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
531
560
  const newVNode2 = newParentVNode.$children$[childIndex];
532
561
  let i2 = 0;
533
562
  let elm;
@@ -548,11 +577,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
548
577
  {
549
578
  updateElement(null, newVNode2, isSvgMode);
550
579
  }
551
- const rootNode = elm.getRootNode();
552
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
553
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
554
- elm.classList.add(elm["s-si"] = scopeId);
555
- }
556
580
  if (newVNode2.$children$) {
557
581
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
558
582
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -689,6 +713,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
689
713
  if (!isInitialRender) {
690
714
  return leftVNode.$key$ === rightVNode.$key$;
691
715
  }
716
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
717
+ leftVNode.$key$ = rightVNode.$key$;
718
+ }
692
719
  return true;
693
720
  }
694
721
  return false;
@@ -735,8 +762,9 @@ var nullifyVNodeRefs = (vNode) => {
735
762
  }
736
763
  };
737
764
  var insertBefore = (parent, newNode, reference) => {
738
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
739
- return inserted;
765
+ {
766
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
767
+ }
740
768
  };
741
769
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
742
770
  const hostElm = hostRef.$hostElement$;
@@ -761,17 +789,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
761
789
  rootVnode.$flags$ |= 4 /* isHost */;
762
790
  hostRef.$vnode$ = rootVnode;
763
791
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
764
- {
765
- scopeId = hostElm["s-sc"];
766
- }
767
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
792
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
768
793
  patch(oldVNode, rootVnode, isInitialLoad);
769
794
  };
770
795
 
771
796
  // src/runtime/update-component.ts
772
797
  var attachToAncestor = (hostRef, ancestorComponent) => {
773
798
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
774
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
799
+ const index = ancestorComponent["s-p"].push(
800
+ new Promise(
801
+ (r) => hostRef.$onRenderResolve$ = () => {
802
+ ancestorComponent["s-p"].splice(index - 1, 1);
803
+ r();
804
+ }
805
+ )
806
+ );
775
807
  }
776
808
  };
777
809
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -798,7 +830,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
798
830
  let maybePromise;
799
831
  if (isInitialLoad) {
800
832
  {
801
- maybePromise = safeCall(instance, "componentWillLoad");
833
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
802
834
  }
803
835
  }
804
836
  endSchedule();
@@ -866,16 +898,13 @@ var postUpdateComponent = (hostRef) => {
866
898
  const endPostUpdate = createTime("postUpdate", tagName);
867
899
  const instance = hostRef.$lazyInstance$ ;
868
900
  const ancestorComponent = hostRef.$ancestorComponent$;
869
- {
870
- safeCall(instance, "componentDidRender");
871
- }
872
901
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
873
902
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
874
903
  {
875
904
  addHydratedFlag(elm);
876
905
  }
877
906
  {
878
- safeCall(instance, "componentDidLoad");
907
+ safeCall(instance, "componentDidLoad", void 0, elm);
879
908
  }
880
909
  endPostUpdate();
881
910
  {
@@ -899,17 +928,14 @@ var postUpdateComponent = (hostRef) => {
899
928
  }
900
929
  };
901
930
  var appDidLoad = (who) => {
902
- {
903
- addHydratedFlag(doc.documentElement);
904
- }
905
931
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
906
932
  };
907
- var safeCall = (instance, method, arg) => {
933
+ var safeCall = (instance, method, arg, elm) => {
908
934
  if (instance && instance[method]) {
909
935
  try {
910
936
  return instance[method](arg);
911
937
  } catch (e) {
912
- consoleError(e);
938
+ consoleError(e, elm);
913
939
  }
914
940
  }
915
941
  return void 0;
@@ -968,15 +994,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
968
994
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
969
995
  members.map(([memberName, [memberFlags]]) => {
970
996
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
997
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
998
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
999
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1000
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1001
+ Object.defineProperty(prototype, memberName, {
1002
+ get() {
1003
+ {
1004
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1005
+ return getValue(this, memberName);
1006
+ }
1007
+ const ref = getHostRef(this);
1008
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1009
+ if (!instance) return;
1010
+ return instance[memberName];
1011
+ }
1012
+ },
1013
+ configurable: true,
1014
+ enumerable: true
1015
+ });
1016
+ }
971
1017
  Object.defineProperty(prototype, memberName, {
972
- get() {
973
- return getValue(this, memberName);
974
- },
975
1018
  set(newValue) {
976
- setValue(this, memberName, newValue, cmpMeta);
977
- },
978
- configurable: true,
979
- enumerable: true
1019
+ const ref = getHostRef(this);
1020
+ if (origSetter) {
1021
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1022
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1023
+ newValue = ref.$instanceValues$.get(memberName);
1024
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1025
+ ref.$instanceValues$.set(memberName, currentValue);
1026
+ }
1027
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1028
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1029
+ setValue(this, memberName, newValue, cmpMeta);
1030
+ return;
1031
+ }
1032
+ {
1033
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1034
+ setValue(this, memberName, newValue, cmpMeta);
1035
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1036
+ ref.$onReadyPromise$.then(() => {
1037
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1038
+ ref.$lazyInstance$[memberName] = newValue;
1039
+ }
1040
+ });
1041
+ }
1042
+ return;
1043
+ }
1044
+ const setterSetVal = () => {
1045
+ const currentValue = ref.$lazyInstance$[memberName];
1046
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1047
+ ref.$instanceValues$.set(memberName, currentValue);
1048
+ }
1049
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1050
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1051
+ };
1052
+ if (ref.$lazyInstance$) {
1053
+ setterSetVal();
1054
+ } else {
1055
+ ref.$onReadyPromise$.then(() => setterSetVal());
1056
+ }
1057
+ }
1058
+ }
980
1059
  });
981
1060
  }
982
1061
  });
@@ -986,7 +1065,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
986
1065
  plt.jmp(() => {
987
1066
  var _a2;
988
1067
  const propName = attrNameToPropName.get(attrName);
989
- if (this.hasOwnProperty(propName)) {
1068
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
990
1069
  newValue = this[propName];
991
1070
  delete this[propName];
992
1071
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1006,7 +1085,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1006
1085
  }
1007
1086
  return;
1008
1087
  }
1009
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1088
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1089
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1090
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1091
+ this[propName] = newValue;
1092
+ }
1010
1093
  });
1011
1094
  };
1012
1095
  Cstr.observedAttributes = Array.from(
@@ -1035,7 +1118,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1035
1118
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1036
1119
  const bundleId = cmpMeta.$lazyBundleId$;
1037
1120
  if (bundleId) {
1038
- const CstrImport = loadModule(cmpMeta);
1121
+ const CstrImport = loadModule(cmpMeta, hostRef);
1039
1122
  if (CstrImport && "then" in CstrImport) {
1040
1123
  const endLoad = uniqueTime();
1041
1124
  Cstr = await CstrImport;
@@ -1060,7 +1143,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1060
1143
  try {
1061
1144
  new Cstr(hostRef);
1062
1145
  } catch (e) {
1063
- consoleError(e);
1146
+ consoleError(e, elm);
1064
1147
  }
1065
1148
  {
1066
1149
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1095,7 +1178,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1095
1178
  schedule();
1096
1179
  }
1097
1180
  };
1098
- var fireConnectedCallback = (instance) => {
1181
+ var fireConnectedCallback = (instance, elm) => {
1099
1182
  };
1100
1183
 
1101
1184
  // src/runtime/connected-callback.ts
@@ -1135,20 +1218,26 @@ var connectedCallback = (elm) => {
1135
1218
  endConnected();
1136
1219
  }
1137
1220
  };
1138
- var disconnectInstance = (instance) => {
1221
+ var disconnectInstance = (instance, elm) => {
1139
1222
  {
1140
- safeCall(instance, "disconnectedCallback");
1223
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1141
1224
  }
1142
1225
  };
1143
1226
  var disconnectedCallback = async (elm) => {
1144
1227
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1145
1228
  const hostRef = getHostRef(elm);
1146
1229
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1147
- disconnectInstance(hostRef.$lazyInstance$);
1230
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1148
1231
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1149
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1232
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1150
1233
  }
1151
1234
  }
1235
+ if (rootAppliedStyles.has(elm)) {
1236
+ rootAppliedStyles.delete(elm);
1237
+ }
1238
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1239
+ rootAppliedStyles.delete(elm.shadowRoot);
1240
+ }
1152
1241
  };
1153
1242
 
1154
1243
  // src/runtime/bootstrap-lazy.ts
@@ -1229,6 +1318,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1229
1318
  }
1230
1319
  disconnectedCallback() {
1231
1320
  plt.jmp(() => disconnectedCallback(this));
1321
+ plt.raf(() => {
1322
+ var _a3;
1323
+ const hostRef = getHostRef(this);
1324
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1325
+ if (i2 > -1) {
1326
+ deferredConnectedCallbacks.splice(i2, 1);
1327
+ }
1328
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1329
+ delete hostRef.$vnode$.$elm$;
1330
+ }
1331
+ });
1232
1332
  }
1233
1333
  componentOnReady() {
1234
1334
  return getHostRef(this).$onReadyPromise$;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-43a33fec.js');
5
+ const index = require('./index-8df72484.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["user-deposit-withdrawal.cjs",[[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],"limitStylingAppends":[32],"dynamicHeight":[32],"cashierInfoUrl":[32]},null,{"session":["watchLoadWidget"],"userId":["watchLoadWidget"],"isShortCashier":["watchLoadWidget"],"currency":["watchLoadWidget"],"showBonusSelectionInput":["watchLoadWidget"]}]]]], options);
11
+ return index.bootstrapLazy([["user-deposit-withdrawal.cjs",[[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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;