@everymatrix/general-slider-navigation 1.0.69

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 (47) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/carousel-component_2.cjs.entry.js +431 -0
  3. package/dist/cjs/general-slider-navigation.cjs.js +25 -0
  4. package/dist/cjs/index-88d9137e.js +1269 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +15 -0
  7. package/dist/collection/collection-manifest.json +13 -0
  8. package/dist/collection/components/carousel-component/carousel-component.css +167 -0
  9. package/dist/collection/components/carousel-component/carousel-component.js +381 -0
  10. package/dist/collection/components/general-slider-navigation/general-slider-navigation.css +0 -0
  11. package/dist/collection/components/general-slider-navigation/general-slider-navigation.js +301 -0
  12. package/dist/collection/components/general-slider-navigation/index.js +1 -0
  13. package/dist/collection/index.js +1 -0
  14. package/dist/collection/utils/locale.utils.js +62 -0
  15. package/dist/collection/utils/utils.js +56 -0
  16. package/dist/esm/app-globals-0f993ce5.js +3 -0
  17. package/dist/esm/carousel-component_2.entry.js +426 -0
  18. package/dist/esm/general-slider-navigation.js +20 -0
  19. package/dist/esm/index-c749968b.js +1242 -0
  20. package/dist/esm/index.js +1 -0
  21. package/dist/esm/loader.js +11 -0
  22. package/dist/general-slider-navigation/general-slider-navigation.esm.js +1 -0
  23. package/dist/general-slider-navigation/index.esm.js +0 -0
  24. package/dist/general-slider-navigation/p-8c0cd4b3.js +2 -0
  25. package/dist/general-slider-navigation/p-a4458d8c.entry.js +1 -0
  26. package/dist/general-slider-navigation/p-e1255160.js +1 -0
  27. package/dist/index.cjs.js +1 -0
  28. package/dist/index.js +1 -0
  29. package/dist/stencil.config.dev.js +17 -0
  30. package/dist/stencil.config.js +17 -0
  31. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-slider-navigation/.stencil/packages/stencil/general-slider-navigation/stencil.config.d.ts +2 -0
  32. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-slider-navigation/.stencil/packages/stencil/general-slider-navigation/stencil.config.dev.d.ts +2 -0
  33. package/dist/types/components/carousel-component/carousel-component.d.ts +72 -0
  34. package/dist/types/components/general-slider-navigation/general-slider-navigation.d.ts +56 -0
  35. package/dist/types/components/general-slider-navigation/index.d.ts +1 -0
  36. package/dist/types/components.d.ts +194 -0
  37. package/dist/types/index.d.ts +1 -0
  38. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  39. package/dist/types/utils/locale.utils.d.ts +2 -0
  40. package/dist/types/utils/utils.d.ts +10 -0
  41. package/loader/cdn.js +1 -0
  42. package/loader/index.cjs.js +1 -0
  43. package/loader/index.d.ts +24 -0
  44. package/loader/index.es2017.js +1 -0
  45. package/loader/index.js +2 -0
  46. package/loader/package.json +11 -0
  47. package/package.json +26 -0
