@everymatrix/general-about-us 1.56.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.
Files changed (25) hide show
  1. package/dist/cjs/general-about-us.cjs.entry.js +11 -24
  2. package/dist/cjs/general-about-us.cjs.js +2 -2
  3. package/dist/cjs/{index-e275fea3.js → index-8d5dc10c.js} +69 -204
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/general-about-us/general-about-us.js +10 -37
  7. package/dist/esm/general-about-us.entry.js +11 -24
  8. package/dist/esm/general-about-us.js +3 -3
  9. package/dist/esm/{index-5f2a97a2.js → index-894e6ee1.js} +69 -204
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/general-about-us/general-about-us.esm.js +1 -1
  12. package/dist/general-about-us/p-64274deb.js +2 -0
  13. package/dist/general-about-us/p-d99428a7.entry.js +1 -0
  14. 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
  15. 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
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/general-about-us/p-73146ff7.entry.js +0 -1
  19. package/dist/general-about-us/p-c303f99c.js +0 -2
  20. 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
  21. 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
  22. /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
  23. /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
  24. /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
  25. /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
@@ -1,21 +1,17 @@
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: 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, 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 };
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.26.0 | MIT Licensed | https://stenciljs.com
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) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/client/client-host-ref.ts
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -139,6 +128,12 @@ var flush = () => {
139
128
  };
140
129
  var nextTick = (cb) => promiseResolve().then(cb);
141
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
134
+
135
+ // src/utils/helpers.ts
136
+ var isDef = (v) => v != null;
142
137
  var isComplexType = (o) => {
143
138
  o = typeof o;
144
139
  return o === "object" || o === "function";
@@ -310,40 +305,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
310
305
  }
311
306
  if (!appliedStyles.has(scopeId2)) {
312
307
  {
313
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
308
+ styleElm = doc.createElement("style");
314
309
  styleElm.innerHTML = style;
315
310
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
316
311
  if (nonce != null) {
317
312
  styleElm.setAttribute("nonce", nonce);
318
313
  }
319
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
320
- if (styleContainerNode.nodeName === "HEAD") {
321
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
322
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
323
- styleContainerNode.insertBefore(
324
- styleElm,
325
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
326
- );
327
- } else if ("host" in styleContainerNode) {
328
- if (supportsConstructableStylesheets) {
329
- const stylesheet = new CSSStyleSheet();
330
- stylesheet.replaceSync(style);
331
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
332
- } else {
333
- const existingStyleContainer = styleContainerNode.querySelector("style");
334
- if (existingStyleContainer) {
335
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
336
- } else {
337
- styleContainerNode.prepend(styleElm);
338
- }
339
- }
340
- } else {
341
- styleContainerNode.append(styleElm);
342
- }
343
- }
344
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
345
- styleContainerNode.insertBefore(styleElm, null);
346
- }
314
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
347
315
  }
348
316
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
349
317
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -366,25 +334,23 @@ var attachStyles = (hostRef) => {
366
334
  const scopeId2 = addStyle(
367
335
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
368
336
  cmpMeta);
369
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
337
+ if (flags & 10 /* needsScopedEncapsulation */) {
370
338
  elm["s-sc"] = scopeId2;
371
339
  elm.classList.add(scopeId2 + "-h");
372
340
  }
373
341
  endAttachStyles();
374
342
  };
