@everymatrix/player-sms-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-1ab65bbf.js → index-2de7dcf7.js} +174 -68
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/player-sms-verification.cjs.entry.js +102 -39
  4. package/dist/cjs/player-sms-verification.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/player-sms-verification/player-sms-verification.js +76 -38
  7. package/dist/esm/{index-2261775b.js → index-3ab66176.js} +174 -68
  8. package/dist/esm/loader.js +3 -3
  9. package/dist/esm/player-sms-verification.entry.js +102 -39
  10. package/dist/esm/player-sms-verification.js +4 -4
  11. package/dist/player-sms-verification/{p-9cdfa3fa.entry.js → p-8b381f95.entry.js} +1 -1
  12. package/dist/player-sms-verification/p-e4128523.js +2 -0
  13. package/dist/player-sms-verification/player-sms-verification.esm.js +1 -1
  14. 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 +2 -0
  15. 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 +2 -0
  16. package/dist/types/components/player-sms-verification/player-sms-verification.d.ts +5 -3
  17. package/dist/types/components.d.ts +2 -0
  18. package/package.json +1 -1
  19. package/dist/player-sms-verification/p-3e6eb9ea.js +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-sms-verification/.stencil/packages/stencil/player-sms-verification/stencil.config.d.ts +0 -2
  21. 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 +0 -2
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-sms-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-sms-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-sms-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-sms-verification/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'player-sms-verification';
24
- const BUILD = /* player-sms-verification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, 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 };
24
+ const BUILD = /* player-sms-verification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: 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: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.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/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -150,12 +161,6 @@ var flush = () => {
150
161
  };
151
162
  var nextTick = (cb) => promiseResolve().then(cb);
152
163
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
-
154
- // src/utils/constants.ts
155
- var EMPTY_OBJ = {};
156
-
157
- // src/utils/helpers.ts
158
- var isDef = (v) => v != null;
159
164
  var isComplexType = (o) => {
160
165
  o = typeof o;
161
166
  return o === "object" || o === "function";
@@ -337,7 +342,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
337
342
  }
338
343
  if (!appliedStyles.has(scopeId2)) {
339
344
  {
340
- styleElm = doc.createElement("style");
345
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
341
346
  styleElm.innerHTML = style;
342
347
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
343
348
  if (nonce != null) {
@@ -347,7 +352,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
347
352
  if (styleContainerNode.nodeName === "HEAD") {
348
353
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
349
354
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
350
- styleContainerNode.insertBefore(styleElm, referenceNode2);
355
+ styleContainerNode.insertBefore(
356
+ styleElm,
357
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
358
+ );
351
359
  } else if ("host" in styleContainerNode) {
352
360
  if (supportsConstructableStylesheets) {
353
361
  const stylesheet = new CSSStyleSheet();
@@ -365,7 +373,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
365
373
  styleContainerNode.append(styleElm);
366
374
  }
367
375
  }
368
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
376
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
369
377
  styleContainerNode.insertBefore(styleElm, null);
370
378
  }
371
379
  }
@@ -390,23 +398,25 @@ var attachStyles = (hostRef) => {
390
398
  const scopeId2 = addStyle(
391
399
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
392
400
  cmpMeta);
393
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
401
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
394
402
  elm["s-sc"] = scopeId2;
395
403
  elm.classList.add(scopeId2 + "-h");
396
404
  }
397
405
  endAttachStyles();
398
406
  };
399
407
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
400
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
408
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
401
409
  if (oldValue !== newValue) {
402
410
  let isProp = isMemberInElement(elm, memberName);
403
411
  let ln = memberName.toLowerCase();
404
412
  if (memberName === "class") {
405
413
  const classList = elm.classList;
406
414
  const oldClasses = parseClassList(oldValue);
407
- const newClasses = parseClassList(newValue);
408
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
409
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
415
+ let newClasses = parseClassList(newValue);
416
+ {
417
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
418
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
419
+ }
410
420
  } else if (memberName === "key") ; else if (memberName === "ref") {
411
421
  if (newValue) {
412
422
  newValue(elm);
@@ -444,7 +454,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
454
  elm.setAttribute(memberName, n);
445
455
  }
446
456
  }
447
- } else {
457
+ } else if (elm[memberName] !== newValue) {
448
458
  elm[memberName] = newValue;
449
459
  }
450
460
  } catch (e) {
@@ -466,24 +476,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
466
476
  }
467
477
  };
468
478
  var parseClassListRegex = /\s/;
469
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
479
+ var parseClassList = (value) => {
480
+ if (typeof value === "object" && value && "baseVal" in value) {
481
+ value = value.baseVal;
482
+ }
483
+ if (!value || typeof value !== "string") {
484
+ return [];
485
+ }
486
+ return value.split(parseClassListRegex);
487
+ };
470
488
  var CAPTURE_EVENT_SUFFIX = "Capture";
471
489
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
472
490
 
473
491
  // src/runtime/vdom/update-element.ts
474
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
492
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
475
493
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
476
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
477
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
494
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
495
+ const newVnodeAttrs = newVnode.$attrs$ || {};
478
496
  {
479
497
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
480
498
  if (!(memberName in newVnodeAttrs)) {
481
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
499
+ setAccessor(
500
+ elm,
501
+ memberName,
502
+ oldVnodeAttrs[memberName],
503
+ void 0,
504
+ isSvgMode2,
505
+ newVnode.$flags$);
482
506
  }
483
507
  }
484
508
  }
485
509
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
486
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
510
+ setAccessor(
511
+ elm,
512
+ memberName,
513
+ oldVnodeAttrs[memberName],
514
+ newVnodeAttrs[memberName],
515
+ isSvgMode2,
516
+ newVnode.$flags$);
487
517
  }
488
518
  };
489
519
  function sortedAttrNames(attrNames) {
@@ -495,13 +525,10 @@ function sortedAttrNames(attrNames) {
495
525
  attrNames
496
526
  );
497
527
  }
498
-
499
- // src/runtime/vdom/vdom-render.ts
500
- var scopeId;
501
528
  var hostTagName;
502
529
  var useNativeShadowDom = false;
503
530
  var isSvgMode = false;
504
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
531
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
505
532
  const newVNode2 = newParentVNode.$children$[childIndex];
506
533
  let i2 = 0;
507
534
  let elm;
@@ -515,11 +542,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
515
542
  {
516
543
  updateElement(null, newVNode2, isSvgMode);
517
544
  }
518
- const rootNode = elm.getRootNode();
519
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
520
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
521
- elm.classList.add(elm["s-si"] = scopeId);
522
- }
523
545
  if (newVNode2.$children$) {
524
546
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
525
547
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -649,6 +671,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
649
671
  if (!isInitialRender) {
650
672
  return leftVNode.$key$ === rightVNode.$key$;
651
673
  }
674
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
675
+ leftVNode.$key$ = rightVNode.$key$;
676
+ }
652
677
  return true;
653
678
  }
654
679
  return false;
@@ -688,8 +713,9 @@ var nullifyVNodeRefs = (vNode) => {
688
713
  }
689
714
  };
690
715
  var insertBefore = (parent, newNode, reference) => {
691
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
692
- return inserted;
716
+ {
717
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
718
+ }
693
719
  };
694
720
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
695
721
  const hostElm = hostRef.$hostElement$;
@@ -714,17 +740,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
714
740
  rootVnode.$flags$ |= 4 /* isHost */;
