@everymatrix/general-about-us 1.36.1 → 1.37.2

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.
@@ -94,7 +94,9 @@ const getDevicePlatform = () => {
94
94
  }
95
95
  };
96
96
 
97
- const generalAboutUsCss = ":host {\n display: block;\n font-family: inherit;\n}\n\np {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\nbutton {\n font-family: inherit;\n}\n\n.AboutUsError .ErrorInfo {\n color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));\n}\n\n.AboutUsWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n}\n\n@keyframes fadeInAnimation {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ItemImage {\n flex: auto;\n max-width: 50%;\n height: 300px;\n border-radius: 5px;\n}\n\n.ItemDetails {\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n border-radius: 5px;\n margin: 0 20px;\n}\n\n.Title {\n font-size: 24px;\n font-weight: 700;\n -webkit-text-fill-color: transparent;\n color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));\n background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.Description {\n font-size: 16px;\n color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));\n}\n\nbutton {\n width: 160px;\n padding: 10px 15px;\n background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n font-size: 16px;\n border: 2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));\n border-radius: 5px;\n line-height: 24px;\n transition: all 1s;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\nbutton:hover {\n background: linear-gradient(to bottom, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n transition: all 0.5s;\n transform: translateY(-10px);\n}\nbutton button::after {\n content: \"\";\n display: block;\n background-color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n mask-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yMS44ODMgMTJsLTcuNTI3IDYuMjM1LjY0NC43NjUgOS03LjUyMS05LTcuNDc5LS42NDUuNzY0IDcuNTI5IDYuMjM2aC0yMS44ODR2MWgyMS44ODN6Ii8+PC9zdmc+\");\n width: 24px;\n height: 24px;\n margin: 0 10px;\n}\n\n@container (max-width: 475px) {\n .AboutUsWrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-wrap: wrap;\n width: 100%;\n gap: 20px;\n padding-bottom: 20px;\n background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n\n .ItemImage {\n flex: auto;\n width: 100%;\n max-width: unset;\n flex-grow: 1;\n }\n\n .ItemDetails {\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n border-radius: 5px;\n gap: 20px;\n margin: 0 20px;\n }\n\n .Description {\n text-align: center;\n }\n}";
97
+ const chevronSvg = 'data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyBoZWlnaHQ9IjY0cHgiIHdpZHRoPSI2NHB4IiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCAxODUuMzQzIDE4NS4zNDMiIHhtbDpzcGFjZT0icHJlc2VydmUiIGZpbGw9IiNENUYzREYiIHN0cm9rZT0iI0Q1RjNERiI+Cg08ZyBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiIHN0cm9rZS13aWR0aD0iMCIvPgoNPGcgaWQ9IlNWR1JlcG9fdHJhY2VyQ2FycmllciIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cg08ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxnPiA8Zz4gPHBhdGggc3R5bGU9ImZpbGw6I2VjZjlmMDsiIGQ9Ik01MS43MDcsMTg1LjM0M2MtMi43NDEsMC01LjQ5My0xLjA0NC03LjU5My0zLjE0OWMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTgxLDAtMTUuMTc1IGw3NC4zNTItNzQuMzQ3TDQ0LjExNCwxOC4zMmMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTg3LDAtMTUuMTc1YzQuMTk0LTQuMTk0LDEwLjk4Ny00LjE5NCwxNS4xOCwwbDgxLjkzNCw4MS45MzQgYzQuMTk0LDQuMTk0LDQuMTk0LDEwLjk4NywwLDE1LjE3NWwtODEuOTM0LDgxLjkzOUM1Ny4yMDEsMTg0LjI5Myw1NC40NTQsMTg1LjM0Myw1MS43MDcsMTg1LjM0M3oiLz4gPC9nPiA8L2c+IDwvZz4KDTwvc3ZnPg==';
98
+
99
+ const generalAboutUsCss = ":host {\n display: block;\n font-family: inherit;\n}\n\np {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\nbutton {\n font-family: inherit;\n}\n\n.AboutUsError .ErrorInfo {\n color: var(--emw--color-error, #ed0909);\n}\n\n.AboutUsWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: var(--emw--color-background, #000000);\n width: 100%;\n border-radius: var(--emw--border-radius-large, 15px);\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n}\n\n@keyframes fadeInAnimation {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ItemImage {\n position: relative;\n width: 100%;\n max-width: 100%;\n height: 300px;\n border-radius: var(--emw--border-radius-large, 20px);\n background: var(--emw--color-background, black);\n}\n.ItemImage .ForegroundImage {\n z-index: 3;\n pointer-events: none;\n opacity: 1;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: opacity 0.5s ease, filter 0.5s ease;\n border-radius: var(--emw--border-radius-large, 20px);\n}\n.ItemImage .BackgroundImage {\n position: absolute;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: opacity 0.5s ease, filter 0.5s ease;\n border-radius: var(--emw--border-radius-large, 20px);\n z-index: 2;\n top: 20px;\n filter: blur(16px);\n opacity: 0.5;\n transform: scale(1.01);\n}\n.ItemImage .ItemDetails > div {\n position: relative;\n height: auto;\n max-width: 70%;\n display: flex;\n border-radius: var(--emw--border-radius-medium, 5px);\n margin: 0 20px;\n padding: 24px 20px;\n z-index: 10;\n overflow: hidden;\n align-items: center;\n}\n.ItemImage .Title {\n font-size: var(--emw--font-size-2x-large, 32px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-typography, #D5F3DF);\n}\n.ItemImage .Title .FirstWord {\n font-size: var(--emw--font-size-2x-large, 36px);\n text-transform: uppercase;\n letter-spacing: 1px;\n background: var(--emw--color-primary, #1EC450);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n.ItemImage .Description {\n font-size: var(--emw--font-size-small-plus, 16px);\n font-weight: var(--emw--font-weight-normal, 400);\n color: var(--emw--color-typography, #D5F3DF);\n}\n.ItemImage button {\n position: relative;\n width: 160px;\n padding: 10px 15px;\n color: var(--emw--button-text-color, #D5F3DF);\n font-size: var(--emw--font-size-large, 20px);\n border: var(--emw--button-border, 3px solid) var(--emw--button-border-color, #063B17);\n border-radius: var(--emw--button-border-radius, 50px);\n line-height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n z-index: 20;\n margin-left: 32px;\n animation: ButtonEffect 4s linear infinite;\n background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));\n background-size: 300% 100%;\n}\n.ItemImage button:hover {\n opacity: 0.8;\n}\n.ItemImage button img.Chevron {\n position: relative;\n height: var(--emw--size-standard, 16px);\n margin-left: var(--emw--spacing-small-minus, 10px);\n}\n@keyframes ButtonEffect {\n 0% {\n background-position: 0% 50%;\n }\n 33% {\n background-position: 100% 50%;\n }\n 66% {\n background-position: 200% 50%;\n }\n 100% {\n background-position: 300% 50%;\n }\n}\n\n@container (max-width: 475px) {\n .AboutUsWrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: var(--emw--spacing-small-minus, 10px);\n max-width: 100%;\n background-color: var(--emw--color-background, #000000);\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n .AboutUsWrapper .ItemImage {\n flex: auto;\n width: 100%;\n flex-grow: 1;\n margin: 0;\n }\n .AboutUsWrapper .ItemDetails > div {\n flex: 1 1 0;\n display: flex;\n border-radius: var(--emw--border-radius-medium, 5px);\n gap: var(--emw--spacing-2x-small, 4px);\n padding: 20px 10px;\n align-items: center;\n }\n .AboutUsWrapper .Description {\n text-align: left;\n font-size: var(--emw--font-size-small, 14px);\n font-weight: var(--emw--font-weight-normal, 400);\n }\n .AboutUsWrapper button {\n padding-bottom: 10px;\n line-height: 15px;\n padding: 10px;\n }\n}";
98
100
 
99
101
  const GeneralAboutUs = class {
100
102
  constructor(hostRef) {
@@ -167,6 +169,21 @@ const GeneralAboutUs = class {
167
169
  console.log('error ', err);
168
170
  });
169
171
  };
