@everymatrix/general-footer-template 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 (43) hide show
  1. package/dist/cjs/custom-clock.cjs.entry.js +7 -19
  2. package/dist/cjs/custom-content-section.cjs.entry.js +1482 -1678
  3. package/dist/cjs/general-footer-template.cjs.entry.js +11 -31
  4. package/dist/cjs/general-footer-template.cjs.js +2 -2
  5. package/dist/cjs/image-list.cjs.entry.js +4 -9
  6. package/dist/cjs/{index-c1afe75b.js → index-a7f717fa.js} +91 -227
  7. package/dist/cjs/link-section-list.cjs.entry.js +4 -7
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/collection-manifest.json +2 -2
  10. package/dist/collection/components/custom-clock/custom-clock.js +5 -25
  11. package/dist/collection/components/custom-content-section/custom-content-section.js +2 -14
  12. package/dist/collection/components/general-footer-template/general-footer-template.js +10 -62
  13. package/dist/collection/components/image-list/image-list.js +3 -14
  14. package/dist/collection/components/link-section-list/link-section-list.js +3 -16
  15. package/dist/esm/custom-clock.entry.js +7 -19
  16. package/dist/esm/custom-content-section.entry.js +1482 -1678
  17. package/dist/esm/general-footer-template.entry.js +11 -31
  18. package/dist/esm/general-footer-template.js +3 -3
  19. package/dist/esm/image-list.entry.js +4 -9
  20. package/dist/esm/{index-732f640c.js → index-e6e68604.js} +91 -227
  21. package/dist/esm/link-section-list.entry.js +4 -7
  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-076550c8.entry.js +1 -0
  25. package/dist/general-footer-template/p-16bd4237.js +2 -0
  26. package/dist/general-footer-template/p-2879096a.entry.js +1 -0
  27. package/dist/general-footer-template/{p-a8c0f5a0.entry.js → p-5f13c34b.entry.js} +2 -2
  28. package/dist/general-footer-template/p-d7132f51.entry.js +1 -0
  29. package/dist/general-footer-template/{p-3eda45d5.entry.js → p-f12f5263.entry.js} +1 -1
  30. 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
  31. 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
  32. package/dist/types/stencil-public-runtime.d.ts +0 -6
  33. package/package.json +1 -1
  34. package/dist/general-footer-template/p-1fc2e24a.js +0 -2
  35. package/dist/general-footer-template/p-55524eed.entry.js +0 -1
  36. package/dist/general-footer-template/p-a4b44512.entry.js +0 -1
  37. package/dist/general-footer-template/p-dd7ffd49.entry.js +0 -1
  38. 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 +0 -2
  39. 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 +0 -2
  40. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/index.d.ts +0 -0
  41. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  42. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  43. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-footer-template/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'general-footer-template';
2
- 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, 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 };
2
+ 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 };
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);
@@ -82,22 +77,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
82
77
  /* webpackExclude: /\.system\.entry\.js$/ */
83
78
  /* webpackMode: "lazy" */
84
79
  `./${bundleId}.entry.js${""}`
85
- ).then(
86
- (importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
89
- }
90
- return importedModule[exportName];
91
- },
92
- (e) => {
93
- consoleError(e, hostRef.$hostElement$);
80
+ ).then((importedModule) => {
81
+ {
82
+ cmpModules.set(bundleId, importedModule);
94
83
  }
95
- );
84
+ return importedModule[exportName];
85
+ }, consoleError);
96
86
  };
97
87
 
98
88
  // src/client/client-style.ts
99
89
  var styles = /* @__PURE__ */ new Map();
100
- var HYDRATED_STYLE_ID = "sty-id";
101
90
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
102
91
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
103
92
  var win = typeof window !== "undefined" ? window : {};
