@everymatrix/general-footer-template 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/custom-clock.cjs.entry.js +6 -18
- package/dist/cjs/custom-content-section.cjs.entry.js +37 -86
- package/dist/cjs/general-footer-template.cjs.entry.js +79 -70
- package/dist/cjs/general-footer-template.cjs.js +3 -3
- package/dist/cjs/image-list.cjs.entry.js +4 -9
- package/dist/cjs/{index-10cb8e8c.js → index-d85e54c5.js} +92 -197
- package/dist/cjs/link-section-list.cjs.entry.js +5 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/custom-clock/custom-clock.js +5 -25
- package/dist/collection/components/custom-content-section/custom-content-section.js +6 -17
- package/dist/collection/components/general-footer-template/demo-footer.css +1 -2
- package/dist/collection/components/general-footer-template/general-footer-template.js +41 -93
- package/dist/collection/components/image-list/image-list.js +3 -14
- package/dist/collection/components/link-section-list/link-section-list.js +4 -17
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/custom-clock.entry.js +6 -18
- package/dist/esm/custom-content-section.entry.js +37 -86
- package/dist/esm/general-footer-template.entry.js +79 -70
- package/dist/esm/general-footer-template.js +4 -4
- package/dist/esm/image-list.entry.js +4 -9
- package/dist/esm/{index-e2977b84.js → index-7f32a4a7.js} +92 -197
- package/dist/esm/link-section-list.entry.js +5 -8
- package/dist/esm/loader.js +3 -3
- package/dist/general-footer-template/general-footer-template.esm.js +1 -1
- package/dist/general-footer-template/p-122e0353.entry.js +1 -0
- package/dist/general-footer-template/p-905acd21.js +2 -0
- package/dist/general-footer-template/p-9aeab1ea.entry.js +1 -0
- package/dist/general-footer-template/p-a6279430.entry.js +1 -0
- package/dist/general-footer-template/{p-48b95d9a.entry.js → p-cd14a119.entry.js} +2 -2
- package/dist/general-footer-template/{p-ec9d9aab.entry.js → p-f5a17365.entry.js} +1 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/general-footer-template/general-footer-template.d.ts +4 -4
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/collection/components/general-footer-template/general-footer-template.css +0 -84
- package/dist/collection/components/general-footer-template/pariuri_plus_variant.css +0 -185
- package/dist/collection/components/general-footer-template/variant_style_1.css +0 -146
- package/dist/general-footer-template/p-2477706f.entry.js +0 -1
- package/dist/general-footer-template/p-5d1fe559.js +0 -2
- package/dist/general-footer-template/p-c646816c.entry.js +0 -1
- package/dist/general-footer-template/p-cb29a35c.entry.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d85e54c5.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-0a7b82d9.js');
|
|
7
7
|
|
|
8
8
|
const DEFAULT_LANGUAGE = 'en';
|
|
@@ -78,23 +78,6 @@ const CustomClockStyle0 = customClockCss;
|
|
|
78
78
|
const CustomClock = class {
|
|
79
79
|
constructor(hostRef) {
|
|
80
80
|
index.registerInstance(this, hostRef);
|
|
81
|
-
/**
|
|
82
|
-
* clockformat
|
|
83
|
-
*/
|
|
84
|
-
this.clockFormat = 'HH:mm:ss';
|
|
85
|
-
/**
|
|
86
|
-
* configurable time zone
|
|
87
|
-
*/
|
|
88
|
-
this.timeZone = '';
|
|
89
|
-
/**
|
|
90
|
-
* custom translation by href
|
|
91
|
-
*/
|
|
92
|
-
this.translationUrl = '';
|
|
93
|
-
/**
|
|
94
|
-
* language
|
|
95
|
-
*/
|
|
96
|
-
this.language = 'en';
|
|
97
|
-
this.timeString = '';
|
|
98
81
|
this.startClock = () => {
|
|
99
82
|
this.intervalId = setInterval(() => {
|
|
100
83
|
if (this.timeZone.length > 0) {
|
|
@@ -107,6 +90,11 @@ const CustomClock = class {
|
|
|
107
90
|
}
|
|
108
91
|
}, 1000);
|
|
109
92
|
};
|
|
93
|
+
this.clockFormat = 'HH:mm:ss';
|
|
94
|
+
this.timeZone = '';
|
|
95
|
+
this.translationUrl = '';
|
|
96
|
+
this.language = 'en';
|
|
97
|
+
this.timeString = '';
|
|
110
98
|
}
|
|
111
99
|
handleNewTranslations() {
|
|
112
100
|
getTranslations(this.translationUrl);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$2 = require('./index-
|
|
5
|
+
const index$2 = require('./index-d85e54c5.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-0a7b82d9.js');
|
|
7
7
|
|
|
8
8
|
var decode = {};
|
|
@@ -3331,7 +3331,7 @@ function filter$1(test, node, recurse = true, limit = Infinity) {
|
|
|
3331
3331
|
function find(test, nodes, recurse, limit) {
|
|
3332
3332
|
const result = [];
|
|
3333
3333
|
/** Stack of the arrays we are looking at. */
|
|
3334
|
-
const nodeStack = [
|
|
3334
|
+
const nodeStack = [nodes];
|
|
3335
3335
|
/** Stack of the indices within the arrays. */
|
|
3336
3336
|
const indexStack = [0];
|
|
3337
3337
|
for (;;) {
|
|
@@ -3385,19 +3385,20 @@ function findOneChild(test, nodes) {
|
|
|
3385
3385
|
* @returns The first node that passes `test`.
|
|
3386
3386
|
*/
|
|
3387
3387
|
function findOne(test, nodes, recurse = true) {
|
|
3388
|
-
|
|
3389
|
-
for (let i = 0; i <
|
|
3390
|
-
const node =
|
|
3391
|
-
if (isTag(node)
|
|
3392
|
-
|
|
3388
|
+
let elem = null;
|
|
3389
|
+
for (let i = 0; i < nodes.length && !elem; i++) {
|
|
3390
|
+
const node = nodes[i];
|
|
3391
|
+
if (!isTag(node)) {
|
|
3392
|
+
continue;
|
|
3393
|
+
}
|
|
3394
|
+
else if (test(node)) {
|
|
3395
|
+
elem = node;
|
|
3393
3396
|
}
|
|
3394
|
-
if (recurse &&
|
|
3395
|
-
|
|
3396
|
-
if (found)
|
|
3397
|
-
return found;
|
|
3397
|
+
else if (recurse && node.children.length > 0) {
|
|
3398
|
+
elem = findOne(test, node.children, true);
|
|
3398
3399
|
}
|
|
3399
3400
|
}
|
|
3400
|
-
return
|
|
3401
|
+
return elem;
|
|
3401
3402
|
}
|
|
3402
3403
|
/**
|
|
3403
3404
|
* Checks if a tree of nodes contains at least one node passing a test.
|
|
@@ -3408,8 +3409,8 @@ function findOne(test, nodes, recurse = true) {
|
|
|
3408
3409
|
* @returns Whether a tree of nodes contains at least one node passing the test.
|
|
3409
3410
|
*/
|
|
3410
3411
|
function existsOne(test, nodes) {
|
|
3411
|
-
return
|
|
3412
|
-
(
|
|
3412
|
+
return nodes.some((checked) => isTag(checked) &&
|
|
3413
|
+
(test(checked) || existsOne(test, checked.children)));
|
|
3413
3414
|
}
|
|
3414
3415
|
/**
|
|
3415
3416
|
* Search an array of nodes and their children for elements passing a test function.
|
|
@@ -3423,7 +3424,7 @@ function existsOne(test, nodes) {
|
|
|
3423
3424
|
*/
|
|
3424
3425
|
function findAll(test, nodes) {
|
|
3425
3426
|
const result = [];
|
|
3426
|
-
const nodeStack = [
|
|
3427
|
+
const nodeStack = [nodes];
|
|
3427
3428
|
const indexStack = [0];
|
|
3428
3429
|
for (;;) {
|
|
3429
3430
|
if (indexStack[0] >= nodeStack[0].length) {
|
|
@@ -3437,9 +3438,11 @@ function findAll(test, nodes) {
|
|
|
3437
3438
|
continue;
|
|
3438
3439
|
}
|
|
3439
3440
|
const elem = nodeStack[0][indexStack[0]++];
|
|
3440
|
-
if (isTag(elem)
|
|
3441
|
+
if (!isTag(elem))
|
|
3442
|
+
continue;
|
|
3443
|
+
if (test(elem))
|
|
3441
3444
|
result.push(elem);
|
|
3442
|
-
if (
|
|
3445
|
+
if (elem.children.length > 0) {
|
|
3443
3446
|
indexStack.unshift(0);
|
|
3444
3447
|
nodeStack.unshift(elem.children);
|
|
3445
3448
|
}
|
|
@@ -3569,19 +3572,6 @@ function getElementById(id, nodes, recurse = true) {
|
|
|
3569
3572
|
function getElementsByTagName(tagName, nodes, recurse = true, limit = Infinity) {
|
|
3570
3573
|
return filter$1(Checks["tag_name"](tagName), nodes, recurse, limit);
|
|
3571
3574
|
}
|
|
3572
|
-
/**
|
|
3573
|
-
* Returns all nodes with the supplied `className`.
|
|
3574
|
-
*
|
|
3575
|
-
* @category Legacy Query Functions
|
|
3576
|
-
* @param className Class name to search for.
|
|
3577
|
-
* @param nodes Nodes to search through.
|
|
3578
|
-
* @param recurse Also consider child nodes.
|
|
3579
|
-
* @param limit Maximum number of nodes to return.
|
|
3580
|
-
* @returns All nodes with the supplied `className`.
|
|
3581
|
-
*/
|
|
3582
|
-
function getElementsByClassName(className, nodes, recurse = true, limit = Infinity) {
|
|
3583
|
-
return filter$1(getAttribCheck("class", className), nodes, recurse, limit);
|
|
3584
|
-
}
|
|
3585
3575
|
/**
|
|
3586
3576
|
* Returns all nodes with the supplied `type`.
|
|
3587
3577
|
*
|
|
@@ -3949,7 +3939,6 @@ const index = /*#__PURE__*/Object.freeze({
|
|
|
3949
3939
|
getElements: getElements,
|
|
3950
3940
|
getElementById: getElementById,
|
|
3951
3941
|
getElementsByTagName: getElementsByTagName,
|
|
3952
|
-
getElementsByClassName: getElementsByClassName,
|
|
3953
3942
|
getElementsByTagType: getElementsByTagType,
|
|
3954
3943
|
removeSubsets: removeSubsets,
|
|
3955
3944
|
get DocumentPosition () { return DocumentPosition; },
|
|
@@ -5260,12 +5249,9 @@ class Node$4 {
|
|
|
5260
5249
|
if (opts.index) {
|
|
5261
5250
|
pos = this.positionInside(opts.index);
|
|
5262
5251
|
} else if (opts.word) {
|
|
5263
|
-
let
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
let stringRepresentation = inputString.slice(
|
|
5267
|
-
sourceOffset(inputString, this.source.start),
|
|
5268
|
-
sourceOffset(inputString, this.source.end)
|
|
5252
|
+
let stringRepresentation = this.source.input.css.slice(
|
|
5253
|
+
sourceOffset(this.source.input.css, this.source.start),
|
|
5254
|
+
sourceOffset(this.source.input.css, this.source.end)
|
|
5269
5255
|
);
|
|
5270
5256
|
let index = stringRepresentation.indexOf(opts.word);
|
|
5271
5257
|
if (index !== -1) pos = this.positionInside(index);
|
|
@@ -5276,14 +5262,11 @@ class Node$4 {
|
|
|
5276
5262
|
positionInside(index) {
|
|
5277
5263
|
let column = this.source.start.column;
|
|
5278
5264
|
let line = this.source.start.line;
|
|
5279
|
-
let
|
|
5280
|
-
? this.source.input.document
|
|
5281
|
-
: this.source.input.css;
|
|
5282
|
-
let offset = sourceOffset(inputString, this.source.start);
|
|
5265
|
+
let offset = sourceOffset(this.source.input.css, this.source.start);
|
|
5283
5266
|
let end = offset + index;
|
|
5284
5267
|
|
|
5285
5268
|
for (let i = offset; i < end; i++) {
|
|
5286
|
-
if (
|
|
5269
|
+
if (this.source.input.css[i] === '\n') {
|
|
5287
5270
|
column = 1;
|
|
5288
5271
|
line += 1;
|
|
5289
5272
|
} else {
|
|
@@ -5316,12 +5299,9 @@ class Node$4 {
|
|
|
5316
5299
|
};
|
|
5317
5300
|
|
|
5318
5301
|
if (opts.word) {
|
|
5319
|
-
let
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
let stringRepresentation = inputString.slice(
|
|
5323
|
-
sourceOffset(inputString, this.source.start),
|
|
5324
|
-
sourceOffset(inputString, this.source.end)
|
|
5302
|
+
let stringRepresentation = this.source.input.css.slice(
|
|
5303
|
+
sourceOffset(this.source.input.css, this.source.start),
|
|
5304
|
+
sourceOffset(this.source.input.css, this.source.end)
|
|
5325
5305
|
);
|
|
5326
5306
|
let index = stringRepresentation.indexOf(opts.word);
|
|
5327
5307
|
if (index !== -1) {
|
|
@@ -6020,34 +6000,22 @@ Document$3.registerProcessor = dependant => {
|
|
|
6020
6000
|
var document = Document$3;
|
|
6021
6001
|
Document$3.default = Document$3;
|
|
6022
6002
|
|
|
6023
|
-
// This alphabet uses `A-Za-z0-9_-` symbols.
|
|
6024
|
-
// The order of characters is optimized for better gzip and brotli compression.
|
|
6025
|
-
// References to the same file (works both for gzip and brotli):
|
|
6026
|
-
// `'use`, `andom`, and `rict'`
|
|
6027
|
-
// References to the brotli default dictionary:
|
|
6028
|
-
// `-26T`, `1983`, `40px`, `75px`, `bush`, `jack`, `mind`, `very`, and `wolf`
|
|
6029
6003
|
let urlAlphabet =
|
|
6030
6004
|
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
6031
|
-
|
|
6032
6005
|
let customAlphabet = (alphabet, defaultSize = 21) => {
|
|
6033
6006
|
return (size = defaultSize) => {
|
|
6034
6007
|
let id = '';
|
|
6035
|
-
|
|
6036
|
-
let i = size | 0;
|
|
6008
|
+
let i = size;
|
|
6037
6009
|
while (i--) {
|
|
6038
|
-
// `| 0` is more compact and faster than `Math.floor()`.
|
|
6039
6010
|
id += alphabet[(Math.random() * alphabet.length) | 0];
|
|
6040
6011
|
}
|
|
6041
6012
|
return id
|
|
6042
6013
|
}
|
|
6043
6014
|
};
|
|
6044
|
-
|
|
6045
6015
|
let nanoid$1 = (size = 21) => {
|
|
6046
6016
|
let id = '';
|
|
6047
|
-
|
|
6048
|
-
let i = size | 0;
|
|
6017
|
+
let i = size;
|
|
6049
6018
|
while (i--) {
|
|
6050
|
-
// `| 0` is more compact and faster than `Math.floor()`.
|
|
6051
6019
|
id += urlAlphabet[(Math.random() * 64) | 0];
|
|
6052
6020
|
}
|
|
6053
6021
|
return id
|
|
@@ -6237,9 +6205,6 @@ class Input$4 {
|
|
|
6237
6205
|
this.hasBOM = false;
|
|
6238
6206
|
}
|
|
6239
6207
|
|
|
6240
|
-
this.document = this.css;
|
|
6241
|
-
if (opts.document) this.document = opts.document.toString();
|
|
6242
|
-
|
|
6243
6208
|
if (opts.from) {
|
|
6244
6209
|
if (
|
|
6245
6210
|
!pathAvailable$1 ||
|
|
@@ -7629,8 +7594,6 @@ class Parser$1 {
|
|
|
7629
7594
|
if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {
|
|
7630
7595
|
prev.raws.ownSemicolon = this.spaces;
|
|
7631
7596
|
this.spaces = '';
|
|
7632
|
-
prev.source.end = this.getPosition(token[2]);
|
|
7633
|
-
prev.source.end.offset += prev.raws.ownSemicolon.length;
|
|
7634
7597
|
}
|
|
7635
7598
|
}
|
|
7636
7599
|
}
|
|
@@ -8641,7 +8604,7 @@ let Root$1 = root;
|
|
|
8641
8604
|
|
|
8642
8605
|
class Processor$1 {
|
|
8643
8606
|
constructor(plugins = []) {
|
|
8644
|
-
this.version = '8.
|
|
8607
|
+
this.version = '8.4.49';
|
|
8645
8608
|
this.plugins = this.normalize(plugins);
|
|
8646
8609
|
}
|
|
8647
8610
|
|
|
@@ -9068,15 +9031,6 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
9068
9031
|
if (skip) {
|
|
9069
9032
|
if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {
|
|
9070
9033
|
// We want the contents but not this tag
|
|
9071
|
-
if (frame.innerText && !hasText) {
|
|
9072
|
-
const escaped = escapeHtml(frame.innerText);
|
|
9073
|
-
if (options.textFilter) {
|
|
9074
|
-
result += options.textFilter(escaped, name);
|
|
9075
|
-
} else {
|
|
9076
|
-
result += escapeHtml(frame.innerText);
|
|
9077
|
-
}
|
|
9078
|
-
addedText = true;
|
|
9079
|
-
}
|
|
9080
9034
|
return;
|
|
9081
9035
|
}
|
|
9082
9036
|
tempResult = result;
|
|
@@ -9729,23 +9683,20 @@ const CustomContentSectionStyle0 = customContentSectionCss;
|
|
|
9729
9683
|
const CustomContentSection = class {
|
|
9730
9684
|
constructor(hostRef) {
|
|
9731
9685
|
index$2.registerInstance(this, hostRef);
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
*/
|
|
9686
|
+
this.customContent = undefined;
|
|
9687
|
+
this.repeaterContent = undefined;
|
|
9735
9688
|
this.navigateViaEvent = false;
|
|
9736
|
-
/**
|
|
9737
|
-
* Post Message event to be sent on navigation via Event
|
|
9738
|
-
*/
|
|
9739
9689
|
this.postMessageEvent = '';
|
|
9740
9690
|
}
|
|
9741
9691
|
render() {
|
|
9742
9692
|
const clean = sanitizeHtml$1(this.customContent, {
|
|
9743
|
-
allowedTags: sanitizeHtml$1.defaults.allowedTags.concat(['img']),
|
|
9693
|
+
allowedTags: sanitizeHtml$1.defaults.allowedTags.concat(['img', 'a']),
|
|
9744
9694
|
allowedAttributes: {
|
|
9745
|
-
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading']
|
|
9695
|
+
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading'],
|
|
9696
|
+
a: ['href', 'target', 'rel']
|
|
9746
9697
|
}
|
|
9747
9698
|
});
|
|
9748
|
-
return index$2.h("div", { key: '
|
|
9699
|
+
return index$2.h("div", { key: '7cfcf732fff969c5bcd0b08a4b921ae3592732b3', class: "CustomContentSectionContainer" }, index$2.h("div", { key: 'c5cf9a5ada78c792ebb778d3d3084e0b0b938ed4', class: "CustomContentSectionWrapper" }, index$2.h("div", { key: 'abc8184b4eb9c97e0261bec4baebfb7e272cd3bb', class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? index$2.h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
|
|
9749
9700
|
}
|
|
9750
9701
|
};
|
|
9751
9702
|
CustomContentSection.style = CustomContentSectionStyle0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d85e54c5.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* custom rules for component types
|
|
@@ -176,7 +176,7 @@ const normalizeRepeaterContent = (data) => {
|
|
|
176
176
|
isExternalLink: 'isExternalLink',
|
|
177
177
|
image: 'paymentMethodImage',
|
|
178
178
|
title: 'paymentTitle',
|
|
179
|
-
url: '
|
|
179
|
+
url: 'paymentMethodUrl',
|
|
180
180
|
target: 'target'
|
|
181
181
|
},
|
|
182
182
|
sponsors: {
|
|
@@ -213,85 +213,91 @@ const normalizeRepeaterContent = (data) => {
|
|
|
213
213
|
return repeaterResponse;
|
|
214
214
|
};
|
|
215
215
|
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
/**
|
|
217
|
+
* @name setClientStyling
|
|
218
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
219
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
220
|
+
* @param {string} clientStyling The style content
|
|
221
|
+
*/
|
|
222
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
223
|
+
if (stylingContainer) {
|
|
224
|
+
const sheet = document.createElement('style');
|
|
225
|
+
sheet.innerHTML = clientStyling;
|
|
226
|
+
stylingContainer.appendChild(sheet);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @name setClientStylingURL
|
|
232
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
233
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
234
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
235
|
+
*/
|
|
236
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
237
|
+
const url = new URL(clientStylingUrl);
|
|
238
|
+
|
|
239
|
+
fetch(url.href)
|
|
240
|
+
.then((res) => res.text())
|
|
241
|
+
.then((data) => {
|
|
242
|
+
const cssFile = document.createElement('style');
|
|
243
|
+
cssFile.innerHTML = data;
|
|
244
|
+
if (stylingContainer) {
|
|
245
|
+
stylingContainer.appendChild(cssFile);
|
|
246
|
+
}
|
|
247
|
+
})
|
|
248
|
+
.catch((err) => {
|
|
249
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
250
|
+
});
|
|
251
|
+
}
|
|
218
252
|
|
|
219
|
-
|
|
220
|
-
|
|
253
|
+
/**
|
|
254
|
+
* @name setStreamLibrary
|
|
255
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
256
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
257
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
258
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
259
|
+
*/
|
|
260
|
+
function setStreamStyling(stylingContainer, domain, subscription) {
|
|
261
|
+
if (window.emMessageBus) {
|
|
262
|
+
const sheet = document.createElement('style');
|
|
221
263
|
|
|
222
|
-
|
|
223
|
-
|
|
264
|
+
window.emMessageBus.subscribe(domain, (data) => {
|
|
265
|
+
sheet.innerHTML = data;
|
|
266
|
+
if (stylingContainer) {
|
|
267
|
+
stylingContainer.appendChild(sheet);
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
224
272
|
|
|
225
|
-
const
|
|
226
|
-
const
|
|
273
|
+
const demoFooterCss = ":host {\n display: block;\n}\n\n/* $-background-primary: #14202d; */\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: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n padding: 15px 20px 0;\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.FooterGrid {\n background-color: var(--emw--footer-color-bg, var(--emw--color-background, #0E1511));\n display: grid;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: \"one\" \"two\" \"three\" \"four\" \"five\" \"six\" \"seven\";\n}\n\n.FooterSectionContainer1 {\n position: relative;\n grid-area: one;\n}\n\n.FooterSectionContainer2 {\n position: relative;\n grid-area: two;\n}\n\n.FooterSectionContainer3 {\n position: relative;\n grid-area: three;\n}\n\n.FooterSectionContainer4 {\n position: relative;\n grid-area: four;\n}\n\n.FooterSectionContainer5 {\n grid-area: five;\n}\n\n.FooterSectionContainer6 {\n padding-top: 22px;\n grid-area: six;\n}\n\n.FooterSectionContainer7 {\n grid-area: seven;\n}\n\n/* // remove paddings */\n.FooterSectionContainer7 div {\n padding: 0;\n}\n\n@container (max-width: 750px) {\n .FooterSectionContainer3:after,\n .FooterSectionContainer2:after {\n position: absolute;\n content: \"\";\n height: 1px;\n width: 90%;\n background-color: var(--emw--color-gray-100, #444);\n }\n .FooterSectionContainer5 {\n grid-area: five;\n background-color: var(--emw--color-background-secondary, #060706);\n padding: 30px 0;\n font-size: var(--emw--font-size-medium, 16px);\n min-height: var(--emw--size-medium-plus, 100px);\n justify-self: center;\n }\n}\n/* // STYLES FOR TABLET / DESKTOP */\n@container (min-width: 750px) {\n .FooterGrid {\n background: var(--emw--footer-color-bg, var(--emw--color-background, #0E1511));\n display: grid;\n border-top: 5px solid var(--emw--footer-color-primary, var(--emw--color-primary, #22B04E));\n grid-template-rows: repeat(5, auto);\n grid-template-columns: 1fr 1fr 1fr 1fr;\n grid-template-areas: \"one two three four\" \"five five five five\" \"six six six six\" \"seven seven seven seven\";\n }\n .FooterSectionContainer1 {\n padding: 30px 40px;\n grid-area: one;\n background: var(--emw--color-background, #000000);\n }\n .FooterSectionContainer2 {\n grid-area: two;\n min-height: var(--emw--size-4x-medium, 500px);\n }\n .FooterSectionContainer3 {\n grid-area: three;\n }\n .FooterSectionContainer4 {\n grid-area: four;\n }\n .FooterSectionContainer5 {\n grid-area: five;\n background-color: var(--emw--color-background-secondary, #091217);\n padding: var(--emw--spacing-x-large, 30px) 0;\n font-size: var(--emw--font-size-medium, 16px);\n min-height: var(--emw--size-medium-plus, 100px);\n }\n .FooterSectionContainer6 {\n grid-area: six;\n padding: 0;\n }\n .FooterSectionContainer7 {\n grid-area: seven;\n padding: 0;\n }\n /* // remove paddings */\n .FooterSectionContainer5 .CustomContentSectionWrapper {\n padding: 0;\n }\n .FooterSectionContainer5 .CustomContentSectionWrapper div {\n display: flex;\n flex-direction: left;\n align-items: center;\n padding-left: var(--emw--spacing-large, 20px);\n }\n .FooterSectionContainer5 .CustomContentSectionWrapper div p {\n margin: var(--emw--spacing-2x-small, 5px);\n text-align: center;\n }\n .FooterSectionContainer6 .CustomContentSectionWrapper div p {\n text-align: center;\n }\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n .FooterSectionContainer7 .CustomContentSectionWrapper {\n padding: 0;\n padding-bottom: var(--emw--spacing-large, 22px);\n font-size: var(--emw--font-size-small, 14px);\n }\n}";
|
|
274
|
+
const GeneralFooterTemplateStyle0 = demoFooterCss;
|
|
227
275
|
|
|
228
276
|
const GeneralFooterTemplate = class {
|
|
229
277
|
constructor(hostRef) {
|
|
230
278
|
index.registerInstance(this, hostRef);
|
|
279
|
+
this.platform = getDevicePlatform();
|
|
231
280
|
/**
|
|
232
|
-
*
|
|
281
|
+
* Host element
|
|
233
282
|
*/
|
|
283
|
+
this.MANDATORY_FIELDS = ['endpoint', 'language', 'sections'];
|
|
284
|
+
this.language = undefined;
|
|
285
|
+
this.sections = undefined;
|
|
286
|
+
this.endpoint = undefined;
|
|
234
287
|
this.env = 'stage';
|
|
235
|
-
/**
|
|
236
|
-
* User roles
|
|
237
|
-
*/
|
|
238
288
|
this.userRoles = 'everyone';
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
289
|
+
this.userid = undefined;
|
|
290
|
+
this.session = undefined;
|
|
291
|
+
this.baseUrl = undefined;
|
|
242
292
|
this.navigateViaEvent = 'false';
|
|
243
|
-
/**
|
|
244
|
-
* Post Message event to be sent on navigation via Event
|
|
245
|
-
*/
|
|
246
293
|
this.postMessageEvent = 'NavigateTo';
|
|
247
|
-
/**
|
|
248
|
-
* custom styling by string content
|
|
249
|
-
*/
|
|
250
294
|
this.clientStyling = '';
|
|
251
|
-
/**
|
|
252
|
-
* custom styling by href
|
|
253
|
-
*/
|
|
254
295
|
this.clientStylingUrl = '';
|
|
255
|
-
/**
|
|
256
|
-
* custom translation by href
|
|
257
|
-
*/
|
|
258
296
|
this.translationUrl = '';
|
|
259
|
-
/**
|
|
260
|
-
* clockformat
|
|
261
|
-
*/
|
|
262
297
|
this.clockFormat = 'HH:MM:ss';
|
|
263
|
-
/**
|
|
264
|
-
* configurable time zone
|
|
265
|
-
*/
|
|
266
298
|
this.timeZone = '';
|
|
267
|
-
|
|
268
|
-
* wether or not styling appends should be disallowed
|
|
269
|
-
*/
|
|
299
|
+
this.mbSource = undefined;
|
|
270
300
|
this.hasErrors = false;
|
|
271
|
-
this.stylingAppends = false;
|
|
272
|
-
this.platform = getDevicePlatform();
|
|
273
|
-
/**
|
|
274
|
-
* Host element
|
|
275
|
-
*/
|
|
276
|
-
this.MANDATORY_FIELDS = ['endpoint', 'language', 'sections'];
|
|
277
|
-
this.setClientStyling = () => {
|
|
278
|
-
let sheet = document.createElement('style');
|
|
279
|
-
sheet.innerHTML = this.clientStyling;
|
|
280
|
-
this.stylingContainer.prepend(sheet);
|
|
281
|
-
};
|
|
282
|
-
this.setClientStylingURL = () => {
|
|
283
|
-
let url = new URL(this.clientStylingUrl);
|
|
284
|
-
let cssFile = document.createElement('style');
|
|
285
|
-
fetch(url.href)
|
|
286
|
-
.then((res) => res.text())
|
|
287
|
-
.then((data) => {
|
|
288
|
-
cssFile.innerHTML = data;
|
|
289
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
290
|
-
})
|
|
291
|
-
.catch((err) => {
|
|
292
|
-
console.log('error ', err);
|
|
293
|
-
});
|
|
294
|
-
};
|
|
295
301
|
}
|
|
296
302
|
validateMandatoryFields() {
|
|
297
303
|
this.MANDATORY_FIELDS.forEach((field) => {
|
|
@@ -319,16 +325,19 @@ const GeneralFooterTemplate = class {
|
|
|
319
325
|
}
|
|
320
326
|
});
|
|
321
327
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
328
|
+
disconnectedCallback() {
|
|
329
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
330
|
+
}
|
|
331
|
+
componentDidLoad() {
|
|
332
|
+
if (window.emMessageBus != undefined) {
|
|
333
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
325
336
|
if (this.clientStyling)
|
|
326
|
-
this.
|
|
337
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
327
338
|
if (this.clientStylingUrl)
|
|
328
|
-
this.
|
|
329
|
-
this.stylingAppends = true;
|
|
339
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
330
340
|
}
|
|
331
|
-
// end custom styling area
|
|
332
341
|
}
|
|
333
342
|
render() {
|
|
334
343
|
if (this.hasErrors) {
|
|
@@ -345,6 +354,6 @@ const GeneralFooterTemplate = class {
|
|
|
345
354
|
}
|
|
346
355
|
}
|
|
347
356
|
};
|
|
348
|
-
GeneralFooterTemplate.style = GeneralFooterTemplateStyle0
|
|
357
|
+
GeneralFooterTemplate.style = GeneralFooterTemplateStyle0;
|
|
349
358
|
|
|
350
359
|
exports.general_footer_template = GeneralFooterTemplate;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d85e54c5.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-footer-template.cjs.js', document.baseURI).href));
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["custom-clock.cjs",[[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.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"],"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"],"
|
|
22
|
+
return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["custom-clock.cjs",[[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.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"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"mbSource":[513,"mb-source"],"hasErrors":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d85e54c5.js');
|
|
6
6
|
|
|
7
7
|
const imageListCss = ".sc-image-list-h {\n display: block;\n margin: 0;\n padding: 0;\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}";
|
|
8
8
|
const ImageListStyle0 = imageListCss;
|
|
@@ -10,17 +10,12 @@ const ImageListStyle0 = imageListCss;
|
|
|
10
10
|
const ImageList = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
/**
|
|
14
|
-
* If this is true it will emit an event at the moment the content with url its clicked
|
|
15
|
-
*/
|
|
16
|
-
this.navigateViaEvent = false;
|
|
17
|
-
/**
|
|
18
|
-
* Post Message event to be sent on navigation via event
|
|
19
|
-
*/
|
|
20
|
-
this.postMessageEvent = '';
|
|
21
13
|
this.navigateLink = (url, target, externalLink) => {
|
|
22
14
|
window.postMessage({ type: this.postMessageEvent, path: url, url, target, externalLink }, window.location.href);
|
|
23
15
|
};
|
|
16
|
+
this.repeaterContent = undefined;
|
|
17
|
+
this.navigateViaEvent = false;
|
|
18
|
+
this.postMessageEvent = '';
|
|
24
19
|
}
|
|
25
20
|
render() {
|
|
26
21
|
var _a, _b, _c;
|