@@ -0,0 +1,426 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-c749968b.js';
2
+
3
+ /**
4
+ * @name isMobile
5
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
6
+ * @param {String} userAgent window.navigator.userAgent
7
+ * @returns {Boolean} true or false
8
+ */
9
+ const isMobile = (userAgent) => {
10
+ return !!(userAgent.toLowerCase().match(/android/i) ||
11
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
12
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
13
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
14
+ };
15
+ const getDevice = () => {
16
+ let userAgent = window.navigator.userAgent;
17
+ if (userAgent.toLowerCase().match(/android/i)) {
18
+ return 'Android';
19
+ }
20
+ if (userAgent.toLowerCase().match(/iphone/i)) {
21
+ return 'iPhone';
22
+ }
23
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
24
+ return 'iPad';
25
+ }
26
+ return 'PC';
27
+ };
28
+ const getDevicePlatform = () => {
29
+ const device = getDevice();
30
+ if (device) {
31
+ if (device === 'PC') {
32
+ return 'dk';
33
+ }
34
+ else if (device === 'iPad' || device === 'iPhone') {
35
+ return 'ios';
36
+ }
37
+ else {
38
+ return 'mtWeb';
39
+ }
40
+ }
41
+ };
42
+ function checkDeviceType() {
43
+ const userAgent = navigator.userAgent.toLowerCase();
44
+ const width = screen.availWidth;
45
+ const height = screen.availHeight;
46
+ if (userAgent.includes('iphone')) {
47
+ return 'mobile';
48
+ }
49
+ if (userAgent.includes('android')) {
50
+ if (height > width && width < 800) {
51
+ return 'mobile';
52
+ }
53
+ if (width > height && height < 800) {
54
+ return 'tablet';
55
+ }
56
+ }
57
+ return 'desktop';
58
+ }
59
+
60
+ const DEFAULT_LANGUAGE = 'en';
61
+ const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hu', 'hr'];
62
+ const TRANSLATIONS = {
63
+ en: {
64
+ error: 'Error',
65
+ noResults: 'Loading, please wait ...',
66
+ joinNow: 'Join now'
67
+ },
68
+ hu: {
69
+ error: 'Error',
70
+ noResults: 'Loading, please wait ...',
71
+ joinNow: 'Join now'
72
+ },
73
+ ro: {
74
+ error: 'Eroare',
75
+ noResults: 'Loading, please wait ...',
76
+ joinNow: 'Join now'
77
+ },
78
+ fr: {
79
+ error: 'Error',
80
+ noResults: 'Loading, please wait ...',
81
+ joinNow: 'Join now'
82
+ },
83
+ ar: {
84
+ error: 'خطأ',
85
+ noResults: 'Loading, please wait ...',
86
+ joinNow: 'Join now'
87
+ },
88
+ hr: {
89
+ error: 'Greška',
90
+ noResults: 'Učitavanje, molimo pričekajte ...',
91
+ joinNow: 'Join now'
92
+ },
93
+ 'pt-br': {
94
+ 'error': 'Erro',
95
+ 'noResults': 'Carregando, espere por favor…',
96
+ 'joinNow': 'Join now'
97
+ },
98
+ 'es-mx': {
99
+ 'error': 'Error',
100
+ 'noResults': 'Cargando, espere por favor…',
101
+ 'joinNow': 'Join now'
102
+ }
103
+ };
104
+ const getTranslations = (url) => {
105
+ return new Promise((resolve) => {
106
+ fetch(url)
107
+ .then((res) => res.json())
108
+ .then((data) => {
109
+ Object.keys(data).forEach((item) => {
110
+ for (let key in data[item]) {
111
+ TRANSLATIONS[item][key] = data[item][key];
112
+ }
113
+ });
114
+ resolve(true);
115
+ });
116
+ });
117
+ };
118
+ const translate = (key, customLang) => {
119
+ const lang = customLang;
120
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
121
+ };
122
+
123
+ const carouselComponentCss = ":host{display:block;font-family:\"Roboto\", sans-serif}html,body{padding:0;margin:0;width:100%;height:100%}.Carousel{position:relative;display:block;width:100%}.carousel__prev,.carousel__next{position:absolute;bottom:-15%;transition:transform 0.25s ease}.carousel__prev i,.carousel__next i{font-size:var(--emw--font-size-x-large, 60px);color:var(--emw-color-white, #FFFFFF);cursor:pointer}.carousel__prev:hover,.carousel__next:hover{transform:scale(1.25)}.carousel__prev{left:40%}.carousel__next{right:40%}.CarouselBody{width:100%;padding:80px 0px;overflow:hidden}.CarouselSlider{position:relative;transition:transform 1s ease-in-out;background:transparent;display:flex;align-items:center}.CarouselSliderItem{opacity:0.7;position:relative;display:block;float:left;box-sizing:border-box}.Item3dFrame{position:relative;width:100%;height:100%;transition:transform 1s ease-in-out, box-shadow 0.5s ease-in-out;transform-style:preserve-3d;display:flex;flex-direction:column;justify-content:flex-end;border-radius:var(--emw--button-border-radius, 20px)}.CarouselSliderItemActive .Item3dFrame{animation:glow 4s linear infinite}@keyframes glow{0%{box-shadow:0 0 50px 5px var(--emw--color-primary, #22B04E)}50%{box-shadow:0 0 50px 5px var(--emfe-w-color-secondary, #F2711C)}100%{box-shadow:0 0 50px 5px var(--emw--color-primary, #22B04E)}}.TopSection{display:flex;justify-content:flex-start;align-items:center}.JoinButton{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw-color-white, #FFFFFF) 30%));color:var(--emw--color-typography, #FFFFFF);height:42px;width:110px;border-radius:var(--emw--button-border-radius, 20px);cursor:pointer;font-size:var(--emw--size-small, 14px);border:2px solid var(--emw--button-border-color, #0E5924);display:flex;align-items:center;justify-content:center;gap:2px}.ItemSection{padding:12px 20px;display:flex;flex-direction:column;gap:2px}.Divider{border:none;border-top:2px solid var(--emw-color-white, #FFFFFF);width:100%;opacity:0.3}.BottomSection{display:flex;justify-content:flex-start;align-items:flex-start;width:50%;height:60px}.BottomSection h3{font-size:var(--emw--size-large, 24px);margin:0;color:var(--emw--color-typography, #FFFFFF)}.CarouselNavigation{display:flex;justify-content:center;align-items:center;position:absolute;bottom:20px;left:50%;transform:translateX(-50%)}.CarouselNavigationBullet{width:12px;height:12px;background-color:var(--emw-color-grey-100, rgba(255, 255, 255, 0.5));border-radius:50%;margin:0 5px;cursor:pointer;transition:background-color 0.3s}.CarouselNavigationBulletActive{background-color:var(--emw--color-primary, #22B04E)}.CarouselSliderItemActive{opacity:1}";
124
+ const CarouselComponentStyle0 = carouselComponentCss;
125
+
126
+ const CarouselComponent = class {
127
+ constructor(hostRef) {
128
+ registerInstance(this, hostRef);
129
+ this.userAgent = window.navigator.userAgent;
130
+ this.isMobile = isMobile(this.userAgent);
131
+ this.touchStartX = 0;
132
+ this.touchEndX = 0;
133
+ this.setClientStylingURL = () => {
134
+ let url = new URL(this.clientStylingUrl);
135
+ let cssFile = document.createElement('style');
136
+ fetch(url.href)
137
+ .then((res) => res.text())
138
+ .then((data) => {
139
+ cssFile.innerHTML = data;
140
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
141
+ })
142
+ .catch((err) => {
143
+ console.log('error ', err);
144
+ });
145
+ };
146
+ this.setClientStyling = () => {
147
+ let sheet = document.createElement('style');
148
+ sheet.innerHTML = this.clientStyling;
149
+ this.stylingContainer.prepend(sheet);
150
+ };
151
+ this.moveSliderIndex = (index) => {
152
+ if (index < 1)
153
+ index = this.sliderData.length;
154
+ if (index > this.sliderData.length)
155
+ index = 1;
156
+ this.currIndex = index;
157
+ if (this.sliderElement) {
158
+ this.sliderElement.style.transform = this.getSliderTransformStyle();
159
+ }
160
+ };
161
+ this.handleTouchStart = (event) => {
162
+ this.touchStartX = event.changedTouches[0].screenX;
163
+ };
164
+ this.handleTouchEnd = (event) => {
165
+ this.touchEndX = event.changedTouches[0].screenX;
166
+ this.handleSwipe();
167
+ };
168
+ this.navigationTo = (url, target, isExternal) => {
169
+ window.postMessage({ type: 'NavigateTo', path: url, target: target || null, externalLink: isExternal || false }, window.location.href);
170
+ };
171
+ this.changeSlider = (index) => {
172
+ if (index > this.currIndex - 1) {
173
+ this.next();
174
+ }
175
+ else if (index < this.currIndex - 1) {
176
+ this.prev();
177
+ }
178
+ };
179
+ this.setImage = (image) => {
180
+ let source = '';
181
+ this.device = checkDeviceType();
182
+ switch (this.device) {
183
+ case 'mobile':
184
+ source = image.srcMobile;
185
+ break;
186
+ case 'tablet':
187
+ source = image.srcTablet;
188
+ break;
189
+ case 'desktop':
190
+ source = image.srcDesktop;
191
+ break;
192
+ }
193
+ return source;
194
+ };
195
+ this.clientStyling = '';
196
+ this.clientStylingUrl = '';
197
+ this.sliderData = undefined;
198
+ this.bulletNavigation = true;
199
+ this.language = 'en';
200
+ this.slideTimer = undefined;
201
+ this.translationUrl = '';
202
+ this.currIndex = 0;
203
+ this.width = undefined;
204
+ this.height = undefined;
205
+ this.margin = undefined;
206
+ this.sliderElement = undefined;
207
+ this.totalWidth = undefined;
208
+ this.device = '';
209
+ this.stylingAppends = false;
210
+ this.innerWidth = undefined;
211
+ }
212
+ handleNewTranslations() {
213
+ getTranslations(this.translationUrl);
214
+ }
215
+ async componentWillLoad() {
216
+ if (this.translationUrl.length > 2) {
217
+ await getTranslations(this.translationUrl);
218
+ }
219
+ }
220
+ componentDidLoad() {
221
+ this.init();
222
+ this.calcInnerWidth();
223
+ }
224
+ componentDidRender() {
225
+ if (!this.stylingAppends && this.stylingContainer) {
226
+ if (this.clientStyling)
227
+ this.setClientStyling();
228
+ if (this.clientStylingUrl)
229
+ this.setClientStylingURL();
230
+ this.stylingAppends = true;
231
+ }
232
+ }
233
+ init() {
234
+ this.moveSliderIndex(Math.floor(this.sliderData.length / 2));
235
+ this.bindEvents();
236
+ if (this.slideTimer > 0) {
237
+ this.timer();
238
+ }
239
+ }
240
+ calcInnerWidth() {
241
+ const parent = this.el.parentElement;
242
+ // Check if the parent element exists and then get its width
243
+ if (parent) {
244
+ this.innerWidth = parent.offsetWidth;
245
+ }
246
+ else {
247
+ this.innerWidth = window.innerWidth;
248
+ }
249
+ this.resize();
250
+ }
251
+ resize() {
252
+ if (this.isMobile) {
253
+ this.width = Math.max(innerWidth * 0.3, 200);
254
+ this.height = window.innerHeight * 0.40;
255
+ }
256
+ else {
257
+ this.width = this.innerWidth > 1200 ? Math.max(this.innerWidth * 0.1, 300) : Math.max(this.innerWidth * 0.2, 200);
258
+ this.height = window.innerHeight * 0.55;
259
+ }
260
+ this.totalWidth = this.width * this.sliderData.length;
261
+ //this is where the margin gap between slides is calculated with the animation
262
+ this.margin = -5;
263
+ const children = this.sliderElement.children;
264
+ for (let i = 0; i < children.length; i++) {
265
+ const item = children[i];
266
+ item.style.margin = `0 ${this.margin}px`;
267
+ item.style.width = `${this.width - (this.margin * 2)}px`;
268
+ }
269
+ if (this.sliderElement) {
270
+ this.sliderElement.style.transform = this.getSliderTransformStyle();
271
+ }
272
+ }
273
+ timer() {
274
+ this.clearTimer();
275
+ this.interval = setInterval(() => {
276
+ this.moveSliderIndex(++this.currIndex);
277
+ }, this.slideTimer * 1000);
278
+ }
279
+ disconnectedCallback() {
280
+ this.clearTimer();
281
+ }
282
+ clearTimer() {
283
+ if (this.interval) {
284
+ clearInterval(this.interval);
285
+ }
286
+ }
287
+ prev() {
288
+ this.moveSliderIndex(--this.currIndex);
289
+ if (this.slideTimer > 0) {
290
+ this.timer();
291
+ }
292
+ }
293
+ next() {
294
+ this.moveSliderIndex(++this.currIndex);
295
+ if (this.slideTimer > 0) {
296
+ this.timer();
297
+ }
298
+ }
299
+ bindEvents() {
300
+ window.onresize = () => this.resize();
301
+ this.el.addEventListener('touchstart', this.handleTouchStart, false);
302
+ this.el.addEventListener('touchend', this.handleTouchEnd, false);
303
+ }
304
+ handleSwipe() {
305
+ if (this.touchEndX < this.touchStartX) {
306
+ this.next();
307
+ }
308
+ if (this.touchEndX > this.touchStartX) {
309
+ this.prev();
310
+ }
311
+ }
312
+ getTransformStyle(index) {
313
+ const perspective = index === this.currIndex - 1 ? '1200px' : '900px';
314
+ const rotateY = index < this.currIndex - 1 ? '20deg' : '-20deg';
315
+ return index === this.currIndex - 1 ? `perspective(${perspective})` : `perspective(${perspective}) rotateY(${rotateY})`;
316
+ }
317
+ getSliderTransformStyle() {
318
+ return `translate3d(${((this.currIndex * -this.width) + (this.width / 2) + this.innerWidth / 2)}px, 0, 0)`;
319
+ }
320
+ renderNavigation() {
321
+ return (h("div", { class: "CarouselNavigation" }, this.sliderData.map((_item, index) => (h("div", { class: {
322
+ 'CarouselNavigationBullet': true,
323
+ 'CarouselNavigationBulletActive': index === this.currIndex - 1,
324
+ }, onClick: this.moveSliderIndex.bind(this, index + 1) })))));
325
+ }
326
+ render() {
327
+ return (h("div", { key: '09a6305f1745c24ac709c50cdb18218c5dd616d1', ref: el => this.stylingContainer = el }, h("div", { key: '1b61677ab956428b710c16b7bf71d5919e9aadf5', class: "Carousel" }, h("div", { key: '8f0c4f36f45695ee7c15c2435a39ded15abd39bf', class: "CarouselBody" }, h("div", { key: '341403c4164c1c24f39f050f37cc42b1cefee512', class: "CarouselSlider", ref: el => this.sliderElement = el, style: { width: `${this.totalWidth}px`, transform: this.getSliderTransformStyle() } }, this.sliderData.map((item, index) => {
328
+ const isActive = index === this.currIndex - 1;
329
+ const buttonStyle = !isActive ? { cursor: 'unset' } : {};
330
+ const activeItemHeight = !isActive ? { height: `${this.height - 70}px` } : { height: `${this.height}px` };
331
+ return (h("div", { class: {
332
+ 'CarouselSliderItem': true,
333
+ 'CarouselSliderItemActive': isActive,
334
+ }, onClick: this.changeSlider.bind(this, index), style: activeItemHeight }, h("div", { class: "Item3dFrame", style: { backgroundSize: 'cover', backgroundPosition: 'center', backgroundImage: `url(${this.setImage(item.image)})`, transform: this.getTransformStyle(index) } }, h("div", { class: "ItemSection" }, h("div", { class: "TopSection" }, h("button", { onClick: () => {
335
+ if (isActive) {
336
+ this.navigationTo(item.url, item.targetType, item.externalLink);
337
+ }
338
+ }, style: buttonStyle, class: "JoinButton" }, h("span", null, translate('joinNow', this.language)), h("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M5 3L10 8L5 13", stroke: "white", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("hr", { class: "Divider" }), h("div", { class: "BottomSection" }, h("h3", null, item.title.toUpperCase()))))));
339
+ }))), this.bulletNavigation ? this.renderNavigation() : null)));
340
+ }
341
+ get el() { return getElement(this); }
342
+ static get watchers() { return {
343
+ "translationUrl": ["handleNewTranslations"]
344
+ }; }
345
+ };
346
+ CarouselComponent.style = CarouselComponentStyle0;
347
+
348
+ const generalSliderNavigationCss = "";
349
+ const GeneralSliderNavigationStyle0 = generalSliderNavigationCss;
350
+
351
+ const GeneralSliderNavigation = class {
352
+ constructor(hostRef) {
353
+ registerInstance(this, hostRef);
354
+ this.clientStyling = '';
355
+ this.clientStylingUrl = '';
356
+ this.cmsEndpoint = undefined;
357
+ this.cmsEnv = 'stage';
358
+ this.language = 'en';
359
+ this.userRoles = 'everyone';
360
+ this.bulletNavigation = true;
361
+ this.slideTimer = undefined;
362
+ this.sliderMobileWidth = 200;
363
+ this.sliderDesktopWidth = 300;
364
+ this.translationUrl = '';
365
+ this.isLoading = true;
366
+ this.hasErrors = false;
367
+ this.device = '';
368
+ }
369
+ handleNewTranslations() {
370
+ getTranslations(this.translationUrl);
371
+ }
372
+ watchEndpoint(newValue, oldValue) {
373
+ if (newValue && newValue != oldValue && this.cmsEndpoint) {
374
+ this.getGeneralSliderNavigation().then((GeneralSliderNavigation) => {
375
+ this.sliderData = GeneralSliderNavigation;
376
+ });
377
+ }
378
+ }
379
+ async componentWillLoad() {
380
+ if (this.translationUrl.length > 2) {
381
+ await getTranslations(this.translationUrl);
382
+ }
383
+ if (this.cmsEndpoint && this.language) {
384
+ return this.getGeneralSliderNavigation().then((GeneralSliderNavigation) => {
385
+ this.sliderData = GeneralSliderNavigation;
386
+ });
387
+ }
388
+ }
389
+ getGeneralSliderNavigation() {
390
+ let url = new URL(`${this.cmsEndpoint}/${this.language}/homepage`);
391
+ url.searchParams.append('env', this.cmsEnv);
392
+ url.searchParams.append('userRoles', this.userRoles);
393
+ url.searchParams.append('device', getDevicePlatform());
394
+ return new Promise((resolve, reject) => {
395
+ this.isLoading = true;
396
+ fetch(url.href)
397
+ .then((res) => res.json())
398
+ .then((menuSliderData) => {
399
+ resolve(menuSliderData.banners);
400
+ })
401
+ .catch((err) => {
402
+ console.error(err);
403
+ this.hasErrors = true;
404
+ reject(err);
405
+ }).finally(() => {
406
+ this.isLoading = false;
407
+ });
408
+ });
409
+ }
410
+ render() {
411
+ if (this.hasErrors) {
412
+ return (h("div", { class: "PageError" }, h("div", { class: "TitleError" }, translate('error', this.language))));
413
+ }
414
+ if (!this.isLoading) {
415
+ return (h("div", null, h("carousel-component", { "slider-data": this.sliderData, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "bullet-navigation": this.bulletNavigation, "slide-timer": this.slideTimer, "translation-url": this.translationUrl, "slider-mobile-width": this.sliderMobileWidth, "slider-desktop-width": this.sliderDesktopWidth })));
416
+ }
417
+ }
418
+ static get watchers() { return {
419
+ "translationUrl": ["handleNewTranslations"],
420
+ "cmsEndpoint": ["watchEndpoint"],
421
+ "language": ["watchEndpoint"]
422
+ }; }
423
+ };
424
+ GeneralSliderNavigation.style = GeneralSliderNavigationStyle0;
425
+
426
+ export { CarouselComponent as carousel_component, GeneralSliderNavigation as general_slider_navigation };
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c749968b.js';
2
+ export { s as setNonce } from './index-c749968b.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["carousel-component_2",[[1,"general-slider-navigation",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"cmsEndpoint":[513,"cms-endpoint"],"cmsEnv":[513,"cms-env"],"language":[513],"userRoles":[513,"user-roles"],"bulletNavigation":[516,"bullet-navigation"],"slideTimer":[514,"slide-timer"],"sliderMobileWidth":[514,"slider-mobile-width"],"sliderDesktopWidth":[514,"slider-desktop-width"],"translationUrl":[513,"translation-url"],"isLoading":[32],"hasErrors":[32],"device":[32]},null,{"translationUrl":["handleNewTranslations"],"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"]}],[1,"carousel-component",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"sliderData":[16],"bulletNavigation":[516,"bullet-navigation"],"language":[513],"slideTimer":[514,"slide-timer"],"translationUrl":[513,"translation-url"],"currIndex":[32],"width":[32],"height":[32],"margin":[32],"sliderElement":[32],"totalWidth":[32],"device":[32],"stylingAppends":[32],"innerWidth":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
20
+ });