@everymatrix/general-footer-template 1.54.11 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/cjs/custom-clock.cjs.entry.js +6 -18
  2. package/dist/cjs/custom-content-section.cjs.entry.js +37 -86
  3. package/dist/cjs/general-footer-template.cjs.entry.js +79 -70
  4. package/dist/cjs/general-footer-template.cjs.js +3 -3
  5. package/dist/cjs/image-list.cjs.entry.js +4 -9
  6. package/dist/cjs/{index-10cb8e8c.js → index-d85e54c5.js} +92 -197
  7. package/dist/cjs/link-section-list.cjs.entry.js +5 -8
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/custom-clock/custom-clock.js +5 -25
  11. package/dist/collection/components/custom-content-section/custom-content-section.js +6 -17
  12. package/dist/collection/components/general-footer-template/demo-footer.css +1 -2
  13. package/dist/collection/components/general-footer-template/general-footer-template.js +41 -93
  14. package/dist/collection/components/image-list/image-list.js +3 -14
  15. package/dist/collection/components/link-section-list/link-section-list.js +4 -17
  16. package/dist/collection/utils/utils.js +1 -1
  17. package/dist/esm/custom-clock.entry.js +6 -18
  18. package/dist/esm/custom-content-section.entry.js +37 -86
  19. package/dist/esm/general-footer-template.entry.js +79 -70
  20. package/dist/esm/general-footer-template.js +4 -4
  21. package/dist/esm/image-list.entry.js +4 -9
  22. package/dist/esm/{index-e2977b84.js → index-7f32a4a7.js} +92 -197
  23. package/dist/esm/link-section-list.entry.js +5 -8
  24. package/dist/esm/loader.js +3 -3
  25. package/dist/general-footer-template/general-footer-template.esm.js +1 -1
  26. package/dist/general-footer-template/p-122e0353.entry.js +1 -0
  27. package/dist/general-footer-template/p-905acd21.js +2 -0
  28. package/dist/general-footer-template/p-9aeab1ea.entry.js +1 -0
  29. package/dist/general-footer-template/p-a6279430.entry.js +1 -0
  30. package/dist/general-footer-template/{p-48b95d9a.entry.js → p-cd14a119.entry.js} +2 -2
  31. package/dist/general-footer-template/{p-ec9d9aab.entry.js → p-f5a17365.entry.js} +1 -1
  32. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
  33. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
  34. package/dist/types/components/general-footer-template/general-footer-template.d.ts +4 -4
  35. package/dist/types/components.d.ts +8 -0
  36. package/package.json +1 -1
  37. package/dist/collection/components/general-footer-template/general-footer-template.css +0 -84
  38. package/dist/collection/components/general-footer-template/pariuri_plus_variant.css +0 -185
  39. package/dist/collection/components/general-footer-template/variant_style_1.css +0 -146
  40. package/dist/general-footer-template/p-2477706f.entry.js +0 -1
  41. package/dist/general-footer-template/p-5d1fe559.js +0 -2
  42. package/dist/general-footer-template/p-c646816c.entry.js +0 -1
  43. package/dist/general-footer-template/p-cb29a35c.entry.js +0 -1
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +0 -2
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +0 -2
  46. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
  47. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  48. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  49. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -5,23 +5,6 @@ import utc from "dayjs/plugin/utc";
5
5
  import timezone from "dayjs/plugin/timezone";
