@everymatrix/general-footer-template 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/custom-clock.cjs.entry.js +6 -18
- package/dist/cjs/custom-content-section.cjs.entry.js +37 -86
- package/dist/cjs/general-footer-template.cjs.entry.js +79 -70
- package/dist/cjs/general-footer-template.cjs.js +3 -3
- package/dist/cjs/image-list.cjs.entry.js +4 -9
- package/dist/cjs/{index-10cb8e8c.js → index-d85e54c5.js} +92 -197
- package/dist/cjs/link-section-list.cjs.entry.js +5 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/custom-clock/custom-clock.js +5 -25
- package/dist/collection/components/custom-content-section/custom-content-section.js +6 -17
- package/dist/collection/components/general-footer-template/demo-footer.css +1 -2
- package/dist/collection/components/general-footer-template/general-footer-template.js +41 -93
- package/dist/collection/components/image-list/image-list.js +3 -14
- package/dist/collection/components/link-section-list/link-section-list.js +4 -17
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/custom-clock.entry.js +6 -18
- package/dist/esm/custom-content-section.entry.js +37 -86
- package/dist/esm/general-footer-template.entry.js +79 -70
- package/dist/esm/general-footer-template.js +4 -4
- package/dist/esm/image-list.entry.js +4 -9
- package/dist/esm/{index-e2977b84.js → index-7f32a4a7.js} +92 -197
- package/dist/esm/link-section-list.entry.js +5 -8
- package/dist/esm/loader.js +3 -3
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/p-122e0353.entry.js +1 -0
- package/dist/general-footer-template/p-905acd21.js +2 -0
- package/dist/general-footer-template/p-9aeab1ea.entry.js +1 -0
- package/dist/general-footer-template/p-a6279430.entry.js +1 -0
- package/dist/general-footer-template/{p-48b95d9a.entry.js → p-cd14a119.entry.js} +2 -2
- package/dist/general-footer-template/{p-ec9d9aab.entry.js → p-f5a17365.entry.js} +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/general-footer-template/general-footer-template.d.ts +4 -4
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/collection/components/general-footer-template/general-footer-template.css +0 -84
- package/dist/collection/components/general-footer-template/pariuri_plus_variant.css +0 -185
- package/dist/collection/components/general-footer-template/variant_style_1.css +0 -146
- package/dist/general-footer-template/p-2477706f.entry.js +0 -1
- package/dist/general-footer-template/p-5d1fe559.js +0 -2
- package/dist/general-footer-template/p-c646816c.entry.js +0 -1
- package/dist/general-footer-template/p-cb29a35c.entry.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.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/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'general-footer-template';
|
|
2
|
-
const BUILD = /* general-footer-template */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
2
|
+
const BUILD = /* general-footer-template */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: 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: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: true, 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: true, 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.
|
|
5
|
+
Stencil Client Platform v4.22.3 | 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
|
-
|
|
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);
|
|
@@ -82,22 +77,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
82
77
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
83
78
|
/* webpackMode: "lazy" */
|
|
84
79
|
`./${bundleId}.entry.js${""}`
|
|
85
|
-
).then(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
cmpModules.set(bundleId, importedModule);
|
|
89
|
-
}
|
|
90
|
-
return importedModule[exportName];
|
|
91
|
-
},
|
|
92
|
-
(e) => {
|
|
93
|
-
consoleError(e, hostRef.$hostElement$);
|
|
80
|
+
).then((importedModule) => {
|
|
81
|
+
{
|
|
82
|
+
cmpModules.set(bundleId, importedModule);
|
|
94
83
|
}
|
|
95
|
-
|
|
84
|
+
return importedModule[exportName];
|
|
85
|
+
}, consoleError);
|
|
96
86
|
};
|
|
97
87
|
|
|
98
88
|
// src/client/client-style.ts
|
|
99
89
|
var styles = /* @__PURE__ */ new Map();
|
|
100
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
101
90
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
102
91
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
103
92
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -156,8 +145,11 @@ var flush = () => {
|
|
|
156
145
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
157
146
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
158
147
|
|
|
148
|
+
// src/utils/constants.ts
|
|
149
|
+
var EMPTY_OBJ = {};
|
|
150
|
+
|
|
159
151
|
// src/utils/helpers.ts
|
|
160
|
-
var isDef = (v) => v != null
|
|
152
|
+
var isDef = (v) => v != null;
|
|
161
153
|
var isComplexType = (o) => {
|
|
162
154
|
o = typeof o;
|
|
163
155
|
return o === "object" || o === "function";
|
|
@@ -379,7 +371,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
379
371
|
}
|
|
380
372
|
if (!appliedStyles.has(scopeId2)) {
|
|
381
373
|
{
|
|
382
|
-
styleElm =
|
|
374
|
+
styleElm = doc.createElement("style");
|
|
383
375
|
styleElm.innerHTML = style;
|
|
384
376
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
385
377
|
if (nonce != null) {
|
|
@@ -389,10 +381,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
389
381
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
390
382
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
391
383
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
392
|
-
styleContainerNode.insertBefore(
|
|
393
|
-
styleElm,
|
|
394
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
395
|
-
);
|
|
384
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
396
385
|
} else if ("host" in styleContainerNode) {
|
|
397
386
|
if (supportsConstructableStylesheets) {
|
|
398
387
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -410,7 +399,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
410
399
|
styleContainerNode.append(styleElm);
|
|
411
400
|
}
|
|
412
401
|
}
|
|
413
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
402
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
414
403
|
styleContainerNode.insertBefore(styleElm, null);
|
|
415
404
|
}
|
|
416
405
|
}
|
|
@@ -435,25 +424,26 @@ var attachStyles = (hostRef) => {
|
|
|
435
424
|
const scopeId2 = addStyle(
|
|
436
425
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
437
426
|
cmpMeta);
|
|
438
|
-
if (
|
|
427
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
439
428
|
elm["s-sc"] = scopeId2;
|
|
440
429
|
elm.classList.add(scopeId2 + "-h");
|
|
430
|
+
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
431
|
+
elm.classList.add(scopeId2 + "-s");
|
|
432
|
+
}
|
|
441
433
|
}
|
|
442
434
|
endAttachStyles();
|
|
443
435
|
};
|
|
444
436
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
445
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
437
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
446
438
|
if (oldValue !== newValue) {
|
|
447
439
|
let isProp = isMemberInElement(elm, memberName);
|
|
448
440
|
let ln = memberName.toLowerCase();
|
|
449
441
|
if (memberName === "class") {
|
|
450
442
|
const classList = elm.classList;
|
|
451
443
|
const oldClasses = parseClassList(oldValue);
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
456
|
-
}
|
|
444
|
+
const newClasses = parseClassList(newValue);
|
|
445
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
446
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
457
447
|
} else if (memberName === "style") {
|
|
458
448
|
{
|
|
459
449
|
for (const prop in oldValue) {
|
|
@@ -512,7 +502,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
512
502
|
elm.setAttribute(memberName, n);
|
|
513
503
|
}
|
|
514
504
|
}
|
|
515
|
-
} else
|
|
505
|
+
} else {
|
|
516
506
|
elm[memberName] = newValue;
|
|
517
507
|
}
|
|
518
508
|
} catch (e) {
|
|
@@ -534,44 +524,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
534
524
|
}
|
|
535
525
|
};
|
|
536
526
|
var parseClassListRegex = /\s/;
|
|
537
|
-
var parseClassList = (value) =>
|
|
538
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
539
|
-
value = value.baseVal;
|
|
540
|
-
}
|
|
541
|
-
if (!value || typeof value !== "string") {
|
|
542
|
-
return [];
|
|
543
|
-
}
|
|
544
|
-
return value.split(parseClassListRegex);
|
|
545
|
-
};
|
|
527
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
546
528
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
547
529
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
548
530
|
|
|
549
531
|
// src/runtime/vdom/update-element.ts
|
|
550
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
532
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
551
533
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
552
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
553
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
534
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
535
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
554
536
|
{
|
|
555
537
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
556
538
|
if (!(memberName in newVnodeAttrs)) {
|
|
557
|
-
setAccessor(
|
|
558
|
-
elm,
|
|
559
|
-
memberName,
|
|
560
|
-
oldVnodeAttrs[memberName],
|
|
561
|
-
void 0,
|
|
562
|
-
isSvgMode2,
|
|
563
|
-
newVnode.$flags$);
|
|
539
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
564
540
|
}
|
|
565
541
|
}
|
|
566
542
|
}
|
|
567
543
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
568
|
-
setAccessor(
|
|
569
|
-
elm,
|
|
570
|
-
memberName,
|
|
571
|
-
oldVnodeAttrs[memberName],
|
|
572
|
-
newVnodeAttrs[memberName],
|
|
573
|
-
isSvgMode2,
|
|
574
|
-
newVnode.$flags$);
|
|
544
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
575
545
|
}
|
|
576
546
|
};
|
|
577
547
|
function sortedAttrNames(attrNames) {
|
|
@@ -589,7 +559,7 @@ var scopeId;
|
|
|
589
559
|
var hostTagName;
|
|
590
560
|
var useNativeShadowDom = false;
|
|
591
561
|
var isSvgMode = false;
|
|
592
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
562
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
593
563
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
594
564
|
let i2 = 0;
|
|
595
565
|
let elm;
|
|
@@ -603,12 +573,17 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
603
573
|
{
|
|
604
574
|
updateElement(null, newVNode2, isSvgMode);
|
|
605
575
|
}
|
|
606
|
-
|
|
576
|
+
const rootNode = elm.getRootNode();
|
|
577
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
578
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
607
579
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
608
580
|
}
|
|
581
|
+
{
|
|
582
|
+
updateElementScopeIds(elm, parentElm);
|
|
583
|
+
}
|
|
609
584
|
if (newVNode2.$children$) {
|
|
610
585
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
611
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
586
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
612
587
|
if (childNode) {
|
|
613
588
|
elm.appendChild(childNode);
|
|
614
589
|
}
|
|
@@ -626,7 +601,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
626
601
|
}
|
|
627
602
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
628
603
|
if (vnodes[startIdx]) {
|
|
629
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
604
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
630
605
|
if (childNode) {
|
|
631
606
|
vnodes[startIdx].$elm$ = childNode;
|
|
632
607
|
insertBefore(containerElm, childNode, before);
|
|
@@ -699,7 +674,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
699
674
|
if (idxInOld >= 0) {
|
|
700
675
|
elmToMove = oldCh[idxInOld];
|
|
701
676
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
702
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
677
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
703
678
|
} else {
|
|
704
679
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
705
680
|
oldCh[idxInOld] = void 0;
|
|
@@ -707,7 +682,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
707
682
|
}
|
|
708
683
|
newStartVnode = newCh[++newStartIdx];
|
|
709
684
|
} else {
|
|
710
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
685
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
711
686
|
newStartVnode = newCh[++newStartIdx];
|
|
712
687
|
}
|
|
713
688
|
if (node) {
|
|
@@ -735,9 +710,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
735
710
|
if (!isInitialRender) {
|
|
736
711
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
737
712
|
}
|
|
738
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
739
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
740
|
-
}
|
|
741
713
|
return true;
|
|
742
714
|
}
|
|
743
715
|
return false;
|
|
@@ -777,34 +749,38 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
777
749
|
}
|
|
778
750
|
};
|
|
779
751
|
var insertBefore = (parent, newNode, reference) => {
|
|
780
|
-
|
|
781
|
-
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
782
|
-
}
|
|
752
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
783
753
|
{
|
|
784
|
-
|
|
754
|
+
updateElementScopeIds(newNode, parent);
|
|
785
755
|
}
|
|
756
|
+
return inserted;
|
|
786
757
|
};
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
758
|
+
var findScopeIds = (element) => {
|
|
759
|
+
const scopeIds = [];
|
|
760
|
+
if (element) {
|
|
761
|
+
scopeIds.push(
|
|
762
|
+
...element["s-scs"] || [],
|
|
763
|
+
element["s-si"],
|
|
764
|
+
element["s-sc"],
|
|
765
|
+
...findScopeIds(element.parentElement)
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
return scopeIds;
|
|
769
|
+
};
|
|
770
|
+
var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
771
|
+
var _a;
|
|
772
|
+
if (element && parent && element.nodeType === 1 /* ElementNode */) {
|
|
773
|
+
const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
|
|
774
|
+
if (scopeIds.size) {
|
|
775
|
+
(_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
|
|
776
|
+
if (element["s-ol"] || iterateChildNodes) {
|
|
777
|
+
for (const childNode of Array.from(element.childNodes)) {
|
|
778
|
+
updateElementScopeIds(childNode, element, true);
|
|
801
779
|
}
|
|
802
|
-
child = child.nextSibling;
|
|
803
780
|
}
|
|
804
|
-
if (!found) oldParent.classList.remove(scopeId2 + "-s");
|
|
805
781
|
}
|
|
806
782
|
}
|
|
807
|
-
}
|
|
783
|
+
};
|
|
808
784
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
809
785
|
const hostElm = hostRef.$hostElement$;
|
|
810
786
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -831,21 +807,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
831
807
|
{
|
|
832
808
|
scopeId = hostElm["s-sc"];
|
|
833
809
|
}
|
|
834
|
-
useNativeShadowDom =
|
|
810
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
835
811
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
836
812
|
};
|
|
837
813
|
|
|
838
814
|
// src/runtime/update-component.ts
|
|
839
815
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
840
816
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
841
|
-
|
|
842
|
-
new Promise(
|
|
843
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
844
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
845
|
-
r();
|
|
846
|
-
}
|
|
847
|
-
)
|
|
848
|
-
);
|
|
817
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
849
818
|
}
|
|
850
819
|
};
|
|
851
820
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -872,7 +841,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
872
841
|
let maybePromise;
|
|
873
842
|
if (isInitialLoad) {
|
|
874
843
|
{
|
|
875
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
844
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
876
845
|
}
|
|
877
846
|
}
|
|
878
847
|
endSchedule();
|
|
@@ -940,16 +909,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
940
909
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
941
910
|
const instance = hostRef.$lazyInstance$ ;
|
|
942
911
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
943
|
-
{
|
|
944
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
945
|
-
}
|
|
946
912
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
947
913
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
948
914
|
{
|
|
949
915
|
addHydratedFlag(elm);
|
|
950
916
|
}
|
|
951
917
|
{
|
|
952
|
-
safeCall(instance, "componentDidLoad"
|
|
918
|
+
safeCall(instance, "componentDidLoad");
|
|
953
919
|
}
|
|
954
920
|
endPostUpdate();
|
|
955
921
|
{
|
|
@@ -973,14 +939,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
973
939
|
}
|
|
974
940
|
};
|
|
975
941
|
var appDidLoad = (who) => {
|
|
942
|
+
{
|
|
943
|
+
addHydratedFlag(doc.documentElement);
|
|
944
|
+
}
|
|
976
945
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
977
946
|
};
|
|
978
|
-
var safeCall = (instance, method, arg
|
|
947
|
+
var safeCall = (instance, method, arg) => {
|
|
979
948
|
if (instance && instance[method]) {
|
|
980
949
|
try {
|
|
981
950
|
return instance[method](arg);
|
|
982
951
|
} catch (e) {
|
|
983
|
-
consoleError(e
|
|
952
|
+
consoleError(e);
|
|
984
953
|
}
|
|
985
954
|
}
|
|
986
955
|
return void 0;
|
|
@@ -1039,68 +1008,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1039
1008
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1040
1009
|
members.map(([memberName, [memberFlags]]) => {
|
|
1041
1010
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1042
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1043
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1044
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1045
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1046
|
-
Object.defineProperty(prototype, memberName, {
|
|
1047
|
-
get() {
|
|
1048
|
-
{
|
|
1049
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1050
|
-
return getValue(this, memberName);
|
|
1051
|
-
}
|
|
1052
|
-
const ref = getHostRef(this);
|
|
1053
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1054
|
-
if (!instance) return;
|
|
1055
|
-
return instance[memberName];
|
|
1056
|
-
}
|
|
1057
|
-
},
|
|
1058
|
-
configurable: true,
|
|
1059
|
-
enumerable: true
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
1011
|
Object.defineProperty(prototype, memberName, {
|
|
1012
|
+
get() {
|
|
1013
|
+
return getValue(this, memberName);
|
|
1014
|
+
},
|
|
1063
1015
|
set(newValue) {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1069
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1070
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1071
|
-
}
|
|
1072
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1073
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1074
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1075
|
-
return;
|
|
1076
|
-
}
|
|
1077
|
-
{
|
|
1078
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1079
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1080
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1081
|
-
ref.$onReadyPromise$.then(() => {
|
|
1082
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1083
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1084
|
-
}
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
return;
|
|
1088
|
-
}
|
|
1089
|
-
const setterSetVal = () => {
|
|
1090
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1091
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1092
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1093
|
-
}
|
|
1094
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1095
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1096
|
-
};
|
|
1097
|
-
if (ref.$lazyInstance$) {
|
|
1098
|
-
setterSetVal();
|
|
1099
|
-
} else {
|
|
1100
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1016
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1017
|
+
},
|
|
1018
|
+
configurable: true,
|
|
1019
|
+
enumerable: true
|
|
1104
1020
|
});
|
|
1105
1021
|
}
|
|
1106
1022
|
});
|
|
@@ -1110,7 +1026,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1110
1026
|
plt.jmp(() => {
|
|
1111
1027
|
var _a2;
|
|
1112
1028
|
const propName = attrNameToPropName.get(attrName);
|
|
1113
|
-
if (this.hasOwnProperty(propName)
|
|
1029
|
+
if (this.hasOwnProperty(propName)) {
|
|
1114
1030
|
newValue = this[propName];
|
|
1115
1031
|
delete this[propName];
|
|
1116
1032
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1130,11 +1046,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1130
1046
|
}
|
|
1131
1047
|
return;
|
|
1132
1048
|
}
|
|
1133
|
-
|
|
1134
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1135
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1136
|
-
this[propName] = newValue;
|
|
1137
|
-
}
|
|
1049
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1138
1050
|
});
|
|
1139
1051
|
};
|
|
1140
1052
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1163,7 +1075,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1163
1075
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1164
1076
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1165
1077
|
if (bundleId) {
|
|
1166
|
-
const CstrImport = loadModule(cmpMeta
|
|
1078
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1167
1079
|
if (CstrImport && "then" in CstrImport) {
|
|
1168
1080
|
const endLoad = uniqueTime();
|
|
1169
1081
|
Cstr = await CstrImport;
|
|
@@ -1188,7 +1100,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1188
1100
|
try {
|
|
1189
1101
|
new Cstr(hostRef);
|
|
1190
1102
|
} catch (e) {
|
|
1191
|
-
consoleError(e
|
|
1103
|
+
consoleError(e);
|
|
1192
1104
|
}
|
|
1193
1105
|
{
|
|
1194
1106
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1223,7 +1135,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1223
1135
|
schedule();
|
|
1224
1136
|
}
|
|
1225
1137
|
};
|
|
1226
|
-
var fireConnectedCallback = (instance
|
|
1138
|
+
var fireConnectedCallback = (instance) => {
|
|
1227
1139
|
};
|
|
1228
1140
|
|
|
1229
1141
|
// src/runtime/connected-callback.ts
|
|
@@ -1263,26 +1175,20 @@ var connectedCallback = (elm) => {
|
|
|
1263
1175
|
endConnected();
|
|
1264
1176
|
}
|
|
1265
1177
|
};
|
|
1266
|
-
var disconnectInstance = (instance
|
|
1178
|
+
var disconnectInstance = (instance) => {
|
|
1267
1179
|
{
|
|
1268
|
-
safeCall(instance, "disconnectedCallback"
|
|
1180
|
+
safeCall(instance, "disconnectedCallback");
|
|
1269
1181
|
}
|
|
1270
1182
|
};
|
|
1271
1183
|
var disconnectedCallback = async (elm) => {
|
|
1272
1184
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1273
1185
|
const hostRef = getHostRef(elm);
|
|
1274
1186
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1275
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1187
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1276
1188
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1277
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1189
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1278
1190
|
}
|
|
1279
1191
|
}
|
|
1280
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1281
|
-
rootAppliedStyles.delete(elm);
|
|
1282
|
-
}
|
|
1283
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1284
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1285
|
-
}
|
|
1286
1192
|
};
|
|
1287
1193
|
|
|
1288
1194
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1363,17 +1269,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1363
1269
|
}
|
|
1364
1270
|
disconnectedCallback() {
|
|
1365
1271
|
plt.jmp(() => disconnectedCallback(this));
|
|
1366
|
-
plt.raf(() => {
|
|
1367
|
-
var _a3;
|
|
1368
|
-
const hostRef = getHostRef(this);
|
|
1369
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1370
|
-
if (i2 > -1) {
|
|
1371
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1372
|
-
}
|
|
1373
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1374
|
-
delete hostRef.$vnode$.$elm$;
|
|
1375
|
-
}
|
|
1376
|
-
});
|
|
1377
1272
|
}
|
|
1378
1273
|
componentOnReady() {
|
|
1379
1274
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-7f32a4a7.js';
|
|
2
2
|
|
|
3
3
|
const linkSectionListCss = ":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n padding-left: 25px;\n position: relative;\n}\nul li::before {\n content: \"\";\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 8px;\n height: 8px;\n background-color: var(--emw--footer-color-primary, var(--emw--color-primary, #22B04E));\n border-radius: 50%;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\nul li .LinkSectionListLinkText img.LinkSectionIcon {\n position: relative;\n height: 25px;\n padding: 0 5px;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}";
|
|
4
4
|
const LinkSectionListStyle0 = linkSectionListCss;
|
|
@@ -6,13 +6,10 @@ const LinkSectionListStyle0 = linkSectionListCss;
|
|
|
6
6
|
const LinkSectionList = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
this.repeaterContent = undefined;
|
|
10
|
+
this.baseUrl = undefined;
|
|
11
|
+
this.language = undefined;
|
|
12
12
|
this.navigateViaEvent = false;
|
|
13
|
-
/**
|
|
14
|
-
* Post Message event to be sent on navigation via event
|
|
15
|
-
*/
|
|
16
13
|
this.postMessageEvent = '';
|
|
17
14
|
}
|
|
18
15
|
navigateLink(link) {
|
|
@@ -47,7 +44,7 @@ const LinkSectionList = class {
|
|
|
47
44
|
}
|
|
48
45
|
return obj;
|
|
49
46
|
}, []);
|
|
50
|
-
return h("div", { class: "LinkSectionListContainer" }, h("div", { class: "LinkSectionListWrapper" }, h("h2", { class: "LinkSectionListTitle" },
|
|
47
|
+
return h("div", { class: "LinkSectionListContainer" }, h("div", { class: "LinkSectionListWrapper" }, this.repeaterContent.categoryTitle && h("h2", { class: "LinkSectionListTitle" }, this.repeaterContent.categoryTitle), linkSections.map(category => h("ul", null, category.categoryTitle && h("p", null, category.categoryTitle), category.links.map(link => h("li", { class: "LinkSectionListLink", key: link.linkName }, this.navigateViaEvent === true ? (h("span", null, link.linkName && link.icon ? (h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, h("img", { class: "LinkSectionIcon", src: link.icon, alt: "icon" }), h("span", null, link.linkName, " "))) :
|
|
51
48
|
link.linkName ?
|
|
52
49
|
h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, h("span", null, link.linkName, " "))
|
|
53
50
|
:
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-7f32a4a7.js';
|
|
2
|
+
export { s as setNonce } from './index-7f32a4a7.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["custom-content-section",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["custom-clock",[[2,"custom-clock",{"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"translationUrl":[513,"translation-url"],"language":[513],"timeString":[32]},null,{"translationUrl":["handleNewTranslations"]}]]],["general-footer-template",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"
|
|
8
|
+
return bootstrapLazy([["custom-content-section",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["custom-clock",[[2,"custom-clock",{"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"translationUrl":[513,"translation-url"],"language":[513],"timeString":[32]},null,{"translationUrl":["handleNewTranslations"]}]]],["general-footer-template",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"mbSource":[513,"mb-source"],"hasErrors":[32]}]]],["link-section-list",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["image-list",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-
|
|
1
|
+
import{p as e,b as t}from"./p-905acd21.js";export{s as setNonce}from"./p-905acd21.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-cd14a119",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-f5a17365",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["p-9aeab1ea",[[1,"general-footer-template",{language:[513],sections:[513],endpoint:[513],env:[513],userRoles:[513,"user-roles"],userid:[513],session:[513],baseUrl:[513,"base-url"],navigateViaEvent:[513,"navigate-via-event"],postMessageEvent:[513,"post-message-event"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],mbSource:[513,"mb-source"],hasErrors:[32]}]]],["p-122e0353",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-a6279430",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,h as i}from"./p-905acd21.js";const t=class{constructor(i){n(this,i),this.repeaterContent=void 0,this.baseUrl=void 0,this.language=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}navigateLink(n){window.postMessage({type:this.postMessageEvent,path:n.linkUrl,url:n.linkUrl,target:n.target,externalLink:n.externalLink},window.location.href)}render(){var n,t;const e=null===(t=null===(n=this.repeaterContent)||void 0===n?void 0:n.content)||void 0===t?void 0:t.reduce(((n,i)=>{const t=i.linkCategory,e=i.image,s=n.find((n=>n.categoryTitle===t));return s?s.links.push({linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink,icon:e}):n.push({categoryTitle:t,links:[{linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink,icon:e}]}),n}),[]);return i("div",{class:"LinkSectionListContainer"},i("div",{class:"LinkSectionListWrapper"},this.repeaterContent.categoryTitle&&i("h2",{class:"LinkSectionListTitle"},this.repeaterContent.categoryTitle),e.map((n=>i("ul",null,n.categoryTitle&&i("p",null,n.categoryTitle),n.links.map((n=>i("li",{class:"LinkSectionListLink",key:n.linkName},!0===this.navigateViaEvent?i("span",null,n.linkName&&n.icon?i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},i("img",{class:"LinkSectionIcon",src:n.icon,alt:"icon"}),i("span",null,n.linkName," ")):i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},n.linkName?i("span",null,n.linkName," "):i("img",{class:"LinkSectionIcon",src:n.icon,alt:"icon"}))):i("a",{class:"LinkSectionListLink",href:n.externalLink?n.linkUrl:`${this.baseUrl}/${this.language}${n.linkUrl}`,target:n.target||"_blank"},n.linkName&&n.icon?i("span",{class:"LinkSectionListLinkText"},i("img",{class:"LinkSectionIcon",src:n.icon,alt:"icon"}),i("span",null,n.linkName)):i("span",{class:"LinkSectionListLinkText"},n.linkName?i("span",null,n.linkName):i("img",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})))))))))))}};t.style=':host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n padding-left: 25px;\n position: relative;\n}\nul li::before {\n content: "";\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 8px;\n height: 8px;\n background-color: var(--emw--footer-color-primary, var(--emw--color-primary, #22B04E));\n border-radius: 50%;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\nul li .LinkSectionListLinkText img.LinkSectionIcon {\n position: relative;\n height: 25px;\n padding: 0 5px;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}';export{t as link_section_list}
|