@everymatrix/general-tutorial-slider 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 (44) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-tutorial-slider.cjs.entry.js +310 -0
  3. package/dist/cjs/general-tutorial-slider.cjs.js +25 -0
  4. package/dist/cjs/index-42afbd98.js +1243 -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 +12 -0
  8. package/dist/collection/components/general-tutorial-slider/general-tutorial-slider.css +166 -0
  9. package/dist/collection/components/general-tutorial-slider/general-tutorial-slider.js +482 -0
  10. package/dist/collection/components/general-tutorial-slider/index.js +1 -0
  11. package/dist/collection/index.js +1 -0
  12. package/dist/collection/utils/locale.utils.js +40 -0
  13. package/dist/collection/utils/utils.js +39 -0
  14. package/dist/esm/app-globals-0f993ce5.js +3 -0
  15. package/dist/esm/general-tutorial-slider.entry.js +306 -0
  16. package/dist/esm/general-tutorial-slider.js +20 -0
  17. package/dist/esm/index-a6815b2c.js +1216 -0
  18. package/dist/esm/index.js +1 -0
  19. package/dist/esm/loader.js +11 -0
  20. package/dist/general-tutorial-slider/general-tutorial-slider.esm.js +1 -0
  21. package/dist/general-tutorial-slider/index.esm.js +0 -0
  22. package/dist/general-tutorial-slider/p-20615b59.entry.js +1 -0
  23. package/dist/general-tutorial-slider/p-87756a93.js +2 -0
  24. package/dist/general-tutorial-slider/p-e1255160.js +1 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/general-tutorial-slider/general-tutorial-slider.d.ts +90 -0
  32. package/dist/types/components/general-tutorial-slider/index.d.ts +1 -0
  33. package/dist/types/components.d.ts +141 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +1 -0
  37. package/dist/types/utils/utils.d.ts +9 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +26 -0
