@everymatrix/general-footer-template 1.16.1 → 1.18.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.
@@ -292,7 +292,7 @@ const GeneralFooterTemplate = class {
292
292
  const FooterElement = componentRules[section].component;
293
293
  const elementIsRepeater = this.footerContent.repeaters.hasOwnProperty(section);
294
294
  const elementIsCustom = this.footerContent.wysiwyg.hasOwnProperty(section);
295
- return index.h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
295
+ return index.h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, "base-url": this.baseUrl, language: this.language, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
296
296
  });
297
297
  if (this.hasErrors) {
298
298
  return index.h("div", null, "There was an error while bootstraping the widget");
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32],"hasErrors":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"]}]]]], options);
18
+ return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32],"hasErrors":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"]}]]]], options);
19
19
  });
@@ -18,7 +18,8 @@ const LinkSectionList = class {
18
18
  foundCategory.links.push({
19
19
  linkName: elem.title,
20
20
  linkUrl: elem.url,
21
- target: elem.target
21
+ target: elem.target,
22
+ externalLink: elem.isExternalLink
22
23
  });
23
24
  }
24
25
  else {
@@ -27,7 +28,8 @@ const LinkSectionList = class {
27
28
  links: [{
28
29
  linkName: elem.title,
29
30
  linkUrl: elem.url,
30
- target: elem.target
31
+ target: elem.target,
32
+ externalLink: elem.isExternalLink
31
33
  }]
32
34
  });
33
35
  }
@@ -35,7 +37,7 @@ const LinkSectionList = class {
35
37
  }, []);
36
38
  return index.h("div", { class: "LinkSectionListContainer" }, index.h("div", { class: "LinkSectionListWrapper" }, linkSections.map(category => index.h("ul", null, index.h("li", { class: "LinkSectionListTitle" }, category.categoryTitle), category.links.map(link => {
37
39
  var _a;
38
- return index.h("li", { class: "LinkSectionListLink" }, index.h("a", { href: link.linkUrl, target: (_a = link.target) !== null && _a !== void 0 ? _a : '_blank' }, link.linkName));
40
+ return index.h("li", { class: "LinkSectionListLink" }, index.h("a", { href: link.externalLink ? link.linkUrl : this.baseUrl + `/${this.language}` + link.linkUrl, target: (_a = link.target) !== null && _a !== void 0 ? _a : '_blank' }, link.linkName));
39
41
  })))));
40
42
  }
41
43
  };
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32],"hasErrors":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"]}]]]], options);
17
+ return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32],"hasErrors":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -82,7 +82,7 @@ export class GeneralFooterTemplate {
82
82
  const FooterElement = componentRules[section].component;
83
83
  const elementIsRepeater = this.footerContent.repeaters.hasOwnProperty(section);
84
84
  const elementIsCustom = this.footerContent.wysiwyg.hasOwnProperty(section);
85
- return h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
85
+ return h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, "base-url": this.baseUrl, language: this.language, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
86
86
  });
87
87
  if (this.hasErrors) {
88
88
  return h("div", null, "There was an error while bootstraping the widget");
@@ -222,6 +222,23 @@ export class GeneralFooterTemplate {
222
222
  "attribute": "session",
223
223
  "reflect": true
224
224
  },
225
+ "baseUrl": {
226
+ "type": "string",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "string",
230
+ "resolved": "string",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can\u2019t take the parent host to create the right anchors."
238
+ },
239
+ "attribute": "base-url",
240
+ "reflect": true
241
+ },
225
242
  "clientStyling": {
226
243
  "type": "string",
227
244
  "mutable": false,
@@ -8,7 +8,8 @@ export class LinkSectionList {
8
8
  foundCategory.links.push({
9
9
  linkName: elem.title,
10
10
  linkUrl: elem.url,
11
- target: elem.target
11
+ target: elem.target,
12
+ externalLink: elem.isExternalLink
12
13
  });
13
14
  }
14
15
  else {
@@ -17,7 +18,8 @@ export class LinkSectionList {
17
18
  links: [{
18
19
  linkName: elem.title,
19
20
  linkUrl: elem.url,
20
- target: elem.target
21
+ target: elem.target,
22
+ externalLink: elem.isExternalLink
21
23
  }]
22
24
  });
23
25
  }
