@everymatrix/general-about-us 1.44.0 → 1.45.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.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/general-about-us.cjs.entry.js +210 -223
- package/dist/cjs/general-about-us.cjs.js +17 -11
- package/dist/cjs/index-f16005fe.js +1198 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/general-about-us/general-about-us.css +2 -2
- package/dist/collection/components/general-about-us/general-about-us.js +279 -297
- package/dist/collection/components/general-about-us/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +26 -26
- package/dist/collection/utils/utils.js +43 -43
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/general-about-us.entry.js +210 -223
- package/dist/esm/general-about-us.js +14 -11
- package/dist/esm/index-8f53f54c.js +1172 -0
- package/dist/esm/loader.js +7 -13
- package/dist/general-about-us/general-about-us.esm.js +1 -1
- package/dist/general-about-us/p-21732378.js +2 -0
- package/dist/general-about-us/p-9f49c7d5.entry.js +1 -0
- package/dist/general-about-us/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/general-about-us/general-about-us.d.ts +41 -41
- package/dist/types/components/general-about-us/general-about-us.types.d.ts +13 -13
- package/dist/types/components/general-about-us/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/cjs/index-f09c74e2.js +0 -1223
- package/dist/components/general-about-us.d.ts +0 -11
- package/dist/components/general-about-us.js +0 -288
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-b262ca21.js +0 -1198
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/general-about-us/p-0c90e5ab.js +0 -1
- package/dist/general-about-us/p-edeca10f.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-about-us/.stencil/packages/general-about-us/stencil.config.d.ts +0 -2
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface GeneralAboutUs extends Components.GeneralAboutUs, HTMLElement {}
|
|
4
|
-
export const GeneralAboutUs: {
|
|
5
|
-
prototype: GeneralAboutUs;
|
|
6
|
-
new (): GeneralAboutUs;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
-
const TRANSLATIONS = {
|
|
5
|
-
en: {
|
|
6
|
-
error: 'Error',
|
|
7
|
-
noResults: 'Loading, please wait ...',
|
|
8
|
-
},
|
|
9
|
-
hu: {
|
|
10
|
-
error: 'Error',
|
|
11
|
-
noResults: 'Loading, please wait ...',
|
|
12
|
-
},
|
|
13
|
-
ro: {
|
|
14
|
-
error: 'Eroare',
|
|
15
|
-
noResults: 'Loading, please wait ...',
|
|
16
|
-
},
|
|
17
|
-
fr: {
|
|
18
|
-
error: 'Error',
|
|
19
|
-
noResults: 'Loading, please wait ...',
|
|
20
|
-
},
|
|
21
|
-
ar: {
|
|
22
|
-
error: 'خطأ',
|
|
23
|
-
noResults: 'Loading, please wait ...',
|
|
24
|
-
},
|
|
25
|
-
hr: {
|
|
26
|
-
error: 'Greška',
|
|
27
|
-
noResults: 'Učitavanje, molimo pričekajte ...',
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
const translate = (key, customLang) => {
|
|
31
|
-
const lang = customLang;
|
|
32
|
-
return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
function checkDeviceType() {
|
|
36
|
-
const userAgent = navigator.userAgent.toLowerCase();
|
|
37
|
-
const width = screen.availWidth;
|
|
38
|
-
const height = screen.availHeight;
|
|
39
|
-
if (userAgent.includes('iphone')) {
|
|
40
|
-
return 'mobile';
|
|
41
|
-
}
|
|
42
|
-
if (userAgent.includes('android')) {
|
|
43
|
-
if (height > width && width < 800) {
|
|
44
|
-
return 'mobile';
|
|
45
|
-
}
|
|
46
|
-
if (width > height && height < 800) {
|
|
47
|
-
return 'tablet';
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return 'desktop';
|
|
51
|
-
}
|
|
52
|
-
function checkCustomDeviceWidth() {
|
|
53
|
-
const width = screen.availWidth;
|
|
54
|
-
if (width < 600) {
|
|
55
|
-
return 'mobile';
|
|
56
|
-
}
|
|
57
|
-
else if (width >= 600 && width < 1100) {
|
|
58
|
-
return 'tablet';
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function getDeviceCustom() {
|
|
62
|
-
const userAgent = navigator.userAgent.toLowerCase();
|
|
63
|
-
let source = '';
|
|
64
|
-
source = (userAgent.includes('android') || userAgent.includes('iphone') || userAgent.includes('ipad')) ? checkCustomDeviceWidth() : 'desktop';
|
|
65
|
-
return source;
|
|
66
|
-
}
|
|
67
|
-
const getDevice = () => {
|
|
68
|
-
let userAgent = window.navigator.userAgent.toLocaleLowerCase();
|
|
69
|
-
if (userAgent.includes('android/i'))
|
|
70
|
-
return 'android';
|
|
71
|
-
if (userAgent.includes('iphone/i'))
|
|
72
|
-
return 'iPhone';
|
|
73
|
-
if (userAgent.includes('ipad/i') || userAgent.includes('ipod/i'))
|
|
74
|
-
return 'iPad';
|
|
75
|
-
return 'PC';
|
|
76
|
-
};
|
|
77
|
-
const getDevicePlatform = () => {
|
|
78
|
-
const device = getDevice();
|
|
79
|
-
if (device) {
|
|
80
|
-
if (device === 'PC') {
|
|
81
|
-
return 'dk';
|
|
82
|
-
}
|
|
83
|
-
else if (device === 'iPad' || device === 'iPhone') {
|
|
84
|
-
return 'mtWeb';
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return 'mtWeb';
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const chevronSvg = 'data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyBoZWlnaHQ9IjY0cHgiIHdpZHRoPSI2NHB4IiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCAxODUuMzQzIDE4NS4zNDMiIHhtbDpzcGFjZT0icHJlc2VydmUiIGZpbGw9IiNENUYzREYiIHN0cm9rZT0iI0Q1RjNERiI+Cg08ZyBpZD0iU1ZHUmVwb19iZ0NhcnJpZXIiIHN0cm9rZS13aWR0aD0iMCIvPgoNPGcgaWQ9IlNWR1JlcG9fdHJhY2VyQ2FycmllciIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cg08ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxnPiA8Zz4gPHBhdGggc3R5bGU9ImZpbGw6I2VjZjlmMDsiIGQ9Ik01MS43MDcsMTg1LjM0M2MtMi43NDEsMC01LjQ5My0xLjA0NC03LjU5My0zLjE0OWMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTgxLDAtMTUuMTc1IGw3NC4zNTItNzQuMzQ3TDQ0LjExNCwxOC4zMmMtNC4xOTQtNC4xOTQtNC4xOTQtMTAuOTg3LDAtMTUuMTc1YzQuMTk0LTQuMTk0LDEwLjk4Ny00LjE5NCwxNS4xOCwwbDgxLjkzNCw4MS45MzQgYzQuMTk0LDQuMTk0LDQuMTk0LDEwLjk4NywwLDE1LjE3NWwtODEuOTM0LDgxLjkzOUM1Ny4yMDEsMTg0LjI5Myw1NC40NTQsMTg1LjM0Myw1MS43MDcsMTg1LjM0M3oiLz4gPC9nPiA8L2c+IDwvZz4KDTwvc3ZnPg==';
|
|
93
|
-
|
|
94
|
-
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: auto;\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.7;\n transform: scale(1.01);\n}\n.ItemImage .ItemDetails {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 16px;\n width: 60%;\n padding: 40px;\n}\n.ItemImage .ItemDetails > div {\n position: relative;\n height: auto;\n border-radius: var(--emw--border-radius-medium, 5px);\n z-index: 10;\n overflow: hidden;\n}\n.ItemImage .Title {\n padding: 20px 0px 10px 0px;\n font-size: var(--emw--font-size-x-large, 38px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-typography, #ffff);\n}\n.ItemImage .Title .FirstWord {\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-gray-100, #D1D1D2);\n}\n.ItemImage button {\n position: relative;\n width: auto;\n padding: 10px 24px;\n color: var(--emw--button-text-color, #ffff);\n font-size: var(--emw--font-size-small, 16px);\n border: var(--emw--button-border, 3px solid) var(--emw--button-border-color, #063B17);\n border-radius: var(--emw--button-border-radius, 50px);\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n z-index: 20;\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, 12px);\n margin-left: var(--emw--spacing-small-minus, 6px);\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 .ItemDetails {\n padding: 30px;\n }\n .AboutUsWrapper .ItemDetails .Title {\n font-size: var(--emw--font-size-large, 28px);\n padding: 0;\n }\n .AboutUsWrapper .ItemDetails .Button {\n font-size: var(--emw--font-size-small, 14px);\n padding: 8px 20px;\n }\n .AboutUsWrapper .ItemDetails > div {\n border-radius: var(--emw--border-radius-medium, 5px);\n gap: var(--emw--spacing-2x-small, 4px);\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}\n@container (max-width: 800px) {\n .Title {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n }\n}";
|
|
95
|
-
|
|
96
|
-
const GeneralAboutUs$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
97
|
-
constructor() {
|
|
98
|
-
super();
|
|
99
|
-
this.__registerHost();
|
|
100
|
-
this.__attachShadow();
|
|
101
|
-
/**
|
|
102
|
-
* Language of the widget
|
|
103
|
-
*/
|
|
104
|
-
this.language = 'en';
|
|
105
|
-
/**
|
|
106
|
-
* User roles
|
|
107
|
-
*/
|
|
108
|
-
this.userRoles = 'everyone';
|
|
109
|
-
/**
|
|
110
|
-
* CMS Endpoint stage
|
|
111
|
-
*/
|
|
112
|
-
this.cmsEnv = 'stage';
|
|
113
|
-
/**
|
|
114
|
-
* Client custom styling via inline style
|
|
115
|
-
*/
|
|
116
|
-
this.clientStyling = '';
|
|
117
|
-
/**
|
|
118
|
-
* Client custom styling via url
|
|
119
|
-
*/
|
|
120
|
-
this.clientStylingUrl = '';
|
|
121
|
-
this.hasErrors = false;
|
|
122
|
-
this.isLoading = true;
|
|
123
|
-
this.limitStylingAppends = false;
|
|
124
|
-
this.device = '';
|
|
125
|
-
this.handleClick = (url, target, location, isExternal) => {
|
|
126
|
-
window.postMessage({ type: 'NavigateTo', path: url, target: target, locations: location, externalLink: isExternal || false }, window.location.href);
|
|
127
|
-
// @ts-ignore Analytics event
|
|
128
|
-
if (typeof gtag == 'function') {
|
|
129
|
-
// @ts-ignore
|
|
130
|
-
gtag('event', 'GeneralAboutUs', {
|
|
131
|
-
'context': 'AboutUsContent'
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
this.setImage = (image) => {
|
|
136
|
-
let source = '';
|
|
137
|
-
this.device = checkDeviceType();
|
|
138
|
-
switch (this.device) {
|
|
139
|
-
case 'mobile':
|
|
140
|
-
source = image.imageMobile;
|
|
141
|
-
break;
|
|
142
|
-
case 'tablet':
|
|
143
|
-
source = image.imageTablet;
|
|
144
|
-
break;
|
|
145
|
-
case 'desktop':
|
|
146
|
-
source = image.imageDesktop;
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
return source;
|
|
150
|
-
};
|
|
151
|
-
this.setClientStyling = () => {
|
|
152
|
-
let sheet = document.createElement('style');
|
|
153
|
-
sheet.innerHTML = this.clientStyling;
|
|
154
|
-
this.stylingContainer.prepend(sheet);
|
|
155
|
-
};
|
|
156
|
-
this.setClientStylingURL = () => {
|
|
157
|
-
let url = new URL(this.clientStylingUrl);
|
|
158
|
-
let cssFile = document.createElement('style');
|
|
159
|
-
fetch(url.href)
|
|
160
|
-
.then((res) => res.text())
|
|
161
|
-
.then((data) => {
|
|
162
|
-
cssFile.innerHTML = data;
|
|
163
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
164
|
-
})
|
|
165
|
-
.catch((err) => {
|
|
166
|
-
console.log('error ', err);
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
// end custom styling area
|
|
170
|
-
this.formatTitle = (title, language) => {
|
|
171
|
-
let firstWord, restOfTitle;
|
|
172
|
-
// Check for common languages that do not use space - here: Chinese, Japanese, Thai
|
|
173
|
-
if (['zh', 'ja', 'th'].includes(language)) {
|
|
174
|
-
firstWord = title.substring(0, 1);
|
|
175
|
-
restOfTitle = title.substring(1);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
const words = title.split(' ');
|
|
179
|
-
firstWord = words.shift();
|
|
180
|
-
restOfTitle = words.join(' ');
|
|
181
|
-
}
|
|
182
|
-
return h("div", { class: "Title" }, h("span", { class: "FirstWord" }, firstWord, " "), h("span", null, restOfTitle));
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
watchEndpoint(newValue, oldValue) {
|
|
186
|
-
if (newValue && newValue != oldValue && this.cmsEndpoint) {
|
|
187
|
-
this.getAboutUs();
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
componentWillLoad() {
|
|
191
|
-
if (this.cmsEndpoint && this.language) {
|
|
192
|
-
return this.getAboutUs();
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
componentDidLoad() {
|
|
196
|
-
this.device = getDeviceCustom();
|
|
197
|
-
}
|
|
198
|
-
getAboutUs() {
|
|
199
|
-
let url = new URL(`${this.cmsEndpoint}/${this.language}/homepage`);
|
|
200
|
-
url.searchParams.append('env', this.cmsEnv);
|
|
201
|
-
url.searchParams.append('userRoles', this.userRoles);
|
|
202
|
-
url.searchParams.append('device', getDevicePlatform());
|
|
203
|
-
return new Promise((resolve, reject) => {
|
|
204
|
-
this.isLoading = true;
|
|
205
|
-
fetch(url.href)
|
|
206
|
-
.then((res) => res.json())
|
|
207
|
-
.then((aboutUsContent) => {
|
|
208
|
-
const keysToKeep = ['title', 'description', 'images', 'button', 'externalLink', 'targetType', 'locations'];
|
|
209
|
-
const aboutUsArrContent = Object.entries(aboutUsContent)
|
|
210
|
-
.filter(([key]) => keysToKeep.includes(key))
|
|
211
|
-
.reduce((acc, [key, value]) => {
|
|
212
|
-
acc[key] = value;
|
|
213
|
-
return acc;
|
|
214
|
-
}, {});
|
|
215
|
-
this.aboutUsData = aboutUsArrContent;
|
|
216
|
-
resolve(aboutUsArrContent);
|
|
217
|
-
}).catch((err) => {
|
|
218
|
-
console.error(err);
|
|
219
|
-
this.hasErrors = true;
|
|
220
|
-
reject(err);
|
|
221
|
-
}).finally(() => {
|
|
222
|
-
this.isLoading = false;
|
|
223
|
-
});
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
componentDidRender() {
|
|
227
|
-
// start custom styling area
|
|
228
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
229
|
-
if (this.clientStyling)
|
|
230
|
-
this.setClientStyling();
|
|
231
|
-
if (this.clientStylingUrl)
|
|
232
|
-
this.setClientStylingURL();
|
|
233
|
-
this.limitStylingAppends = true;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
render() {
|
|
237
|
-
var _a, _b, _c, _d, _e;
|
|
238
|
-
if (this.hasErrors) {
|
|
239
|
-
return (h("div", { class: "AboutUsError" }, h("div", { class: "ErrorInfo" }, translate('error', this.language))));
|
|
240
|
-
}
|
|
241
|
-
if (!this.isLoading) {
|
|
242
|
-
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%),
|
|
243
|
-
linear-gradient(to bottom left, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%),
|
|
244
|
-
linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6) 100%),
|
|
245
|
-
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: () => {
|
|
246
|
-
var _a, _b, _c, _d, _e;
|
|
247
|
-
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);
|
|
248
|
-
} }, (_e = (_d = this.aboutUsData) === null || _d === void 0 ? void 0 : _d.button) === null || _e === void 0 ? void 0 :
|
|
249
|
-
_e.buttonText, h("img", { src: chevronSvg, alt: "right chevron", class: "Chevron" })))))));
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
static get watchers() { return {
|
|
253
|
-
"cmsEndpoint": ["watchEndpoint"],
|
|
254
|
-
"language": ["watchEndpoint"],
|
|
255
|
-
"userRoles": ["watchEndpoint"],
|
|
256
|
-
"device": ["watchEndpoint"]
|
|
257
|
-
}; }
|
|
258
|
-
static get style() { return generalAboutUsCss; }
|
|
259
|
-
}, [1, "general-about-us", {
|
|
260
|
-
"cmsEndpoint": [513, "cms-endpoint"],
|
|
261
|
-
"language": [513],
|
|
262
|
-
"userRoles": [513, "user-roles"],
|
|
263
|
-
"cmsEnv": [513, "cms-env"],
|
|
264
|
-
"clientStyling": [513, "client-styling"],
|
|
265
|
-
"clientStylingUrl": [513, "client-styling-url"],
|
|
266
|
-
"hasErrors": [32],
|
|
267
|
-
"isLoading": [32],
|
|
268
|
-
"limitStylingAppends": [32],
|
|
269
|
-
"device": [32]
|
|
270
|
-
}]);
|
|
271
|
-
function defineCustomElement$1() {
|
|
272
|
-
if (typeof customElements === "undefined") {
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
const components = ["general-about-us"];
|
|
276
|
-
components.forEach(tagName => { switch (tagName) {
|
|
277
|
-
case "general-about-us":
|
|
278
|
-
if (!customElements.get(tagName)) {
|
|
279
|
-
customElements.define(tagName, GeneralAboutUs$1);
|
|
280
|
-
}
|
|
281
|
-
break;
|
|
282
|
-
} });
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
const GeneralAboutUs = GeneralAboutUs$1;
|
|
286
|
-
const defineCustomElement = defineCustomElement$1;
|
|
287
|
-
|
|
288
|
-
export { GeneralAboutUs, defineCustomElement };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* GeneralAboutUs custom elements */
|
|
2
|
-
|
|
3
|
-
import type { Components, JSX } from "../types/components";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Used to manually set the base path where assets can be found.
|
|
7
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
8
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
9
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
10
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
11
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
12
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
13
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
14
|
-
*/
|
|
15
|
-
export declare const setAssetPath: (path: string) => void;
|
|
16
|
-
|
|
17
|
-
export interface SetPlatformOptions {
|
|
18
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
19
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
23
|
-
|
|
24
|
-
export type { Components, JSX };
|
|
25
|
-
|
|
26
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|