@everymatrix/temporary-consents 1.56.0 → 1.56.2

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-a64745fe.js → index-bcfab05e.js} +66 -201
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/temporary-consents.cjs.entry.js +10 -14
  4. package/dist/cjs/temporary-consents.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/temporary-consents/temporary-consents.js +9 -29
  7. package/dist/esm/{index-54cb9543.js → index-a971e83a.js} +66 -201
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/temporary-consents.entry.js +10 -14
  10. package/dist/esm/temporary-consents.js +3 -3
  11. package/dist/temporary-consents/p-4dd72273.entry.js +1 -0
  12. package/dist/temporary-consents/p-8a0e306f.js +2 -0
  13. package/dist/temporary-consents/temporary-consents.esm.js +1 -1
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/temporary-consents/p-2b771aa1.js +0 -2
  19. package/dist/temporary-consents/p-f7c91a3a.entry.js +0 -1
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/temporary-consents/.stencil/packages/stencil/temporary-consents/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/temporary-consents/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'temporary-consents';
24
- const BUILD = /* temporary-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, 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, 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: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* temporary-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, 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: 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: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | 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
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  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;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -332,40 +327,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
332
327
  }
333
328
  if (!appliedStyles.has(scopeId2)) {
334
329
  {
335
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
330
+ styleElm = doc.createElement("style");
336
331
  styleElm.innerHTML = style;
337
332
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
338
333
  if (nonce != null) {
339
334
  styleElm.setAttribute("nonce", nonce);
340
335
  }
341
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
342
- if (styleContainerNode.nodeName === "HEAD") {
343
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
344
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
345
- styleContainerNode.insertBefore(
346
- styleElm,
347
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
348
- );
349
- } else if ("host" in styleContainerNode) {
350
- if (supportsConstructableStylesheets) {
351
- const stylesheet = new CSSStyleSheet();
352
- stylesheet.replaceSync(style);
353
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
354
- } else {
355
- const existingStyleContainer = styleContainerNode.querySelector("style");
356
- if (existingStyleContainer) {
357
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
358
- } else {
359
- styleContainerNode.prepend(styleElm);
360
- }
361
- }
362
- } else {
363
- styleContainerNode.append(styleElm);
364
- }
365
- }
366
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
367
- styleContainerNode.insertBefore(styleElm, null);
368
- }
336
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
369
337
  }
370
338
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
371
339
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -388,25 +356,23 @@ var attachStyles = (hostRef) => {
388
356
  const scopeId2 = addStyle(
389
357
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
390
358
  cmpMeta);
391
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
359
+ if (flags & 10 /* needsScopedEncapsulation */) {
392
360
  elm["s-sc"] = scopeId2;
393
361
  elm.classList.add(scopeId2 + "-h");
394
362
  }
395
363
  endAttachStyles();
396
364
  };
397
365
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
398
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
366
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
399
367
  if (oldValue !== newValue) {
400
368
  let isProp = isMemberInElement(elm, memberName);
401
369
  let ln = memberName.toLowerCase();
402
370
  if (memberName === "class") {
403
371
  const classList = elm.classList;
404
372
  const oldClasses = parseClassList(oldValue);
405
- let newClasses = parseClassList(newValue);
406
- {
407
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
408
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
409
- }
373
+ const newClasses = parseClassList(newValue);
374
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
375
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
410
376
  } else if (memberName === "ref") {
411
377
  if (newValue) {
412
378
  newValue(elm);
@@ -438,13 +404,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
438
404
  if (memberName === "list") {
439
405
  isProp = false;
440
406
  } else if (oldValue == null || elm[memberName] != n) {
441
- if (typeof elm.__lookupSetter__(memberName) === "function") {
442
- elm[memberName] = n;
443
- } else {
444
- elm.setAttribute(memberName, n);
445
- }
407
+ elm[memberName] = n;
446
408
  }
447
- } else if (elm[memberName] !== newValue) {
409
+ } else {
448
410
  elm[memberName] = newValue;
449
411
  }
450
412
  } catch (e) {
@@ -466,44 +428,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
466
428
  }
467
429
  };
