@everymatrix/general-footer-template 1.53.0 → 1.53.10

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 (38) hide show
  1. package/dist/cjs/custom-clock.cjs.entry.js +18 -6
  2. package/dist/cjs/custom-content-section.cjs.entry.js +81 -33
  3. package/dist/cjs/general-footer-template.cjs.entry.js +42 -18
  4. package/dist/cjs/general-footer-template.cjs.js +2 -2
  5. package/dist/cjs/image-list.cjs.entry.js +9 -4
  6. package/dist/cjs/{index-465b4ca9.js → index-bd066c40.js} +188 -92
  7. package/dist/cjs/link-section-list.cjs.entry.js +7 -4
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/custom-clock/custom-clock.js +25 -5
  11. package/dist/collection/components/custom-content-section/custom-content-section.js +14 -2
  12. package/dist/collection/components/general-footer-template/general-footer-template.js +71 -17
  13. package/dist/collection/components/image-list/image-list.js +14 -3
  14. package/dist/collection/components/link-section-list/link-section-list.js +16 -3
  15. package/dist/esm/custom-clock.entry.js +18 -6
  16. package/dist/esm/custom-content-section.entry.js +81 -33
  17. package/dist/esm/general-footer-template.entry.js +42 -18
  18. package/dist/esm/general-footer-template.js +3 -3
  19. package/dist/esm/image-list.entry.js +9 -4
  20. package/dist/esm/{index-9775f5ee.js → index-f9286439.js} +188 -92
  21. package/dist/esm/link-section-list.entry.js +7 -4
  22. package/dist/esm/loader.js +2 -2
  23. package/dist/general-footer-template/general-footer-template.esm.js +1 -1
  24. package/dist/general-footer-template/p-9db940d5.entry.js +1 -0
  25. package/dist/general-footer-template/{p-65805523.entry.js → p-a1261e98.entry.js} +1 -1
  26. package/dist/general-footer-template/p-bf402206.entry.js +1 -0
  27. package/dist/general-footer-template/p-c032aa40.entry.js +1 -0
  28. package/dist/general-footer-template/p-f798fd15.js +2 -0
  29. package/dist/general-footer-template/{p-6fe03737.entry.js → p-faca7e12.entry.js} +2 -2
  30. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
  31. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +2 -0
  32. package/package.json +1 -1
  33. package/dist/general-footer-template/p-2fce3c9f.js +0 -2
  34. package/dist/general-footer-template/p-8a165606.entry.js +0 -1
  35. package/dist/general-footer-template/p-db5af7af.entry.js +0 -1
  36. package/dist/general-footer-template/p-e19d7226.entry.js +0 -1
  37. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +0 -2
  38. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +0 -2
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'general-footer-template';
24
- const BUILD = /* general-footer-template */ { 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: 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: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: true, 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: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* general-footer-template */ { 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: 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: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: true, 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: true, vdomKey: true, 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.22.3 | MIT Licensed | https://stenciljs.com
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) => hostRefs.set(hostRef.$lazyInstance$ = 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
- return hostRefs.set(hostElement, hostRef);
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);
@@ -99,16 +104,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
99
104
  /* webpackExclude: /\.system\.entry\.js$/ */
100
105
  /* webpackMode: "lazy" */
101
106
  `./${bundleId}.entry.js${""}`
102
- )); }).then((importedModule) => {
103
- {
104
- cmpModules.set(bundleId, importedModule);
107
+ )); }).then(
108
+ (importedModule) => {
109
+ {
110
+ cmpModules.set(bundleId, importedModule);
111
+ }
112
+ return importedModule[exportName];
113
+ },
114
+ (e) => {
115
+ consoleError(e, hostRef.$hostElement$);
105
116
  }
106
- return importedModule[exportName];
107
- }, consoleError);
117
+ );
108
118
  };
109
119
 
110
120
  // src/client/client-style.ts
111
121
  var styles = /* @__PURE__ */ new Map();
122
+ var HYDRATED_STYLE_ID = "sty-id";
112
123
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
113
124
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
114
125
  var win = typeof window !== "undefined" ? window : {};
