@everymatrix/promoting-banners 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 (32) hide show
  1. package/dist/cjs/{index-1ddadbf2.js → index-cb64c2ca.js} +73 -208
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{promoting-banners-4b1eaf97.js → promoting-banners-570e15dc.js} +3 -19
  5. package/dist/cjs/promoting-banners.cjs.entry.js +2 -2
  6. package/dist/cjs/promoting-banners.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +2 -2
  8. package/dist/collection/components/promoting-banners/promoting-banners.js +2 -32
  9. package/dist/esm/{index-31b0a838.js → index-43b1379d.js} +73 -208
  10. package/dist/esm/index.js +2 -2
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/{promoting-banners-daee1325.js → promoting-banners-79d679c1.js} +3 -19
  13. package/dist/esm/promoting-banners.entry.js +2 -2
  14. package/dist/esm/promoting-banners.js +3 -3
  15. package/dist/promoting-banners/index.esm.js +1 -1
  16. package/dist/promoting-banners/p-33973aec.entry.js +1 -0
  17. package/dist/promoting-banners/p-53cf2adf.js +2 -0
  18. package/dist/promoting-banners/p-5c9ce269.js +1 -0
  19. package/dist/promoting-banners/promoting-banners.esm.js +1 -1
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/promoting-banners/.stencil/packages/stencil/promoting-banners/stencil.config.d.ts +2 -0
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/promoting-banners/.stencil/packages/stencil/promoting-banners/stencil.config.dev.d.ts +2 -0
  22. package/dist/types/stencil-public-runtime.d.ts +0 -6
  23. package/package.json +1 -1
  24. package/dist/promoting-banners/p-18729188.entry.js +0 -1
  25. package/dist/promoting-banners/p-54b909eb.js +0 -2
  26. package/dist/promoting-banners/p-ae2aca95.js +0 -1
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/promoting-banners/.stencil/packages/stencil/promoting-banners/stencil.config.d.ts +0 -2
  28. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/promoting-banners/.stencil/packages/stencil/promoting-banners/stencil.config.dev.d.ts +0 -2
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/promoting-banners/.stencil/tools/plugins/index.d.ts +0 -0
  30. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/promoting-banners/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  31. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/promoting-banners/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  32. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/promoting-banners/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -4,33 +4,17 @@ import { translate, getTranslations } from "../../utils/locale.utils";
4
4
  import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
