@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.
- package/dist/cjs/{index-1ddadbf2.js → index-cb64c2ca.js} +73 -208
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{promoting-banners-4b1eaf97.js → promoting-banners-570e15dc.js} +3 -19
- package/dist/cjs/promoting-banners.cjs.entry.js +2 -2
- package/dist/cjs/promoting-banners.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/promoting-banners/promoting-banners.js +2 -32
- package/dist/esm/{index-31b0a838.js → index-43b1379d.js} +73 -208
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{promoting-banners-daee1325.js → promoting-banners-79d679c1.js} +3 -19
- package/dist/esm/promoting-banners.entry.js +2 -2
- package/dist/esm/promoting-banners.js +3 -3
- package/dist/promoting-banners/index.esm.js +1 -1
- package/dist/promoting-banners/p-33973aec.entry.js +1 -0
- package/dist/promoting-banners/p-53cf2adf.js +2 -0
- package/dist/promoting-banners/p-5c9ce269.js +1 -0
- package/dist/promoting-banners/promoting-banners.esm.js +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/promoting-banners/.stencil/packages/stencil/promoting-banners/stencil.config.d.ts +2 -0
- 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
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/promoting-banners/p-18729188.entry.js +0 -1
- package/dist/promoting-banners/p-54b909eb.js +0 -2
- package/dist/promoting-banners/p-ae2aca95.js +0 -1
- 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
- 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
- /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
- /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
- /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
- /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
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'promoting-banners';
|
|
24
|
-
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,
|
|
24
|
+
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 };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
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
|
-
|
|
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
|
-
|
|
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";
|
|
@@ -342,40 +337,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
342
337
|
}
|
|
343
338
|
if (!appliedStyles.has(scopeId2)) {
|
|
344
339
|
{
|
|
345
|
-
styleElm =
|
|
340
|
+
styleElm = doc.createElement("style");
|
|
346
341
|
styleElm.innerHTML = style;
|
|
347
342
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
348
343
|
if (nonce != null) {
|
|
349
344
|
styleElm.setAttribute("nonce", nonce);
|
|
350
345
|
}
|
|
351
|
-
|
|
352
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
353
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
354
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
355
|
-
styleContainerNode.insertBefore(
|
|
356
|
-
styleElm,
|
|
357
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
358
|
-
);
|
|
359
|
-
} else if ("host" in styleContainerNode) {
|
|
360
|
-
if (supportsConstructableStylesheets) {
|
|
361
|
-
const stylesheet = new CSSStyleSheet();
|
|
362
|
-
stylesheet.replaceSync(style);
|
|
363
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
364
|
-
} else {
|
|
365
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
366
|
-
if (existingStyleContainer) {
|
|
367
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
368
|
-
} else {
|
|
369
|
-
styleContainerNode.prepend(styleElm);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
} else {
|
|
373
|
-
styleContainerNode.append(styleElm);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
377
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
378
|
-
}
|
|
346
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
379
347
|
}
|
|
380
348
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
381
349
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -398,25 +366,23 @@ var attachStyles = (hostRef) => {
|
|
|
398
366
|
const scopeId2 = addStyle(
|
|
399
367
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
400
368
|
cmpMeta);
|
|
401
|
-
if (
|
|
369
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
402
370
|
elm["s-sc"] = scopeId2;
|
|
403
371
|
elm.classList.add(scopeId2 + "-h");
|
|
404
372
|
}
|
|
405
373
|
endAttachStyles();
|
|
406
374
|
};
|
|
407
375
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
408
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
376
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
409
377
|
if (oldValue !== newValue) {
|
|
410
378
|
let isProp = isMemberInElement(elm, memberName);
|
|
411
379
|
let ln = memberName.toLowerCase();
|
|
412
380
|
if (memberName === "class") {
|
|
413
381
|
const classList = elm.classList;
|
|
414
382
|
const oldClasses = parseClassList(oldValue);
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
419
|
-
}
|
|
383
|
+
const newClasses = parseClassList(newValue);
|
|
384
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
385
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
420
386
|
} else if (memberName === "style") {
|
|
421
387
|
{
|
|
422
388
|
for (const prop in oldValue) {
|
|
@@ -469,13 +435,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
469
435
|
if (memberName === "list") {
|
|
470
436
|
isProp = false;
|
|
471
437
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
472
|
-
|
|
473
|
-
elm[memberName] = n;
|
|
474
|
-
} else {
|
|
475
|
-
elm.setAttribute(memberName, n);
|
|
476
|
-
}
|
|
438
|
+
elm[memberName] = n;
|
|
477
439
|
}
|
|
478
|
-
} else
|
|
440
|
+
} else {
|
|
479
441
|
elm[memberName] = newValue;
|
|
480
442
|
}
|
|
481
443
|
} catch (e) {
|
|
@@ -497,44 +459,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
497
459
|
}
|
|
498
460
|
};
|
|
499
461
|
var parseClassListRegex = /\s/;
|
|
500
|
-
var parseClassList = (value) =>
|
|
501
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
502
|
-
value = value.baseVal;
|
|
503
|
-
}
|
|
504
|
-
if (!value || typeof value !== "string") {
|
|
505
|
-
return [];
|
|
506
|
-
}
|
|
507
|
-
return value.split(parseClassListRegex);
|
|
508
|
-
};
|
|
462
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
509
463
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
510
464
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
511
465
|
|
|
512
466
|
// src/runtime/vdom/update-element.ts
|
|
513
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
467
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
514
468
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
515
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
516
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
469
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
470
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
517
471
|
{
|
|
518
472
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
519
473
|
if (!(memberName in newVnodeAttrs)) {
|
|
520
|
-
setAccessor(
|
|
521
|
-
elm,
|
|
522
|
-
memberName,
|
|
523
|
-
oldVnodeAttrs[memberName],
|
|
524
|
-
void 0,
|
|
525
|
-
isSvgMode2,
|
|
526
|
-
newVnode.$flags$);
|
|
474
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
527
475
|
}
|
|
528
476
|
}
|
|
529
477
|
}
|
|
530
478
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
531
|
-
setAccessor(
|
|
532
|
-
elm,
|
|
533
|
-
memberName,
|
|
534
|
-
oldVnodeAttrs[memberName],
|
|
535
|
-
newVnodeAttrs[memberName],
|
|
536
|
-
isSvgMode2,
|
|
537
|
-
newVnode.$flags$);
|
|
479
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
538
480
|
}
|
|
539
481
|
};
|
|
540
482
|
function sortedAttrNames(attrNames) {
|
|
@@ -546,10 +488,13 @@ function sortedAttrNames(attrNames) {
|
|
|
546
488
|
attrNames
|
|
547
489
|
);
|
|
548
490
|
}
|
|
491
|
+
|
|
492
|
+
// src/runtime/vdom/vdom-render.ts
|
|
493
|
+
var scopeId;
|
|
549
494
|
var hostTagName;
|
|
550
495
|
var useNativeShadowDom = false;
|
|
551
496
|
var isSvgMode = false;
|
|
552
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
497
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
553
498
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
554
499
|
let i2 = 0;
|
|
555
500
|
let elm;
|
|
@@ -563,6 +508,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
563
508
|
{
|
|
564
509
|
updateElement(null, newVNode2, isSvgMode);
|
|
565
510
|
}
|
|
511
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
512
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
513
|
+
}
|
|
566
514
|
if (newVNode2.$children$) {
|
|
567
515
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
568
516
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -692,9 +640,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
692
640
|
if (!isInitialRender) {
|
|
693
641
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
694
642
|
}
|
|
695
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
696
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
697
|
-
}
|
|
698
643
|
return true;
|
|
699
644
|
}
|
|
700
645
|
return false;
|
|
@@ -717,10 +662,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
717
662
|
elm.textContent = "";
|
|
718
663
|
}
|
|
719
664
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
720
|
-
} else if (
|
|
721
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
722
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
723
|
-
) {
|
|
665
|
+
} else if (oldChildren !== null) {
|
|
724
666
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
725
667
|
}
|
|
726
668
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -734,9 +676,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
734
676
|
}
|
|
735
677
|
};
|
|
736
678
|
var insertBefore = (parent, newNode, reference) => {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
679
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
680
|
+
return inserted;
|
|
740
681
|
};
|
|
741
682
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
742
683
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -761,21 +702,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
761
702
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
762
703
|
hostRef.$vnode$ = rootVnode;
|
|
763
704
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
764
|
-
|
|
705
|
+
{
|
|
706
|
+
scopeId = hostElm["s-sc"];
|
|
707
|
+
}
|
|
708
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
765
709
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
766
710
|
};
|
|
767
711
|
|
|
768
712
|
// src/runtime/update-component.ts
|
|
769
713
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
770
714
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
771
|
-
|
|
772
|
-
new Promise(
|
|
773
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
774
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
775
|
-
r();
|
|
776
|
-
}
|
|
777
|
-
)
|
|
778
|
-
);
|
|
715
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
779
716
|
}
|
|
780
717
|
};
|
|
781
718
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -802,7 +739,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
802
739
|
let maybePromise;
|
|
803
740
|
if (isInitialLoad) {
|
|
804
741
|
{
|
|
805
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
742
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
806
743
|
}
|
|
807
744
|
}
|
|
808
745
|
endSchedule();
|
|
@@ -876,7 +813,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
876
813
|
addHydratedFlag(elm);
|
|
877
814
|
}
|
|
878
815
|
{
|
|
879
|
-
safeCall(instance, "componentDidLoad"
|
|
816
|
+
safeCall(instance, "componentDidLoad");
|
|
880
817
|
}
|
|
881
818
|
endPostUpdate();
|
|
882
819
|
{
|
|
@@ -900,14 +837,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
900
837
|
}
|
|
901
838
|
};
|
|
902
839
|
var appDidLoad = (who) => {
|
|
840
|
+
{
|
|
841
|
+
addHydratedFlag(doc.documentElement);
|
|
842
|
+
}
|
|
903
843
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
904
844
|
};
|
|
905
|
-
var safeCall = (instance, method, arg
|
|
845
|
+
var safeCall = (instance, method, arg) => {
|
|
906
846
|
if (instance && instance[method]) {
|
|
907
847
|
try {
|
|
908
848
|
return instance[method](arg);
|
|
909
849
|
} catch (e) {
|
|
910
|
-
consoleError(e
|
|
850
|
+
consoleError(e);
|
|
911
851
|
}
|
|
912
852
|
}
|
|
913
853
|
return void 0;
|
|
@@ -966,68 +906,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
966
906
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
967
907
|
members.map(([memberName, [memberFlags]]) => {
|
|
968
908
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
969
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
970
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
971
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
972
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
973
|
-
Object.defineProperty(prototype, memberName, {
|
|
974
|
-
get() {
|
|
975
|
-
{
|
|
976
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
977
|
-
return getValue(this, memberName);
|
|
978
|
-
}
|
|
979
|
-
const ref = getHostRef(this);
|
|
980
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
981
|
-
if (!instance) return;
|
|
982
|
-
return instance[memberName];
|
|
983
|
-
}
|
|
984
|
-
},
|
|
985
|
-
configurable: true,
|
|
986
|
-
enumerable: true
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
909
|
Object.defineProperty(prototype, memberName, {
|
|
910
|
+
get() {
|
|
911
|
+
return getValue(this, memberName);
|
|
912
|
+
},
|
|
990
913
|
set(newValue) {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
996
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
997
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
998
|
-
}
|
|
999
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1000
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1001
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1002
|
-
return;
|
|
1003
|
-
}
|
|
1004
|
-
{
|
|
1005
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1006
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1007
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1008
|
-
ref.$onReadyPromise$.then(() => {
|
|
1009
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1010
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1011
|
-
}
|
|
1012
|
-
});
|
|
1013
|
-
}
|
|
1014
|
-
return;
|
|
1015
|
-
}
|
|
1016
|
-
const setterSetVal = () => {
|
|
1017
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1018
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1019
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1020
|
-
}
|
|
1021
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1022
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1023
|
-
};
|
|
1024
|
-
if (ref.$lazyInstance$) {
|
|
1025
|
-
setterSetVal();
|
|
1026
|
-
} else {
|
|
1027
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
914
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
915
|
+
},
|
|
916
|
+
configurable: true,
|
|
917
|
+
enumerable: true
|
|
1031
918
|
});
|
|
1032
919
|
}
|
|
1033
920
|
});
|
|
@@ -1037,11 +924,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1037
924
|
plt.jmp(() => {
|
|
1038
925
|
var _a2;
|
|
1039
926
|
const propName = attrNameToPropName.get(attrName);
|
|
1040
|
-
if (this.hasOwnProperty(propName)
|
|
927
|
+
if (this.hasOwnProperty(propName)) {
|
|
1041
928
|
newValue = this[propName];
|
|
1042
929
|
delete this[propName];
|
|
1043
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1044
|
-
this[propName] == newValue) {
|
|
930
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1045
931
|
return;
|
|
1046
932
|
} else if (propName == null) {
|
|
1047
933
|
const hostRef = getHostRef(this);
|
|
@@ -1057,11 +943,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1057
943
|
}
|
|
1058
944
|
return;
|
|
1059
945
|
}
|
|
1060
|
-
|
|
1061
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1062
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1063
|
-
this[propName] = newValue;
|
|
1064
|
-
}
|
|
946
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1065
947
|
});
|
|
1066
948
|
};
|
|
1067
949
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1090,7 +972,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1090
972
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1091
973
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1092
974
|
if (bundleId) {
|
|
1093
|
-
const CstrImport = loadModule(cmpMeta
|
|
975
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1094
976
|
if (CstrImport && "then" in CstrImport) {
|
|
1095
977
|
const endLoad = uniqueTime();
|
|
1096
978
|
Cstr = await CstrImport;
|
|
@@ -1115,7 +997,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1115
997
|
try {
|
|
1116
998
|
new Cstr(hostRef);
|
|
1117
999
|
} catch (e) {
|
|
1118
|
-
consoleError(e
|
|
1000
|
+
consoleError(e);
|
|
1119
1001
|
}
|
|
1120
1002
|
{
|
|
1121
1003
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1124,7 +1006,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1124
1006
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1125
1007
|
}
|
|
1126
1008
|
endNewInstance();
|
|
1127
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1009
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1128
1010
|
} else {
|
|
1129
1011
|
Cstr = elm.constructor;
|
|
1130
1012
|
const cmpTag = elm.localName;
|
|
@@ -1151,9 +1033,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1151
1033
|
schedule();
|
|
1152
1034
|
}
|
|
1153
1035
|
};
|
|
1154
|
-
var fireConnectedCallback = (instance
|
|
1036
|
+
var fireConnectedCallback = (instance) => {
|
|
1155
1037
|
{
|
|
1156
|
-
safeCall(instance, "connectedCallback"
|
|
1038
|
+
safeCall(instance, "connectedCallback");
|
|
1157
1039
|
}
|
|
1158
1040
|
};
|
|
1159
1041
|
|
|
@@ -1188,34 +1070,28 @@ var connectedCallback = (elm) => {
|
|
|
1188
1070
|
}
|
|
1189
1071
|
} else {
|
|
1190
1072
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1191
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1073
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1192
1074
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1193
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1075
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1194
1076
|
}
|
|
1195
1077
|
}
|
|
1196
1078
|
endConnected();
|
|
1197
1079
|
}
|
|
1198
1080
|
};
|
|
1199
|
-
var disconnectInstance = (instance
|
|
1081
|
+
var disconnectInstance = (instance) => {
|
|
1200
1082
|
{
|
|
1201
|
-
safeCall(instance, "disconnectedCallback"
|
|
1083
|
+
safeCall(instance, "disconnectedCallback");
|
|
1202
1084
|
}
|
|
1203
1085
|
};
|
|
1204
1086
|
var disconnectedCallback = async (elm) => {
|
|
1205
1087
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1206
1088
|
const hostRef = getHostRef(elm);
|
|
1207
1089
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1208
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1090
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1209
1091
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1210
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1092
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1211
1093
|
}
|
|
1212
1094
|
}
|
|
1213
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1214
|
-
rootAppliedStyles.delete(elm);
|
|
1215
|
-
}
|
|
1216
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1217
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1218
|
-
}
|
|
1219
1095
|
};
|
|
1220
1096
|
|
|
1221
1097
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1296,17 +1172,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1296
1172
|
}
|
|
1297
1173
|
disconnectedCallback() {
|
|
1298
1174
|
plt.jmp(() => disconnectedCallback(this));
|
|
1299
|
-
plt.raf(() => {
|
|
1300
|
-
var _a3;
|
|
1301
|
-
const hostRef = getHostRef(this);
|
|
1302
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1303
|
-
if (i2 > -1) {
|
|
1304
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1305
|
-
}
|
|
1306
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1307
|
-
delete hostRef.$vnode$.$elm$;
|
|
1308
|
-
}
|
|
1309
|
-
});
|
|
1310
1175
|
}
|
|
1311
1176
|
componentOnReady() {
|
|
1312
1177
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const promotingBanners = require('./promoting-banners-
|
|
6
|
-
require('./index-
|
|
5
|
+
const promotingBanners = require('./promoting-banners-570e15dc.js');
|
|
6
|
+
require('./index-cb64c2ca.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-cb64c2ca.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-
|
|
3
|
+
const index = require('./index-cb64c2ca.js');
|
|
4
4
|
|
|
5
5
|
const getDevice = () => {
|
|
6
6
|
let userAgent = window.navigator.userAgent;
|
|
@@ -142,33 +142,17 @@ const PromotingBannersStyle0 = promotingBannersCss;
|
|
|
142
142
|
const PromotingBanners = class {
|
|
143
143
|
constructor(hostRef) {
|
|
144
144
|
index.registerInstance(this, hostRef);
|
|
145
|
-
/**
|
|
146
|
-
* The endpoint
|
|
147
|
-
*/
|
|
148
145
|
this.cmsEndpoint = '';
|
|
149
|
-
/**
|
|
150
|
-
* The language
|
|
151
|
-
*/
|
|
152
146
|
this.language = 'en';
|
|
153
|
-
/**
|
|
154
|
-
* The CMS environment
|
|
155
|
-
*/
|
|
156
147
|
this.cmsEnv = '';
|
|
157
|
-
|
|
158
|
-
* Client custom styling via inline style
|
|
159
|
-
*/
|
|
148
|
+
this.mbSource = undefined;
|
|
160
149
|
this.clientStyling = '';
|
|
161
|
-
/**
|
|
162
|
-
* Client custom styling via url
|
|
163
|
-
*/
|
|
164
150
|
this.clientStylingUrl = '';
|
|
165
|
-
/**
|
|
166
|
-
* Translations via URL
|
|
167
|
-
*/
|
|
168
151
|
this.translationUrl = '';
|
|
169
152
|
this.promotingBannersArray = [];
|
|
170
153
|
this.hasErrors = false;
|
|
171
154
|
this.isLoading = true;
|
|
155
|
+
this.translationData = undefined;
|
|
172
156
|
}
|
|
173
157
|
handleClientStylingChange(newValue, oldValue) {
|
|
174
158
|
if (newValue != oldValue) {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const promotingBanners = require('./promoting-banners-
|
|
6
|
-
require('./index-
|
|
5
|
+
const promotingBanners = require('./promoting-banners-570e15dc.js');
|
|
6
|
+
require('./index-cb64c2ca.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-
|
|
5
|
+
const index = require('./index-cb64c2ca.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
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('promoting-banners.cjs.js', document.baseURI).href));
|