@everymatrix/general-footer-template 1.54.11 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/cjs/custom-clock.cjs.entry.js +6 -18
  2. package/dist/cjs/custom-content-section.cjs.entry.js +37 -86
  3. package/dist/cjs/general-footer-template.cjs.entry.js +79 -70
  4. package/dist/cjs/general-footer-template.cjs.js +3 -3
  5. package/dist/cjs/image-list.cjs.entry.js +4 -9
  6. package/dist/cjs/{index-10cb8e8c.js → index-d85e54c5.js} +92 -197
  7. package/dist/cjs/link-section-list.cjs.entry.js +5 -8
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/custom-clock/custom-clock.js +5 -25
  11. package/dist/collection/components/custom-content-section/custom-content-section.js +6 -17
  12. package/dist/collection/components/general-footer-template/demo-footer.css +1 -2
  13. package/dist/collection/components/general-footer-template/general-footer-template.js +41 -93
  14. package/dist/collection/components/image-list/image-list.js +3 -14
  15. package/dist/collection/components/link-section-list/link-section-list.js +4 -17
  16. package/dist/collection/utils/utils.js +1 -1
  17. package/dist/esm/custom-clock.entry.js +6 -18
  18. package/dist/esm/custom-content-section.entry.js +37 -86
  19. package/dist/esm/general-footer-template.entry.js +79 -70
  20. package/dist/esm/general-footer-template.js +4 -4
  21. package/dist/esm/image-list.entry.js +4 -9
  22. package/dist/esm/{index-e2977b84.js → index-7f32a4a7.js} +92 -197
  23. package/dist/esm/link-section-list.entry.js +5 -8
  24. package/dist/esm/loader.js +3 -3
  25. package/dist/general-footer-template/general-footer-template.esm.js +1 -1
  26. package/dist/general-footer-template/p-122e0353.entry.js +1 -0
  27. package/dist/general-footer-template/p-905acd21.js +2 -0
  28. package/dist/general-footer-template/p-9aeab1ea.entry.js +1 -0
  29. package/dist/general-footer-template/p-a6279430.entry.js +1 -0
  30. package/dist/general-footer-template/{p-48b95d9a.entry.js → p-cd14a119.entry.js} +2 -2
  31. package/dist/general-footer-template/{p-ec9d9aab.entry.js → p-f5a17365.entry.js} +1 -1
  32. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +2 -0
  33. 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 +2 -0
  34. package/dist/types/components/general-footer-template/general-footer-template.d.ts +4 -4
  35. package/dist/types/components.d.ts +8 -0
  36. package/package.json +1 -1
  37. package/dist/collection/components/general-footer-template/general-footer-template.css +0 -84
  38. package/dist/collection/components/general-footer-template/pariuri_plus_variant.css +0 -185
  39. package/dist/collection/components/general-footer-template/variant_style_1.css +0 -146
  40. package/dist/general-footer-template/p-2477706f.entry.js +0 -1
  41. package/dist/general-footer-template/p-5d1fe559.js +0 -2
  42. package/dist/general-footer-template/p-c646816c.entry.js +0 -1
  43. package/dist/general-footer-template/p-cb29a35c.entry.js +0 -1
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.d.ts +0 -2
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-footer-template/.stencil/packages/stencil/general-footer-template/stencil.config.dev.d.ts +0 -2
  46. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
  47. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  48. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  49. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,23 +21,19 @@ 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, 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 };
24
+ const BUILD = /* general-footer-template */ { 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: 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.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -104,22 +99,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
104
99
  /* webpackExclude: /\.system\.entry\.js$/ */
105
100
  /* webpackMode: "lazy" */
106
101
  `./${bundleId}.entry.js${""}`
107
- )); }).then(
108
- (importedModule) => {
109
- {
110
- cmpModules.set(bundleId, importedModule);
111
- }
112
- return importedModule[exportName];
113
- },
114
- (e) => {
115
- consoleError(e, hostRef.$hostElement$);
102
+ )); }).then((importedModule) => {
103
+ {
104
+ cmpModules.set(bundleId, importedModule);
116
105
  }
117
- );
106
+ return importedModule[exportName];
107
+ }, consoleError);
118
108
  };
