@everymatrix/general-slider 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 (24) hide show
  1. package/dist/cjs/general-slider.cjs.entry.js +9 -39
  2. package/dist/cjs/general-slider.cjs.js +2 -2
  3. package/dist/cjs/{index-1e31d6e0.js → index-2e6eeb26.js} +71 -206
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/general-slider/general-slider.js +8 -58
  7. package/dist/esm/general-slider.entry.js +9 -39
  8. package/dist/esm/general-slider.js +3 -3
  9. package/dist/esm/{index-69022c20.js → index-616f5c12.js} +71 -206
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/general-slider/general-slider.esm.js +1 -1
  12. package/dist/general-slider/{p-983490d7.entry.js → p-044ca50c.entry.js} +1 -1
  13. package/dist/general-slider/p-f8262766.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/general-slider/p-4b3cc973.js +0 -2
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-slider/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-slider/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-slider/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-slider/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'general-slider';
2
- const BUILD = /* general-slider */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, 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: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* general-slider */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, 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: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/client/client-host-ref.ts
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -139,6 +128,12 @@ var flush = () => {
139
128
  };
140
129
  var nextTick = (cb) => promiseResolve().then(cb);
141
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
134
+
135
+ // src/utils/helpers.ts
136
+ var isDef = (v) => v != null;
142
137
  var isComplexType = (o) => {
143
138
  o = typeof o;
144
139
  return o === "object" || o === "function";
@@ -327,40 +322,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
327
322
  }
328
323
  if (!appliedStyles.has(scopeId2)) {
329
324
  {
330
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
325
+ styleElm = doc.createElement("style");
331
326
  styleElm.innerHTML = style;
332
327
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
333
328
  if (nonce != null) {
334
329
  styleElm.setAttribute("nonce", nonce);
335
330
  }
336
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
337
- if (styleContainerNode.nodeName === "HEAD") {
338
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
339
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
340
- styleContainerNode.insertBefore(
341
- styleElm,
342
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
343
- );
344
- } else if ("host" in styleContainerNode) {
345
- if (supportsConstructableStylesheets) {
346
- const stylesheet = new CSSStyleSheet();
347
- stylesheet.replaceSync(style);
348
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
349
- } else {
350
- const existingStyleContainer = styleContainerNode.querySelector("style");
351
- if (existingStyleContainer) {
352
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
353
- } else {
354
- styleContainerNode.prepend(styleElm);
355
- }
356
- }
357
- } else {
358
- styleContainerNode.append(styleElm);
359
- }
360
- }
361
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
362
- styleContainerNode.insertBefore(styleElm, null);
363
- }
331
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
364
332
  }
365
333
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
366
334
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -383,25 +351,23 @@ var attachStyles = (hostRef) => {
383
351
  const scopeId2 = addStyle(
384
352
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
385
353
  cmpMeta);
386
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
354
+ if (flags & 10 /* needsScopedEncapsulation */) {
387
355
  elm["s-sc"] = scopeId2;
388
356
  elm.classList.add(scopeId2 + "-h");
389
357
  }
390
358
  endAttachStyles();
391
359
  };
392
360
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
393
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
361
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
394
362
  if (oldValue !== newValue) {
395
363
  let isProp = isMemberInElement(elm, memberName);
396
364
  let ln = memberName.toLowerCase();
397
365
  if (memberName === "class") {
398
366
  const classList = elm.classList;
399
367
  const oldClasses = parseClassList(oldValue);
400
- let newClasses = parseClassList(newValue);
401
- {
402
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
403
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
404
- }
368
+ const newClasses = parseClassList(newValue);
369
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
370
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
405
371
  } else if (memberName === "key") ; else if (memberName === "ref") {
406
372
  if (newValue) {
407
373
  newValue(elm);
@@ -433,13 +399,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
433
399
  if (memberName === "list") {
434
400
  isProp = false;
435
401
  } else if (oldValue == null || elm[memberName] != n) {
436
- if (typeof elm.__lookupSetter__(memberName) === "function") {
437
- elm[memberName] = n;
438
- } else {
439
- elm.setAttribute(memberName, n);
440
- }
402
+ elm[memberName] = n;
441
403
  }
442
- } else if (elm[memberName] !== newValue) {
404
+ } else {
443
405
  elm[memberName] = newValue;
444
406
  }
445
407
  } catch (e) {
@@ -461,44 +423,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
461
423
  }
462
424
  };
463
425
  var parseClassListRegex = /\s/;
464
- var parseClassList = (value) => {
465
- if (typeof value === "object" && value && "baseVal" in value) {
466
- value = value.baseVal;
467
- }
468
- if (!value || typeof value !== "string") {
469
- return [];
470
- }
471
- return value.split(parseClassListRegex);
472
- };
426
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
473
427
  var CAPTURE_EVENT_SUFFIX = "Capture";
474
428
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
475
429
 
476
430
  // src/runtime/vdom/update-element.ts
477
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
431
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
478
432
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
479
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
480
- const newVnodeAttrs = newVnode.$attrs$ || {};
433
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
434
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
481
435
  {
482
436
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
483
437
  if (!(memberName in newVnodeAttrs)) {
484
- setAccessor(
485
- elm,
486
- memberName,
487
- oldVnodeAttrs[memberName],
488
- void 0,
489
- isSvgMode2,
490
- newVnode.$flags$);
438
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
491
439
  }
492
440
  }
493
441
  }
494
442
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
495
- setAccessor(
496
- elm,
497
- memberName,
498
- oldVnodeAttrs[memberName],
499
- newVnodeAttrs[memberName],
500
- isSvgMode2,
501
- newVnode.$flags$);
443
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
502
444
  }
503
445
  };
504
446
  function sortedAttrNames(attrNames) {
@@ -510,10 +452,13 @@ function sortedAttrNames(attrNames) {
510
452
  attrNames
511
453
  );
512
454
  }
455
+
456
+ // src/runtime/vdom/vdom-render.ts
457
+ var scopeId;
513
458
  var hostTagName;
514
459
  var useNativeShadowDom = false;
515
460
  var isSvgMode = false;
516
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
461
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
517
462
  const newVNode2 = newParentVNode.$children$[childIndex];
518
463
  let i2 = 0;
519
464
  let elm;
@@ -527,6 +472,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
527
472
  {
528
473
  updateElement(null, newVNode2, isSvgMode);
529
474
  }
475
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
476
+ elm.classList.add(elm["s-si"] = scopeId);
477
+ }
530
478
  if (newVNode2.$children$) {
531
479
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
532
480
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -656,9 +604,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
656
604
  if (!isInitialRender) {
657
605
  return leftVNode.$key$ === rightVNode.$key$;
658
606
  }
659
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
660
- leftVNode.$key$ = rightVNode.$key$;
661
- }
662
607
  return true;
663
608
  }
664
609
  return false;
@@ -682,10 +627,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
682
627
  elm.textContent = "";
683
628
  }
684
629
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
685
- } else if (
686
- // don't do this on initial render as it can cause non-hydrated content to be removed
687
- !isInitialRender && BUILD.updatable && oldChildren !== null
688
- ) {
630
+ } else if (oldChildren !== null) {
689
631
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
690
632
  }
691
633
  } else if (oldVNode.$text$ !== text) {
@@ -699,9 +641,8 @@ var nullifyVNodeRefs = (vNode) => {
699
641
  }
700
642
  };
701
643
  var insertBefore = (parent, newNode, reference) => {
702
- {
703
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
704
- }
644
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
645
+ return inserted;
705
646
  };
706
647
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
707
648
  const hostElm = hostRef.$hostElement$;
@@ -720,21 +661,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
720
661
  rootVnode.$flags$ |= 4 /* isHost */;
721
662
  hostRef.$vnode$ = rootVnode;
722
663
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
723
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
664
+ {
665
+ scopeId = hostElm["s-sc"];
666
+ }
667
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
724
668
  patch(oldVNode, rootVnode, isInitialLoad);
725
669
  };
726
670
 
727
671
  // src/runtime/update-component.ts
728
672
  var attachToAncestor = (hostRef, ancestorComponent) => {
729
673
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
730
- const index = ancestorComponent["s-p"].push(
731
- new Promise(
732
- (r) => hostRef.$onRenderResolve$ = () => {
733
- ancestorComponent["s-p"].splice(index - 1, 1);
734
- r();
735
- }
736
- )
737
- );
674
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
738
675
  }
739
676
  };
740
677
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -761,7 +698,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
761
698
  let maybePromise;
762
699
  if (isInitialLoad) {
763
700
  {
764
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
701
+ maybePromise = safeCall(instance, "componentWillLoad");
765
702
  }
766
703
  }
767
704
  endSchedule();
@@ -830,7 +767,7 @@ var postUpdateComponent = (hostRef) => {
830
767
  const instance = hostRef.$lazyInstance$ ;
831
768
  const ancestorComponent = hostRef.$ancestorComponent$;
832
769
  {
833
- safeCall(instance, "componentDidRender", void 0, elm);
770
+ safeCall(instance, "componentDidRender");
834
771
  }
835
772
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
836
773
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -838,7 +775,7 @@ var postUpdateComponent = (hostRef) => {
838
775
  addHydratedFlag(elm);
839
776
  }
840
777
  {
841
- safeCall(instance, "componentDidLoad", void 0, elm);
778
+ safeCall(instance, "componentDidLoad");
842
779
  }
843
780
  endPostUpdate();
844
781
  {
@@ -849,7 +786,7 @@ var postUpdateComponent = (hostRef) => {
849
786
  }
850
787
  } else {
851
788
  {
852
- safeCall(instance, "componentDidUpdate", void 0, elm);
789
+ safeCall(instance, "componentDidUpdate");
853
790
  }
854
791
  endPostUpdate();
855
792
  }
@@ -865,14 +802,17 @@ var postUpdateComponent = (hostRef) => {
865
802
  }
866
803
  };
867
804
  var appDidLoad = (who) => {
805
+ {
806
+ addHydratedFlag(doc.documentElement);
807
+ }
868
808
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
869
809
  };
870
- var safeCall = (instance, method, arg, elm) => {
810
+ var safeCall = (instance, method, arg) => {
871
811
  if (instance && instance[method]) {
872
812
  try {
873
813
  return instance[method](arg);
874
814
  } catch (e) {
875
- consoleError(e, elm);
815
+ consoleError(e);
876
816
  }
877
817
  }
878
818
  return void 0;
@@ -915,68 +855,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
915
855
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
916
856
  members.map(([memberName, [memberFlags]]) => {
917
857
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
918
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
919
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
920
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
921
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
922
- Object.defineProperty(prototype, memberName, {
923
- get() {
924
- {
925
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
926
- return getValue(this, memberName);
927
- }
928
- const ref = getHostRef(this);
929
- const instance = ref ? ref.$lazyInstance$ : prototype;
930
- if (!instance) return;
931
- return instance[memberName];
932
- }
933
- },
934
- configurable: true,
935
- enumerable: true
936
- });
937
- }
938
858
  Object.defineProperty(prototype, memberName, {
859
+ get() {
860
+ return getValue(this, memberName);
861
+ },
939
862
  set(newValue) {
940
- const ref = getHostRef(this);
941
- if (origSetter) {
942
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
943
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
944
- newValue = ref.$instanceValues$.get(memberName);
945
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
946
- ref.$instanceValues$.set(memberName, currentValue);
947
- }
948
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
949
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
950
- setValue(this, memberName, newValue, cmpMeta);
951
- return;
952
- }
953
- {
954
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
955
- setValue(this, memberName, newValue, cmpMeta);
956
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
957
- ref.$onReadyPromise$.then(() => {
958
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
959
- ref.$lazyInstance$[memberName] = newValue;
960
- }
961
- });
962
- }
963
- return;
964
- }
965
- const setterSetVal = () => {
966
- const currentValue = ref.$lazyInstance$[memberName];
967
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
968
- ref.$instanceValues$.set(memberName, currentValue);
969
- }
970
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
971
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
972
- };
973
- if (ref.$lazyInstance$) {
974
- setterSetVal();
975
- } else {
976
- ref.$onReadyPromise$.then(() => setterSetVal());
977
- }
978
- }
979
- }
863
+ setValue(this, memberName, newValue, cmpMeta);
864
+ },
865
+ configurable: true,
866
+ enumerable: true
980
867
  });
981
868
  }
982
869
  });
@@ -986,11 +873,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
986
873
  plt.jmp(() => {
987
874
  var _a2;
988
875
  const propName = attrNameToPropName.get(attrName);
989
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
876
+ if (this.hasOwnProperty(propName)) {
990
877
  newValue = this[propName];
991
878
  delete this[propName];
992
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
993
- this[propName] == newValue) {
879
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
994
880
  return;
995
881
  } else if (propName == null) {
996
882
  const hostRef = getHostRef(this);
@@ -1006,11 +892,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1006
892
  }
1007
893
  return;
1008
894
  }
1009
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1010
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1011
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1012
- this[propName] = newValue;
1013
- }
895
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1014
896
  });
1015
897
  };
1016
898
  Cstr.observedAttributes = Array.from(
@@ -1035,7 +917,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1035
917
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1036
918
  const bundleId = cmpMeta.$lazyBundleId$;
1037
919
  if (bundleId) {
1038
- const CstrImport = loadModule(cmpMeta, hostRef);
920
+ const CstrImport = loadModule(cmpMeta);
1039
921
  if (CstrImport && "then" in CstrImport) {
1040
922
  const endLoad = uniqueTime();
1041
923
  Cstr = await CstrImport;
@@ -1057,7 +939,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1057
939
  try {
1058
940
  new Cstr(hostRef);
1059
941
  } catch (e) {
1060
- consoleError(e, elm);
942
+ consoleError(e);
1061
943
  }
1062
944
  {
1063
945
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1089,7 +971,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1089
971
  schedule();
1090
972
  }
1091
973
  };
1092
- var fireConnectedCallback = (instance, elm) => {
974
+ var fireConnectedCallback = (instance) => {
1093
975
  };
1094
976
 
1095
977
  // src/runtime/connected-callback.ts
@@ -1129,26 +1011,20 @@ var connectedCallback = (elm) => {
1129
1011
  endConnected();
1130
1012
  }
1131
1013
  };
1132
- var disconnectInstance = (instance, elm) => {
1014
+ var disconnectInstance = (instance) => {
1133
1015
  {
1134
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1016
+ safeCall(instance, "disconnectedCallback");
1135
1017
  }
1136
1018
  };
1137
1019
  var disconnectedCallback = async (elm) => {
1138
1020
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1139
1021
  const hostRef = getHostRef(elm);
1140
1022
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1141
- disconnectInstance(hostRef.$lazyInstance$, elm);
1023
+ disconnectInstance(hostRef.$lazyInstance$);
1142
1024
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1143
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1025
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1144
1026
  }
1145
1027
  }
1146
- if (rootAppliedStyles.has(elm)) {
1147
- rootAppliedStyles.delete(elm);
1148
- }
1149
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1150
- rootAppliedStyles.delete(elm.shadowRoot);
1151
- }
1152
1028
  };
1153
1029
 
1154
1030
  // src/runtime/bootstrap-lazy.ts
@@ -1222,17 +1098,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1222
1098
  }
1223
1099
  disconnectedCallback() {
1224
1100
  plt.jmp(() => disconnectedCallback(this));
1225
- plt.raf(() => {
1226
- var _a3;
1227
- const hostRef = getHostRef(this);
1228
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1229
- if (i2 > -1) {
1230
- deferredConnectedCallbacks.splice(i2, 1);
1231
- }
1232
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1233
- delete hostRef.$vnode$.$elm$;
1234
- }
1235
- });
1236
1101
  }
1237
1102
  componentOnReady() {
1238
1103
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-69022c20.js';
2
- export { s as setNonce } from './index-69022c20.js';
1
+ import { b as bootstrapLazy } from './index-616f5c12.js';
2
+ export { s as setNonce } from './index-616f5c12.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-4b3cc973.js";export{s as setNonce}from"./p-4b3cc973.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t([["p-983490d7",[[1,"general-slider",{slideNumber:[2,"slide-number"],slideShow:[2,"slide-show"],showArrow:[4,"show-arrow"],showButton:[4,"show-button"],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],autoItemHeight:[4,"auto-item-height"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],currentPage:[2,"current-page"],currentSlideNumber:[32],slidesCount:[32],limitStylingAppends:[32]}]]]],e))));
1
+ import{p as e,b as t}from"./p-f8262766.js";export{s as setNonce}from"./p-f8262766.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t([["p-044ca50c",[[1,"general-slider",{slideNumber:[2,"slide-number"],slideShow:[2,"slide-show"],showArrow:[4,"show-arrow"],showButton:[4,"show-button"],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],autoItemHeight:[4,"auto-item-height"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],currentPage:[2,"current-page"],currentSlideNumber:[32],slidesCount:[32],limitStylingAppends:[32]}]]]],e))));
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-4b3cc973.js";const e=class{constructor(i){t(this,i),this.slideNumber=3,this.slideShow=3,this.showArrow=!0,this.showButton=!1,this.autoSlide=!1,this.loopTime=1,this.autoItemHeight=!1,this.clientStyling="",this.clientStylingUrl="",this.currentPage=0,this.currentSlideNumber=0,this.slidesCount=0,this.limitStylingAppends=!1,this.slides=null,this.slideWidth=0,this.controls={Prev:null,Next:null},this.xDown=null,this.yDown=null}slide(t){this.sliderEl.classList.remove("Static");let i=0;i=t?this.currentSlideNumber+this.slideNumber:this.currentSlideNumber-this.slideNumber,i<0||i>=this.slidesCount||(this.currentSlideNumber=i,this.currentPage=this.currentSlideNumber/this.slideNumber,this.updateListStyle())}slideTo(t){this.sliderEl.classList.remove("Static"),this.currentSlideNumber=t*this.slideNumber,this.currentPage=t,this.updateListStyle()}updateControls(){this.switchControl("Prev",0!==this.currentSlideNumber),this.switchControl("Next",this.currentSlideNumber!==this.slidesCount-this.slideShow)}switchControl(t,i){this.controls[t]&&(this.controls[t].disabled=!i)}componentWillLoad(){this.slideNumber||(this.slideNumber=1),this.slideShow||(this.slideShow=1)}componentDidLoad(){this.slides=this.slotEl.assignedElements(),this.slidesCount=this.slides.length;for(let t in this.controls)this.controls[t]=this.el.shadowRoot.querySelector(".Button"+t);this.autoSlide&&this.setSlideAutoInterval(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0),0!==this.currentPage&&(this.sliderEl.classList.add("Static"),this.currentSlideNumber=this.currentPage*this.slideNumber)}componentDidRender(){this.slides&&(this.slideWidth=this.slides[0].offsetWidth),this.el.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),this.el.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!0}),this.updateListStyle(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}updateListStyle(){this.autoItemHeight&&null!==this.slides&&this.slides.forEach(((t,i)=>{i>=this.currentPage*this.slideNumber&&i<(this.currentPage+1)*this.slideNumber?t.classList.remove("hide"):t.classList.add("hide")}))}disconnectedCallback(){this.el.removeEventListener("touchstart",this.handleTouchStart),this.el.removeEventListener("touchmove",this.handleTouchMove)}handleTouchStart(t){const i=this.getTouches(t)[0];this.xDown=i.clientX,this.yDown=i.clientY,clearInterval(this.sliderInterval)}getTouches(t){return t.touches||t.originalEvent.touches}handleTouchMove(t){if(!this.xDown||!this.yDown)return;let i=this.xDown-t.touches[0].clientX,s=this.yDown-t.touches[0].clientY;Math.abs(i)>Math.abs(s)&&this.slide(i>0),this.xDown=null,this.yDown=null,this.autoSlide&&this.setSlideAutoInterval()}setSlideAutoInterval(){0!=this.loopTime&&(clearInterval(this.sliderInterval),this.sliderInterval=setInterval((()=>{this.slideTo(this.currentPage+1<this.slidesCount/this.slideNumber?this.currentPage+1:0)}),1e3*Number(this.loopTime)))}componentDidUpdate(){this.sliderEl.style.transform=`translateX(${this.currentSlideNumber*this.slideWidth*-1}px)`,this.updateControls()}switchLoopStatus(t){this.autoSlide&&this.loopTime>0&&(t?clearInterval(this.sliderInterval):this.setSlideAutoInterval())}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const i=new CSSStyleSheet;i.replace(t),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,i]}))}render(){return i("div",{key:"8f86541d4454387e01a54b26c0aa6515d47ddb4d",class:"GeneralSlider"},i("div",{key:"c3e606e98881afeb2b867a58b25f3e7aa3915808",class:"Slider"},i("ul",{key:"e764fb6ad7fe7a727b7c1f37b5fe26704f2cd390",class:`SliderList Col-${this.slideShow}`,part:"SliderList",onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1),ref:t=>this.sliderEl=t},i("slot",{key:"c61792d98ee4aefeb8fe8e84245eac495ff2f898",ref:t=>this.slotEl=t}))),this.showButton&&this.slidesCount>0&&i("div",{key:"35b1a666ec07535c2b70e8678aff70be5a2eff35",class:"PageButtons",part:"PageButtons"},[...Array(this.slidesCount/this.slideNumber)].map(((t,s)=>i("div",{class:"PageButton "+(this.currentPage==s?"active":""),title:`page${s}`,onClick:this.slideTo.bind(this,s),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)}," ")))),this.showArrow&&i("div",{key:"6e910a7d9013b49bc70160fdc8b193de0c1ee309",class:"ArrowButtons"},i("button",{key:"1d21da8ede99b7ef0c1610334763d15d7a9640c7",type:"button",class:"Button ButtonNext",onClick:this.slide.bind(this,!0),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},">"),i("button",{key:"e890b5cb47ba744fb977e492235330f201129f09",type:"button",class:"Button ButtonPrev",onClick:this.slide.bind(this,!1),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},"<")))}get el(){return s(this)}};e.style=":host{display:block}.GeneralSlider{position:relative}.Slider{position:relative;width:100%;margin:0 auto;overflow:hidden}.SliderList{display:flex;margin:0;padding:0;list-style:none;transition:transform 0.5s ease-in-out}.SliderList.Static{transition-duration:0ms}::slotted(li){flex:1 0 auto;width:100%;margin:auto}::slotted(li.hide){visibility:hidden;height:0;transition-delay:500ms}.Col-2 ::slotted(li){flex:2 0 auto;width:50%}.Col-3 ::slotted(li){flex:3 0 auto;width:33.3333333333%}.Col-4 ::slotted(li){flex:4 0 auto;width:25%}.Col-5 ::slotted(li){flex:5 0 auto;width:20%}.Col-6 ::slotted(li){flex:6 0 auto;width:16.6666666667%}.Col-7 ::slotted(li){flex:7 0 auto;width:14.2857142857%}.Col-8 ::slotted(li){flex:8 0 auto;width:12.5%}.Col-9 ::slotted(li){flex:9 0 auto;width:11.1111111111%}.Col-10 ::slotted(li){flex:10 0 auto;width:10%}.Col-11 ::slotted(li){flex:11 0 auto;width:9.0909090909%}.Col-12 ::slotted(li){flex:12 0 auto;width:8.3333333333%}.Button{position:absolute;z-index:1;top:calc(50% - 32px);padding:20px;font-size:20px;line-height:20px;opacity:0.5;border:none;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emw--color-gray-150, #828282);opacity:0.25}.Button.ButtonNext{right:0}.PageButtons{display:flex;gap:4px;margin-top:8px}.PageButton{width:15px;height:4px;border-radius:4px;background-color:var(--emw--tournament-color-primary, #0072ed);opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";export{e as general_slider}
1
+ import{r as t,h as i,g as s}from"./p-f8262766.js";const e=class{constructor(i){t(this,i),this.slides=null,this.slideWidth=0,this.controls={Prev:null,Next:null},this.xDown=null,this.yDown=null,this.slideNumber=3,this.slideShow=3,this.showArrow=!0,this.showButton=!1,this.autoSlide=!1,this.loopTime=1,this.autoItemHeight=!1,this.clientStyling="",this.clientStylingUrl="",this.currentPage=0,this.currentSlideNumber=0,this.slidesCount=0,this.limitStylingAppends=!1}slide(t){this.sliderEl.classList.remove("Static");let i=0;i=t?this.currentSlideNumber+this.slideNumber:this.currentSlideNumber-this.slideNumber,i<0||i>=this.slidesCount||(this.currentSlideNumber=i,this.currentPage=this.currentSlideNumber/this.slideNumber,this.updateListStyle())}slideTo(t){this.sliderEl.classList.remove("Static"),this.currentSlideNumber=t*this.slideNumber,this.currentPage=t,this.updateListStyle()}updateControls(){this.switchControl("Prev",0!==this.currentSlideNumber),this.switchControl("Next",this.currentSlideNumber!==this.slidesCount-this.slideShow)}switchControl(t,i){this.controls[t]&&(this.controls[t].disabled=!i)}componentWillLoad(){this.slideNumber||(this.slideNumber=1),this.slideShow||(this.slideShow=1)}componentDidLoad(){this.slides=this.slotEl.assignedElements(),this.slidesCount=this.slides.length;for(let t in this.controls)this.controls[t]=this.el.shadowRoot.querySelector(".Button"+t);this.autoSlide&&this.setSlideAutoInterval(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0),0!==this.currentPage&&(this.sliderEl.classList.add("Static"),this.currentSlideNumber=this.currentPage*this.slideNumber)}componentDidRender(){this.slides&&(this.slideWidth=this.slides[0].offsetWidth),this.el.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),this.el.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!0}),this.updateListStyle(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}updateListStyle(){this.autoItemHeight&&null!==this.slides&&this.slides.forEach(((t,i)=>{i>=this.currentPage*this.slideNumber&&i<(this.currentPage+1)*this.slideNumber?t.classList.remove("hide"):t.classList.add("hide")}))}disconnectedCallback(){this.el.removeEventListener("touchstart",this.handleTouchStart),this.el.removeEventListener("touchmove",this.handleTouchMove)}handleTouchStart(t){const i=this.getTouches(t)[0];this.xDown=i.clientX,this.yDown=i.clientY,clearInterval(this.sliderInterval)}getTouches(t){return t.touches||t.originalEvent.touches}handleTouchMove(t){if(!this.xDown||!this.yDown)return;let i=this.xDown-t.touches[0].clientX,s=this.yDown-t.touches[0].clientY;Math.abs(i)>Math.abs(s)&&this.slide(i>0),this.xDown=null,this.yDown=null,this.autoSlide&&this.setSlideAutoInterval()}setSlideAutoInterval(){0!=this.loopTime&&(clearInterval(this.sliderInterval),this.sliderInterval=setInterval((()=>{this.slideTo(this.currentPage+1<this.slidesCount/this.slideNumber?this.currentPage+1:0)}),1e3*Number(this.loopTime)))}componentDidUpdate(){this.sliderEl.style.transform=`translateX(${this.currentSlideNumber*this.slideWidth*-1}px)`,this.updateControls()}switchLoopStatus(t){this.autoSlide&&this.loopTime>0&&(t?clearInterval(this.sliderInterval):this.setSlideAutoInterval())}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const i=new CSSStyleSheet;i.replace(t),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,i]}))}render(){return i("div",{key:"8f86541d4454387e01a54b26c0aa6515d47ddb4d",class:"GeneralSlider"},i("div",{key:"c3e606e98881afeb2b867a58b25f3e7aa3915808",class:"Slider"},i("ul",{key:"e764fb6ad7fe7a727b7c1f37b5fe26704f2cd390",class:`SliderList Col-${this.slideShow}`,part:"SliderList",onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1),ref:t=>this.sliderEl=t},i("slot",{key:"c61792d98ee4aefeb8fe8e84245eac495ff2f898",ref:t=>this.slotEl=t}))),this.showButton&&this.slidesCount>0&&i("div",{key:"35b1a666ec07535c2b70e8678aff70be5a2eff35",class:"PageButtons",part:"PageButtons"},[...Array(this.slidesCount/this.slideNumber)].map(((t,s)=>i("div",{class:"PageButton "+(this.currentPage==s?"active":""),title:`page${s}`,onClick:this.slideTo.bind(this,s),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)}," ")))),this.showArrow&&i("div",{key:"6e910a7d9013b49bc70160fdc8b193de0c1ee309",class:"ArrowButtons"},i("button",{key:"1d21da8ede99b7ef0c1610334763d15d7a9640c7",type:"button",class:"Button ButtonNext",onClick:this.slide.bind(this,!0),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},">"),i("button",{key:"e890b5cb47ba744fb977e492235330f201129f09",type:"button",class:"Button ButtonPrev",onClick:this.slide.bind(this,!1),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},"<")))}get el(){return s(this)}};e.style=":host{display:block}.GeneralSlider{position:relative}.Slider{position:relative;width:100%;margin:0 auto;overflow:hidden}.SliderList{display:flex;margin:0;padding:0;list-style:none;transition:transform 0.5s ease-in-out}.SliderList.Static{transition-duration:0ms}::slotted(li){flex:1 0 auto;width:100%;margin:auto}::slotted(li.hide){visibility:hidden;height:0;transition-delay:500ms}.Col-2 ::slotted(li){flex:2 0 auto;width:50%}.Col-3 ::slotted(li){flex:3 0 auto;width:33.3333333333%}.Col-4 ::slotted(li){flex:4 0 auto;width:25%}.Col-5 ::slotted(li){flex:5 0 auto;width:20%}.Col-6 ::slotted(li){flex:6 0 auto;width:16.6666666667%}.Col-7 ::slotted(li){flex:7 0 auto;width:14.2857142857%}.Col-8 ::slotted(li){flex:8 0 auto;width:12.5%}.Col-9 ::slotted(li){flex:9 0 auto;width:11.1111111111%}.Col-10 ::slotted(li){flex:10 0 auto;width:10%}.Col-11 ::slotted(li){flex:11 0 auto;width:9.0909090909%}.Col-12 ::slotted(li){flex:12 0 auto;width:8.3333333333%}.Button{position:absolute;z-index:1;top:calc(50% - 32px);padding:20px;font-size:20px;line-height:20px;opacity:0.5;border:none;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emw--color-gray-150, #828282);opacity:0.25}.Button.ButtonNext{right:0}.PageButtons{display:flex;gap:4px;margin-top:8px}.PageButton{width:15px;height:4px;border-radius:4px;background-color:var(--emw--tournament-color-primary, #0072ed);opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";export{e as general_slider}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),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={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?v(b):f.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(m),w(y),(p=m.length>0)&&f.raf(b)},v=e=>h().then(e),g=$(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},D=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?L(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=L(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},L=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),T={},U=e=>n(e).$hostElement$,A=new WeakMap,F=e=>"sc-"+e.v,N=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=H(n),s=H(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,H=e=>e?e.split(W):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of _(Object.keys(o)))e in s||N(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))N(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),V(null,l,B),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},J=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=I(null,n,o),r&&(l[o].$=r,Z(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.m||z)&&V(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(d,y,o))X(d,y,o),d=t[--f],y=l[--p];else if(Q(h,y,o))X(h,y,o),Z(e,h.$,d.$.nextSibling),h=t[++i],y=l[--p];else if(Q(d,m,o))X(d,m,o),Z(e,d.$,h.$),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=I(t&&t[c],n,u):(X(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.$.parentNode,s,h.$)}i>f?J(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):null!==o&&K(o,0,o.length-1)):e.i!==r&&(l.data=r)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),g((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ue(n,"componentWillLoad")),le(l,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=F(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=A.get(e=e.head||e);if(r||A.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:k(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);re(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},re=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||L(null,null),r=(e=>e&&e.m===T)(t)?t:D(null,null,t);if(x=l.tagName,n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],z=!!(1&o.l),X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,l=e.j;ue(n,"componentDidRender"),64&e.l?ue(n,"componentDidUpdate"):(e.l|=64,ae(t),ue(n,"componentDidLoad"),e.M(t),l||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"general-slider"}});return e.dispatchEvent(t),t})(u)))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,s;const r=e.prototype;if(t.P){const i=Object.entries(null!=(o=t.P)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).R.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" 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 r=s.R.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.P[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.R.set(t,l),c&&2==(18&i)&&te(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.D)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},he=e=>{ue(e,"disconnectedCallback")},de=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let v,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],P:l[2],L:l[3]};4&o.l&&(S=!0),o.P=l[2];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,R:new Map};l.T=new Promise((e=>l.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.P&&Object.entries(l.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.A}" was not found`);l.isProxied||(fe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=F(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?he(e.t):(null==e?void 0:e.T)&&e.T.then((()=>he(e.t)))}})()))}componentOnReady(){return n(this).T}};o.U=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,fe(u,o,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 e=null!=(o=f.O)?o:k(a);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ce,30)))},pe=e=>f.O=e;export{de as b,U as g,D as h,h as p,l as r,pe as s}
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
1015
1015
  autoPlay?: boolean;
1016
1016
  autoplay?: boolean | string;
1017
1017
  controls?: boolean;
1018
- controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1019
- controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1020
1018
  crossOrigin?: string;
1021
1019
  crossorigin?: string;
1022
1020
  loop?: boolean;
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
1566
1564
  onSubmitCapture?: (event: Event) => void;
1567
1565
  onInvalid?: (event: Event) => void;
1568
1566
  onInvalidCapture?: (event: Event) => void;
1569
- onBeforeToggle?: (event: Event) => void;
1570
- onBeforeToggleCapture?: (event: Event) => void;
1571
- onToggle?: (event: Event) => void;
1572
- onToggleCapture?: (event: Event) => void;
1573
1567
  onLoad?: (event: Event) => void;
1574
1568
  onLoadCapture?: (event: Event) => void;
1575
1569
  onError?: (event: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-slider",
3
- "version": "1.56.0",
3
+ "version": "1.56.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",