@everymatrix/general-footer-template 1.62.0 → 1.62.1
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-content-section.cjs.entry.js +31 -32
- package/dist/cjs/general-footer-template.cjs.js +1 -1
- package/dist/cjs/image-list.cjs.entry.js +2 -27
- package/dist/cjs/link-section-list.cjs.entry.js +3 -28
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ui-image_2.cjs.entry.js +8 -10
- package/dist/collection/components/custom-content-section/custom-content-section.js +1 -2
- package/dist/collection/components/general-footer-template/general-footer-template.js +1 -1
- package/dist/collection/components/image-list/image-list.js +2 -32
- package/dist/collection/components/link-section-list/link-section-list.js +4 -33
- package/dist/esm/custom-content-section.entry.js +31 -32
- package/dist/esm/general-footer-template.js +1 -1
- package/dist/esm/image-list.entry.js +3 -28
- package/dist/esm/link-section-list.entry.js +4 -29
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ui-image_2.entry.js +9 -11
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/p-1535f1fd.entry.js +1 -0
- package/dist/general-footer-template/p-3f9e0e81.entry.js +1 -0
- package/dist/general-footer-template/p-9c2e6761.entry.js +1 -0
- package/dist/general-footer-template/{p-0656ba47.entry.js → p-b09d1ead.entry.js} +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/custom-content-section/custom-content-section.d.ts +0 -1
- package/dist/types/components/general-footer-template/general-footer-template.d.ts +1 -1
- package/dist/types/components/image-list/image-list.d.ts +0 -8
- package/dist/types/components/link-section-list/link-section-list.d.ts +1 -8
- package/package.json +1 -1
- package/dist/general-footer-template/p-99c0545b.entry.js +0 -1
- package/dist/general-footer-template/p-d6f0d5e4.entry.js +0 -1
- package/dist/general-footer-template/p-fef8e428.entry.js +0 -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 +0 -2
- 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 +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -3327,7 +3327,7 @@ function filter$1(test, node, recurse = true, limit = Infinity) {
|
|
|
3327
3327
|
function find(test, nodes, recurse, limit) {
|
|
3328
3328
|
const result = [];
|
|
3329
3329
|
/** Stack of the arrays we are looking at. */
|
|
3330
|
-
const nodeStack = [nodes];
|
|
3330
|
+
const nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];
|
|
3331
3331
|
/** Stack of the indices within the arrays. */
|
|
3332
3332
|
const indexStack = [0];
|
|
3333
3333
|
for (;;) {
|
|
@@ -3381,20 +3381,19 @@ function findOneChild(test, nodes) {
|
|
|
3381
3381
|
* @returns The first node that passes `test`.
|
|
3382
3382
|
*/
|
|
3383
3383
|
function findOne(test, nodes, recurse = true) {
|
|
3384
|
-
|
|
3385
|
-
for (let i = 0; i <
|
|
3386
|
-
const node =
|
|
3387
|
-
if (
|
|
3388
|
-
|
|
3389
|
-
}
|
|
3390
|
-
else if (test(node)) {
|
|
3391
|
-
elem = node;
|
|
3384
|
+
const searchedNodes = Array.isArray(nodes) ? nodes : [nodes];
|
|
3385
|
+
for (let i = 0; i < searchedNodes.length; i++) {
|
|
3386
|
+
const node = searchedNodes[i];
|
|
3387
|
+
if (isTag(node) && test(node)) {
|
|
3388
|
+
return node;
|
|
3392
3389
|
}
|
|
3393
|
-
|
|
3394
|
-
|
|
3390
|
+
if (recurse && hasChildren(node) && node.children.length > 0) {
|
|
3391
|
+
const found = findOne(test, node.children, true);
|
|
3392
|
+
if (found)
|
|
3393
|
+
return found;
|
|
3395
3394
|
}
|
|
3396
3395
|
}
|
|
3397
|
-
return
|
|
3396
|
+
return null;
|
|
3398
3397
|
}
|
|
3399
3398
|
/**
|
|
3400
3399
|
* Checks if a tree of nodes contains at least one node passing a test.
|
|
@@ -3405,8 +3404,8 @@ function findOne(test, nodes, recurse = true) {
|
|
|
3405
3404
|
* @returns Whether a tree of nodes contains at least one node passing the test.
|
|
3406
3405
|
*/
|
|
3407
3406
|
function existsOne(test, nodes) {
|
|
3408
|
-
return nodes.some((
|
|
3409
|
-
(
|
|
3407
|
+
return (Array.isArray(nodes) ? nodes : [nodes]).some((node) => (isTag(node) && test(node)) ||
|
|
3408
|
+
(hasChildren(node) && existsOne(test, node.children)));
|
|
3410
3409
|
}
|
|
3411
3410
|
/**
|
|
3412
3411
|
* Search an array of nodes and their children for elements passing a test function.
|
|
@@ -3420,7 +3419,7 @@ function existsOne(test, nodes) {
|
|
|
3420
3419
|
*/
|
|
3421
3420
|
function findAll(test, nodes) {
|
|
3422
3421
|
const result = [];
|
|
3423
|
-
const nodeStack = [nodes];
|
|
3422
|
+
const nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];
|
|
3424
3423
|
const indexStack = [0];
|
|
3425
3424
|
for (;;) {
|
|
3426
3425
|
if (indexStack[0] >= nodeStack[0].length) {
|
|
@@ -3434,11 +3433,9 @@ function findAll(test, nodes) {
|
|
|
3434
3433
|
continue;
|
|
3435
3434
|
}
|
|
3436
3435
|
const elem = nodeStack[0][indexStack[0]++];
|
|
3437
|
-
if (
|
|
3438
|
-
continue;
|
|
3439
|
-
if (test(elem))
|
|
3436
|
+
if (isTag(elem) && test(elem))
|
|
3440
3437
|
result.push(elem);
|
|
3441
|
-
if (elem.children.length > 0) {
|
|
3438
|
+
if (hasChildren(elem) && elem.children.length > 0) {
|
|
3442
3439
|
indexStack.unshift(0);
|
|
3443
3440
|
nodeStack.unshift(elem.children);
|
|
3444
3441
|
}
|
|
@@ -3568,6 +3565,19 @@ function getElementById(id, nodes, recurse = true) {
|
|
|
3568
3565
|
function getElementsByTagName(tagName, nodes, recurse = true, limit = Infinity) {
|
|
3569
3566
|
return filter$1(Checks["tag_name"](tagName), nodes, recurse, limit);
|
|
3570
3567
|
}
|
|
3568
|
+
/**
|
|
3569
|
+
* Returns all nodes with the supplied `className`.
|
|
3570
|
+
*
|
|
3571
|
+
* @category Legacy Query Functions
|
|
3572
|
+
* @param className Class name to search for.
|
|
3573
|
+
* @param nodes Nodes to search through.
|
|
3574
|
+
* @param recurse Also consider child nodes.
|
|
3575
|
+
* @param limit Maximum number of nodes to return.
|
|
3576
|
+
* @returns All nodes with the supplied `className`.
|
|
3577
|
+
*/
|
|
3578
|
+
function getElementsByClassName(className, nodes, recurse = true, limit = Infinity) {
|
|
3579
|
+
return filter$1(getAttribCheck("class", className), nodes, recurse, limit);
|
|
3580
|
+
}
|
|
3571
3581
|
/**
|
|
3572
3582
|
* Returns all nodes with the supplied `type`.
|
|
3573
3583
|
*
|
|
@@ -3935,6 +3945,7 @@ const index = /*#__PURE__*/Object.freeze({
|
|
|
3935
3945
|
getElements: getElements,
|
|
3936
3946
|
getElementById: getElementById,
|
|
3937
3947
|
getElementsByTagName: getElementsByTagName,
|
|
3948
|
+
getElementsByClassName: getElementsByClassName,
|
|
3938
3949
|
getElementsByTagType: getElementsByTagType,
|
|
3939
3950
|
removeSubsets: removeSubsets,
|
|
3940
3951
|
get DocumentPosition () { return DocumentPosition; },
|
|
@@ -5406,34 +5417,22 @@ class Declaration$4 extends Node$3 {
|
|
|
5406
5417
|
var declaration = Declaration$4;
|
|
5407
5418
|
Declaration$4.default = Declaration$4;
|
|
5408
5419
|
|
|
5409
|
-
// This alphabet uses `A-Za-z0-9_-` symbols.
|
|
5410
|
-
// The order of characters is optimized for better gzip and brotli compression.
|
|
5411
|
-
// References to the same file (works both for gzip and brotli):
|
|
5412
|
-
// `'use`, `andom`, and `rict'`
|
|
5413
|
-
// References to the brotli default dictionary:
|
|
5414
|
-
// `-26T`, `1983`, `40px`, `75px`, `bush`, `jack`, `mind`, `very`, and `wolf`
|
|
5415
5420
|
let urlAlphabet =
|
|
5416
5421
|
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
5417
|
-
|
|
5418
5422
|
let customAlphabet = (alphabet, defaultSize = 21) => {
|
|
5419
5423
|
return (size = defaultSize) => {
|
|
5420
5424
|
let id = '';
|
|
5421
|
-
// A compact alternative for `for (var i = 0; i < step; i++)`.
|
|
5422
5425
|
let i = size | 0;
|
|
5423
5426
|
while (i--) {
|
|
5424
|
-
// `| 0` is more compact and faster than `Math.floor()`.
|
|
5425
5427
|
id += alphabet[(Math.random() * alphabet.length) | 0];
|
|
5426
5428
|
}
|
|
5427
5429
|
return id
|
|
5428
5430
|
}
|
|
5429
5431
|
};
|
|
5430
|
-
|
|
5431
5432
|
let nanoid$1 = (size = 21) => {
|
|
5432
5433
|
let id = '';
|
|
5433
|
-
// A compact alternative for `for (var i = 0; i < step; i++)`.
|
|
5434
5434
|
let i = size | 0;
|
|
5435
5435
|
while (i--) {
|
|
5436
|
-
// `| 0` is more compact and faster than `Math.floor()`.
|
|
5437
5436
|
id += urlAlphabet[(Math.random() * 64) | 0];
|
|
5438
5437
|
}
|
|
5439
5438
|
return id
|
|
@@ -9546,7 +9545,7 @@ const CustomContentSection = class {
|
|
|
9546
9545
|
a: ['href', 'target', 'rel']
|
|
9547
9546
|
}
|
|
9548
9547
|
});
|
|
9549
|
-
return h("div", { key: '
|
|
9548
|
+
return h("div", { key: 'a4613d65e38bb44dacda6d6d1df9a3cf32845167', class: "CustomContentSectionContainer" }, h("div", { key: 'f6704f1e13d3a5dd188318cad51babdd8af8b2f1', class: "CustomContentSectionWrapper" }, h("div", { key: 'e818696e2ef290f92905adbac46fdd9f5ddf3e6c', class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
|
|
9550
9549
|
}
|
|
9551
9550
|
};
|
|
9552
9551
|
CustomContentSection.style = CustomContentSectionStyle0;
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
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"]}]]],["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"]
|
|
19
|
+
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"]}]]],["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"]}]]],["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]}]]],["ui-image_2",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[1],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"]}]]],["image-list",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h
|
|
1
|
+
import { r as registerInstance, h } from './index-83985f06.js';
|
|
2
2
|
|
|
3
3
|
const imageListCss = ".sc-image-list-h {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.ContainerImage.sc-image-list {\n position: relative;\n display: inline-block;\n width: 100%;\n}\n\n.SkeletonWrapper.sc-image-list {\n background-color: #f0f0f0;\n width: 50px;\n height: 40px;\n}\n\n.ImageListContainer.sc-image-list {\n height: 100%;\n}\n.ImageListWrapper.sc-image-list {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n max-width: 90%;\n margin: auto;\n padding: var(--emw--spacing-large, 20px) 0;\n}\n.ImageListSectionTitle.sc-image-list {\n width: 100%;\n display: flex;\n justify-content: left;\n align-content: center;\n padding: var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 14px) var(--emw--spacing-x-large, 30px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n text-transform: uppercase;\n font-size: 24px;\n font-weight: 100;\n}\n.ImageListLineup.sc-image-list {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n gap: var(--emw--spacing-x-large, 30px);\n justify-content: left;\n align-items: flex-start;\n padding-left: var(--emw--spacing-large, 20px);\n}\n.ImageListIcon.sc-image-list img.sc-image-list {\n max-height: var(--emw--size-medium-2x-minus, 40px);\n}\n\na.sc-image-list {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n text-decoration: none;\n}\n\na.sc-image-list p.sc-image-list {\n text-decoration: none;\n color: var(--emw--color-gray-100, #666);\n margin: 0;\n}\n\n@container (max-width: 750px) {\n .ImageListSectionTitle.sc-image-list {\n justify-content: center;\n font-size: var(--emw--font-size-medium, 16px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n padding: var(--emw--spacing-large, 20px) 0 var(--emw--spacing-x-large, 30px);\n justify-content: center;\n }\n .ImageListLineup.sc-image-list {\n justify-content: center;\n padding: 0;\n }\n}";
|
|
4
4
|
const ImageListStyle0 = imageListCss;
|
|
@@ -9,41 +9,16 @@ const ImageList = class {
|
|
|
9
9
|
this.navigateLink = (url, target, externalLink) => {
|
|
10
10
|
window.postMessage({ type: this.postMessageEvent, path: url, url, target, externalLink }, window.location.href);
|
|
11
11
|
};
|
|
12
|
-
this.onImageLoad = () => {
|
|
13
|
-
this.removeLoadingState();
|
|
14
|
-
this.cleanupListeners();
|
|
15
|
-
};
|
|
16
12
|
this.repeaterContent = undefined;
|
|
17
13
|
this.navigateViaEvent = false;
|
|
18
14
|
this.postMessageEvent = '';
|
|
19
|
-
this.skeletonLoading = true;
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
this.initImageListeners();
|
|
23
|
-
}
|
|
24
|
-
initImageListeners() {
|
|
25
|
-
if (!this.imgRef)
|
|
26
|
-
return;
|
|
27
|
-
if (this.imgRef.complete) {
|
|
28
|
-
this.onImageLoad();
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
this.imgRef.addEventListener('load', this.onImageLoad);
|
|
32
|
-
}
|
|
33
|
-
removeLoadingState() {
|
|
34
|
-
this.skeletonLoading = false;
|
|
35
|
-
}
|
|
36
|
-
cleanupListeners() {
|
|
37
|
-
var _a;
|
|
38
|
-
(_a = this.imgRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('load', this.onImageLoad);
|
|
39
15
|
}
|
|
40
16
|
render() {
|
|
41
17
|
var _a, _b, _c, _d;
|
|
42
|
-
return ((_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.content.length) > 0 && h("div", { key: '
|
|
43
|
-
return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater === null || repeater === void 0 ? void 0 : repeater.url, repeater === null || repeater === void 0 ? void 0 : repeater.target, repeater === null || repeater === void 0 ? void 0 : repeater.isExternalLink) }, h("div", { class: "ContainerImage" }, h("ui-image", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "icon"
|
|
18
|
+
return ((_a = this.repeaterContent) === null || _a === void 0 ? void 0 : _a.content.length) > 0 && h("div", { key: 'e7604ed1dcace3e2bd67c74e677e5c849c9c8407', class: "ImageListContainer" }, h("div", { key: '985672261fcfeac501d1182f5ab9f20e82307cc7', class: "ImageListWrapper" }, h("div", { key: '29b903e7bd639b8eb782d5aa6b646098ceee1ced', class: "ImageListSectionTitle" }, (_b = this.repeaterContent) === null || _b === void 0 ? void 0 : _b.categoryTitle), h("div", { key: '6cf6da5d3480a5f6d25c9d106e143dbb222e3b74', class: "ImageListLineup" }, (_d = (_c = this.repeaterContent) === null || _c === void 0 ? void 0 : _c.content) === null || _d === void 0 ? void 0 : _d.map(repeater => {
|
|
19
|
+
return (h("div", { class: 'ImageListIcon' }, this.navigateViaEvent === true ? (h("div", { class: 'ImageListIcon', style: { cursor: 'pointer' }, onClick: () => this.navigateLink(repeater === null || repeater === void 0 ? void 0 : repeater.url, repeater === null || repeater === void 0 ? void 0 : repeater.target, repeater === null || repeater === void 0 ? void 0 : repeater.isExternalLink) }, h("div", { class: "ContainerImage" }, h("ui-image", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "icon" })), h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title))) : (h("a", { href: (repeater === null || repeater === void 0 ? void 0 : repeater.url) || 'javascript:void(0)', target: (repeater === null || repeater === void 0 ? void 0 : repeater.target) || '_parent' }, h("div", { class: "ContainerImage" }, h("div", { class: "ImageListPositioner" }, h("ui-image", { src: repeater === null || repeater === void 0 ? void 0 : repeater.image, alt: "icon" }))), h("p", null, repeater === null || repeater === void 0 ? void 0 : repeater.title)))));
|
|
44
20
|
}))));
|
|
45
21
|
}
|
|
46
|
-
get el() { return getElement(this); }
|
|
47
22
|
};
|
|
48
23
|
ImageList.style = ImageListStyle0;
|
|
49
24
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h
|
|
1
|
+
import { r as registerInstance, h } from './index-83985f06.js';
|
|
2
2
|
|
|
3
3
|
const linkSectionListCss = ":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.SkeletonWrapper {\n width: 25px;\n height: 25px;\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 position: relative;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n gap: 5px;\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}\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,35 +6,11 @@ const LinkSectionListStyle0 = linkSectionListCss;
|
|
|
6
6
|
const LinkSectionList = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
-
this.onImageLoad = () => {
|
|
10
|
-
this.removeLoadingState();
|
|
11
|
-
this.cleanupListeners();
|
|
12
|
-
};
|
|
13
9
|
this.repeaterContent = undefined;
|
|
14
10
|
this.baseUrl = undefined;
|
|
15
11
|
this.language = undefined;
|
|
16
12
|
this.navigateViaEvent = false;
|
|
17
13
|
this.postMessageEvent = '';
|
|
18
|
-
this.skeletonLoading = true;
|
|
19
|
-
}
|
|
20
|
-
componentDidLoad() {
|
|
21
|
-
this.initImageListeners();
|
|
22
|
-
}
|
|
23
|
-
initImageListeners() {
|
|
24
|
-
if (!this.imgRef)
|
|
25
|
-
return;
|
|
26
|
-
if (this.imgRef.complete) {
|
|
27
|
-
this.onImageLoad();
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
this.imgRef.addEventListener('load', this.onImageLoad);
|
|
31
|
-
}
|
|
32
|
-
removeLoadingState() {
|
|
33
|
-
this.skeletonLoading = false;
|
|
34
|
-
}
|
|
35
|
-
cleanupListeners() {
|
|
36
|
-
var _a;
|
|
37
|
-
(_a = this.imgRef) === null || _a === void 0 ? void 0 : _a.removeEventListener('load', this.onImageLoad);
|
|
38
14
|
}
|
|
39
15
|
navigateLink(link) {
|
|
40
16
|
window.postMessage({ type: this.postMessageEvent, path: link.linkUrl, url: link.linkUrl, target: link.target, externalLink: link.externalLink }, window.location.href);
|
|
@@ -68,15 +44,14 @@ const LinkSectionList = class {
|
|
|
68
44
|
}
|
|
69
45
|
return obj;
|
|
70
46
|
}, []);
|
|
71
|
-
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("div", { class: "ContainerImage" }, h("
|
|
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("div", { class: "ContainerImage" }, h("ui-image", { class: "LinkSectionIcon", src: link.icon, alt: "icon" })), h("span", { class: '' }, link.linkName, " "))) :
|
|
72
48
|
link.linkName ?
|
|
73
49
|
h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, h("span", null, link.linkName, " "))
|
|
74
50
|
:
|
|
75
|
-
h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, h("div", { class: "ContainerImage" }, h("
|
|
51
|
+
h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, h("div", { class: "ContainerImage" }, h("ui-image", { class: "LinkSectionIcon", src: link.icon, alt: "icon" }))))) : (h("a", { class: "LinkSectionListLink", href: link.externalLink ? link.linkUrl : `${this.baseUrl}/${this.language}${link.linkUrl}`, target: link.target || '_blank' }, link.linkName && link.icon ? (h("span", { class: "LinkSectionListLinkText" }, h("div", { class: "ContainerImage" }, h("ui-image", { class: "LinkSectionIcon", src: link.icon, alt: "icon" })), h("span", null, link.linkName))) :
|
|
76
52
|
link.linkName ? (h("span", { class: "LinkSectionListLinkText" }, h("span", null, link.linkName))) :
|
|
77
|
-
h("span", { class: "LinkSectionListLinkText" }, h("div", { class: "ContainerImage" }, h("
|
|
53
|
+
h("span", { class: "LinkSectionListLinkText" }, h("div", { class: "ContainerImage" }, h("ui-image", { class: "LinkSectionIcon", src: link.icon, alt: "icon" })))))))))));
|
|
78
54
|
}
|
|
79
|
-
get el() { return getElement(this); }
|
|
80
55
|
};
|
|
81
56
|
LinkSectionList.style = LinkSectionListStyle0;
|
|
82
57
|
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
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"]}]]],["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"]
|
|
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"]}]]],["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"]}]]],["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]}]]],["ui-image_2",[[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[1],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"]}]]],["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,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-83985f06.js';
|
|
2
2
|
|
|
3
|
-
const uiImageCss = "
|
|
3
|
+
const uiImageCss = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}";
|
|
4
4
|
const UiImageStyle0 = uiImageCss;
|
|
5
5
|
|
|
6
6
|
const UiImage = class {
|
|
@@ -10,7 +10,6 @@ const UiImage = class {
|
|
|
10
10
|
this.width = undefined;
|
|
11
11
|
this.height = undefined;
|
|
12
12
|
this.alt = undefined;
|
|
13
|
-
this.imgClass = '';
|
|
14
13
|
this.styles = undefined;
|
|
15
14
|
this.detectDistance = '200px';
|
|
16
15
|
this.imgLoaded = false;
|
|
@@ -20,15 +19,14 @@ const UiImage = class {
|
|
|
20
19
|
if (!this.shouldLoad) {
|
|
21
20
|
return;
|
|
22
21
|
}
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
tempImage.onload = () => {
|
|
22
|
+
const preloadedImage = new Image();
|
|
23
|
+
preloadedImage.onload = () => {
|
|
26
24
|
if (this.image) {
|
|
27
25
|
this.image.src = this.src;
|
|
28
26
|
this.imgLoaded = true;
|
|
29
|
-
this.el.dispatchEvent(new CustomEvent('load', { bubbles: true }));
|
|
30
27
|
}
|
|
31
28
|
};
|
|
29
|
+
preloadedImage.src = this.src;
|
|
32
30
|
}
|
|
33
31
|
componentDidLoad() {
|
|
34
32
|
if ('IntersectionObserver' in window) {
|
|
@@ -55,7 +53,7 @@ const UiImage = class {
|
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
55
|
render() {
|
|
58
|
-
return (h("img", { key: '
|
|
56
|
+
return (h(Host, { key: '527318220c6b48375943e897fe0e53e0f33e67ed', class: "HostContainer" }, !this.imgLoaded && (h("ui-skeleton", { key: 'e5c49a781ff2fac5c796cb6a3f8d334dce7be35b', class: "UiContainer", structure: "image", width: "100%", height: "100%" })), h("img", { key: '09dfbf8f52c2c899246590790f2780a84bdeefc3', ref: (el) => (this.image = el), src: this.shouldLoad ? this.src : undefined, onLoad: () => (this.imgLoaded = true), style: this.styles, class: `UiContainer ${this.imgLoaded ? 'Visible' : 'Hidden'}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" })));
|
|
59
57
|
}
|
|
60
58
|
get el() { return getElement(this); }
|
|
61
59
|
static get watchers() { return {
|
|
@@ -64,7 +62,7 @@ const UiImage = class {
|
|
|
64
62
|
};
|
|
65
63
|
UiImage.style = UiImageStyle0;
|
|
66
64
|
|
|
67
|
-
const uiSkeletonCss = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width,
|
|
65
|
+
const uiSkeletonCss = ":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
|
|
68
66
|
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
69
67
|
|
|
70
68
|
const UiSkeleton = class {
|
|
@@ -112,7 +110,7 @@ const UiSkeleton = class {
|
|
|
112
110
|
return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Logo " + (this.animation ? 'Skeleton' : '') })));
|
|
113
111
|
}
|
|
114
112
|
renderImage() {
|
|
115
|
-
return (h("div", { class: "
|
|
113
|
+
return (h("div", { class: "Image " + (this.animation ? 'Skeleton' : '') }));
|
|
116
114
|
}
|
|
117
115
|
renderTitle() {
|
|
118
116
|
return (h("div", { class: "SkeletonContainer" }, h("div", { class: "Title " + (this.animation ? 'Skeleton' : '') })));
|
|
@@ -222,7 +220,7 @@ const UiSkeleton = class {
|
|
|
222
220
|
default:
|
|
223
221
|
styleBlock = '';
|
|
224
222
|
}
|
|
225
|
-
return (h(Host, { key: '
|
|
223
|
+
return (h(Host, { key: '3bb792a149db7fe732d5cbfa092cdb4d6ca0689e' }, h("style", { key: 'a4607599b60659f385ae2660513e38b383739674' }, styleBlock), this.handleStructure(this.structure)));
|
|
226
224
|
}
|
|
227
225
|
static get watchers() { return {
|
|
228
226
|
"structure": ["handleStructureChange"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-56890359.js";export{s as setNonce}from"./p-56890359.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-
|
|
1
|
+
import{p as e,b as t}from"./p-56890359.js";export{s as setNonce}from"./p-56890359.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-b09d1ead",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-3f9e0e81",[[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-faf0bad1",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["p-20c8b70b",[[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-1535f1fd",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[2,"border-radius"],marginBottom:[2,"margin-bottom"],marginTop:[2,"margin-top"],marginLeft:[2,"margin-left"],marginRight:[2,"margin-right"],animation:[4],rows:[2],size:[1],color:[1],primaryColor:[1,"primary-color"],secondaryColor:[1,"secondary-color"]},null,{structure:["handleStructureChange"]}]]],["p-9c2e6761",[[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 e,h as t,H as i,g as n}from"./p-56890359.js";const o=class{constructor(t){e(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.__uxComponent;t&&(t.shouldLoad=!0,t.handleSrc()),window.EMUxObserver.unobserve(e.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return t(i,{key:"527318220c6b48375943e897fe0e53e0f33e67ed",class:"HostContainer"},!this.imgLoaded&&t("ui-skeleton",{key:"e5c49a781ff2fac5c796cb6a3f8d334dce7be35b",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),t("img",{key:"09dfbf8f52c2c899246590790f2780a84bdeefc3",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return n(this)}static get watchers(){return{src:["handleSrc"]}}};o.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;transition:opacity 0.5s ease-in-out}";const s=class{constructor(t){e(this,t),this.structure=void 0,this.width=void 0,this.height=void 0,this.borderRadius=void 0,this.marginBottom=void 0,this.marginTop=void 0,this.marginLeft=void 0,this.marginRight=void 0,this.animation=!0,this.rows=void 0,this.size=void 0,this.color=void 0,this.primaryColor=void 0,this.secondaryColor=void 0}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,i)=>t("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.width};\n --emw-skeleton-logo-height: ${this.height};\n --emw-skeleton-logo-border-radius: ${this.borderRadius}px;\n --emw-skeleton-logo-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-logo-margin-top: ${this.marginTop}px;\n --emw-skeleton-logo-margin-left: ${this.marginLeft}px;\n --emw-skeleton-logo-margin-right: ${this.marginRight}px;\n --emw-skeleton-logo-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.width};\n --emw-skeleton-image-height: ${this.height};\n --emw-skeleton-image-border-radius: ${this.borderRadius}px;\n --emw-skeleton-image-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-image-margin-top: ${this.marginTop}px;\n --emw-skeleton-image-margin-left: ${this.marginLeft}px;\n --emw-skeleton-image-margin-right: ${this.marginRight}px;\n --emw-skeleton-image-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.width};\n --emw-skeleton-title-height: ${this.height};\n --emw-skeleton-title-border-radius: ${this.borderRadius}px;\n --emw-skeleton-title-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-title-margin-top: ${this.marginTop}px;\n --emw-skeleton-title-margin-left: ${this.marginLeft}px;\n --emw-skeleton-title-margin-right: ${this.marginRight}px;\n --emw-skeleton-title-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.width};\n --emw-skeleton-text-height: ${this.height};\n --emw-skeleton-text-border-radius: ${this.borderRadius}px;\n --emw-skeleton-text-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-text-margin-top: ${this.marginTop}px;\n --emw-skeleton-text-margin-left: ${this.marginLeft}px;\n --emw-skeleton-text-margin-right: ${this.marginRight}px;\n --emw-skeleton-text-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.width};\n --emw-skeleton-rectangle-height: ${this.height};\n --emw-skeleton-rectangle-border-radius: ${this.borderRadius}px;\n --emw-skeleton-rectangle-margin-bottom: ${this.marginBottom}px;\n --emw-skeleton-rectangle-margin-top: ${this.marginTop}px;\n --emw-skeleton-rectangle-margin-left: ${this.marginLeft}px;\n --emw-skeleton-rectangle-margin-right: ${this.marginRight}px;\n --emw-skeleton-rectangle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.size};\n --emw-skeleton-circle-background: ${this.color};\n --emw-skeleton-primary-color: ${this.primaryColor};\n --emw-skeleton-secondary-color: ${this.secondaryColor};\n }\n `;break;default:e=""}return t(i,{key:"3bb792a149db7fe732d5cbfa092cdb4d6ca0689e"},t("style",{key:"a4607599b60659f385ae2660513e38b383739674"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};s.style=":host{display:block;--emw-skeleton-rectangle-background:#c2c2c2;--emw-skeleton-circle-background:#c2c2c2;--emw-skeleton-text-background:#c2c2c2;--emw-skeleton-title-background:#c2c2c2;--emw-skeleton-image-background:#c2c2c2;--emw-skeleton-logo-background:#c2c2c2;--emw-skeleton-primary-color:#e0e0e0;--emw-skeleton-secondary-color:#f0f0f0}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, inherit)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";export{o as ui_image,s as ui_skeleton}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,h as i}from"./p-56890359.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("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})),i("span",{class:""},n.linkName," ")):i("span",{class:"LinkSectionListLinkText",onClick:()=>this.navigateLink(n)},n.linkName?i("span",null,n.linkName," "):i("div",{class:"ContainerImage"},i("ui-image",{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("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"})),i("span",null,n.linkName)):i("span",{class:"LinkSectionListLinkText"},n.linkName?i("span",null,n.linkName):i("div",{class:"ContainerImage"},i("ui-image",{class:"LinkSectionIcon",src:n.icon,alt:"icon"}))))))))))))}};t.style=":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.SkeletonWrapper {\n width: 25px;\n height: 25px;\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 position: relative;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n gap: 5px;\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}\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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,h as i}from"./p-56890359.js";const e=class{constructor(i){n(this,i),this.navigateLink=(n,i,e)=>{window.postMessage({type:this.postMessageEvent,path:n,url:n,target:i,externalLink:e},window.location.href)},this.repeaterContent=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}render(){var n,e,a,t;return(null===(n=this.repeaterContent)||void 0===n?void 0:n.content.length)>0&&i("div",{key:"e7604ed1dcace3e2bd67c74e677e5c849c9c8407",class:"ImageListContainer"},i("div",{key:"985672261fcfeac501d1182f5ab9f20e82307cc7",class:"ImageListWrapper"},i("div",{key:"29b903e7bd639b8eb782d5aa6b646098ceee1ced",class:"ImageListSectionTitle"},null===(e=this.repeaterContent)||void 0===e?void 0:e.categoryTitle),i("div",{key:"6cf6da5d3480a5f6d25c9d106e143dbb222e3b74",class:"ImageListLineup"},null===(t=null===(a=this.repeaterContent)||void 0===a?void 0:a.content)||void 0===t?void 0:t.map((n=>i("div",{class:"ImageListIcon"},!0===this.navigateViaEvent?i("div",{class:"ImageListIcon",style:{cursor:"pointer"},onClick:()=>this.navigateLink(null==n?void 0:n.url,null==n?void 0:n.target,null==n?void 0:n.isExternalLink)},i("div",{class:"ContainerImage"},i("ui-image",{src:null==n?void 0:n.image,alt:"icon"})),i("p",null,null==n?void 0:n.title)):i("a",{href:(null==n?void 0:n.url)||"javascript:void(0)",target:(null==n?void 0:n.target)||"_parent"},i("div",{class:"ContainerImage"},i("div",{class:"ImageListPositioner"},i("ui-image",{src:null==n?void 0:n.image,alt:"icon"}))),i("p",null,null==n?void 0:n.title))))))))}};e.style=".sc-image-list-h {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.ContainerImage.sc-image-list {\n position: relative;\n display: inline-block;\n width: 100%;\n}\n\n.SkeletonWrapper.sc-image-list {\n background-color: #f0f0f0;\n width: 50px;\n height: 40px;\n}\n\n.ImageListContainer.sc-image-list {\n height: 100%;\n}\n.ImageListWrapper.sc-image-list {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n max-width: 90%;\n margin: auto;\n padding: var(--emw--spacing-large, 20px) 0;\n}\n.ImageListSectionTitle.sc-image-list {\n width: 100%;\n display: flex;\n justify-content: left;\n align-content: center;\n padding: var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 14px) var(--emw--spacing-x-large, 30px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n text-transform: uppercase;\n font-size: 24px;\n font-weight: 100;\n}\n.ImageListLineup.sc-image-list {\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n gap: var(--emw--spacing-x-large, 30px);\n justify-content: left;\n align-items: flex-start;\n padding-left: var(--emw--spacing-large, 20px);\n}\n.ImageListIcon.sc-image-list img.sc-image-list {\n max-height: var(--emw--size-medium-2x-minus, 40px);\n}\n\na.sc-image-list {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n text-decoration: none;\n}\n\na.sc-image-list p.sc-image-list {\n text-decoration: none;\n color: var(--emw--color-gray-100, #666);\n margin: 0;\n}\n\n@container (max-width: 750px) {\n .ImageListSectionTitle.sc-image-list {\n justify-content: center;\n font-size: var(--emw--font-size-medium, 16px);\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n padding: var(--emw--spacing-large, 20px) 0 var(--emw--spacing-x-large, 30px);\n justify-content: center;\n }\n .ImageListLineup.sc-image-list {\n justify-content: center;\n padding: 0;\n }\n}";export{e as image_list}
|