468
430
  var parseClassListRegex = /\s/;
469
- var parseClassList = (value) => {
470
- if (typeof value === "object" && value && "baseVal" in value) {
471
- value = value.baseVal;
472
- }
473
- if (!value || typeof value !== "string") {
474
- return [];
475
- }
476
- return value.split(parseClassListRegex);
477
- };
431
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
478
432
  var CAPTURE_EVENT_SUFFIX = "Capture";
479
433
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
480
434
 
481
435
  // src/runtime/vdom/update-element.ts
482
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
436
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
483
437
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
484
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
485
- const newVnodeAttrs = newVnode.$attrs$ || {};
438
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
439
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
486
440
  {
487
441
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
488
442
  if (!(memberName in newVnodeAttrs)) {
489
- setAccessor(
490
- elm,
491
- memberName,
492
- oldVnodeAttrs[memberName],
493
- void 0,
494
- isSvgMode2,
495
- newVnode.$flags$);
443
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
496
444
  }
497
445
  }
498
446
  }
499
447
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
500
- setAccessor(
501
- elm,
502
- memberName,
503
- oldVnodeAttrs[memberName],
504
- newVnodeAttrs[memberName],
505
- isSvgMode2,
506
- newVnode.$flags$);
448
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
507
449
  }
508
450
  };
509
451
  function sortedAttrNames(attrNames) {
@@ -515,10 +457,13 @@ function sortedAttrNames(attrNames) {
515
457
  attrNames
516
458
  );
517
459
  }
460
+
461
+ // src/runtime/vdom/vdom-render.ts
462
+ var scopeId;
518
463
  var hostTagName;
519
464
  var useNativeShadowDom = false;
520
465
  var isSvgMode = false;
521
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
466
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
522
467
  const newVNode2 = newParentVNode.$children$[childIndex];
523
468
  let i2 = 0;
524
469
  let elm;
@@ -532,6 +477,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
532
477
  {
533
478
  updateElement(null, newVNode2, isSvgMode);
534
479
  }
480
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
481
+ elm.classList.add(elm["s-si"] = scopeId);
482
+ }
535
483
  if (newVNode2.$children$) {
536
484
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
537
485
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -636,9 +584,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
636
584
  };
637
585
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
638
586
  if (leftVNode.$tag$ === rightVNode.$tag$) {
639
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
640
- leftVNode.$key$ = rightVNode.$key$;
641
- }
642
587
  return true;
643
588
  }
644
589
  return false;
@@ -661,10 +606,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
661
606
  elm.textContent = "";
662
607
  }
663
608
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
664
- } else if (
665
- // don't do this on initial render as it can cause non-hydrated content to be removed
666
- !isInitialRender && BUILD.updatable && oldChildren !== null
667
- ) {
609
+ } else if (oldChildren !== null) {
668
610
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
669
611
  }
670
612
  } else if (oldVNode.$text$ !== text) {
@@ -678,9 +620,8 @@ var nullifyVNodeRefs = (vNode) => {
678
620
  }
679
621
  };
680
622
  var insertBefore = (parent, newNode, reference) => {
681
- {
682
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
683
- }
623
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
624
+ return inserted;
684
625
  };
685
626
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
686
627
  const hostElm = hostRef.$hostElement$;
@@ -705,21 +646,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
705
646
  rootVnode.$flags$ |= 4 /* isHost */;
706
647
  hostRef.$vnode$ = rootVnode;
707
648
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
708
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
649
+ {
650
+ scopeId = hostElm["s-sc"];
651
+ }
652
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
709
653
  patch(oldVNode, rootVnode, isInitialLoad);
710
654
  };
711
655
 
712
656
  // src/runtime/update-component.ts
713
657
  var attachToAncestor = (hostRef, ancestorComponent) => {
714
658
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
715
- const index = ancestorComponent["s-p"].push(
716
- new Promise(
717
- (r) => hostRef.$onRenderResolve$ = () => {
718
- ancestorComponent["s-p"].splice(index - 1, 1);
719
- r();
720
- }
721
- )
722
- );
659
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
723
660
  }
724
661
  };