@@ -26,8 +28,11 @@ export class LinkSectionList {
26
28
  return h("div", { class: "LinkSectionListContainer" },
27
29
  h("div", { class: "LinkSectionListWrapper" }, linkSections.map(category => h("ul", null,
28
30
  h("li", { class: "LinkSectionListTitle" }, category.categoryTitle),
29
- category.links.map(link => { var _a; return h("li", { class: "LinkSectionListLink" },
30
- h("a", { href: link.linkUrl, target: (_a = link.target) !== null && _a !== void 0 ? _a : '_blank' }, link.linkName)); })))));
31
+ category.links.map(link => {
32
+ var _a;
33
+ return h("li", { class: "LinkSectionListLink" },
34
+ h("a", { href: link.externalLink ? link.linkUrl : this.baseUrl + `/${this.language}` + link.linkUrl, target: (_a = link.target) !== null && _a !== void 0 ? _a : '_blank' }, link.linkName));
35
+ })))));
31
36
  }
32
37
  static get is() { return "link-section-list"; }
33
38
  static get originalStyleUrls() { return {
@@ -53,6 +58,40 @@ export class LinkSectionList {
53
58
  },
54
59
  "attribute": "repeater-content",
55
60
  "reflect": false
61
+ },
62
+ "baseUrl": {
63
+ "type": "string",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "string",
67
+ "resolved": "string",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can\u2019t take the parent host to create the right anchors."
75
+ },
76
+ "attribute": "base-url",
77
+ "reflect": true
78
+ },
79
+ "language": {
80
+ "type": "string",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "string",
84
+ "resolved": "string",
85
+ "references": {}
86
+ },
87
+ "required": true,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [],
91
+ "text": "the language of the footer"
92
+ },
93
+ "attribute": "language",
94
+ "reflect": true
56
95
  }
57
96
  }; }
58
97
  }
@@ -290,7 +290,7 @@ const GeneralFooterTemplate$1 = /*@__PURE__*/ proxyCustomElement(class extends H
290
290
  const FooterElement = componentRules[section].component;
291
291
  const elementIsRepeater = this.footerContent.repeaters.hasOwnProperty(section);
292
292
  const elementIsCustom = this.footerContent.wysiwyg.hasOwnProperty(section);
293
- return h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
293
+ return h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, "base-url": this.baseUrl, language: this.language, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
294
294
  });
295
295
  if (this.hasErrors) {
296
296
  return h("div", null, "There was an error while bootstraping the widget");
@@ -309,6 +309,7 @@ const GeneralFooterTemplate$1 = /*@__PURE__*/ proxyCustomElement(class extends H
309
309
  "userRoles": [513, "user-roles"],
310
310
  "userid": [513],
311
311
  "session": [513],
312
+ "baseUrl": [513, "base-url"],
312
313
  "clientStyling": [513, "client-styling"],
313
314
  "clientStylingUrl": [513, "client-styling-url"],
314
315
  "limitStylingAppends": [32],
@@ -15,7 +15,8 @@ const LinkSectionList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
15
15
  foundCategory.links.push({
16
16
  linkName: elem.title,
17
17
  linkUrl: elem.url,
18
- target: elem.target
18
+ target: elem.target,
19
+ externalLink: elem.isExternalLink
19
20
  });
20
21
  }
21
22
  else {
@@ -24,7 +25,8 @@ const LinkSectionList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
24
25
  links: [{
25
26
  linkName: elem.title,
26
27
  linkUrl: elem.url,
27
- target: elem.target
28
+ target: elem.target,
29
+ externalLink: elem.isExternalLink
28
30
  }]
29
31
  });
30
32
  }
@@ -32,12 +34,14 @@ const LinkSectionList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
32
34
  }, []);
33
35
  return h("div", { class: "LinkSectionListContainer" }, h("div", { class: "LinkSectionListWrapper" }, linkSections.map(category => h("ul", null, h("li", { class: "LinkSectionListTitle" }, category.categoryTitle), category.links.map(link => {
34
36
  var _a;
35
- return h("li", { class: "LinkSectionListLink" }, h("a", { href: link.linkUrl, target: (_a = link.target) !== null && _a !== void 0 ? _a : '_blank' }, link.linkName));
37
+ return h("li", { class: "LinkSectionListLink" }, h("a", { href: link.externalLink ? link.linkUrl : this.baseUrl + `/${this.language}` + link.linkUrl, target: (_a = link.target) !== null && _a !== void 0 ? _a : '_blank' }, link.linkName));
36
38
  })))));
37
39
  }
38
40
  static get style() { return linkSectionListCss; }
39
41
  }, [0, "link-section-list", {
40
- "repeaterContent": [8, "repeater-content"]
42
+ "repeaterContent": [8, "repeater-content"],
43
+ "baseUrl": [513, "base-url"],
44
+ "language": [513]
41
45
  }]);