375
343
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
376
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
344
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
377
345
  if (oldValue !== newValue) {
378
346
  let isProp = isMemberInElement(elm, memberName);
379
347
  let ln = memberName.toLowerCase();
380
348
  if (memberName === "class") {
381
349
  const classList = elm.classList;
382
350
  const oldClasses = parseClassList(oldValue);
383
- let newClasses = parseClassList(newValue);
384
- {
385
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
386
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
387
- }
351
+ const newClasses = parseClassList(newValue);
352
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
353
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
388
354
  } else if (memberName === "style") {
389
355
  {
390
356
  for (const prop in oldValue) {
@@ -437,13 +403,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
437
403
  if (memberName === "list") {
438
404
  isProp = false;
439
405
  } else if (oldValue == null || elm[memberName] != n) {
440
- if (typeof elm.__lookupSetter__(memberName) === "function") {
441
- elm[memberName] = n;
442
- } else {
443
- elm.setAttribute(memberName, n);
444
- }
406
+ elm[memberName] = n;
445
407
  }
446
- } else if (elm[memberName] !== newValue) {
408
+ } else {
447
409
  elm[memberName] = newValue;
448
410
  }
449
411
  } catch (e) {
@@ -465,44 +427,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
465
427
  }
466
428
  };
467
429
  var parseClassListRegex = /\s/;
468
- var parseClassList = (value) => {
469
- if (typeof value === "object" && value && "baseVal" in value) {
470
- value = value.baseVal;
471
- }
472
- if (!value || typeof value !== "string") {
473
- return [];
474
- }
475
- return value.split(parseClassListRegex);
476
- };
430
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
477
431
  var CAPTURE_EVENT_SUFFIX = "Capture";
478
432
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
479
433
 
480
434
  // src/runtime/vdom/update-element.ts
481
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
435
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
482
436
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
483
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
484
- const newVnodeAttrs = newVnode.$attrs$ || {};
437
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
438
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
485
439
  {
486
440
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
487
441
  if (!(memberName in newVnodeAttrs)) {
488
- setAccessor(
489
- elm,
490
- memberName,
491
- oldVnodeAttrs[memberName],
492
- void 0,
493
- isSvgMode2,
494
- newVnode.$flags$);
442
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
495
443
  }
496
444
  }
497
445
  }
498
446
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
499
- setAccessor(
500
- elm,
501
- memberName,
502
- oldVnodeAttrs[memberName],
503
- newVnodeAttrs[memberName],
504
- isSvgMode2,
505
- newVnode.$flags$);
447
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
506
448
  }
507
449
  };
508
450
  function sortedAttrNames(attrNames) {
@@ -514,10 +456,13 @@ function sortedAttrNames(attrNames) {
514
456
  attrNames
515
457
  );
516
458
  }
459
+
460
+ // src/runtime/vdom/vdom-render.ts
461
+ var scopeId;
517
462
  var hostTagName;
518
463
  var useNativeShadowDom = false;
519
464
  var isSvgMode = false;
520
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
465
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
521
466
  const newVNode2 = newParentVNode.$children$[childIndex];
522
467
  let i2 = 0;
523
468
  let elm;
@@ -531,6 +476,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
531
476
  {
532
477
  updateElement(null, newVNode2, isSvgMode);
533
478
  }
479
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
480
+ elm.classList.add(elm["s-si"] = scopeId);
481
+ }
534
482
  if (newVNode2.$children$) {
535
483
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
536
484
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -635,9 +583,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
635
583
  };
636
584
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
637
585
  if (leftVNode.$tag$ === rightVNode.$tag$) {
638
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
639
- leftVNode.$key$ = rightVNode.$key$;
640
- }
641
586
  return true;
642
587
  }
643
588
  return false;
@@ -660,10 +605,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
660
605
  elm.textContent = "";
661
606
  }
662
607
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
663
- } else if (
664
- // don't do this on initial render as it can cause non-hydrated content to be removed
665
- !isInitialRender && BUILD.updatable && oldChildren !== null
666
- ) {
608
+ } else if (oldChildren !== null) {
667
609
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
668
610
  }
669
611
  } else if (oldVNode.$text$ !== text) {
@@ -677,9 +619,8 @@ var nullifyVNodeRefs = (vNode) => {
677
619
  }
678
620
  };
679
621
  var insertBefore = (parent, newNode, reference) => {
680
- {
681
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
682
- }
622
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
623
+ return inserted;
683
624
  };
684
625
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
685
626
  const hostElm = hostRef.$hostElement$;
@@ -704,21 +645,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
704
645
  rootVnode.$flags$ |= 4 /* isHost */;