715
741
  hostRef.$vnode$ = rootVnode;
716
742
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
717
- {
718
- scopeId = hostElm["s-sc"];
719
- }
720
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
743
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
721
744
  patch(oldVNode, rootVnode, isInitialLoad);
722
745
  };
723
746
 
724
747
  // src/runtime/update-component.ts
725
748
  var attachToAncestor = (hostRef, ancestorComponent) => {
726
749
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
727
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
750
+ const index = ancestorComponent["s-p"].push(
751
+ new Promise(
752
+ (r) => hostRef.$onRenderResolve$ = () => {
753
+ ancestorComponent["s-p"].splice(index - 1, 1);
754
+ r();
755
+ }
756
+ )
757
+ );
728
758
  }
729
759
  };
730
760
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -751,7 +781,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
751
781
  let maybePromise;
752
782
  if (isInitialLoad) {
753
783
  {
754
- maybePromise = safeCall(instance, "componentWillLoad");
784
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
755
785
  }
756
786
  }
757
787
  endSchedule();
@@ -825,7 +855,7 @@ var postUpdateComponent = (hostRef) => {
825
855
  addHydratedFlag(elm);
826
856
  }
827
857
  {
828
- safeCall(instance, "componentDidLoad");
858
+ safeCall(instance, "componentDidLoad", void 0, elm);
829
859
  }
