@everymatrix/general-about-us 1.53.0 → 1.53.11
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 +25 -11
- package/dist/cjs/general-about-us.cjs.js +2 -2
- package/dist/cjs/{index-3d4db61a.js → index-c6047b06.js} +162 -67
- 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 +36 -10
- package/dist/esm/general-about-us.entry.js +25 -11
- package/dist/esm/general-about-us.js +3 -3
- package/dist/esm/{index-f6c09f3b.js → index-88bbbb29.js} +162 -67
- 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-3e4ba4dc.js +2 -0
- package/dist/general-about-us/p-e9157831.entry.js +1 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.dev.d.ts +2 -0
- package/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
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-about-us/.stencil/packages/stencil/general-about-us/stencil.config.d.ts +0 -2
- 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 +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-c6047b06.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
@@ -101,6 +101,30 @@ 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 = '';
|
|
104
128
|
this.handleClick = (url, target, location, isExternal) => {
|
|
105
129
|
window.postMessage({ type: 'NavigateTo', path: url, target: target, locations: location, externalLink: isExternal || false }, window.location.href);
|
|
106
130
|
// @ts-ignore Analytics event
|
|
@@ -160,16 +184,6 @@ const GeneralAboutUs = class {
|
|
|
160
184
|
}
|
|
161
185
|
return index.h("div", { class: "Title" }, index.h("span", { class: "FirstWord" }, firstWord, " "), index.h("span", null, restOfTitle));
|
|
162
186
|
};
|
|
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 = '';
|
|
173
187
|
}
|
|
174
188
|
watchEndpoint(newValue, oldValue) {
|
|
175
189
|
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-c6047b06.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.25.1 | 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,19 +21,23 @@ 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, 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 };
|
|
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, modernPropertyDecls: 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.25.1 | 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
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -150,12 +161,6 @@ var flush = () => {
|
|
|
150
161
|
};
|
|
151
162
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
152
163
|
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;
|
|
159
164
|
var isComplexType = (o) => {
|
|
160
165
|
o = typeof o;
|
|
161
166
|
return o === "object" || o === "function";
|
|
@@ -327,7 +332,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
327
332
|
}
|
|
328
333
|
if (!appliedStyles.has(scopeId2)) {
|
|
329
334
|
{
|
|
330
|
-
styleElm = doc.createElement("style");
|
|
335
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
331
336
|
styleElm.innerHTML = style;
|
|
332
337
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
333
338
|
if (nonce != null) {
|
|
@@ -337,7 +342,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
337
342
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
338
343
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
339
344
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
340
|
-
styleContainerNode.insertBefore(
|
|
345
|
+
styleContainerNode.insertBefore(
|
|
346
|
+
styleElm,
|
|
347
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
348
|
+
);
|
|
341
349
|
} else if ("host" in styleContainerNode) {
|
|
342
350
|
if (supportsConstructableStylesheets) {
|
|
343
351
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -387,16 +395,18 @@ var attachStyles = (hostRef) => {
|
|
|
387
395
|
endAttachStyles();
|
|
388
396
|
};
|
|
389
397
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
390
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
398
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
391
399
|
if (oldValue !== newValue) {
|
|
392
400
|
let isProp = isMemberInElement(elm, memberName);
|
|
393
401
|
let ln = memberName.toLowerCase();
|
|
394
402
|
if (memberName === "class") {
|
|
395
403
|
const classList = elm.classList;
|
|
396
404
|
const oldClasses = parseClassList(oldValue);
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
405
|
+
let newClasses = parseClassList(newValue);
|
|
406
|
+
{
|
|
407
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
408
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
409
|
+
}
|
|
400
410
|
} else if (memberName === "style") {
|
|
401
411
|
{
|
|
402
412
|
for (const prop in oldValue) {
|
|
@@ -455,7 +465,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
455
465
|
elm.setAttribute(memberName, n);
|
|
456
466
|
}
|
|
457
467
|
}
|
|
458
|
-
} else {
|
|
468
|
+
} else if (elm[memberName] !== newValue) {
|
|
459
469
|
elm[memberName] = newValue;
|
|
460
470
|
}
|
|
461
471
|
} catch (e) {
|
|
@@ -477,24 +487,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
477
487
|
}
|
|
478
488
|
};
|
|
479
489
|
var parseClassListRegex = /\s/;
|
|
480
|
-
var parseClassList = (value) =>
|
|
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
|
+
};
|
|
481
499
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
482
500
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
483
501
|
|
|
484
502
|
// src/runtime/vdom/update-element.ts
|
|
485
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
503
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
486
504
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
487
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
488
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
505
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
506
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
489
507
|
{
|
|
490
508
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
491
509
|
if (!(memberName in newVnodeAttrs)) {
|
|
492
|
-
setAccessor(
|
|
510
|
+
setAccessor(
|
|
511
|
+
elm,
|
|
512
|
+
memberName,
|
|
513
|
+
oldVnodeAttrs[memberName],
|
|
514
|
+
void 0,
|
|
515
|
+
isSvgMode2,
|
|
516
|
+
newVnode.$flags$);
|
|
493
517
|
}
|
|
494
518
|
}
|
|
495
519
|
}
|
|
496
520
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
497
|
-
setAccessor(
|
|
521
|
+
setAccessor(
|
|
522
|
+
elm,
|
|
523
|
+
memberName,
|
|
524
|
+
oldVnodeAttrs[memberName],
|
|
525
|
+
newVnodeAttrs[memberName],
|
|
526
|
+
isSvgMode2,
|
|
527
|
+
newVnode.$flags$);
|
|
498
528
|
}
|
|
499
529
|
};
|
|
500
530
|
function sortedAttrNames(attrNames) {
|
|
@@ -506,13 +536,10 @@ function sortedAttrNames(attrNames) {
|
|
|
506
536
|
attrNames
|
|
507
537
|
);
|
|
508
538
|
}
|
|
509
|
-
|
|
510
|
-
// src/runtime/vdom/vdom-render.ts
|
|
511
|
-
var scopeId;
|
|
512
539
|
var hostTagName;
|
|
513
540
|
var useNativeShadowDom = false;
|
|
514
541
|
var isSvgMode = false;
|
|
515
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
542
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
516
543
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
517
544
|
let i2 = 0;
|
|
518
545
|
let elm;
|
|
@@ -526,11 +553,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
526
553
|
{
|
|
527
554
|
updateElement(null, newVNode2, isSvgMode);
|
|
528
555
|
}
|
|
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
|
-
}
|
|
534
556
|
if (newVNode2.$children$) {
|
|
535
557
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
536
558
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -635,6 +657,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
635
657
|
};
|
|
636
658
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
637
659
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
660
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
661
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
662
|
+
}
|
|
638
663
|
return true;
|
|
639
664
|
}
|
|
640
665
|
return false;
|
|
@@ -674,8 +699,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
674
699
|
}
|
|
675
700
|
};
|
|
676
701
|
var insertBefore = (parent, newNode, reference) => {
|
|
677
|
-
|
|
678
|
-
|
|
702
|
+
{
|
|
703
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
704
|
+
}
|
|
679
705
|
};
|
|
680
706
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
681
707
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -700,9 +726,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
700
726
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
701
727
|
hostRef.$vnode$ = rootVnode;
|
|
702
728
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
703
|
-
{
|
|
704
|
-
scopeId = hostElm["s-sc"];
|
|
705
|
-
}
|
|
706
729
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
707
730
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
708
731
|
};
|
|
@@ -710,7 +733,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
710
733
|
// src/runtime/update-component.ts
|
|
711
734
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
712
735
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
713
|
-
ancestorComponent["s-p"].push(
|
|
736
|
+
const index = ancestorComponent["s-p"].push(
|
|
737
|
+
new Promise(
|
|
738
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
739
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
740
|
+
r();
|
|
741
|
+
}
|
|
742
|
+
)
|
|
743
|
+
);
|
|
714
744
|
}
|
|
715
745
|
};
|
|
716
746
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -737,7 +767,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
737
767
|
let maybePromise;
|
|
738
768
|
if (isInitialLoad) {
|
|
739
769
|
{
|
|
740
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
770
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
741
771
|
}
|
|
742
772
|
}
|
|
743
773
|
endSchedule();
|
|
@@ -806,7 +836,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
806
836
|
const instance = hostRef.$lazyInstance$ ;
|
|
807
837
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
808
838
|
{
|
|
809
|
-
safeCall(instance, "componentDidRender");
|
|
839
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
810
840
|
}
|
|
811
841
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
812
842
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -814,7 +844,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
814
844
|
addHydratedFlag(elm);
|
|
815
845
|
}
|
|
816
846
|
{
|
|
817
|
-
safeCall(instance, "componentDidLoad");
|
|
847
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
818
848
|
}
|
|
819
849
|
endPostUpdate();
|
|
820
850
|
{
|
|
@@ -843,12 +873,12 @@ var appDidLoad = (who) => {
|
|
|
843
873
|
}
|
|
844
874
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
845
875
|
};
|
|
846
|
-
var safeCall = (instance, method, arg) => {
|
|
876
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
847
877
|
if (instance && instance[method]) {
|
|
848
878
|
try {
|
|
849
879
|
return instance[method](arg);
|
|
850
880
|
} catch (e) {
|
|
851
|
-
consoleError(e);
|
|
881
|
+
consoleError(e, elm);
|
|
852
882
|
}
|
|
853
883
|
}
|
|
854
884
|
return void 0;
|
|
@@ -907,15 +937,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
907
937
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
908
938
|
members.map(([memberName, [memberFlags]]) => {
|
|
909
939
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
940
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
941
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
942
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
943
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
944
|
+
Object.defineProperty(prototype, memberName, {
|
|
945
|
+
get() {
|
|
946
|
+
{
|
|
947
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
948
|
+
return getValue(this, memberName);
|
|
949
|
+
}
|
|
950
|
+
const ref = getHostRef(this);
|
|
951
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
952
|
+
if (!instance) return;
|
|
953
|
+
return instance[memberName];
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
configurable: true,
|
|
957
|
+
enumerable: true
|
|
958
|
+
});
|
|
959
|
+
}
|
|
910
960
|
Object.defineProperty(prototype, memberName, {
|
|
911
|
-
get() {
|
|
912
|
-
return getValue(this, memberName);
|
|
913
|
-
},
|
|
914
961
|
set(newValue) {
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
962
|
+
const ref = getHostRef(this);
|
|
963
|
+
if (origSetter) {
|
|
964
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
965
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
966
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
967
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
968
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
969
|
+
}
|
|
970
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
971
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
972
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
{
|
|
976
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
977
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
978
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
979
|
+
ref.$onReadyPromise$.then(() => {
|
|
980
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
981
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
982
|
+
}
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
return;
|
|
986
|
+
}
|
|
987
|
+
const setterSetVal = () => {
|
|
988
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
989
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
990
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
991
|
+
}
|
|
992
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
993
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
994
|
+
};
|
|
995
|
+
if (ref.$lazyInstance$) {
|
|
996
|
+
setterSetVal();
|
|
997
|
+
} else {
|
|
998
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
919
1002
|
});
|
|
920
1003
|
}
|
|
921
1004
|
});
|
|
@@ -925,7 +1008,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
925
1008
|
plt.jmp(() => {
|
|
926
1009
|
var _a2;
|
|
927
1010
|
const propName = attrNameToPropName.get(attrName);
|
|
928
|
-
if (this.hasOwnProperty(propName)) {
|
|
1011
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
929
1012
|
newValue = this[propName];
|
|
930
1013
|
delete this[propName];
|
|
931
1014
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -945,7 +1028,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
945
1028
|
}
|
|
946
1029
|
return;
|
|
947
1030
|
}
|
|
948
|
-
|
|
1031
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1032
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1033
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1034
|
+
this[propName] = newValue;
|
|
1035
|
+
}
|
|
949
1036
|
});
|
|
950
1037
|
};
|
|
951
1038
|
Cstr.observedAttributes = Array.from(
|
|
@@ -972,9 +1059,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
972
1059
|
let Cstr;
|
|
973
1060
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
974
1061
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1062
|
+
{
|
|
1063
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
978
1064
|
if (CstrImport && "then" in CstrImport) {
|
|
979
1065
|
const endLoad = uniqueTime();
|
|
980
1066
|
Cstr = await CstrImport;
|
|
@@ -999,7 +1085,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
999
1085
|
try {
|
|
1000
1086
|
new Cstr(hostRef);
|
|
1001
1087
|
} catch (e) {
|
|
1002
|
-
consoleError(e);
|
|
1088
|
+
consoleError(e, elm);
|
|
1003
1089
|
}
|
|
1004
1090
|
{
|
|
1005
1091
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1008,10 +1094,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1008
1094
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1009
1095
|
}
|
|
1010
1096
|
endNewInstance();
|
|
1011
|
-
} else {
|
|
1012
|
-
Cstr = elm.constructor;
|
|
1013
|
-
const cmpTag = elm.localName;
|
|
1014
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1015
1097
|
}
|
|
1016
1098
|
if (Cstr && Cstr.style) {
|
|
1017
1099
|
let style;
|
|
@@ -1034,7 +1116,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1034
1116
|
schedule();
|
|
1035
1117
|
}
|
|
1036
1118
|
};
|
|
1037
|
-
var fireConnectedCallback = (instance) => {
|
|
1119
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1038
1120
|
};
|
|
1039
1121
|
|
|
1040
1122
|
// src/runtime/connected-callback.ts
|
|
@@ -1074,7 +1156,7 @@ var connectedCallback = (elm) => {
|
|
|
1074
1156
|
endConnected();
|
|
1075
1157
|
}
|
|
1076
1158
|
};
|
|
1077
|
-
var disconnectInstance = (instance) => {
|
|
1159
|
+
var disconnectInstance = (instance, elm) => {
|
|
1078
1160
|
};
|
|
1079
1161
|
var disconnectedCallback = async (elm) => {
|
|
1080
1162
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1083,6 +1165,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1083
1165
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1084
1166
|
}
|
|
1085
1167
|
}
|
|
1168
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1169
|
+
rootAppliedStyles.delete(elm);
|
|
1170
|
+
}
|
|
1171
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1172
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1173
|
+
}
|
|
1086
1174
|
};
|
|
1087
1175
|
|
|
1088
1176
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1163,6 +1251,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1163
1251
|
}
|
|
1164
1252
|
disconnectedCallback() {
|
|
1165
1253
|
plt.jmp(() => disconnectedCallback(this));
|
|
1254
|
+
plt.raf(() => {
|
|
1255
|
+
var _a3;
|
|
1256
|
+
const hostRef = getHostRef(this);
|
|
1257
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1258
|
+
delete hostRef.$vnode$.$elm$;
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1166
1261
|
}
|
|
1167
1262
|
componentOnReady() {
|
|
1168
1263
|
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-c6047b06.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -4,6 +4,30 @@ 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 = '';
|
|
7
31
|
this.handleClick = (url, target, location, isExternal) => {
|
|
8
32
|
window.postMessage({ type: 'NavigateTo', path: url, target: target, locations: location, externalLink: isExternal || false }, window.location.href);
|
|
9
33
|
// @ts-ignore Analytics event
|
|
@@ -63,16 +87,6 @@ export class GeneralAboutUs {
|
|
|
63
87
|
}
|
|
64
88
|
return h("div", { class: "Title" }, h("span", { class: "FirstWord" }, firstWord, " "), h("span", null, restOfTitle));
|
|
65
89
|
};
|
|
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 = '';
|
|
76
90
|
}
|
|
77
91
|
watchEndpoint(newValue, oldValue) {
|
|
78
92
|
if (newValue && newValue != oldValue && this.cmsEndpoint) {
|
|
@@ -169,6 +183,8 @@ export class GeneralAboutUs {
|
|
|
169
183
|
"tags": [],
|
|
170
184
|
"text": "Endpoint URL for the source of data"
|
|
171
185
|
},
|
|
186
|
+
"getter": false,
|
|
187
|
+
"setter": false,
|
|
172
188
|
"attribute": "cms-endpoint",
|
|
173
189
|
"reflect": true
|
|
174
190
|
},
|
|
@@ -186,6 +202,8 @@ export class GeneralAboutUs {
|
|
|
186
202
|
"tags": [],
|
|
187
203
|
"text": "Language of the widget"
|
|
188
204
|
},
|
|
205
|
+
"getter": false,
|
|
206
|
+
"setter": false,
|
|
189
207
|
"attribute": "language",
|
|
190
208
|
"reflect": true,
|
|
191
209
|
"defaultValue": "'en'"
|
|
@@ -204,6 +222,8 @@ export class GeneralAboutUs {
|
|
|
204
222
|
"tags": [],
|
|
205
223
|
"text": "User roles"
|
|
206
224
|
},
|
|
225
|
+
"getter": false,
|
|
226
|
+
"setter": false,
|
|
207
227
|
"attribute": "user-roles",
|
|
208
228
|
"reflect": true,
|
|
209
229
|
"defaultValue": "'everyone'"
|
|
@@ -222,6 +242,8 @@ export class GeneralAboutUs {
|
|
|
222
242
|
"tags": [],
|
|
223
243
|
"text": "CMS Endpoint stage"
|
|
224
244
|
},
|
|
245
|
+
"getter": false,
|
|
246
|
+
"setter": false,
|
|
225
247
|
"attribute": "cms-env",
|
|
226
248
|
"reflect": true,
|
|
227
249
|
"defaultValue": "'stage'"
|
|
@@ -240,6 +262,8 @@ export class GeneralAboutUs {
|
|
|
240
262
|
"tags": [],
|
|
241
263
|
"text": "Client custom styling via inline style"
|
|
242
264
|
},
|
|
265
|
+
"getter": false,
|
|
266
|
+
"setter": false,
|
|
243
267
|
"attribute": "client-styling",
|
|
244
268
|
"reflect": true,
|
|
245
269
|
"defaultValue": "''"
|
|
@@ -258,6 +282,8 @@ export class GeneralAboutUs {
|
|
|
258
282
|
"tags": [],
|
|
259
283
|
"text": "Client custom styling via url"
|
|
260
284
|
},
|
|
285
|
+
"getter": false,
|
|
286
|
+
"setter": false,
|
|
261
287
|
"attribute": "client-styling-url",
|
|
262
288
|
"reflect": true,
|
|
263
289
|
"defaultValue": "''"
|