42
46
  function defineCustomElement$1() {
43
47
  if (typeof customElements === "undefined") {
@@ -288,7 +288,7 @@ const GeneralFooterTemplate = class {
288
288
  const FooterElement = componentRules[section].component;
289
289
  const elementIsRepeater = this.footerContent.repeaters.hasOwnProperty(section);
290
290
  const elementIsCustom = this.footerContent.wysiwyg.hasOwnProperty(section);
291
- return h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
291
+ return h(FooterElement, { class: `${section} FooterSectionContainer FooterSectionContainer${i + 1}`, userid: this.userid, session: this.session, "base-url": this.baseUrl, language: this.language, ruleset: componentRules[section], repeaterContent: elementIsRepeater ? this.footerContent.repeaters[section] : null, customContent: elementIsCustom ? this.footerContent.wysiwyg[section].content : null });
292
292
  });
293
293
  if (this.hasErrors) {
294
294
  return h("div", null, "There was an error while bootstraping the widget");
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["custom-content-section",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"]}]]],["general-footer-template",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32],"hasErrors":[32]}]]],["link-section-list",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"]}]]],["image-list",[[2,"image-list",{"repeaterContent":[8,"repeater-content"]}]]]], options);
16
+ return bootstrapLazy([["custom-content-section",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"]}]]],["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"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32],"hasErrors":[32]}]]],["link-section-list",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513]}]]],["image-list",[[2,"image-list",{"repeaterContent":[8,"repeater-content"]}]]]], options);
17
17
  });
@@ -14,7 +14,8 @@ const LinkSectionList = class {
14
14
  foundCategory.links.push({
15
15
  linkName: elem.title,
16
16
  linkUrl: elem.url,
17
- target: elem.target
17
+ target: elem.target,
18
+ externalLink: elem.isExternalLink
18
19
  });
19
20
  }
20
21
  else {
@@ -23,7 +24,8 @@ const LinkSectionList = class {
23
24
  links: [{
24
25
  linkName: elem.title,
25
26
  linkUrl: elem.url,
26
- target: elem.target
27
+ target: elem.target,
28
+ externalLink: elem.isExternalLink
27
29
  }]
28
30
  });
29
31
  }
@@ -31,7 +33,7 @@ const LinkSectionList = class {
31
33
  }, []);
32
34
  return h("div", { class: "LinkSectionListContainer" }, h("div", { class: "LinkSectionListWrapper" }, linkSections.map(category => h("ul", null, h("li", { class: "LinkSectionListTitle" }, category.categoryTitle), category.links.map(link => {
33
35
  var _a;
34
- return h("li", { class: "LinkSectionListLink" }, h("a", { href: link.linkUrl, target: (_a = link.target) !== null && _a !== void 0 ? _a : '_blank' }, link.linkName));
36
+ return h("li", { class: "LinkSectionListLink" }, h("a", { href: link.externalLink ? link.linkUrl : this.baseUrl + `/${this.language}` + link.linkUrl, target: (_a = link.target) !== null && _a !== void 0 ? _a : '_blank' }, link.linkName));
35
37
  })))));
36
38
  }