830
860
  endPostUpdate();
831
861
  {
@@ -849,17 +879,14 @@ var postUpdateComponent = (hostRef) => {
849
879
  }
850
880
  };
851
881
  var appDidLoad = (who) => {
852
- {
853
- addHydratedFlag(doc.documentElement);
854
- }
855
882
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
856
883
  };
857
- var safeCall = (instance, method, arg) => {
884
+ var safeCall = (instance, method, arg, elm) => {
858
885
  if (instance && instance[method]) {
859
886
  try {
860
887
  return instance[method](arg);
861
888
  } catch (e) {
862
- consoleError(e);
889
+ consoleError(e, elm);
863
890
  }
864
891
  }
865
892
  return void 0;
@@ -918,15 +945,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
918
945
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
919
946
  members.map(([memberName, [memberFlags]]) => {
920
947
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
948
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
949
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
950
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
951
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
952
+ Object.defineProperty(prototype, memberName, {
953
+ get() {
954
+ {
955
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
956
+ return getValue(this, memberName);
957
+ }
958
+ const ref = getHostRef(this);
959
+ const instance = ref ? ref.$lazyInstance$ : prototype;
960
+ if (!instance) return;
961
+ return instance[memberName];
962
+ }
963
+ },
964
+ configurable: true,
965
+ enumerable: true
966
+ });
967
+ }
921
968
  Object.defineProperty(prototype, memberName, {
922
- get() {
923
- return getValue(this, memberName);
924
- },
925
969
  set(newValue) {
926
- setValue(this, memberName, newValue, cmpMeta);
927
- },
928
- configurable: true,
929
- enumerable: true
970
+ const ref = getHostRef(this);
971
+ if (origSetter) {
972
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
973
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
974
+ newValue = ref.$instanceValues$.get(memberName);
975
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
976
+ ref.$instanceValues$.set(memberName, currentValue);
977
+ }
978
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
979
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
980
+ setValue(this, memberName, newValue, cmpMeta);
981
+ return;
982
+ }
983
+ {
984
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
985
+ setValue(this, memberName, newValue, cmpMeta);
986
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
987
+ ref.$onReadyPromise$.then(() => {
988
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
989
+ ref.$lazyInstance$[memberName] = newValue;
990
+ }
991
+ });
992
+ }
993
+ return;
994
+ }
995
+ const setterSetVal = () => {
996
+ const currentValue = ref.$lazyInstance$[memberName];
997
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
998
+ ref.$instanceValues$.set(memberName, currentValue);
999
+ }
1000
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1001
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1002
+ };
1003
+ if (ref.$lazyInstance$) {
1004
+ setterSetVal();
1005
+ } else {
1006
+ ref.$onReadyPromise$.then(() => setterSetVal());
1007
+ }
1008
+ }
1009
+ }
930
1010
  });
931
1011
  }
932
1012
  });