119
109
 
120
110
  // src/client/client-style.ts
121
111
  var styles = /* @__PURE__ */ new Map();
122
- var HYDRATED_STYLE_ID = "sty-id";
123
112
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
124
113
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
125
114
  var win = typeof window !== "undefined" ? window : {};
@@ -178,8 +167,11 @@ var flush = () => {
178
167
  var nextTick = (cb) => promiseResolve().then(cb);
179
168
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
180
169
 
170
+ // src/utils/constants.ts
171
+ var EMPTY_OBJ = {};
172
+
181
173
  // src/utils/helpers.ts
182
- var isDef = (v) => v != null && v !== void 0;
174
+ var isDef = (v) => v != null;
183
175
  var isComplexType = (o) => {
184
176
  o = typeof o;
185
177
  return o === "object" || o === "function";
@@ -401,7 +393,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
401
393
  }
402
394
  if (!appliedStyles.has(scopeId2)) {
403
395
  {
404
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
396
+ styleElm = doc.createElement("style");
405
397
  styleElm.innerHTML = style;
406
398
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
407
399
  if (nonce != null) {
@@ -411,10 +403,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
411
403
  if (styleContainerNode.nodeName === "HEAD") {
412
404
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
413
405
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
414
- styleContainerNode.insertBefore(
415
- styleElm,
416
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
417
- );
406
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
418
407
  } else if ("host" in styleContainerNode) {
419
408
  if (supportsConstructableStylesheets) {
420
409
  const stylesheet = new CSSStyleSheet();
@@ -432,7 +421,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
432
421
  styleContainerNode.append(styleElm);
433
422
  }
434
423
  }
435
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
424
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
436
425
  styleContainerNode.insertBefore(styleElm, null);
437
426
  }
438
427
  }
@@ -457,25 +446,26 @@ var attachStyles = (hostRef) => {
457
446
  const scopeId2 = addStyle(
458
447
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
459
448
  cmpMeta);
460
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
449
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
461
450
  elm["s-sc"] = scopeId2;
462
451
  elm.classList.add(scopeId2 + "-h");
452
+ if (flags & 2 /* scopedCssEncapsulation */) {
453
+ elm.classList.add(scopeId2 + "-s");
454
+ }
463
455
  }
464
456
  endAttachStyles();
465
457
  };
466
458
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
467
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
459
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
468
460
  if (oldValue !== newValue) {
469
461
  let isProp = isMemberInElement(elm, memberName);
470
462
  let ln = memberName.toLowerCase();
471
463
  if (memberName === "class") {
472
464
  const classList = elm.classList;
473
465
  const oldClasses = parseClassList(oldValue);
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
- }
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)));
479
469
  } else if (memberName === "style") {
480
470
  {
481
471
  for (const prop in oldValue) {
@@ -534,7 +524,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
534
524
  elm.setAttribute(memberName, n);
535
525
  }
536
526
  }
537
- } else if (elm[memberName] !== newValue) {
527
+ } else {
538
528
  elm[memberName] = newValue;
539
529
  }
540
530
  } catch (e) {
@@ -556,44 +546,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
556
546
  }
557
547
  };
558
548
  var parseClassListRegex = /\s/;
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
- };
549
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
568
550
  var CAPTURE_EVENT_SUFFIX = "Capture";
569
551
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
570
552
 
571
553
  // src/runtime/vdom/update-element.ts
572
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
554
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
573
555
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
574
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
575
- const newVnodeAttrs = newVnode.$attrs$ || {};
556
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
557
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
576
558
  {
577
559
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
578
560
  if (!(memberName in newVnodeAttrs)) {
579
- setAccessor(
580
- elm,
581
- memberName,
582
- oldVnodeAttrs[memberName],
583
- void 0,
584
- isSvgMode2,
585
- newVnode.$flags$);
561
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
586
562
  }
587
563
  }