725
662
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -746,7 +683,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
746
683
  let maybePromise;
747
684
  if (isInitialLoad) {
748
685
  {
749
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
686
+ maybePromise = safeCall(instance, "componentWillLoad");
750
687
  }
751
688
  }
752
689
  endSchedule();
@@ -815,7 +752,7 @@ var postUpdateComponent = (hostRef) => {
815
752
  const instance = hostRef.$lazyInstance$ ;
816
753
  const ancestorComponent = hostRef.$ancestorComponent$;
817
754
  {
818
- safeCall(instance, "componentDidRender", void 0, elm);
755
+ safeCall(instance, "componentDidRender");
819
756
  }
820
757
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
821
758
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -844,14 +781,17 @@ var postUpdateComponent = (hostRef) => {
844
781
  }
845
782
  };
846
783
  var appDidLoad = (who) => {
784
+ {
785
+ addHydratedFlag(doc.documentElement);
786
+ }
847
787
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
848
788
  };
849
- var safeCall = (instance, method, arg, elm) => {
789
+ var safeCall = (instance, method, arg) => {
850
790
  if (instance && instance[method]) {
851
791
  try {
852
792
  return instance[method](arg);
853
793
  } catch (e) {
854
- consoleError(e, elm);
794
+ consoleError(e);
855
795
  }
856
796
  }
857
797
  return void 0;
@@ -894,68 +834,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
894
834
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
895
835
  members.map(([memberName, [memberFlags]]) => {
896
836
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
897
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
898
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
899
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
900
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
901
- Object.defineProperty(prototype, memberName, {
902
- get() {
903
- {
904
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
905
- return getValue(this, memberName);
906
- }
907
- const ref = getHostRef(this);
908
- const instance = ref ? ref.$lazyInstance$ : prototype;
909
- if (!instance) return;
910
- return instance[memberName];
911
- }
912
- },
913
- configurable: true,
914
- enumerable: true
915
- });
916
- }
917
837
  Object.defineProperty(prototype, memberName, {
838
+ get() {
839
+ return getValue(this, memberName);
840
+ },
918
841
  set(newValue) {
919
- const ref = getHostRef(this);
920
- if (origSetter) {
921
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
922
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
923
- newValue = ref.$instanceValues$.get(memberName);
924
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
925
- ref.$instanceValues$.set(memberName, currentValue);
926
- }
927
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
928
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
929
- setValue(this, memberName, newValue, cmpMeta);
930
- return;
931
- }
932
- {
933
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
934
- setValue(this, memberName, newValue, cmpMeta);
935
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
936
- ref.$onReadyPromise$.then(() => {
937
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
938
- ref.$lazyInstance$[memberName] = newValue;
939
- }
940
- });
941
- }
942
- return;
943
- }
944
- const setterSetVal = () => {
945
- const currentValue = ref.$lazyInstance$[memberName];
946
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
947
- ref.$instanceValues$.set(memberName, currentValue);
948
- }
949
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
950
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
951
- };
952
- if (ref.$lazyInstance$) {
953
- setterSetVal();
954
- } else {
955
- ref.$onReadyPromise$.then(() => setterSetVal());
956
- }
957
- }
958
- }
842
+ setValue(this, memberName, newValue, cmpMeta);
843
+ },
844
+ configurable: true,
845
+ enumerable: true
959
846
  });
960
847
  }
961
848
  });
@@ -965,11 +852,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
965
852
  plt.jmp(() => {
966
853
  var _a2;
967
854
  const propName = attrNameToPropName.get(attrName);
968
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
855
+ if (this.hasOwnProperty(propName)) {
969
856
  newValue = this[propName];
970
857
  delete this[propName];
971
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
972
- this[propName] == newValue) {
858
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
973
859
  return;
974
860
  } else if (propName == null) {
975
861
  const hostRef = getHostRef(this);
@@ -985,11 +871,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
985
871
  }
986
872
  return;
987
873
  }
988
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
989
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
990
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
991
- this[propName] = newValue;
992
- }
874
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
993
875
  });
994
876
  };