37
39
  };
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["custom-content-section",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"]}]]],["general-footer-template",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32],"hasErrors":[32]}]]],["link-section-list",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"]}]]],["image-list",[[2,"image-list",{"repeaterContent":[8,"repeater-content"]}]]]], options);
13
+ return bootstrapLazy([["custom-content-section",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"]}]]],["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"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32],"hasErrors":[32]}]]],["link-section-list",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513]}]]],["image-list",[[2,"image-list",{"repeaterContent":[8,"repeater-content"]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-7aafd945.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-7998a5ba",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"]}]]],["p-81253ed9",[[1,"general-footer-template",{language:[513],sections:[513],endpoint:[513],env:[513],userRoles:[513,"user-roles"],userid:[513],session:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32],hasErrors:[32]}]]],["p-212a82d9",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"]}]]],["p-0468caec",[[2,"image-list",{repeaterContent:[8,"repeater-content"]}]]]],e)));
1
+ import{p as e,b as t}from"./p-7aafd945.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-7998a5ba",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"]}]]],["p-0fb1fab8",[[1,"general-footer-template",{language:[513],sections:[513],endpoint:[513],env:[513],userRoles:[513,"user-roles"],userid:[513],session:[513],baseUrl:[513,"base-url"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32],hasErrors:[32]}]]],["p-9be6b765",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513]}]]],["p-0468caec",[[2,"image-list",{repeaterContent:[8,"repeater-content"]}]]]],e)));
@@ -1 +1 @@
1
- import{r as n,h as e,g as t}from"./p-7aafd945.js";const o={downloadApp:{component:"custom-content-section"},"link-section":{component:"link-section-list"},copyright:{component:"custom-content-section"},download:{component:"custom-content-section"},helpLinks:{component:"image-list"},"license-description":{component:"custom-content-section"},licenses:{component:"image-list"},payment:{component:"image-list"},social:{component:"image-list"},sponsors:{component:"image-list"},vendors:{component:"image-list"}},i=class{constructor(e){n(this,e),this.env="stage",this.userRoles="everyone",this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.hasErrors=!1,this.platform=(()=>{const n=(()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(n)return"PC"===n?"dk":"iPad"===n||"iPhone"===n?"ios":"mtWeb"})(),this.MANDATORY_FIELDS=["endpoint","language","sections"],this.setClientStyling=()=>{let n=document.createElement("style");n.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(n)},this.setClientStylingURL=()=>{let n=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{this.clientStylingUrl=n,e.innerHTML=n,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)})).catch((n=>{console.log("error ",n)}))}}validateMandatoryFields(){this.MANDATORY_FIELDS.forEach((n=>{this[n]||(console.error(`Mandatory parameter ${n} not received`),this.hasErrors=!0)}))}componentWillLoad(){this.sectionsList=this.sections.split(",").map((n=>n.trim()));const n=new URL(`${this.endpoint}/${this.language}/footer-raw-data`);return n.searchParams.append("env",this.env),n.searchParams.append("device",this.platform),n.searchParams.append("userroles",this.userRoles),this.validateMandatoryFields(),fetch(n.href).then((n=>n.json())).then((n=>{this.footerContent=(n=>{const e={repeaters:{vendors:{categoryTitle:n.gameVendorsLinksTitle,content:[]},"link-section":{categoryTitle:n.helpLinksTitle,content:[]},helpLinks:{categoryTitle:n.helpLinksTitle,content:[]},licenses:{categoryTitle:n.licensesLinksTitle,content:[]},sponsors:{categoryTitle:n.sponsorsLinksTitle,content:[]},payment:{categoryTitle:n.paymentLinksTitle,content:[]},social:{categoryTitle:n.socialLinksTitle,content:[]},downloadApp:{categoryTitle:n.downloadAppLinksTitle,content:[]}},wysiwyg:{copyright:{categoryTitle:"test",content:"test"},download:{categoryTitle:"test",content:"test"},downloadApp:{categoryTitle:"test",content:"test"},"license-description":{categoryTitle:"test",content:"test"}}},t={helpLinks:{repeaterName:"helpLinksRepeater",isExternalLink:"isExternalLink",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},"link-section":{repeaterName:"helpLinksRepeater",isExternalLink:"isExternalLink",linkCategory:"helpLinkCategory",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},social:{repeaterName:"socialLinksRepeater",isExternalLink:"isExternalLink",image:"socialLinkImage",title:"socialLinkTitle",url:"socialLinkUrl",target:"target"},vendors:{repeaterName:"gameVendorsRepeater",isExternalLink:"isExternalLink",image:"gameVendorImage",title:"gameVendorTitle",url:"gameVendorUrl",target:"target"},licenses:{repeaterName:"licensesRepeater",isExternalLink:"isExternalLink",image:"licenseImage",title:"licenseTitle",url:"licenseUrl",target:"target"},payment:{repeaterName:"paymentMethodsRepeater",isExternalLink:"isExternalLink",image:"paymentMethodImage",title:"paymentTitle",url:"paymentUrl",target:"target"},sponsors:{repeaterName:"sponsorsRepeater",isExternalLink:"isExternalLink",image:"sponsorImage",title:"sponsorTitle",url:"sponsorUrl",target:"target"}};return Object.entries(e.repeaters).forEach((e=>{var o,i,r;t[e[0]]&&n[null===(o=t[e[0]])||void 0===o?void 0:o.repeaterName]&&(e[1].content=null===(r=n[null===(i=t[e[0]])||void 0===i?void 0:i.repeaterName])||void 0===r?void 0:r.map((n=>({isExternalLink:n[t[e[0]].isExternalLink],linkCategory:n[t[e[0]].linkCategory],image:n[t[e[0]].image],title:n[t[e[0]].title],url:n[t[e[0]].url],target:n[t[e[0]].target]}))))})),e.repeaters.downloadApp.content=n.downloadInfos.imageArea,e.wysiwyg.downloadApp.content=n.downloadInfos.downloadDescription,e.wysiwyg.copyright.content=n.copyright,e.wysiwyg["license-description"].content=n.licenseDesc,e})(n)}))}componentDidRender(){!this.limitStylingAppends&&this.host.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){const n=this.sectionsList.map(((n,t)=>{const i=o[n].component,r=this.footerContent.repeaters.hasOwnProperty(n),a=this.footerContent.wysiwyg.hasOwnProperty(n);return e(i,{class:`${n} FooterSectionContainer FooterSectionContainer${t+1}`,userid:this.userid,session:this.session,ruleset:o[n],repeaterContent:r?this.footerContent.repeaters[n]:null,customContent:a?this.footerContent.wysiwyg[n].content:null})}));return this.hasErrors?e("div",null,"There was an error while bootstraping the widget"):e("footer",{class:"FooterContainer"},e("div",{class:"FooterGrid customStyle"},n))}get host(){return t(this)}};i.style=':host {\n display: block;\n}\n\n/* $-background-primary: #14202d; */\n\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.FooterSectionContainer {\n color: #fff;\n padding: 12px;\n}\n\n/* // FOOTER CONTAINER - only serves to be read as a container */\n.FooterContainer {\n container-type: inline-size;\n container-name: footerContainer;\n}\n\n\n.FooterGrid {\n background-color: #14202D;\n display: grid;\n padding: 8px 24px 0 24px;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: "one"\n "two"\n "three"\n "four"\n "five"\n "six"\n "seven";\n}\n\n \n\n.FooterSectionContainer1 {\n position: relative;\n grid-area: one;\n \n}\n.FooterSectionContainer2 {\n position: relative;\n grid-area: two;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n}\n.FooterSectionContainer3 {\n position: relative;\n grid-area: three;\n \n}\n.FooterSectionContainer4 {\n position: relative;\n grid-area: four;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n}\n.FooterSectionContainer5 {\n grid-area: five;\n /* border-bottom: 1px solid #444; */\n}\n.FooterSectionContainer6 {\n padding-top: 22px;\n grid-area: six;\n}\n.FooterSectionContainer7 {\n grid-area: seven;\n}\n\n/* // remove paddings */\n.FooterSectionContainer7 div{\n padding: 0;\n}\n\n.FooterSectionContainer3:after {\n position: absolute;\n content: "";\n left: 30%;\n bottom: -20px;\n height: 1px;\n width: 40%;\n background-color: #444;\n}\n\n\n\n/* // STYLES FOR TABLET / DESKTOP */\n@container (min-width: 750px) {\n .FooterGrid {\n background: $-background-primary;\n display: grid;\n grid-template-rows: repeat(5, auto);\n grid-template-columns: 2fr 1fr;\n grid-template-areas: "one two"\n "three four"\n "five five"\n "six six"\n "seven seven";\n }\n \n \n .FooterSectionContainer1 {\n grid-area: one;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n }\n .FooterSectionContainer2 {\n grid-area: two;\n\n }\n .FooterSectionContainer3 {\n grid-area: three;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n }\n .FooterSectionContainer4 {\n grid-area: four;\n }\n .FooterSectionContainer5 {\n grid-area: five;\n }\n .FooterSectionContainer6 {\n grid-area: six;\n padding: 0;\n }\n .FooterSectionContainer7 {\n grid-area: seven;\n padding: 0;\n }\n\n /* VERTICAL BARS */\n .FooterSectionContainer3:after {\n position: absolute;\n content: "";\n left: initial;\n bottom:initial;\n top: 30%;\n right: 20px;\n width: 1px;\n height: 40%;\n background-color: #444;\n }\n\n /* // remove paddings */\n .FooterSectionContainer5 .CustomContentSectionWrapper {\n padding: 0;\n }\n\n .FooterSectionContainer5 .CustomContentSectionWrapper div {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .FooterSectionContainer5 .CustomContentSectionWrapper div p {\n margin: 5px;\n text-align: center;\n }\n\n .FooterSectionContainer6 .CustomContentSectionWrapper div p {\n text-align: center;\n }\n\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n /* padding-bottom: 22px; */\n /* font-size: 14px; */\n }\n\n .FooterSectionContainer7 .CustomContentSectionWrapper {\n padding: 0;\n padding-bottom: 22px;\n font-size: 14px;\n }\n}';export{i as general_footer_template}
1
+ import{r as n,h as e,g as t}from"./p-7aafd945.js";const o={downloadApp:{component:"custom-content-section"},"link-section":{component:"link-section-list"},copyright:{component:"custom-content-section"},download:{component:"custom-content-section"},helpLinks:{component:"image-list"},"license-description":{component:"custom-content-section"},licenses:{component:"image-list"},payment:{component:"image-list"},social:{component:"image-list"},sponsors:{component:"image-list"},vendors:{component:"image-list"}},i=class{constructor(e){n(this,e),this.env="stage",this.userRoles="everyone",this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.hasErrors=!1,this.platform=(()=>{const n=(()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(n)return"PC"===n?"dk":"iPad"===n||"iPhone"===n?"ios":"mtWeb"})(),this.MANDATORY_FIELDS=["endpoint","language","sections"],this.setClientStyling=()=>{let n=document.createElement("style");n.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(n)},this.setClientStylingURL=()=>{let n=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{this.clientStylingUrl=n,e.innerHTML=n,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)})).catch((n=>{console.log("error ",n)}))}}validateMandatoryFields(){this.MANDATORY_FIELDS.forEach((n=>{this[n]||(console.error(`Mandatory parameter ${n} not received`),this.hasErrors=!0)}))}componentWillLoad(){this.sectionsList=this.sections.split(",").map((n=>n.trim()));const n=new URL(`${this.endpoint}/${this.language}/footer-raw-data`);return n.searchParams.append("env",this.env),n.searchParams.append("device",this.platform),n.searchParams.append("userroles",this.userRoles),this.validateMandatoryFields(),fetch(n.href).then((n=>n.json())).then((n=>{this.footerContent=(n=>{const e={repeaters:{vendors:{categoryTitle:n.gameVendorsLinksTitle,content:[]},"link-section":{categoryTitle:n.helpLinksTitle,content:[]},helpLinks:{categoryTitle:n.helpLinksTitle,content:[]},licenses:{categoryTitle:n.licensesLinksTitle,content:[]},sponsors:{categoryTitle:n.sponsorsLinksTitle,content:[]},payment:{categoryTitle:n.paymentLinksTitle,content:[]},social:{categoryTitle:n.socialLinksTitle,content:[]},downloadApp:{categoryTitle:n.downloadAppLinksTitle,content:[]}},wysiwyg:{copyright:{categoryTitle:"test",content:"test"},download:{categoryTitle:"test",content:"test"},downloadApp:{categoryTitle:"test",content:"test"},"license-description":{categoryTitle:"test",content:"test"}}},t={helpLinks:{repeaterName:"helpLinksRepeater",isExternalLink:"isExternalLink",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},"link-section":{repeaterName:"helpLinksRepeater",isExternalLink:"isExternalLink",linkCategory:"helpLinkCategory",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},social:{repeaterName:"socialLinksRepeater",isExternalLink:"isExternalLink",image:"socialLinkImage",title:"socialLinkTitle",url:"socialLinkUrl",target:"target"},vendors:{repeaterName:"gameVendorsRepeater",isExternalLink:"isExternalLink",image:"gameVendorImage",title:"gameVendorTitle",url:"gameVendorUrl",target:"target"},licenses:{repeaterName:"licensesRepeater",isExternalLink:"isExternalLink",image:"licenseImage",title:"licenseTitle",url:"licenseUrl",target:"target"},payment:{repeaterName:"paymentMethodsRepeater",isExternalLink:"isExternalLink",image:"paymentMethodImage",title:"paymentTitle",url:"paymentUrl",target:"target"},sponsors:{repeaterName:"sponsorsRepeater",isExternalLink:"isExternalLink",image:"sponsorImage",title:"sponsorTitle",url:"sponsorUrl",target:"target"}};return Object.entries(e.repeaters).forEach((e=>{var o,i,r;t[e[0]]&&n[null===(o=t[e[0]])||void 0===o?void 0:o.repeaterName]&&(e[1].content=null===(r=n[null===(i=t[e[0]])||void 0===i?void 0:i.repeaterName])||void 0===r?void 0:r.map((n=>({isExternalLink:n[t[e[0]].isExternalLink],linkCategory:n[t[e[0]].linkCategory],image:n[t[e[0]].image],title:n[t[e[0]].title],url:n[t[e[0]].url],target:n[t[e[0]].target]}))))})),e.repeaters.downloadApp.content=n.downloadInfos.imageArea,e.wysiwyg.downloadApp.content=n.downloadInfos.downloadDescription,e.wysiwyg.copyright.content=n.copyright,e.wysiwyg["license-description"].content=n.licenseDesc,e})(n)}))}componentDidRender(){!this.limitStylingAppends&&this.host.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){const n=this.sectionsList.map(((n,t)=>{const i=o[n].component,r=this.footerContent.repeaters.hasOwnProperty(n),a=this.footerContent.wysiwyg.hasOwnProperty(n);return e(i,{class:`${n} FooterSectionContainer FooterSectionContainer${t+1}`,userid:this.userid,session:this.session,"base-url":this.baseUrl,language:this.language,ruleset:o[n],repeaterContent:r?this.footerContent.repeaters[n]:null,customContent:a?this.footerContent.wysiwyg[n].content:null})}));return this.hasErrors?e("div",null,"There was an error while bootstraping the widget"):e("footer",{class:"FooterContainer"},e("div",{class:"FooterGrid customStyle"},n))}get host(){return t(this)}};i.style=':host {\n display: block;\n}\n\n/* $-background-primary: #14202d; */\n\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.FooterSectionContainer {\n color: #fff;\n padding: 12px;\n}\n\n/* // FOOTER CONTAINER - only serves to be read as a container */\n.FooterContainer {\n container-type: inline-size;\n container-name: footerContainer;\n}\n\n\n.FooterGrid {\n background-color: #14202D;\n display: grid;\n padding: 8px 24px 0 24px;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: "one"\n "two"\n "three"\n "four"\n "five"\n "six"\n "seven";\n}\n\n \n\n.FooterSectionContainer1 {\n position: relative;\n grid-area: one;\n \n}\n.FooterSectionContainer2 {\n position: relative;\n grid-area: two;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n}\n.FooterSectionContainer3 {\n position: relative;\n grid-area: three;\n \n}\n.FooterSectionContainer4 {\n position: relative;\n grid-area: four;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n}\n.FooterSectionContainer5 {\n grid-area: five;\n /* border-bottom: 1px solid #444; */\n}\n.FooterSectionContainer6 {\n padding-top: 22px;\n grid-area: six;\n}\n.FooterSectionContainer7 {\n grid-area: seven;\n}\n\n/* // remove paddings */\n.FooterSectionContainer7 div{\n padding: 0;\n}\n\n.FooterSectionContainer3:after {\n position: absolute;\n content: "";\n left: 30%;\n bottom: -20px;\n height: 1px;\n width: 40%;\n background-color: #444;\n}\n\n\n\n/* // STYLES FOR TABLET / DESKTOP */\n@container (min-width: 750px) {\n .FooterGrid {\n background: $-background-primary;\n display: grid;\n grid-template-rows: repeat(5, auto);\n grid-template-columns: 2fr 1fr;\n grid-template-areas: "one two"\n "three four"\n "five five"\n "six six"\n "seven seven";\n }\n \n \n .FooterSectionContainer1 {\n grid-area: one;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n }\n .FooterSectionContainer2 {\n grid-area: two;\n\n }\n .FooterSectionContainer3 {\n grid-area: three;\n border-bottom: 1px solid rgba(254, 254, 254, 0.2);\n }\n .FooterSectionContainer4 {\n grid-area: four;\n }\n .FooterSectionContainer5 {\n grid-area: five;\n }\n .FooterSectionContainer6 {\n grid-area: six;\n padding: 0;\n }\n .FooterSectionContainer7 {\n grid-area: seven;\n padding: 0;\n }\n\n /* VERTICAL BARS */\n .FooterSectionContainer3:after {\n position: absolute;\n content: "";\n left: initial;\n bottom:initial;\n top: 30%;\n right: 20px;\n width: 1px;\n height: 40%;\n background-color: #444;\n }\n\n /* // remove paddings */\n .FooterSectionContainer5 .CustomContentSectionWrapper {\n padding: 0;\n }\n\n .FooterSectionContainer5 .CustomContentSectionWrapper div {\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .FooterSectionContainer5 .CustomContentSectionWrapper div p {\n margin: 5px;\n text-align: center;\n }\n\n .FooterSectionContainer6 .CustomContentSectionWrapper div p {\n text-align: center;\n }\n\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n /* padding-bottom: 22px; */\n /* font-size: 14px; */\n }\n\n .FooterSectionContainer7 .CustomContentSectionWrapper {\n padding: 0;\n padding-bottom: 22px;\n font-size: 14px;\n }\n}';export{i as general_footer_template}
@@ -0,0 +1 @@
1
+ import{r as n,h as i}from"./p-7aafd945.js";const t=class{constructor(i){n(this,i)}render(){const n=this.repeaterContent.content.reduce(((n,i)=>{const t=i.linkCategory,e=n.find((n=>n.categoryTitle===t));return e?e.links.push({linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink}):n.push({categoryTitle:t,links:[{linkName:i.title,linkUrl:i.url,target:i.target,externalLink:i.isExternalLink}]}),n}),[]);return i("div",{class:"LinkSectionListContainer"},i("div",{class:"LinkSectionListWrapper"},n.map((n=>i("ul",null,i("li",{class:"LinkSectionListTitle"},n.categoryTitle),n.links.map((n=>{var t;return i("li",{class:"LinkSectionListLink"},i("a",{href:n.externalLink?n.linkUrl:this.baseUrl+`/${this.language}`+n.linkUrl,target:null!==(t=n.target)&&void 0!==t?t:"_blank"},n.linkName))})))))))}};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: grid;\n grid-gap: 2rem;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: 600;\n}\n.LinkSectionListLink {\n font-weight: 300;\n text-decoration: underline;\n text-underline-offset: 0.2rem;\n}\n\nul {\n width: fit-content;\n padding: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n\nli {\n list-style: none;\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}
@@ -27,6 +27,10 @@ export declare class GeneralFooterTemplate {
27
27
  * the current session, to be used in order to determine login status (relevant for certain components ex. "panic button")
28
28
  */
29
29
  session: string;
30
+ /**
31
+ * If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can’t take the parent host to create the right anchors.
32
+ */
33
+ baseUrl: string;
30
34
  /**
31
35
  * custom styling by string content
32
36
  */
@@ -3,5 +3,13 @@ export declare class LinkSectionList {
3
3
  * the links content to be displayed, including titles, url, open target
4
4
  */
5
5
  repeaterContent: any;
6
+ /**
7
+ * If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can’t take the parent host to create the right anchors.
8
+ */
9
+ baseUrl: string;
10
+ /**
11
+ * the language of the footer
12
+ */
13
+ language: string;
6
14
  render(): any;
7
15
  }
@@ -17,6 +17,10 @@ export namespace Components {
17
17
  "repeaterContent": any;
18
18
  }
19
19
  interface GeneralFooterTemplate {
20
+ /**
21
+ * If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can’t take the parent host to create the right anchors.
22
+ */
23
+ "baseUrl": string;
20
24
  /**
21
25
  * custom styling by string content
22
26
  */
@@ -61,6 +65,14 @@ export namespace Components {
61
65
  "repeaterContent": any;
62
66
  }
63
67
  interface LinkSectionList {
68
+ /**
69
+ * If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can’t take the parent host to create the right anchors.
70
+ */
71
+ "baseUrl": string;
72
+ /**
73
+ * the language of the footer
74
+ */
75
+ "language": string;
64
76
  /**
65
77
  * the links content to be displayed, including titles, url, open target
66
78
  */
@@ -111,6 +123,10 @@ declare namespace LocalJSX {
111
123
  "repeaterContent"?: any;
112
124
  }
113
125
  interface GeneralFooterTemplate {
126
+ /**
127
+ * If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can’t take the parent host to create the right anchors.
128
+ */
129
+ "baseUrl"?: string;
114
130
  /**
115
131
  * custom styling by string content
116
132
  */
@@ -155,6 +171,14 @@ declare namespace LocalJSX {
155
171
  "repeaterContent"?: any;
156
172
  }
157
173
  interface LinkSectionList {
174
+ /**
175
+ * If this is present, then the footer will attach the baseurl inside src for all HelperLinks present in the footer (so it will be baseurl + helper_link) - This is needed when the footer is integrated inside an iframe it can’t take the parent host to create the right anchors.
176
+ */
177
+ "baseUrl"?: string;
178
+ /**
179
+ * the language of the footer
180
+ */
181
+ "language": string;
158
182
  /**
159
183
  * the links content to be displayed, including titles, url, open target
160
184
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-footer-template",
3
- "version": "1.16.1",
3
+ "version": "1.18.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as n,h as i}from"./p-7aafd945.js";const t=class{constructor(i){n(this,i)}render(){const n=this.repeaterContent.content.reduce(((n,i)=>{const t=i.linkCategory,e=n.find((n=>n.categoryTitle===t));return e?e.links.push({linkName:i.title,linkUrl:i.url,target:i.target}):n.push({categoryTitle:t,links:[{linkName:i.title,linkUrl:i.url,target:i.target}]}),n}),[]);return i("div",{class:"LinkSectionListContainer"},i("div",{class:"LinkSectionListWrapper"},n.map((n=>i("ul",null,i("li",{class:"LinkSectionListTitle"},n.categoryTitle),n.links.map((n=>{var t;return i("li",{class:"LinkSectionListLink"},i("a",{href:n.linkUrl,target:null!==(t=n.target)&&void 0!==t?t:"_blank"},n.linkName))})))))))}};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: grid;\n grid-gap: 2rem;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: 600;\n}\n.LinkSectionListLink {\n font-weight: 300;\n text-decoration: underline;\n text-underline-offset: 0.2rem;\n}\n\nul {\n width: fit-content;\n padding: 0;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: 16px;\n}\n\nli {\n list-style: none;\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}