@@ -167,11 +178,8 @@ var flush = () => {
167
178
  var nextTick = (cb) => promiseResolve().then(cb);
168
179
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
180
 
170
- // src/utils/constants.ts
171
- var EMPTY_OBJ = {};
172
-
173
181
  // src/utils/helpers.ts
174
- var isDef = (v) => v != null;
182
+ var isDef = (v) => v != null && v !== void 0;
175
183
  var isComplexType = (o) => {
176
184
  o = typeof o;
177
185
  return o === "object" || o === "function";
@@ -393,7 +401,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
393
401
  }
394
402
  if (!appliedStyles.has(scopeId2)) {
395
403
  {
396
- styleElm = doc.createElement("style");
404
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
397
405
  styleElm.innerHTML = style;
398
406
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
399
407
  if (nonce != null) {
@@ -403,7 +411,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
403
411
  if (styleContainerNode.nodeName === "HEAD") {
404
412
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
405
413
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
406
- styleContainerNode.insertBefore(styleElm, referenceNode2);
414
+ styleContainerNode.insertBefore(
415
+ styleElm,
416
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
417
+ );
407
418
  } else if ("host" in styleContainerNode) {
408
419
  if (supportsConstructableStylesheets) {
409
420
  const stylesheet = new CSSStyleSheet();
@@ -449,23 +460,22 @@ var attachStyles = (hostRef) => {
449
460
  if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
450
461
  elm["s-sc"] = scopeId2;
451
462
  elm.classList.add(scopeId2 + "-h");
452
- if (flags & 2 /* scopedCssEncapsulation */) {
453
- elm.classList.add(scopeId2 + "-s");
454
- }
455
463
  }
456
464
  endAttachStyles();
457
465
  };
458
466
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
459
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
467
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
460
468
  if (oldValue !== newValue) {
461
469
  let isProp = isMemberInElement(elm, memberName);
462
470
  let ln = memberName.toLowerCase();
463
471
  if (memberName === "class") {
464
472
  const classList = elm.classList;
465
473
  const oldClasses = parseClassList(oldValue);
466
- const newClasses = parseClassList(newValue);
467
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
468
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
474
+ let newClasses = parseClassList(newValue);
475
+ {
476
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
477
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
478
+ }
469
479
  } else if (memberName === "style") {
470
480
  {
471
481
  for (const prop in oldValue) {
@@ -524,7 +534,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
524
534
  elm.setAttribute(memberName, n);
525
535
  }
526
536
  }
527
- } else {
537
+ } else if (elm[memberName] !== newValue) {
528
538
  elm[memberName] = newValue;
529
539
  }
530
540
  } catch (e) {
@@ -546,24 +556,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
546
556
  }
547
557
  };
548
558
  var parseClassListRegex = /\s/;
549
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
559
+ var parseClassList = (value) => {
560
+ if (typeof value === "object" && value && "baseVal" in value) {
561
+ value = value.baseVal;
562
+ }
563
+ if (!value || typeof value !== "string") {
564
+ return [];
565
+ }
566
+ return value.split(parseClassListRegex);
567
+ };
550
568
  var CAPTURE_EVENT_SUFFIX = "Capture";
551
569
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
552
570
 
553
571
  // src/runtime/vdom/update-element.ts
554
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
572
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
555
573
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
556
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
557
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
574
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
575
+ const newVnodeAttrs = newVnode.$attrs$ || {};
558
576
  {
559
577
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
560
578
  if (!(memberName in newVnodeAttrs)) {
561
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
579
+ setAccessor(
580
+ elm,
581
+ memberName,
582
+ oldVnodeAttrs[memberName],
583
+ void 0,
584
+ isSvgMode2,
585
+ newVnode.$flags$);
562
586
  }
563
587
  }
564
588
  }
565
589
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
566
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
590
+ setAccessor(
591
+ elm,
592
+ memberName,
593
+ oldVnodeAttrs[memberName],
594
+ newVnodeAttrs[memberName],
595
+ isSvgMode2,
596
+ newVnode.$flags$);
567
597
  }
568
598
  };
569
599
  function sortedAttrNames(attrNames) {
@@ -581,7 +611,7 @@ var scopeId;
581
611
  var hostTagName;
582
612
  var useNativeShadowDom = false;
583
613
  var isSvgMode = false;
584
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
614
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
585
615
  const newVNode2 = newParentVNode.$children$[childIndex];
586
616
  let i2 = 0;
587
617
  let elm;
@@ -595,17 +625,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
595
625
  {
596
626
  updateElement(null, newVNode2, isSvgMode);
597
627
  }
598
- const rootNode = elm.getRootNode();
599
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
600
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
628
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
601
629
  elm.classList.add(elm["s-si"] = scopeId);
602
630
  }
603
- {
604
- updateElementScopeIds(elm, parentElm);
605
- }
606
631
  if (newVNode2.$children$) {
607
632
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
608
- childNode = createElm(oldParentVNode, newVNode2, i2, elm);
633
+ childNode = createElm(oldParentVNode, newVNode2, i2);
609
634
  if (childNode) {
610
635
  elm.appendChild(childNode);
611
636
  }
@@ -623,7 +648,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
623
648
  }
624
649
  for (; startIdx <= endIdx; ++startIdx) {
625
650
  if (vnodes[startIdx]) {
626
- childNode = createElm(null, parentVNode, startIdx, parentElm);
651
+ childNode = createElm(null, parentVNode, startIdx);
627
652
  if (childNode) {
628
653
  vnodes[startIdx].$elm$ = childNode;
629
654
  insertBefore(containerElm, childNode, before);
@@ -696,7 +721,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
696
721
  if (idxInOld >= 0) {
697
722
  elmToMove = oldCh[idxInOld];
698
723
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
699
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
724
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
700
725
  } else {
701
726
  patch(elmToMove, newStartVnode, isInitialRender);
702
727
  oldCh[idxInOld] = void 0;
@@ -704,7 +729,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
704
729
  }
705
730
  newStartVnode = newCh[++newStartIdx];
706
731
  } else {
707
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
732
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
708
733
  newStartVnode = newCh[++newStartIdx];
709
734
  }
710
735
  if (node) {
@@ -732,6 +757,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
732
757
  if (!isInitialRender) {
733
758
  return leftVNode.$key$ === rightVNode.$key$;
734
759
  }
760
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
761
+ leftVNode.$key$ = rightVNode.$key$;
762
+ }
735
763
  return true;
736
764
  }
737
765
  return false;
@@ -771,38 +799,34 @@ var nullifyVNodeRefs = (vNode) => {
771
799
  }
772
800
  };
773
801
  var insertBefore = (parent, newNode, reference) => {
774
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
775
- {
776
- updateElementScopeIds(newNode, parent);
802
+ if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
803
+ addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
777
804
  }
778
- return inserted;
779
- };
780
- var findScopeIds = (element) => {
781
- const scopeIds = [];
782
- if (element) {
783
- scopeIds.push(
784
- ...element["s-scs"] || [],
785
- element["s-si"],
786
- element["s-sc"],
787
- ...findScopeIds(element.parentElement)
788
- );
805
+ {
806
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
789
807
  }
790
- return scopeIds;
791
808
  };
792
- var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
809
+ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
793
810
  var _a;
794
- if (element && parent && element.nodeType === 1 /* ElementNode */) {
795
- const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
796
- if (scopeIds.size) {
797
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = Array.from(scopeIds));
798
- if (element["s-ol"] || iterateChildNodes) {
799
- for (const childNode of Array.from(element.childNodes)) {
800
- updateElementScopeIds(childNode, element, true);
811
+ let scopeId2;
812
+ if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
813
+ const scopeName = slotNode["s-sn"];
814
+ const hostName = slotNode["s-hn"];
815
+ (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
816
+ if (oldParent && oldParent.classList.contains(scopeId2 + "-s")) {
817
+ let child = (oldParent.__childNodes || oldParent.childNodes)[0];
818
+ let found = false;
819
+ while (child) {
820
+ if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
821
+ found = true;
822
+ break;
801
823
  }
824
+ child = child.nextSibling;
802
825
  }
826
+ if (!found) oldParent.classList.remove(scopeId2 + "-s");
803
827
  }
804
828
  }
805
- };
829
+ }
806
830
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
807
831
  const hostElm = hostRef.$hostElement$;
808
832
  const cmpMeta = hostRef.$cmpMeta$;
@@ -836,7 +860,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
836
860
  // src/runtime/update-component.ts
837
861
  var attachToAncestor = (hostRef, ancestorComponent) => {
838
862
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
839
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
863
+ const index = ancestorComponent["s-p"].push(
864
+ new Promise(
865
+ (r) => hostRef.$onRenderResolve$ = () => {
866
+ ancestorComponent["s-p"].splice(index - 1, 1);
867
+ r();
868
+ }
869
+ )
870
+ );
840
871
  }
841
872
  };
842
873
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -863,7 +894,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
863
894
  let maybePromise;
864
895
  if (isInitialLoad) {
865
896
  {
866
- maybePromise = safeCall(instance, "componentWillLoad");
897
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
867
898
  }
868
899
  }
869
900
  endSchedule();
@@ -932,7 +963,7 @@ var postUpdateComponent = (hostRef) => {
932
963
  const instance = hostRef.$lazyInstance$ ;
933
964
  const ancestorComponent = hostRef.$ancestorComponent$;
934
965
  {
935
- safeCall(instance, "componentDidRender");
966
+ safeCall(instance, "componentDidRender", void 0, elm);
936
967
  }
937
968
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
938
969
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -940,7 +971,7 @@ var postUpdateComponent = (hostRef) => {
940
971
  addHydratedFlag(elm);
941
972
  }
942
973
  {
943
- safeCall(instance, "componentDidLoad");
974
+ safeCall(instance, "componentDidLoad", void 0, elm);
944
975
  }
945
976
  endPostUpdate();
946
977
  {
@@ -969,12 +1000,12 @@ var appDidLoad = (who) => {
969
1000
  }
970
1001
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
971
1002
  };
972
- var safeCall = (instance, method, arg) => {
1003
+ var safeCall = (instance, method, arg, elm) => {
973
1004
  if (instance && instance[method]) {
974
1005
  try {
975
1006
  return instance[method](arg);
976
1007
  } catch (e) {
977
- consoleError(e);
1008
+ consoleError(e, elm);
978
1009
  }
979
1010
  }
980
1011
  return void 0;
@@ -1033,15 +1064,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1033
1064
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1034
1065
  members.map(([memberName, [memberFlags]]) => {
1035
1066
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1067
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1068
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1069
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1070
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1071
+ Object.defineProperty(prototype, memberName, {
1072
+ get() {
1073
+ {
1074
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1075
+ return getValue(this, memberName);
1076
+ }
1077
+ const ref = getHostRef(this);
1078
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1079
+ if (!instance) return;
1080
+ return instance[memberName];
1081
+ }
1082
+ },
1083
+ configurable: true,
1084
+ enumerable: true
1085
+ });
1086
+ }
1036
1087
  Object.defineProperty(prototype, memberName, {
1037
- get() {
1038
- return getValue(this, memberName);
1039
- },
1040
1088
  set(newValue) {
1041
- setValue(this, memberName, newValue, cmpMeta);
1042
- },
1043
- configurable: true,
1044
- enumerable: true
1089
+ const ref = getHostRef(this);
1090
+ if (origSetter) {
1091
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1092
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1093
+ newValue = ref.$instanceValues$.get(memberName);
1094
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1095
+ ref.$instanceValues$.set(memberName, currentValue);
1096
+ }
1097
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1098
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1099
+ setValue(this, memberName, newValue, cmpMeta);
1100
+ return;
1101
+ }
1102
+ {
1103
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1104
+ setValue(this, memberName, newValue, cmpMeta);
1105
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1106
+ ref.$onReadyPromise$.then(() => {
1107
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1108
+ ref.$lazyInstance$[memberName] = newValue;
1109
+ }
1110
+ });
1111
+ }
1112
+ return;
1113
+ }
1114
+ const setterSetVal = () => {
1115
+ const currentValue = ref.$lazyInstance$[memberName];
1116
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1117
+ ref.$instanceValues$.set(memberName, currentValue);
1118
+ }
1119
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1120
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1121
+ };
1122
+ if (ref.$lazyInstance$) {
1123
+ setterSetVal();
1124
+ } else {
1125
+ ref.$onReadyPromise$.then(() => setterSetVal());
1126
+ }
1127
+ }
1128
+ }
1045
1129
  });