5
5
  export class PromotingBanners {
6
6
  constructor() {
7
- /**
8
- * The endpoint
9
- */
10
7
  this.cmsEndpoint = '';
11
- /**
12
- * The language
13
- */
14
8
  this.language = 'en';
15
- /**
16
- * The CMS environment
17
- */
18
9
  this.cmsEnv = '';
19
- /**
20
- * Client custom styling via inline style
21
- */
10
+ this.mbSource = undefined;
22
11
  this.clientStyling = '';
23
- /**
24
- * Client custom styling via url
25
- */
26
12
  this.clientStylingUrl = '';
27
- /**
28
- * Translations via URL
29
- */
30
13
  this.translationUrl = '';
31
14
  this.promotingBannersArray = [];
32
15
  this.hasErrors = false;
33
16
  this.isLoading = true;
17
+ this.translationData = undefined;
34
18
  }
35
19
  handleClientStylingChange(newValue, oldValue) {
36
20
  if (newValue != oldValue) {
@@ -156,8 +140,6 @@ export class PromotingBanners {
156
140
  "tags": [],
157
141
  "text": "The endpoint"
158
142
  },
159
- "getter": false,
160
- "setter": false,
161
143
  "attribute": "cms-endpoint",
162
144
  "reflect": true,
163
145
  "defaultValue": "''"
@@ -176,8 +158,6 @@ export class PromotingBanners {
176
158
  "tags": [],
177
159
  "text": "The language"
178
160
  },
179
- "getter": false,
180
- "setter": false,
181
161
  "attribute": "language",
182
162
  "reflect": true,
183
163
  "defaultValue": "'en'"
@@ -196,8 +176,6 @@ export class PromotingBanners {
196
176
  "tags": [],
197
177
  "text": "The CMS environment"
198
178
  },
199
- "getter": false,
200
- "setter": false,
201
179
  "attribute": "cms-env",
202
180
  "reflect": true,
203
181
  "defaultValue": "''"
@@ -216,8 +194,6 @@ export class PromotingBanners {
216
194
  "tags": [],
217
195
  "text": "Client custom styling via streamStyling"
218
196
  },
219
- "getter": false,
220
- "setter": false,
221
197
  "attribute": "mb-source",
222
198
  "reflect": false
223
199
  },
@@ -235,8 +211,6 @@ export class PromotingBanners {
235
211
  "tags": [],
236
212
  "text": "Client custom styling via inline style"
237
213
  },
238
- "getter": false,
239
- "setter": false,
240
214
  "attribute": "client-styling",
241
215
  "reflect": true,
242
216
  "defaultValue": "''"
@@ -255,8 +229,6 @@ export class PromotingBanners {
255
229
  "tags": [],
256
230
  "text": "Client custom styling via url"
257
231
  },
258
- "getter": false,
259
- "setter": false,
260
232
  "attribute": "client-styling-url",
261
233
  "reflect": true,
262
234
  "defaultValue": "''"
@@ -275,8 +247,6 @@ export class PromotingBanners {
275
247
  "tags": [],
276
248
  "text": "Translations via URL"
277
249
  },
278
- "getter": false,
279
- "setter": false,
280
250
  "attribute": "translation-url",
281
251
  "reflect": true,
282
252
  "defaultValue": "''"
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'promoting-banners';
2
- const BUILD = /* promoting-banners */ { 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: true, 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: 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: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* promoting-banners */ { 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: 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: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/client/client-host-ref.ts
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -139,6 +128,12 @@ var flush = () => {
139
128
  };
140
129
  var nextTick = (cb) => promiseResolve().then(cb);
141
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
134
+
135
+ // src/utils/helpers.ts
136
+ var isDef = (v) => v != null;
142
137
  var isComplexType = (o) => {
143
138
  o = typeof o;
144
139
  return o === "object" || o === "function";
@@ -320,40 +315,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
320
315
  }
321
316
  if (!appliedStyles.has(scopeId2)) {
322
317
  {
323
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
318
+ styleElm = doc.createElement("style");
324
319
  styleElm.innerHTML = style;
325
320
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
326
321
  if (nonce != null) {
327
322
  styleElm.setAttribute("nonce", nonce);
328
323
  }
329
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
330
- if (styleContainerNode.nodeName === "HEAD") {
331
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
332
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
333
- styleContainerNode.insertBefore(
334
- styleElm,
335
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
336
- );
337
- } else if ("host" in styleContainerNode) {
338
- if (supportsConstructableStylesheets) {
339
- const stylesheet = new CSSStyleSheet();
340
- stylesheet.replaceSync(style);
341
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
342
- } else {
343
- const existingStyleContainer = styleContainerNode.querySelector("style");
344
- if (existingStyleContainer) {
345
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
346
- } else {
347
- styleContainerNode.prepend(styleElm);
348
- }
349
- }
350
- } else {
351
- styleContainerNode.append(styleElm);
352
- }
353
- }
354
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
355
- styleContainerNode.insertBefore(styleElm, null);
356
- }
324
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
357
325
  }
358
326
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
359
327
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -376,25 +344,23 @@ var attachStyles = (hostRef) => {
376
344
  const scopeId2 = addStyle(
377
345
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
378
346
  cmpMeta);
379
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
347
+ if (flags & 10 /* needsScopedEncapsulation */) {
380
348
  elm["s-sc"] = scopeId2;
381
349
  elm.classList.add(scopeId2 + "-h");
382
350
  }
383
351
  endAttachStyles();
384
352
  };
385
353
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
386
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
354
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
387
355
  if (oldValue !== newValue) {
388
356
  let isProp = isMemberInElement(elm, memberName);
389
357
  let ln = memberName.toLowerCase();
390
358
  if (memberName === "class") {
391
359
  const classList = elm.classList;
392
360
  const oldClasses = parseClassList(oldValue);
393
- let newClasses = parseClassList(newValue);
394
- {
395
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
396
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
397
- }
361
+ const newClasses = parseClassList(newValue);
362
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
363
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
398
364
  } else if (memberName === "style") {
399
365
  {
400
366
  for (const prop in oldValue) {
@@ -447,13 +413,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
447
413
  if (memberName === "list") {
448
414
  isProp = false;
449
415
  } else if (oldValue == null || elm[memberName] != n) {
450
- if (typeof elm.__lookupSetter__(memberName) === "function") {
451
- elm[memberName] = n;
452
- } else {
453
- elm.setAttribute(memberName, n);
454
- }
416
+ elm[memberName] = n;
455
417
  }
456
- } else if (elm[memberName] !== newValue) {
418
+ } else {
457
419
  elm[memberName] = newValue;
458
420
  }
459
421
  } catch (e) {
@@ -475,44 +437,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
475
437
  }
476
438
  };
477
439
  var parseClassListRegex = /\s/;
478
- var parseClassList = (value) => {
479
- if (typeof value === "object" && value && "baseVal" in value) {
480
- value = value.baseVal;
481
- }
482
- if (!value || typeof value !== "string") {
483
- return [];
484
- }
485
- return value.split(parseClassListRegex);
486
- };
440
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
487
441
  var CAPTURE_EVENT_SUFFIX = "Capture";
488
442
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
489
443
 
490
444
  // src/runtime/vdom/update-element.ts
491
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
445
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
492
446
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
493
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
494
- const newVnodeAttrs = newVnode.$attrs$ || {};
447
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
448
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
495
449
  {
496
450
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
497
451
  if (!(memberName in newVnodeAttrs)) {
498
- setAccessor(
499
- elm,
500
- memberName,
501
- oldVnodeAttrs[memberName],
502
- void 0,
503
- isSvgMode2,
504
- newVnode.$flags$);
452
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
505
453
  }
506
454
  }
507
455
  }
508
456
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
509
- setAccessor(
510
- elm,
511
- memberName,
512
- oldVnodeAttrs[memberName],
513
- newVnodeAttrs[memberName],
514
- isSvgMode2,
515
- newVnode.$flags$);
457
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
516
458
  }
517
459
  };
518
460
  function sortedAttrNames(attrNames) {
@@ -524,10 +466,13 @@ function sortedAttrNames(attrNames) {
524
466
  attrNames
525
467
  );
526
468
  }
469
+
470
+ // src/runtime/vdom/vdom-render.ts
471
+ var scopeId;
527
472
  var hostTagName;
528
473
  var useNativeShadowDom = false;
529
474
  var isSvgMode = false;
530
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
475
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
531
476
  const newVNode2 = newParentVNode.$children$[childIndex];
532
477
  let i2 = 0;
533
478
  let elm;
@@ -541,6 +486,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
541
486
  {
542
487
  updateElement(null, newVNode2, isSvgMode);
543
488
  }
489
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
490
+ elm.classList.add(elm["s-si"] = scopeId);
491
+ }
544
492
  if (newVNode2.$children$) {
545
493
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
546
494
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -670,9 +618,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
670
618
  if (!isInitialRender) {
671
619
  return leftVNode.$key$ === rightVNode.$key$;
672
620
  }
673
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
674
- leftVNode.$key$ = rightVNode.$key$;
675
- }
676
621
  return true;