@@ -936,7 +1016,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
936
1016
  plt.jmp(() => {
937
1017
  var _a2;
938
1018
  const propName = attrNameToPropName.get(attrName);
939
- if (this.hasOwnProperty(propName)) {
1019
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
940
1020
  newValue = this[propName];
941
1021
  delete this[propName];
942
1022
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -956,7 +1036,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
956
1036
  }
957
1037
  return;
958
1038
  }
959
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1039
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1040
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1041
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1042
+ this[propName] = newValue;
1043
+ }
960
1044
  });
961
1045
  };
962
1046
  Cstr.observedAttributes = Array.from(
@@ -985,7 +1069,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
985
1069
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
986
1070
  const bundleId = cmpMeta.$lazyBundleId$;
987
1071
  if (bundleId) {
988
- const CstrImport = loadModule(cmpMeta);
1072
+ const CstrImport = loadModule(cmpMeta, hostRef);
989
1073
  if (CstrImport && "then" in CstrImport) {
990
1074
  const endLoad = uniqueTime();
991
1075
  Cstr = await CstrImport;
@@ -1010,7 +1094,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1010
1094
  try {
1011
1095
  new Cstr(hostRef);
1012
1096
  } catch (e) {
1013
- consoleError(e);
1097
+ consoleError(e, elm);
1014
1098
  }
1015
1099
  {
1016
1100
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1045,7 +1129,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1045
1129
  schedule();
1046
1130
  }
1047
1131
  };
1048
- var fireConnectedCallback = (instance) => {
1132
+ var fireConnectedCallback = (instance, elm) => {
1049
1133
  };
1050
1134
 
1051
1135
  // src/runtime/connected-callback.ts
@@ -1085,15 +1169,26 @@ var connectedCallback = (elm) => {
1085
1169
  endConnected();
1086
1170
  }
1087
1171
  };
1088
- var disconnectInstance = (instance) => {
1172
+ var disconnectInstance = (instance, elm) => {
1173
+ {
1174
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1175
+ }
1089
1176
  };
1090
1177
  var disconnectedCallback = async (elm) => {
1091
1178
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1092
1179
  const hostRef = getHostRef(elm);
1093
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1094
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1180
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1181
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1182
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1183
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1095
1184
  }
1096
1185
  }
1186
+ if (rootAppliedStyles.has(elm)) {
1187
+ rootAppliedStyles.delete(elm);
1188
+ }
1189
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1190
+ rootAppliedStyles.delete(elm.shadowRoot);
1191
+ }
1097
1192
  };
1098
1193
 
1099
1194
  // src/runtime/bootstrap-lazy.ts
@@ -1174,6 +1269,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1174
1269
  }
1175
1270
  disconnectedCallback() {
1176
1271
  plt.jmp(() => disconnectedCallback(this));
1272
+ plt.raf(() => {
1273
+ var _a3;
1274
+ const hostRef = getHostRef(this);
1275
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1276
+ if (i2 > -1) {
1277
+ deferredConnectedCallbacks.splice(i2, 1);
1278
+ }
1279
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1280
+ delete hostRef.$vnode$.$elm$;
1281
+ }
1282
+ });
1177
1283
  }
1178
1284
  componentOnReady() {
1179
1285
  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-1ab65bbf.js');
5
+ const index = require('./index-2de7dcf7.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-sms-verification.cjs",[[1,"player-sms-verification",{"endpoint":[513],"userId":[513,"user-id"],"lang":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"tempBtnResendCount":[32],"code":[32],"errMsg":[32],"msgEnterCode":[32]},null,{"clientStyling":["updateClientStyling"],"clientStylingUrl":["updateClientStyling"]}]]]], options);
11
+ return index.bootstrapLazy([["player-sms-verification.cjs",[[1,"player-sms-verification",{"endpoint":[513],"userId":[513,"user-id"],"lang":[513],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[513,"translation-url"],"tempBtnResendCount":[32],"code":[32],"errMsg":[32],"msgEnterCode":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;