1046
1130
  }
1047
1131
  });
@@ -1051,7 +1135,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1051
1135
  plt.jmp(() => {
1052
1136
  var _a2;
1053
1137
  const propName = attrNameToPropName.get(attrName);
1054
- if (this.hasOwnProperty(propName)) {
1138
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1055
1139
  newValue = this[propName];
1056
1140
  delete this[propName];
1057
1141
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1071,7 +1155,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1071
1155
  }
1072
1156
  return;
1073
1157
  }
1074
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1158
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1159
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1160
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1161
+ this[propName] = newValue;
1162
+ }
1075
1163
  });
1076
1164
  };
1077
1165
  Cstr.observedAttributes = Array.from(
@@ -1098,9 +1186,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1098
1186
  let Cstr;
1099
1187
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1100
1188
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1101
- const bundleId = cmpMeta.$lazyBundleId$;
1102
- if (bundleId) {
1103
- const CstrImport = loadModule(cmpMeta);
1189
+ {
1190
+ const CstrImport = loadModule(cmpMeta, hostRef);
1104
1191
  if (CstrImport && "then" in CstrImport) {
1105
1192
  const endLoad = uniqueTime();
1106
1193
  Cstr = await CstrImport;
@@ -1125,7 +1212,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1125
1212
  try {
1126
1213
  new Cstr(hostRef);
1127
1214
  } catch (e) {
1128
- consoleError(e);
1215
+ consoleError(e, elm);
1129
1216
  }
1130
1217
  {
1131
1218
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1134,10 +1221,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1134
1221
  hostRef.$flags$ |= 128 /* isWatchReady */;
1135
1222
  }
1136
1223
  endNewInstance();
1137
- } else {
1138
- Cstr = elm.constructor;
1139
- const cmpTag = elm.localName;
1140
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1141
1224
  }
1142
1225
  if (Cstr && Cstr.style) {
1143
1226
  let style;
@@ -1160,7 +1243,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1160
1243
  schedule();
1161
1244
  }
1162
1245
  };
1163
- var fireConnectedCallback = (instance) => {
1246
+ var fireConnectedCallback = (instance, elm) => {
1164
1247
  };
1165
1248
 
1166
1249
  // src/runtime/connected-callback.ts
@@ -1200,20 +1283,26 @@ var connectedCallback = (elm) => {
1200
1283
  endConnected();
1201
1284
  }
1202
1285
  };
1203
- var disconnectInstance = (instance) => {
1286
+ var disconnectInstance = (instance, elm) => {
1204
1287
  {
1205
- safeCall(instance, "disconnectedCallback");
1288
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1206
1289
  }
1207
1290
  };
1208
1291
  var disconnectedCallback = async (elm) => {
1209
1292
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1210
1293
  const hostRef = getHostRef(elm);
1211
1294
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1212
- disconnectInstance(hostRef.$lazyInstance$);
1295
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1213
1296
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1214
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1297
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1215
1298
  }
1216
1299
  }
1300
+ if (rootAppliedStyles.has(elm)) {
1301
+ rootAppliedStyles.delete(elm);
1302
+ }
1303
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1304
+ rootAppliedStyles.delete(elm.shadowRoot);
1305
+ }
1217
1306
  };
