@everymatrix/general-footer-template 1.54.12 → 1.56.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 +1 -1
- package/dist/cjs/custom-content-section.cjs.entry.js +112 -111
- package/dist/cjs/general-footer-template.cjs.entry.js +69 -40
- package/dist/cjs/general-footer-template.cjs.js +2 -2
- package/dist/cjs/image-list.cjs.entry.js +1 -1
- package/dist/cjs/{index-10cb8e8c.js → index-c1afe75b.js} +1 -4
- package/dist/cjs/link-section-list.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/custom-content-section/custom-content-section.js +4 -3
- package/dist/collection/components/general-footer-template/demo-footer.css +1 -2
- package/dist/collection/components/general-footer-template/general-footer-template.js +33 -33
- package/dist/collection/components/link-section-list/link-section-list.js +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/esm/custom-clock.entry.js +1 -1
- package/dist/esm/custom-content-section.entry.js +112 -111
- package/dist/esm/general-footer-template.entry.js +69 -40
- package/dist/esm/general-footer-template.js +3 -3
- package/dist/esm/image-list.entry.js +1 -1
- package/dist/esm/{index-e2977b84.js → index-732f640c.js} +1 -4
- package/dist/esm/link-section-list.entry.js +2 -2
- 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-5d1fe559.js → p-1fc2e24a.js} +2 -2
- package/dist/general-footer-template/{p-ec9d9aab.entry.js → p-3eda45d5.entry.js} +1 -1
- package/dist/general-footer-template/{p-cb29a35c.entry.js → p-55524eed.entry.js} +1 -1
- package/dist/general-footer-template/p-a4b44512.entry.js +1 -0
- package/dist/general-footer-template/{p-48b95d9a.entry.js → p-a8c0f5a0.entry.js} +2 -2
- package/dist/general-footer-template/p-dd7ffd49.entry.js +1 -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-c646816c.entry.js +0 -1
|
@@ -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-c1afe75b.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-0a7b82d9.js');
|
|
7
7
|
|
|
8
8
|
const DEFAULT_LANGUAGE = 'en';
|
|
@@ -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-c1afe75b.js');
|
|
6
6
|
const _commonjsHelpers = require('./_commonjsHelpers-0a7b82d9.js');
|
|
7
7
|
|
|
8
8
|
var decode = {};
|
|
@@ -5114,6 +5114,10 @@ function sourceOffset(inputCSS, position) {
|
|
|
5114
5114
|
}
|
|
5115
5115
|
|
|
5116
5116
|
class Node$4 {
|
|
5117
|
+
get proxyOf() {
|
|
5118
|
+
return this
|
|
5119
|
+
}
|
|
5120
|
+
|
|
5117
5121
|
constructor(defaults = {}) {
|
|
5118
5122
|
this.raws = {};
|
|
5119
5123
|
this[isClean$2] = false;
|
|
@@ -5475,10 +5479,6 @@ class Node$4 {
|
|
|
5475
5479
|
for (let i in opts) data[i] = opts[i];
|
|
5476
5480
|
return result.warn(text, data)
|
|
5477
5481
|
}
|
|
5478
|
-
|
|
5479
|
-
get proxyOf() {
|
|
5480
|
-
return this
|
|
5481
|
-
}
|
|
5482
5482
|
}
|
|
5483
5483
|
|
|
5484
5484
|
var node_1 = Node$4;
|
|
@@ -5499,6 +5499,10 @@ Comment$4.default = Comment$4;
|
|
|
5499
5499
|
let Node$2 = node_1;
|
|
5500
5500
|
|
|
5501
5501
|
class Declaration$4 extends Node$2 {
|
|
5502
|
+
get variable() {
|
|
5503
|
+
return this.prop.startsWith('--') || this.prop[0] === '$'
|
|
5504
|
+
}
|
|
5505
|
+
|
|
5502
5506
|
constructor(defaults) {
|
|
5503
5507
|
if (
|
|
5504
5508
|
defaults &&
|
|
@@ -5510,10 +5514,6 @@ class Declaration$4 extends Node$2 {
|
|
|
5510
5514
|
super(defaults);
|
|
5511
5515
|
this.type = 'decl';
|
|
5512
5516
|
}
|
|
5513
|
-
|
|
5514
|
-
get variable() {
|
|
5515
|
-
return this.prop.startsWith('--') || this.prop[0] === '$'
|
|
5516
|
-
}
|
|
5517
5517
|
}
|
|
5518
5518
|
|
|
5519
5519
|
var declaration = Declaration$4;
|
|
@@ -5544,6 +5544,16 @@ function markTreeDirty(node) {
|
|
|
5544
5544
|
}
|
|
5545
5545
|
|
|
5546
5546
|
class Container$7 extends Node$1 {
|
|
5547
|
+
get first() {
|
|
5548
|
+
if (!this.proxyOf.nodes) return undefined
|
|
5549
|
+
return this.proxyOf.nodes[0]
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5552
|
+
get last() {
|
|
5553
|
+
if (!this.proxyOf.nodes) return undefined
|
|
5554
|
+
return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5547
5557
|
append(...children) {
|
|
5548
5558
|
for (let child of children) {
|
|
5549
5559
|
let nodes = this.normalize(child, this.last);
|
|
@@ -5910,16 +5920,6 @@ class Container$7 extends Node$1 {
|
|
|
5910
5920
|
}
|
|
5911
5921
|
})
|
|
5912
5922
|
}
|
|
5913
|
-
|
|
5914
|
-
get first() {
|
|
5915
|
-
if (!this.proxyOf.nodes) return undefined
|
|
5916
|
-
return this.proxyOf.nodes[0]
|
|
5917
|
-
}
|
|
5918
|
-
|
|
5919
|
-
get last() {
|
|
5920
|
-
if (!this.proxyOf.nodes) return undefined
|
|
5921
|
-
return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]
|
|
5922
|
-
}
|
|
5923
5923
|
}
|
|
5924
5924
|
|
|
5925
5925
|
Container$7.registerParse = dependant => {
|
|
@@ -6219,6 +6219,10 @@ let sourceMapAvailable$1 = Boolean(SourceMapConsumer$1 && SourceMapGenerator$1);
|
|
|
6219
6219
|
let pathAvailable$1 = Boolean(resolve$1 && isAbsolute);
|
|
6220
6220
|
|
|
6221
6221
|
class Input$4 {
|
|
6222
|
+
get from() {
|
|
6223
|
+
return this.file || this.id
|
|
6224
|
+
}
|
|
6225
|
+
|
|
6222
6226
|
constructor(css, opts = {}) {
|
|
6223
6227
|
if (
|
|
6224
6228
|
css === null ||
|
|
@@ -6441,10 +6445,6 @@ class Input$4 {
|
|
|
6441
6445
|
}
|
|
6442
6446
|
return json
|
|
6443
6447
|
}
|
|
6444
|
-
|
|
6445
|
-
get from() {
|
|
6446
|
-
return this.file || this.id
|
|
6447
|
-
}
|
|
6448
6448
|
}
|
|
6449
6449
|
|
|
6450
6450
|
var input = Input$4;
|
|
@@ -6575,12 +6575,6 @@ let Container$3 = container;
|
|
|
6575
6575
|
let list$1 = list_1;
|
|
6576
6576
|
|
|
6577
6577
|
class Rule$3 extends Container$3 {
|
|
6578
|
-
constructor(defaults) {
|
|
6579
|
-
super(defaults);
|
|
6580
|
-
this.type = 'rule';
|
|
6581
|
-
if (!this.nodes) this.nodes = [];
|
|
6582
|
-
}
|
|
6583
|
-
|
|
6584
6578
|
get selectors() {
|
|
6585
6579
|
return list$1.comma(this.selector)
|
|
6586
6580
|
}
|
|
@@ -6590,6 +6584,12 @@ class Rule$3 extends Container$3 {
|
|
|
6590
6584
|
let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen');
|
|
6591
6585
|
this.selector = values.join(sep);
|
|
6592
6586
|
}
|
|
6587
|
+
|
|
6588
|
+
constructor(defaults) {
|
|
6589
|
+
super(defaults);
|
|
6590
|
+
this.type = 'rule';
|
|
6591
|
+
if (!this.nodes) this.nodes = [];
|
|
6592
|
+
}
|
|
6593
6593
|
}
|
|
6594
6594
|
|
|
6595
6595
|
var rule = Rule$3;
|
|
@@ -7875,7 +7875,7 @@ class Parser$1 {
|
|
|
7875
7875
|
|
|
7876
7876
|
unknownWord(tokens) {
|
|
7877
7877
|
throw this.input.error(
|
|
7878
|
-
'Unknown word',
|
|
7878
|
+
'Unknown word ' + tokens[0][1],
|
|
7879
7879
|
{ offset: tokens[0][2] },
|
|
7880
7880
|
{ offset: tokens[0][2] + tokens[0][1].length }
|
|
7881
7881
|
)
|
|
@@ -7952,6 +7952,10 @@ Warning$2.default = Warning$2;
|
|
|
7952
7952
|
let Warning$1 = warning;
|
|
7953
7953
|
|
|
7954
7954
|
class Result$3 {
|
|
7955
|
+
get content() {
|
|
7956
|
+
return this.css
|
|
7957
|
+
}
|
|
7958
|
+
|
|
7955
7959
|
constructor(processor, root, opts) {
|
|
7956
7960
|
this.processor = processor;
|
|
7957
7961
|
this.messages = [];
|
|
@@ -7981,10 +7985,6 @@ class Result$3 {
|
|
|
7981
7985
|
warnings() {
|
|
7982
7986
|
return this.messages.filter(i => i.type === 'warning')
|
|
7983
7987
|
}
|
|
7984
|
-
|
|
7985
|
-
get content() {
|
|
7986
|
-
return this.css
|
|
7987
|
-
}
|
|
7988
7988
|
}
|
|
7989
7989
|
|
|
7990
7990
|
var result = Result$3;
|
|
@@ -8094,6 +8094,38 @@ function cleanMarks(node) {
|
|
|
8094
8094
|
let postcss$1 = {};
|
|
8095
8095
|
|
|
8096
8096
|
class LazyResult$2 {
|
|
8097
|
+
get content() {
|
|
8098
|
+
return this.stringify().content
|
|
8099
|
+
}
|
|
8100
|
+
|
|
8101
|
+
get css() {
|
|
8102
|
+
return this.stringify().css
|
|
8103
|
+
}
|
|
8104
|
+
|
|
8105
|
+
get map() {
|
|
8106
|
+
return this.stringify().map
|
|
8107
|
+
}
|
|
8108
|
+
|
|
8109
|
+
get messages() {
|
|
8110
|
+
return this.sync().messages
|
|
8111
|
+
}
|
|
8112
|
+
|
|
8113
|
+
get opts() {
|
|
8114
|
+
return this.result.opts
|
|
8115
|
+
}
|
|
8116
|
+
|
|
8117
|
+
get processor() {
|
|
8118
|
+
return this.result.processor
|
|
8119
|
+
}
|
|
8120
|
+
|
|
8121
|
+
get root() {
|
|
8122
|
+
return this.sync().root
|
|
8123
|
+
}
|
|
8124
|
+
|
|
8125
|
+
get [Symbol.toStringTag]() {
|
|
8126
|
+
return 'LazyResult'
|
|
8127
|
+
}
|
|
8128
|
+
|
|
8097
8129
|
constructor(processor, css, opts) {
|
|
8098
8130
|
this.stringified = false;
|
|
8099
8131
|
this.processed = false;
|
|
@@ -8463,21 +8495,38 @@ class LazyResult$2 {
|
|
|
8463
8495
|
warnings() {
|
|
8464
8496
|
return this.sync().warnings()
|
|
8465
8497
|
}
|
|
8498
|
+
}
|
|
8499
|
+
|
|
8500
|
+
LazyResult$2.registerPostcss = dependant => {
|
|
8501
|
+
postcss$1 = dependant;
|
|
8502
|
+
};
|
|
8503
|
+
|
|
8504
|
+
var lazyResult = LazyResult$2;
|
|
8505
|
+
LazyResult$2.default = LazyResult$2;
|
|
8506
|
+
|
|
8507
|
+
Root$2.registerLazyResult(LazyResult$2);
|
|
8508
|
+
Document$2.registerLazyResult(LazyResult$2);
|
|
8509
|
+
|
|
8510
|
+
let MapGenerator = mapGenerator;
|
|
8511
|
+
let parse$1 = parse_1;
|
|
8512
|
+
const Result$1 = result;
|
|
8513
|
+
let stringify$1 = stringify_1;
|
|
8466
8514
|
|
|
8515
|
+
class NoWorkResult$1 {
|
|
8467
8516
|
get content() {
|
|
8468
|
-
return this.
|
|
8517
|
+
return this.result.css
|
|
8469
8518
|
}
|
|
8470
8519
|
|
|
8471
8520
|
get css() {
|
|
8472
|
-
return this.
|
|
8521
|
+
return this.result.css
|
|
8473
8522
|
}
|
|
8474
8523
|
|
|
8475
8524
|
get map() {
|
|
8476
|
-
return this.
|
|
8525
|
+
return this.result.map
|
|
8477
8526
|
}
|
|
8478
8527
|
|
|
8479
8528
|
get messages() {
|
|
8480
|
-
return
|
|
8529
|
+
return []
|
|
8481
8530
|
}
|
|
8482
8531
|
|
|
8483
8532
|
get opts() {
|
|
@@ -8489,30 +8538,31 @@ class LazyResult$2 {
|
|
|
8489
8538
|
}
|
|
8490
8539
|
|
|
8491
8540
|
get root() {
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
get [Symbol.toStringTag]() {
|
|
8496
|
-
return 'LazyResult'
|
|
8497
|
-
}
|
|
8498
|
-
}
|
|
8541
|
+
if (this._root) {
|
|
8542
|
+
return this._root
|
|
8543
|
+
}
|
|
8499
8544
|
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
};
|
|
8545
|
+
let root;
|
|
8546
|
+
let parser = parse$1;
|
|
8503
8547
|
|
|
8504
|
-
|
|
8505
|
-
|
|
8548
|
+
try {
|
|
8549
|
+
root = parser(this._css, this._opts);
|
|
8550
|
+
} catch (error) {
|
|
8551
|
+
this.error = error;
|
|
8552
|
+
}
|
|
8506
8553
|
|
|
8507
|
-
|
|
8508
|
-
|
|
8554
|
+
if (this.error) {
|
|
8555
|
+
throw this.error
|
|
8556
|
+
} else {
|
|
8557
|
+
this._root = root;
|
|
8558
|
+
return root
|
|
8559
|
+
}
|
|
8560
|
+
}
|
|
8509
8561
|
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
let stringify$1 = stringify_1;
|
|
8562
|
+
get [Symbol.toStringTag]() {
|
|
8563
|
+
return 'NoWorkResult'
|
|
8564
|
+
}
|
|
8514
8565
|
|
|
8515
|
-
class NoWorkResult$1 {
|
|
8516
8566
|
constructor(processor, css, opts) {
|
|
8517
8567
|
css = css.toString();
|
|
8518
8568
|
this.stringified = false;
|
|
@@ -8579,56 +8629,6 @@ class NoWorkResult$1 {
|
|
|
8579
8629
|
warnings() {
|
|
8580
8630
|
return []
|
|
8581
8631
|
}
|
|
8582
|
-
|
|
8583
|
-
get content() {
|
|
8584
|
-
return this.result.css
|
|
8585
|
-
}
|
|
8586
|
-
|
|
8587
|
-
get css() {
|
|
8588
|
-
return this.result.css
|
|
8589
|
-
}
|
|
8590
|
-
|
|
8591
|
-
get map() {
|
|
8592
|
-
return this.result.map
|
|
8593
|
-
}
|
|
8594
|
-
|
|
8595
|
-
get messages() {
|
|
8596
|
-
return []
|
|
8597
|
-
}
|
|
8598
|
-
|
|
8599
|
-
get opts() {
|
|
8600
|
-
return this.result.opts
|
|
8601
|
-
}
|
|
8602
|
-
|
|
8603
|
-
get processor() {
|
|
8604
|
-
return this.result.processor
|
|
8605
|
-
}
|
|
8606
|
-
|
|
8607
|
-
get root() {
|
|
8608
|
-
if (this._root) {
|
|
8609
|
-
return this._root
|
|
8610
|
-
}
|
|
8611
|
-
|
|
8612
|
-
let root;
|
|
8613
|
-
let parser = parse$1;
|
|
8614
|
-
|
|
8615
|
-
try {
|
|
8616
|
-
root = parser(this._css, this._opts);
|
|
8617
|
-
} catch (error) {
|
|
8618
|
-
this.error = error;
|
|
8619
|
-
}
|
|
8620
|
-
|
|
8621
|
-
if (this.error) {
|
|
8622
|
-
throw this.error
|
|
8623
|
-
} else {
|
|
8624
|
-
this._root = root;
|
|
8625
|
-
return root
|
|
8626
|
-
}
|
|
8627
|
-
}
|
|
8628
|
-
|
|
8629
|
-
get [Symbol.toStringTag]() {
|
|
8630
|
-
return 'NoWorkResult'
|
|
8631
|
-
}
|
|
8632
8632
|
}
|
|
8633
8633
|
|
|
8634
8634
|
var noWorkResult = NoWorkResult$1;
|
|
@@ -8641,7 +8641,7 @@ let Root$1 = root;
|
|
|
8641
8641
|
|
|
8642
8642
|
class Processor$1 {
|
|
8643
8643
|
constructor(plugins = []) {
|
|
8644
|
-
this.version = '8.5.
|
|
8644
|
+
this.version = '8.5.3';
|
|
8645
8645
|
this.plugins = this.normalize(plugins);
|
|
8646
8646
|
}
|
|
8647
8647
|
|
|
@@ -9740,12 +9740,13 @@ const CustomContentSection = class {
|
|
|
9740
9740
|
}
|
|
9741
9741
|
render() {
|
|
9742
9742
|
const clean = sanitizeHtml$1(this.customContent, {
|
|
9743
|
-
allowedTags: sanitizeHtml$1.defaults.allowedTags.concat(['img']),
|
|
9743
|
+
allowedTags: sanitizeHtml$1.defaults.allowedTags.concat(['img', 'a']),
|
|
9744
9744
|
allowedAttributes: {
|
|
9745
|
-
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading']
|
|
9745
|
+
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading'],
|
|
9746
|
+
a: ['href', 'target', 'rel']
|
|
9746
9747
|
}
|
|
9747
9748
|
});
|
|
9748
|
-
return index$2.h("div", { key: '
|
|
9749
|
+
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
9750
|
}
|
|
9750
9751
|
};
|
|
9751
9752
|
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-c1afe75b.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,17 +213,65 @@ 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
|
+
}
|
|
218
229
|
|
|
219
|
-
|
|
220
|
-
|
|
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
|
+
}
|
|
252
|
+
|
|
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) {
|
|
@@ -264,34 +312,12 @@ const GeneralFooterTemplate = class {
|
|
|
264
312
|
* configurable time zone
|
|
265
313
|
*/
|
|
266
314
|
this.timeZone = '';
|
|
267
|
-
/**
|
|
268
|
-
* wether or not styling appends should be disallowed
|
|
269
|
-
*/
|
|
270
315
|
this.hasErrors = false;
|
|
271
|
-
this.stylingAppends = false;
|
|
272
316
|
this.platform = getDevicePlatform();
|
|
273
317
|
/**
|
|
274
318
|
* Host element
|
|
275
319
|
*/
|
|
276
320
|
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
321
|
}
|
|
296
322
|
validateMandatoryFields() {
|
|
297
323
|
this.MANDATORY_FIELDS.forEach((field) => {
|
|
@@ -319,16 +345,19 @@ const GeneralFooterTemplate = class {
|
|
|
319
345
|
}
|
|
320
346
|
});
|
|
321
347
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
348
|
+
disconnectedCallback() {
|
|
349
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
350
|
+
}
|
|
351
|
+
componentDidLoad() {
|
|
352
|
+
if (window.emMessageBus != undefined) {
|
|
353
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
325
356
|
if (this.clientStyling)
|
|
326
|
-
this.
|
|
357
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
327
358
|
if (this.clientStylingUrl)
|
|
328
|
-
this.
|
|
329
|
-
this.stylingAppends = true;
|
|
359
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
330
360
|
}
|
|
331
|
-
// end custom styling area
|
|
332
361
|
}
|
|
333
362
|
render() {
|
|
334
363
|
if (this.hasErrors) {
|
|
@@ -345,6 +374,6 @@ const GeneralFooterTemplate = class {
|
|
|
345
374
|
}
|
|
346
375
|
}
|
|
347
376
|
};
|
|
348
|
-
GeneralFooterTemplate.style = GeneralFooterTemplateStyle0
|
|
377
|
+
GeneralFooterTemplate.style = GeneralFooterTemplateStyle0;
|
|
349
378
|
|
|
350
379
|
exports.general_footer_template = GeneralFooterTemplate;
|
|
@@ -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-c1afe75b.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -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-c1afe75b.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;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'general-footer-template';
|
|
24
|
-
const BUILD = /* general-footer-template */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
24
|
+
const BUILD = /* general-footer-template */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -962,9 +962,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
962
962
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
963
963
|
const instance = hostRef.$lazyInstance$ ;
|
|
964
964
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
965
|
-
{
|
|
966
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
967
|
-
}
|
|
968
965
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
969
966
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
970
967
|
{
|
|
@@ -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-c1afe75b.js');
|
|
6
6
|
|
|
7
7
|
const linkSectionListCss = ":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n padding-left: 25px;\n position: relative;\n}\nul li::before {\n content: \"\";\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 8px;\n height: 8px;\n background-color: var(--emw--footer-color-primary, var(--emw--color-primary, #22B04E));\n border-radius: 50%;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\nul li .LinkSectionListLinkText img.LinkSectionIcon {\n position: relative;\n height: 25px;\n padding: 0 5px;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}";
|
|
8
8
|
const LinkSectionListStyle0 = linkSectionListCss;
|
|
@@ -51,7 +51,7 @@ const LinkSectionList = class {
|
|
|
51
51
|
}
|
|
52
52
|
return obj;
|
|
53
53
|
}, []);
|
|
54
|
-
return index.h("div", { class: "LinkSectionListContainer" }, index.h("div", { class: "LinkSectionListWrapper" }, index.h("h2", { class: "LinkSectionListTitle" },
|
|
54
|
+
return index.h("div", { class: "LinkSectionListContainer" }, index.h("div", { class: "LinkSectionListWrapper" }, this.repeaterContent.categoryTitle && index.h("h2", { class: "LinkSectionListTitle" }, this.repeaterContent.categoryTitle), linkSections.map(category => index.h("ul", null, category.categoryTitle && index.h("p", null, category.categoryTitle), category.links.map(link => index.h("li", { class: "LinkSectionListLink", key: link.linkName }, this.navigateViaEvent === true ? (index.h("span", null, link.linkName && link.icon ? (index.h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, index.h("img", { class: "LinkSectionIcon", src: link.icon, alt: "icon" }), index.h("span", null, link.linkName, " "))) :
|
|
55
55
|
link.linkName ?
|
|
56
56
|
index.h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, index.h("span", null, link.linkName, " "))
|
|
57
57
|
:
|