@everymatrix/promoting-banners 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-f80d1cdf.js → index-40277d4b.js} +69 -170
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{promoting-banners-ff8c77fe.js → promoting-banners-d707e229.js} +11 -28
- 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 +1 -1
- package/dist/collection/components/promoting-banners/promoting-banners.js +10 -39
- package/dist/esm/{index-7b2dab1a.js → index-936cf61c.js} +69 -170
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{promoting-banners-b7656080.js → promoting-banners-10e80966.js} +11 -28
- 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-53a1c74c.js +1 -0
- package/dist/promoting-banners/p-7f9296a7.entry.js +1 -0
- package/dist/promoting-banners/p-a3d905a8.js +2 -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/package.json +1 -1
- package/dist/promoting-banners/p-375d021c.entry.js +0 -1
- package/dist/promoting-banners/p-4b60bc75.js +0 -2
- package/dist/promoting-banners/p-b2d01706.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/promoting-banners/.stencil/packages/stencil/promoting-banners/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/promoting-banners/.stencil/packages/stencil/promoting-banners/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/promoting-banners/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/promoting-banners/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/promoting-banners/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/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: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, 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,
|
|
24
|
+
const BUILD = /* promoting-banners */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, 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: 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.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/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,7 +337,7 @@ 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) {
|
|
@@ -352,10 +347,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
352
347
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
353
348
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
354
349
|
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
|
-
);
|
|
350
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
359
351
|
} else if ("host" in styleContainerNode) {
|
|
360
352
|
if (supportsConstructableStylesheets) {
|
|
361
353
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -373,7 +365,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
373
365
|
styleContainerNode.append(styleElm);
|
|
374
366
|
}
|
|
375
367
|
}
|
|
376
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
368
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
377
369
|
styleContainerNode.insertBefore(styleElm, null);
|
|
378
370
|
}
|
|
379
371
|
}
|
|
@@ -398,25 +390,23 @@ var attachStyles = (hostRef) => {
|
|
|
398
390
|
const scopeId2 = addStyle(
|
|
399
391
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
400
392
|
cmpMeta);
|
|
401
|
-
if (
|
|
393
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
402
394
|
elm["s-sc"] = scopeId2;
|
|
403
395
|
elm.classList.add(scopeId2 + "-h");
|
|
404
396
|
}
|
|
405
397
|
endAttachStyles();
|
|
406
398
|
};
|
|
407
399
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
408
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
400
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
409
401
|
if (oldValue !== newValue) {
|
|
410
402
|
let isProp = isMemberInElement(elm, memberName);
|
|
411
403
|
let ln = memberName.toLowerCase();
|
|
412
404
|
if (memberName === "class") {
|
|
413
405
|
const classList = elm.classList;
|
|
414
406
|
const oldClasses = parseClassList(oldValue);
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
419
|
-
}
|
|
407
|
+
const newClasses = parseClassList(newValue);
|
|
408
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
409
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
420
410
|
} else if (memberName === "style") {
|
|
421
411
|
{
|
|
422
412
|
for (const prop in oldValue) {
|
|
@@ -475,7 +465,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
475
465
|
elm.setAttribute(memberName, n);
|
|
476
466
|
}
|
|
477
467
|
}
|
|
478
|
-
} else
|
|
468
|
+
} else {
|
|
479
469
|
elm[memberName] = newValue;
|
|
480
470
|
}
|
|
481
471
|
} catch (e) {
|
|
@@ -497,44 +487,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
497
487
|
}
|
|
498
488
|
};
|
|
499
489
|
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
|
-
};
|
|
490
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
509
491
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
510
492
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
511
493
|
|
|
512
494
|
// src/runtime/vdom/update-element.ts
|
|
513
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
495
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
514
496
|
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$ ||
|
|
497
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
498
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
517
499
|
{
|
|
518
500
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
519
501
|
if (!(memberName in newVnodeAttrs)) {
|
|
520
|
-
setAccessor(
|
|
521
|
-
elm,
|
|
522
|
-
memberName,
|
|
523
|
-
oldVnodeAttrs[memberName],
|
|
524
|
-
void 0,
|
|
525
|
-
isSvgMode2,
|
|
526
|
-
newVnode.$flags$);
|
|
502
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
527
503
|
}
|
|
528
504
|
}
|
|
529
505
|
}
|
|
530
506
|
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$);
|
|
507
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
538
508
|
}
|
|
539
509
|
};
|
|
540
510
|
function sortedAttrNames(attrNames) {
|
|
@@ -546,10 +516,13 @@ function sortedAttrNames(attrNames) {
|
|
|
546
516
|
attrNames
|
|
547
517
|
);
|
|
548
518
|
}
|
|
519
|
+
|
|
520
|
+
// src/runtime/vdom/vdom-render.ts
|
|
521
|
+
var scopeId;
|
|
549
522
|
var hostTagName;
|
|
550
523
|
var useNativeShadowDom = false;
|
|
551
524
|
var isSvgMode = false;
|
|
552
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
525
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
553
526
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
554
527
|
let i2 = 0;
|
|
555
528
|
let elm;
|
|
@@ -563,6 +536,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
563
536
|
{
|
|
564
537
|
updateElement(null, newVNode2, isSvgMode);
|
|
565
538
|
}
|
|
539
|
+
const rootNode = elm.getRootNode();
|
|
540
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
541
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
542
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
543
|
+
}
|
|
566
544
|
if (newVNode2.$children$) {
|
|
567
545
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
568
546
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -692,9 +670,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
692
670
|
if (!isInitialRender) {
|
|
693
671
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
694
672
|
}
|
|
695
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
696
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
697
|
-
}
|
|
698
673
|
return true;
|
|
699
674
|
}
|
|
700
675
|
return false;
|
|
@@ -734,9 +709,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
734
709
|
}
|
|
735
710
|
};
|
|
736
711
|
var insertBefore = (parent, newNode, reference) => {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
712
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
713
|
+
return inserted;
|
|
740
714
|
};
|
|
741
715
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
742
716
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -761,21 +735,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
761
735
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
762
736
|
hostRef.$vnode$ = rootVnode;
|
|
763
737
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
764
|
-
|
|
738
|
+
{
|
|
739
|
+
scopeId = hostElm["s-sc"];
|
|
740
|
+
}
|
|
741
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
765
742
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
766
743
|
};
|
|
767
744
|
|
|
768
745
|
// src/runtime/update-component.ts
|
|
769
746
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
770
747
|
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
|
-
);
|
|
748
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
779
749
|
}
|
|
780
750
|
};
|
|
781
751
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -802,7 +772,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
802
772
|
let maybePromise;
|
|
803
773
|
if (isInitialLoad) {
|
|
804
774
|
{
|
|
805
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
775
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
806
776
|
}
|
|
807
777
|
}
|
|
808
778
|
endSchedule();
|
|
@@ -896,14 +866,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
896
866
|
}
|
|
897
867
|
};
|
|
898
868
|
var appDidLoad = (who) => {
|
|
869
|
+
{
|
|
870
|
+
addHydratedFlag(doc.documentElement);
|
|
871
|
+
}
|
|
899
872
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
900
873
|
};
|
|
901
|
-
var safeCall = (instance, method, arg
|
|
874
|
+
var safeCall = (instance, method, arg) => {
|
|
902
875
|
if (instance && instance[method]) {
|
|
903
876
|
try {
|
|
904
877
|
return instance[method](arg);
|
|
905
878
|
} catch (e) {
|
|
906
|
-
consoleError(e
|
|
879
|
+
consoleError(e);
|
|
907
880
|
}
|
|
908
881
|
}
|
|
909
882
|
return void 0;
|
|
@@ -962,68 +935,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
962
935
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
963
936
|
members.map(([memberName, [memberFlags]]) => {
|
|
964
937
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
965
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
966
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
967
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
968
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
969
|
-
Object.defineProperty(prototype, memberName, {
|
|
970
|
-
get() {
|
|
971
|
-
{
|
|
972
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
973
|
-
return getValue(this, memberName);
|
|
974
|
-
}
|
|
975
|
-
const ref = getHostRef(this);
|
|
976
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
977
|
-
if (!instance) return;
|
|
978
|
-
return instance[memberName];
|
|
979
|
-
}
|
|
980
|
-
},
|
|
981
|
-
configurable: true,
|
|
982
|
-
enumerable: true
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
938
|
Object.defineProperty(prototype, memberName, {
|
|
939
|
+
get() {
|
|
940
|
+
return getValue(this, memberName);
|
|
941
|
+
},
|
|
986
942
|
set(newValue) {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
992
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
993
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
994
|
-
}
|
|
995
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
996
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
997
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
998
|
-
return;
|
|
999
|
-
}
|
|
1000
|
-
{
|
|
1001
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1002
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1003
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1004
|
-
ref.$onReadyPromise$.then(() => {
|
|
1005
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1006
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1007
|
-
}
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
return;
|
|
1011
|
-
}
|
|
1012
|
-
const setterSetVal = () => {
|
|
1013
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1014
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1015
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1016
|
-
}
|
|
1017
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1018
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1019
|
-
};
|
|
1020
|
-
if (ref.$lazyInstance$) {
|
|
1021
|
-
setterSetVal();
|
|
1022
|
-
} else {
|
|
1023
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
943
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
944
|
+
},
|
|
945
|
+
configurable: true,
|
|
946
|
+
enumerable: true
|
|
1027
947
|
});
|
|
1028
948
|
}
|
|
1029
949
|
});
|
|
@@ -1033,7 +953,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1033
953
|
plt.jmp(() => {
|
|
1034
954
|
var _a2;
|
|
1035
955
|
const propName = attrNameToPropName.get(attrName);
|
|
1036
|
-
if (this.hasOwnProperty(propName)
|
|
956
|
+
if (this.hasOwnProperty(propName)) {
|
|
1037
957
|
newValue = this[propName];
|
|
1038
958
|
delete this[propName];
|
|
1039
959
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1053,11 +973,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1053
973
|
}
|
|
1054
974
|
return;
|
|
1055
975
|
}
|
|
1056
|
-
|
|
1057
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1058
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1059
|
-
this[propName] = newValue;
|
|
1060
|
-
}
|
|
976
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1061
977
|
});
|
|
1062
978
|
};
|
|
1063
979
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1086,7 +1002,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1086
1002
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1087
1003
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1088
1004
|
if (bundleId) {
|
|
1089
|
-
const CstrImport = loadModule(cmpMeta
|
|
1005
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1090
1006
|
if (CstrImport && "then" in CstrImport) {
|
|
1091
1007
|
const endLoad = uniqueTime();
|
|
1092
1008
|
Cstr = await CstrImport;
|
|
@@ -1111,7 +1027,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1111
1027
|
try {
|
|
1112
1028
|
new Cstr(hostRef);
|
|
1113
1029
|
} catch (e) {
|
|
1114
|
-
consoleError(e
|
|
1030
|
+
consoleError(e);
|
|
1115
1031
|
}
|
|
1116
1032
|
{
|
|
1117
1033
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1120,7 +1036,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1120
1036
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1121
1037
|
}
|
|
1122
1038
|
endNewInstance();
|
|
1123
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1039
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1124
1040
|
} else {
|
|
1125
1041
|
Cstr = elm.constructor;
|
|
1126
1042
|
const cmpTag = elm.localName;
|
|
@@ -1147,9 +1063,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1147
1063
|
schedule();
|
|
1148
1064
|
}
|
|
1149
1065
|
};
|
|
1150
|
-
var fireConnectedCallback = (instance
|
|
1066
|
+
var fireConnectedCallback = (instance) => {
|
|
1151
1067
|
{
|
|
1152
|
-
safeCall(instance, "connectedCallback"
|
|
1068
|
+
safeCall(instance, "connectedCallback");
|
|
1153
1069
|
}
|
|
1154
1070
|
};
|
|
1155
1071
|
|
|
@@ -1184,15 +1100,15 @@ var connectedCallback = (elm) => {
|
|
|
1184
1100
|
}
|
|
1185
1101
|
} else {
|
|
1186
1102
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1187
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1103
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1188
1104
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1189
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1105
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1190
1106
|
}
|
|
1191
1107
|
}
|
|
1192
1108
|
endConnected();
|
|
1193
1109
|
}
|
|
1194
1110
|
};
|
|
1195
|
-
var disconnectInstance = (instance
|
|
1111
|
+
var disconnectInstance = (instance) => {
|
|
1196
1112
|
};
|
|
1197
1113
|
var disconnectedCallback = async (elm) => {
|
|
1198
1114
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1201,12 +1117,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1201
1117
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1202
1118
|
}
|
|
1203
1119
|
}
|
|
1204
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1205
|
-
rootAppliedStyles.delete(elm);
|
|
1206
|
-
}
|
|
1207
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1208
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1209
|
-
}
|
|
1210
1120
|
};
|
|
1211
1121
|
|
|
1212
1122
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1287,17 +1197,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1287
1197
|
}
|
|
1288
1198
|
disconnectedCallback() {
|
|
1289
1199
|
plt.jmp(() => disconnectedCallback(this));
|
|
1290
|
-
plt.raf(() => {
|
|
1291
|
-
var _a3;
|
|
1292
|
-
const hostRef = getHostRef(this);
|
|
1293
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1294
|
-
if (i2 > -1) {
|
|
1295
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1296
|
-
}
|
|
1297
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1298
|
-
delete hostRef.$vnode$.$elm$;
|
|
1299
|
-
}
|
|
1300
|
-
});
|
|
1301
1200
|
}
|
|
1302
1201
|
componentOnReady() {
|
|
1303
1202
|
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-d707e229.js');
|
|
6
|
+
require('./index-40277d4b.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-40277d4b.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-40277d4b.js');
|
|
4
4
|
|
|
5
5
|
const getDevice = () => {
|
|
6
6
|
let userAgent = window.navigator.userAgent;
|
|
@@ -85,33 +85,6 @@ const PromotingBannersStyle0 = promotingBannersCss;
|
|
|
85
85
|
const PromotingBanners = class {
|
|
86
86
|
constructor(hostRef) {
|
|
87
87
|
index.registerInstance(this, hostRef);
|
|
88
|
-
/**
|
|
89
|
-
* The endpoint
|
|
90
|
-
*/
|
|
91
|
-
this.cmsEndpoint = '';
|
|
92
|
-
/**
|
|
93
|
-
* The language
|
|
94
|
-
*/
|
|
95
|
-
this.language = 'en';
|
|
96
|
-
/**
|
|
97
|
-
* The CMS environment
|
|
98
|
-
*/
|
|
99
|
-
this.cmsEnv = '';
|
|
100
|
-
/**
|
|
101
|
-
* Client custom styling via inline style
|
|
102
|
-
*/
|
|
103
|
-
this.clientStyling = '';
|
|
104
|
-
/**
|
|
105
|
-
* Client custom styling via url
|
|
106
|
-
*/
|
|
107
|
-
this.clientStylingUrl = '';
|
|
108
|
-
/**
|
|
109
|
-
* Translations via URL
|
|
110
|
-
*/
|
|
111
|
-
this.translationUrl = '';
|
|
112
|
-
this.promotingBannersArray = [];
|
|
113
|
-
this.hasErrors = false;
|
|
114
|
-
this.isLoading = true;
|
|
115
88
|
this.setClientStyling = () => {
|
|
116
89
|
let sheet = document.createElement('style');
|
|
117
90
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -138,6 +111,16 @@ const PromotingBanners = class {
|
|
|
138
111
|
this.setClientStylingURL();
|
|
139
112
|
}
|
|
140
113
|
};
|
|
114
|
+
this.cmsEndpoint = '';
|
|
115
|
+
this.language = 'en';
|
|
116
|
+
this.cmsEnv = '';
|
|
117
|
+
this.clientStyling = '';
|
|
118
|
+
this.clientStylingUrl = '';
|
|
119
|
+
this.translationUrl = '';
|
|
120
|
+
this.promotingBannersArray = [];
|
|
121
|
+
this.hasErrors = false;
|
|
122
|
+
this.isLoading = true;
|
|
123
|
+
this.translationData = undefined;
|
|
141
124
|
}
|
|
142
125
|
handleStylingChange(newValue, oldValue) {
|
|
143
126
|
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-d707e229.js');
|
|
6
|
+
require('./index-40277d4b.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-40277d4b.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.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('promoting-banners.cjs.js', document.baseURI).href));
|