1218
1307
 
1219
1308
  // src/runtime/bootstrap-lazy.ts
@@ -1294,6 +1383,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1294
1383
  }
1295
1384
  disconnectedCallback() {
1296
1385
  plt.jmp(() => disconnectedCallback(this));
1386
+ plt.raf(() => {
1387
+ var _a3;
1388
+ const hostRef = getHostRef(this);
1389
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1390
+ delete hostRef.$vnode$.$elm$;
1391
+ }
1392
+ });
1297
1393
  }
1298
1394
  componentOnReady() {
1299
1395
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-465b4ca9.js');
5
+ const index = require('./index-bd066c40.js');
6
6
 
7
7
  const linkSectionListCss = ":host {\n display: block;\n margin: 0;\n padding: 0;\n}\n\n.LinkSectionListContainer {\n display: block;\n container-type: inline-size;\n}\n.LinkSectionListWrapper {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n grid-template-columns: 1fr;\n}\n.LinkSectionListTitle {\n font-weight: var(--emw--font-weight-semibold, 500);\n text-transform: uppercase;\n}\n.LinkSectionListLink {\n font-weight: var(--emw--font-weight-light, 300);\n}\n\nul {\n width: fit-content;\n margin: 0;\n display: flex;\n flex-direction: column;\n gap: var(--emw--spacing-medium, 16px);\n padding-left: var(--emw--spacing-small-minus, 10px);\n font-size: var(--emw--font-size-small, 16px);\n text-transform: uppercase;\n}\nul li {\n list-style: disc;\n display: flex;\n align-items: center;\n padding-left: 25px;\n position: relative;\n}\nul li::before {\n content: \"\";\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 8px;\n height: 8px;\n background-color: var(--emw--footer-color-primary, var(--emw--color-primary, #22B04E));\n border-radius: 50%;\n}\nul li .LinkSectionListLinkText {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\nul li .LinkSectionListLinkText span {\n text-align: center;\n cursor: pointer;\n}\nul li .LinkSectionListLinkText img.LinkSectionIcon {\n position: relative;\n height: 25px;\n padding: 0 5px;\n}\n\na {\n color: inherit;\n}\n\n@container (min-width: 280px) {\n .LinkSectionListWrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n@container (min-width: 650px) {\n .LinkSectionListWrapper {\n grid-gap: 2rem;\n grid-template-columns: repeat(4, 1fr);\n grid-template-rows: 1fr;\n }\n}";
8
8
  const LinkSectionListStyle0 = linkSectionListCss;
@@ -10,10 +10,13 @@ const LinkSectionListStyle0 = linkSectionListCss;
10
10
  const LinkSectionList = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
- this.repeaterContent = undefined;
14
- this.baseUrl = undefined;
15
- this.language = undefined;
13
+ /**
14
+ * If this is true it will emit an event at the moment the content with url its clicked
15
+ */
16
16
  this.navigateViaEvent = false;
17
+ /**
18
+ * Post Message event to be sent on navigation via event
19
+ */
17
20
  this.postMessageEvent = '';
18
21
  }