6
6
  export class CustomClock {
7
7
  constructor() {
8
- /**
9
- * clockformat
10
- */
11
- this.clockFormat = 'HH:mm:ss';
12
- /**
13
- * configurable time zone
14
- */
15
- this.timeZone = '';
16
- /**
17
- * custom translation by href
18
- */
19
- this.translationUrl = '';
20
- /**
21
- * language
22
- */
23
- this.language = 'en';
24
- this.timeString = '';
25
8
  this.startClock = () => {
26
9
  this.intervalId = setInterval(() => {
27
10
  if (this.timeZone.length > 0) {
@@ -34,6 +17,11 @@ export class CustomClock {
34
17
  }
35
18
  }, 1000);
36
19
  };
20
+ this.clockFormat = 'HH:mm:ss';
21
+ this.timeZone = '';
22
+ this.translationUrl = '';
23
+ this.language = 'en';
24
+ this.timeString = '';
37
25
  }
38
26
  handleNewTranslations() {
39
27
  getTranslations(this.translationUrl);
@@ -80,8 +68,6 @@ export class CustomClock {
80
68
  "tags": [],
81
69
  "text": "clockformat"
82
70
  },
83
- "getter": false,
84
- "setter": false,
85
71
  "attribute": "clock-format",
86
72
  "reflect": true,
87
73
  "defaultValue": "'HH:mm:ss'"
@@ -100,8 +86,6 @@ export class CustomClock {
100
86
  "tags": [],
101
87
  "text": "configurable time zone"
102
88
  },
103
- "getter": false,
104
- "setter": false,
105
89
  "attribute": "time-zone",
106
90
  "reflect": true,
107
91
  "defaultValue": "''"
@@ -120,8 +104,6 @@ export class CustomClock {
120
104
  "tags": [],
121
105
  "text": "custom translation by href"
122
106
  },
123
- "getter": false,
124
- "setter": false,
125
107
  "attribute": "translation-url",
126
108
  "reflect": true,
127
109
  "defaultValue": "''"
@@ -140,8 +122,6 @@ export class CustomClock {
140
122
  "tags": [],
141
123
  "text": "language"
142
124
  },
143
- "getter": false,
144
- "setter": false,
145
125
  "attribute": "language",
146
126
  "reflect": true,
147
127
  "defaultValue": "'en'"
@@ -2,23 +2,20 @@ import { h } from "@stencil/core";
2
2
  import sanitizeHtml from "sanitize-html";
3
3
  export class CustomContentSection {
4
4
  constructor() {
5
- /**
6
- * If this is true it will emit an event at the moment the content with url its clicked
7
- */
5
+ this.customContent = undefined;
6
+ this.repeaterContent = undefined;
8
7
  this.navigateViaEvent = false;
9
- /**
10
- * Post Message event to be sent on navigation via Event
11
- */
12
8
  this.postMessageEvent = '';
13
9
  }
14
10
  render() {
15
11
  const clean = sanitizeHtml(this.customContent, {
16
- allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']),
12
+ allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img', 'a']),
17
13
  allowedAttributes: {
18
- img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading']
14
+ img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading'],
15
+ a: ['href', 'target', 'rel']
19
16
  }
20
17
  });
21
- return h("div", { key: '894fdc79eb310d5a7cfde48445afd3d1d464359e', class: "CustomContentSectionContainer" }, h("div", { key: 'cfecce550a4e9b6b692ff12de96262e1413f8f2b', class: "CustomContentSectionWrapper" }, h("div", { key: '1e76edcbb408a184848bda0c86a99d2467e3e081', 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 }) : ''));
18
+ return h("div", { key: '7cfcf732fff969c5bcd0b08a4b921ae3592732b3', class: "CustomContentSectionContainer" }, h("div", { key: 'c5cf9a5ada78c792ebb778d3d3084e0b0b938ed4', class: "CustomContentSectionWrapper" }, h("div", { key: 'abc8184b4eb9c97e0261bec4baebfb7e272cd3bb', 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 }) : ''));
22
19
  }
23
20
  static get is() { return "custom-content-section"; }
24
21
  static get encapsulation() { return "scoped"; }
@@ -48,8 +45,6 @@ export class CustomContentSection {
48
45
  "tags": [],
49
46
  "text": "custom HTML content to be rendered"
50
47
  },
51
- "getter": false,
52
- "setter": false,
53
48
  "attribute": "custom-content",
54
49
  "reflect": false
55
50
  },
@@ -67,8 +62,6 @@ export class CustomContentSection {
67
62
  "tags": [],
68
63
  "text": "the links content to be displayed, including titles, url, open target"
69
64
  },
70
- "getter": false,
71
- "setter": false,
72
65
  "attribute": "repeater-content",
73
66
  "reflect": false
74
67
  },
@@ -86,8 +79,6 @@ export class CustomContentSection {
86
79
  "tags": [],
87
80
  "text": "If this is true it will emit an event at the moment the content with url its clicked"
88
81
  },
89
- "getter": false,
90
- "setter": false,
91
82
  "attribute": "navigate-via-event",
92
83
  "reflect": true,
93
84
  "defaultValue": "false"
@@ -106,8 +97,6 @@ export class CustomContentSection {
106
97
  "tags": [],
107
98
  "text": "Post Message event to be sent on navigation via Event"
108
99
  },
109
- "getter": false,
110
- "setter": false,
111
100
  "attribute": "post-message-event",
112
101
  "reflect": true,
113
102
  "defaultValue": "''"
@@ -16,7 +16,7 @@ body {
16
16
 
17
17
  .FooterSectionContainer {
18
18
  color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));
19
- padding: 12px;
19
+ padding: 15px 20px 0;
20
20
  }
21
21
 
22
22
  /* // FOOTER CONTAINER - only serves to be read as a container */
@@ -28,7 +28,6 @@ body {
28
28
  .FooterGrid {
29
29
  background-color: var(--emw--footer-color-bg, var(--emw--color-background, #0E1511));
30
30
  display: grid;
31
- padding: 8px 24px 0 24px;
32
31
  grid-template-rows: repeat(9, auto);
33
32
  grid-template-areas: "one" "two" "three" "four" "five" "six" "seven";
34
33
  }
@@ -1,71 +1,30 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { componentRules, normalizeRepeaterContent, getDevicePlatform } from "../../utils/utils";
3
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
4
  export class GeneralFooterTemplate {
4
5
  constructor() {
6
+ this.platform = getDevicePlatform();
5
7
  /**
6
- * Environment segregation
8
+ * Host element
7
9
  */
10
+ this.MANDATORY_FIELDS = ['endpoint', 'language', 'sections'];
11
+ this.language = undefined;
12
+ this.sections = undefined;
13
+ this.endpoint = undefined;
8
14
  this.env = 'stage';
9
- /**
10
- * User roles
11
- */
12
15
  this.userRoles = 'everyone';
13
- /**
14
- * If this is true it will emit an event at the moment the content with url its clicked
15
- */
16
+ this.userid = undefined;
17
+ this.session = undefined;
18
+ this.baseUrl = undefined;
16
19
  this.navigateViaEvent = 'false';
17
- /**
18
- * Post Message event to be sent on navigation via Event
19
- */
20
20
  this.postMessageEvent = 'NavigateTo';
21
- /**
22
- * custom styling by string content
23
- */
24
21
  this.clientStyling = '';
25
- /**
26
- * custom styling by href
27
- */
28
22
  this.clientStylingUrl = '';
29
- /**
30
- * custom translation by href
31
- */
32
23
  this.translationUrl = '';
33
- /**
34
- * clockformat
35
- */
36
24
  this.clockFormat = 'HH:MM:ss';
37
- /**
38
- * configurable time zone
39
- */
40
25
  this.timeZone = '';
41
- /**
42
- * wether or not styling appends should be disallowed
43
- */
26
+ this.mbSource = undefined;
44
27
  this.hasErrors = false;
45
- this.stylingAppends = false;
46
- this.platform = getDevicePlatform();
47
- /**
48
- * Host element
49
- */
50
- this.MANDATORY_FIELDS = ['endpoint', 'language', 'sections'];
51
- this.setClientStyling = () => {
52
- let sheet = document.createElement('style');
53
- sheet.innerHTML = this.clientStyling;
54
- this.stylingContainer.prepend(sheet);
55
- };
56
- this.setClientStylingURL = () => {
57
- let url = new URL(this.clientStylingUrl);
58
- let cssFile = document.createElement('style');
59
- fetch(url.href)
60
- .then((res) => res.text())
61
- .then((data) => {
62
- cssFile.innerHTML = data;
63
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
64
- })
65
- .catch((err) => {
66
- console.log('error ', err);
67
- });
68
- };
69
28
  }
70
29
  validateMandatoryFields() {
71
30
  this.MANDATORY_FIELDS.forEach((field) => {
@@ -93,16 +52,19 @@ export class GeneralFooterTemplate {
93
52
  }
94
53
  });
95
54
  }
96
- componentDidRender() {
97
- // start custom styling area
98
- if (!this.stylingAppends && this.stylingContainer) {
55
+ disconnectedCallback() {
56
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
57
+ }
58
+ componentDidLoad() {
59
+ if (window.emMessageBus != undefined) {
60
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
61
+ }
62
+ else {
99
63
  if (this.clientStyling)
100
- this.setClientStyling();
64
+ setClientStyling(this.stylingContainer, this.clientStyling);
101
65
  if (this.clientStylingUrl)
102
- this.setClientStylingURL();
103
- this.stylingAppends = true;
66
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
104
67
  }
105
- // end custom styling area
106
68
  }
107
69
  render() {
108
70
  if (this.hasErrors) {
@@ -122,12 +84,12 @@ export class GeneralFooterTemplate {
122
84
  static get encapsulation() { return "shadow"; }
123
85
  static get originalStyleUrls() {
124
86
  return {
125
- "$": ["./demo-footer.scss", "./pariuri_plus_variant.css", "./variant_style_1.css", "general-footer-template.scss"]
87
+ "$": ["./demo-footer.scss"]
126
88
  };
127
89
  }
128
90
  static get styleUrls() {
129
91
  return {
130
- "$": ["demo-footer.css", "pariuri_plus_variant.css", "variant_style_1.css", "general-footer-template.css"]
92
+ "$": ["demo-footer.css"]
131
93
  };
132
94
  }
133
95
  static get properties() {
@@ -146,8 +108,6 @@ export class GeneralFooterTemplate {
146
108
  "tags": [],
147
109
  "text": "the language of the footer"
148
110
  },
149
- "getter": false,
150
- "setter": false,
151
111
  "attribute": "language",
152
112
  "reflect": true
153
113
  },
@@ -165,8 +125,6 @@ export class GeneralFooterTemplate {
165
125
  "tags": [],
166
126
  "text": "which sections should be included in the footer (some have defined attributes)"
167
127
  },
168
- "getter": false,
169
- "setter": false,
170
128
  "attribute": "sections",
171
129
  "reflect": true
172
130
  },
@@ -184,8 +142,6 @@ export class GeneralFooterTemplate {
184
142
  "tags": [],
185
143
  "text": "endpoint for data retrieval"
186
144
  },
187
- "getter": false,
188
- "setter": false,
189
145
  "attribute": "endpoint",
190
146
  "reflect": true
191
147
  },
@@ -203,8 +159,6 @@ export class GeneralFooterTemplate {
203
159
  "tags": [],
204
160
  "text": "Environment segregation"
205
161
  },
206
- "getter": false,
207
- "setter": false,
208
162
  "attribute": "env",
209
163
  "reflect": true,
210
164
  "defaultValue": "'stage'"
@@ -223,8 +177,6 @@ export class GeneralFooterTemplate {
223
177
  "tags": [],
224
178
  "text": "User roles"
225
179
  },
226
- "getter": false,
227
- "setter": false,
228
180
  "attribute": "user-roles",
229
181
  "reflect": true,
230
182
  "defaultValue": "'everyone'"
@@ -243,8 +195,6 @@ export class GeneralFooterTemplate {
243
195
  "tags": [],
244
196
  "text": "the id of the current userid, to be used in order to determine login status (relevant for certain components ex. \"panic button\")"
245
197
  },
246
- "getter": false,
247
- "setter": false,
248
198
  "attribute": "userid",
249
199
  "reflect": true
250
200
  },
@@ -262,8 +212,6 @@ export class GeneralFooterTemplate {
262
212
  "tags": [],
263
213
  "text": "the current session, to be used in order to determine login status (relevant for certain components ex. \"panic button\")"
264
214
  },
265
- "getter": false,
266
- "setter": false,
267
215
  "attribute": "session",
268
216
  "reflect": true
269
217
  },
@@ -281,8 +229,6 @@ export class GeneralFooterTemplate {
281
229
  "tags": [],
282
230
  "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."
283
231
  },
284
- "getter": false,
285
- "setter": false,
286
232
  "attribute": "base-url",
287
233
  "reflect": true
288
234
  },
@@ -300,8 +246,6 @@ export class GeneralFooterTemplate {
300
246
  "tags": [],
301
247
  "text": "If this is true it will emit an event at the moment the content with url its clicked"
302
248
  },
303
- "getter": false,
304
- "setter": false,
305
249
  "attribute": "navigate-via-event",
306
250
  "reflect": true,
307
251
  "defaultValue": "'false'"
@@ -320,8 +264,6 @@ export class GeneralFooterTemplate {
320
264
  "tags": [],
321
265
  "text": "Post Message event to be sent on navigation via Event"
322
266
  },
323
- "getter": false,
324
- "setter": false,
325
267
  "attribute": "post-message-event",
326
268
  "reflect": true,
327
269
  "defaultValue": "'NavigateTo'"
@@ -340,8 +282,6 @@ export class GeneralFooterTemplate {
340
282
  "tags": [],
341
283
  "text": "custom styling by string content"
342
284
  },
343
- "getter": false,
344
- "setter": false,
345
285
  "attribute": "client-styling",
346
286
  "reflect": true,
347
287
  "defaultValue": "''"
@@ -360,8 +300,6 @@ export class GeneralFooterTemplate {
360
300
  "tags": [],
361
301
  "text": "custom styling by href"
362
302
  },
363
- "getter": false,
364
- "setter": false,
365
303
  "attribute": "client-styling-url",
366
304
  "reflect": true,
367
305
  "defaultValue": "''"
@@ -380,8 +318,6 @@ export class GeneralFooterTemplate {
380
318
  "tags": [],
381
319
  "text": "custom translation by href"
382
320
  },
383
- "getter": false,
384
- "setter": false,
385
321
  "attribute": "translation-url",
386
322
  "reflect": true,
387
323
  "defaultValue": "''"
@@ -400,8 +336,6 @@ export class GeneralFooterTemplate {
400
336
  "tags": [],
401
337
  "text": "clockformat"
402
338
  },
403
- "getter": false,
404
- "setter": false,
405
339
  "attribute": "clock-format",
406
340
  "reflect": true,
407
341
  "defaultValue": "'HH:MM:ss'"
@@ -420,18 +354,32 @@ export class GeneralFooterTemplate {
420
354
  "tags": [],
421
355
  "text": "configurable time zone"
422
356
  },
423
- "getter": false,
424
- "setter": false,
425
357
  "attribute": "time-zone",
426
358
  "reflect": true,
427
359
  "defaultValue": "''"
360
+ },
361
+ "mbSource": {
362
+ "type": "string",
363
+ "mutable": false,
364
+ "complexType": {
365
+ "original": "string",
366
+ "resolved": "string",
367
+ "references": {}
368
+ },
369
+ "required": false,
370
+ "optional": false,
371
+ "docs": {
372
+ "tags": [],
373
+ "text": "wether or not styling appends should be disallowed"
374
+ },
375
+ "attribute": "mb-source",
376
+ "reflect": true
428
377
  }
429
378
  };
430
379
  }
431
380
  static get states() {
432
381
  return {
433
- "hasErrors": {},
434
- "stylingAppends": {}
382
+ "hasErrors": {}
435
383
  };
436
384
  }
437
385
  }
@@ -1,17 +1,12 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class ImageList {
3
3
  constructor() {
4
- /**
5
- * If this is true it will emit an event at the moment the content with url its clicked
6
- */
7
- this.navigateViaEvent = false;
8
- /**
9
- * Post Message event to be sent on navigation via event
10
- */
11
- this.postMessageEvent = '';
12
4
  this.navigateLink = (url, target, externalLink) => {
13
5
  window.postMessage({ type: this.postMessageEvent, path: url, url, target, externalLink }, window.location.href);
14
6
  };
7
+ this.repeaterContent = undefined;
8
+ this.navigateViaEvent = false;
9
+ this.postMessageEvent = '';
15
10
  }
16
11
  render() {
17
12
  var _a, _b, _c;
@@ -47,8 +42,6 @@ export class ImageList {
47
42
  "tags": [],
48
43
  "text": "the links content to be displayed, including titles, url, open target"
49
44
  },
50
- "getter": false,
51
- "setter": false,
52
45
  "attribute": "repeater-content",
53
46
  "reflect": false
54
47
  },
@@ -66,8 +59,6 @@ export class ImageList {
66
59
  "tags": [],
67
60
  "text": "If this is true it will emit an event at the moment the content with url its clicked"
68
61
  },
69
- "getter": false,
70
- "setter": false,
71
62
  "attribute": "navigate-via-event",
72
63
  "reflect": false,
73
64
  "defaultValue": "false"
@@ -86,8 +77,6 @@ export class ImageList {
86
77
  "tags": [],
87
78
  "text": "Post Message event to be sent on navigation via event"
88
79
  },
89
- "getter": false,
90
- "setter": false,
91
80
  "attribute": "post-message-event",
92
81
  "reflect": true,
93
82
  "defaultValue": "''"
@@ -1,13 +1,10 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class LinkSectionList {
3
3
  constructor() {
4
- /**
5
- * If this is true it will emit an event at the moment the content with url its clicked
6
- */
4
+ this.repeaterContent = undefined;
5
+ this.baseUrl = undefined;
6
+ this.language = undefined;
7
7
  this.navigateViaEvent = false;
8
- /**
9
- * Post Message event to be sent on navigation via event
10
- */
11
8
  this.postMessageEvent = '';
12
9
  }
13
10
  navigateLink(link) {
@@ -42,7 +39,7 @@ export class LinkSectionList {
42
39
  }
43
40
  return obj;
44
41
  }, []);
45
- return h("div", { class: "LinkSectionListContainer" }, h("div", { class: "LinkSectionListWrapper" }, h("h2", { class: "LinkSectionListTitle" }, linkSections.categoryTitle), linkSections.map(category => h("ul", null, category.links.map(link => h("li", { class: "LinkSectionListLink", key: link.linkName }, this.navigateViaEvent === true ? (h("span", null, link.linkName && link.icon ? (h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, h("img", { class: "LinkSectionIcon", src: link.icon, alt: "icon" }), h("span", null, link.linkName, " "))) :
42
+ return h("div", { class: "LinkSectionListContainer" }, h("div", { class: "LinkSectionListWrapper" }, this.repeaterContent.categoryTitle && h("h2", { class: "LinkSectionListTitle" }, this.repeaterContent.categoryTitle), linkSections.map(category => h("ul", null, category.categoryTitle && h("p", null, category.categoryTitle), category.links.map(link => h("li", { class: "LinkSectionListLink", key: link.linkName }, this.navigateViaEvent === true ? (h("span", null, link.linkName && link.icon ? (h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, h("img", { class: "LinkSectionIcon", src: link.icon, alt: "icon" }), h("span", null, link.linkName, " "))) :
46
43
  link.linkName ?
47
44
  h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, h("span", null, link.linkName, " "))
48
45
  :
@@ -77,8 +74,6 @@ export class LinkSectionList {
77
74
  "tags": [],
78
75
  "text": "the links content to be displayed, including titles, url, open target"
79
76
  },
80
- "getter": false,
81
- "setter": false,
82
77
  "attribute": "repeater-content",
83
78
  "reflect": false
84
79
  },
@@ -96,8 +91,6 @@ export class LinkSectionList {
96
91
  "tags": [],
97
92
  "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."
98
93
  },
99
- "getter": false,
100
- "setter": false,
101
94
  "attribute": "base-url",
102
95
  "reflect": true
103
96
  },
@@ -115,8 +108,6 @@ export class LinkSectionList {
115
108
  "tags": [],
116
109
  "text": "the language of the footer"
117
110
  },
118
- "getter": false,
119
- "setter": false,
120
111
  "attribute": "language",
121
112
  "reflect": true
122
113
  },
@@ -134,8 +125,6 @@ export class LinkSectionList {
134
125
  "tags": [],
135
126
  "text": "If this is true it will emit an event at the moment the content with url its clicked"
136
127
  },
137
- "getter": false,
138
- "setter": false,
139
128
  "attribute": "navigate-via-event",
140
129
  "reflect": false,
141
130
  "defaultValue": "false"
@@ -154,8 +143,6 @@ export class LinkSectionList {
154
143
  "tags": [],
155
144
  "text": "Post Message event to be sent on navigation via event"
156
145
  },
157
- "getter": false,
158
- "setter": false,
159
146
  "attribute": "post-message-event",
160
147
  "reflect": true,
161
148
  "defaultValue": "''"
@@ -177,7 +177,7 @@ export const normalizeRepeaterContent = (data) => {
177
177
  isExternalLink: 'isExternalLink',
178
178
  image: 'paymentMethodImage',
179
179
  title: 'paymentTitle',
180
- url: 'paymentUrl',
180
+ url: 'paymentMethodUrl',
181
181
  target: 'target'
182
182
  },
183
183
  sponsors: {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-e2977b84.js';
1
+ import { r as registerInstance, h } from './index-7f32a4a7.js';
2
2
  import { c as commonjsGlobal } from './_commonjsHelpers-57e89916.js';
3
3
 
4
4
  const DEFAULT_LANGUAGE = 'en';
@@ -74,23 +74,6 @@ const CustomClockStyle0 = customClockCss;
74
74
  const CustomClock = class {
75
75
  constructor(hostRef) {
76
76
  registerInstance(this, hostRef);
77
- /**
78
- * clockformat
79
- */
80
- this.clockFormat = 'HH:mm:ss';
81
- /**
82
- * configurable time zone
83
- */
84
- this.timeZone = '';
85
- /**
86
- * custom translation by href
87
- */
88
- this.translationUrl = '';
89
- /**
90
- * language
91
- */
92
- this.language = 'en';
93
- this.timeString = '';
94
77
  this.startClock = () => {
95
78
  this.intervalId = setInterval(() => {
96
79
  if (this.timeZone.length > 0) {
@@ -103,6 +86,11 @@ const CustomClock = class {
103
86
  }
104
87
  }, 1000);
105
88
  };
89
+ this.clockFormat = 'HH:mm:ss';
90
+ this.timeZone = '';
91
+ this.translationUrl = '';
92
+ this.language = 'en';
93
+ this.timeString = '';
106
94
  }
107
95
  handleNewTranslations() {
108
96
  getTranslations(this.translationUrl);