677
622
  }
678
623
  return false;
@@ -695,10 +640,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
695
640
  elm.textContent = "";
696
641
  }
697
642
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
698
- } else if (
699
- // don't do this on initial render as it can cause non-hydrated content to be removed
700
- !isInitialRender && BUILD.updatable && oldChildren !== null
701
- ) {
643
+ } else if (oldChildren !== null) {
702
644
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
703
645
  }
704
646
  } else if (oldVNode.$text$ !== text) {
@@ -712,9 +654,8 @@ var nullifyVNodeRefs = (vNode) => {
712
654
  }
713
655
  };
714
656
  var insertBefore = (parent, newNode, reference) => {
715
- {
716
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
717
- }
657
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
658
+ return inserted;
718
659
  };
719
660
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
720
661
  const hostElm = hostRef.$hostElement$;
@@ -739,21 +680,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
739
680
  rootVnode.$flags$ |= 4 /* isHost */;
740
681
  hostRef.$vnode$ = rootVnode;
741
682
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
742
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
683
+ {
684
+ scopeId = hostElm["s-sc"];
685
+ }
686
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
743
687
  patch(oldVNode, rootVnode, isInitialLoad);
744
688
  };
745
689
 
746
690
  // src/runtime/update-component.ts
747
691
  var attachToAncestor = (hostRef, ancestorComponent) => {
748
692
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
749
- const index = ancestorComponent["s-p"].push(
750
- new Promise(
751
- (r) => hostRef.$onRenderResolve$ = () => {
752
- ancestorComponent["s-p"].splice(index - 1, 1);
753
- r();
754
- }
755
- )
756
- );
693
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
757
694
  }
