@everymatrix/player-account-anonymization 0.0.1 → 0.1.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 (29) hide show
  1. package/dist/cjs/{index-88701504.js → index-0ee41316.js} +68 -171
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{player-account-anonymization-429fe440.js → player-account-anonymization-9699f47c.js} +9 -3
  5. package/dist/cjs/player-account-anonymization.cjs.entry.js +2 -2
  6. package/dist/cjs/player-account-anonymization.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +1 -1
  8. package/dist/collection/components/player-account-anonymization/player-account-anonymization.js +8 -14
  9. package/dist/esm/{index-4fdfd063.js → index-fbb53726.js} +68 -171
  10. package/dist/esm/index.js +2 -2
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/{player-account-anonymization-b70d729e.js → player-account-anonymization-1163481a.js} +9 -3
  13. package/dist/esm/player-account-anonymization.entry.js +2 -2
  14. package/dist/esm/player-account-anonymization.js +3 -3
  15. package/dist/player-account-anonymization/index.esm.js +1 -1
  16. package/dist/player-account-anonymization/p-703b5d76.js +2 -0
  17. package/dist/player-account-anonymization/p-afc71cc7.entry.js +1 -0
  18. package/dist/player-account-anonymization/p-ce405a24.js +1 -0
  19. package/dist/player-account-anonymization/player-account-anonymization.esm.js +1 -1
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-account-anonymization/.stencil/packages/stencil/player-account-anonymization/stencil.config.d.ts +2 -0
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-account-anonymization/.stencil/packages/stencil/player-account-anonymization/stencil.config.dev.d.ts +2 -0
  22. package/package.json +1 -1
  23. package/dist/player-account-anonymization/p-2d08d014.js +0 -1
  24. package/dist/player-account-anonymization/p-68174f9f.entry.js +0 -1
  25. package/dist/player-account-anonymization/p-d6962083.js +0 -2
  26. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-account-anonymization/.stencil/packages/stencil/player-account-anonymization/stencil.config.d.ts +0 -2
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-account-anonymization/.stencil/packages/stencil/player-account-anonymization/stencil.config.dev.d.ts +0 -2
  28. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-account-anonymization/.stencil/packages/stencil/player-account-anonymization/storybook/main.d.ts +0 -0
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-account-anonymization/.stencil/packages/stencil/player-account-anonymization/storybook/preview.d.ts +0 -0
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'player-account-anonymization';
24
- const BUILD = /* player-account-anonymization */ { 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, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, 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: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* player-account-anonymization */ { 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: 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: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | 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
40
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
41
35
  var getHostRef = (ref) => hostRefs.get(ref);
42
- var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
37
  var registerHost = (hostElement, cmpMeta) => {
46
38
  const hostRef = {
47
39
  $flags$: 0,
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
54
46
  hostElement["s-p"] = [];
55
47
  hostElement["s-rc"] = [];
56
48
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
58
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
59
50
  };
60
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
61
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
92
83
  /* webpackExclude: /\.system\.entry\.js$/ */
93
84
  /* webpackMode: "lazy" */
94
85
  `./${bundleId}.entry.js${""}`
95
- )); }).then(
96
- (importedModule) => {
97
- {
98
- cmpModules.set(bundleId, importedModule);
99
- }
100
- return importedModule[exportName];
101
- },
102
- (e) => {
103
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
104
89
  }
105
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
106
92
  };
107
93
 
108
94
  // src/client/client-style.ts
109
95
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
98
  var win = typeof window !== "undefined" ? window : {};
@@ -165,6 +150,14 @@ var flush = () => {
165
150
  };
166
151
  var nextTick = (cb) => promiseResolve().then(cb);
167
152
  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;
168
161
  var isComplexType = (o) => {
169
162
  o = typeof o;
170
163
  return o === "object" || o === "function";
@@ -346,7 +339,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
346
339
  }
347
340
  if (!appliedStyles.has(scopeId2)) {
348
341
  {
349
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
342
+ styleElm = doc.createElement("style");
350
343
  styleElm.innerHTML = style;
351
344
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
352
345
  if (nonce != null) {
@@ -356,10 +349,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
356
349
  if (styleContainerNode.nodeName === "HEAD") {
357
350
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
358
351
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
359
- styleContainerNode.insertBefore(
360
- styleElm,
361
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
362
- );
352
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
363
353
  } else if ("host" in styleContainerNode) {
364
354
  if (supportsConstructableStylesheets) {
365
355
  const stylesheet = new CSSStyleSheet();
@@ -377,7 +367,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
377
367
  styleContainerNode.append(styleElm);
378
368
  }
379
369
  }
380
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
370
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
381
371
  styleContainerNode.insertBefore(styleElm, null);
382
372
  }
383
373
  }
@@ -402,25 +392,23 @@ var attachStyles = (hostRef) => {
402
392
  const scopeId2 = addStyle(
403
393
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
404
394
  cmpMeta);
405
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
395
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
406
396
  elm["s-sc"] = scopeId2;
407
397
  elm.classList.add(scopeId2 + "-h");
408
398
  }
409
399
  endAttachStyles();
410
400
  };
411
401
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
412
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
402
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
413
403
  if (oldValue !== newValue) {
414
404
  let isProp = isMemberInElement(elm, memberName);
415
405
  let ln = memberName.toLowerCase();
416
406
  if (memberName === "class") {
417
407
  const classList = elm.classList;
418
408
  const oldClasses = parseClassList(oldValue);
419
- let newClasses = parseClassList(newValue);
420
- {
421
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
422
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
423
- }
409
+ const newClasses = parseClassList(newValue);
410
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
411
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
424
412
  } else if (memberName === "key") ; else if (memberName === "ref") {
425
413
  if (newValue) {
426
414
  newValue(elm);
@@ -458,7 +446,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
458
446
  elm.setAttribute(memberName, n);
459
447
  }
460
448
  }
461
- } else if (elm[memberName] !== newValue) {
449
+ } else {
462
450
  elm[memberName] = newValue;
463
451
  }
464
452
  } catch (e) {
@@ -480,44 +468,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
480
468
  }
481
469
  };
482
470
  var parseClassListRegex = /\s/;
483
- var parseClassList = (value) => {
484
- if (typeof value === "object" && value && "baseVal" in value) {
485
- value = value.baseVal;
486
- }
487
- if (!value || typeof value !== "string") {
488
- return [];
489
- }
490
- return value.split(parseClassListRegex);
491
- };
471
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
492
472
  var CAPTURE_EVENT_SUFFIX = "Capture";
493
473
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
494
474
 
495
475
  // src/runtime/vdom/update-element.ts
496
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
476
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
497
477
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
498
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
499
- const newVnodeAttrs = newVnode.$attrs$ || {};
478
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
479
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
500
480
  {
501
481
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
502
482
  if (!(memberName in newVnodeAttrs)) {
503
- setAccessor(
504
- elm,
505
- memberName,
506
- oldVnodeAttrs[memberName],
507
- void 0,
508
- isSvgMode2,
509
- newVnode.$flags$);
483
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
510
484
  }
511
485
  }
512
486
  }
513
487
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
514
- setAccessor(
515
- elm,
516
- memberName,
517
- oldVnodeAttrs[memberName],
518
- newVnodeAttrs[memberName],
519
- isSvgMode2,
520
- newVnode.$flags$);
488
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
521
489
  }
522
490
  };
523
491
  function sortedAttrNames(attrNames) {
@@ -529,10 +497,13 @@ function sortedAttrNames(attrNames) {
529
497
  attrNames
530
498
  );
531
499
  }
500
+
501
+ // src/runtime/vdom/vdom-render.ts
502
+ var scopeId;
532
503
  var hostTagName;
533
504
  var useNativeShadowDom = false;
534
505
  var isSvgMode = false;
535
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
506
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
536
507
  const newVNode2 = newParentVNode.$children$[childIndex];
537
508
  let i2 = 0;
538
509
  let elm;
@@ -553,6 +524,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
553
524
  {
554
525
  updateElement(null, newVNode2, isSvgMode);
555
526
  }
527
+ const rootNode = elm.getRootNode();
528
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
529
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
530
+ elm.classList.add(elm["s-si"] = scopeId);
531
+ }
556
532
  if (newVNode2.$children$) {
557
533
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
558
534
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -689,9 +665,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
689
665
  if (!isInitialRender) {
690
666
  return leftVNode.$key$ === rightVNode.$key$;
691
667
  }
692
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
693
- leftVNode.$key$ = rightVNode.$key$;
694
- }
695
668
  return true;
696
669
  }
697
670
  return false;
@@ -738,9 +711,8 @@ var nullifyVNodeRefs = (vNode) => {
738
711
  }
739
712
  };
740
713
  var insertBefore = (parent, newNode, reference) => {
741
- {
742
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
743
- }
714
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
715
+ return inserted;
744
716
  };
745
717
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
746
718
  const hostElm = hostRef.$hostElement$;
@@ -765,21 +737,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
765
737
  rootVnode.$flags$ |= 4 /* isHost */;
766
738
  hostRef.$vnode$ = rootVnode;
767
739
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
768
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
740
+ {
741
+ scopeId = hostElm["s-sc"];
742
+ }
743
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
769
744
  patch(oldVNode, rootVnode, isInitialLoad);
770
745
  };
771
746
 
772
747
  // src/runtime/update-component.ts
773
748
  var attachToAncestor = (hostRef, ancestorComponent) => {
774
749
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
775
- const index = ancestorComponent["s-p"].push(
776
- new Promise(
777
- (r) => hostRef.$onRenderResolve$ = () => {
778
- ancestorComponent["s-p"].splice(index - 1, 1);
779
- r();
780
- }
781
- )
782
- );
750
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
783
751
  }
784
752
  };
785
753
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -806,7 +774,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
806
774
  let maybePromise;
807
775
  if (isInitialLoad) {
808
776
  {
809
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
777
+ maybePromise = safeCall(instance, "componentWillLoad");
810
778
  }
811
779
  }
812
780
  endSchedule();
@@ -880,7 +848,7 @@ var postUpdateComponent = (hostRef) => {
880
848
  addHydratedFlag(elm);
881
849
  }
882
850
  {
883
- safeCall(instance, "componentDidLoad", void 0, elm);
851
+ safeCall(instance, "componentDidLoad");
884
852
  }
885
853
  endPostUpdate();
886
854
  {
@@ -904,14 +872,17 @@ var postUpdateComponent = (hostRef) => {
904
872
  }
905
873
  };
906
874
  var appDidLoad = (who) => {
875
+ {
876
+ addHydratedFlag(doc.documentElement);
877
+ }
907
878
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
908
879
  };
909
- var safeCall = (instance, method, arg, elm) => {
880
+ var safeCall = (instance, method, arg) => {
910
881
  if (instance && instance[method]) {
911
882
  try {
912
883
  return instance[method](arg);
913
884
  } catch (e) {
914
- consoleError(e, elm);
885
+ consoleError(e);
915
886
  }
916
887
  }
917
888
  return void 0;
@@ -970,68 +941,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
970
941
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
971
942
  members.map(([memberName, [memberFlags]]) => {
972
943
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
973
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
974
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
975
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
976
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
977
- Object.defineProperty(prototype, memberName, {
978
- get() {
979
- {
980
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
981
- return getValue(this, memberName);
982
- }
983
- const ref = getHostRef(this);
984
- const instance = ref ? ref.$lazyInstance$ : prototype;
985
- if (!instance) return;
986
- return instance[memberName];
987
- }
988
- },
989
- configurable: true,
990
- enumerable: true
991
- });
992
- }
993
944
  Object.defineProperty(prototype, memberName, {
945
+ get() {
946
+ return getValue(this, memberName);
947
+ },
994
948
  set(newValue) {
995
- const ref = getHostRef(this);
996
- if (origSetter) {
997
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
998
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
999
- newValue = ref.$instanceValues$.get(memberName);
1000
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1001
- ref.$instanceValues$.set(memberName, currentValue);
1002
- }
1003
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1004
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1005
- setValue(this, memberName, newValue, cmpMeta);
1006
- return;
1007
- }
1008
- {
1009
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1010
- setValue(this, memberName, newValue, cmpMeta);
1011
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1012
- ref.$onReadyPromise$.then(() => {
1013
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1014
- ref.$lazyInstance$[memberName] = newValue;
1015
- }
1016
- });
1017
- }
1018
- return;
1019
- }
1020
- const setterSetVal = () => {
1021
- const currentValue = ref.$lazyInstance$[memberName];
1022
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1023
- ref.$instanceValues$.set(memberName, currentValue);
1024
- }
1025
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1026
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1027
- };
1028
- if (ref.$lazyInstance$) {
1029
- setterSetVal();
1030
- } else {
1031
- ref.$onReadyPromise$.then(() => setterSetVal());
1032
- }
1033
- }
1034
- }
949
+ setValue(this, memberName, newValue, cmpMeta);
950
+ },
951
+ configurable: true,
952
+ enumerable: true
1035
953
  });
1036
954
  }
1037
955
  });
@@ -1041,7 +959,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1041
959
  plt.jmp(() => {
1042
960
  var _a2;
1043
961
  const propName = attrNameToPropName.get(attrName);
1044
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
962
+ if (this.hasOwnProperty(propName)) {
1045
963
  newValue = this[propName];
1046
964
  delete this[propName];
1047
965
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1061,11 +979,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1061
979
  }
1062
980
  return;
1063
981
  }
1064
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1065
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1066
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1067
- this[propName] = newValue;
1068
- }
982
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1069
983
  });
1070
984
  };
1071
985
  Cstr.observedAttributes = Array.from(
@@ -1094,7 +1008,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1094
1008
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1095
1009
  const bundleId = cmpMeta.$lazyBundleId$;
1096
1010
  if (bundleId) {
1097
- const CstrImport = loadModule(cmpMeta, hostRef);
1011
+ const CstrImport = loadModule(cmpMeta);
1098
1012
  if (CstrImport && "then" in CstrImport) {
1099
1013
  const endLoad = uniqueTime();
1100
1014
  Cstr = await CstrImport;
@@ -1119,7 +1033,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1119
1033
  try {
1120
1034
  new Cstr(hostRef);
1121
1035
  } catch (e) {
1122
- consoleError(e, elm);
1036
+ consoleError(e);
1123
1037
  }
1124
1038
  {
1125
1039
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1154,7 +1068,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1154
1068
  schedule();
1155
1069
  }
1156
1070
  };
1157
- var fireConnectedCallback = (instance, elm) => {
1071
+ var fireConnectedCallback = (instance) => {
1158
1072
  };
1159
1073
 
1160
1074
  // src/runtime/connected-callback.ts
@@ -1194,7 +1108,7 @@ var connectedCallback = (elm) => {
1194
1108
  endConnected();
1195
1109
  }
1196
1110
  };
1197
- var disconnectInstance = (instance, elm) => {
1111
+ var disconnectInstance = (instance) => {
1198
1112
  };
1199
1113
  var disconnectedCallback = async (elm) => {
1200
1114
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1203,12 +1117,6 @@ var disconnectedCallback = async (elm) => {
1203
1117
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1204
1118
  }
1205
1119
  }
1206
- if (rootAppliedStyles.has(elm)) {
1207
- rootAppliedStyles.delete(elm);
1208
- }
1209
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1210
- rootAppliedStyles.delete(elm.shadowRoot);
1211
- }
1212
1120
  };
1213
1121
 
1214
1122
  // src/runtime/bootstrap-lazy.ts
@@ -1289,17 +1197,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1289
1197
  }
1290
1198
  disconnectedCallback() {
1291
1199
  plt.jmp(() => disconnectedCallback(this));
1292
- plt.raf(() => {
1293
- var _a3;
1294
- const hostRef = getHostRef(this);
1295
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1296
- if (i2 > -1) {
1297
- deferredConnectedCallbacks.splice(i2, 1);
1298
- }
1299
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1300
- delete hostRef.$vnode$.$elm$;
1301
- }
1302
- });
1303
1200
  }
1304
1201
  componentOnReady() {
1305
1202
  return getHostRef(this).$onReadyPromise$;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const playerAccountAnonymization = require('./player-account-anonymization-429fe440.js');
6
- require('./index-88701504.js');
5
+ const playerAccountAnonymization = require('./player-account-anonymization-9699f47c.js');
6
+ require('./index-0ee41316.js');
7
7
 
8
8
 
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-88701504.js');
5
+ const index = require('./index-0ee41316.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-88701504.js');
3
+ const index = require('./index-0ee41316.js');
4
4
 
5
5
  const DEFAULT_LANGUAGE = 'en';
6
6
  const TRANSLATIONS = {
@@ -138,8 +138,6 @@ const PlayerAccountAnonymizationStyle0 = playerAccountAnonymizationCss;
138
138
  const PlayerAccountAnonymization = class {
139
139
  constructor(hostRef) {
140
140
  index.registerInstance(this, hostRef);
141
- this.isMobile = checkDeviceType() === 'mobile' || checkDeviceType() === 'tablet';
142
- this.displayConfirmationPopup = false;
143
141
  this.setClientStyling = () => {
144
142
  const sheet = document.createElement('style');
145
143
  sheet.innerHTML = this.clientStyling;
@@ -187,6 +185,14 @@ const PlayerAccountAnonymization = class {
187
185
  }
188
186
  });
189
187
  };
188
+ this.endpoint = undefined;
189
+ this.language = undefined;
190
+ this.session = undefined;
191
+ this.clientStyling = undefined;
192
+ this.clientStylingUrl = undefined;
193
+ this.translationUrl = undefined;
194
+ this.isMobile = checkDeviceType() === 'mobile' || checkDeviceType() === 'tablet';
195
+ this.displayConfirmationPopup = false;
190
196
  }
191
197
  updateClientStyling() {
192
198
  if (this.clientStyling)
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const playerAccountAnonymization = require('./player-account-anonymization-429fe440.js');
6
- require('./index-88701504.js');
5
+ const playerAccountAnonymization = require('./player-account-anonymization-9699f47c.js');
6
+ require('./index-0ee41316.js');
7
7
 
8
8
 
9
9
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-88701504.js');
5
+ const index = require('./index-0ee41316.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('player-account-anonymization.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
7
+ "version": "4.22.3",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -3,8 +3,6 @@ import { getTranslations, translate } from "../../utils/locale.utils";
3
3
  import { checkDeviceType } from "../../utils/utils";
4
4
  export class PlayerAccountAnonymization {
5
5
  constructor() {
6
- this.isMobile = checkDeviceType() === 'mobile' || checkDeviceType() === 'tablet';
7
- this.displayConfirmationPopup = false;
8
6
  this.setClientStyling = () => {
9
7
  const sheet = document.createElement('style');
10
8
  sheet.innerHTML = this.clientStyling;
@@ -52,6 +50,14 @@ export class PlayerAccountAnonymization {
52
50
  }
53
51
  });
54
52
  };
53
+ this.endpoint = undefined;
54
+ this.language = undefined;
55
+ this.session = undefined;
56
+ this.clientStyling = undefined;
57
+ this.clientStylingUrl = undefined;
58
+ this.translationUrl = undefined;
59
+ this.isMobile = checkDeviceType() === 'mobile' || checkDeviceType() === 'tablet';
60
+ this.displayConfirmationPopup = false;
55
61
  }
56
62
  updateClientStyling() {
57
63
  if (this.clientStyling)
@@ -112,8 +118,6 @@ export class PlayerAccountAnonymization {
112
118
  "tags": [],
113
119
  "text": "endpoint"
114
120
  },
115
- "getter": false,
116
- "setter": false,
117
121
  "attribute": "endpoint",
118
122
  "reflect": true
119
123
  },
@@ -131,8 +135,6 @@ export class PlayerAccountAnonymization {
131
135
  "tags": [],
132
136
  "text": "language"
133
137
  },
134
- "getter": false,
135
- "setter": false,
136
138
  "attribute": "language",
137
139
  "reflect": true
138
140
  },
@@ -150,8 +152,6 @@ export class PlayerAccountAnonymization {
150
152
  "tags": [],
151
153
  "text": "player session"
152
154
  },
153
- "getter": false,
154
- "setter": false,
155
155
  "attribute": "session",
156
156
  "reflect": true
157
157
  },
@@ -169,8 +169,6 @@ export class PlayerAccountAnonymization {
169
169
  "tags": [],
170
170
  "text": "clientStyling"
171
171
  },
172
- "getter": false,
173
- "setter": false,
174
172
  "attribute": "client-styling",
175
173
  "reflect": true
176
174
  },
@@ -188,8 +186,6 @@ export class PlayerAccountAnonymization {
188
186
  "tags": [],
189
187
  "text": "clientStylingUrl"
190
188
  },
191
- "getter": false,
192
- "setter": false,
193
189
  "attribute": "client-styling-url",
194
190
  "reflect": true
195
191
  },
@@ -207,8 +203,6 @@ export class PlayerAccountAnonymization {
207
203
  "tags": [],
208
204
  "text": "translationUrl"
209
205
  },
210
- "getter": false,
211
- "setter": false,
212
206
  "attribute": "translation-url",
213
207
  "reflect": true
214
208
  }