@@ -0,0 +1,40 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hu', 'hr'];
3
+ const TRANSLATIONS = {
4
+ en: {
5
+ error: 'Error',
6
+ noResults: 'Loading, please wait ...',
7
+ },
8
+ hu: {
9
+ error: 'Error',
10
+ noResults: 'Loading, please wait ...',
11
+ },
12
+ ro: {
13
+ error: 'Eroare',
14
+ noResults: 'Loading, please wait ...',
15
+ },
16
+ fr: {
17
+ error: 'Error',
18
+ noResults: 'Loading, please wait ...',
19
+ },
20
+ ar: {
21
+ error: 'خطأ',
22
+ noResults: 'Loading, please wait ...',
23
+ },
24
+ hr: {
25
+ error: 'Greška',
26
+ noResults: 'Učitavanje, molimo pričekajte ...',
27
+ },
28
+ 'es-mx': {
29
+ 'error': 'Error',
30
+ 'noResults': 'Cargando, espere por favor…'
31
+ },
32
+ 'pt-br': {
33
+ 'error': 'Erro',
34
+ 'noResults': 'Carregando, espere por favor…'
35
+ }
36
+ };
37
+ export const translate = (key, customLang) => {
38
+ const lang = customLang;
39
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
40
+ };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @name isMobile
3
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
4
+ * @param {String} userAgent window.navigator.userAgent
5
+ * @returns {Boolean} true or false
6
+ */
7
+ export const isMobile = (userAgent) => {
8
+ return !!(userAgent.toLowerCase().match(/android/i) ||
9
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
10
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
11
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
12
+ };
13
+ export const getDevice = () => {
14
+ let userAgent = window.navigator.userAgent;
15
+ if (userAgent.toLowerCase().match(/android/i)) {
16
+ return 'Android';
17
+ }
18
+ if (userAgent.toLowerCase().match(/iphone/i)) {
19
+ return 'iPhone';
20
+ }
21
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
22
+ return 'iPad';
23
+ }
24
+ return 'PC';
25
+ };
26
+ export const getDevicePlatform = () => {
27
+ const device = getDevice();
28
+ if (device) {
29
+ if (device === 'PC') {
30
+ return 'dk';
31
+ }
32
+ else if (device === 'iPad' || device === 'iPhone') {
33
+ return 'ios';
34
+ }
35
+ else {
36
+ return 'mtWeb';
37
+ }
38
+ }
39
+ };
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -0,0 +1,306 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-a6815b2c.js';
2
+
3
+ const DEFAULT_LANGUAGE = 'en';
4
+ const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hu', 'hr'];
5
+ const TRANSLATIONS = {
6
+ en: {
7
+ error: 'Error',
8
+ noResults: 'Loading, please wait ...',
9
+ },
10
+ hu: {
11
+ error: 'Error',
12
+ noResults: 'Loading, please wait ...',
13
+ },
14
+ ro: {
15
+ error: 'Eroare',
16
+ noResults: 'Loading, please wait ...',
17
+ },
18
+ fr: {
19
+ error: 'Error',
20
+ noResults: 'Loading, please wait ...',
21
+ },
22
+ ar: {
23
+ error: 'خطأ',
24
+ noResults: 'Loading, please wait ...',
25
+ },
26
+ hr: {
27
+ error: 'Greška',
28
+ noResults: 'Učitavanje, molimo pričekajte ...',
29
+ },
30
+ 'es-mx': {
31
+ 'error': 'Error',
32
+ 'noResults': 'Cargando, espere por favor…'
33
+ },
34
+ 'pt-br': {
35
+ 'error': 'Erro',
36
+ 'noResults': 'Carregando, espere por favor…'
37
+ }
38
+ };
39
+ const translate = (key, customLang) => {
40
+ const lang = customLang;
41
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
42
+ };
43
+
44
+ /**
45
+ * @name isMobile
46
+ * @description A method that returns if the browser used to access the app is from a mobile device or not
47
+ * @param {String} userAgent window.navigator.userAgent
48
+ * @returns {Boolean} true or false
49
+ */
50
+ const isMobile = (userAgent) => {
51
+ return !!(userAgent.toLowerCase().match(/android/i) ||
52
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
53
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
54
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
55
+ };
56
+ const getDevice = () => {
57
+ let userAgent = window.navigator.userAgent;
58
+ if (userAgent.toLowerCase().match(/android/i)) {
59
+ return 'Android';
60
+ }
61
+ if (userAgent.toLowerCase().match(/iphone/i)) {
62
+ return 'iPhone';
63
+ }
64
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
65
+ return 'iPad';
66
+ }
67
+ return 'PC';
68
+ };
69
+ const getDevicePlatform = () => {
70
+ const device = getDevice();
71
+ if (device) {
72
+ if (device === 'PC') {
73
+ return 'dk';
74
+ }
75
+ else if (device === 'iPad' || device === 'iPhone') {
76
+ return 'ios';
77
+ }
78
+ else {
79
+ return 'mtWeb';
80
+ }
81
+ }
82
+ };
83
+
84
+ const generalTutorialSliderCss = ":host {\n display: block;\n}\n\n.GeneralTutorialSliderError {\n display: flex;\n justify-content: center;\n flex-direction: column;\n}\n.GeneralTutorialSliderError.TitleError {\n color: red;\n}\n\nmain {\n width: 100%;\n overflow: hidden;\n}\n\n.TutorialWrapper {\n width: 100%;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n flex-direction: column;\n overflow: auto;\n}\n\n.TutorialContent {\n display: flex;\n justify-content: center;\n flex-direction: row;\n}\n\n.TutorialItems {\n display: flex;\n transition: transform 0.4s ease-in-out;\n transform: translateX(0px);\n}\n\n.TutorialItem {\n flex: 0 0 auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n color: #000;\n background-color: #f5f5f5;\n border-radius: 5px;\n user-select: none;\n}\n.TutorialItem .ItemTitle {\n padding: 25px 15px;\n font-size: 18px;\n font-weight: 600;\n color: var(--emfe-w-color-secondary, #FD2839);\n}\n.TutorialItem .ItemImage {\n overflow: hidden;\n}\n.TutorialItem .ItemImage img, .TutorialItem .ItemImage video {\n height: auto;\n width: 450px;\n}\n.TutorialItem .ItemDescription {\n font-size: 14px;\n padding: 25px 15px;\n font-weight: 400;\n color: #000;\n}\n\n.SliderNavButton {\n border: 0px;\n width: 25px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.SliderNavButton svg {\n width: 20px;\n stroke: var(--emfe-w-color-secondary, #FD2839);\n}\n\n.DisabledArrow svg {\n opacity: 0.2;\n stroke: var(--emfe-w-color-secondary, #FD2839);\n pointer-events: none;\n}\n\n.DotsWrapper {\n width: 100%;\n margin: 0 auto;\n margin-top: 20px;\n height: 30px;\n}\n.DotsWrapper ul.Dots {\n display: flex;\n justify-content: center;\n padding: 0;\n}\n.DotsWrapper ul.Dots li {\n height: 10px;\n width: 10px;\n background: #ccc;\n border-radius: 50%;\n margin-left: 3px;\n margin-right: 3px;\n list-style: none;\n cursor: pointer;\n}\n.DotsWrapper ul.Dots li:hover {\n background: #bbb;\n}\n.DotsWrapper ul.Dots li.active {\n border: solid 1px var(--emfe-w-color-secondary, #FD2839);\n background: var(--emfe-w-color-secondary, #FD2839);\n}\n.DotsWrapper ul.Dots li.default {\n border: solid 1px var(--emfe-w-color-secondary, #FD2839);\n background-color: #FFF;\n}\n\n@container (max-width: 475px) {\n @media screen and (orientation: landscape) {\n .TutorialItem {\n width: 100%;\n }\n }\n main {\n height: 90cqh;\n }\n .TutorialItems {\n height: inherit;\n }\n .TutorialItem {\n min-width: 100%;\n max-height: 800px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n color: #000;\n background-color: #f5f5f5;\n border-radius: 5px;\n user-select: none;\n }\n .TutorialItem .ItemTitle {\n padding: 25px 15px;\n font-size: 18px;\n font-weight: 600;\n color: var(--emfe-w-color-secondary, #FD2839);\n }\n .TutorialItem .ItemImage {\n min-height: 200px;\n }\n .TutorialItem .ItemImage img, .TutorialItem .ItemImage video {\n height: auto;\n width: 100%;\n }\n .TutorialItem .ItemDescription {\n font-size: 14px;\n padding: 25px 15px;\n font-weight: 400;\n color: #000;\n }\n}";
85
+ const GeneralTutorialSliderStyle0 = generalTutorialSliderCss;
86
+
87
+ const GeneralTutorialSlider = class {
88
+ constructor(hostRef) {
89
+ registerInstance(this, hostRef);
90
+ this.userAgent = window.navigator.userAgent;
91
+ this.isMobile = isMobile(this.userAgent);
92
+ this.allElementsWidth = 0;
93
+ this.xDown = null;
94
+ this.yDown = null;
95
+ this.resizeHandler = () => {
96
+ this.recalculateItemsPerPage();
97
+ };
98
+ this.orientationChangeHandler = () => {
99
+ setTimeout(() => {
100
+ this.recalculateItemsPerPage();
101
+ }, 10);
102
+ };
103
+ this.setClientStyling = () => {
104
+ let sheet = document.createElement('style');
105
+ sheet.innerHTML = this.clientStyling;
106
+ this.stylingContainer.prepend(sheet);
107
+ };
108
+ this.setClientStylingURL = () => {
109
+ let url = new URL(this.clientStylingUrl);
110
+ let cssFile = document.createElement('style');
111
+ fetch(url.href)
112
+ .then((res) => res.text())
113
+ .then((data) => {
114
+ cssFile.innerHTML = data;
115
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
116
+ })
117
+ .catch((err) => {
118
+ console.log('error ', err);
119
+ });
120
+ };
121
+ this.clientStyling = '';
122
+ this.clientStylingUrl = '';
123
+ this.language = 'en';
124
+ this.cmsEndpoint = undefined;
125
+ this.userRoles = 'everyone';
126
+ this.cmsEnv = 'stage';
127
+ this.showSliderDots = true;
128
+ this.showSliderArrows = true;
129
+ this.showSliderArrowsMobile = false;
130
+ this.enableAutoScroll = false;
131
+ this.intervalPeriod = 5000;
132
+ this.scrollItems = 1;
133
+ this.itemsPerPage = 1;
134
+ this.hasErrors = false;
135
+ this.limitStylingAppends = false;
136
+ this.isLoading = true;
137
+ this.activeIndex = 0;
138
+ this.tutorialElementWidth = 0;
139
+ }
140
+ watchEndpoint(newValue, oldValue) {
141
+ if (newValue && newValue != oldValue && this.cmsEndpoint) {
142
+ this.getGeneralTutorialSlider().then((tutorialContent) => {
143
+ this.tutorialData = tutorialContent;
144
+ });
145
+ }
146
+ }
147
+ connectedCallback() {
148
+ window.screen.orientation.addEventListener('change', this.orientationChangeHandler);
149
+ }
150
+ componentWillLoad() {
151
+ if (this.cmsEndpoint && this.language) {
152
+ return this.getGeneralTutorialSlider().then((tutorialContent) => {
153
+ this.tutorialData = tutorialContent;
154
+ });
155
+ }
156
+ }
157
+ componentDidLoad() {
158
+ window.addEventListener('resize', this.resizeHandler);
159
+ }
160
+ componentDidRender() {
161
+ this.el.addEventListener('touchstart', this.handleTouchStart.bind(this), { passive: true });
162
+ this.el.addEventListener('touchmove', this.handleTouchMove.bind(this), { passive: true });
163
+ this.recalculateItemsPerPage();
164
+ // start custom styling area
165
+ if (!this.limitStylingAppends && this.stylingContainer) {
166
+ if (this.clientStyling)
167
+ this.setClientStyling();
168
+ if (this.clientStylingUrl)
169
+ this.setClientStylingURL();
170
+ this.limitStylingAppends = true;
171
+ }
172
+ // end custom styling area
173
+ }
174
+ componentDidUpdate() {
175
+ this.recalculateItemsPerPage();
176
+ }
177
+ disconnectedCallback() {
178
+ this.el.removeEventListener('touchstart', this.handleTouchStart);
179
+ this.el.removeEventListener('touchmove', this.handleTouchMove);
180
+ window.screen.orientation.removeEventListener('change', this.orientationChangeHandler);
181
+ window.removeEventListener('resize', this.resizeHandler);
182
+ }
183
+ getGeneralTutorialSlider() {
184
+ let url = new URL(`${this.cmsEndpoint}/${this.language}/slider-onboarding`);
185
+ url.searchParams.append('env', this.cmsEnv);
186
+ url.searchParams.append('userRoles', this.userRoles);
187
+ url.searchParams.append('device', getDevicePlatform());
188
+ return new Promise((resolve, reject) => {
189
+ this.isLoading = true;
190
+ fetch(url.href)
191
+ .then((res) => res.json())
192
+ .then((tutorialContent) => {
193
+ resolve(tutorialContent);
194
+ }).catch((err) => {
195
+ console.error(err);
196
+ this.hasErrors = true;
197
+ reject(err);
198
+ }).finally(() => {
199
+ this.isLoading = false;
200
+ });
201
+ });
202
+ }
203
+ move(direction) {
204
+ this.setActive(this.activeIndex + direction);
205
+ }
206
+ ;
207
+ //calculate itemsperpage by tutorials length to avoid empty in the tutorials end
208
+ recalculateItemsPerPage() {
209
+ if (!this.tutorialsElement)
210
+ return;
211
+ this.tutorialElementWidth = this.tutorialsElement.clientWidth;
212
+ this.allElementsWidth = (this.tutorialData.length - 1) * this.tutorialElementWidth;
213
+ }
214
+ ;
215
+ goTo(index) {
216
+ let diff = this.activeIndex - index;
217
+ if (diff > 0) {
218
+ for (let i = 0; i < diff; i++) {
219
+ this.move(-1);
220
+ }
221
+ }
222
+ else {
223
+ for (let i = 0; i > diff; i--) {
224
+ this.move(1);
225
+ }
226
+ }
227
+ }
228
+ handleTouchStart(evt) {
229
+ const firstTouch = this.getTouches(evt)[0];
230
+ this.xDown = firstTouch.clientX;
231
+ this.yDown = firstTouch.clientY;
232
+ }
233
+ getTouches(evt) {
234
+ return evt.touches || evt.originalEvent.touches;
235
+ }
236
+ handleTouchMove(evt) {
237
+ if (!this.xDown || !this.yDown)
238
+ return;
239
+ let xUp = evt.touches[0].clientX;
240
+ let yUp = evt.touches[0].clientY;
241
+ let xDiff = this.xDown - xUp;
242
+ let yDiff = this.yDown - yUp;
243
+ if (Math.abs(xDiff) > Math.abs(yDiff)) {
244
+ if (xDiff > 0) {
245
+ this.move(1);
246
+ }
247
+ else {
248
+ this.move(-1);
249
+ }
250
+ }
251
+ this.xDown = null;
252
+ this.yDown = null;
253
+ }
254
+ ;
255
+ setActive(index) {
256
+ const maxLength = this.tutorialData.length;
257
+ if (index >= 0) {
258
+ if (index >= maxLength - 1) {
259
+ this.activeIndex = maxLength - 1;
260
+ }
261
+ else {
262
+ this.activeIndex = index;
263
+ }
264
+ }
265
+ else {
266
+ this.activeIndex = 0;
267
+ }
268
+ }
269
+ renderDots() {
270
+ const dots = [];
271
+ for (let index = 0; index < this.tutorialData.length / this.itemsPerPage; index++) {
272
+ dots.push(h("li", { class: index == this.activeIndex ? 'active' : 'default', onClick: () => { this.goTo(index); this.setActive(index); } }));
273
+ }
274
+ return dots;
275
+ }
276
+ render() {
277
+ const styles = {
278
+ transform: `translate(${(this.allElementsWidth / (this.tutorialData.length - 1) * this.activeIndex) * -1}px, 0px)`
279
+ };
280
+ const itemStyle = {
281
+ width: `${this.tutorialElementWidth / this.itemsPerPage}px`
282
+ };
283
+ if (this.hasErrors) {
284
+ return (h("div", { class: "GeneralTutorialSliderError" }, h("div", { class: "TitleError" }, translate('error', this.language))));
285
+ }
286
+ if (!this.isLoading) {
287
+ return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "TutorialWrapper" }, h("div", { class: "TutorialContent", ref: (el) => this.slider = el }, ((this.showSliderArrows && !this.isMobile) ||
288
+ (this.showSliderArrowsMobile && this.isMobile)) &&
289
+ h("div", { class: this.activeIndex === 0 ? 'SliderNavButton DisabledArrow' : 'SliderNavButton', onClick: () => this.move(-1) }, h("svg", { fill: "none", stroke: "var(--emfe-w-color-secondary, #FD2839)", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M15 19l-7-7 7-7" }))), h("main", null, h("div", { style: styles, ref: (el) => this.tutorialsElement = el, class: "TutorialItems" }, this.tutorialData.map((data) => {
290
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
291
+ return h("div", { class: "TutorialItem", style: itemStyle }, h("div", { class: "ItemTitle", innerHTML: data === null || data === void 0 ? void 0 : data.title }), ((_a = data === null || data === void 0 ? void 0 : data.media) === null || _a === void 0 ? void 0 : _a.images) ? (h("div", { class: "ItemImage" }, this.isMobile ? (h("img", { src: (_e = (_d = (_c = (_b = data === null || data === void 0 ? void 0 : data.media) === null || _b === void 0 ? void 0 : _b.images[0]) === null || _c === void 0 ? void 0 : _c.sources) === null || _d === void 0 ? void 0 : _d.find((source) => source.media === 'mobile')) === null || _e === void 0 ? void 0 : _e.src, alt: data === null || data === void 0 ? void 0 : data.slug })) : (h("img", { src: (_j = (_h = (_g = (_f = data === null || data === void 0 ? void 0 : data.media) === null || _f === void 0 ? void 0 : _f.images[0]) === null || _g === void 0 ? void 0 : _g.sources) === null || _h === void 0 ? void 0 : _h.find((source) => source.media === 'desktop')) === null || _j === void 0 ? void 0 : _j.src, alt: data === null || data === void 0 ? void 0 : data.slug })))) : ((_k = data === null || data === void 0 ? void 0 : data.media) === null || _k === void 0 ? void 0 : _k.video) ? (h("div", { class: "ItemImage" }, this.isMobile ? (h("video", { controls: true, loop: true, autoplay: true }, h("source", { src: (_p = (_o = (_m = (_l = data === null || data === void 0 ? void 0 : data.media) === null || _l === void 0 ? void 0 : _l.video[0]) === null || _m === void 0 ? void 0 : _m.sources) === null || _o === void 0 ? void 0 : _o.find((source) => source.media === 'mobile')) === null || _p === void 0 ? void 0 : _p.src, type: "video/mp4" }))) : (h("video", { controls: true, loop: true, autoplay: true }, h("source", { src: (_t = (_s = (_r = (_q = data === null || data === void 0 ? void 0 : data.media) === null || _q === void 0 ? void 0 : _q.video[0]) === null || _r === void 0 ? void 0 : _r.sources) === null || _s === void 0 ? void 0 : _s.find((source) => source.media === 'desktop')) === null || _t === void 0 ? void 0 : _t.src, type: "video/mp4" }))))) : null, h("div", { class: "ItemDescription", innerHTML: data === null || data === void 0 ? void 0 : data.content }));
292
+ }))), ((this.showSliderArrows && !this.isMobile) ||
293
+ (this.showSliderArrowsMobile && this.isMobile)) &&
294
+ h("div", { class: this.activeIndex === this.tutorialData.length - 1 ? ' SliderNavButton DisabledArrow disabled' : 'SliderNavButton', onClick: () => this.move(1) }, h("svg", { fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M9 5l7 7-7 7" }))), h("div", null)), this.showSliderDots &&
295
+ h("div", { class: "DotsWrapper" }, h("ul", { class: "Dots" }, this.renderDots())))));
296
+ }
297
+ }
298
+ get el() { return getElement(this); }
299
+ static get watchers() { return {
300
+ "cmsEndpoint": ["watchEndpoint"],
301
+ "language": ["watchEndpoint"]
302
+ }; }
303
+ };
304
+ GeneralTutorialSlider.style = GeneralTutorialSliderStyle0;
305
+
306
+ export { GeneralTutorialSlider as general_tutorial_slider };
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a6815b2c.js';
2
+ export { s as setNonce } from './index-a6815b2c.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([["general-tutorial-slider",[[1,"general-tutorial-slider",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"cmsEndpoint":[513,"cms-endpoint"],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"showSliderArrowsMobile":[516,"show-slider-arrows-mobile"],"enableAutoScroll":[516,"enable-auto-scroll"],"intervalPeriod":[514,"interval-period"],"scrollItems":[520,"scroll-items"],"itemsPerPage":[514,"items-per-page"],"hasErrors":[32],"limitStylingAppends":[32],"isLoading":[32],"activeIndex":[32],"tutorialElementWidth":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"]}]]]], options);
20
+ });