19
22
  navigateLink(link) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-465b4ca9.js');
5
+ const index = require('./index-bd066c40.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "compiler": {
10
10
  "name": "@stencil/core",
11
- "version": "4.22.3",
11
+ "version": "4.25.1",
12
12
  "typescriptVersion": "5.5.4"
13
13
  },
14
14
  "collections": [],
@@ -5,6 +5,23 @@ import utc from "dayjs/plugin/utc";
5
5
  import timezone from "dayjs/plugin/timezone";
6
6
  export class CustomClock {
7
7
  constructor() {
8
+ /**
9
+ * clockformat
10
+ */
11
+ this.clockFormat = 'HH:mm:ss';
12
+ /**
13
+ * configurable time zone
14
+ */
15
+ this.timeZone = '';
16
+ /**
17
+ * custom translation by href
18
+ */
19
+ this.translationUrl = '';
20
+ /**
21
+ * language
22
+ */
23
+ this.language = 'en';
24
+ this.timeString = '';
8
25
  this.startClock = () => {
9
26
  this.intervalId = setInterval(() => {
10
27
  if (this.timeZone.length > 0) {
@@ -17,11 +34,6 @@ export class CustomClock {
17
34
  }
18
35
  }, 1000);
19
36
  };
20
- this.clockFormat = 'HH:mm:ss';
21
- this.timeZone = '';
22
- this.translationUrl = '';
23
- this.language = 'en';
24
- this.timeString = '';
25
37
  }
26
38
  handleNewTranslations() {
27
39
  getTranslations(this.translationUrl);
@@ -68,6 +80,8 @@ export class CustomClock {
68
80
  "tags": [],
69
81
  "text": "clockformat"
70
82
  },
83
+ "getter": false,
84
+ "setter": false,
71
85
  "attribute": "clock-format",
72
86
  "reflect": true,
73
87
  "defaultValue": "'HH:mm:ss'"
@@ -86,6 +100,8 @@ export class CustomClock {
86
100
  "tags": [],
87
101
  "text": "configurable time zone"
88
102
  },
103
+ "getter": false,
104
+ "setter": false,
89
105
  "attribute": "time-zone",
90
106
  "reflect": true,
91
107
  "defaultValue": "''"
@@ -104,6 +120,8 @@ export class CustomClock {
104
120
  "tags": [],
105
121
  "text": "custom translation by href"
106
122
  },
123
+ "getter": false,
124
+ "setter": false,
107
125
  "attribute": "translation-url",
108
126
  "reflect": true,
109
127
  "defaultValue": "''"
@@ -122,6 +140,8 @@ export class CustomClock {
122
140
  "tags": [],
123
141
  "text": "language"
124
142
  },
143
+ "getter": false,
144
+ "setter": false,
125
145
  "attribute": "language",
126
146
  "reflect": true,
127
147
  "defaultValue": "'en'"