705
646
  hostRef.$vnode$ = rootVnode;
706
647
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
707
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
648
+ {
649
+ scopeId = hostElm["s-sc"];
650
+ }
651
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
708
652
  patch(oldVNode, rootVnode, isInitialLoad);
709
653
  };
710
654
 
711
655
  // src/runtime/update-component.ts
712
656
  var attachToAncestor = (hostRef, ancestorComponent) => {
713
657
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
714
- const index = ancestorComponent["s-p"].push(
715
- new Promise(
716
- (r) => hostRef.$onRenderResolve$ = () => {
717
- ancestorComponent["s-p"].splice(index - 1, 1);
718
- r();
719
- }
720
- )
721
- );
658
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
722
659
  }
723
660
  };
724
661
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -745,7 +682,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
745
682
  let maybePromise;
746
683
  if (isInitialLoad) {
747
684
  {
748
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
685
+ maybePromise = safeCall(instance, "componentWillLoad");
749
686
  }
750
687
  }
751
688
  endSchedule();
@@ -819,7 +756,7 @@ var postUpdateComponent = (hostRef) => {
819
756
  addHydratedFlag(elm);
820
757
  }
821
758
  {
822
- safeCall(instance, "componentDidLoad", void 0, elm);
759
+ safeCall(instance, "componentDidLoad");
823
760
  }
824
761
  endPostUpdate();
825
762
  {
@@ -843,14 +780,17 @@ var postUpdateComponent = (hostRef) => {
843
780
  }
844
781
  };
845
782
  var appDidLoad = (who) => {
783
+ {
784
+ addHydratedFlag(doc.documentElement);
785
+ }
846
786
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
847
787
  };
848
- var safeCall = (instance, method, arg, elm) => {
788
+ var safeCall = (instance, method, arg) => {
849
789
  if (instance && instance[method]) {
850
790
  try {
851
791
  return instance[method](arg);
852
792
  } catch (e) {
853
- consoleError(e, elm);
793
+ consoleError(e);
854
794
  }
855
795
  }
856
796
  return void 0;
@@ -909,68 +849,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
909
849
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
910
850
  members.map(([memberName, [memberFlags]]) => {
911
851
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
912
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
913
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
914
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
915
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
916
- Object.defineProperty(prototype, memberName, {
917
- get() {
918
- {
919
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
920
- return getValue(this, memberName);
921
- }
922
- const ref = getHostRef(this);
923
- const instance = ref ? ref.$lazyInstance$ : prototype;
924
- if (!instance) return;
925
- return instance[memberName];
926
- }
927
- },
928
- configurable: true,
929
- enumerable: true
930
- });
931
- }
932
852
  Object.defineProperty(prototype, memberName, {
853
+ get() {
854
+ return getValue(this, memberName);
855
+ },
933
856
  set(newValue) {
934
- const ref = getHostRef(this);
935
- if (origSetter) {
936
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
937
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
938
- newValue = ref.$instanceValues$.get(memberName);
939
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
940
- ref.$instanceValues$.set(memberName, currentValue);
941
- }
942
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
943
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
944
- setValue(this, memberName, newValue, cmpMeta);
945
- return;
946
- }
947
- {
948
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
949
- setValue(this, memberName, newValue, cmpMeta);
950
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
951
- ref.$onReadyPromise$.then(() => {
952
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
953
- ref.$lazyInstance$[memberName] = newValue;
954
- }
955
- });
956
- }
957
- return;
958
- }
959
- const setterSetVal = () => {
960
- const currentValue = ref.$lazyInstance$[memberName];
961
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
962
- ref.$instanceValues$.set(memberName, currentValue);
963
- }
964
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
965
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
966
- };
967
- if (ref.$lazyInstance$) {
968
- setterSetVal();
969
- } else {
970
- ref.$onReadyPromise$.then(() => setterSetVal());
971
- }
972
- }
973
- }
857
+ setValue(this, memberName, newValue, cmpMeta);
858
+ },
859
+ configurable: true,
860
+ enumerable: true
974
861
  });
975
862
  }
976
863
  });
@@ -980,11 +867,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
980
867
  plt.jmp(() => {
981
868
  var _a2;
982
869
  const propName = attrNameToPropName.get(attrName);
983
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
870
+ if (this.hasOwnProperty(propName)) {
984
871
  newValue = this[propName];
985
872
  delete this[propName];
986
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
987
- this[propName] == newValue) {
873
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
988
874
  return;
989
875
  } else if (propName == null) {
990
876
  const hostRef = getHostRef(this);
@@ -1000,11 +886,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1000
886
  }
1001
887
  return;
1002
888
  }
1003
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1004
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1005
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1006
- this[propName] = newValue;
1007
- }
889
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1008
890
  });
1009
891
  };
1010
892
  Cstr.observedAttributes = Array.from(
@@ -1033,7 +915,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1033
915
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1034
916
  const bundleId = cmpMeta.$lazyBundleId$;
1035
917
  if (bundleId) {
1036
- const CstrImport = loadModule(cmpMeta, hostRef);
918
+ const CstrImport = loadModule(cmpMeta);
1037
919
  if (CstrImport && "then" in CstrImport) {
1038
920
  const endLoad = uniqueTime();
1039
921
  Cstr = await CstrImport;
@@ -1058,7 +940,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1058
940
  try {
1059
941
  new Cstr(hostRef);
1060
942
  } catch (e) {
1061
- consoleError(e, elm);
943
+ consoleError(e);
1062
944
  }
1063
945
  {
1064
946
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1093,7 +975,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1093
975
  schedule();
1094
976
  }
1095
977
  };
1096
- var fireConnectedCallback = (instance, elm) => {
978
+ var fireConnectedCallback = (instance) => {
1097
979
  };
1098
980
 
1099
981
  // src/runtime/connected-callback.ts
@@ -1133,26 +1015,20 @@ var connectedCallback = (elm) => {
1133
1015
  endConnected();
1134
1016
  }
1135
1017
  };
1136
- var disconnectInstance = (instance, elm) => {
1018
+ var disconnectInstance = (instance) => {
1137
1019
  {
1138
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1020
+ safeCall(instance, "disconnectedCallback");
1139
1021
  }
1140
1022
  };
1141
1023
  var disconnectedCallback = async (elm) => {
1142
1024
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1143
1025
  const hostRef = getHostRef(elm);
1144
1026
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1145
- disconnectInstance(hostRef.$lazyInstance$, elm);
1027
+ disconnectInstance(hostRef.$lazyInstance$);
1146
1028
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1147
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1029
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1148
1030
  }
1149
1031
  }
1150
- if (rootAppliedStyles.has(elm)) {
1151
- rootAppliedStyles.delete(elm);
1152
- }
1153
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1154
- rootAppliedStyles.delete(elm.shadowRoot);
1155
- }
1156
1032
  };
1157
1033
 
1158
1034
  // src/runtime/bootstrap-lazy.ts
@@ -1233,17 +1109,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1233
1109
  }
1234
1110
  disconnectedCallback() {
1235
1111
  plt.jmp(() => disconnectedCallback(this));
1236
- plt.raf(() => {
1237
- var _a3;
1238
- const hostRef = getHostRef(this);
1239
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1240
- if (i2 > -1) {
1241
- deferredConnectedCallbacks.splice(i2, 1);
1242
- }
1243
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1244
- delete hostRef.$vnode$.$elm$;
1245
- }
1246
- });
1247
1112
  }
1248
1113
  componentOnReady() {
1249
1114
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-5f2a97a2.js';
2
- export { s as setNonce } from './index-5f2a97a2.js';
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) => {
@@ -1 +1 @@
1
- import{p as n,b as e}from"./p-c303f99c.js";export{s as setNonce}from"./p-c303f99c.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-73146ff7",[[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))));
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&&gtag("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}
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-about-us",
3
- "version": "1.56.0",
3
+ "version": "1.56.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",