@@ -156,8 +145,11 @@ var flush = () => {
156
145
  var nextTick = (cb) => promiseResolve().then(cb);
157
146
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
158
147
 
148
+ // src/utils/constants.ts
149
+ var EMPTY_OBJ = {};
150
+
159
151
  // src/utils/helpers.ts
160
- var isDef = (v) => v != null && v !== void 0;
152
+ var isDef = (v) => v != null;
161
153
  var isComplexType = (o) => {
162
154
  o = typeof o;
163
155
  return o === "object" || o === "function";
@@ -379,40 +371,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
379
371
  }
380
372
  if (!appliedStyles.has(scopeId2)) {
381
373
  {
382
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
374
+ styleElm = doc.createElement("style");
383
375
  styleElm.innerHTML = style;
384
376
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
385
377
  if (nonce != null) {
386
378
  styleElm.setAttribute("nonce", nonce);
387
379
  }
388
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
389
- if (styleContainerNode.nodeName === "HEAD") {
390
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
391
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
392
- styleContainerNode.insertBefore(
393
- styleElm,
394
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
395
- );
396
- } else if ("host" in styleContainerNode) {
397
- if (supportsConstructableStylesheets) {
398
- const stylesheet = new CSSStyleSheet();
399
- stylesheet.replaceSync(style);
400
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
401
- } else {
402
- const existingStyleContainer = styleContainerNode.querySelector("style");
403
- if (existingStyleContainer) {
404
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
405
- } else {
406
- styleContainerNode.prepend(styleElm);
407
- }
408
- }
409
- } else {
410
- styleContainerNode.append(styleElm);
411
- }
412
- }
413
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
414
- styleContainerNode.insertBefore(styleElm, null);
415
- }
380
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
416
381
  }
417
382
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
418
383
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -435,25 +400,26 @@ var attachStyles = (hostRef) => {
435
400
  const scopeId2 = addStyle(
436
401
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
437
402
  cmpMeta);
438
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
403
+ if (flags & 10 /* needsScopedEncapsulation */) {
439
404
  elm["s-sc"] = scopeId2;
440
405
  elm.classList.add(scopeId2 + "-h");
406
+ if (flags & 2 /* scopedCssEncapsulation */) {
407
+ elm.classList.add(scopeId2 + "-s");
408
+ }
441
409
  }
442
410
  endAttachStyles();
443
411
  };
444
412
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
445
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
413
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
446
414
  if (oldValue !== newValue) {
447
415
  let isProp = isMemberInElement(elm, memberName);
448
416
  let ln = memberName.toLowerCase();
449
417
  if (memberName === "class") {
450
418
  const classList = elm.classList;
451
419
  const oldClasses = parseClassList(oldValue);
452
- let newClasses = parseClassList(newValue);
453
- {
454
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
455
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
456
- }
420
+ const newClasses = parseClassList(newValue);
421
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
422
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
457
423
  } else if (memberName === "style") {
458
424
  {
459
425
  for (const prop in oldValue) {
@@ -506,13 +472,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
506
472
  if (memberName === "list") {
507
473
  isProp = false;
508
474
  } else if (oldValue == null || elm[memberName] != n) {
509
- if (typeof elm.__lookupSetter__(memberName) === "function") {
510
- elm[memberName] = n;
511
- } else {
512
- elm.setAttribute(memberName, n);
513
- }
475
+ elm[memberName] = n;
514
476
  }
515
- } else if (elm[memberName] !== newValue) {
477
+ } else {
516
478
  elm[memberName] = newValue;
517
479
  }
518
480
  } catch (e) {
@@ -534,44 +496,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
534
496
  }
535
497
  };
536
498
  var parseClassListRegex = /\s/;
537
- var parseClassList = (value) => {
538
- if (typeof value === "object" && value && "baseVal" in value) {
539
- value = value.baseVal;
540
- }
541
- if (!value || typeof value !== "string") {
542
- return [];
543
- }
544
- return value.split(parseClassListRegex);
545
- };
499
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
546
500
  var CAPTURE_EVENT_SUFFIX = "Capture";
547
501
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
548
502
 
549
503
  // src/runtime/vdom/update-element.ts
550
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
504
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
551
505
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
552
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
553
- const newVnodeAttrs = newVnode.$attrs$ || {};
506
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
507
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
554
508
  {
555
509
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
556
510
  if (!(memberName in newVnodeAttrs)) {
557
- setAccessor(
558
- elm,
559
- memberName,
560
- oldVnodeAttrs[memberName],
561
- void 0,
562
- isSvgMode2,
563
- newVnode.$flags$);
511
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
564
512
  }
565
513
  }
566
514
  }
567
515
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
568
- setAccessor(
569
- elm,
570
- memberName,
571
- oldVnodeAttrs[memberName],
572
- newVnodeAttrs[memberName],
573
- isSvgMode2,
574
- newVnode.$flags$);
516
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
575
517
  }
576
518
  };
577
519
  function sortedAttrNames(attrNames) {
@@ -589,7 +531,7 @@ var scopeId;
589
531
  var hostTagName;
590
532
  var useNativeShadowDom = false;
591
533
  var isSvgMode = false;
592
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
534
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
593
535
  const newVNode2 = newParentVNode.$children$[childIndex];
594
536
  let i2 = 0;
595
537
  let elm;
@@ -606,9 +548,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
606
548
  if (isDef(scopeId) && elm["s-si"] !== scopeId) {
607
549
  elm.classList.add(elm["s-si"] = scopeId);
608
550
  }
551
+ {
552
+ updateElementScopeIds(elm, parentElm);
553
+ }
609
554
  if (newVNode2.$children$) {
610
555
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
611
- childNode = createElm(oldParentVNode, newVNode2, i2);
556
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
612
557
  if (childNode) {
613
558
  elm.appendChild(childNode);
614
559
  }
@@ -626,7 +571,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
626
571
  }
627
572
  for (; startIdx <= endIdx; ++startIdx) {
628
573
  if (vnodes[startIdx]) {
629
- childNode = createElm(null, parentVNode, startIdx);
574
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
630
575
  if (childNode) {
631
576
  vnodes[startIdx].$elm$ = childNode;
632
577
  insertBefore(containerElm, childNode, before);
@@ -699,7 +644,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
699
644
  if (idxInOld >= 0) {
700
645
  elmToMove = oldCh[idxInOld];
701
646
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
702
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
647
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
703
648
  } else {
704
649
  patch(elmToMove, newStartVnode, isInitialRender);
705
650
  oldCh[idxInOld] = void 0;
@@ -707,7 +652,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
707
652
  }
708
653
  newStartVnode = newCh[++newStartIdx];
709
654
  } else {
710
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
655
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
711
656
  newStartVnode = newCh[++newStartIdx];
712
657
  }
713
658
  if (node) {
@@ -735,9 +680,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
735
680
  if (!isInitialRender) {
736
681
  return leftVNode.$key$ === rightVNode.$key$;
737
682
  }
738
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
739
- leftVNode.$key$ = rightVNode.$key$;
740
- }
741
683
  return true;
742
684
  }
743
685
  return false;
@@ -760,10 +702,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
760
702
  elm.textContent = "";
761
703
  }
762
704
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
763
- } else if (
764
- // don't do this on initial render as it can cause non-hydrated content to be removed
765
- !isInitialRender && BUILD.updatable && oldChildren !== null
766
- ) {
705
+ } else if (oldChildren !== null) {
767
706
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
768
707
  }
769
708
  } else if (oldVNode.$text$ !== text) {
@@ -777,34 +716,38 @@ var nullifyVNodeRefs = (vNode) => {
777
716
  }
778
717
  };
779
718
  var insertBefore = (parent, newNode, reference) => {
780
- if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
781
- addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
782
- }
719
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
783
720
  {
784
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
721
+ updateElementScopeIds(newNode, parent);
785
722
  }
723
+ return inserted;
786
724
  };
787
- function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
788
- var _a, _b;
789
- let scopeId2;
790
- if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
791
- const scopeName = slotNode["s-sn"];
792
- const hostName = slotNode["s-hn"];
793
- (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
794
- if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
795
- let child = (oldParent.__childNodes || oldParent.childNodes)[0];
796
- let found = false;
797
- while (child) {
798
- if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
799
- found = true;
800
- break;
725
+ var findScopeIds = (element) => {
726
+ const scopeIds = [];
727
+ if (element) {
728
+ scopeIds.push(
729
+ ...element["s-scs"] || [],
730
+ element["s-si"],
731
+ element["s-sc"],
732
+ ...findScopeIds(element.parentElement)
733
+ );
734
+ }
735
+ return scopeIds;
736
+ };
737
+ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
738
+ var _a;
739
+ if (element && parent && element.nodeType === 1 /* ElementNode */) {
740
+ const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
741
+ if (scopeIds.size) {
742
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
743
+ if (element["s-ol"] || iterateChildNodes) {
744
+ for (const childNode of Array.from(element.childNodes)) {
745
+ updateElementScopeIds(childNode, element, true);
801
746
  }
802
- child = child.nextSibling;
803
747
  }
804
- if (!found) oldParent.classList.remove(scopeId2 + "-s");
805
748
  }
806
749
  }
807
- }
750
+ };
808
751
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
809
752
  const hostElm = hostRef.$hostElement$;
810
753
  const cmpMeta = hostRef.$cmpMeta$;
@@ -831,21 +774,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
831
774
  {
832
775
  scopeId = hostElm["s-sc"];
833
776
  }
834
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
777
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
835
778
  patch(oldVNode, rootVnode, isInitialLoad);
836
779
  };
837
780
 
838
781
  // src/runtime/update-component.ts
839
782
  var attachToAncestor = (hostRef, ancestorComponent) => {
840
783
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
841
- const index = ancestorComponent["s-p"].push(
842
- new Promise(
843
- (r) => hostRef.$onRenderResolve$ = () => {
844
- ancestorComponent["s-p"].splice(index - 1, 1);
845
- r();
846
- }
847
- )
848
- );
784
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
849
785
  }
850
786
  };
851
787
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -872,7 +808,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
872
808
  let maybePromise;
873
809
  if (isInitialLoad) {
874
810
  {
875
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
811
+ maybePromise = safeCall(instance, "componentWillLoad");
876
812
  }
877
813
  }
878
814
  endSchedule();
@@ -946,7 +882,7 @@ var postUpdateComponent = (hostRef) => {
946
882
  addHydratedFlag(elm);
947
883
  }
948
884
  {
949
- safeCall(instance, "componentDidLoad", void 0, elm);
885
+ safeCall(instance, "componentDidLoad");
950
886
  }
951
887
  endPostUpdate();
952
888
  {
@@ -970,14 +906,17 @@ var postUpdateComponent = (hostRef) => {
970
906
  }
971
907
  };
972
908
  var appDidLoad = (who) => {
909
+ {
910
+ addHydratedFlag(doc.documentElement);
911
+ }
973
912
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
974
913
  };
975
- var safeCall = (instance, method, arg, elm) => {
914
+ var safeCall = (instance, method, arg) => {
976
915
  if (instance && instance[method]) {
977
916
  try {
978
917
  return instance[method](arg);
979
918
  } catch (e) {
980
- consoleError(e, elm);
919
+ consoleError(e);
981
920
  }
982
921
  }
983
922
  return void 0;
@@ -1036,68 +975,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1036
975
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1037
976
  members.map(([memberName, [memberFlags]]) => {
1038
977
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1039
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1040
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1041
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1042
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1043
- Object.defineProperty(prototype, memberName, {
1044
- get() {
1045
- {
1046
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1047
- return getValue(this, memberName);
1048
- }
1049
- const ref = getHostRef(this);
1050
- const instance = ref ? ref.$lazyInstance$ : prototype;
1051
- if (!instance) return;
1052
- return instance[memberName];
1053
- }
1054
- },
1055
- configurable: true,
1056
- enumerable: true
1057
- });
1058
- }
1059
978
  Object.defineProperty(prototype, memberName, {
979
+ get() {
980
+ return getValue(this, memberName);
981
+ },
1060
982
  set(newValue) {
1061
- const ref = getHostRef(this);
1062
- if (origSetter) {
1063
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1064
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1065
- newValue = ref.$instanceValues$.get(memberName);
1066
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1067
- ref.$instanceValues$.set(memberName, currentValue);
1068
- }
1069
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1070
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1071
- setValue(this, memberName, newValue, cmpMeta);
1072
- return;
1073
- }
1074
- {
1075
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1076
- setValue(this, memberName, newValue, cmpMeta);
1077
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1078
- ref.$onReadyPromise$.then(() => {
1079
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1080
- ref.$lazyInstance$[memberName] = newValue;
1081
- }
1082
- });
1083
- }
1084
- return;
1085
- }
1086
- const setterSetVal = () => {
1087
- const currentValue = ref.$lazyInstance$[memberName];
1088
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1089
- ref.$instanceValues$.set(memberName, currentValue);
1090
- }
1091
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1092
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1093
- };
1094
- if (ref.$lazyInstance$) {
1095
- setterSetVal();
1096
- } else {
1097
- ref.$onReadyPromise$.then(() => setterSetVal());
1098
- }
1099
- }
1100
- }
983
+ setValue(this, memberName, newValue, cmpMeta);
984
+ },
985
+ configurable: true,
986
+ enumerable: true
1101
987
  });
1102
988
  }
1103
989
  });
@@ -1107,11 +993,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1107
993
  plt.jmp(() => {
1108
994
  var _a2;
1109
995
  const propName = attrNameToPropName.get(attrName);
1110
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
996
+ if (this.hasOwnProperty(propName)) {
1111
997
  newValue = this[propName];
1112
998
  delete this[propName];
1113
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1114
- this[propName] == newValue) {
999
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1115
1000
  return;
1116
1001
  } else if (propName == null) {
1117
1002
  const hostRef = getHostRef(this);
@@ -1127,11 +1012,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1127
1012
  }
1128
1013
  return;
1129
1014
  }
1130
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1131
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1132
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1133
- this[propName] = newValue;
1134
- }
1015
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1135
1016
  });
1136
1017
  };
1137
1018
  Cstr.observedAttributes = Array.from(
@@ -1160,7 +1041,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1160
1041
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1161
1042
  const bundleId = cmpMeta.$lazyBundleId$;
1162
1043
  if (bundleId) {
1163
- const CstrImport = loadModule(cmpMeta, hostRef);
1044
+ const CstrImport = loadModule(cmpMeta);
1164
1045
  if (CstrImport && "then" in CstrImport) {
1165
1046
  const endLoad = uniqueTime();
1166
1047
  Cstr = await CstrImport;
@@ -1185,7 +1066,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1185
1066
  try {
1186
1067
  new Cstr(hostRef);
1187
1068
  } catch (e) {
1188
- consoleError(e, elm);
1069
+ consoleError(e);
1189
1070
  }
1190
1071
  {
1191
1072
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1220,7 +1101,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1220
1101
  schedule();
1221
1102
  }
1222
1103
  };
1223
- var fireConnectedCallback = (instance, elm) => {
1104
+ var fireConnectedCallback = (instance) => {
1224
1105
  };
1225
1106
 
1226
1107
  // src/runtime/connected-callback.ts
@@ -1260,26 +1141,20 @@ var connectedCallback = (elm) => {
1260
1141
  endConnected();
1261
1142
  }
1262
1143
  };
1263
- var disconnectInstance = (instance, elm) => {
1144
+ var disconnectInstance = (instance) => {
1264
1145
  {
1265
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1146
+ safeCall(instance, "disconnectedCallback");
1266
1147
  }
1267
1148
  };
1268
1149
  var disconnectedCallback = async (elm) => {
1269
1150
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1270
1151
  const hostRef = getHostRef(elm);
1271
1152
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1272
- disconnectInstance(hostRef.$lazyInstance$, elm);
1153
+ disconnectInstance(hostRef.$lazyInstance$);
1273
1154
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1274
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1155
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1275
1156
  }
1276
1157
  }
1277
- if (rootAppliedStyles.has(elm)) {
1278
- rootAppliedStyles.delete(elm);
1279
- }
1280
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1281
- rootAppliedStyles.delete(elm.shadowRoot);
1282
- }
1283
1158
  };
1284
1159
 
1285
1160
  // src/runtime/bootstrap-lazy.ts
@@ -1360,17 +1235,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1360
1235
  }
1361
1236
  disconnectedCallback() {
1362
1237
  plt.jmp(() => disconnectedCallback(this));
1363
- plt.raf(() => {
1364
- var _a3;
1365
- const hostRef = getHostRef(this);
1366
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1367
- if (i2 > -1) {
1368
- deferredConnectedCallbacks.splice(i2, 1);
1369
- }
1370
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1371
- delete hostRef.$vnode$.$elm$;
1372
- }
1373
- });
1374
1238
  }
1375
1239
  componentOnReady() {
1376
1240
  return getHostRef(this).$onReadyPromise$;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-732f640c.js';
1
+ import { r as registerInstance, h } from './index-e6e68604.js';
2
2
 
3
3
  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}";
4
4
  const LinkSectionListStyle0 = linkSectionListCss;
@@ -6,13 +6,10 @@ const LinkSectionListStyle0 = linkSectionListCss;
6
6
  const LinkSectionList = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
- /**
10
- * If this is true it will emit an event at the moment the content with url its clicked
11
- */
9
+ this.repeaterContent = undefined;
10
+ this.baseUrl = undefined;
11
+ this.language = undefined;
12
12
  this.navigateViaEvent = false;
13
- /**
14
- * Post Message event to be sent on navigation via event
15
- */
16
13
  this.postMessageEvent = '';
17
14
  }
18
15
  navigateLink(link) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-732f640c.js';
2
- export { s as setNonce } from './index-732f640c.js';
1
+ import { b as bootstrapLazy } from './index-e6e68604.js';
2
+ export { s as setNonce } from './index-e6e68604.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 e,b as t}from"./p-1fc2e24a.js";export{s as setNonce}from"./p-1fc2e24a.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-a8c0f5a0",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-3eda45d5",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["p-dd7ffd49",[[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]}]]],["p-a4b44512",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-55524eed",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]]],e))));
1
+ import{p as e,b as t}from"./p-16bd4237.js";export{s as setNonce}from"./p-16bd4237.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-5f13c34b",[[2,"custom-content-section",{customContent:[1,"custom-content"],repeaterContent:[8,"repeater-content"],navigateViaEvent:[516,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-f12f5263",[[2,"custom-clock",{clockFormat:[513,"clock-format"],timeZone:[513,"time-zone"],translationUrl:[513,"translation-url"],language:[513],timeString:[32]},null,{translationUrl:["handleNewTranslations"]}]]],["p-076550c8",[[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]}]]],["p-2879096a",[[0,"link-section-list",{repeaterContent:[8,"repeater-content"],baseUrl:[513,"base-url"],language:[513],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]],["p-d7132f51",[[2,"image-list",{repeaterContent:[8,"repeater-content"],navigateViaEvent:[4,"navigate-via-event"],postMessageEvent:[513,"post-message-event"]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{r as e,h as n}from"./p-16bd4237.js";const t={downloadApp:{component:"custom-content-section"},"link-section":{component:"link-section-list"},copyright:{component:"custom-content-section"},download:{component:"custom-content-section"},helpLinks:{component:"image-list"},"license-description":{component:"custom-content-section"},licenses:{component:"image-list"},payment:{component:"image-list"},social:{component:"image-list"},sponsors:{component:"image-list"},vendors:{component:"image-list"},clock:{component:"custom-clock"}},o=class{constructor(n){e(this,n),this.platform=(()=>{const e=(()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(e)return"PC"===e?"dk":"iPad"===e||"iPhone"===e?"ios":"mtWeb"})(),this.MANDATORY_FIELDS=["endpoint","language","sections"],this.language=void 0,this.sections=void 0,this.endpoint=void 0,this.env="stage",this.userRoles="everyone",this.userid=void 0,this.session=void 0,this.baseUrl=void 0,this.navigateViaEvent="false",this.postMessageEvent="NavigateTo",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.clockFormat="HH:MM:ss",this.timeZone="",this.mbSource=void 0,this.hasErrors=!1}validateMandatoryFields(){this.MANDATORY_FIELDS.forEach((e=>{this[e]||(console.error(`Mandatory parameter ${e} not received`),this.hasErrors=!0)}))}componentWillLoad(){this.sectionsList=this.sections.split(",").map((e=>e.trim()));const e=new URL(`${this.endpoint}/${this.language}/footer-raw-data`);return e.searchParams.append("env",this.env),e.searchParams.append("device",this.platform),e.searchParams.append("userroles",this.userRoles),this.validateMandatoryFields(),fetch(e.href).then((e=>e.json())).then((e=>{0===Object.keys(e).length?this.hasErrors=!0:this.footerContent=(e=>{const n={repeaters:{vendors:{categoryTitle:e.gameVendorsLinksTitle,content:[]},"link-section":{categoryTitle:e.helpLinksTitle,content:[]},helpLinks:{categoryTitle:e.helpLinksTitle,content:[]},licenses:{categoryTitle:e.licensesLinksTitle,content:[]},sponsors:{categoryTitle:e.sponsorsLinksTitle,content:[]},payment:{categoryTitle:e.paymentLinksTitle,content:[]},social:{categoryTitle:e.socialLinksTitle,content:[]},downloadApp:{categoryTitle:e.downloadAppLinksTitle,content:[]}},wysiwyg:{copyright:{categoryTitle:"test",content:"test"},download:{categoryTitle:"test",content:"test"},downloadApp:{categoryTitle:"test",content:"test"},"license-description":{categoryTitle:"test",content:"test"}}},t={helpLinks:{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},"link-section":{repeaterName:"helpLinksRepeater",isExternalLink:"helpLinkType",linkCategory:"helpLinkCategory",image:"helpLinkImage",title:"helpLinkTitle",url:"helpLinkUrl",target:"target"},social:{repeaterName:"socialLinksRepeater",isExternalLink:"isExternalLink",image:"socialLinkImage",title:"socialLinkTitle",url:"socialLinkUrl",target:"target"},vendors:{repeaterName:"gameVendorsRepeater",isExternalLink:"isExternalLink",image:"gameVendorImage",title:"gameVendorTitle",url:"gameVendorUrl",target:"target"},licenses:{repeaterName:"licensesRepeater",isExternalLink:"isExternalLink",image:"licenseImage",title:"licenseTitle",url:"licenseUrl",target:"target"},payment:{repeaterName:"paymentMethodsRepeater",isExternalLink:"isExternalLink",image:"paymentMethodImage",title:"paymentTitle",url:"paymentMethodUrl",target:"target"},sponsors:{repeaterName:"sponsorsRepeater",isExternalLink:"isExternalLink",image:"sponsorImage",title:"sponsorTitle",url:"sponsorUrl",target:"target"}};return Object.entries(n.repeaters).forEach((n=>{var o,i,r;t[n[0]]&&e[null===(o=t[n[0]])||void 0===o?void 0:o.repeaterName]&&(n[1].content=null===(r=e[null===(i=t[n[0]])||void 0===i?void 0:i.repeaterName])||void 0===r?void 0:r.map((e=>{var o,i,r,a,s,l;return{isExternalLink:null!==(o=e[t[n[0]].isExternalLink])&&void 0!==o?o:null,linkCategory:null!==(i=e[t[n[0]].linkCategory])&&void 0!==i?i:null,image:null!==(r=e[t[n[0]].image])&&void 0!==r?r:null,title:null!==(a=e[t[n[0]].title])&&void 0!==a?a:null,url:null!==(s=e[t[n[0]].url])&&void 0!==s?s:null,target:null!==(l=e[t[n[0]].target])&&void 0!==l?l:null}})))})),n.repeaters.downloadApp.content=e.downloadInfos.imageArea||[],n.wysiwyg.downloadApp.content=e.downloadInfos.downloadDescription||"",n.wysiwyg.copyright.content=e.copyright,n.wysiwyg["license-description"].content=e.licenseDesc,n})(e)}))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){null!=window.emMessageBus?function(e,n){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(n,(n=>{t.innerHTML=n,e&&e.appendChild(t)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&function(e,n){if(e){const t=document.createElement("style");t.innerHTML=n,e.appendChild(t)}}(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&function(e,n){const t=new URL(n);fetch(t.href).then((e=>e.text())).then((n=>{const t=document.createElement("style");t.innerHTML=n,e&&e.appendChild(t)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}(this.stylingContainer,this.clientStylingUrl))}render(){if(this.hasErrors)return n("div",null,"There was an error while bootstraping the widget");{const e=this.sectionsList.map(((e,o)=>{const i=t[e].component,r=this.footerContent.repeaters.hasOwnProperty(e),a=this.footerContent.wysiwyg.hasOwnProperty(e);return n(i,{class:`${e} FooterSectionContainer FooterSectionContainer${o+1}`,userid:this.userid,session:this.session,"base-url":this.baseUrl,language:this.language,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent,ruleset:t[e],repeaterContent:r?this.footerContent.repeaters[e]:null,customContent:a?this.footerContent.wysiwyg[e].content:null,"translation-url":this.translationUrl,"clock-format":this.clockFormat,"time-zone":this.timeZone})}));return n("footer",{class:"FooterContainer",ref:e=>this.stylingContainer=e},n("div",{class:"FooterGrid customStyle"},e))}}};o.style=':host {\n display: block;\n}\n\n/* $-background-primary: #14202d; */\n* {\n font-family: sans-serif;\n}\n\nhtml,\nbody {\n margin: 0;\n padding: 0;\n font-family: inherit;\n}\n\n.FooterSectionContainer {\n color: var(--emw--footer-typography, var(--emw--color-thpography, #fff));\n padding: 15px 20px 0;\n}\n\n/* // FOOTER CONTAINER - only serves to be read as a container */\n.FooterContainer {\n container-type: inline-size;\n container-name: footerContainer;\n}\n\n.FooterGrid {\n background-color: var(--emw--footer-color-bg, var(--emw--color-background, #0E1511));\n display: grid;\n grid-template-rows: repeat(9, auto);\n grid-template-areas: "one" "two" "three" "four" "five" "six" "seven";\n}\n\n.FooterSectionContainer1 {\n position: relative;\n grid-area: one;\n}\n\n.FooterSectionContainer2 {\n position: relative;\n grid-area: two;\n}\n\n.FooterSectionContainer3 {\n position: relative;\n grid-area: three;\n}\n\n.FooterSectionContainer4 {\n position: relative;\n grid-area: four;\n}\n\n.FooterSectionContainer5 {\n grid-area: five;\n}\n\n.FooterSectionContainer6 {\n padding-top: 22px;\n grid-area: six;\n}\n\n.FooterSectionContainer7 {\n grid-area: seven;\n}\n\n/* // remove paddings */\n.FooterSectionContainer7 div {\n padding: 0;\n}\n\n@container (max-width: 750px) {\n .FooterSectionContainer3:after,\n .FooterSectionContainer2:after {\n position: absolute;\n content: "";\n height: 1px;\n width: 90%;\n background-color: var(--emw--color-gray-100, #444);\n }\n .FooterSectionContainer5 {\n grid-area: five;\n background-color: var(--emw--color-background-secondary, #060706);\n padding: 30px 0;\n font-size: var(--emw--font-size-medium, 16px);\n min-height: var(--emw--size-medium-plus, 100px);\n justify-self: center;\n }\n}\n/* // STYLES FOR TABLET / DESKTOP */\n@container (min-width: 750px) {\n .FooterGrid {\n background: var(--emw--footer-color-bg, var(--emw--color-background, #0E1511));\n display: grid;\n border-top: 5px solid var(--emw--footer-color-primary, var(--emw--color-primary, #22B04E));\n grid-template-rows: repeat(5, auto);\n grid-template-columns: 1fr 1fr 1fr 1fr;\n grid-template-areas: "one two three four" "five five five five" "six six six six" "seven seven seven seven";\n }\n .FooterSectionContainer1 {\n padding: 30px 40px;\n grid-area: one;\n background: var(--emw--color-background, #000000);\n }\n .FooterSectionContainer2 {\n grid-area: two;\n min-height: var(--emw--size-4x-medium, 500px);\n }\n .FooterSectionContainer3 {\n grid-area: three;\n }\n .FooterSectionContainer4 {\n grid-area: four;\n }\n .FooterSectionContainer5 {\n grid-area: five;\n background-color: var(--emw--color-background-secondary, #091217);\n padding: var(--emw--spacing-x-large, 30px) 0;\n font-size: var(--emw--font-size-medium, 16px);\n min-height: var(--emw--size-medium-plus, 100px);\n }\n .FooterSectionContainer6 {\n grid-area: six;\n padding: 0;\n }\n .FooterSectionContainer7 {\n grid-area: seven;\n padding: 0;\n }\n /* // remove paddings */\n .FooterSectionContainer5 .CustomContentSectionWrapper {\n padding: 0;\n }\n .FooterSectionContainer5 .CustomContentSectionWrapper div {\n display: flex;\n flex-direction: left;\n align-items: center;\n padding-left: var(--emw--spacing-large, 20px);\n }\n .FooterSectionContainer5 .CustomContentSectionWrapper div p {\n margin: var(--emw--spacing-2x-small, 5px);\n text-align: center;\n }\n .FooterSectionContainer6 .CustomContentSectionWrapper div p {\n text-align: center;\n }\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n .FooterSectionContainer6 .ImageListWrapper {\n padding: 0;\n }\n .FooterSectionContainer7 .CustomContentSectionWrapper {\n padding: 0;\n padding-bottom: var(--emw--spacing-large, 22px);\n font-size: var(--emw--font-size-small, 14px);\n }\n}';export{o as general_footer_template}