172
+ // end custom styling area
173
+ this.formatTitle = (title, language) => {
174
+ let firstWord, restOfTitle;
175
+ // Check for common languages that do not use space - here: Chinese, Japanese, Thai
176
+ if (['zh', 'ja', 'th'].includes(language)) {
177
+ firstWord = title.substring(0, 1);
178
+ restOfTitle = title.substring(1);
179
+ }
180
+ else {
181
+ const words = title.split(' ');
182
+ firstWord = words.shift();
183
+ restOfTitle = words.join(' ');
184
+ }
185
+ return index.h("div", { class: "Title" }, index.h("span", { class: "FirstWord" }, firstWord), "\u00A0", restOfTitle);
186
+ };
170
187
  }
171
188
  watchEndpoint(newValue, oldValue) {
172
189
  if (newValue && newValue != oldValue && this.cmsEndpoint) {
@@ -219,17 +236,20 @@ const GeneralAboutUs = class {
219
236
  this.limitStylingAppends = true;
220
237
  }
221
238
  }
222
- // end custom styling area
223
239
  render() {
224
- var _a, _b, _c, _d;
240
+ var _a, _b, _c, _d, _e;
225
241
  if (this.hasErrors) {
226
242
  return (index.h("div", { class: "AboutUsError" }, index.h("div", { class: "ErrorInfo" }, translate('error', this.language))));
227
243
  }
228
244
  if (!this.isLoading) {
229
- return (index.h("div", { ref: el => this.stylingContainer = el }, index.h("div", { class: "AboutUsWrapper" }, index.h("div", { class: "ItemImage", style: { background: `url(${this.setImage(this.aboutUsData.images)}) no-repeat center center / cover` } }), index.h("div", { class: "ItemDetails" }, index.h("div", { class: "Title", innerHTML: (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.title }), index.h("div", { class: "Description", innerHTML: (_b = this.aboutUsData) === null || _b === void 0 ? void 0 : _b.description }), index.h("button", { class: "Button", onClick: () => {
245
+ return (index.h("div", { ref: el => this.stylingContainer = el }, index.h("div", { class: "AboutUsWrapper" }, index.h("div", { class: "ItemImage" }, index.h("div", { class: "ForegroundImage", style: { background: `linear-gradient(to left, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%),
246
+ linear-gradient(to bottom left, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%),
247
+ linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6) 100%),
248
+ url(${this.setImage((_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.images)}) no-repeat center center / cover` } }), index.h("img", { class: "BackgroundImage", src: this.setImage(this.aboutUsData.images), alt: "image" }), index.h("div", { class: "ItemDetails" }, this.formatTitle((_b = this.aboutUsData) === null || _b === void 0 ? void 0 : _b.title, this.language), index.h("div", { class: "Description", innerHTML: (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.description }), index.h("button", { class: "Button", onClick: () => {
230
249
  var _a, _b, _c, _d, _e;
231
250
  return this.handleClick((_b = (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.buttonUrl, (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.targetType, (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.locations, (_e = this.aboutUsData) === null || _e === void 0 ? void 0 : _e.externalLink);
232
- } }, (_d = (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.button) === null || _d === void 0 ? void 0 : _d.buttonText)))));
251
+ } }, (_e = (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.button) === null || _e === void 0 ? void 0 :
252
+ _e.buttonText, index.h("img", { src: chevronSvg, alt: "right chevron", class: "Chevron" })))))));
233
253
  }
234
254
  }
235
255
  static get watchers() { return {
@@ -14,15 +14,16 @@ button {
14
14
  }
15
15
 
16
16
  .AboutUsError .ErrorInfo {
17
- color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
17
+ color: var(--emw--color-error, #ed0909);
18
18
  }
19
19
 
20
20
  .AboutUsWrapper {
21
21
  display: flex;
22
22
  flex-direction: row;
23
23
  justify-content: space-between;
24
+ background-color: var(--emw--color-background, #000000);
24
25
  width: 100%;
25
- background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));
26
+ border-radius: var(--emw--border-radius-large, 15px);
26
27
  animation: fadeInAnimation ease 1.5s;
27
28
  animation-iteration-count: 1;
28
29
  animation-fill-mode: forwards;
@@ -37,65 +38,110 @@ button {
37
38
  }
38
39
  }
39
40
  .ItemImage {
40
- flex: auto;
41
- max-width: 50%;
41
+ position: relative;
42
+ width: 100%;
43
+ max-width: 100%;
42
44
  height: 300px;
43
- border-radius: 5px;
45
+ border-radius: var(--emw--border-radius-large, 20px);
46
+ background: var(--emw--color-background, black);
44
47
  }
45
-
46
- .ItemDetails {
47
- flex: 1 1 0;
48
+ .ItemImage .ForegroundImage {
49
+ z-index: 3;
50
+ pointer-events: none;
51
+ opacity: 1;
52
+ position: absolute;
53
+ top: 0;
54
+ left: 0;
55
+ width: 100%;
56
+ height: 100%;
57
+ object-fit: cover;
58
+ transition: opacity 0.5s ease, filter 0.5s ease;
59
+ border-radius: var(--emw--border-radius-large, 20px);
60
+ }
61
+ .ItemImage .BackgroundImage {
62
+ position: absolute;
63
+ left: 0;
64
+ width: 100%;
65
+ height: 100%;
66
+ object-fit: cover;
67
+ transition: opacity 0.5s ease, filter 0.5s ease;
68
+ border-radius: var(--emw--border-radius-large, 20px);
69
+ z-index: 2;
70
+ top: 20px;
71
+ filter: blur(16px);
72
+ opacity: 0.5;
73
+ transform: scale(1.01);
74
+ }
75
+ .ItemImage .ItemDetails > div {
76
+ position: relative;
77
+ height: auto;
78
+ max-width: 70%;
48
79
  display: flex;
49
- flex-direction: column;
50
- justify-content: space-around;
51
- border-radius: 5px;
80
+ border-radius: var(--emw--border-radius-medium, 5px);
52
81
  margin: 0 20px;
82
+ padding: 24px 20px;
83
+ z-index: 10;
84
+ overflow: hidden;
85
+ align-items: center;
53
86
  }
54
-
55
- .Title {
56
- font-size: 24px;
57
- font-weight: 700;
58
- -webkit-text-fill-color: transparent;
59
- color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));
60
- background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));
87
+ .ItemImage .Title {
88
+ font-size: var(--emw--font-size-2x-large, 32px);
89
+ font-weight: var(--emw--font-weight-bold, 700);
90
+ color: var(--emw--color-typography, #D5F3DF);
91
+ }
92
+ .ItemImage .Title .FirstWord {
93
+ font-size: var(--emw--font-size-2x-large, 36px);
94
+ text-transform: uppercase;
95
+ letter-spacing: 1px;
96
+ background: var(--emw--color-primary, #1EC450);
61
97
  -webkit-background-clip: text;
62
98
  -webkit-text-fill-color: transparent;
63
99
  }
64
-
65
- .Description {
66
- font-size: 16px;
67
- color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));
100
+ .ItemImage .Description {
101
+ font-size: var(--emw--font-size-small-plus, 16px);
102
+ font-weight: var(--emw--font-weight-normal, 400);
103
+ color: var(--emw--color-typography, #D5F3DF);
68
104
  }
69
-
70
- button {
105
+ .ItemImage button {
106
+ position: relative;
71
107
  width: 160px;
72
108
  padding: 10px 15px;
73
- background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));
74
- color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));
75
- font-size: 16px;
76
- border: 2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));
77
- border-radius: 5px;
109
+ color: var(--emw--button-text-color, #D5F3DF);
110
+ font-size: var(--emw--font-size-large, 20px);
111
+ border: var(--emw--button-border, 3px solid) var(--emw--button-border-color, #063B17);
112
+ border-radius: var(--emw--button-border-radius, 50px);
78
113
  line-height: 24px;
79
- transition: all 1s;
80
114
  display: flex;
81
115
  justify-content: center;
82
116
  align-items: center;
83
117
  cursor: pointer;
118
+ z-index: 20;
119
+ margin-left: 32px;
120
+ animation: ButtonEffect 4s linear infinite;
121
+ background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));
122
+ background-size: 300% 100%;
84
123
  }
85
- button:hover {
86
- background: linear-gradient(to bottom, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));
87
- color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));
88
- transition: all 0.5s;
89
- transform: translateY(-10px);
124
+ .ItemImage button:hover {
125
+ opacity: 0.8;
90
126
  }
91
- button button::after {
92
- content: "";
93
- display: block;
94
- background-color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));
95
- mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yMS44ODMgMTJsLTcuNTI3IDYuMjM1LjY0NC43NjUgOS03LjUyMS05LTcuNDc5LS42NDUuNzY0IDcuNTI5IDYuMjM2aC0yMS44ODR2MWgyMS44ODN6Ii8+PC9zdmc+");
96
- width: 24px;
97
- height: 24px;
98
- margin: 0 10px;
127
+ .ItemImage button img.Chevron {
128
+ position: relative;
129
+ height: var(--emw--size-standard, 16px);
130
+ margin-left: var(--emw--spacing-small-minus, 10px);
131
+ }
132
+ @keyframes ButtonEffect {
133
+ 0% {
134
+ background-position: 0% 50%;
135
+ }
136
+ 33% {
137
+ background-position: 100% 50%;
138
+ }
139
+ 66% {
140
+ background-position: 200% 50%;
141
+ }
142
+ 100% {
143
+ background-position: 300% 50%;
144
+ }
99
145
  }
100
146
 
101
147
  @container (max-width: 475px) {
@@ -104,34 +150,35 @@ button button::after {
104
150
  flex-direction: column;
105
151
  justify-content: space-between;
106
152
  flex-wrap: wrap;
107
- width: 100%;
108
- gap: 20px;
109
- padding-bottom: 20px;
110
- background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));
153
+ gap: var(--emw--spacing-small-minus, 10px);
154
+ max-width: 100%;
155
+ background-color: var(--emw--color-background, #000000);
111
156
  animation: fadeInAnimation ease 1.5s;
112
157
  animation-iteration-count: 1;
113
158
  animation-fill-mode: forwards;
114
159
  }
115
-
116
- .ItemImage {
160
+ .AboutUsWrapper .ItemImage {
117
161
  flex: auto;
118
162
  width: 100%;
119
- max-width: unset;
120
163
  flex-grow: 1;
164
+ margin: 0;
121
165
  }
122
-
123
- .ItemDetails {
166
+ .AboutUsWrapper .ItemDetails > div {
124
167
  flex: 1 1 0;
125
168
  display: flex;
126
- flex-direction: column;
127
- justify-content: space-around;
169
+ border-radius: var(--emw--border-radius-medium, 5px);
170
+ gap: var(--emw--spacing-2x-small, 4px);
171
+ padding: 20px 10px;
128
172
  align-items: center;
129
- border-radius: 5px;
130
- gap: 20px;
131
- margin: 0 20px;
132
173
  }
133
-
134
- .Description {
135
- text-align: center;
174
+ .AboutUsWrapper .Description {
175
+ text-align: left;
176
+ font-size: var(--emw--font-size-small, 14px);
177
+ font-weight: var(--emw--font-weight-normal, 400);
178
+ }
179
+ .AboutUsWrapper button {
180
+ padding-bottom: 10px;
181
+ line-height: 15px;
182
+ padding: 10px;
136
183
  }
137
184
  }
@@ -1,6 +1,7 @@
1
1
  import { Component, Prop, State, Watch, h } from '@stencil/core';
2
2
  import { translate } from '../../utils/locale.utils';
3
3
  import { getDeviceCustom, checkDeviceType, getDevicePlatform } from '../../utils/utils';
4
+ import chevronRight from '../../utils/chevron.svg';
4
5
  export class GeneralAboutUs {
5
6
  constructor() {
6
7
  /**
@@ -71,6 +72,24 @@ export class GeneralAboutUs {
71
72
  console.log('error ', err);
72
73
  });
73
74
  };
75
+ // end custom styling area
76
+ this.formatTitle = (title, language) => {
77
+ let firstWord, restOfTitle;
78
+ // Check for common languages that do not use space - here: Chinese, Japanese, Thai
79
+ if (['zh', 'ja', 'th'].includes(language)) {
80
+ firstWord = title.substring(0, 1);
81
+ restOfTitle = title.substring(1);
82
+ }
83
+ else {
84
+ const words = title.split(' ');
85
+ firstWord = words.shift();
86
+ restOfTitle = words.join(' ');
87
+ }
88
+ return h("div", { class: "Title" },
89
+ h("span", { class: "FirstWord" }, firstWord),
90
+ "\u00A0",
91
+ restOfTitle);
92
+ };
74
93
  }
75
94
  watchEndpoint(newValue, oldValue) {
76
95
  if (newValue && newValue != oldValue && this.cmsEndpoint) {
@@ -123,9 +142,8 @@ export class GeneralAboutUs {
123
142
  this.limitStylingAppends = true;
124
143
  }
125
144
  }
126
- // end custom styling area
127
145
  render() {
128
- var _a, _b, _c, _d;
146
+ var _a, _b, _c, _d, _e;
129
147
  if (this.hasErrors) {
130
148
  return (h("div", { class: "AboutUsError" },
131
149
  h("div", { class: "ErrorInfo" }, translate('error', this.language))));
@@ -133,14 +151,21 @@ export class GeneralAboutUs {
133
151
  if (!this.isLoading) {
134
152
  return (h("div", { ref: el => this.stylingContainer = el },
135
153
  h("div", { class: "AboutUsWrapper" },
136
- h("div", { class: "ItemImage", style: { background: `url(${this.setImage(this.aboutUsData.images)}) no-repeat center center / cover` } }),
137
- h("div", { class: "ItemDetails" },
138
- h("div", { class: "Title", innerHTML: (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.title }),
139
- h("div", { class: "Description", innerHTML: (_b = this.aboutUsData) === null || _b === void 0 ? void 0 : _b.description }),
140
- h("button", { class: "Button", onClick: () => {
141
- var _a, _b, _c, _d, _e;
142
- return this.handleClick((_b = (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.buttonUrl, (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.targetType, (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.locations, (_e = this.aboutUsData) === null || _e === void 0 ? void 0 : _e.externalLink);
143
- } }, (_d = (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.button) === null || _d === void 0 ? void 0 : _d.buttonText)))));
154
+ h("div", { class: "ItemImage" },
155
+ h("div", { class: "ForegroundImage", style: { background: `linear-gradient(to left, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%),
156
+ linear-gradient(to bottom left, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%),
157
+ linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6) 100%),
158
+ url(${this.setImage((_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.images)}) no-repeat center center / cover` } }),
159
+ h("img", { class: "BackgroundImage", src: this.setImage(this.aboutUsData.images), alt: "image" }),
160
+ h("div", { class: "ItemDetails" },
161
+ this.formatTitle((_b = this.aboutUsData) === null || _b === void 0 ? void 0 : _b.title, this.language),
162
+ h("div", { class: "Description", innerHTML: (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.description }),
163
+ h("button", { class: "Button", onClick: () => {
164
+ var _a, _b, _c, _d, _e;
165
+ return this.handleClick((_b = (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.buttonUrl, (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.targetType, (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.locations, (_e = this.aboutUsData) === null || _e === void 0 ? void 0 : _e.externalLink);
166
+ } }, (_e = (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.button) === null || _e === void 0 ? void 0 :
167
+ _e.buttonText,
168
+ h("img", { src: chevronRight, alt: "right chevron", class: "Chevron" })))))));
144
169
  }
145
170
  }
146
171
  static get is() { return "general-about-us"; }
@@ -0,0 +1,7 @@
1
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
2
+
3
+ <svg height="64px" width="64px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 185.343 185.343" xml:space="preserve" fill="#D5F3DF" stroke="#D5F3DF">
4
+
5
+
6
+
7
+
@@ -90,7 +90,9 @@ const getDevicePlatform = () => {
90
90
  }
91
91
  };
92
92
 
93
- const generalAboutUsCss = ":host {\n display: block;\n font-family: inherit;\n}\n\np {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\nbutton {\n font-family: inherit;\n}\n\n.AboutUsError .ErrorInfo {\n color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));\n}\n\n.AboutUsWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n}\n\n@keyframes fadeInAnimation {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ItemImage {\n flex: auto;\n max-width: 50%;\n height: 300px;\n border-radius: 5px;\n}\n\n.ItemDetails {\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n border-radius: 5px;\n margin: 0 20px;\n}\n\n.Title {\n font-size: 24px;\n font-weight: 700;\n -webkit-text-fill-color: transparent;\n color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));\n background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.Description {\n font-size: 16px;\n color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));\n}\n\nbutton {\n width: 160px;\n padding: 10px 15px;\n background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n font-size: 16px;\n border: 2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));\n border-radius: 5px;\n line-height: 24px;\n transition: all 1s;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\nbutton:hover {\n background: linear-gradient(to bottom, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n transition: all 0.5s;\n transform: translateY(-10px);\n}\nbutton button::after {\n content: \"\";\n display: block;\n background-color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n mask-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yMS44ODMgMTJsLTcuNTI3IDYuMjM1LjY0NC43NjUgOS03LjUyMS05LTcuNDc5LS42NDUuNzY0IDcuNTI5IDYuMjM2aC0yMS44ODR2MWgyMS44ODN6Ii8+PC9zdmc+\");\n width: 24px;\n height: 24px;\n margin: 0 10px;\n}\n\n@container (max-width: 475px) {\n .AboutUsWrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-wrap: wrap;\n width: 100%;\n gap: 20px;\n padding-bottom: 20px;\n background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n\n .ItemImage {\n flex: auto;\n width: 100%;\n max-width: unset;\n flex-grow: 1;\n }\n\n .ItemDetails {\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n border-radius: 5px;\n gap: 20px;\n margin: 0 20px;\n }\n\n .Description {\n text-align: center;\n }\n}";
93
+ const chevronSvg = 'data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyBoZWlnaHQ9IjY0cHgiIHdpZHRoPSI2NHB4IiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCAxODUuMzQzIDE4NS4zNDMiIHhtbDpzcGFjZT0icHJlc2VydmUiIGZpbGw9IiNENUYzREYiIHN0cm9rZT0iI0Q1RjNERiI+Cg08ZyBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiIHN0cm9rZS13aWR0aD0iMCIvPgoNPGcgaWQ9IlNWR1JlcG9fdHJhY2VyQ2FycmllciIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cg08ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxnPiA8Zz4gPHBhdGggc3R5bGU9ImZpbGw6I2VjZjlmMDsiIGQ9Ik01MS43MDcsMTg1LjM0M2MtMi43NDEsMC01LjQ5My0xLjA0NC03LjU5My0zLjE0OWMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTgxLDAtMTUuMTc1IGw3NC4zNTItNzQuMzQ3TDQ0LjExNCwxOC4zMmMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTg3LDAtMTUuMTc1YzQuMTk0LTQuMTk0LDEwLjk4Ny00LjE5NCwxNS4xOCwwbDgxLjkzNCw4MS45MzQgYzQuMTk0LDQuMTk0LDQuMTk0LDEwLjk4NywwLDE1LjE3NWwtODEuOTM0LDgxLjkzOUM1Ny4yMDEsMTg0LjI5Myw1NC40NTQsMTg1LjM0Myw1MS43MDcsMTg1LjM0M3oiLz4gPC9nPiA8L2c+IDwvZz4KDTwvc3ZnPg==';
94
+
95
+ const generalAboutUsCss = ":host {\n display: block;\n font-family: inherit;\n}\n\np {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\nbutton {\n font-family: inherit;\n}\n\n.AboutUsError .ErrorInfo {\n color: var(--emw--color-error, #ed0909);\n}\n\n.AboutUsWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: var(--emw--color-background, #000000);\n width: 100%;\n border-radius: var(--emw--border-radius-large, 15px);\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n}\n\n@keyframes fadeInAnimation {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ItemImage {\n position: relative;\n width: 100%;\n max-width: 100%;\n height: 300px;\n border-radius: var(--emw--border-radius-large, 20px);\n background: var(--emw--color-background, black);\n}\n.ItemImage .ForegroundImage {\n z-index: 3;\n pointer-events: none;\n opacity: 1;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: opacity 0.5s ease, filter 0.5s ease;\n border-radius: var(--emw--border-radius-large, 20px);\n}\n.ItemImage .BackgroundImage {\n position: absolute;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: opacity 0.5s ease, filter 0.5s ease;\n border-radius: var(--emw--border-radius-large, 20px);\n z-index: 2;\n top: 20px;\n filter: blur(16px);\n opacity: 0.5;\n transform: scale(1.01);\n}\n.ItemImage .ItemDetails > div {\n position: relative;\n height: auto;\n max-width: 70%;\n display: flex;\n border-radius: var(--emw--border-radius-medium, 5px);\n margin: 0 20px;\n padding: 24px 20px;\n z-index: 10;\n overflow: hidden;\n align-items: center;\n}\n.ItemImage .Title {\n font-size: var(--emw--font-size-2x-large, 32px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-typography, #D5F3DF);\n}\n.ItemImage .Title .FirstWord {\n font-size: var(--emw--font-size-2x-large, 36px);\n text-transform: uppercase;\n letter-spacing: 1px;\n background: var(--emw--color-primary, #1EC450);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n.ItemImage .Description {\n font-size: var(--emw--font-size-small-plus, 16px);\n font-weight: var(--emw--font-weight-normal, 400);\n color: var(--emw--color-typography, #D5F3DF);\n}\n.ItemImage button {\n position: relative;\n width: 160px;\n padding: 10px 15px;\n color: var(--emw--button-text-color, #D5F3DF);\n font-size: var(--emw--font-size-large, 20px);\n border: var(--emw--button-border, 3px solid) var(--emw--button-border-color, #063B17);\n border-radius: var(--emw--button-border-radius, 50px);\n line-height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n z-index: 20;\n margin-left: 32px;\n animation: ButtonEffect 4s linear infinite;\n background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));\n background-size: 300% 100%;\n}\n.ItemImage button:hover {\n opacity: 0.8;\n}\n.ItemImage button img.Chevron {\n position: relative;\n height: var(--emw--size-standard, 16px);\n margin-left: var(--emw--spacing-small-minus, 10px);\n}\n@keyframes ButtonEffect {\n 0% {\n background-position: 0% 50%;\n }\n 33% {\n background-position: 100% 50%;\n }\n 66% {\n background-position: 200% 50%;\n }\n 100% {\n background-position: 300% 50%;\n }\n}\n\n@container (max-width: 475px) {\n .AboutUsWrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: var(--emw--spacing-small-minus, 10px);\n max-width: 100%;\n background-color: var(--emw--color-background, #000000);\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n .AboutUsWrapper .ItemImage {\n flex: auto;\n width: 100%;\n flex-grow: 1;\n margin: 0;\n }\n .AboutUsWrapper .ItemDetails > div {\n flex: 1 1 0;\n display: flex;\n border-radius: var(--emw--border-radius-medium, 5px);\n gap: var(--emw--spacing-2x-small, 4px);\n padding: 20px 10px;\n align-items: center;\n }\n .AboutUsWrapper .Description {\n text-align: left;\n font-size: var(--emw--font-size-small, 14px);\n font-weight: var(--emw--font-weight-normal, 400);\n }\n .AboutUsWrapper button {\n padding-bottom: 10px;\n line-height: 15px;\n padding: 10px;\n }\n}";
94
96
 
95
97
  const GeneralAboutUs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
96
98
  constructor() {
@@ -165,6 +167,21 @@ const GeneralAboutUs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
165
167
  console.log('error ', err);
166
168
  });
167
169
  };
170
+ // end custom styling area
171
+ this.formatTitle = (title, language) => {
172
+ let firstWord, restOfTitle;
173
+ // Check for common languages that do not use space - here: Chinese, Japanese, Thai
174
+ if (['zh', 'ja', 'th'].includes(language)) {
175
+ firstWord = title.substring(0, 1);
176
+ restOfTitle = title.substring(1);
177
+ }
178
+ else {
179
+ const words = title.split(' ');
180
+ firstWord = words.shift();
181
+ restOfTitle = words.join(' ');
182
+ }
183
+ return h("div", { class: "Title" }, h("span", { class: "FirstWord" }, firstWord), "\u00A0", restOfTitle);
184
+ };
168
185
  }
169
186
  watchEndpoint(newValue, oldValue) {
170
187
  if (newValue && newValue != oldValue && this.cmsEndpoint) {
@@ -217,17 +234,20 @@ const GeneralAboutUs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
217
234
  this.limitStylingAppends = true;
218
235
  }
219
236
  }
220
- // end custom styling area
221
237
  render() {
222
- var _a, _b, _c, _d;
238
+ var _a, _b, _c, _d, _e;
223
239
  if (this.hasErrors) {
224
240
  return (h("div", { class: "AboutUsError" }, h("div", { class: "ErrorInfo" }, translate('error', this.language))));
225
241
  }
226
242
  if (!this.isLoading) {
227
- return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "AboutUsWrapper" }, h("div", { class: "ItemImage", style: { background: `url(${this.setImage(this.aboutUsData.images)}) no-repeat center center / cover` } }), h("div", { class: "ItemDetails" }, h("div", { class: "Title", innerHTML: (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.title }), h("div", { class: "Description", innerHTML: (_b = this.aboutUsData) === null || _b === void 0 ? void 0 : _b.description }), h("button", { class: "Button", onClick: () => {
243
+ return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "AboutUsWrapper" }, h("div", { class: "ItemImage" }, h("div", { class: "ForegroundImage", style: { background: `linear-gradient(to left, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%),
244
+ linear-gradient(to bottom left, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%),
245
+ linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6) 100%),
246
+ url(${this.setImage((_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.images)}) no-repeat center center / cover` } }), h("img", { class: "BackgroundImage", src: this.setImage(this.aboutUsData.images), alt: "image" }), h("div", { class: "ItemDetails" }, this.formatTitle((_b = this.aboutUsData) === null || _b === void 0 ? void 0 : _b.title, this.language), h("div", { class: "Description", innerHTML: (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.description }), h("button", { class: "Button", onClick: () => {
228
247
  var _a, _b, _c, _d, _e;
229
248
  return this.handleClick((_b = (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.buttonUrl, (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.targetType, (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.locations, (_e = this.aboutUsData) === null || _e === void 0 ? void 0 : _e.externalLink);
230
- } }, (_d = (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.button) === null || _d === void 0 ? void 0 : _d.buttonText)))));
249
+ } }, (_e = (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.button) === null || _e === void 0 ? void 0 :
250
+ _e.buttonText, h("img", { src: chevronSvg, alt: "right chevron", class: "Chevron" })))))));
231
251
  }
232
252
  }
233
253
  static get watchers() { return {
@@ -90,7 +90,9 @@ const getDevicePlatform = () => {
90
90
  }
91
91
  };
92
92
 
93
- const generalAboutUsCss = ":host {\n display: block;\n font-family: inherit;\n}\n\np {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\nbutton {\n font-family: inherit;\n}\n\n.AboutUsError .ErrorInfo {\n color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));\n}\n\n.AboutUsWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n}\n\n@keyframes fadeInAnimation {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ItemImage {\n flex: auto;\n max-width: 50%;\n height: 300px;\n border-radius: 5px;\n}\n\n.ItemDetails {\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n border-radius: 5px;\n margin: 0 20px;\n}\n\n.Title {\n font-size: 24px;\n font-weight: 700;\n -webkit-text-fill-color: transparent;\n color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));\n background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.Description {\n font-size: 16px;\n color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));\n}\n\nbutton {\n width: 160px;\n padding: 10px 15px;\n background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n font-size: 16px;\n border: 2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));\n border-radius: 5px;\n line-height: 24px;\n transition: all 1s;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\nbutton:hover {\n background: linear-gradient(to bottom, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n transition: all 0.5s;\n transform: translateY(-10px);\n}\nbutton button::after {\n content: \"\";\n display: block;\n background-color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n mask-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yMS44ODMgMTJsLTcuNTI3IDYuMjM1LjY0NC43NjUgOS03LjUyMS05LTcuNDc5LS42NDUuNzY0IDcuNTI5IDYuMjM2aC0yMS44ODR2MWgyMS44ODN6Ii8+PC9zdmc+\");\n width: 24px;\n height: 24px;\n margin: 0 10px;\n}\n\n@container (max-width: 475px) {\n .AboutUsWrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-wrap: wrap;\n width: 100%;\n gap: 20px;\n padding-bottom: 20px;\n background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n\n .ItemImage {\n flex: auto;\n width: 100%;\n max-width: unset;\n flex-grow: 1;\n }\n\n .ItemDetails {\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n border-radius: 5px;\n gap: 20px;\n margin: 0 20px;\n }\n\n .Description {\n text-align: center;\n }\n}";
93
+ const chevronSvg = 'data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyBoZWlnaHQ9IjY0cHgiIHdpZHRoPSI2NHB4IiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCAxODUuMzQzIDE4NS4zNDMiIHhtbDpzcGFjZT0icHJlc2VydmUiIGZpbGw9IiNENUYzREYiIHN0cm9rZT0iI0Q1RjNERiI+Cg08ZyBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiIHN0cm9rZS13aWR0aD0iMCIvPgoNPGcgaWQ9IlNWR1JlcG9fdHJhY2VyQ2FycmllciIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cg08ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxnPiA8Zz4gPHBhdGggc3R5bGU9ImZpbGw6I2VjZjlmMDsiIGQ9Ik01MS43MDcsMTg1LjM0M2MtMi43NDEsMC01LjQ5My0xLjA0NC03LjU5My0zLjE0OWMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTgxLDAtMTUuMTc1IGw3NC4zNTItNzQuMzQ3TDQ0LjExNCwxOC4zMmMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTg3LDAtMTUuMTc1YzQuMTk0LTQuMTk0LDEwLjk4Ny00LjE5NCwxNS4xOCwwbDgxLjkzNCw4MS45MzQgYzQuMTk0LDQuMTk0LDQuMTk0LDEwLjk4NywwLDE1LjE3NWwtODEuOTM0LDgxLjkzOUM1Ny4yMDEsMTg0LjI5Myw1NC40NTQsMTg1LjM0Myw1MS43MDcsMTg1LjM0M3oiLz4gPC9nPiA8L2c+IDwvZz4KDTwvc3ZnPg==';
94
+
95
+ const generalAboutUsCss = ":host {\n display: block;\n font-family: inherit;\n}\n\np {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\nbutton {\n font-family: inherit;\n}\n\n.AboutUsError .ErrorInfo {\n color: var(--emw--color-error, #ed0909);\n}\n\n.AboutUsWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: var(--emw--color-background, #000000);\n width: 100%;\n border-radius: var(--emw--border-radius-large, 15px);\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n}\n\n@keyframes fadeInAnimation {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ItemImage {\n position: relative;\n width: 100%;\n max-width: 100%;\n height: 300px;\n border-radius: var(--emw--border-radius-large, 20px);\n background: var(--emw--color-background, black);\n}\n.ItemImage .ForegroundImage {\n z-index: 3;\n pointer-events: none;\n opacity: 1;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: opacity 0.5s ease, filter 0.5s ease;\n border-radius: var(--emw--border-radius-large, 20px);\n}\n.ItemImage .BackgroundImage {\n position: absolute;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: opacity 0.5s ease, filter 0.5s ease;\n border-radius: var(--emw--border-radius-large, 20px);\n z-index: 2;\n top: 20px;\n filter: blur(16px);\n opacity: 0.5;\n transform: scale(1.01);\n}\n.ItemImage .ItemDetails > div {\n position: relative;\n height: auto;\n max-width: 70%;\n display: flex;\n border-radius: var(--emw--border-radius-medium, 5px);\n margin: 0 20px;\n padding: 24px 20px;\n z-index: 10;\n overflow: hidden;\n align-items: center;\n}\n.ItemImage .Title {\n font-size: var(--emw--font-size-2x-large, 32px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-typography, #D5F3DF);\n}\n.ItemImage .Title .FirstWord {\n font-size: var(--emw--font-size-2x-large, 36px);\n text-transform: uppercase;\n letter-spacing: 1px;\n background: var(--emw--color-primary, #1EC450);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n.ItemImage .Description {\n font-size: var(--emw--font-size-small-plus, 16px);\n font-weight: var(--emw--font-weight-normal, 400);\n color: var(--emw--color-typography, #D5F3DF);\n}\n.ItemImage button {\n position: relative;\n width: 160px;\n padding: 10px 15px;\n color: var(--emw--button-text-color, #D5F3DF);\n font-size: var(--emw--font-size-large, 20px);\n border: var(--emw--button-border, 3px solid) var(--emw--button-border-color, #063B17);\n border-radius: var(--emw--button-border-radius, 50px);\n line-height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n z-index: 20;\n margin-left: 32px;\n animation: ButtonEffect 4s linear infinite;\n background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));\n background-size: 300% 100%;\n}\n.ItemImage button:hover {\n opacity: 0.8;\n}\n.ItemImage button img.Chevron {\n position: relative;\n height: var(--emw--size-standard, 16px);\n margin-left: var(--emw--spacing-small-minus, 10px);\n}\n@keyframes ButtonEffect {\n 0% {\n background-position: 0% 50%;\n }\n 33% {\n background-position: 100% 50%;\n }\n 66% {\n background-position: 200% 50%;\n }\n 100% {\n background-position: 300% 50%;\n }\n}\n\n@container (max-width: 475px) {\n .AboutUsWrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: var(--emw--spacing-small-minus, 10px);\n max-width: 100%;\n background-color: var(--emw--color-background, #000000);\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n .AboutUsWrapper .ItemImage {\n flex: auto;\n width: 100%;\n flex-grow: 1;\n margin: 0;\n }\n .AboutUsWrapper .ItemDetails > div {\n flex: 1 1 0;\n display: flex;\n border-radius: var(--emw--border-radius-medium, 5px);\n gap: var(--emw--spacing-2x-small, 4px);\n padding: 20px 10px;\n align-items: center;\n }\n .AboutUsWrapper .Description {\n text-align: left;\n font-size: var(--emw--font-size-small, 14px);\n font-weight: var(--emw--font-weight-normal, 400);\n }\n .AboutUsWrapper button {\n padding-bottom: 10px;\n line-height: 15px;\n padding: 10px;\n }\n}";
94
96
 
95
97
  const GeneralAboutUs = class {
96
98
  constructor(hostRef) {
@@ -163,6 +165,21 @@ const GeneralAboutUs = class {
163
165
  console.log('error ', err);
164
166
  });
165
167
  };
168
+ // end custom styling area
169
+ this.formatTitle = (title, language) => {
170
+ let firstWord, restOfTitle;
171
+ // Check for common languages that do not use space - here: Chinese, Japanese, Thai
172
+ if (['zh', 'ja', 'th'].includes(language)) {
173
+ firstWord = title.substring(0, 1);
174
+ restOfTitle = title.substring(1);
175
+ }
176
+ else {
177
+ const words = title.split(' ');
178
+ firstWord = words.shift();
179
+ restOfTitle = words.join(' ');
180
+ }
181
+ return h("div", { class: "Title" }, h("span", { class: "FirstWord" }, firstWord), "\u00A0", restOfTitle);
182
+ };
166
183
  }
167
184
  watchEndpoint(newValue, oldValue) {
168
185
  if (newValue && newValue != oldValue && this.cmsEndpoint) {
@@ -215,17 +232,20 @@ const GeneralAboutUs = class {
215
232
  this.limitStylingAppends = true;
216
233
  }
217
234
  }
218
- // end custom styling area
219
235
  render() {
220
- var _a, _b, _c, _d;
236
+ var _a, _b, _c, _d, _e;
221
237
  if (this.hasErrors) {
222
238
  return (h("div", { class: "AboutUsError" }, h("div", { class: "ErrorInfo" }, translate('error', this.language))));
223
239
  }
224
240
  if (!this.isLoading) {
225
- return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "AboutUsWrapper" }, h("div", { class: "ItemImage", style: { background: `url(${this.setImage(this.aboutUsData.images)}) no-repeat center center / cover` } }), h("div", { class: "ItemDetails" }, h("div", { class: "Title", innerHTML: (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.title }), h("div", { class: "Description", innerHTML: (_b = this.aboutUsData) === null || _b === void 0 ? void 0 : _b.description }), h("button", { class: "Button", onClick: () => {
241
+ return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "AboutUsWrapper" }, h("div", { class: "ItemImage" }, h("div", { class: "ForegroundImage", style: { background: `linear-gradient(to left, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%),
242
+ linear-gradient(to bottom left, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%),
243
+ linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6) 100%),
244
+ url(${this.setImage((_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.images)}) no-repeat center center / cover` } }), h("img", { class: "BackgroundImage", src: this.setImage(this.aboutUsData.images), alt: "image" }), h("div", { class: "ItemDetails" }, this.formatTitle((_b = this.aboutUsData) === null || _b === void 0 ? void 0 : _b.title, this.language), h("div", { class: "Description", innerHTML: (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.description }), h("button", { class: "Button", onClick: () => {
226
245
  var _a, _b, _c, _d, _e;
227
246
  return this.handleClick((_b = (_a = this.aboutUsData) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.buttonUrl, (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.targetType, (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.locations, (_e = this.aboutUsData) === null || _e === void 0 ? void 0 : _e.externalLink);
228
- } }, (_d = (_c = this.aboutUsData) === null || _c === void 0 ? void 0 : _c.button) === null || _d === void 0 ? void 0 : _d.buttonText)))));
247
+ } }, (_e = (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.button) === null || _e === void 0 ? void 0 :
248
+ _e.buttonText, h("img", { src: chevronSvg, alt: "right chevron", class: "Chevron" })))))));
229
249
  }
230
250
  }
231
251
  static get watchers() { return {
@@ -1 +1 @@
1
- import{p as n,b as e}from"./p-0c90e5ab.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),n(s)})().then((n=>e([["p-4f27291f",[[1,"general-about-us",{cmsEndpoint:[513,"cms-endpoint"],language:[513],userRoles:[513,"user-roles"],cmsEnv:[513,"cms-env"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],hasErrors:[32],isLoading:[32],limitStylingAppends:[32],device:[32]}]]]],n)));
1
+ import{p as n,b as e}from"./p-0c90e5ab.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),n(s)})().then((n=>e([["p-743da1df",[[1,"general-about-us",{cmsEndpoint:[513,"cms-endpoint"],language:[513],userRoles:[513,"user-roles"],cmsEnv:[513,"cms-env"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],hasErrors:[32],isLoading:[32],limitStylingAppends:[32],device:[32]}]]]],n)));
@@ -0,0 +1 @@
1
+ import{r as n,h as t}from"./p-0c90e5ab.js";const e=["ro","en","fr","ar","hu","hr"],i={en:{error:"Error",noResults:"Loading, please wait ..."},hu:{error:"Error",noResults:"Loading, please wait ..."},ro:{error:"Eroare",noResults:"Loading, please wait ..."},fr:{error:"Error",noResults:"Loading, please wait ..."},ar:{error:"خطأ",noResults:"Loading, please wait ..."},hr:{error:"Greška",noResults:"Učitavanje, molimo pričekajte ..."}};const r=class{constructor(e){n(this,e),this.language="en",this.userRoles="everyone",this.cmsEnv="stage",this.clientStyling="",this.clientStylingUrl="",this.hasErrors=!1,this.isLoading=!0,this.limitStylingAppends=!1,this.device="",this.handleClick=(n,t,e,i)=>{window.postMessage({type:"AboutUsClicked",buttonUrl:n,targetType:t,locations:e,externalLink:i||!1},window.location.href),"function"==typeof gtag&&gtag("event","GeneralAboutUs",{context:"AboutUsContent"})},this.setImage=n=>{let t="";switch(this.device=function(){const n=navigator.userAgent.toLowerCase(),t=screen.availWidth,e=screen.availHeight;if(n.includes("iphone"))return"mobile";if(n.includes("android")){if(e>t&&t<800)return"mobile";if(t>e&&e<800)return"tablet"}return"desktop"}(),this.device){case"mobile":t=n.imageMobile;break;case"tablet":t=n.imageTablet;break;case"desktop":t=n.imageDesktop}return t},this.setClientStyling=()=>{let n=document.createElement("style");n.innerHTML=this.clientStyling,this.stylingContainer.prepend(n)},this.setClientStylingURL=()=>{let n=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{t.innerHTML=n,setTimeout((()=>{this.stylingContainer.prepend(t)}),1)})).catch((n=>{console.log("error ",n)}))},this.formatTitle=(n,e)=>{let i,r;if(["zh","ja","th"].includes(e))i=n.substring(0,1),r=n.substring(1);else{const t=n.split(" ");i=t.shift(),r=t.join(" ")}return t("div",{class:"Title"},t("span",{class:"FirstWord"},i)," ",r)}}watchEndpoint(n,t){n&&n!=t&&this.cmsEndpoint&&this.getAboutUs()}componentWillLoad(){if(this.cmsEndpoint&&this.language)return this.getAboutUs()}componentDidLoad(){this.device=function(){const n=navigator.userAgent.toLowerCase();let t="";return t=n.includes("android")||n.includes("iphone")||n.includes("ipad")?function(){const n=screen.availWidth;return n<600?"mobile":n>=600&&n<1100?"tablet":void 0}():"desktop",t}()}getAboutUs(){let n=new URL(`${this.cmsEndpoint}/${this.language}/homepage`);return n.searchParams.append("env",this.cmsEnv),n.searchParams.append("userRoles",this.userRoles),n.searchParams.append("device",(()=>{const n=(()=>{let n=window.navigator.userAgent.toLocaleLowerCase();return n.includes("android/i")?"android":n.includes("iphone/i")?"iPhone":n.includes("ipad/i")||n.includes("ipod/i")?"iPad":"PC"})();if(n)return"PC"===n?"dk":"mtWeb"})()),new Promise(((t,e)=>{this.isLoading=!0,fetch(n.href).then((n=>n.json())).then((n=>{const e=["title","description","images","button","externalLink","targetType","locations"],i=Object.entries(n).filter((([n])=>e.includes(n))).reduce(((n,[t,e])=>(n[t]=e,n)),{});this.aboutUsData=i,t(i)})).catch((n=>{console.error(n),this.hasErrors=!0,e(n)})).finally((()=>{this.isLoading=!1}))}))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){var n,r,o,a,s;return this.hasErrors?t("div",{class:"AboutUsError"},t("div",{class:"ErrorInfo"},(()=>{const n=this.language;return i[void 0!==n&&e.includes(n)?n:"en"].error})())):this.isLoading?void 0:t("div",{ref:n=>this.stylingContainer=n},t("div",{class:"AboutUsWrapper"},t("div",{class:"ItemImage"},t("div",{class:"ForegroundImage",style:{background:`linear-gradient(to left, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%),\n linear-gradient(to bottom left, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%),\n linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6) 100%),\n url(${this.setImage(null===(n=this.aboutUsData)||void 0===n?void 0:n.images)}) no-repeat center center / cover`}}),t("img",{class:"BackgroundImage",src:this.setImage(this.aboutUsData.images),alt:"image"}),t("div",{class:"ItemDetails"},this.formatTitle(null===(r=this.aboutUsData)||void 0===r?void 0:r.title,this.language),t("div",{class:"Description",innerHTML:null===(o=this.aboutUsData)||void 0===o?void 0:o.description}),t("button",{class:"Button",onClick:()=>{var n,t,e,i,r;return this.handleClick(null===(t=null===(n=this.aboutUsData)||void 0===n?void 0:n.button)||void 0===t?void 0:t.buttonUrl,null===(e=this.aboutUsData)||void 0===e?void 0:e.targetType,null===(i=this.aboutUsData)||void 0===i?void 0:i.locations,null===(r=this.aboutUsData)||void 0===r?void 0:r.externalLink)}},null===(s=null===(a=this.aboutUsData)||void 0===a?void 0:a.button)||void 0===s?void 0:s.buttonText,t("img",{src:"data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyBoZWlnaHQ9IjY0cHgiIHdpZHRoPSI2NHB4IiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCAxODUuMzQzIDE4NS4zNDMiIHhtbDpzcGFjZT0icHJlc2VydmUiIGZpbGw9IiNENUYzREYiIHN0cm9rZT0iI0Q1RjNERiI+Cg08ZyBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiIHN0cm9rZS13aWR0aD0iMCIvPgoNPGcgaWQ9IlNWR1JlcG9fdHJhY2VyQ2FycmllciIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cg08ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxnPiA8Zz4gPHBhdGggc3R5bGU9ImZpbGw6I2VjZjlmMDsiIGQ9Ik01MS43MDcsMTg1LjM0M2MtMi43NDEsMC01LjQ5My0xLjA0NC03LjU5My0zLjE0OWMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTgxLDAtMTUuMTc1IGw3NC4zNTItNzQuMzQ3TDQ0LjExNCwxOC4zMmMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTg3LDAtMTUuMTc1YzQuMTk0LTQuMTk0LDEwLjk4Ny00LjE5NCwxNS4xOCwwbDgxLjkzNCw4MS45MzQgYzQuMTk0LDQuMTk0LDQuMTk0LDEwLjk4NywwLDE1LjE3NWwtODEuOTM0LDgxLjkzOUM1Ny4yMDEsMTg0LjI5Myw1NC40NTQsMTg1LjM0Myw1MS43MDcsMTg1LjM0M3oiLz4gPC9nPiA8L2c+IDwvZz4KDTwvc3ZnPg==",alt:"right chevron",class:"Chevron"}))))))}static get watchers(){return{cmsEndpoint:["watchEndpoint"],language:["watchEndpoint"],userRoles:["watchEndpoint"],device:["watchEndpoint"]}}};r.style=":host {\n display: block;\n font-family: inherit;\n}\n\np {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\nbutton {\n font-family: inherit;\n}\n\n.AboutUsError .ErrorInfo {\n color: var(--emw--color-error, #ed0909);\n}\n\n.AboutUsWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background-color: var(--emw--color-background, #000000);\n width: 100%;\n border-radius: var(--emw--border-radius-large, 15px);\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n}\n\n@keyframes fadeInAnimation {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ItemImage {\n position: relative;\n width: 100%;\n max-width: 100%;\n height: 300px;\n border-radius: var(--emw--border-radius-large, 20px);\n background: var(--emw--color-background, black);\n}\n.ItemImage .ForegroundImage {\n z-index: 3;\n pointer-events: none;\n opacity: 1;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: opacity 0.5s ease, filter 0.5s ease;\n border-radius: var(--emw--border-radius-large, 20px);\n}\n.ItemImage .BackgroundImage {\n position: absolute;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: opacity 0.5s ease, filter 0.5s ease;\n border-radius: var(--emw--border-radius-large, 20px);\n z-index: 2;\n top: 20px;\n filter: blur(16px);\n opacity: 0.5;\n transform: scale(1.01);\n}\n.ItemImage .ItemDetails > div {\n position: relative;\n height: auto;\n max-width: 70%;\n display: flex;\n border-radius: var(--emw--border-radius-medium, 5px);\n margin: 0 20px;\n padding: 24px 20px;\n z-index: 10;\n overflow: hidden;\n align-items: center;\n}\n.ItemImage .Title {\n font-size: var(--emw--font-size-2x-large, 32px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-typography, #D5F3DF);\n}\n.ItemImage .Title .FirstWord {\n font-size: var(--emw--font-size-2x-large, 36px);\n text-transform: uppercase;\n letter-spacing: 1px;\n background: var(--emw--color-primary, #1EC450);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n.ItemImage .Description {\n font-size: var(--emw--font-size-small-plus, 16px);\n font-weight: var(--emw--font-weight-normal, 400);\n color: var(--emw--color-typography, #D5F3DF);\n}\n.ItemImage button {\n position: relative;\n width: 160px;\n padding: 10px 15px;\n color: var(--emw--button-text-color, #D5F3DF);\n font-size: var(--emw--font-size-large, 20px);\n border: var(--emw--button-border, 3px solid) var(--emw--button-border-color, #063B17);\n border-radius: var(--emw--button-border-radius, 50px);\n line-height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n z-index: 20;\n margin-left: 32px;\n animation: ButtonEffect 4s linear infinite;\n background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));\n background-size: 300% 100%;\n}\n.ItemImage button:hover {\n opacity: 0.8;\n}\n.ItemImage button img.Chevron {\n position: relative;\n height: var(--emw--size-standard, 16px);\n margin-left: var(--emw--spacing-small-minus, 10px);\n}\n@keyframes ButtonEffect {\n 0% {\n background-position: 0% 50%;\n }\n 33% {\n background-position: 100% 50%;\n }\n 66% {\n background-position: 200% 50%;\n }\n 100% {\n background-position: 300% 50%;\n }\n}\n\n@container (max-width: 475px) {\n .AboutUsWrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: var(--emw--spacing-small-minus, 10px);\n max-width: 100%;\n background-color: var(--emw--color-background, #000000);\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n .AboutUsWrapper .ItemImage {\n flex: auto;\n width: 100%;\n flex-grow: 1;\n margin: 0;\n }\n .AboutUsWrapper .ItemDetails > div {\n flex: 1 1 0;\n display: flex;\n border-radius: var(--emw--border-radius-medium, 5px);\n gap: var(--emw--spacing-2x-small, 4px);\n padding: 20px 10px;\n align-items: center;\n }\n .AboutUsWrapper .Description {\n text-align: left;\n font-size: var(--emw--font-size-small, 14px);\n font-weight: var(--emw--font-weight-normal, 400);\n }\n .AboutUsWrapper button {\n padding-bottom: 10px;\n line-height: 15px;\n padding: 10px;\n }\n}";export{r as general_about_us}
@@ -39,5 +39,6 @@ export declare class GeneralAboutUs {
39
39
  setClientStyling: () => void;
40
40
  setClientStylingURL: () => void;
41
41
  componentDidRender(): void;
42
+ formatTitle: (title: string, language: string) => any;
42
43
  render(): void;
43
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-about-us",
3
- "version": "1.36.1",
3
+ "version": "1.37.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as n,h as e}from"./p-0c90e5ab.js";const t=["ro","en","fr","ar","hu","hr"],o={en:{error:"Error",noResults:"Loading, please wait ..."},hu:{error:"Error",noResults:"Loading, please wait ..."},ro:{error:"Eroare",noResults:"Loading, please wait ..."},fr:{error:"Error",noResults:"Loading, please wait ..."},ar:{error:"خطأ",noResults:"Loading, please wait ..."},hr:{error:"Greška",noResults:"Učitavanje, molimo pričekajte ..."}};const r=class{constructor(e){n(this,e),this.language="en",this.userRoles="everyone",this.cmsEnv="stage",this.clientStyling="",this.clientStylingUrl="",this.hasErrors=!1,this.isLoading=!0,this.limitStylingAppends=!1,this.device="",this.handleClick=(n,e,t,o)=>{window.postMessage({type:"AboutUsClicked",buttonUrl:n,targetType:e,locations:t,externalLink:o||!1},window.location.href),"function"==typeof gtag&&gtag("event","GeneralAboutUs",{context:"AboutUsContent"})},this.setImage=n=>{let e="";switch(this.device=function(){const n=navigator.userAgent.toLowerCase(),e=screen.availWidth,t=screen.availHeight;if(n.includes("iphone"))return"mobile";if(n.includes("android")){if(t>e&&e<800)return"mobile";if(e>t&&t<800)return"tablet"}return"desktop"}(),this.device){case"mobile":e=n.imageMobile;break;case"tablet":e=n.imageTablet;break;case"desktop":e=n.imageDesktop}return e},this.setClientStyling=()=>{let n=document.createElement("style");n.innerHTML=this.clientStyling,this.stylingContainer.prepend(n)},this.setClientStylingURL=()=>{let n=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{e.innerHTML=n,setTimeout((()=>{this.stylingContainer.prepend(e)}),1)})).catch((n=>{console.log("error ",n)}))}}watchEndpoint(n,e){n&&n!=e&&this.cmsEndpoint&&this.getAboutUs()}componentWillLoad(){if(this.cmsEndpoint&&this.language)return this.getAboutUs()}componentDidLoad(){this.device=function(){const n=navigator.userAgent.toLowerCase();let e="";return e=n.includes("android")||n.includes("iphone")||n.includes("ipad")?function(){const n=screen.availWidth;return n<600?"mobile":n>=600&&n<1100?"tablet":void 0}():"desktop",e}()}getAboutUs(){let n=new URL(`${this.cmsEndpoint}/${this.language}/homepage`);return n.searchParams.append("env",this.cmsEnv),n.searchParams.append("userRoles",this.userRoles),n.searchParams.append("device",(()=>{const n=(()=>{let n=window.navigator.userAgent.toLocaleLowerCase();return n.includes("android/i")?"android":n.includes("iphone/i")?"iPhone":n.includes("ipad/i")||n.includes("ipod/i")?"iPad":"PC"})();if(n)return"PC"===n?"dk":"mtWeb"})()),new Promise(((e,t)=>{this.isLoading=!0,fetch(n.href).then((n=>n.json())).then((n=>{const t=["title","description","images","button","externalLink","targetType","locations"],o=Object.entries(n).filter((([n])=>t.includes(n))).reduce(((n,[e,t])=>(n[e]=t,n)),{});this.aboutUsData=o,e(o)})).catch((n=>{console.error(n),this.hasErrors=!0,t(n)})).finally((()=>{this.isLoading=!1}))}))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){var n,r,i,a;return this.hasErrors?e("div",{class:"AboutUsError"},e("div",{class:"ErrorInfo"},(()=>{const n=this.language;return o[void 0!==n&&t.includes(n)?n:"en"].error})())):this.isLoading?void 0:e("div",{ref:n=>this.stylingContainer=n},e("div",{class:"AboutUsWrapper"},e("div",{class:"ItemImage",style:{background:`url(${this.setImage(this.aboutUsData.images)}) no-repeat center center / cover`}}),e("div",{class:"ItemDetails"},e("div",{class:"Title",innerHTML:null===(n=this.aboutUsData)||void 0===n?void 0:n.title}),e("div",{class:"Description",innerHTML:null===(r=this.aboutUsData)||void 0===r?void 0:r.description}),e("button",{class:"Button",onClick:()=>{var n,e,t,o,r;return this.handleClick(null===(e=null===(n=this.aboutUsData)||void 0===n?void 0:n.button)||void 0===e?void 0:e.buttonUrl,null===(t=this.aboutUsData)||void 0===t?void 0:t.targetType,null===(o=this.aboutUsData)||void 0===o?void 0:o.locations,null===(r=this.aboutUsData)||void 0===r?void 0:r.externalLink)}},null===(a=null===(i=this.aboutUsData)||void 0===i?void 0:i.button)||void 0===a?void 0:a.buttonText))))}static get watchers(){return{cmsEndpoint:["watchEndpoint"],language:["watchEndpoint"],userRoles:["watchEndpoint"],device:["watchEndpoint"]}}};r.style=':host {\n display: block;\n font-family: inherit;\n}\n\np {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\nbutton {\n font-family: inherit;\n}\n\n.AboutUsError .ErrorInfo {\n color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));\n}\n\n.AboutUsWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n}\n\n@keyframes fadeInAnimation {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.ItemImage {\n flex: auto;\n max-width: 50%;\n height: 300px;\n border-radius: 5px;\n}\n\n.ItemDetails {\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n border-radius: 5px;\n margin: 0 20px;\n}\n\n.Title {\n font-size: 24px;\n font-weight: 700;\n -webkit-text-fill-color: transparent;\n color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));\n background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.Description {\n font-size: 16px;\n color: var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));\n}\n\nbutton {\n width: 160px;\n padding: 10px 15px;\n background: linear-gradient(to top, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n font-size: 16px;\n border: 2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));\n border-radius: 5px;\n line-height: 24px;\n transition: all 1s;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\nbutton:hover {\n background: linear-gradient(to bottom, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));\n color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n transition: all 0.5s;\n transform: translateY(-10px);\n}\nbutton button::after {\n content: "";\n display: block;\n background-color: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));\n mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yMS44ODMgMTJsLTcuNTI3IDYuMjM1LjY0NC43NjUgOS03LjUyMS05LTcuNDc5LS42NDUuNzY0IDcuNTI5IDYuMjM2aC0yMS44ODR2MWgyMS44ODN6Ii8+PC9zdmc+");\n width: 24px;\n height: 24px;\n margin: 0 10px;\n}\n\n@container (max-width: 475px) {\n .AboutUsWrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-wrap: wrap;\n width: 100%;\n gap: 20px;\n padding-bottom: 20px;\n background-color: var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));\n animation: fadeInAnimation ease 1.5s;\n animation-iteration-count: 1;\n animation-fill-mode: forwards;\n }\n\n .ItemImage {\n flex: auto;\n width: 100%;\n max-width: unset;\n flex-grow: 1;\n }\n\n .ItemDetails {\n flex: 1 1 0;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n border-radius: 5px;\n gap: 20px;\n margin: 0 20px;\n }\n\n .Description {\n text-align: center;\n }\n}';export{r as general_about_us}