@everymatrix/general-about-us 1.54.12 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/general-about-us.cjs.entry.js +11 -25
- package/dist/cjs/general-about-us.cjs.js +2 -2
- package/dist/cjs/{index-89f8f750.js → index-3d4db61a.js} +67 -168
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/general-about-us/general-about-us.js +10 -36
- package/dist/esm/general-about-us.entry.js +11 -25
- package/dist/esm/general-about-us.js +3 -3
- package/dist/esm/{index-1fa28ad9.js → index-f6c09f3b.js} +67 -168
- package/dist/esm/loader.js +2 -2
- package/dist/general-about-us/general-about-us.esm.js +1 -1
- package/dist/general-about-us/p-157a2384.entry.js +1 -0
- package/dist/general-about-us/p-a4cae9d7.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/general-about-us/p-1249f60f.js +0 -2
- package/dist/general-about-us/p-a7e030e4.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-about-us/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-about-us/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-about-us/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-about-us/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-3d4db61a.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
@@ -101,30 +101,6 @@ const GeneralAboutUsStyle0 = generalAboutUsCss;
|
|
|
101
101
|
const GeneralAboutUs = class {
|
|
102
102
|
constructor(hostRef) {
|
|
103
103
|
index.registerInstance(this, hostRef);
|
|
104
|
-
/**
|
|
105
|
-
* Language of the widget
|
|
106
|
-
*/
|
|
107
|
-
this.language = 'en';
|
|
108
|
-
/**
|
|
109
|
-
* User roles
|
|
110
|
-
*/
|
|
111
|
-
this.userRoles = 'everyone';
|
|
112
|
-
/**
|
|
113
|
-
* CMS Endpoint stage
|
|
114
|
-
*/
|
|
115
|
-
this.cmsEnv = 'stage';
|
|
116
|
-
/**
|
|
117
|
-
* Client custom styling via inline style
|
|
118
|
-
*/
|
|
119
|
-
this.clientStyling = '';
|
|
120
|
-
/**
|
|
121
|
-
* Client custom styling via url
|
|
122
|
-
*/
|
|
123
|
-
this.clientStylingUrl = '';
|
|
124
|
-
this.hasErrors = false;
|
|
125
|
-
this.isLoading = true;
|
|
126
|
-
this.limitStylingAppends = false;
|
|
127
|
-
this.device = '';
|
|
128
104
|
this.handleClick = (url, target, location, isExternal) => {
|
|
129
105
|
window.postMessage({ type: 'NavigateTo', path: url, target: target, locations: location, externalLink: isExternal || false }, window.location.href);
|
|
130
106
|
// @ts-ignore Analytics event
|
|
@@ -184,6 +160,16 @@ const GeneralAboutUs = class {
|
|
|
184
160
|
}
|
|
185
161
|
return index.h("div", { class: "Title" }, index.h("span", { class: "FirstWord" }, firstWord, " "), index.h("span", null, restOfTitle));
|
|
186
162
|
};
|
|
163
|
+
this.cmsEndpoint = undefined;
|
|
164
|
+
this.language = 'en';
|
|
165
|
+
this.userRoles = 'everyone';
|
|
166
|
+
this.cmsEnv = 'stage';
|
|
167
|
+
this.clientStyling = '';
|
|
168
|
+
this.clientStylingUrl = '';
|
|
169
|
+
this.hasErrors = false;
|
|
170
|
+
this.isLoading = true;
|
|
171
|
+
this.limitStylingAppends = false;
|
|
172
|
+
this.device = '';
|
|
187
173
|
}
|
|
188
174
|
watchEndpoint(newValue, oldValue) {
|
|
189
175
|
if (newValue && newValue != oldValue && this.cmsEndpoint) {
|
|
@@ -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-3d4db61a.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-about-us.cjs.js', document.baseURI).href));
|
|
@@ -21,23 +21,19 @@ 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: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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,
|
|
24
|
+
const BUILD = /* general-about-us */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -161,6 +150,12 @@ var flush = () => {
|
|
|
161
150
|
};
|
|
162
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
163
152
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
+
|
|
154
|
+
// src/utils/constants.ts
|
|
155
|
+
var EMPTY_OBJ = {};
|
|
156
|
+
|
|
157
|
+
// src/utils/helpers.ts
|
|
158
|
+
var isDef = (v) => v != null;
|
|
164
159
|
var isComplexType = (o) => {
|
|
165
160
|
o = typeof o;
|
|
166
161
|
return o === "object" || o === "function";
|
|
@@ -332,7 +327,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
332
327
|
}
|
|
333
328
|
if (!appliedStyles.has(scopeId2)) {
|
|
334
329
|
{
|
|
335
|
-
styleElm =
|
|
330
|
+
styleElm = doc.createElement("style");
|
|
336
331
|
styleElm.innerHTML = style;
|
|
337
332
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
338
333
|
if (nonce != null) {
|
|
@@ -342,10 +337,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
342
337
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
343
338
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
344
339
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
345
|
-
styleContainerNode.insertBefore(
|
|
346
|
-
styleElm,
|
|
347
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
348
|
-
);
|
|
340
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
349
341
|
} else if ("host" in styleContainerNode) {
|
|
350
342
|
if (supportsConstructableStylesheets) {
|
|
351
343
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -363,7 +355,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
363
355
|
styleContainerNode.append(styleElm);
|
|
364
356
|
}
|
|
365
357
|
}
|
|
366
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
358
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
367
359
|
styleContainerNode.insertBefore(styleElm, null);
|
|
368
360
|
}
|
|
369
361
|
}
|
|
@@ -388,25 +380,23 @@ var attachStyles = (hostRef) => {
|
|
|
388
380
|
const scopeId2 = addStyle(
|
|
389
381
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
390
382
|
cmpMeta);
|
|
391
|
-
if (
|
|
383
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
392
384
|
elm["s-sc"] = scopeId2;
|
|
393
385
|
elm.classList.add(scopeId2 + "-h");
|
|
394
386
|
}
|
|
395
387
|
endAttachStyles();
|
|
396
388
|
};
|
|
397
389
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
398
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
390
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
399
391
|
if (oldValue !== newValue) {
|
|
400
392
|
let isProp = isMemberInElement(elm, memberName);
|
|
401
393
|
let ln = memberName.toLowerCase();
|
|
402
394
|
if (memberName === "class") {
|
|
403
395
|
const classList = elm.classList;
|
|
404
396
|
const oldClasses = parseClassList(oldValue);
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
409
|
-
}
|
|
397
|
+
const newClasses = parseClassList(newValue);
|
|
398
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
399
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
410
400
|
} else if (memberName === "style") {
|
|
411
401
|
{
|
|
412
402
|
for (const prop in oldValue) {
|
|
@@ -465,7 +455,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
465
455
|
elm.setAttribute(memberName, n);
|
|
466
456
|
}
|
|
467
457
|
}
|
|
468
|
-
} else
|
|
458
|
+
} else {
|
|
469
459
|
elm[memberName] = newValue;
|
|
470
460
|
}
|
|
471
461
|
} catch (e) {
|
|
@@ -487,44 +477,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
487
477
|
}
|
|
488
478
|
};
|
|
489
479
|
var parseClassListRegex = /\s/;
|
|
490
|
-
var parseClassList = (value) =>
|
|
491
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
492
|
-
value = value.baseVal;
|
|
493
|
-
}
|
|
494
|
-
if (!value || typeof value !== "string") {
|
|
495
|
-
return [];
|
|
496
|
-
}
|
|
497
|
-
return value.split(parseClassListRegex);
|
|
498
|
-
};
|
|
480
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
499
481
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
500
482
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
501
483
|
|
|
502
484
|
// src/runtime/vdom/update-element.ts
|
|
503
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
485
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
504
486
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
505
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
506
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
487
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
488
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
507
489
|
{
|
|
508
490
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
509
491
|
if (!(memberName in newVnodeAttrs)) {
|
|
510
|
-
setAccessor(
|
|
511
|
-
elm,
|
|
512
|
-
memberName,
|
|
513
|
-
oldVnodeAttrs[memberName],
|
|
514
|
-
void 0,
|
|
515
|
-
isSvgMode2,
|
|
516
|
-
newVnode.$flags$);
|
|
492
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
517
493
|
}
|
|
518
494
|
}
|
|
519
495
|
}
|
|
520
496
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
521
|
-
setAccessor(
|
|
522
|
-
elm,
|
|
523
|
-
memberName,
|
|
524
|
-
oldVnodeAttrs[memberName],
|
|
525
|
-
newVnodeAttrs[memberName],
|
|
526
|
-
isSvgMode2,
|
|
527
|
-
newVnode.$flags$);
|
|
497
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
528
498
|
}
|
|
529
499
|
};
|
|
530
500
|
function sortedAttrNames(attrNames) {
|
|
@@ -536,10 +506,13 @@ function sortedAttrNames(attrNames) {
|
|
|
536
506
|
attrNames
|
|
537
507
|
);
|
|
538
508
|
}
|
|
509
|
+
|
|
510
|
+
// src/runtime/vdom/vdom-render.ts
|
|
511
|
+
var scopeId;
|
|
539
512
|
var hostTagName;
|
|
540
513
|
var useNativeShadowDom = false;
|
|
541
514
|
var isSvgMode = false;
|
|
542
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
515
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
543
516
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
544
517
|
let i2 = 0;
|
|
545
518
|
let elm;
|
|
@@ -553,6 +526,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
553
526
|
{
|
|
554
527
|
updateElement(null, newVNode2, isSvgMode);
|
|
555
528
|
}
|
|
529
|
+
const rootNode = elm.getRootNode();
|
|
530
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
531
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
532
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
533
|
+
}
|
|
556
534
|
if (newVNode2.$children$) {
|
|
557
535
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
558
536
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -657,9 +635,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
657
635
|
};
|
|
658
636
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
659
637
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
660
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
661
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
662
|
-
}
|
|
663
638
|
return true;
|
|
664
639
|
}
|
|
665
640
|
return false;
|
|
@@ -699,9 +674,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
699
674
|
}
|
|
700
675
|
};
|
|
701
676
|
var insertBefore = (parent, newNode, reference) => {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}
|
|
677
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
678
|
+
return inserted;
|
|
705
679
|
};
|
|
706
680
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
707
681
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -726,21 +700,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
726
700
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
727
701
|
hostRef.$vnode$ = rootVnode;
|
|
728
702
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
729
|
-
|
|
703
|
+
{
|
|
704
|
+
scopeId = hostElm["s-sc"];
|
|
705
|
+
}
|
|
706
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
730
707
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
731
708
|
};
|
|
732
709
|
|
|
733
710
|
// src/runtime/update-component.ts
|
|
734
711
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
735
712
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
736
|
-
|
|
737
|
-
new Promise(
|
|
738
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
739
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
740
|
-
r();
|
|
741
|
-
}
|
|
742
|
-
)
|
|
743
|
-
);
|
|
713
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
744
714
|
}
|
|
745
715
|
};
|
|
746
716
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -767,7 +737,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
767
737
|
let maybePromise;
|
|
768
738
|
if (isInitialLoad) {
|
|
769
739
|
{
|
|
770
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
740
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
771
741
|
}
|
|
772
742
|
}
|
|
773
743
|
endSchedule();
|
|
@@ -836,7 +806,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
836
806
|
const instance = hostRef.$lazyInstance$ ;
|
|
837
807
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
838
808
|
{
|
|
839
|
-
safeCall(instance, "componentDidRender"
|
|
809
|
+
safeCall(instance, "componentDidRender");
|
|
840
810
|
}
|
|
841
811
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
842
812
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -844,7 +814,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
844
814
|
addHydratedFlag(elm);
|
|
845
815
|
}
|
|
846
816
|
{
|
|
847
|
-
safeCall(instance, "componentDidLoad"
|
|
817
|
+
safeCall(instance, "componentDidLoad");
|
|
848
818
|
}
|
|
849
819
|
endPostUpdate();
|
|
850
820
|
{
|
|
@@ -868,14 +838,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
868
838
|
}
|
|
869
839
|
};
|
|
870
840
|
var appDidLoad = (who) => {
|
|
841
|
+
{
|
|
842
|
+
addHydratedFlag(doc.documentElement);
|
|
843
|
+
}
|
|
871
844
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
872
845
|
};
|
|
873
|
-
var safeCall = (instance, method, arg
|
|
846
|
+
var safeCall = (instance, method, arg) => {
|
|
874
847
|
if (instance && instance[method]) {
|
|
875
848
|
try {
|
|
876
849
|
return instance[method](arg);
|
|
877
850
|
} catch (e) {
|
|
878
|
-
consoleError(e
|
|
851
|
+
consoleError(e);
|
|
879
852
|
}
|
|
880
853
|
}
|
|
881
854
|
return void 0;
|
|
@@ -934,68 +907,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
934
907
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
935
908
|
members.map(([memberName, [memberFlags]]) => {
|
|
936
909
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
937
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
938
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
939
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
940
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
941
|
-
Object.defineProperty(prototype, memberName, {
|
|
942
|
-
get() {
|
|
943
|
-
{
|
|
944
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
945
|
-
return getValue(this, memberName);
|
|
946
|
-
}
|
|
947
|
-
const ref = getHostRef(this);
|
|
948
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
949
|
-
if (!instance) return;
|
|
950
|
-
return instance[memberName];
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
configurable: true,
|
|
954
|
-
enumerable: true
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
910
|
Object.defineProperty(prototype, memberName, {
|
|
911
|
+
get() {
|
|
912
|
+
return getValue(this, memberName);
|
|
913
|
+
},
|
|
958
914
|
set(newValue) {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
964
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
965
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
966
|
-
}
|
|
967
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
968
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
969
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
970
|
-
return;
|
|
971
|
-
}
|
|
972
|
-
{
|
|
973
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
974
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
975
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
976
|
-
ref.$onReadyPromise$.then(() => {
|
|
977
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
978
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
979
|
-
}
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
return;
|
|
983
|
-
}
|
|
984
|
-
const setterSetVal = () => {
|
|
985
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
986
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
987
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
988
|
-
}
|
|
989
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
990
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
991
|
-
};
|
|
992
|
-
if (ref.$lazyInstance$) {
|
|
993
|
-
setterSetVal();
|
|
994
|
-
} else {
|
|
995
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
}
|
|
915
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
916
|
+
},
|
|
917
|
+
configurable: true,
|
|
918
|
+
enumerable: true
|
|
999
919
|
});
|
|
1000
920
|
}
|
|
1001
921
|
});
|
|
@@ -1005,7 +925,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1005
925
|
plt.jmp(() => {
|
|
1006
926
|
var _a2;
|
|
1007
927
|
const propName = attrNameToPropName.get(attrName);
|
|
1008
|
-
if (this.hasOwnProperty(propName)
|
|
928
|
+
if (this.hasOwnProperty(propName)) {
|
|
1009
929
|
newValue = this[propName];
|
|
1010
930
|
delete this[propName];
|
|
1011
931
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1025,11 +945,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1025
945
|
}
|
|
1026
946
|
return;
|
|
1027
947
|
}
|
|
1028
|
-
|
|
1029
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1030
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1031
|
-
this[propName] = newValue;
|
|
1032
|
-
}
|
|
948
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1033
949
|
});
|
|
1034
950
|
};
|
|
1035
951
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1058,7 +974,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1058
974
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1059
975
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1060
976
|
if (bundleId) {
|
|
1061
|
-
const CstrImport = loadModule(cmpMeta
|
|
977
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1062
978
|
if (CstrImport && "then" in CstrImport) {
|
|
1063
979
|
const endLoad = uniqueTime();
|
|
1064
980
|
Cstr = await CstrImport;
|
|
@@ -1083,7 +999,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1083
999
|
try {
|
|
1084
1000
|
new Cstr(hostRef);
|
|
1085
1001
|
} catch (e) {
|
|
1086
|
-
consoleError(e
|
|
1002
|
+
consoleError(e);
|
|
1087
1003
|
}
|
|
1088
1004
|
{
|
|
1089
1005
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1118,7 +1034,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1118
1034
|
schedule();
|
|
1119
1035
|
}
|
|
1120
1036
|
};
|
|
1121
|
-
var fireConnectedCallback = (instance
|
|
1037
|
+
var fireConnectedCallback = (instance) => {
|
|
1122
1038
|
};
|
|
1123
1039
|
|
|
1124
1040
|
// src/runtime/connected-callback.ts
|
|
@@ -1158,7 +1074,7 @@ var connectedCallback = (elm) => {
|
|
|
1158
1074
|
endConnected();
|
|
1159
1075
|
}
|
|
1160
1076
|
};
|
|
1161
|
-
var disconnectInstance = (instance
|
|
1077
|
+
var disconnectInstance = (instance) => {
|
|
1162
1078
|
};
|
|
1163
1079
|
var disconnectedCallback = async (elm) => {
|
|
1164
1080
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1167,12 +1083,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1167
1083
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1168
1084
|
}
|
|
1169
1085
|
}
|
|
1170
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1171
|
-
rootAppliedStyles.delete(elm);
|
|
1172
|
-
}
|
|
1173
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1174
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1175
|
-
}
|
|
1176
1086
|
};
|
|
1177
1087
|
|
|
1178
1088
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1253,17 +1163,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1253
1163
|
}
|
|
1254
1164
|
disconnectedCallback() {
|
|
1255
1165
|
plt.jmp(() => disconnectedCallback(this));
|
|
1256
|
-
plt.raf(() => {
|
|
1257
|
-
var _a3;
|
|
1258
|
-
const hostRef = getHostRef(this);
|
|
1259
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1260
|
-
if (i2 > -1) {
|
|
1261
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1262
|
-
}
|
|
1263
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1264
|
-
delete hostRef.$vnode$.$elm$;
|
|
1265
|
-
}
|
|
1266
|
-
});
|
|
1267
1166
|
}
|
|
1268
1167
|
componentOnReady() {
|
|
1269
1168
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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-3d4db61a.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -4,30 +4,6 @@ import { getDeviceCustom, checkDeviceType, getDevicePlatform } from "../../utils
|
|
|
4
4
|
import chevronRight from "../../utils/chevron.svg";
|
|
5
5
|
export class GeneralAboutUs {
|
|
6
6
|
constructor() {
|
|
7
|
-
/**
|
|
8
|
-
* Language of the widget
|
|
9
|
-
*/
|
|
10
|
-
this.language = 'en';
|
|
11
|
-
/**
|
|
12
|
-
* User roles
|
|
13
|
-
*/
|
|
14
|
-
this.userRoles = 'everyone';
|
|
15
|
-
/**
|
|
16
|
-
* CMS Endpoint stage
|
|
17
|
-
*/
|
|
18
|
-
this.cmsEnv = 'stage';
|
|
19
|
-
/**
|
|
20
|
-
* Client custom styling via inline style
|
|
21
|
-
*/
|
|
22
|
-
this.clientStyling = '';
|
|
23
|
-
/**
|
|
24
|
-
* Client custom styling via url
|
|
25
|
-
*/
|
|
26
|
-
this.clientStylingUrl = '';
|
|
27
|
-
this.hasErrors = false;
|
|
28
|
-
this.isLoading = true;
|
|
29
|
-
this.limitStylingAppends = false;
|
|
30
|
-
this.device = '';
|
|
31
7
|
this.handleClick = (url, target, location, isExternal) => {
|
|
32
8
|
window.postMessage({ type: 'NavigateTo', path: url, target: target, locations: location, externalLink: isExternal || false }, window.location.href);
|
|
33
9
|
// @ts-ignore Analytics event
|
|
@@ -87,6 +63,16 @@ export class GeneralAboutUs {
|
|
|
87
63
|
}
|
|
88
64
|
return h("div", { class: "Title" }, h("span", { class: "FirstWord" }, firstWord, " "), h("span", null, restOfTitle));
|
|
89
65
|
};
|
|
66
|
+
this.cmsEndpoint = undefined;
|
|
67
|
+
this.language = 'en';
|
|
68
|
+
this.userRoles = 'everyone';
|
|
69
|
+
this.cmsEnv = 'stage';
|
|
70
|
+
this.clientStyling = '';
|
|
71
|
+
this.clientStylingUrl = '';
|
|
72
|
+
this.hasErrors = false;
|
|
73
|
+
this.isLoading = true;
|
|
74
|
+
this.limitStylingAppends = false;
|
|
75
|
+
this.device = '';
|
|
90
76
|
}
|
|
91
77
|
watchEndpoint(newValue, oldValue) {
|
|
92
78
|
if (newValue && newValue != oldValue && this.cmsEndpoint) {
|
|
@@ -183,8 +169,6 @@ export class GeneralAboutUs {
|
|
|
183
169
|
"tags": [],
|
|
184
170
|
"text": "Endpoint URL for the source of data"
|
|
185
171
|
},
|
|
186
|
-
"getter": false,
|
|
187
|
-
"setter": false,
|
|
188
172
|
"attribute": "cms-endpoint",
|
|
189
173
|
"reflect": true
|
|
190
174
|
},
|
|
@@ -202,8 +186,6 @@ export class GeneralAboutUs {
|
|
|
202
186
|
"tags": [],
|
|
203
187
|
"text": "Language of the widget"
|
|
204
188
|
},
|
|
205
|
-
"getter": false,
|
|
206
|
-
"setter": false,
|
|
207
189
|
"attribute": "language",
|
|
208
190
|
"reflect": true,
|
|
209
191
|
"defaultValue": "'en'"
|
|
@@ -222,8 +204,6 @@ export class GeneralAboutUs {
|
|
|
222
204
|
"tags": [],
|
|
223
205
|
"text": "User roles"
|
|
224
206
|
},
|
|
225
|
-
"getter": false,
|
|
226
|
-
"setter": false,
|
|
227
207
|
"attribute": "user-roles",
|
|
228
208
|
"reflect": true,
|
|
229
209
|
"defaultValue": "'everyone'"
|
|
@@ -242,8 +222,6 @@ export class GeneralAboutUs {
|
|
|
242
222
|
"tags": [],
|
|
243
223
|
"text": "CMS Endpoint stage"
|
|
244
224
|
},
|
|
245
|
-
"getter": false,
|
|
246
|
-
"setter": false,
|
|
247
225
|
"attribute": "cms-env",
|
|
248
226
|
"reflect": true,
|
|
249
227
|
"defaultValue": "'stage'"
|
|
@@ -262,8 +240,6 @@ export class GeneralAboutUs {
|
|
|
262
240
|
"tags": [],
|
|
263
241
|
"text": "Client custom styling via inline style"
|
|
264
242
|
},
|
|
265
|
-
"getter": false,
|
|
266
|
-
"setter": false,
|
|
267
243
|
"attribute": "client-styling",
|
|
268
244
|
"reflect": true,
|
|
269
245
|
"defaultValue": "''"
|
|
@@ -282,8 +258,6 @@ export class GeneralAboutUs {
|
|
|
282
258
|
"tags": [],
|
|
283
259
|
"text": "Client custom styling via url"
|
|
284
260
|
},
|
|
285
|
-
"getter": false,
|
|
286
|
-
"setter": false,
|
|
287
261
|
"attribute": "client-styling-url",
|
|
288
262
|
"reflect": true,
|
|
289
263
|
"defaultValue": "''"
|