758
695
  };
759
696
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -780,7 +717,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
780
717
  let maybePromise;
781
718
  if (isInitialLoad) {
782
719
  {
783
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
720
+ maybePromise = safeCall(instance, "componentWillLoad");
784
721
  }
785
722
  }
786
723
  endSchedule();
@@ -854,7 +791,7 @@ var postUpdateComponent = (hostRef) => {
854
791
  addHydratedFlag(elm);
855
792
  }
856
793
  {
857
- safeCall(instance, "componentDidLoad", void 0, elm);
794
+ safeCall(instance, "componentDidLoad");
858
795
  }
859
796
  endPostUpdate();
860
797
  {
@@ -878,14 +815,17 @@ var postUpdateComponent = (hostRef) => {
878
815
  }
879
816
  };
880
817
  var appDidLoad = (who) => {
818
+ {
819
+ addHydratedFlag(doc.documentElement);
820
+ }
881
821
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
882
822
  };
883
- var safeCall = (instance, method, arg, elm) => {
823
+ var safeCall = (instance, method, arg) => {
884
824
  if (instance && instance[method]) {
885
825
  try {
886
826
  return instance[method](arg);
887
827
  } catch (e) {
888
- consoleError(e, elm);
828
+ consoleError(e);
889
829
  }
890
830
  }
891
831
  return void 0;
@@ -944,68 +884,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
944
884
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
945
885
  members.map(([memberName, [memberFlags]]) => {
946
886
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
947
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
948
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
949
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
950
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
951
- Object.defineProperty(prototype, memberName, {
952
- get() {
953
- {
954
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
955
- return getValue(this, memberName);
956
- }
957
- const ref = getHostRef(this);
958
- const instance = ref ? ref.$lazyInstance$ : prototype;
959
- if (!instance) return;
960
- return instance[memberName];
961
- }
962
- },
963
- configurable: true,
964
- enumerable: true
965
- });
966
- }
967
887
  Object.defineProperty(prototype, memberName, {
888
+ get() {
889
+ return getValue(this, memberName);
890
+ },
968
891
  set(newValue) {
969
- const ref = getHostRef(this);
970
- if (origSetter) {
971
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
972
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
973
- newValue = ref.$instanceValues$.get(memberName);
974
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
975
- ref.$instanceValues$.set(memberName, currentValue);
976
- }
977
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
978
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
979
- setValue(this, memberName, newValue, cmpMeta);
980
- return;
981
- }
982
- {
983
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
984
- setValue(this, memberName, newValue, cmpMeta);
985
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
986
- ref.$onReadyPromise$.then(() => {
987
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
988
- ref.$lazyInstance$[memberName] = newValue;
989
- }
990
- });
991
- }
992
- return;
993
- }
994
- const setterSetVal = () => {
995
- const currentValue = ref.$lazyInstance$[memberName];
996
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
997
- ref.$instanceValues$.set(memberName, currentValue);
998
- }
999
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1000
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1001
- };
1002
- if (ref.$lazyInstance$) {
1003
- setterSetVal();
1004
- } else {
1005
- ref.$onReadyPromise$.then(() => setterSetVal());
1006
- }
1007
- }
1008
- }
892
+ setValue(this, memberName, newValue, cmpMeta);
893
+ },
894
+ configurable: true,
895
+ enumerable: true
1009
896
  });
1010
897
  }
1011
898
  });
@@ -1015,11 +902,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1015
902
  plt.jmp(() => {
1016
903
  var _a2;
1017
904
  const propName = attrNameToPropName.get(attrName);
1018
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
905
+ if (this.hasOwnProperty(propName)) {
1019
906
  newValue = this[propName];
1020
907
  delete this[propName];
1021
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1022
- this[propName] == newValue) {
908
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1023
909
  return;
1024
910
  } else if (propName == null) {
1025
911
  const hostRef = getHostRef(this);
@@ -1035,11 +921,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1035
921
  }
1036
922
  return;
1037
923
  }
1038
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1039
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1040
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1041
- this[propName] = newValue;
1042
- }
924
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1043
925
  });