588
564
  }
589
565
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
590
- setAccessor(
591
- elm,
592
- memberName,
593
- oldVnodeAttrs[memberName],
594
- newVnodeAttrs[memberName],
595
- isSvgMode2,
596
- newVnode.$flags$);
566
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
597
567
  }
598
568
  };
599
569
  function sortedAttrNames(attrNames) {
@@ -611,7 +581,7 @@ var scopeId;
611
581
  var hostTagName;
612
582
  var useNativeShadowDom = false;
613
583
  var isSvgMode = false;
614
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
584
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
615
585
  const newVNode2 = newParentVNode.$children$[childIndex];
616
586
  let i2 = 0;
617
587
  let elm;
@@ -625,12 +595,17 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
625
595
  {
626
596
  updateElement(null, newVNode2, isSvgMode);
627
597
  }
628
- if (isDef(scopeId) && elm["s-si"] !== scopeId) {
598
+ const rootNode = elm.getRootNode();
599
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
600
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
629
601
  elm.classList.add(elm["s-si"] = scopeId);
630
602
  }
603
+ {
604
+ updateElementScopeIds(elm, parentElm);
605
+ }
631
606
  if (newVNode2.$children$) {
632
607
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
633
- childNode = createElm(oldParentVNode, newVNode2, i2);
608
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
634
609
  if (childNode) {
635
610
  elm.appendChild(childNode);
636
611
  }
@@ -648,7 +623,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
648
623
  }
649
624
  for (; startIdx <= endIdx; ++startIdx) {
650
625
  if (vnodes[startIdx]) {
651
- childNode = createElm(null, parentVNode, startIdx);
626
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
652
627
  if (childNode) {
653
628
  vnodes[startIdx].$elm$ = childNode;
654
629
  insertBefore(containerElm, childNode, before);
@@ -721,7 +696,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
721
696
  if (idxInOld >= 0) {
722
697
  elmToMove = oldCh[idxInOld];
723
698
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
724
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
699
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
725
700
  } else {
726
701
  patch(elmToMove, newStartVnode, isInitialRender);
727
702
  oldCh[idxInOld] = void 0;
@@ -729,7 +704,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
729
704
  }
730
705
  newStartVnode = newCh[++newStartIdx];
731
706
  } else {
732
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
707
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
733
708
  newStartVnode = newCh[++newStartIdx];
734
709
  }
735
710
  if (node) {
@@ -757,9 +732,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
757
732
  if (!isInitialRender) {
758
733
  return leftVNode.$key$ === rightVNode.$key$;
759
734
  }
760
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
761
- leftVNode.$key$ = rightVNode.$key$;
762
- }
763
735
  return true;
764
736
  }
765
737
  return false;
@@ -799,34 +771,38 @@ var nullifyVNodeRefs = (vNode) => {
799
771
  }
800
772
  };
801
773
  var insertBefore = (parent, newNode, reference) => {
802
- if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
803
- addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
804
- }
774
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
805
775
  {
806
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
776
+ updateElementScopeIds(newNode, parent);
807
777
  }
778
+ return inserted;
808
779
  };
809
- function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
810
- var _a, _b;
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 && ((_b = oldParent.classList) == null ? void 0 : _b.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;
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
+ );
789
+ }
790
+ return scopeIds;
791
+ };
792
+ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
793
+ 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);
823
801
  }
824
- child = child.nextSibling;
825
802
  }
826
- if (!found) oldParent.classList.remove(scopeId2 + "-s");
827
803
  }
828
804
  }
829
- }
805
+ };
830
806
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
831
807
  const hostElm = hostRef.$hostElement$;
832
808
  const cmpMeta = hostRef.$cmpMeta$;
@@ -853,21 +829,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
853
829
  {
854
830
  scopeId = hostElm["s-sc"];
855
831
  }
856
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
832
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
857
833
  patch(oldVNode, rootVnode, isInitialLoad);
858
834
  };
859
835
 
860
836
  // src/runtime/update-component.ts
861
837
  var attachToAncestor = (hostRef, ancestorComponent) => {
862
838
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
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
- );
839
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
871
840
  }
872
841
  };
873
842
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -894,7 +863,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
894
863
  let maybePromise;
895
864
  if (isInitialLoad) {
896
865
  {
897
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
866
+ maybePromise = safeCall(instance, "componentWillLoad");
898
867
  }
899
868
  }
900
869
  endSchedule();
@@ -962,16 +931,13 @@ var postUpdateComponent = (hostRef) => {
962
931
  const endPostUpdate = createTime("postUpdate", tagName);
963
932
  const instance = hostRef.$lazyInstance$ ;
964
933
  const ancestorComponent = hostRef.$ancestorComponent$;
965
- {
966
- safeCall(instance, "componentDidRender", void 0, elm);
967
- }
968
934
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
969
935
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
970
936
  {
971
937
  addHydratedFlag(elm);
972
938
  }
973
939
  {
974
- safeCall(instance, "componentDidLoad", void 0, elm);
940
+ safeCall(instance, "componentDidLoad");
975
941
  }
976
942
  endPostUpdate();
977
943
  {
@@ -995,14 +961,17 @@ var postUpdateComponent = (hostRef) => {
995
961
  }
996
962
  };
997
963
  var appDidLoad = (who) => {
964
+ {
965
+ addHydratedFlag(doc.documentElement);
966
+ }
998
967
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
999
968
  };
1000
- var safeCall = (instance, method, arg, elm) => {
969
+ var safeCall = (instance, method, arg) => {
1001
970
  if (instance && instance[method]) {
1002
971
  try {
1003
972
  return instance[method](arg);
1004
973
  } catch (e) {
1005
- consoleError(e, elm);
974
+ consoleError(e);
1006
975
  }
1007
976
  }
1008
977
  return void 0;
@@ -1061,68 +1030,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1061
1030
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1062
1031
  members.map(([memberName, [memberFlags]]) => {
1063
1032
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1064
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1065
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1066
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1067
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1068
- Object.defineProperty(prototype, memberName, {
1069
- get() {
1070
- {
1071
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1072
- return getValue(this, memberName);
1073
- }
1074
- const ref = getHostRef(this);
1075
- const instance = ref ? ref.$lazyInstance$ : prototype;
1076
- if (!instance) return;
1077
- return instance[memberName];
1078
- }
1079
- },
1080
- configurable: true,
1081
- enumerable: true
1082
- });
1083
- }
1084
1033
  Object.defineProperty(prototype, memberName, {
1034
+ get() {
1035
+ return getValue(this, memberName);
1036
+ },
1085
1037
  set(newValue) {
1086
- const ref = getHostRef(this);
1087
- if (origSetter) {
1088
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1089
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1090
- newValue = ref.$instanceValues$.get(memberName);
1091
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1092
- ref.$instanceValues$.set(memberName, currentValue);
1093
- }
1094
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1095
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1096
- setValue(this, memberName, newValue, cmpMeta);
1097
- return;
1098
- }
1099
- {
1100
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1101
- setValue(this, memberName, newValue, cmpMeta);
1102
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1103
- ref.$onReadyPromise$.then(() => {
1104
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1105
- ref.$lazyInstance$[memberName] = newValue;
1106
- }
1107
- });
1108
- }
1109
- return;
1110
- }
1111
- const setterSetVal = () => {
1112
- const currentValue = ref.$lazyInstance$[memberName];
1113
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1114
- ref.$instanceValues$.set(memberName, currentValue);
1115
- }
1116
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1117
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1118
- };
1119
- if (ref.$lazyInstance$) {
1120
- setterSetVal();
1121
- } else {
1122
- ref.$onReadyPromise$.then(() => setterSetVal());
1123
- }
1124
- }
1125
- }
1038
+ setValue(this, memberName, newValue, cmpMeta);
1039
+ },
1040
+ configurable: true,
1041
+ enumerable: true
1126
1042
  });