995
877
  Cstr.observedAttributes = Array.from(
@@ -1018,7 +900,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1018
900
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1019
901
  const bundleId = cmpMeta.$lazyBundleId$;
1020
902
  if (bundleId) {
1021
- const CstrImport = loadModule(cmpMeta, hostRef);
903
+ const CstrImport = loadModule(cmpMeta);
1022
904
  if (CstrImport && "then" in CstrImport) {
1023
905
  const endLoad = uniqueTime();
1024
906
  Cstr = await CstrImport;
@@ -1040,7 +922,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1040
922
  try {
1041
923
  new Cstr(hostRef);
1042
924
  } catch (e) {
1043
- consoleError(e, elm);
925
+ consoleError(e);
1044
926
  }
1045
927
  {
1046
928
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1072,7 +954,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1072
954
  schedule();
1073
955
  }
1074
956
  };
1075
- var fireConnectedCallback = (instance, elm) => {
957
+ var fireConnectedCallback = (instance) => {
1076
958
  };
1077
959
 
1078
960
  // src/runtime/connected-callback.ts
@@ -1112,7 +994,7 @@ var connectedCallback = (elm) => {
1112
994
  endConnected();
1113
995
  }
1114
996
  };
1115
- var disconnectInstance = (instance, elm) => {
997
+ var disconnectInstance = (instance) => {
1116
998
  };
1117
999
  var disconnectedCallback = async (elm) => {
1118
1000
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1121,12 +1003,6 @@ var disconnectedCallback = async (elm) => {
1121
1003
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1122
1004
  }
1123
1005
  }
1124
- if (rootAppliedStyles.has(elm)) {
1125
- rootAppliedStyles.delete(elm);
1126
- }
1127
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1128
- rootAppliedStyles.delete(elm.shadowRoot);
1129
- }
1130
1006
  };
1131
1007
 
1132
1008
  // src/runtime/bootstrap-lazy.ts
@@ -1203,17 +1079,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1203
1079
  }
1204
1080
  disconnectedCallback() {
1205
1081
  plt.jmp(() => disconnectedCallback(this));
1206
- plt.raf(() => {
1207
- var _a3;
1208
- const hostRef = getHostRef(this);
1209
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1210
- if (i2 > -1) {
1211
- deferredConnectedCallbacks.splice(i2, 1);
1212
- }
1213
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1214
- delete hostRef.$vnode$.$elm$;
1215
- }
1216
- });
1217
1082
  }
1218
1083
  componentOnReady() {
1219
1084
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a64745fe.js');
5
+ const index = require('./index-bcfab05e.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a64745fe.js');
5
+ const index = require('./index-bcfab05e.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  let TRANSLATIONS = {
@@ -112,19 +112,6 @@ const TemporaryConsentsStyle0 = temporaryConsentsCss;
112
112
  const TemporaryConsents = class {
113
113
  constructor(hostRef) {
114
114
  index.registerInstance(this, hostRef);
115
- /**
116
- * Client custom styling via inline styles
117
- */
118
- this.clientStyling = '';
119
- /**
120
- * Client custom styling via url
121
- */
122
- this.clientStylingUrl = '';
123
- /**
124
- * Translation via url
125
- */
126
- this.translationUrl = '';
127
- this.stylingAppends = false;
128
115
  this.isLoading = false;
129
116
  this.setClientStyling = () => {
130
117
  let sheet = document.createElement('style');
@@ -144,6 +131,15 @@ const TemporaryConsents = class {
144
131
  console.log('error ', err);
145
132
  });
146
133
  };
134
+ this.endpoint = undefined;
135
+ this.userId = undefined;
136
+ this.sessionId = undefined;
137
+ this.daysUntilLockout = undefined;
138
+ this.lang = undefined;
139
+ this.clientStyling = '';
140
+ this.clientStylingUrl = '';
141
+ this.translationUrl = '';
142
+ this.stylingAppends = false;
147
143
  }
148
144
  componentWillLoad() {
149
145
  const promises = [];
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a64745fe.js');
5
+ const index = require('./index-bcfab05e.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.19.2 | 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('temporary-consents.cjs.js', document.baseURI).href));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []