@everymatrix/general-stories 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 (32) hide show
  1. package/dist/cjs/{general-stories-eec35bcb.js → general-stories-caa7546c.js} +14 -28
  2. package/dist/cjs/general-stories.cjs.entry.js +2 -2
  3. package/dist/cjs/general-stories.cjs.js +2 -2
  4. package/dist/cjs/{index-5e8dba8b.js → index-bfe9e0e7.js} +69 -172
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +1 -1
  8. package/dist/collection/components/general-stories/general-stories.css +5 -3
  9. package/dist/collection/components/general-stories/general-stories.js +12 -40
  10. package/dist/esm/{general-stories-b08533ff.js → general-stories-2b03e517.js} +14 -28
  11. package/dist/esm/general-stories.entry.js +2 -2
  12. package/dist/esm/general-stories.js +3 -3
  13. package/dist/esm/{index-3d519791.js → index-eb27780b.js} +69 -172
  14. package/dist/esm/index.js +2 -2
  15. package/dist/esm/loader.js +2 -2
  16. package/dist/general-stories/general-stories.esm.js +1 -1
  17. package/dist/general-stories/index.esm.js +1 -1
  18. package/dist/general-stories/p-33a823ba.js +2 -0
  19. package/dist/general-stories/p-7421aeac.entry.js +1 -0
  20. package/dist/general-stories/p-8492d966.js +1 -0
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-stories/.stencil/packages/stencil/general-stories/stencil.config.d.ts +2 -0
  22. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-stories/.stencil/packages/stencil/general-stories/stencil.config.dev.d.ts +2 -0
  23. package/package.json +1 -1
  24. package/dist/general-stories/p-75ff40bf.js +0 -1
  25. package/dist/general-stories/p-9be4d8b5.js +0 -2
  26. package/dist/general-stories/p-aec1e7bb.entry.js +0 -1
  27. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-stories/.stencil/packages/stencil/general-stories/stencil.config.d.ts +0 -2
  28. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-stories/.stencil/packages/stencil/general-stories/stencil.config.dev.d.ts +0 -2
  29. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-stories/.stencil/tools/plugins/index.d.ts +0 -0
  30. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-stories/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  31. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-stories/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  32. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-stories/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,25 +1,17 @@
1
1
  const NAMESPACE = 'general-stories';
2
- const BUILD = /* general-stories */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* general-stories */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.22.3 | 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/utils/constants.ts
14
- var SVG_NS = "http://www.w3.org/2000/svg";
15
- var HTML_NS = "http://www.w3.org/1999/xhtml";
16
-
17
- // src/client/client-host-ref.ts
18
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
19
13
  var getHostRef = (ref) => hostRefs.get(ref);
20
- var registerInstance = (lazyInstance, hostRef) => {
21
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
22
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
23
15
  var registerHost = (hostElement, cmpMeta) => {
24
16
  const hostRef = {
25
17
  $flags$: 0,
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
32
24
  hostElement["s-p"] = [];
33
25
  hostElement["s-rc"] = [];
34
26
  }
35
- const ref = hostRefs.set(hostElement, hostRef);
36
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
37
28
  };
38
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
39
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -70,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
70
61
  /* webpackExclude: /\.system\.entry\.js$/ */
71
62
  /* webpackMode: "lazy" */
72
63
  `./${bundleId}.entry.js${""}`
73
- ).then(
74
- (importedModule) => {
75
- {
76
- cmpModules.set(bundleId, importedModule);
77
- }
78
- return importedModule[exportName];
79
- },
80
- (e) => {
81
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
82
67
  }
83
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
84
70
  };
85
71
 
86
72
  // src/client/client-style.ts
87
73
  var styles = /* @__PURE__ */ new Map();
88
- var HYDRATED_STYLE_ID = "sty-id";
89
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
90
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
91
76
  var win = typeof window !== "undefined" ? window : {};
@@ -159,6 +144,14 @@ var flush = () => {
159
144
  };
160
145
  var nextTick = (cb) => promiseResolve().then(cb);
161
146
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
+
148
+ // src/utils/constants.ts
149
+ var EMPTY_OBJ = {};
150
+ var SVG_NS = "http://www.w3.org/2000/svg";
151
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
152
+
153
+ // src/utils/helpers.ts
154
+ var isDef = (v) => v != null;
162
155
  var isComplexType = (o) => {
163
156
  o = typeof o;
164
157
  return o === "object" || o === "function";
@@ -370,7 +363,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
370
363
  }
371
364
  if (!appliedStyles.has(scopeId2)) {
372
365
  {
373
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
366
+ styleElm = doc.createElement("style");
374
367
  styleElm.innerHTML = style;
375
368
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
376
369
  if (nonce != null) {
@@ -380,10 +373,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
380
373
  if (styleContainerNode.nodeName === "HEAD") {
381
374
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
382
375
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
383
- styleContainerNode.insertBefore(
384
- styleElm,
385
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
386
- );
376
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
387
377
  } else if ("host" in styleContainerNode) {
388
378
  if (supportsConstructableStylesheets) {
389
379
  const stylesheet = new CSSStyleSheet();
@@ -401,7 +391,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
401
391
  styleContainerNode.append(styleElm);
402
392
  }
403
393
  }
404
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
394
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
405
395
  styleContainerNode.insertBefore(styleElm, null);
406
396
  }
407
397
  }
@@ -426,25 +416,23 @@ var attachStyles = (hostRef) => {
426
416
  const scopeId2 = addStyle(
427
417
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
428
418
  cmpMeta);
429
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
419
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
430
420
  elm["s-sc"] = scopeId2;
431
421
  elm.classList.add(scopeId2 + "-h");
432
422
  }
433
423
  endAttachStyles();
434
424
  };
435
425
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
436
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
426
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
437
427
  if (oldValue !== newValue) {
438
428
  let isProp = isMemberInElement(elm, memberName);
439
429
  let ln = memberName.toLowerCase();
440
430
  if (memberName === "class") {
441
431
  const classList = elm.classList;
442
432
  const oldClasses = parseClassList(oldValue);
443
- let newClasses = parseClassList(newValue);
444
- {
445
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
446
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
447
- }
433
+ const newClasses = parseClassList(newValue);
434
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
435
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
448
436
  } else if (memberName === "style") {
449
437
  {
450
438
  for (const prop in oldValue) {
@@ -503,7 +491,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
503
491
  elm.setAttribute(memberName, n);
504
492
  }
505
493
  }
506
- } else if (elm[memberName] !== newValue) {
494
+ } else {
507
495
  elm[memberName] = newValue;
508
496
  }
509
497
  } catch (e) {
@@ -525,44 +513,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
525
513
  }
526
514
  };
527
515
  var parseClassListRegex = /\s/;
528
- var parseClassList = (value) => {
529
- if (typeof value === "object" && value && "baseVal" in value) {
530
- value = value.baseVal;
531
- }
532
- if (!value || typeof value !== "string") {
533
- return [];
534
- }
535
- return value.split(parseClassListRegex);
536
- };
516
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
537
517
  var CAPTURE_EVENT_SUFFIX = "Capture";
538
518
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
539
519
 
540
520
  // src/runtime/vdom/update-element.ts
541
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
521
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
542
522
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
543
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
544
- const newVnodeAttrs = newVnode.$attrs$ || {};
523
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
524
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
545
525
  {
546
526
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
547
527
  if (!(memberName in newVnodeAttrs)) {
548
- setAccessor(
549
- elm,
550
- memberName,
551
- oldVnodeAttrs[memberName],
552
- void 0,
553
- isSvgMode2,
554
- newVnode.$flags$);
528
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
555
529
  }
556
530
  }
557
531
  }
558
532
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
559
- setAccessor(
560
- elm,
561
- memberName,
562
- oldVnodeAttrs[memberName],
563
- newVnodeAttrs[memberName],
564
- isSvgMode2,
565
- newVnode.$flags$);
533
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
566
534
  }
567
535
  };
568
536
  function sortedAttrNames(attrNames) {
@@ -574,10 +542,13 @@ function sortedAttrNames(attrNames) {
574
542
  attrNames
575
543
  );
576
544
  }
545
+
546
+ // src/runtime/vdom/vdom-render.ts
547
+ var scopeId;
577
548
  var hostTagName;
578
549
  var useNativeShadowDom = false;
579
550
  var isSvgMode = false;
580
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
551
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
581
552
  const newVNode2 = newParentVNode.$children$[childIndex];
582
553
  let i2 = 0;
583
554
  let elm;
@@ -598,6 +569,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
598
569
  {
599
570
  updateElement(null, newVNode2, isSvgMode);
600
571
  }
572
+ const rootNode = elm.getRootNode();
573
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
574
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
575
+ elm.classList.add(elm["s-si"] = scopeId);
576
+ }
601
577
  if (newVNode2.$children$) {
602
578
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
603
579
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -709,9 +685,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
709
685
  };
710
686
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
711
687
  if (leftVNode.$tag$ === rightVNode.$tag$) {
712
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
713
- leftVNode.$key$ = rightVNode.$key$;
714
- }
715
688
  return true;
716
689
  }
717
690
  return false;
@@ -758,9 +731,8 @@ var nullifyVNodeRefs = (vNode) => {
758
731
  }
759
732
  };
760
733
  var insertBefore = (parent, newNode, reference) => {
761
- {
762
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
763
- }
734
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
735
+ return inserted;
764
736
  };
765
737
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
766
738
  const hostElm = hostRef.$hostElement$;
@@ -785,21 +757,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
785
757
  rootVnode.$flags$ |= 4 /* isHost */;
786
758
  hostRef.$vnode$ = rootVnode;
787
759
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
788
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
760
+ {
761
+ scopeId = hostElm["s-sc"];
762
+ }
763
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
789
764
  patch(oldVNode, rootVnode, isInitialLoad);
790
765
  };
791
766
 
792
767
  // src/runtime/update-component.ts
793
768
  var attachToAncestor = (hostRef, ancestorComponent) => {
794
769
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
795
- const index = ancestorComponent["s-p"].push(
796
- new Promise(
797
- (r) => hostRef.$onRenderResolve$ = () => {
798
- ancestorComponent["s-p"].splice(index - 1, 1);
799
- r();
800
- }
801
- )
802
- );
770
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
803
771
  }
804
772
  };
805
773
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -828,12 +796,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
828
796
  {
829
797
  hostRef.$flags$ |= 256 /* isListenReady */;
830
798
  if (hostRef.$queuedListeners$) {
831
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
799
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
832
800
  hostRef.$queuedListeners$ = void 0;
833
801
  }
834
802
  }
835
803
  {
836
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
804
+ maybePromise = safeCall(instance, "componentWillLoad");
837
805
  }
838
806
  }
839
807
  endSchedule();
@@ -927,14 +895,17 @@ var postUpdateComponent = (hostRef) => {
927
895
  }
928
896
  };
929
897
  var appDidLoad = (who) => {
898
+ {
899
+ addHydratedFlag(doc.documentElement);
900
+ }
930
901
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
931
902
  };
932
- var safeCall = (instance, method, arg, elm) => {
903
+ var safeCall = (instance, method, arg) => {
933
904
  if (instance && instance[method]) {
934
905
  try {
935
906
  return instance[method](arg);
936
907
  } catch (e) {
937
- consoleError(e, elm);
908
+ consoleError(e);
938
909
  }
939
910
  }
940
911
  return void 0;
@@ -993,68 +964,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
993
964
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
994
965
  members.map(([memberName, [memberFlags]]) => {
995
966
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
996
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
997
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
998
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
999
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1000
- Object.defineProperty(prototype, memberName, {
1001
- get() {
1002
- {
1003
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1004
- return getValue(this, memberName);
1005
- }
1006
- const ref = getHostRef(this);
1007
- const instance = ref ? ref.$lazyInstance$ : prototype;
1008
- if (!instance) return;
1009
- return instance[memberName];
1010
- }
1011
- },
1012
- configurable: true,
1013
- enumerable: true
1014
- });
1015
- }
1016
967
  Object.defineProperty(prototype, memberName, {
968
+ get() {
969
+ return getValue(this, memberName);
970
+ },
1017
971
  set(newValue) {
1018
- const ref = getHostRef(this);
1019
- if (origSetter) {
1020
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1021
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1022
- newValue = ref.$instanceValues$.get(memberName);
1023
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1024
- ref.$instanceValues$.set(memberName, currentValue);
1025
- }
1026
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1027
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1028
- setValue(this, memberName, newValue, cmpMeta);
1029
- return;
1030
- }
1031
- {
1032
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1033
- setValue(this, memberName, newValue, cmpMeta);
1034
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1035
- ref.$onReadyPromise$.then(() => {
1036
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1037
- ref.$lazyInstance$[memberName] = newValue;
1038
- }
1039
- });
1040
- }
1041
- return;
1042
- }
1043
- const setterSetVal = () => {
1044
- const currentValue = ref.$lazyInstance$[memberName];
1045
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1046
- ref.$instanceValues$.set(memberName, currentValue);
1047
- }
1048
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1049
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1050
- };
1051
- if (ref.$lazyInstance$) {
1052
- setterSetVal();
1053
- } else {
1054
- ref.$onReadyPromise$.then(() => setterSetVal());
1055
- }
1056
- }
1057
- }
972
+ setValue(this, memberName, newValue, cmpMeta);
973
+ },
974
+ configurable: true,
975
+ enumerable: true
1058
976
  });
1059
977
  }
1060
978
  });
@@ -1064,7 +982,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1064
982
  plt.jmp(() => {
1065
983
  var _a2;
1066
984
  const propName = attrNameToPropName.get(attrName);
1067
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
985
+ if (this.hasOwnProperty(propName)) {
1068
986
  newValue = this[propName];
1069
987
  delete this[propName];
1070
988
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1084,11 +1002,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1084
1002
  }
1085
1003
  return;
1086
1004
  }
1087
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1088
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1089
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1090
- this[propName] = newValue;
1091
- }
1005
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1092
1006
  });
1093
1007
  };
1094
1008
  Cstr.observedAttributes = Array.from(
@@ -1117,7 +1031,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1117
1031
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1118
1032
  const bundleId = cmpMeta.$lazyBundleId$;
1119
1033
  if (bundleId) {
1120
- const CstrImport = loadModule(cmpMeta, hostRef);
1034
+ const CstrImport = loadModule(cmpMeta);
1121
1035
  if (CstrImport && "then" in CstrImport) {
1122
1036
  const endLoad = uniqueTime();
1123
1037
  Cstr = await CstrImport;
@@ -1142,7 +1056,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1142
1056
  try {
1143
1057
  new Cstr(hostRef);
1144
1058
  } catch (e) {
1145
- consoleError(e, elm);
1059
+ consoleError(e);
1146
1060
  }
1147
1061
  {
1148
1062
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1177,7 +1091,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1177
1091
  schedule();
1178
1092
  }
1179
1093
  };
1180
- var fireConnectedCallback = (instance, elm) => {
1094
+ var fireConnectedCallback = (instance) => {
1181
1095
  };
1182
1096
 
1183
1097
  // src/runtime/connected-callback.ts
@@ -1218,7 +1132,7 @@ var connectedCallback = (elm) => {
1218
1132
  endConnected();
1219
1133
  }
1220
1134
  };
1221
- var disconnectInstance = (instance, elm) => {
1135
+ var disconnectInstance = (instance) => {
1222
1136
  };
1223
1137
  var disconnectedCallback = async (elm) => {
1224
1138
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1233,12 +1147,6 @@ var disconnectedCallback = async (elm) => {
1233
1147
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1234
1148
  }
1235
1149
  }
1236
- if (rootAppliedStyles.has(elm)) {
1237
- rootAppliedStyles.delete(elm);
1238
- }
1239
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1240
- rootAppliedStyles.delete(elm.shadowRoot);
1241
- }
1242
1150
  };
1243
1151
 
1244
1152
  // src/runtime/bootstrap-lazy.ts
@@ -1323,17 +1231,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1323
1231
  }
1324
1232
  disconnectedCallback() {
1325
1233
  plt.jmp(() => disconnectedCallback(this));
1326
- plt.raf(() => {
1327
- var _a3;
1328
- const hostRef = getHostRef(this);
1329
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1330
- if (i2 > -1) {
1331
- deferredConnectedCallbacks.splice(i2, 1);
1332
- }
1333
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1334
- delete hostRef.$vnode$.$elm$;
1335
- }
1336
- });
1337
1234
  }
1338
1235
  componentOnReady() {
1339
1236
  return getHostRef(this).$onReadyPromise$;
@@ -1397,7 +1294,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1397
1294
  }
1398
1295
  }
1399
1296
  } catch (e) {
1400
- consoleError(e, hostRef.$hostElement$);
1297
+ consoleError(e);
1401
1298
  }
1402
1299
  };
1403
1300
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { G as GeneralStories } from './general-stories-b08533ff.js';
2
- import './index-3d519791.js';
1
+ export { G as GeneralStories } from './general-stories-2b03e517.js';
2
+ import './index-eb27780b.js';
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-3d519791.js';
2
- export { s as setNonce } from './index-3d519791.js';
1
+ import { b as bootstrapLazy } from './index-eb27780b.js';
2
+ export { s as setNonce } from './index-eb27780b.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 t,b as n}from"./p-9be4d8b5.js";export{s as setNonce}from"./p-9be4d8b5.js";import{g as r}from"./p-e1255160.js";(()=>{const n=import.meta.url,r={};return""!==n&&(r.resourcesUrl=new URL(".",n).href),t(r)})().then((async t=>(await r(),n([["p-aec1e7bb",[[1,"general-stories",{cmsEndpoint:[513,"cms-endpoint"],language:[513],cmsEnv:[513,"cms-env"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],progressBarDuration:[514,"progress-bar-duration"],currentStory:[32],currentStoryId:[32],progress:[32],touchPosStart:[32],touchPosEnd:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]],{clientStyling:["handleStylingUpdate"],clientStylingUrl:["handleStylingUpdate"],translationUrl:["handleNewTranslations"],progress:["handleTimeEnds"]}]]]],t))));
1
+ import{p as t,b as n}from"./p-33a823ba.js";export{s as setNonce}from"./p-33a823ba.js";import{g as r}from"./p-e1255160.js";(()=>{const n=import.meta.url,r={};return""!==n&&(r.resourcesUrl=new URL(".",n).href),t(r)})().then((async t=>(await r(),n([["p-7421aeac",[[1,"general-stories",{cmsEndpoint:[513,"cms-endpoint"],language:[513],cmsEnv:[513,"cms-env"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],progressBarDuration:[514,"progress-bar-duration"],currentStory:[32],currentStoryId:[32],progress:[32],touchPosStart:[32],touchPosEnd:[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]],{clientStyling:["handleStylingUpdate"],clientStylingUrl:["handleStylingUpdate"],translationUrl:["handleNewTranslations"],progress:["handleTimeEnds"]}]]]],t))));
@@ -1 +1 @@
1
- export{G as GeneralStories}from"./p-75ff40bf.js";import"./p-9be4d8b5.js";
1
+ export{G as GeneralStories}from"./p-8492d966.js";import"./p-33a823ba.js";
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),m=!1,d=[],y=[],v=(t,e)=>n=>{t.push(n),m||(m=!0,e&&4&f.o?b($):f.raf($))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{w(d),w(y),(m=d.length>0)&&f.raf($)},b=t=>h().then(t),g=v(y,!0),S={},j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return k(t.value);throw"should never get here"}var M,x=t=>{if(t.isOk)return t.value;throw t.value},P=t=>{if(t.isErr)return t.value;throw t.value},A=(t,e,...n)=>{let o=null,l=!1,s=!1;const r=[],i=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?i(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!j(o))&&(o+=""),l&&s?r[r.length-1].i+=o:r.push(l?H(null,o):o),s=l)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,r,T);const c=H(t,null);return c.u=e,r.length>0&&(c.h=r),c},H=(t,e)=>({o:0,p:t,i:e,m:null,h:null,u:null}),R={},T={forEach:(t,e)=>t.map(D).forEach(e),map:(t,e)=>t.map(D).map(e).map(F)},D=t=>({vattrs:t.u,vchildren:t.h,vkey:t.v,vname:t.$,vtag:t.p,vtext:t.i}),F=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),A(t.vtag,e,...t.vchildren||[])}const e=H(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.v=t.vkey,e.$=t.vname,e},L=new WeakMap,N=t=>"sc-"+t.S,U=(t,e,n,o,s,r)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=q(n),s=q(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&r||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(G);e=e.replace(V,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},W=/\s/,q=t=>t?t.split(W):[],G="Capture",V=RegExp(G+"$"),_=(t,e,n)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||S,s=e.u||S;for(const t of z(Object.keys(l)))t in s||U(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(s)))U(o,t,l[t],s[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=(t,e,n)=>{const o=e.h[n];let l,s,r=0;if(null!==o.i)l=o.m=a.createTextNode(o.i);else{if(B||(B="svg"===o.p),l=o.m=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.p),B&&"foreignObject"===o.p&&(B=!1),_(null,o,B),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=I(t,o,r),s&&l.appendChild(s);"svg"===o.p?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=M,l},J=(t,e,n,o,l,s)=>{let r,i=t;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=I(null,n,l),r&&(o[l].m=r,Z(i,r,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;Y(e),t&&t.remove()}}},Q=(t,e)=>t.p===e.p,X=(t,e,n=!1)=>{const o=e.m=t.m,l=t.h,s=e.h,r=e.p,i=e.i;null===i?(_(t,e,B="svg"===r||"foreignObject"!==r&&B),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r=0,i=0,c=e.length-1,u=e[0],a=e[c],f=o.length-1,h=o[0],p=o[f];for(;r<=c&&i<=f;)null==u?u=e[++r]:null==a?a=e[--c]:null==h?h=o[++i]:null==p?p=o[--f]:Q(u,h)?(X(u,h,l),u=e[++r],h=o[++i]):Q(a,p)?(X(a,p,l),a=e[--c],p=o[--f]):Q(u,p)?(X(u,p,l),Z(t,u.m,a.m.nextSibling),u=e[++r],p=o[--f]):Q(a,h)?(X(a,h,l),Z(t,a.m,u.m),a=e[--c],h=o[++i]):(s=I(e&&e[i],n,i),h=o[++i],s&&Z(u.m.parentNode,s,u.m));r>c?J(t,null==o[f+1]?null:o[f+1].m,n,o,i,f):i>f&&K(e,r,c)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===r&&(B=!1)):t.i!==i&&(o.data=i)},Y=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(Y)},Z=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),tt=(t,e)=>{e&&!t.j&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.j=e)))},et=(t,e)=>{if(t.o|=16,!(4&t.o))return tt(t,t.O),g((()=>nt(t,e)));t.o|=512},nt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.k&&(t.k.map((([t,e])=>ut(n,t,e))),t.k=void 0),o=ut(n,"componentWillLoad")),ot(o,(()=>st(t,n,e)))},ot=(t,e)=>lt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),lt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,st=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.C,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=N(e),l=i.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,r=L.get(t=t.head||t);if(r||L.set(t,r=new Set),!r.has(o)){{s=a.createElement("style"),s.innerHTML=l;const o=null!=(n=f.M)?n:O(a);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,n)}else if("host"in t)if(p){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);rt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>it(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},rt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.C,s=t.P||H(null,null),r=(t=>t&&t.p===R)(e)?e:A(null,null,e);if(M=o.tagName,l.A&&(r.u=r.u||{},l.A.map((([t,e])=>r.u[e]=o[t]))),n&&r.u)for(const t of Object.keys(r.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.u[t]=o[t]);r.p=null,r.o|=4,t.P=r,r.m=s.m=o.shadowRoot||o,X(s,r,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},it=t=>{const e=t.$hostElement$,n=t.O;64&t.o||(t.o|=64,at(e),t.H(e),n||ct()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>et(t,!1))),t.o&=-517},ct=()=>{at(a.documentElement),b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"general-stories"}});return t.dispatchEvent(e),e})(u)))},ut=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},at=t=>t.classList.add("hydrated"),ft=(t,e,o)=>{var l,r;const i=t.prototype;if(e.R||e.T||t.watchers){t.watchers&&!e.T&&(e.T=t.watchers);const c=Object.entries(null!=(l=e.R)?l:{});if(c.map((([t,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).D.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.D.get(e),u=r.o,a=r.t;if(o=((t,e)=>null==t||j(t)?t:2&e?parseFloat(t):1&e?t+"":t)(o,l.R[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.D.set(e,o),a)){if(l.T&&128&u){const t=l.T[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&u)&&et(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.T)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.T)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.A)||l.push([t,s])),s}))]))}}return t},ht=(t,o={})=>{var l;const h=[],m=o.exclude||[],d=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],S:o[1],R:o[2],F:o[3]};4&c.o&&(S=!0),c.R=o[2],c.F=o[3],c.A=[],c.T=null!=(l=o[4])?l:{};const u=c.S,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,C:n,D:new Map};o.L=new Promise((t=>o.H=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,pt(this,t,c.F)),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.C,l=()=>{};if(1&e.o)pt(t,e,o.F),(null==e?void 0:e.t)||(null==e?void 0:e.L)&&e.L.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){tt(e,e.O=n);break}}o.R&&Object.entries(o.R).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.N){const t=(t=>{const e=t.S.replace(/-/g,"_"),n=t.N;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.S}#${e.U}" was not found`);o.isProxied||(n.T=o.watchers,ft(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=N(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.O,c=()=>et(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.o)){const t=n(this);t.W&&(t.W.map((t=>t())),t.W=void 0),(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}))}})()))}componentOnReady(){return n(this).L}};c.N=t[0],m.includes(u)||d.get(u)||(h.push(u),d.define(u,ft(a,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=f.M)?l:O(a);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(ct,30)))},pt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=t,r=mt(e,l),i=dt(n);f.ael(s,o,r,i),(e.W=e.W||[]).push((()=>f.rel(s,o,r,i)))}))},mt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.k=t.k||[]).push([e,n])}catch(t){s(t)}},dt=t=>({passive:!!(1&t),capture:!!(2&t)}),yt=t=>f.M=t;export{ht as b,A as h,h as p,o as r,yt as s}
@@ -0,0 +1 @@
1
+ export{G as general_stories}from"./p-8492d966.js";import"./p-33a823ba.js";
@@ -0,0 +1 @@
1
+ import{r as t,h as i}from"./p-33a823ba.js";const e={en:{error:"Error",generalStoriesLoading:"Loading, please wait ...",loadMore:"Load More"},hu:{error:"Hiba",generalStoriesLoading:"Betöltés, kérjük várjon ...",loadMore:"Továbbiak betöltése"},ro:{error:"Eroare",generalStoriesLoading:"Se încarcă, vă rugăm așteptați ...",loadMore:"Încarcă mai multe"},fr:{error:"Erreur",generalStoriesLoading:"Chargement, veuillez patienter ...",loadMore:"Charger plus"},ar:{error:"خطأ",generalStoriesLoading:"جار التحميل، يرجى الانتظار ...",loadMore:"تحميل المزيد"},hr:{error:"Greška",generalStoriesLoading:"Učitavanje, molimo pričekajte ...",loadMore:"Učitaj više"}},o=t=>new Promise((i=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((i=>{e[i]||(e[i]={});for(let o in t[i])e[i][o]=t[i][o]})),i(!0)}))})),r=(t,i)=>e[void 0!==i&&i in e?i:"en"][t],s=class{constructor(e){t(this,e),this.hasErrors=!1,this.isLoading=!0,this.isSwipe=!1,this.getStories=()=>{let t=new URL(`${this.cmsEndpoint}/${this.language}/stories`);return t.searchParams.append("env",this.cmsEnv),t.searchParams.append("device",(()=>{const t=(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(t)return"PC"===t?"dk":"mtWeb"})()),t.searchParams.append("language",this.language),new Promise(((i,e)=>{this.isLoading=!0,fetch(t.href).then((t=>t.json())).then((t=>{this.stories=t,this.stories.forEach((t=>{t.viewed=!1})),this.isLoading=!1,i(!0)})).catch((t=>{console.log(t),this.isLoading=!1,this.hasErrors=!0,e(t)}))}))},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),i=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{i.innerHTML=t,setTimeout((()=>{this.stylingContainer.prepend(i)}),1)})).catch((t=>{console.log("error ",t)}))},this.navigateToExternalStoryLink=()=>{window.postMessage({type:"OpenStoryLink",url:this.currentStory.storyUrl},window.location.href)},this.openFullScreenStory=t=>{this.currentStoryId=t,this.currentStory=this.stories.find((i=>i.id===t)),this.markStoryAsViewed(t),this.startProgress()},this.closeFullScreenView=()=>{this.markStoryAsViewed(this.currentStoryId.toString()),this.currentStoryId=null,this.progress=0,clearInterval(this.intervalId)},this.markStoryAsViewed=t=>{const i=this.stories.findIndex((i=>i.id===t));if(i>-1){const[t]=this.stories.splice(i,1);t.viewed=!0,this.stories=[...this.stories,t]}},this.changeStory=(t,i)=>{const e="next"===i?Number(t.index)+1:Number(t.index)-1;if(e>this.stories.length-1||e<0)this.markStoryAsViewed(t.index),this.closeFullScreenView();else{const t=this.stories.find((t=>t.index===e));this.currentStory=t,this.currentStoryId=t.id,this.progress=0,this.markStoryAsViewed(t.id)}},this.startProgress=()=>{const t=100/(1e3*this.progressBarDuration)*100;this.intervalId=setInterval((()=>{this.progress>=100?clearInterval(this.intervalId):this.progress+=t}),100)},this.Thumbnail=({props:t})=>i("div",{class:"StoryThumbnailContainer "+(t.viewed?"Viewed":"Highlighted"),onTouchStart:()=>this.openFullScreenStory(t.id)},i("img",{class:"StoryThumbnailImage "+(t.viewed?"Viewed":"Highlighted"),src:t.icon,alt:"story-icon"})),this.cmsEndpoint=void 0,this.language="en",this.cmsEnv="stage",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.progressBarDuration=10,this.currentStory=void 0,this.currentStoryId=null,this.progress=0,this.touchPosStart=void 0,this.touchPosEnd=void 0}handleStylingUpdate(){this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL()}handleNewTranslations(){this.isLoading=!0,o(this.translationUrl).then((()=>{this.isLoading=!1}))}handleTimeEnds(t){t>=100&&this.changeStory(this.currentStory,"next")}async componentWillLoad(){this.cmsEndpoint&&this.language&&await this.getStories(),this.translationUrl.length>2&&await o(this.translationUrl)}onTouchStart(t){this.touchPosStart={clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}}onTouchMove(t){this.touchPosEnd={clientX:t.touches[0].clientX,clientY:t.touches[0].clientY},Math.abs(this.touchPosEnd.clientX-this.touchPosStart.clientX)>50&&(this.isSwipe=!0)}onTouchEnd(t){if(this.isSwipe)this.touchPosEnd={clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY},this.changeStory(this.currentStory,this.touchPosEnd.clientX-this.touchPosStart.clientX>0?"previous":"next");else{const i=window.innerWidth;this.changeStory(this.currentStory,t.changedTouches[0].clientX>i/2?"next":"previous")}}render(){return this.hasErrors?i("div",{class:"GeneralStoriesError"},i("div",{class:"Title"},r("error",this.language))):this.isLoading?i("div",{class:"GeneralStoriesLoading"},i("div",{class:"Title"},r("generalStoriesLoading",this.language))):this.isLoading?void 0:i("div",{ref:t=>this.stylingContainer=t},this.currentStoryId?i("div",{class:"FullScreenStory"},i("div",{class:"FullScreenHeader"},i("div",{class:"ProgressBarContainer"},i("div",{class:"ProgressBar",style:{width:`${this.progress}%`}})),i("div",{id:"close",class:"CloseStoryButton",onTouchStart:this.closeFullScreenView},i("svg",{fill:"none",stroke:"#ffffff",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})))),"video"===this.currentStory.type?i("video",{autoPlay:!0},i("source",{src:this.currentStory.url,type:"video/mp4"})):i("img",{src:this.currentStory.url,alt:"story-image"}),this.currentStory.storyUrl&&i("div",{class:"LoadMoreButtonBackground"},i("button",{onTouchStart:this.navigateToExternalStoryLink,class:"LoadMoreButton"},r("loadMore",this.language)))):i("div",{class:"ImageContainer"},this.stories.map((t=>i(this.Thumbnail,{props:t})))))}static get watchers(){return{clientStyling:["handleStylingUpdate"],clientStylingUrl:["handleStylingUpdate"],translationUrl:["handleNewTranslations"],progress:["handleTimeEnds"]}}};s.style='.ImageContainer{display:flex;flex-direction:row;background-color:var(--emw--color-background, #0E1511);overflow:auto}.StoryThumbnailContainer{margin:5px;position:relative;display:inline-block;border-radius:50%}.StoryThumbnailContainer.Highlighted::before{content:"";position:absolute;border-radius:50%;background:linear-gradient(to bottom, var(--emw--color-primary, #22B04E), var(--emw--color-secondary, #E1A749));top:-3px;left:-3px;width:111%;height:103%}.StoryThumbnailContainer.Viewed::before{content:"";position:absolute;border-radius:50%;height:50px;width:50px;background:var(--emw--color-grey-150, #828282);top:-3px;left:-3px;width:111%;height:103%}.StoryThumbnailImage{height:50px;width:50px;border-radius:50%;position:relative;z-index:1}.StoryThumbnailImage.Highlighted,.StoryThumbnailImage.Viewed{border:2px solid var(--emw--color-white, #ffffff)}.FullScreenHeader{position:fixed;top:0;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));top:0px;width:100%;display:flex;flex-direction:column;padding:10px 0;z-index:5;height:30px}.FullScreenHeader .CloseStoryButton{position:absolute;right:0;width:20px;margin-right:20px;margin-top:8px;z-index:50}.FullScreenHeader .ProgressBarContainer{width:90%;height:2px;position:relative;top:0;background-color:var(--emw--color-grey-150, #828282);border-radius:10px;overflow:hidden;margin:0 auto}.FullScreenHeader .ProgressBarContainer .ProgressBar{height:100%;background:var(--emw--color-white, #ffffff);width:0%;transition:width 0.1s linear}.FullScreenStory{position:fixed;top:0;width:100%;height:100%;background-color:var(--emw--color-grey-400, #24211f);display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:300}.FullScreenStory video{height:100vh;width:100vw}.FullScreenStory img{width:100%;height:100%;object-fit:contain}.FullScreenStory .LoadMoreButtonBackground{width:100%;height:15%;background:linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));position:absolute;bottom:0;display:flex;justify-content:center}.FullScreenStory .LoadMoreButtonBackground .LoadMoreButton{width:auto;font-size:var(--emw--font-size-small, 14px);font-family:inherit;background-color:var(--emw--color-grey-50, #F9F8F8);box-shadow:0px 0px 7px 1px var(--emw--color-grey-400, #24211f);color:var(--emw--color-black, #000000);border-radius:50px;position:absolute;bottom:15px;padding:10px 20px}';export{s as G}
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-stories",
3
- "version": "1.54.11",
3
+ "version": "1.55.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,h as i}from"./p-9be4d8b5.js";const e={en:{error:"Error",generalStoriesLoading:"Loading, please wait ...",loadMore:"Load More"},hu:{error:"Hiba",generalStoriesLoading:"Betöltés, kérjük várjon ...",loadMore:"Továbbiak betöltése"},ro:{error:"Eroare",generalStoriesLoading:"Se încarcă, vă rugăm așteptați ...",loadMore:"Încarcă mai multe"},fr:{error:"Erreur",generalStoriesLoading:"Chargement, veuillez patienter ...",loadMore:"Charger plus"},ar:{error:"خطأ",generalStoriesLoading:"جار التحميل، يرجى الانتظار ...",loadMore:"تحميل المزيد"},hr:{error:"Greška",generalStoriesLoading:"Učitavanje, molimo pričekajte ...",loadMore:"Učitaj više"}},o=t=>new Promise((i=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((i=>{e[i]||(e[i]={});for(let o in t[i])e[i][o]=t[i][o]})),i(!0)}))})),r=(t,i)=>e[void 0!==i&&i in e?i:"en"][t],s=class{constructor(e){t(this,e),this.language="en",this.cmsEnv="stage",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.progressBarDuration=10,this.hasErrors=!1,this.isLoading=!0,this.isSwipe=!1,this.currentStoryId=null,this.progress=0,this.getStories=()=>{let t=new URL(`${this.cmsEndpoint}/${this.language}/stories`);return t.searchParams.append("env",this.cmsEnv),t.searchParams.append("device",(()=>{const t=(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})();if(t)return"PC"===t?"dk":"mtWeb"})()),t.searchParams.append("language",this.language),new Promise(((i,e)=>{this.isLoading=!0,fetch(t.href).then((t=>t.json())).then((t=>{this.stories=t,this.stories.forEach((t=>{t.viewed=!1})),this.isLoading=!1,i(!0)})).catch((t=>{console.log(t),this.isLoading=!1,this.hasErrors=!0,e(t)}))}))},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),i=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{i.innerHTML=t,setTimeout((()=>{this.stylingContainer.prepend(i)}),1)})).catch((t=>{console.log("error ",t)}))},this.navigateToExternalStoryLink=()=>{window.postMessage({type:"OpenStoryLink",url:this.currentStory.storyUrl},window.location.href)},this.openFullScreenStory=t=>{this.currentStoryId=t,this.currentStory=this.stories.find((i=>i.id===t)),this.markStoryAsViewed(t),this.startProgress()},this.closeFullScreenView=()=>{this.markStoryAsViewed(this.currentStoryId.toString()),this.currentStoryId=null,this.progress=0,clearInterval(this.intervalId)},this.markStoryAsViewed=t=>{const i=this.stories.findIndex((i=>i.id===t));if(i>-1){const[t]=this.stories.splice(i,1);t.viewed=!0,this.stories=[...this.stories,t]}},this.changeStory=(t,i)=>{const e="next"===i?Number(t.index)+1:Number(t.index)-1;if(e>this.stories.length-1||e<0)this.markStoryAsViewed(t.index),this.closeFullScreenView();else{const t=this.stories.find((t=>t.index===e));this.currentStory=t,this.currentStoryId=t.id,this.progress=0,this.markStoryAsViewed(t.id)}},this.startProgress=()=>{const t=100/(1e3*this.progressBarDuration)*100;this.intervalId=setInterval((()=>{this.progress>=100?clearInterval(this.intervalId):this.progress+=t}),100)},this.Thumbnail=({props:t})=>i("div",{class:"StoryThumbnailContainer "+(t.viewed?"Viewed":"Highlighted"),onTouchStart:()=>this.openFullScreenStory(t.id)},i("img",{class:"StoryThumbnailImage "+(t.viewed?"Viewed":"Highlighted"),src:t.icon,alt:"story-icon"}))}handleStylingUpdate(){this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL()}handleNewTranslations(){this.isLoading=!0,o(this.translationUrl).then((()=>{this.isLoading=!1}))}handleTimeEnds(t){t>=100&&this.changeStory(this.currentStory,"next")}async componentWillLoad(){this.cmsEndpoint&&this.language&&await this.getStories(),this.translationUrl.length>2&&await o(this.translationUrl)}onTouchStart(t){this.touchPosStart={clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}}onTouchMove(t){this.touchPosEnd={clientX:t.touches[0].clientX,clientY:t.touches[0].clientY},Math.abs(this.touchPosEnd.clientX-this.touchPosStart.clientX)>50&&(this.isSwipe=!0)}onTouchEnd(t){if(this.isSwipe)this.touchPosEnd={clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY},this.changeStory(this.currentStory,this.touchPosEnd.clientX-this.touchPosStart.clientX>0?"previous":"next");else{const i=window.innerWidth;this.changeStory(this.currentStory,t.changedTouches[0].clientX>i/2?"next":"previous")}}render(){return this.hasErrors?i("div",{class:"GeneralStoriesError"},i("div",{class:"Title"},r("error",this.language))):this.isLoading?i("div",{class:"GeneralStoriesLoading"},i("div",{class:"Title"},r("generalStoriesLoading",this.language))):this.isLoading?void 0:i("div",{ref:t=>this.stylingContainer=t},this.currentStoryId?i("div",{class:"FullScreenStory"},i("div",{class:"FullScreenHeader"},i("div",{class:"ProgressBarContainer"},i("div",{class:"ProgressBar",style:{width:`${this.progress}%`}})),i("div",{id:"close",class:"CloseStoryButton",onTouchStart:this.closeFullScreenView},i("svg",{fill:"none",stroke:"#ffffff",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})))),"video"===this.currentStory.type?i("video",{autoPlay:!0},i("source",{src:this.currentStory.url,type:"video/mp4"})):i("img",{src:this.currentStory.url,alt:"story-image"}),this.currentStory.storyUrl&&i("div",{class:"LoadMoreButtonBackground"},i("button",{onTouchStart:this.navigateToExternalStoryLink,class:"LoadMoreButton"},r("loadMore",this.language)))):i("div",{class:"ImageContainer"},this.stories.map((t=>i(this.Thumbnail,{props:t})))))}static get watchers(){return{clientStyling:["handleStylingUpdate"],clientStylingUrl:["handleStylingUpdate"],translationUrl:["handleNewTranslations"],progress:["handleTimeEnds"]}}};s.style='.ImageContainer{display:flex;flex-direction:row;background-color:var(--emw--color-background, #0E1511);overflow:auto}.StoryThumbnailContainer{margin:5px;position:relative;display:inline-block;border-radius:50%}.StoryThumbnailContainer.Highlighted::before{content:"";position:absolute;border-radius:50%;background:linear-gradient(to bottom, var(--emw--color-primary, #22B04E), var(--emw--color-secondary, #E1A749));top:-3px;left:-3px;width:111%;height:103%}.StoryThumbnailContainer.Viewed::before{content:"";position:absolute;border-radius:50%;height:50px;width:50px;background:var(--emw--color-grey-150, #828282);top:-3px;left:-3px;width:111%;height:103%}.StoryThumbnailImage{height:50px;width:50px;border-radius:50%;position:relative;z-index:1}.StoryThumbnailImage.Highlighted,.StoryThumbnailImage.Viewed{border:2px solid var(--emw--color-white, #ffffff)}.FullScreenHeader{position:fixed;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));top:0px;width:100%;display:flex;flex-direction:column;padding:10px 0;z-index:5;height:30px}.FullScreenHeader .CloseStoryButton{position:absolute;right:0;width:20px;margin-right:20px;margin-top:8px;z-index:50}.FullScreenHeader .ProgressBarContainer{width:90%;height:2px;position:relative;top:0;background-color:var(--emw--color-grey-150, #828282);border-radius:10px;overflow:hidden;margin:0 auto}.FullScreenHeader .ProgressBarContainer .ProgressBar{height:100%;background:var(--emw--color-white, #ffffff);width:0%;transition:width 0.1s linear}.FullScreenStory{position:fixed;width:100vw;height:100vh;background-color:var(--emw--color-grey-400, #24211f);display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:300}.FullScreenStory video{height:100vh;width:100vw}.FullScreenStory img{width:100%;height:100%;object-fit:contain}.FullScreenStory .LoadMoreButtonBackground{width:100vw;height:15%;background:linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));position:absolute;bottom:0;display:flex;justify-content:center}.FullScreenStory .LoadMoreButtonBackground .LoadMoreButton{width:auto;font-size:var(--emw--font-size-small, 14px);font-family:inherit;background-color:var(--emw--color-grey-50, #F9F8F8);box-shadow:0px 0px 7px 1px var(--emw--color-grey-400, #24211f);color:var(--emw--color-black, #000000);border-radius:50px;position:absolute;bottom:15px;padding:10px 20px}';export{s as G}