1127
1043
  }
1128
1044
  });
@@ -1132,7 +1048,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1132
1048
  plt.jmp(() => {
1133
1049
  var _a2;
1134
1050
  const propName = attrNameToPropName.get(attrName);
1135
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1051
+ if (this.hasOwnProperty(propName)) {
1136
1052
  newValue = this[propName];
1137
1053
  delete this[propName];
1138
1054
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1152,11 +1068,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1152
1068
  }
1153
1069
  return;
1154
1070
  }
1155
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1156
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1157
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1158
- this[propName] = newValue;
1159
- }
1071
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1160
1072
  });
1161
1073
  };
1162
1074
  Cstr.observedAttributes = Array.from(
@@ -1185,7 +1097,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1185
1097
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1186
1098
  const bundleId = cmpMeta.$lazyBundleId$;
1187
1099
  if (bundleId) {
1188
- const CstrImport = loadModule(cmpMeta, hostRef);
1100
+ const CstrImport = loadModule(cmpMeta);
1189
1101
  if (CstrImport && "then" in CstrImport) {
1190
1102
  const endLoad = uniqueTime();
1191
1103
  Cstr = await CstrImport;
@@ -1210,7 +1122,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1210
1122
  try {
1211
1123
  new Cstr(hostRef);
1212
1124
  } catch (e) {
1213
- consoleError(e, elm);
1125
+ consoleError(e);
1214
1126
  }
1215
1127
  {
1216
1128
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1245,7 +1157,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1245
1157
  schedule();
1246
1158
  }
1247
1159
  };
1248
- var fireConnectedCallback = (instance, elm) => {
1160
+ var fireConnectedCallback = (instance) => {
1249
1161
  };
1250
1162
 
1251
1163
  // src/runtime/connected-callback.ts
@@ -1285,26 +1197,20 @@ var connectedCallback = (elm) => {
1285
1197
  endConnected();
1286
1198
  }
1287
1199
  };
1288
- var disconnectInstance = (instance, elm) => {
1200
+ var disconnectInstance = (instance) => {
1289
1201
  {
1290
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1202
+ safeCall(instance, "disconnectedCallback");
1291
1203
  }
1292
1204
  };
1293
1205
  var disconnectedCallback = async (elm) => {
1294
1206
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1295
1207
  const hostRef = getHostRef(elm);
1296
1208
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1297
- disconnectInstance(hostRef.$lazyInstance$, elm);
1209
+ disconnectInstance(hostRef.$lazyInstance$);
1298
1210
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1299
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1211
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1300
1212
  }
1301
1213
  }
1302
- if (rootAppliedStyles.has(elm)) {
1303
- rootAppliedStyles.delete(elm);
1304
- }
1305
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1306
- rootAppliedStyles.delete(elm.shadowRoot);
1307
- }
1308
1214
  };
1309
1215
 
1310
1216
  // src/runtime/bootstrap-lazy.ts
@@ -1385,17 +1291,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1385
1291
  }
1386
1292
  disconnectedCallback() {
1387
1293
  plt.jmp(() => disconnectedCallback(this));
1388
- plt.raf(() => {
1389
- var _a3;
1390
- const hostRef = getHostRef(this);
1391
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1392
- if (i2 > -1) {
1393
- deferredConnectedCallbacks.splice(i2, 1);
1394
- }
1395
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1396
- delete hostRef.$vnode$.$elm$;
1397
- }
1398
- });
1399
1294
  }
1400
1295
  componentOnReady() {
1401
1296
  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-10cb8e8c.js');
5
+ const index = require('./index-d85e54c5.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,13 +10,10 @@ const LinkSectionListStyle0 = linkSectionListCss;
10
10
  const LinkSectionList = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
- /**
14
- * If this is true it will emit an event at the moment the content with url its clicked
15
- */
13
+ this.repeaterContent = undefined;
14
+ this.baseUrl = undefined;
15
+ this.language = undefined;
16
16
  this.navigateViaEvent = false;
17
- /**
18
- * Post Message event to be sent on navigation via event
19
- */
20
17
  this.postMessageEvent = '';
21
18
  }
22
19
  navigateLink(link) {
@@ -51,7 +48,7 @@ const LinkSectionList = class {
51
48
  }
52
49
  return obj;
53
50
  }, []);
54
- return index.h("div", { class: "LinkSectionListContainer" }, index.h("div", { class: "LinkSectionListWrapper" }, index.h("h2", { class: "LinkSectionListTitle" }, linkSections.categoryTitle), linkSections.map(category => index.h("ul", null, category.links.map(link => index.h("li", { class: "LinkSectionListLink", key: link.linkName }, this.navigateViaEvent === true ? (index.h("span", null, link.linkName && link.icon ? (index.h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, index.h("img", { class: "LinkSectionIcon", src: link.icon, alt: "icon" }), index.h("span", null, link.linkName, " "))) :
51
+ return index.h("div", { class: "LinkSectionListContainer" }, index.h("div", { class: "LinkSectionListWrapper" }, this.repeaterContent.categoryTitle && index.h("h2", { class: "LinkSectionListTitle" }, this.repeaterContent.categoryTitle), linkSections.map(category => index.h("ul", null, category.categoryTitle && index.h("p", null, category.categoryTitle), category.links.map(link => index.h("li", { class: "LinkSectionListLink", key: link.linkName }, this.navigateViaEvent === true ? (index.h("span", null, link.linkName && link.icon ? (index.h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, index.h("img", { class: "LinkSectionIcon", src: link.icon, alt: "icon" }), index.h("span", null, link.linkName, " "))) :
55
52
  link.linkName ?
56
53
  index.h("span", { class: "LinkSectionListLinkText", onClick: () => this.navigateLink(link) }, index.h("span", null, link.linkName, " "))
57
54
  :
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-10cb8e8c.js');
5
+ const index = require('./index-d85e54c5.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["custom-clock.cjs",[[2,"custom-clock",{"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"translationUrl":[513,"translation-url"],"language":[513],"timeString":[32]},null,{"translationUrl":["handleNewTranslations"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"hasErrors":[32],"stylingAppends":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
11
+ return index.bootstrapLazy([["custom-content-section.cjs",[[2,"custom-content-section",{"customContent":[1,"custom-content"],"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[516,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["custom-clock.cjs",[[2,"custom-clock",{"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"translationUrl":[513,"translation-url"],"language":[513],"timeString":[32]},null,{"translationUrl":["handleNewTranslations"]}]]],["general-footer-template.cjs",[[1,"general-footer-template",{"language":[513],"sections":[513],"endpoint":[513],"env":[513],"userRoles":[513,"user-roles"],"userid":[513],"session":[513],"baseUrl":[513,"base-url"],"navigateViaEvent":[513,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clockFormat":[513,"clock-format"],"timeZone":[513,"time-zone"],"mbSource":[513,"mb-source"],"hasErrors":[32]}]]],["link-section-list.cjs",[[0,"link-section-list",{"repeaterContent":[8,"repeater-content"],"baseUrl":[513,"base-url"],"language":[513],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]],["image-list.cjs",[[2,"image-list",{"repeaterContent":[8,"repeater-content"],"navigateViaEvent":[4,"navigate-via-event"],"postMessageEvent":[513,"post-message-event"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "compiler": {
10
10
  "name": "@stencil/core",
11
- "version": "4.26.0",
11
+ "version": "4.22.3",
12
12
  "typescriptVersion": "5.5.4"
13
13
  },
14
14
  "collections": [],