@everymatrix/player-kyc-verification 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/cjs/{index-daff3a22.js → index-3d423bf2.js} +178 -73
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/player-kyc-verification.cjs.entry.js +117 -39
  4. package/dist/cjs/player-kyc-verification.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/player-kyc-verification/player-kyc-verification.js +102 -38
  7. package/dist/esm/{index-0437c9c0.js → index-b1bdf3f6.js} +178 -73
  8. package/dist/esm/loader.js +3 -3
  9. package/dist/esm/player-kyc-verification.entry.js +117 -39
  10. package/dist/esm/player-kyc-verification.js +4 -4
  11. package/dist/player-kyc-verification/{p-b3fd2bad.entry.js → p-289f3a88.entry.js} +1 -1
  12. package/dist/player-kyc-verification/p-9f9b0d8d.js +2 -0
  13. package/dist/player-kyc-verification/player-kyc-verification.esm.js +1 -1
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/components/player-kyc-verification/player-kyc-verification.d.ts +5 -4
  17. package/dist/types/components.d.ts +2 -0
  18. package/package.json +1 -1
  19. package/dist/player-kyc-verification/p-78759d45.js +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/packages/stencil/player-kyc-verification/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-kyc-verification/.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 = 'player-kyc-verification';
24
- const BUILD = /* player-kyc-verification */ { 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: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: true, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* player-kyc-verification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: true, vdomKey: false, 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";
@@ -366,7 +373,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
366
373
  }
367
374
  if (!appliedStyles.has(scopeId2)) {
368
375
  {
369
- styleElm = doc.createElement("style");
376
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
370
377
  styleElm.innerHTML = style;
371
378
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
372
379
  if (nonce != null) {
@@ -376,7 +383,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
376
383
  if (styleContainerNode.nodeName === "HEAD") {
377
384
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
378
385
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
379
- styleContainerNode.insertBefore(styleElm, referenceNode2);
386
+ styleContainerNode.insertBefore(
387
+ styleElm,
388
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
389
+ );
380
390
  } else if ("host" in styleContainerNode) {
381
391
  if (supportsConstructableStylesheets) {
382
392
  const stylesheet = new CSSStyleSheet();
@@ -394,7 +404,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
394
404
  styleContainerNode.append(styleElm);
395
405
  }
396
406
  }
397
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
407
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
398
408
  styleContainerNode.insertBefore(styleElm, null);
399
409
  }
400
410
  }
@@ -419,23 +429,25 @@ var attachStyles = (hostRef) => {
419
429
  const scopeId2 = addStyle(
420
430
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
421
431
  cmpMeta);
422
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
432
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
423
433
  elm["s-sc"] = scopeId2;
424
434
  elm.classList.add(scopeId2 + "-h");
425
435
  }
426
436
  endAttachStyles();
427
437
  };
428
438
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
429
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
439
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
430
440
  if (oldValue !== newValue) {
431
441
  let isProp = isMemberInElement(elm, memberName);
432
442
  let ln = memberName.toLowerCase();
433
443
  if (memberName === "class") {
434
444
  const classList = elm.classList;
435
445
  const oldClasses = parseClassList(oldValue);
436
- const newClasses = parseClassList(newValue);
437
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
438
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
446
+ let newClasses = parseClassList(newValue);
447
+ {
448
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
449
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
450
+ }
439
451
  } else if (memberName === "style") {
440
452
  {
441
453
  for (const prop in oldValue) {
@@ -494,7 +506,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
494
506
  elm.setAttribute(memberName, n);
495
507
  }
496
508
  }
497
- } else {
509
+ } else if (elm[memberName] !== newValue) {
498
510
  elm[memberName] = newValue;
499
511
  }
500
512
  } catch (e) {
@@ -516,24 +528,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
516
528
  }
517
529
  };
518
530
  var parseClassListRegex = /\s/;
519
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
531
+ var parseClassList = (value) => {
532
+ if (typeof value === "object" && value && "baseVal" in value) {
533
+ value = value.baseVal;
534
+ }
535
+ if (!value || typeof value !== "string") {
536
+ return [];
537
+ }
538
+ return value.split(parseClassListRegex);
539
+ };
520
540
  var CAPTURE_EVENT_SUFFIX = "Capture";
521
541
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
522
542
 
523
543
  // src/runtime/vdom/update-element.ts
524
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
544
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
525
545
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
526
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
527
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
546
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
547
+ const newVnodeAttrs = newVnode.$attrs$ || {};
528
548
  {
529
549
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
530
550
  if (!(memberName in newVnodeAttrs)) {
531
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
551
+ setAccessor(
552
+ elm,
553
+ memberName,
554
+ oldVnodeAttrs[memberName],
555
+ void 0,
556
+ isSvgMode2,
557
+ newVnode.$flags$);
532
558
  }
533
559
  }
534
560
  }
535
561
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
536
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
562
+ setAccessor(
563
+ elm,
564
+ memberName,
565
+ oldVnodeAttrs[memberName],
566
+ newVnodeAttrs[memberName],
567
+ isSvgMode2,
568
+ newVnode.$flags$);
537
569
  }
538
570
  };
539
571
  function sortedAttrNames(attrNames) {
@@ -545,13 +577,10 @@ function sortedAttrNames(attrNames) {
545
577
  attrNames
546
578
  );
547
579
  }
548
-
549
- // src/runtime/vdom/vdom-render.ts
550
- var scopeId;
551
580
  var hostTagName;
552
581
  var useNativeShadowDom = false;
553
582
  var isSvgMode = false;
554
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
583
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
555
584
  const newVNode2 = newParentVNode.$children$[childIndex];
556
585
  let i2 = 0;
557
586
  let elm;
@@ -572,11 +601,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
572
601
  {
573
602
  updateElement(null, newVNode2, isSvgMode);
574
603
  }
575
- const rootNode = elm.getRootNode();
576
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
577
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
578
- elm.classList.add(elm["s-si"] = scopeId);
579
- }
580
604
  if (newVNode2.$children$) {
581
605
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
582
606
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -688,6 +712,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
688
712
  };
689
713
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
690
714
  if (leftVNode.$tag$ === rightVNode.$tag$) {
715
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
716
+ leftVNode.$key$ = rightVNode.$key$;
717
+ }
691
718
  return true;
692
719
  }
693
720
  return false;
@@ -734,8 +761,9 @@ var nullifyVNodeRefs = (vNode) => {
734
761
  }
735
762
  };
736
763
  var insertBefore = (parent, newNode, reference) => {
737
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
738
- return inserted;
764
+ {
765
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
766
+ }
739
767
  };
740
768
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
741
769
  const hostElm = hostRef.$hostElement$;
@@ -754,17 +782,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
754
782
  rootVnode.$flags$ |= 4 /* isHost */;
755
783
  hostRef.$vnode$ = rootVnode;
756
784
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
757
- {
758
- scopeId = hostElm["s-sc"];
759
- }
760
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
785
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
761
786
  patch(oldVNode, rootVnode, isInitialLoad);
762
787
  };
763
788
 
764
789
  // src/runtime/update-component.ts
765
790
  var attachToAncestor = (hostRef, ancestorComponent) => {
766
791
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
767
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
792
+ const index = ancestorComponent["s-p"].push(
793
+ new Promise(
794
+ (r) => hostRef.$onRenderResolve$ = () => {
795
+ ancestorComponent["s-p"].splice(index - 1, 1);
796
+ r();
797
+ }
798
+ )
799
+ );
768
800
  }
769
801
  };
770
802
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -791,7 +823,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
791
823
  let maybePromise;
792
824
  if (isInitialLoad) {
793
825
  {
794
- maybePromise = safeCall(instance, "componentWillLoad");
826
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
795
827
  }
796
828
  }
797
829
  endSchedule();
@@ -859,16 +891,13 @@ var postUpdateComponent = (hostRef) => {
859
891
  const endPostUpdate = createTime("postUpdate", tagName);
860
892
  const instance = hostRef.$lazyInstance$ ;
861
893
  const ancestorComponent = hostRef.$ancestorComponent$;
862
- {
863
- safeCall(instance, "componentDidRender");
864
- }
865
894
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
866
895
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
867
896
  {
868
897
  addHydratedFlag(elm);
869
898
  }
870
899
  {
871
- safeCall(instance, "componentDidLoad");
900
+ safeCall(instance, "componentDidLoad", void 0, elm);
872
901
  }
873
902
  endPostUpdate();
874
903
  {
@@ -892,17 +921,14 @@ var postUpdateComponent = (hostRef) => {
892
921
  }
893
922
  };
894
923
  var appDidLoad = (who) => {
895
- {
896
- addHydratedFlag(doc.documentElement);
897
- }
898
924
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
899
925
  };
900
- var safeCall = (instance, method, arg) => {
926
+ var safeCall = (instance, method, arg, elm) => {
901
927
  if (instance && instance[method]) {
902
928
  try {
903
929
  return instance[method](arg);
904
930
  } catch (e) {
905
- consoleError(e);
931
+ consoleError(e, elm);
906
932
  }
907
933
  }
908
934
  return void 0;
@@ -961,15 +987,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
961
987
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
962
988
  members.map(([memberName, [memberFlags]]) => {
963
989
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
990
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
991
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
992
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
993
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
994
+ Object.defineProperty(prototype, memberName, {
995
+ get() {
996
+ {
997
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
998
+ return getValue(this, memberName);
999
+ }
1000
+ const ref = getHostRef(this);
1001
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1002
+ if (!instance) return;
1003
+ return instance[memberName];
1004
+ }
1005
+ },
1006
+ configurable: true,
1007
+ enumerable: true
1008
+ });
1009
+ }
964
1010
  Object.defineProperty(prototype, memberName, {
965
- get() {
966
- return getValue(this, memberName);
967
- },
968
1011
  set(newValue) {
969
- setValue(this, memberName, newValue, cmpMeta);
970
- },
971
- configurable: true,
972
- enumerable: true
1012
+ const ref = getHostRef(this);
1013
+ if (origSetter) {
1014
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1015
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1016
+ newValue = ref.$instanceValues$.get(memberName);
1017
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1018
+ ref.$instanceValues$.set(memberName, currentValue);
1019
+ }
1020
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1021
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1022
+ setValue(this, memberName, newValue, cmpMeta);
1023
+ return;
1024
+ }
1025
+ {
1026
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1027
+ setValue(this, memberName, newValue, cmpMeta);
1028
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1029
+ ref.$onReadyPromise$.then(() => {
1030
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1031
+ ref.$lazyInstance$[memberName] = newValue;
1032
+ }
1033
+ });
1034
+ }
1035
+ return;
1036
+ }
1037
+ const setterSetVal = () => {
1038
+ const currentValue = ref.$lazyInstance$[memberName];
1039
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1040
+ ref.$instanceValues$.set(memberName, currentValue);
1041
+ }
1042
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1043
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1044
+ };
1045
+ if (ref.$lazyInstance$) {
1046
+ setterSetVal();
1047
+ } else {
1048
+ ref.$onReadyPromise$.then(() => setterSetVal());
1049
+ }
1050
+ }
1051
+ }
973
1052
  });
974
1053
  }
975
1054
  });
@@ -979,7 +1058,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
979
1058
  plt.jmp(() => {
980
1059
  var _a2;
981
1060
  const propName = attrNameToPropName.get(attrName);
982
- if (this.hasOwnProperty(propName)) {
1061
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
983
1062
  newValue = this[propName];
984
1063
  delete this[propName];
985
1064
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -999,7 +1078,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
999
1078
  }
1000
1079
  return;
1001
1080
  }
1002
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1081
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1082
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1083
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1084
+ this[propName] = newValue;
1085
+ }
1003
1086
  });
1004
1087
  };
1005
1088
  Cstr.observedAttributes = Array.from(
@@ -1024,7 +1107,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1024
1107
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1025
1108
  const bundleId = cmpMeta.$lazyBundleId$;
1026
1109
  if (bundleId) {
1027
- const CstrImport = loadModule(cmpMeta);
1110
+ const CstrImport = loadModule(cmpMeta, hostRef);
1028
1111
  if (CstrImport && "then" in CstrImport) {
1029
1112
  const endLoad = uniqueTime();
1030
1113
  Cstr = await CstrImport;
@@ -1049,7 +1132,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1049
1132
  try {
1050
1133
  new Cstr(hostRef);
1051
1134
  } catch (e) {
1052
- consoleError(e);
1135
+ consoleError(e, elm);
1053
1136
  }
1054
1137
  {
1055
1138
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1084,7 +1167,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1084
1167
  schedule();
1085
1168
  }
1086
1169
  };
1087
- var fireConnectedCallback = (instance) => {
1170
+ var fireConnectedCallback = (instance, elm) => {
1088
1171
  };
1089
1172
 
1090
1173
  // src/runtime/connected-callback.ts
@@ -1124,15 +1207,26 @@ var connectedCallback = (elm) => {
1124
1207
  endConnected();
1125
1208
  }
1126
1209
  };
1127
- var disconnectInstance = (instance) => {
1210
+ var disconnectInstance = (instance, elm) => {
1211
+ {
1212
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1213
+ }
1128
1214
  };
1129
1215
  var disconnectedCallback = async (elm) => {
1130
1216
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1131
1217
  const hostRef = getHostRef(elm);
1132
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1133
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1218
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1219
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1220
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1221
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1134
1222
  }
1135
1223
  }
1224
+ if (rootAppliedStyles.has(elm)) {
1225
+ rootAppliedStyles.delete(elm);
1226
+ }
1227
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1228
+ rootAppliedStyles.delete(elm.shadowRoot);
1229
+ }
1136
1230
  };
1137
1231
 
1138
1232
  // src/runtime/bootstrap-lazy.ts
@@ -1210,6 +1304,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1210
1304
  }
1211
1305
  disconnectedCallback() {
1212
1306
  plt.jmp(() => disconnectedCallback(this));
1307
+ plt.raf(() => {
1308
+ var _a3;
1309
+ const hostRef = getHostRef(this);
1310
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1311
+ if (i2 > -1) {
1312
+ deferredConnectedCallbacks.splice(i2, 1);
1313
+ }
1314
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1315
+ delete hostRef.$vnode$.$elm$;
1316
+ }
1317
+ });
1213
1318
  }
1214
1319
  componentOnReady() {
1215
1320
  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-daff3a22.js');
5
+ const index = require('./index-3d423bf2.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([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"verificationType":[32],"isLoading":[32],"stylingAppends":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
11
+ return index.bootstrapLazy([["player-kyc-verification.cjs",[[1,"player-kyc-verification",{"userId":[1,"user-id"],"session":[1],"language":[1],"endpoint":[1],"translationUrl":[1,"translation-url"],"clientStyling":[1,"client-styling"],"verifiedIcon":[1,"verified-icon"],"failedIcon":[1,"failed-icon"],"defaultIcon":[1,"default-icon"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"verificationType":[32],"isLoading":[32],"selectedFile":[32],"uploadingStatus":[32],"uploadSizeExceeded":[32],"selectedOption":[32],"expandedOnDesktop":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;