1044
926
  };
1045
927
  Cstr.observedAttributes = Array.from(
@@ -1068,7 +950,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1068
950
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1069
951
  const bundleId = cmpMeta.$lazyBundleId$;
1070
952
  if (bundleId) {
1071
- const CstrImport = loadModule(cmpMeta, hostRef);
953
+ const CstrImport = loadModule(cmpMeta);
1072
954
  if (CstrImport && "then" in CstrImport) {
1073
955
  const endLoad = uniqueTime();
1074
956
  Cstr = await CstrImport;
@@ -1093,7 +975,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1093
975
  try {
1094
976
  new Cstr(hostRef);
1095
977
  } catch (e) {
1096
- consoleError(e, elm);
978
+ consoleError(e);
1097
979
  }
1098
980
  {
1099
981
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1102,7 +984,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1102
984
  hostRef.$flags$ |= 128 /* isWatchReady */;
1103
985
  }
1104
986
  endNewInstance();
1105
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
987
+ fireConnectedCallback(hostRef.$lazyInstance$);
1106
988
  } else {
1107
989
  Cstr = elm.constructor;
1108
990
  const cmpTag = elm.localName;
@@ -1129,9 +1011,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1129
1011
  schedule();
1130
1012
  }
1131
1013
  };
1132
- var fireConnectedCallback = (instance, elm) => {
1014
+ var fireConnectedCallback = (instance) => {
1133
1015
  {
1134
- safeCall(instance, "connectedCallback", void 0, elm);
1016
+ safeCall(instance, "connectedCallback");
1135
1017
  }
1136
1018
  };
1137
1019
 
@@ -1166,34 +1048,28 @@ var connectedCallback = (elm) => {
1166
1048
  }
1167
1049
  } else {
1168
1050
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1169
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1051
+ fireConnectedCallback(hostRef.$lazyInstance$);
1170
1052
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1171
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1053
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1172
1054
  }
1173
1055
  }
1174
1056
  endConnected();
1175
1057
  }
1176
1058
  };
1177
- var disconnectInstance = (instance, elm) => {
1059
+ var disconnectInstance = (instance) => {
1178
1060
  {
1179
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1061
+ safeCall(instance, "disconnectedCallback");
1180
1062
  }
1181
1063
  };
1182
1064
  var disconnectedCallback = async (elm) => {
1183
1065
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1184
1066
  const hostRef = getHostRef(elm);
1185
1067
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1186
- disconnectInstance(hostRef.$lazyInstance$, elm);
1068
+ disconnectInstance(hostRef.$lazyInstance$);
1187
1069
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1188
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1070
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1189
1071
  }
1190
1072
  }
1191
- if (rootAppliedStyles.has(elm)) {
1192
- rootAppliedStyles.delete(elm);
1193
- }
1194
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1195
- rootAppliedStyles.delete(elm.shadowRoot);
1196
- }
1197
1073
  };
1198
1074
 
1199
1075
  // src/runtime/bootstrap-lazy.ts
@@ -1274,17 +1150,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1274
1150
  }
1275
1151
  disconnectedCallback() {
1276
1152
  plt.jmp(() => disconnectedCallback(this));
1277
- plt.raf(() => {
1278
- var _a3;
1279
- const hostRef = getHostRef(this);
1280
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1281
- if (i2 > -1) {
1282
- deferredConnectedCallbacks.splice(i2, 1);
1283
- }
1284
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1285
- delete hostRef.$vnode$.$elm$;
1286
- }
1287
- });
1288
1153
  }
1289
1154
  componentOnReady() {
1290
1155
  return getHostRef(this).$onReadyPromise$;
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { P as PromotingBanners } from './promoting-banners-daee1325.js';
2
- import './index-31b0a838.js';
1
+ export { P as PromotingBanners } from './promoting-banners-79d679c1.js';
2
+ import './index-43b1379d.js';
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-31b0a838.js';
2
- export { s as setNonce } from './index-31b0a838.js';
1
+ import { b as bootstrapLazy } from './index-43b1379d.js';
2
+ export { s as setNonce } from './index-43b1379d.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {