@everymatrix/general-slider 1.16.1

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 (45) hide show
  1. package/dist/cjs/general-slider.cjs.entry.js +168 -0
  2. package/dist/cjs/general-slider.cjs.js +19 -0
  3. package/dist/cjs/index-86ebe85a.js +1158 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +21 -0
  6. package/dist/collection/collection-manifest.json +12 -0
  7. package/dist/collection/components/general-slider/general-slider.css +134 -0
  8. package/dist/collection/components/general-slider/general-slider.js +321 -0
  9. package/dist/collection/index.js +1 -0
  10. package/dist/collection/utils/utils.js +3 -0
  11. package/dist/components/general-slider.d.ts +11 -0
  12. package/dist/components/general-slider.js +192 -0
  13. package/dist/components/index.d.ts +26 -0
  14. package/dist/components/index.js +1 -0
  15. package/dist/esm/general-slider.entry.js +164 -0
  16. package/dist/esm/general-slider.js +17 -0
  17. package/dist/esm/index-d8114a95.js +1132 -0
  18. package/dist/esm/index.js +1 -0
  19. package/dist/esm/loader.js +17 -0
  20. package/dist/esm/polyfills/core-js.js +11 -0
  21. package/dist/esm/polyfills/css-shim.js +1 -0
  22. package/dist/esm/polyfills/dom.js +79 -0
  23. package/dist/esm/polyfills/es5-html-element.js +1 -0
  24. package/dist/esm/polyfills/index.js +34 -0
  25. package/dist/esm/polyfills/system.js +6 -0
  26. package/dist/general-slider/general-slider.esm.js +1 -0
  27. package/dist/general-slider/index.esm.js +0 -0
  28. package/dist/general-slider/p-7bfeafea.entry.js +1 -0
  29. package/dist/general-slider/p-95e8d88b.js +1 -0
  30. package/dist/index.cjs.js +1 -0
  31. package/dist/index.js +1 -0
  32. package/dist/stencil.config.js +22 -0
  33. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-slider/.stencil/packages/general-slider/stencil.config.d.ts +2 -0
  34. package/dist/types/components/general-slider/general-slider.d.ts +37 -0
  35. package/dist/types/components.d.ts +53 -0
  36. package/dist/types/index.d.ts +1 -0
  37. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  38. package/dist/types/utils/utils.d.ts +1 -0
  39. package/loader/cdn.js +3 -0
  40. package/loader/index.cjs.js +3 -0
  41. package/loader/index.d.ts +12 -0
  42. package/loader/index.es2017.js +3 -0
  43. package/loader/index.js +4 -0
  44. package/loader/package.json +10 -0
  45. package/package.json +19 -0
@@ -0,0 +1,192 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+
3
+ const generalSliderCss = ":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}::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(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emfe-w-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:#0072ED;opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";
4
+
5
+ const GeneralSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.showStatus = false;
11
+ this.slideNumber = 3;
12
+ this.slideShow = 3;
13
+ this.showArrow = true;
14
+ this.showButton = false;
15
+ this.autoSlide = false;
16
+ this.loopTime = 1;
17
+ this.autoItemHeight = false;
18
+ this.currentSlideNumber = 0;
19
+ this.slidesCount = 0;
20
+ this.slideWidth = 0;
21
+ this.currentPage = 0;
22
+ this.controls = {
23
+ Prev: null,
24
+ Next: null
25
+ };
26
+ this.xDown = null;
27
+ this.yDown = null;
28
+ }
29
+ slide(next) {
30
+ let slideTo = 0;
31
+ if (next) {
32
+ slideTo = this.currentSlideNumber + this.slideNumber;
33
+ }
34
+ else {
35
+ slideTo = this.currentSlideNumber - this.slideNumber;
36
+ }
37
+ if (slideTo < 0 || slideTo >= this.slidesCount)
38
+ return;
39
+ this.currentSlideNumber = slideTo;
40
+ this.currentPage = this.currentSlideNumber / this.slideNumber;
41
+ this.updateListStyle();
42
+ }
43
+ slideTo(page) {
44
+ this.currentSlideNumber = page * this.slideNumber;
45
+ this.currentPage = page;
46
+ this.updateListStyle();
47
+ }
48
+ updateControls() {
49
+ this.switchControl('Prev', (this.currentSlideNumber === 0) ? false : true);
50
+ this.switchControl('Next', (this.currentSlideNumber === this.slidesCount - this.slideShow) ? false : true);
51
+ }
52
+ switchControl(type, enabled) {
53
+ if (this.controls[type]) {
54
+ this.controls[type].disabled = !enabled;
55
+ }
56
+ }
57
+ componentWillLoad() {
58
+ this.slides = this.el.querySelectorAll('li');
59
+ this.slidesCount = this.slides.length;
60
+ if (!this.slideNumber)
61
+ this.slideNumber = 1;
62
+ if (!this.slideShow)
63
+ this.slideShow = 1;
64
+ }
65
+ componentDidLoad() {
66
+ this.sliderList = this.el.shadowRoot.querySelector('ul');
67
+ this.slideWidth = this.slides[0].offsetWidth;
68
+ for (let type in this.controls) {
69
+ this.controls[type] = this.el.shadowRoot.querySelector('.Button' + type);
70
+ }
71
+ this.updateControls();
72
+ if (this.autoSlide) {
73
+ this.setSlideAutoInterval();
74
+ }
75
+ }
76
+ componentDidRender() {
77
+ this.el.addEventListener('touchstart', this.handleTouchStart.bind(this), { passive: true });
78
+ this.el.addEventListener('touchmove', this.handleTouchMove.bind(this), { passive: true });
79
+ this.updateListStyle();
80
+ }
81
+ updateListStyle() {
82
+ if (!this.autoItemHeight)
83
+ return;
84
+ const sliderlist = this.el.querySelectorAll('li');
85
+ sliderlist.forEach((li, index) => {
86
+ li.classList.add('hide');
87
+ if (index >= this.currentPage * this.slideNumber && index < (this.currentPage + 1) * this.slideNumber) {
88
+ li.classList.remove('hide');
89
+ }
90
+ });
91
+ }
92
+ disconnectedCallback() {
93
+ this.el.removeEventListener('touchstart', this.handleTouchStart);
94
+ this.el.removeEventListener('touchmove', this.handleTouchMove);
95
+ }
96
+ handleTouchStart(evt) {
97
+ const firstTouch = this.getTouches(evt)[0];
98
+ this.xDown = firstTouch.clientX;
99
+ this.yDown = firstTouch.clientY;
100
+ clearInterval(this.sliderInterval);
101
+ }
102
+ getTouches(evt) {
103
+ return evt.touches || evt.originalEvent.touches;
104
+ }
105
+ handleTouchMove(evt) {
106
+ if (!this.xDown || !this.yDown)
107
+ return;
108
+ let xUp = evt.touches[0].clientX;
109
+ let yUp = evt.touches[0].clientY;
110
+ let xDiff = this.xDown - xUp;
111
+ let yDiff = this.yDown - yUp;
112
+ if (Math.abs(xDiff) > Math.abs(yDiff)) {
113
+ if (xDiff > 0) {
114
+ this.slide(true);
115
+ }
116
+ else {
117
+ this.slide(false);
118
+ }
119
+ }
120
+ this.xDown = null;
121
+ this.yDown = null;
122
+ if (this.autoSlide) {
123
+ this.setSlideAutoInterval();
124
+ }
125
+ }
126
+ ;
127
+ setSlideAutoInterval() {
128
+ if (this.loopTime == 0) {
129
+ return;
130
+ }
131
+ clearInterval(this.sliderInterval);
132
+ this.sliderInterval = setInterval(() => {
133
+ if (this.currentPage + 1 < this.slidesCount / this.slideNumber) {
134
+ this.slideTo(this.currentPage + 1);
135
+ }
136
+ else {
137
+ this.slideTo(0);
138
+ }
139
+ }, Number(this.loopTime) * 1000);
140
+ }
141
+ componentDidUpdate() {
142
+ this.sliderList.style.transform = `translateX(${this.currentSlideNumber * this.slideWidth * -1}px)`;
143
+ this.updateControls();
144
+ }
145
+ switchLoopStatus(isMouseMoveEnter) {
146
+ if (!this.autoSlide)
147
+ return;
148
+ if (this.loopTime > 0) {
149
+ if (isMouseMoveEnter) {
150
+ clearInterval(this.sliderInterval);
151
+ }
152
+ else {
153
+ this.setSlideAutoInterval();
154
+ }
155
+ }
156
+ }
157
+ render() {
158
+ return (h("div", { class: "GeneralSlider" }, h("div", { class: "Slider" }, this.showArrow &&
159
+ h("div", null, h("button", { type: "button", class: "Button ButtonNext", onClick: this.slide.bind(this, true), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, ">"), h("button", { type: "button", class: "Button ButtonPrev", onClick: this.slide.bind(this, false), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, "<")), h("ul", { class: `SliderList Col-${this.slideShow}`, part: "SliderList", onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, h("slot", null))), this.showButton && this.slidesCount > 0 &&
160
+ h("div", { class: "PageButtons", part: "PageButtons" }, [...Array(this.slidesCount / this.slideNumber)].map((_x, i) => h("div", { class: `PageButton ${this.currentPage == i ? 'active' : ''}`, title: `page${i}`, onClick: this.slideTo.bind(this, i), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, "\u00A0")))));
161
+ }
162
+ get el() { return this; }
163
+ static get style() { return generalSliderCss; }
164
+ }, [1, "general-slider", {
165
+ "showStatus": [4, "show-status"],
166
+ "slideNumber": [2, "slide-number"],
167
+ "slideShow": [2, "slide-show"],
168
+ "showArrow": [4, "show-arrow"],
169
+ "showButton": [4, "show-button"],
170
+ "autoSlide": [4, "auto-slide"],
171
+ "loopTime": [2, "loop-time"],
172
+ "autoItemHeight": [4, "auto-item-height"],
173
+ "currentSlideNumber": [32]
174
+ }]);
175
+ function defineCustomElement$1() {
176
+ if (typeof customElements === "undefined") {
177
+ return;
178
+ }
179
+ const components = ["general-slider"];
180
+ components.forEach(tagName => { switch (tagName) {
181
+ case "general-slider":
182
+ if (!customElements.get(tagName)) {
183
+ customElements.define(tagName, GeneralSlider$1);
184
+ }
185
+ break;
186
+ } });
187
+ }
188
+
189
+ const GeneralSlider = GeneralSlider$1;
190
+ const defineCustomElement = defineCustomElement$1;
191
+
192
+ export { GeneralSlider, defineCustomElement };
@@ -0,0 +1,26 @@
1
+ /* GeneralSlider custom elements */
2
+
3
+ import type { Components, JSX } from "../types/components";
4
+
5
+ /**
6
+ * Used to manually set the base path where assets can be found.
7
+ * If the script is used as "module", it's recommended to use "import.meta.url",
8
+ * such as "setAssetPath(import.meta.url)". Other options include
9
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
10
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
11
+ * But do note that this configuration depends on how your script is bundled, or lack of
12
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
13
+ * will have to ensure the static assets are copied to its build directory.
14
+ */
15
+ export declare const setAssetPath: (path: string) => void;
16
+
17
+ export interface SetPlatformOptions {
18
+ raf?: (c: FrameRequestCallback) => number;
19
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
20
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
21
+ }
22
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
+
24
+ export type { Components, JSX };
25
+
26
+ export * from '../types';
@@ -0,0 +1 @@
1
+ export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
@@ -0,0 +1,164 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-d8114a95.js';
2
+
3
+ const generalSliderCss = ":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}::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(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emfe-w-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:#0072ED;opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";
4
+
5
+ const GeneralSlider = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.showStatus = false;
9
+ this.slideNumber = 3;
10
+ this.slideShow = 3;
11
+ this.showArrow = true;
12
+ this.showButton = false;
13
+ this.autoSlide = false;
14
+ this.loopTime = 1;
15
+ this.autoItemHeight = false;
16
+ this.currentSlideNumber = 0;
17
+ this.slidesCount = 0;
18
+ this.slideWidth = 0;
19
+ this.currentPage = 0;
20
+ this.controls = {
21
+ Prev: null,
22
+ Next: null
23
+ };
24
+ this.xDown = null;
25
+ this.yDown = null;
26
+ }
27
+ slide(next) {
28
+ let slideTo = 0;
29
+ if (next) {
30
+ slideTo = this.currentSlideNumber + this.slideNumber;
31
+ }
32
+ else {
33
+ slideTo = this.currentSlideNumber - this.slideNumber;
34
+ }
35
+ if (slideTo < 0 || slideTo >= this.slidesCount)
36
+ return;
37
+ this.currentSlideNumber = slideTo;
38
+ this.currentPage = this.currentSlideNumber / this.slideNumber;
39
+ this.updateListStyle();
40
+ }
41
+ slideTo(page) {
42
+ this.currentSlideNumber = page * this.slideNumber;
43
+ this.currentPage = page;
44
+ this.updateListStyle();
45
+ }
46
+ updateControls() {
47
+ this.switchControl('Prev', (this.currentSlideNumber === 0) ? false : true);
48
+ this.switchControl('Next', (this.currentSlideNumber === this.slidesCount - this.slideShow) ? false : true);
49
+ }
50
+ switchControl(type, enabled) {
51
+ if (this.controls[type]) {
52
+ this.controls[type].disabled = !enabled;
53
+ }
54
+ }
55
+ componentWillLoad() {
56
+ this.slides = this.el.querySelectorAll('li');
57
+ this.slidesCount = this.slides.length;
58
+ if (!this.slideNumber)
59
+ this.slideNumber = 1;
60
+ if (!this.slideShow)
61
+ this.slideShow = 1;
62
+ }
63
+ componentDidLoad() {
64
+ this.sliderList = this.el.shadowRoot.querySelector('ul');
65
+ this.slideWidth = this.slides[0].offsetWidth;
66
+ for (let type in this.controls) {
67
+ this.controls[type] = this.el.shadowRoot.querySelector('.Button' + type);
68
+ }
69
+ this.updateControls();
70
+ if (this.autoSlide) {
71
+ this.setSlideAutoInterval();
72
+ }
73
+ }
74
+ componentDidRender() {
75
+ this.el.addEventListener('touchstart', this.handleTouchStart.bind(this), { passive: true });
76
+ this.el.addEventListener('touchmove', this.handleTouchMove.bind(this), { passive: true });
77
+ this.updateListStyle();
78
+ }
79
+ updateListStyle() {
80
+ if (!this.autoItemHeight)
81
+ return;
82
+ const sliderlist = this.el.querySelectorAll('li');
83
+ sliderlist.forEach((li, index) => {
84
+ li.classList.add('hide');
85
+ if (index >= this.currentPage * this.slideNumber && index < (this.currentPage + 1) * this.slideNumber) {
86
+ li.classList.remove('hide');
87
+ }
88
+ });
89
+ }
90
+ disconnectedCallback() {
91
+ this.el.removeEventListener('touchstart', this.handleTouchStart);
92
+ this.el.removeEventListener('touchmove', this.handleTouchMove);
93
+ }
94
+ handleTouchStart(evt) {
95
+ const firstTouch = this.getTouches(evt)[0];
96
+ this.xDown = firstTouch.clientX;
97
+ this.yDown = firstTouch.clientY;
98
+ clearInterval(this.sliderInterval);
99
+ }
100
+ getTouches(evt) {
101
+ return evt.touches || evt.originalEvent.touches;
102
+ }
103
+ handleTouchMove(evt) {
104
+ if (!this.xDown || !this.yDown)
105
+ return;
106
+ let xUp = evt.touches[0].clientX;
107
+ let yUp = evt.touches[0].clientY;
108
+ let xDiff = this.xDown - xUp;
109
+ let yDiff = this.yDown - yUp;
110
+ if (Math.abs(xDiff) > Math.abs(yDiff)) {
111
+ if (xDiff > 0) {
112
+ this.slide(true);
113
+ }
114
+ else {
115
+ this.slide(false);
116
+ }
117
+ }
118
+ this.xDown = null;
119
+ this.yDown = null;
120
+ if (this.autoSlide) {
121
+ this.setSlideAutoInterval();
122
+ }
123
+ }
124
+ ;
125
+ setSlideAutoInterval() {
126
+ if (this.loopTime == 0) {
127
+ return;
128
+ }
129
+ clearInterval(this.sliderInterval);
130
+ this.sliderInterval = setInterval(() => {
131
+ if (this.currentPage + 1 < this.slidesCount / this.slideNumber) {
132
+ this.slideTo(this.currentPage + 1);
133
+ }
134
+ else {
135
+ this.slideTo(0);
136
+ }
137
+ }, Number(this.loopTime) * 1000);
138
+ }
139
+ componentDidUpdate() {
140
+ this.sliderList.style.transform = `translateX(${this.currentSlideNumber * this.slideWidth * -1}px)`;
141
+ this.updateControls();
142
+ }
143
+ switchLoopStatus(isMouseMoveEnter) {
144
+ if (!this.autoSlide)
145
+ return;
146
+ if (this.loopTime > 0) {
147
+ if (isMouseMoveEnter) {
148
+ clearInterval(this.sliderInterval);
149
+ }
150
+ else {
151
+ this.setSlideAutoInterval();
152
+ }
153
+ }
154
+ }
155
+ render() {
156
+ return (h("div", { class: "GeneralSlider" }, h("div", { class: "Slider" }, this.showArrow &&
157
+ h("div", null, h("button", { type: "button", class: "Button ButtonNext", onClick: this.slide.bind(this, true), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, ">"), h("button", { type: "button", class: "Button ButtonPrev", onClick: this.slide.bind(this, false), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, "<")), h("ul", { class: `SliderList Col-${this.slideShow}`, part: "SliderList", onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, h("slot", null))), this.showButton && this.slidesCount > 0 &&
158
+ h("div", { class: "PageButtons", part: "PageButtons" }, [...Array(this.slidesCount / this.slideNumber)].map((_x, i) => h("div", { class: `PageButton ${this.currentPage == i ? 'active' : ''}`, title: `page${i}`, onClick: this.slideTo.bind(this, i), onMouseEnter: this.switchLoopStatus.bind(this, true), onMouseLeave: this.switchLoopStatus.bind(this, false) }, "\u00A0")))));
159
+ }
160
+ get el() { return getElement(this); }
161
+ };
162
+ GeneralSlider.style = generalSliderCss;
163
+
164
+ export { GeneralSlider as general_slider };
@@ -0,0 +1,17 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-d8114a95.js';
2
+
3
+ /*
4
+ Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
5
+ */
6
+ const patchBrowser = () => {
7
+ const importMeta = import.meta.url;
8
+ const opts = {};
9
+ if (importMeta !== '') {
10
+ opts.resourcesUrl = new URL('.', importMeta).href;
11
+ }
12
+ return promiseResolve(opts);
13
+ };
14
+
15
+ patchBrowser().then(options => {
16
+ return bootstrapLazy([["general-slider",[[1,"general-slider",{"showStatus":[4,"show-status"],"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"],"currentSlideNumber":[32]}]]]], options);
17
+ });