@everymatrix/general-about-us 1.55.0 → 1.56.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/general-about-us.cjs.entry.js +87 -32
- package/dist/cjs/general-about-us.cjs.js +3 -3
- package/dist/cjs/{index-3d4db61a.js → index-8d5dc10c.js} +15 -47
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/general-about-us/general-about-us.js +50 -31
- package/dist/esm/general-about-us.entry.js +87 -32
- package/dist/esm/general-about-us.js +4 -4
- package/dist/esm/{index-f6c09f3b.js → index-894e6ee1.js} +15 -47
- package/dist/esm/loader.js +3 -3
- package/dist/general-about-us/general-about-us.esm.js +1 -1
- package/dist/general-about-us/p-64274deb.js +2 -0
- package/dist/general-about-us/p-d99428a7.entry.js +1 -0
- package/dist/types/components/general-about-us/general-about-us.d.ts +8 -4
- package/dist/types/components.d.ts +8 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/general-about-us/p-157a2384.entry.js +0 -1
- package/dist/general-about-us/p-a4cae9d7.js +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8d5dc10c.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
@@ -36,6 +36,63 @@ const translate = (key, customLang) => {
|
|
|
36
36
|
return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* @name setClientStyling
|
|
41
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
42
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
43
|
+
* @param {string} clientStyling The style content
|
|
44
|
+
*/
|
|
45
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
46
|
+
if (stylingContainer) {
|
|
47
|
+
const sheet = document.createElement('style');
|
|
48
|
+
sheet.innerHTML = clientStyling;
|
|
49
|
+
stylingContainer.appendChild(sheet);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @name setClientStylingURL
|
|
55
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
56
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
57
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
58
|
+
*/
|
|
59
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
60
|
+
const url = new URL(clientStylingUrl);
|
|
61
|
+
|
|
62
|
+
fetch(url.href)
|
|
63
|
+
.then((res) => res.text())
|
|
64
|
+
.then((data) => {
|
|
65
|
+
const cssFile = document.createElement('style');
|
|
66
|
+
cssFile.innerHTML = data;
|
|
67
|
+
if (stylingContainer) {
|
|
68
|
+
stylingContainer.appendChild(cssFile);
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
.catch((err) => {
|
|
72
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @name setStreamLibrary
|
|
78
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
79
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
80
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
81
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
82
|
+
*/
|
|
83
|
+
function setStreamStyling(stylingContainer, domain, subscription) {
|
|
84
|
+
if (window.emMessageBus) {
|
|
85
|
+
const sheet = document.createElement('style');
|
|
86
|
+
|
|
87
|
+
window.emMessageBus.subscribe(domain, (data) => {
|
|
88
|
+
sheet.innerHTML = data;
|
|
89
|
+
if (stylingContainer) {
|
|
90
|
+
stylingContainer.appendChild(sheet);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
39
96
|
function checkDeviceType() {
|
|
40
97
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
41
98
|
const width = screen.availWidth;
|
|
@@ -127,25 +184,6 @@ const GeneralAboutUs = class {
|
|
|
127
184
|
}
|
|
128
185
|
return source;
|
|
129
186
|
};
|
|
130
|
-
this.setClientStyling = () => {
|
|
131
|
-
let sheet = document.createElement('style');
|
|
132
|
-
sheet.innerHTML = this.clientStyling;
|
|
133
|
-
this.stylingContainer.prepend(sheet);
|
|
134
|
-
};
|
|
135
|
-
this.setClientStylingURL = () => {
|
|
136
|
-
let url = new URL(this.clientStylingUrl);
|
|
137
|
-
let cssFile = document.createElement('style');
|
|
138
|
-
fetch(url.href)
|
|
139
|
-
.then((res) => res.text())
|
|
140
|
-
.then((data) => {
|
|
141
|
-
cssFile.innerHTML = data;
|
|
142
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
143
|
-
})
|
|
144
|
-
.catch((err) => {
|
|
145
|
-
console.log('error ', err);
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
// end custom styling area
|
|
149
187
|
this.formatTitle = (title, language) => {
|
|
150
188
|
let firstWord, restOfTitle;
|
|
151
189
|
// Check for common languages that do not use space - here: Chinese, Japanese, Thai
|
|
@@ -164,11 +202,11 @@ const GeneralAboutUs = class {
|
|
|
164
202
|
this.language = 'en';
|
|
165
203
|
this.userRoles = 'everyone';
|
|
166
204
|
this.cmsEnv = 'stage';
|
|
205
|
+
this.mbSource = undefined;
|
|
167
206
|
this.clientStyling = '';
|
|
168
207
|
this.clientStylingUrl = '';
|
|
169
208
|
this.hasErrors = false;
|
|
170
209
|
this.isLoading = true;
|
|
171
|
-
this.limitStylingAppends = false;
|
|
172
210
|
this.device = '';
|
|
173
211
|
}
|
|
174
212
|
watchEndpoint(newValue, oldValue) {
|
|
@@ -176,6 +214,17 @@ const GeneralAboutUs = class {
|
|
|
176
214
|
this.getAboutUs();
|
|
177
215
|
}
|
|
178
216
|
}
|
|
217
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
218
|
+
if (newValue != oldValue) {
|
|
219
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
handleClientStylingChangeURL(newValue, oldValue) {
|
|
223
|
+
if (newValue != oldValue) {
|
|
224
|
+
if (this.clientStylingUrl)
|
|
225
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
179
228
|
componentWillLoad() {
|
|
180
229
|
if (this.cmsEndpoint && this.language) {
|
|
181
230
|
return this.getAboutUs();
|
|
@@ -183,6 +232,20 @@ const GeneralAboutUs = class {
|
|
|
183
232
|
}
|
|
184
233
|
componentDidLoad() {
|
|
185
234
|
this.device = getDeviceCustom();
|
|
235
|
+
if (this.stylingContainer) {
|
|
236
|
+
if (window.emMessageBus != undefined) {
|
|
237
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
if (this.clientStyling)
|
|
241
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
242
|
+
if (this.clientStylingUrl)
|
|
243
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
disconnectedCallback() {
|
|
248
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
186
249
|
}
|
|
187
250
|
getAboutUs() {
|
|
188
251
|
let url = new URL(`${this.cmsEndpoint}/${this.language}/homepage`);
|
|
@@ -212,16 +275,6 @@ const GeneralAboutUs = class {
|
|
|
212
275
|
});
|
|
213
276
|
});
|
|
214
277
|
}
|
|
215
|
-
componentDidRender() {
|
|
216
|
-
// start custom styling area
|
|
217
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
218
|
-
if (this.clientStyling)
|
|
219
|
-
this.setClientStyling();
|
|
220
|
-
if (this.clientStylingUrl)
|
|
221
|
-
this.setClientStylingURL();
|
|
222
|
-
this.limitStylingAppends = true;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
278
|
render() {
|
|
226
279
|
var _a, _b, _c, _d, _e;
|
|
227
280
|
if (this.hasErrors) {
|
|
@@ -242,7 +295,9 @@ const GeneralAboutUs = class {
|
|
|
242
295
|
"cmsEndpoint": ["watchEndpoint"],
|
|
243
296
|
"language": ["watchEndpoint"],
|
|
244
297
|
"userRoles": ["watchEndpoint"],
|
|
245
|
-
"device": ["watchEndpoint"]
|
|
298
|
+
"device": ["watchEndpoint"],
|
|
299
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
300
|
+
"clientStylingUrl": ["handleClientStylingChangeURL"]
|
|
246
301
|
}; }
|
|
247
302
|
};
|
|
248
303
|
GeneralAboutUs.style = GeneralAboutUsStyle0;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8d5dc10c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-about-us.cjs.js', document.baseURI).href));
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["general-about-us.cjs",[[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],"
|
|
22
|
+
return index.bootstrapLazy([["general-about-us.cjs",[[1,"general-about-us",{"cmsEndpoint":[513,"cms-endpoint"],"language":[513],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasErrors":[32],"isLoading":[32],"device":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"],"userRoles":["watchEndpoint"],"device":["watchEndpoint"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'general-about-us';
|
|
24
|
-
const BUILD = /* general-about-us */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
24
|
+
const BUILD = /* general-about-us */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -333,31 +333,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
333
333
|
if (nonce != null) {
|
|
334
334
|
styleElm.setAttribute("nonce", nonce);
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
338
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
339
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
340
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
341
|
-
} else if ("host" in styleContainerNode) {
|
|
342
|
-
if (supportsConstructableStylesheets) {
|
|
343
|
-
const stylesheet = new CSSStyleSheet();
|
|
344
|
-
stylesheet.replaceSync(style);
|
|
345
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
346
|
-
} else {
|
|
347
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
348
|
-
if (existingStyleContainer) {
|
|
349
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
350
|
-
} else {
|
|
351
|
-
styleContainerNode.prepend(styleElm);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
} else {
|
|
355
|
-
styleContainerNode.append(styleElm);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
359
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
360
|
-
}
|
|
336
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
361
337
|
}
|
|
362
338
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
363
339
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -380,7 +356,7 @@ var attachStyles = (hostRef) => {
|
|
|
380
356
|
const scopeId2 = addStyle(
|
|
381
357
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
382
358
|
cmpMeta);
|
|
383
|
-
if (flags & 10 /* needsScopedEncapsulation */
|
|
359
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
384
360
|
elm["s-sc"] = scopeId2;
|
|
385
361
|
elm.classList.add(scopeId2 + "-h");
|
|
386
362
|
}
|
|
@@ -449,11 +425,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
449
425
|
if (memberName === "list") {
|
|
450
426
|
isProp = false;
|
|
451
427
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
452
|
-
|
|
453
|
-
elm[memberName] = n;
|
|
454
|
-
} else {
|
|
455
|
-
elm.setAttribute(memberName, n);
|
|
456
|
-
}
|
|
428
|
+
elm[memberName] = n;
|
|
457
429
|
}
|
|
458
430
|
} else {
|
|
459
431
|
elm[memberName] = newValue;
|
|
@@ -526,9 +498,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
526
498
|
{
|
|
527
499
|
updateElement(null, newVNode2, isSvgMode);
|
|
528
500
|
}
|
|
529
|
-
|
|
530
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
531
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
501
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
532
502
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
533
503
|
}
|
|
534
504
|
if (newVNode2.$children$) {
|
|
@@ -657,10 +627,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
657
627
|
elm.textContent = "";
|
|
658
628
|
}
|
|
659
629
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
660
|
-
} else if (
|
|
661
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
662
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
663
|
-
) {
|
|
630
|
+
} else if (oldChildren !== null) {
|
|
664
631
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
665
632
|
}
|
|
666
633
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -805,9 +772,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
805
772
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
806
773
|
const instance = hostRef.$lazyInstance$ ;
|
|
807
774
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
808
|
-
{
|
|
809
|
-
safeCall(instance, "componentDidRender");
|
|
810
|
-
}
|
|
811
775
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
812
776
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
813
777
|
{
|
|
@@ -928,8 +892,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
928
892
|
if (this.hasOwnProperty(propName)) {
|
|
929
893
|
newValue = this[propName];
|
|
930
894
|
delete this[propName];
|
|
931
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
932
|
-
this[propName] == newValue) {
|
|
895
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
933
896
|
return;
|
|
934
897
|
} else if (propName == null) {
|
|
935
898
|
const hostRef = getHostRef(this);
|
|
@@ -1075,12 +1038,17 @@ var connectedCallback = (elm) => {
|
|
|
1075
1038
|
}
|
|
1076
1039
|
};
|
|
1077
1040
|
var disconnectInstance = (instance) => {
|
|
1041
|
+
{
|
|
1042
|
+
safeCall(instance, "disconnectedCallback");
|
|
1043
|
+
}
|
|
1078
1044
|
};
|
|
1079
1045
|
var disconnectedCallback = async (elm) => {
|
|
1080
1046
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1081
1047
|
const hostRef = getHostRef(elm);
|
|
1082
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1083
|
-
hostRef.$
|
|
1048
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1049
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1050
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1051
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1084
1052
|
}
|
|
1085
1053
|
}
|
|
1086
1054
|
};
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8d5dc10c.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["general-about-us.cjs",[[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],"
|
|
11
|
+
return index.bootstrapLazy([["general-about-us.cjs",[[1,"general-about-us",{"cmsEndpoint":[513,"cms-endpoint"],"language":[513],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasErrors":[32],"isLoading":[32],"device":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"],"userRoles":["watchEndpoint"],"device":["watchEndpoint"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { translate } from "../../utils/locale.utils";
|
|
3
|
+
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
4
|
import { getDeviceCustom, checkDeviceType, getDevicePlatform } from "../../utils/utils";
|
|
4
5
|
import chevronRight from "../../utils/chevron.svg";
|
|
5
6
|
export class GeneralAboutUs {
|
|
@@ -30,25 +31,6 @@ export class GeneralAboutUs {
|
|
|
30
31
|
}
|
|
31
32
|
return source;
|
|
32
33
|
};
|
|
33
|
-
this.setClientStyling = () => {
|
|
34
|
-
let sheet = document.createElement('style');
|
|
35
|
-
sheet.innerHTML = this.clientStyling;
|
|
36
|
-
this.stylingContainer.prepend(sheet);
|
|
37
|
-
};
|
|
38
|
-
this.setClientStylingURL = () => {
|
|
39
|
-
let url = new URL(this.clientStylingUrl);
|
|
40
|
-
let cssFile = document.createElement('style');
|
|
41
|
-
fetch(url.href)
|
|
42
|
-
.then((res) => res.text())
|
|
43
|
-
.then((data) => {
|
|
44
|
-
cssFile.innerHTML = data;
|
|
45
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
46
|
-
})
|
|
47
|
-
.catch((err) => {
|
|
48
|
-
console.log('error ', err);
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
// end custom styling area
|
|
52
34
|
this.formatTitle = (title, language) => {
|
|
53
35
|
let firstWord, restOfTitle;
|
|
54
36
|
// Check for common languages that do not use space - here: Chinese, Japanese, Thai
|
|
@@ -67,11 +49,11 @@ export class GeneralAboutUs {
|
|
|
67
49
|
this.language = 'en';
|
|
68
50
|
this.userRoles = 'everyone';
|
|
69
51
|
this.cmsEnv = 'stage';
|
|
52
|
+
this.mbSource = undefined;
|
|
70
53
|
this.clientStyling = '';
|
|
71
54
|
this.clientStylingUrl = '';
|
|
72
55
|
this.hasErrors = false;
|
|
73
56
|
this.isLoading = true;
|
|
74
|
-
this.limitStylingAppends = false;
|
|
75
57
|
this.device = '';
|
|
76
58
|
}
|
|
77
59
|
watchEndpoint(newValue, oldValue) {
|
|
@@ -79,6 +61,17 @@ export class GeneralAboutUs {
|
|
|
79
61
|
this.getAboutUs();
|
|
80
62
|
}
|
|
81
63
|
}
|
|
64
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
65
|
+
if (newValue != oldValue) {
|
|
66
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
handleClientStylingChangeURL(newValue, oldValue) {
|
|
70
|
+
if (newValue != oldValue) {
|
|
71
|
+
if (this.clientStylingUrl)
|
|
72
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
82
75
|
componentWillLoad() {
|
|
83
76
|
if (this.cmsEndpoint && this.language) {
|
|
84
77
|
return this.getAboutUs();
|
|
@@ -86,6 +79,20 @@ export class GeneralAboutUs {
|
|
|
86
79
|
}
|
|
87
80
|
componentDidLoad() {
|
|
88
81
|
this.device = getDeviceCustom();
|
|
82
|
+
if (this.stylingContainer) {
|
|
83
|
+
if (window.emMessageBus != undefined) {
|
|
84
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
if (this.clientStyling)
|
|
88
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
89
|
+
if (this.clientStylingUrl)
|
|
90
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
disconnectedCallback() {
|
|
95
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
89
96
|
}
|
|
90
97
|
getAboutUs() {
|
|
91
98
|
let url = new URL(`${this.cmsEndpoint}/${this.language}/homepage`);
|
|
@@ -115,16 +122,6 @@ export class GeneralAboutUs {
|
|
|
115
122
|
});
|
|
116
123
|
});
|
|
117
124
|
}
|
|
118
|
-
componentDidRender() {
|
|
119
|
-
// start custom styling area
|
|
120
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
121
|
-
if (this.clientStyling)
|
|
122
|
-
this.setClientStyling();
|
|
123
|
-
if (this.clientStylingUrl)
|
|
124
|
-
this.setClientStylingURL();
|
|
125
|
-
this.limitStylingAppends = true;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
125
|
render() {
|
|
129
126
|
var _a, _b, _c, _d, _e;
|
|
130
127
|
if (this.hasErrors) {
|
|
@@ -226,6 +223,23 @@ export class GeneralAboutUs {
|
|
|
226
223
|
"reflect": true,
|
|
227
224
|
"defaultValue": "'stage'"
|
|
228
225
|
},
|
|
226
|
+
"mbSource": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"mutable": false,
|
|
229
|
+
"complexType": {
|
|
230
|
+
"original": "string",
|
|
231
|
+
"resolved": "string",
|
|
232
|
+
"references": {}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": false,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": "Client custom styling via inline streamStyling"
|
|
239
|
+
},
|
|
240
|
+
"attribute": "mb-source",
|
|
241
|
+
"reflect": false
|
|
242
|
+
},
|
|
229
243
|
"clientStyling": {
|
|
230
244
|
"type": "string",
|
|
231
245
|
"mutable": false,
|
|
@@ -268,7 +282,6 @@ export class GeneralAboutUs {
|
|
|
268
282
|
return {
|
|
269
283
|
"hasErrors": {},
|
|
270
284
|
"isLoading": {},
|
|
271
|
-
"limitStylingAppends": {},
|
|
272
285
|
"device": {}
|
|
273
286
|
};
|
|
274
287
|
}
|
|
@@ -285,6 +298,12 @@ export class GeneralAboutUs {
|
|
|
285
298
|
}, {
|
|
286
299
|
"propName": "device",
|
|
287
300
|
"methodName": "watchEndpoint"
|
|
301
|
+
}, {
|
|
302
|
+
"propName": "clientStyling",
|
|
303
|
+
"methodName": "handleClientStylingChange"
|
|
304
|
+
}, {
|
|
305
|
+
"propName": "clientStylingUrl",
|
|
306
|
+
"methodName": "handleClientStylingChangeURL"
|
|
288
307
|
}];
|
|
289
308
|
}
|
|
290
309
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-894e6ee1.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
@@ -32,6 +32,63 @@ const translate = (key, customLang) => {
|
|
|
32
32
|
return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* @name setClientStyling
|
|
37
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
38
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
39
|
+
* @param {string} clientStyling The style content
|
|
40
|
+
*/
|
|
41
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
42
|
+
if (stylingContainer) {
|
|
43
|
+
const sheet = document.createElement('style');
|
|
44
|
+
sheet.innerHTML = clientStyling;
|
|
45
|
+
stylingContainer.appendChild(sheet);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @name setClientStylingURL
|
|
51
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
52
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
53
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
54
|
+
*/
|
|
55
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
56
|
+
const url = new URL(clientStylingUrl);
|
|
57
|
+
|
|
58
|
+
fetch(url.href)
|
|
59
|
+
.then((res) => res.text())
|
|
60
|
+
.then((data) => {
|
|
61
|
+
const cssFile = document.createElement('style');
|
|
62
|
+
cssFile.innerHTML = data;
|
|
63
|
+
if (stylingContainer) {
|
|
64
|
+
stylingContainer.appendChild(cssFile);
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
.catch((err) => {
|
|
68
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @name setStreamLibrary
|
|
74
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
75
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
76
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
77
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
78
|
+
*/
|
|
79
|
+
function setStreamStyling(stylingContainer, domain, subscription) {
|
|
80
|
+
if (window.emMessageBus) {
|
|
81
|
+
const sheet = document.createElement('style');
|
|
82
|
+
|
|
83
|
+
window.emMessageBus.subscribe(domain, (data) => {
|
|
84
|
+
sheet.innerHTML = data;
|
|
85
|
+
if (stylingContainer) {
|
|
86
|
+
stylingContainer.appendChild(sheet);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
35
92
|
function checkDeviceType() {
|
|
36
93
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
37
94
|
const width = screen.availWidth;
|
|
@@ -123,25 +180,6 @@ const GeneralAboutUs = class {
|
|
|
123
180
|
}
|
|
124
181
|
return source;
|
|
125
182
|
};
|
|
126
|
-
this.setClientStyling = () => {
|
|
127
|
-
let sheet = document.createElement('style');
|
|
128
|
-
sheet.innerHTML = this.clientStyling;
|
|
129
|
-
this.stylingContainer.prepend(sheet);
|
|
130
|
-
};
|
|
131
|
-
this.setClientStylingURL = () => {
|
|
132
|
-
let url = new URL(this.clientStylingUrl);
|
|
133
|
-
let cssFile = document.createElement('style');
|
|
134
|
-
fetch(url.href)
|
|
135
|
-
.then((res) => res.text())
|
|
136
|
-
.then((data) => {
|
|
137
|
-
cssFile.innerHTML = data;
|
|
138
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
139
|
-
})
|
|
140
|
-
.catch((err) => {
|
|
141
|
-
console.log('error ', err);
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
// end custom styling area
|
|
145
183
|
this.formatTitle = (title, language) => {
|
|
146
184
|
let firstWord, restOfTitle;
|
|
147
185
|
// Check for common languages that do not use space - here: Chinese, Japanese, Thai
|
|
@@ -160,11 +198,11 @@ const GeneralAboutUs = class {
|
|
|
160
198
|
this.language = 'en';
|
|
161
199
|
this.userRoles = 'everyone';
|
|
162
200
|
this.cmsEnv = 'stage';
|
|
201
|
+
this.mbSource = undefined;
|
|
163
202
|
this.clientStyling = '';
|
|
164
203
|
this.clientStylingUrl = '';
|
|
165
204
|
this.hasErrors = false;
|
|
166
205
|
this.isLoading = true;
|
|
167
|
-
this.limitStylingAppends = false;
|
|
168
206
|
this.device = '';
|
|
169
207
|
}
|
|
170
208
|
watchEndpoint(newValue, oldValue) {
|
|
@@ -172,6 +210,17 @@ const GeneralAboutUs = class {
|
|
|
172
210
|
this.getAboutUs();
|
|
173
211
|
}
|
|
174
212
|
}
|
|
213
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
214
|
+
if (newValue != oldValue) {
|
|
215
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
handleClientStylingChangeURL(newValue, oldValue) {
|
|
219
|
+
if (newValue != oldValue) {
|
|
220
|
+
if (this.clientStylingUrl)
|
|
221
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
175
224
|
componentWillLoad() {
|
|
176
225
|
if (this.cmsEndpoint && this.language) {
|
|
177
226
|
return this.getAboutUs();
|
|
@@ -179,6 +228,20 @@ const GeneralAboutUs = class {
|
|
|
179
228
|
}
|
|
180
229
|
componentDidLoad() {
|
|
181
230
|
this.device = getDeviceCustom();
|
|
231
|
+
if (this.stylingContainer) {
|
|
232
|
+
if (window.emMessageBus != undefined) {
|
|
233
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
if (this.clientStyling)
|
|
237
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
238
|
+
if (this.clientStylingUrl)
|
|
239
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
disconnectedCallback() {
|
|
244
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
182
245
|
}
|
|
183
246
|
getAboutUs() {
|
|
184
247
|
let url = new URL(`${this.cmsEndpoint}/${this.language}/homepage`);
|
|
@@ -208,16 +271,6 @@ const GeneralAboutUs = class {
|
|
|
208
271
|
});
|
|
209
272
|
});
|
|
210
273
|
}
|
|
211
|
-
componentDidRender() {
|
|
212
|
-
// start custom styling area
|
|
213
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
214
|
-
if (this.clientStyling)
|
|
215
|
-
this.setClientStyling();
|
|
216
|
-
if (this.clientStylingUrl)
|
|
217
|
-
this.setClientStylingURL();
|
|
218
|
-
this.limitStylingAppends = true;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
274
|
render() {
|
|
222
275
|
var _a, _b, _c, _d, _e;
|
|
223
276
|
if (this.hasErrors) {
|
|
@@ -238,7 +291,9 @@ const GeneralAboutUs = class {
|
|
|
238
291
|
"cmsEndpoint": ["watchEndpoint"],
|
|
239
292
|
"language": ["watchEndpoint"],
|
|
240
293
|
"userRoles": ["watchEndpoint"],
|
|
241
|
-
"device": ["watchEndpoint"]
|
|
294
|
+
"device": ["watchEndpoint"],
|
|
295
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
296
|
+
"clientStylingUrl": ["handleClientStylingChangeURL"]
|
|
242
297
|
}; }
|
|
243
298
|
};
|
|
244
299
|
GeneralAboutUs.style = GeneralAboutUsStyle0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-894e6ee1.js';
|
|
2
|
+
export { s as setNonce } from './index-894e6ee1.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["general-about-us",[[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],"
|
|
19
|
+
return bootstrapLazy([["general-about-us",[[1,"general-about-us",{"cmsEndpoint":[513,"cms-endpoint"],"language":[513],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasErrors":[32],"isLoading":[32],"device":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"],"userRoles":["watchEndpoint"],"device":["watchEndpoint"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const NAMESPACE = 'general-about-us';
|
|
2
|
-
const BUILD = /* general-about-us */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
2
|
+
const BUILD = /* general-about-us */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -311,31 +311,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
311
311
|
if (nonce != null) {
|
|
312
312
|
styleElm.setAttribute("nonce", nonce);
|
|
313
313
|
}
|
|
314
|
-
|
|
315
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
316
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
317
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
318
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
319
|
-
} else if ("host" in styleContainerNode) {
|
|
320
|
-
if (supportsConstructableStylesheets) {
|
|
321
|
-
const stylesheet = new CSSStyleSheet();
|
|
322
|
-
stylesheet.replaceSync(style);
|
|
323
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
324
|
-
} else {
|
|
325
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
326
|
-
if (existingStyleContainer) {
|
|
327
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
328
|
-
} else {
|
|
329
|
-
styleContainerNode.prepend(styleElm);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
} else {
|
|
333
|
-
styleContainerNode.append(styleElm);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
337
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
338
|
-
}
|
|
314
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
339
315
|
}
|
|
340
316
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
341
317
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -358,7 +334,7 @@ var attachStyles = (hostRef) => {
|
|
|
358
334
|
const scopeId2 = addStyle(
|
|
359
335
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
360
336
|
cmpMeta);
|
|
361
|
-
if (flags & 10 /* needsScopedEncapsulation */
|
|
337
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
362
338
|
elm["s-sc"] = scopeId2;
|
|
363
339
|
elm.classList.add(scopeId2 + "-h");
|
|
364
340
|
}
|
|
@@ -427,11 +403,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
427
403
|
if (memberName === "list") {
|
|
428
404
|
isProp = false;
|
|
429
405
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
430
|
-
|
|
431
|
-
elm[memberName] = n;
|
|
432
|
-
} else {
|
|
433
|
-
elm.setAttribute(memberName, n);
|
|
434
|
-
}
|
|
406
|
+
elm[memberName] = n;
|
|
435
407
|
}
|
|
436
408
|
} else {
|
|
437
409
|
elm[memberName] = newValue;
|
|
@@ -504,9 +476,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
504
476
|
{
|
|
505
477
|
updateElement(null, newVNode2, isSvgMode);
|
|
506
478
|
}
|
|
507
|
-
|
|
508
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
509
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
479
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
510
480
|
elm.classList.add(elm["s-si"] = scopeId);
|
|
511
481
|
}
|
|
512
482
|
if (newVNode2.$children$) {
|
|
@@ -635,10 +605,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
635
605
|
elm.textContent = "";
|
|
636
606
|
}
|
|
637
607
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
638
|
-
} else if (
|
|
639
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
640
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
641
|
-
) {
|
|
608
|
+
} else if (oldChildren !== null) {
|
|
642
609
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
643
610
|
}
|
|
644
611
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -783,9 +750,6 @@ var postUpdateComponent = (hostRef) => {
|
|
|
783
750
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
784
751
|
const instance = hostRef.$lazyInstance$ ;
|
|
785
752
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
786
|
-
{
|
|
787
|
-
safeCall(instance, "componentDidRender");
|
|
788
|
-
}
|
|
789
753
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
790
754
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
791
755
|
{
|
|
@@ -906,8 +870,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
906
870
|
if (this.hasOwnProperty(propName)) {
|
|
907
871
|
newValue = this[propName];
|
|
908
872
|
delete this[propName];
|
|
909
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
910
|
-
this[propName] == newValue) {
|
|
873
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
911
874
|
return;
|
|
912
875
|
} else if (propName == null) {
|
|
913
876
|
const hostRef = getHostRef(this);
|
|
@@ -1053,12 +1016,17 @@ var connectedCallback = (elm) => {
|
|
|
1053
1016
|
}
|
|
1054
1017
|
};
|
|
1055
1018
|
var disconnectInstance = (instance) => {
|
|
1019
|
+
{
|
|
1020
|
+
safeCall(instance, "disconnectedCallback");
|
|
1021
|
+
}
|
|
1056
1022
|
};
|
|
1057
1023
|
var disconnectedCallback = async (elm) => {
|
|
1058
1024
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1059
1025
|
const hostRef = getHostRef(elm);
|
|
1060
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1061
|
-
hostRef.$
|
|
1026
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1027
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1028
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1029
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1062
1030
|
}
|
|
1063
1031
|
}
|
|
1064
1032
|
};
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-894e6ee1.js';
|
|
2
|
+
export { s as setNonce } from './index-894e6ee1.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["general-about-us",[[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],"
|
|
8
|
+
return bootstrapLazy([["general-about-us",[[1,"general-about-us",{"cmsEndpoint":[513,"cms-endpoint"],"language":[513],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasErrors":[32],"isLoading":[32],"device":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"],"userRoles":["watchEndpoint"],"device":["watchEndpoint"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,b as
|
|
1
|
+
import{p as n,b as e}from"./p-64274deb.js";export{s as setNonce}from"./p-64274deb.js";import{g as t}from"./p-e1255160.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),n(t)})().then((async n=>(await t(),e([["p-d99428a7",[[1,"general-about-us",{cmsEndpoint:[513,"cms-endpoint"],language:[513],userRoles:[513,"user-roles"],cmsEnv:[513,"cms-env"],mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],hasErrors:[32],isLoading:[32],device:[32]},null,{cmsEndpoint:["watchEndpoint"],language:["watchEndpoint"],userRoles:["watchEndpoint"],device:["watchEndpoint"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],n))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),l=(t,n)=>e.set(n.t=t,n),o=(t,e)=>e in t,r=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],y=[],$=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&f.l?v(b):f.raf(b))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},b=()=>{w(m),w(y),(d=m.length>0)&&f.raf(b)},v=t=>h().then(t),g=$(y,!0),S={},j=t=>"object"==(t=typeof t)||"function"===t;function k(t){var e,n,l;return null!=(l=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((e,n)=>{for(var l in n)t(e,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=t=>({isOk:!0,isErr:!1,value:t}),E=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return E(t.value);throw"should never get here"}var M,x,P=t=>{if(t.isOk)return t.value;throw t.value},L=t=>{if(t.isErr)return t.value;throw t.value},R=(t,e,...n)=>{let l=null,o=!1,r=!1;const s=[],i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof t&&!j(l))&&(l+=""),o&&r?s[s.length-1].i+=l:s.push(o?T(null,l):l),r=o)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const c=T(t,null);return c.u=e,s.length>0&&(c.h=s),c},T=(t,e)=>({l:0,p:t,i:e,m:null,h:null,u:null}),A={},N=new WeakMap,U=t=>"sc-"+t.$,W=(t,e,n,l,r,s)=>{if(n!==l){let i=o(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=F(n),r=F(l);e.remove(...o.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("ref"===e)l&&l(t);else if(i||"o"!==e[0]||"n"!==e[1]){const o=j(l);if((i||o&&null!==l)&&!r)try{if(t.tagName.includes("-"))t[e]=l;else{const o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||r)&&!o&&t.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):o(u,c)?c.slice(2):c[2]+e.slice(3),n||l){const o=e.endsWith(H);e=e.replace(q,""),n&&f.rel(t,e,n,o),l&&f.ael(t,e,l,o)}}},D=/\s/,F=t=>t?t.split(D):[],H="Capture",q=RegExp(H+"$"),G=(t,e,n)=>{const l=11===e.m.nodeType&&e.m.host?e.m.host:e.m,o=t&&t.u||S,r=e.u||S;for(const t of V(Object.keys(o)))t in r||W(l,t,o[t],void 0,n,e.l);for(const t of V(Object.keys(r)))W(l,t,o[t],r[t],n,e.l)};function V(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var _=!1,z=(t,e,n)=>{const l=e.h[n];let o,r,s=0;if(null!==l.i)o=l.m=a.createTextNode(l.i);else if(o=l.m=a.createElement(l.p),G(null,l,_),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(s=0;s<l.h.length;++s)r=z(t,l,s),r&&o.appendChild(r);return o["s-hn"]=x,o},B=(t,e,n,l,o,r)=>{let s,i=t;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=z(null,n,o),s&&(l[o].m=s,X(i,s,e)))},I=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.m;Q(e),t&&t.remove()}}},J=(t,e)=>t.p===e.p,K=(t,e,n=!1)=>{const l=e.m=t.m,o=t.h,r=e.h,s=e.i;null===s?(G(t,e,_),null!==o&&null!==r?((t,e,n,l,o=!1)=>{let r,s=0,i=0,c=e.length-1,u=e[0],a=e[c],f=l.length-1,h=l[0],p=l[f];for(;s<=c&&i<=f;)null==u?u=e[++s]:null==a?a=e[--c]:null==h?h=l[++i]:null==p?p=l[--f]:J(u,h)?(K(u,h,o),u=e[++s],h=l[++i]):J(a,p)?(K(a,p,o),a=e[--c],p=l[--f]):J(u,p)?(K(u,p,o),X(t,u.m,a.m.nextSibling),u=e[++s],p=l[--f]):J(a,h)?(K(a,h,o),X(t,a.m,u.m),a=e[--c],h=l[++i]):(r=z(e&&e[i],n,i),h=l[++i],r&&X(u.m.parentNode,r,u.m));s>c?B(t,null==l[f+1]?null:l[f+1].m,n,l,i,f):i>f&&I(e,s,c)})(l,o,e,r,n):null!==r?(null!==t.i&&(l.textContent=""),B(l,null,e,r,0,r.length-1)):null!==o&&I(o,0,o.length-1)):t.i!==s&&(l.data=s)},Q=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(Q)},X=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Y=(t,e)=>{e&&!t.v&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.v=e)))},Z=(t,e)=>{if(t.l|=16,!(4&t.l))return Y(t,t.S),g((()=>tt(t,e)));t.l|=512},tt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e&&(l=it(n,"componentWillLoad")),et(l,(()=>lt(t,n,e)))},et=(t,e)=>nt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),nt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var l;const o=t.$hostElement$,r=o["s-rc"];n&&(t=>{const e=t.j,n=t.$hostElement$,l=e.l,o=((t,e)=>{var n;const l=U(e),o=i.get(l);if(t=11===t.nodeType?t:a,o)if("string"==typeof o){let r,s=N.get(t=t.head||t);if(s||N.set(t,s=new Set),!s.has(l)){{r=a.createElement("style"),r.innerHTML=o;const e=null!=(n=f.k)?n:k(a);null!=e&&r.setAttribute("nonce",e),t.insertBefore(r,t.querySelector("link"))}4&e.l&&(r.innerHTML+=c),s&&s.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);ot(t,e,o,n),r&&(r.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>rt(t);0===e.length?n():(Promise.all(e).then(n),t.l|=4,e.length=0)}},ot=(t,e,n,l)=>{try{e=e.render(),t.l&=-17,t.l|=2,((t,e,n=!1)=>{const l=t.$hostElement$,o=t.j,r=t.O||T(null,null),s=(t=>t&&t.p===A)(e)?e:R(null,null,e);if(x=l.tagName,o.C&&(s.u=s.u||{},o.C.map((([t,e])=>s.u[e]=l[t]))),n&&s.u)for(const t of Object.keys(s.u))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=l[t]);s.p=null,s.l|=4,t.O=s,s.m=r.m=l.shadowRoot||l,M=l["s-sc"],K(r,s,n)})(t,e,l)}catch(e){r(e,t.$hostElement$)}return null},rt=t=>{const e=t.$hostElement$,n=t.t,l=t.S;64&t.l||(t.l|=64,ct(e),it(n,"componentDidLoad"),t.M(e),l||st()),t.v&&(t.v(),t.v=void 0),512&t.l&&v((()=>Z(t,!1))),t.l&=-517},st=()=>{ct(a.documentElement),v((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"general-about-us"}});return t.dispatchEvent(e),e})(u)))},it=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t)}},ct=t=>t.classList.add("hydrated"),ut=(t,e,l)=>{var o,s;const i=t.prototype;if(e.P||e.L||t.watchers){t.watchers&&!e.L&&(e.L=t.watchers);const c=Object.entries(null!=(o=e.P)?o:{});if(c.map((([t,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).R.get(e))(0,t)},set(l){((t,e,l,o)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.$hostElement$,c=s.R.get(e),u=s.l,a=s.t;if(l=((t,e)=>null==t||j(t)?t:1&e?t+"":t)(l,o.P[e][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(s.R.set(e,l),a)){if(o.L&&128&u){const t=o.L[e];t&&t.map((t=>{try{a[t](l,c,e)}catch(t){r(t,i)}}))}2==(18&u)&&Z(s,!1)}})(this,t,l,e)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(t,o,r){f.jmp((()=>{var s;const c=l.get(t);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&r!==o){const n=l.t,i=null==(s=e.L)?void 0:s[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,r,o,t)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.L)?s:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var o;const r=n[1]||t;return l.set(r,t),512&n[0]&&(null==(o=e.C)||o.push([t,r])),r}))]))}}return t},at=t=>{it(t,"disconnectedCallback")},ft=(t,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let v,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((l=>{var o;const c={l:l[0],$:l[1],P:l[2],T:l[3]};4&c.l&&(S=!0),c.P=l[2],c.C=[],c.L=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const l={l:0,$hostElement$:t,j:n,R:new Map};l.A=new Promise((t=>l.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,l)})(t=this,c),1&c.l)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),g?b.push(this):f.jmp((()=>(t=>{if(!(1&f.l)){const e=n(t),l=e.j,o=()=>{};if(1&e.l)(null==e?void 0:e.t)||(null==e?void 0:e.A)&&e.A.then((()=>{}));else{e.l|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(e,e.S=n);break}}l.P&&Object.entries(l.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;if(!(32&e.l)){if(e.l|=32,n.N){const t=(t=>{const e=t.$.replace(/-/g,"_"),n=t.N;if(!n)return;const l=s.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(s.set(n,t),t[e])),r)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};l=await t,e()}else l=t;if(!l)throw Error(`Constructor for "${n.$}#${e.U}" was not found`);l.isProxied||(n.L=l.watchers,ut(l,n,2),l.isProxied=!0);const o=()=>{};e.l|=8;try{new l(e)}catch(t){r(t)}e.l&=-9,e.l|=128,o()}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.l|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=U(n);if(!i.has(e)){const l=()=>{};((t,e,n)=>{let l=i.get(t);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,i.set(t,l)})(e,t,!!(1&n.l)),l()}}}const o=e.S,c=()=>Z(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(t,e,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const t=n(this);(null==t?void 0:t.t)?at(t.t):(null==t?void 0:t.A)&&t.A.then((()=>at(t.t)))}})()))}componentOnReady(){return n(this).A}};c.N=t[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ut(a,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(o=f.k)?o:k(a);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):f.jmp((()=>v=setTimeout(st,30)))},ht=t=>f.k=t;export{ft as b,R as h,h as p,l as r,ht as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,h as t}from"./p-64274deb.js";const 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 ..."}};function e(n,t){if(n){const i=document.createElement("style");i.innerHTML=t,n.appendChild(i)}}function o(n,t){const i=new URL(t);fetch(i.href).then((n=>n.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,n&&n.appendChild(i)})).catch((n=>{console.error("There was an error while trying to load client styling from URL",n)}))}const r=class{constructor(i){n(this,i),this.handleClick=(n,t,i,e)=>{window.postMessage({type:"NavigateTo",path:n,target:t,locations:i,externalLink:e||!1},window.location.href),"function"==typeof gtag&>ag("event","GeneralAboutUs",{context:"AboutUsContent"})},this.setImage=n=>{let t="";switch(this.device=function(){const n=navigator.userAgent.toLowerCase(),t=screen.availWidth,i=screen.availHeight;if(n.includes("iphone"))return"mobile";if(n.includes("android")){if(i>t&&t<800)return"mobile";if(t>i&&i<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.formatTitle=(n,i)=>{let e,o;if(["zh","ja","th"].includes(i))e=n.substring(0,1),o=n.substring(1);else{const t=n.split(" ");e=t.shift(),o=t.join(" ")}return t("div",{class:"Title"},t("span",{class:"FirstWord"},e," "),t("span",null,o))},this.cmsEndpoint=void 0,this.language="en",this.userRoles="everyone",this.cmsEnv="stage",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.hasErrors=!1,this.isLoading=!0,this.device=""}watchEndpoint(n,t){n&&n!=t&&this.cmsEndpoint&&this.getAboutUs()}handleClientStylingChange(n,t){n!=t&&e(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,t){n!=t&&this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl)}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}(),this.stylingContainer&&(null!=window.emMessageBus?function(n,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,n&&n.appendChild(i)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&e(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}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,i)=>{this.isLoading=!0,fetch(n.href).then((n=>n.json())).then((n=>{const i=["title","description","images","button","externalLink","targetType","locations"],e=Object.entries(n).filter((([n])=>i.includes(n))).reduce(((n,[t,i])=>(n[t]=i,n)),{});this.aboutUsData=e,t(e)})).catch((n=>{console.error(n),this.hasErrors=!0,i(n)})).finally((()=>{this.isLoading=!1}))}))}render(){var n,e,o,r,a,s;return this.hasErrors?t("div",{class:"AboutUsError"},t("div",{class:"ErrorInfo"},i[void 0!==(s=this.language)&&s in i?s:"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===(e=this.aboutUsData)||void 0===e?void 0:e.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,i,e,o;return this.handleClick(null===(t=null===(n=this.aboutUsData)||void 0===n?void 0:n.button)||void 0===t?void 0:t.buttonUrl,null===(i=this.aboutUsData)||void 0===i?void 0:i.targetType,null===(e=this.aboutUsData)||void 0===e?void 0:e.locations,null===(o=this.aboutUsData)||void 0===o?void 0:o.externalLink)}},null===(a=null===(r=this.aboutUsData)||void 0===r?void 0:r.button)||void 0===a?void 0:a.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"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};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: 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, white);\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, white);\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}";export{r as general_about_us}
|
|
@@ -16,6 +16,10 @@ export declare class GeneralAboutUs {
|
|
|
16
16
|
* CMS Endpoint stage
|
|
17
17
|
*/
|
|
18
18
|
cmsEnv: string;
|
|
19
|
+
/**
|
|
20
|
+
* Client custom styling via inline streamStyling
|
|
21
|
+
*/
|
|
22
|
+
mbSource: string;
|
|
19
23
|
/**
|
|
20
24
|
* Client custom styling via inline style
|
|
21
25
|
*/
|
|
@@ -26,19 +30,19 @@ export declare class GeneralAboutUs {
|
|
|
26
30
|
clientStylingUrl: string;
|
|
27
31
|
private hasErrors;
|
|
28
32
|
private isLoading;
|
|
29
|
-
private limitStylingAppends;
|
|
30
33
|
device: string;
|
|
31
34
|
private stylingContainer;
|
|
35
|
+
private stylingSubscription;
|
|
32
36
|
private aboutUsData;
|
|
33
37
|
watchEndpoint(newValue: string, oldValue: string): void;
|
|
38
|
+
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
39
|
+
handleClientStylingChangeURL(newValue: any, oldValue: any): void;
|
|
34
40
|
componentWillLoad(): Promise<any>;
|
|
35
41
|
componentDidLoad(): void;
|
|
42
|
+
disconnectedCallback(): void;
|
|
36
43
|
getAboutUs(): Promise<any>;
|
|
37
44
|
handleClick: (url: string, target: string, location: string, isExternal: boolean) => void;
|
|
38
45
|
setImage: (image: ImageSort) => string;
|
|
39
|
-
setClientStyling: () => void;
|
|
40
|
-
setClientStylingURL: () => void;
|
|
41
|
-
componentDidRender(): void;
|
|
42
46
|
formatTitle: (title: string, language: string) => any;
|
|
43
47
|
render(): void;
|
|
44
48
|
}
|
|
@@ -27,6 +27,10 @@ export namespace Components {
|
|
|
27
27
|
* Language of the widget
|
|
28
28
|
*/
|
|
29
29
|
"language": string;
|
|
30
|
+
/**
|
|
31
|
+
* Client custom styling via inline streamStyling
|
|
32
|
+
*/
|
|
33
|
+
"mbSource": string;
|
|
30
34
|
/**
|
|
31
35
|
* User roles
|
|
32
36
|
*/
|
|
@@ -66,6 +70,10 @@ declare namespace LocalJSX {
|
|
|
66
70
|
* Language of the widget
|
|
67
71
|
*/
|
|
68
72
|
"language"?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Client custom styling via inline streamStyling
|
|
75
|
+
*/
|
|
76
|
+
"mbSource"?: string;
|
|
69
77
|
/**
|
|
70
78
|
* User roles
|
|
71
79
|
*/
|
|
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
-
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
-
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1020
1018
|
crossOrigin?: string;
|
|
1021
1019
|
crossorigin?: string;
|
|
1022
1020
|
loop?: boolean;
|
|
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
|
|
|
1566
1564
|
onSubmitCapture?: (event: Event) => void;
|
|
1567
1565
|
onInvalid?: (event: Event) => void;
|
|
1568
1566
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
-
onToggle?: (event: Event) => void;
|
|
1572
|
-
onToggleCapture?: (event: Event) => void;
|
|
1573
1567
|
onLoad?: (event: Event) => void;
|
|
1574
1568
|
onLoadCapture?: (event: Event) => void;
|
|
1575
1569
|
onError?: (event: Event) => void;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n,h as t}from"./p-a4cae9d7.js";const e={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 i=class{constructor(e){n(this,e),this.handleClick=(n,t,e,i)=>{window.postMessage({type:"NavigateTo",path:n,target:t,locations:e,externalLink:i||!1},window.location.href),"function"==typeof gtag&>ag("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,o;if(["zh","ja","th"].includes(e))i=n.substring(0,1),o=n.substring(1);else{const t=n.split(" ");i=t.shift(),o=t.join(" ")}return t("div",{class:"Title"},t("span",{class:"FirstWord"},i," "),t("span",null,o))},this.cmsEndpoint=void 0,this.language="en",this.userRoles="everyone",this.cmsEnv="stage",this.clientStyling="",this.clientStylingUrl="",this.hasErrors=!1,this.isLoading=!0,this.limitStylingAppends=!1,this.device=""}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,i,o,r,a,s;return this.hasErrors?t("div",{class:"AboutUsError"},t("div",{class:"ErrorInfo"},e[void 0!==(s=this.language)&&s in e?s:"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===(i=this.aboutUsData)||void 0===i?void 0:i.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,o;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===(o=this.aboutUsData)||void 0===o?void 0:o.externalLink)}},null===(a=null===(r=this.aboutUsData)||void 0===r?void 0:r.button)||void 0===a?void 0:a.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"]}}};i.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: 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, white);\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, white);\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}";export{i as general_about_us}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,m=[],y=[],$=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&f.o?v(b):f.raf(b))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{w(m),w(y),(d=m.length>0)&&f.raf(b)},v=t=>h().then(t),S=$(y,!0),g={},j=t=>"object"==(t=typeof t)||"function"===t;function E(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>C,ok:()=>O,unwrap:()=>x,unwrapErr:()=>P});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var M,x=t=>{if(t.isOk)return t.value;throw t.value},P=t=>{if(t.isErr)return t.value;throw t.value},A=(t,e,...n)=>{let o=null,l=!1,s=!1;const r=[],i=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?i(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!j(o))&&(o+=""),l&&s?r[r.length-1].i+=o:r.push(l?D(null,o):o),s=l)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const c=D(t,null);return c.u=e,r.length>0&&(c.h=r),c},D=(t,e)=>({o:0,p:t,i:e,m:null,h:null,u:null}),R={},H=new WeakMap,L=t=>"sc-"+t.$,T=(t,e,n,o,s,r)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=U(n),s=U(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&r||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(W);e=e.replace(F,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},N=/\s/,U=t=>t?t.split(N):[],W="Capture",F=RegExp(W+"$"),q=(t,e,n)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||g,s=e.u||g;for(const t of G(Object.keys(l)))t in s||T(o,t,l[t],void 0,n,e.o);for(const t of G(Object.keys(s)))T(o,t,l[t],s[t],n,e.o)};function G(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var V=!1,_=(t,e,n)=>{const o=e.h[n];let l,s,r=0;if(null!==o.i)l=o.m=a.createTextNode(o.i);else if(l=o.m=a.createElement(o.p),q(null,o,V),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=_(t,o,r),s&&l.appendChild(s);return l["s-hn"]=M,l},z=(t,e,n,o,l,s)=>{let r,i=t;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=_(null,n,l),r&&(o[l].m=r,Q(i,r,e)))},B=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;K(e),t&&t.remove()}}},I=(t,e)=>t.p===e.p,J=(t,e,n=!1)=>{const o=e.m=t.m,l=t.h,s=e.h,r=e.i;null===r?(q(t,e,V),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r=0,i=0,c=e.length-1,u=e[0],a=e[c],f=o.length-1,h=o[0],p=o[f];for(;r<=c&&i<=f;)null==u?u=e[++r]:null==a?a=e[--c]:null==h?h=o[++i]:null==p?p=o[--f]:I(u,h)?(J(u,h,l),u=e[++r],h=o[++i]):I(a,p)?(J(a,p,l),a=e[--c],p=o[--f]):I(u,p)?(J(u,p,l),Q(t,u.m,a.m.nextSibling),u=e[++r],p=o[--f]):I(a,h)?(J(a,h,l),Q(t,a.m,u.m),a=e[--c],h=o[++i]):(s=_(e&&e[i],n,i),h=o[++i],s&&Q(u.m.parentNode,s,u.m));r>c?z(t,null==o[f+1]?null:o[f+1].m,n,o,i,f):i>f&&B(e,r,c)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),z(o,null,e,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1)):t.i!==r&&(o.data=r)},K=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(K)},Q=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),X=(t,e)=>{e&&!t.v&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.v=e)))},Y=(t,e)=>{if(t.o|=16,!(4&t.o))return X(t,t.S),S((()=>Z(t,e)));t.o|=512},Z=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(o=rt(n,"componentWillLoad")),tt(o,(()=>nt(t,n,e)))},tt=(t,e)=>et(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),et=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,nt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.j,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=L(e),l=i.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,r=H.get(t=t.head||t);if(r||H.set(t,r=new Set),!r.has(o)){{s=a.createElement("style"),s.innerHTML=l;const o=null!=(n=f.O)?n:E(a);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,n)}else if("host"in t)if(p){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);ot(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>lt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},ot=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.j,s=t.k||D(null,null),r=(t=>t&&t.p===R)(e)?e:A(null,null,e);if(M=o.tagName,l.C&&(r.u=r.u||{},l.C.map((([t,e])=>r.u[e]=o[t]))),n&&r.u)for(const t of Object.keys(r.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.u[t]=o[t]);r.p=null,r.o|=4,t.k=r,r.m=s.m=o.shadowRoot||o,J(s,r,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},lt=t=>{const e=t.$hostElement$,n=t.t,o=t.S;rt(n,"componentDidRender"),64&t.o||(t.o|=64,it(e),rt(n,"componentDidLoad"),t.M(e),o||st()),t.v&&(t.v(),t.v=void 0),512&t.o&&v((()=>Y(t,!1))),t.o&=-517},st=()=>{it(a.documentElement),v((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"general-about-us"}});return t.dispatchEvent(e),e})(u)))},rt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},it=t=>t.classList.add("hydrated"),ct=(t,e,o)=>{var l,r;const i=t.prototype;if(e.P||e.A||t.watchers){t.watchers&&!e.A&&(e.A=t.watchers);const c=Object.entries(null!=(l=e.P)?l:{});if(c.map((([t,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).D.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.D.get(e),u=r.o,a=r.t;if(o=((t,e)=>null==t||j(t)?t:1&e?t+"":t)(o,l.P[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.D.set(e,o),a)){if(l.A&&128&u){const t=l.A[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&u)&&Y(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.A)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.A)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.C)||l.push([t,s])),s}))]))}}return t},ut=(t,o={})=>{var l;const h=[],d=o.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let v,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],$:o[1],P:o[2],R:o[3]};4&c.o&&(g=!0),c.P=o[2],c.C=[],c.A=null!=(l=o[4])?l:{};const u=c.$,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,j:n,D:new Map};o.H=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?b.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.j,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(e,e.S=n);break}}o.P&&Object.entries(o.P).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.L){const t=(t=>{const e=t.$.replace(/-/g,"_"),n=t.L;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.$}#${e.T}" was not found`);o.isProxied||(n.A=o.watchers,ct(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=L(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.S,c=()=>Y(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const t=n(this);(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};c.L=t[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ct(a,c,1)))}))})),h.length>0&&(g&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=f.O)?l:E(a);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((t=>t.connectedCallback())):f.jmp((()=>v=setTimeout(st,30)))},at=t=>f.O=t;export{ut as b,A as h,h as p,o as r,at as s}
|