Browse code

Refactor and rewrite as contao bundle

Benjamin Roth authored on04/11/2022 22:32:32
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,1445 +0,0 @@
1
-(function (global, factory) {
2
-    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('swiper/core'), require('rxjs')) :
3
-    typeof define === 'function' && define.amd ? define('swiper_angular', ['exports', '@angular/core', '@angular/common', 'swiper/core', 'rxjs'], factory) :
4
-    (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.swiper_angular = {}, global.ng.core, global.ng.common, global.Swiper, global.rxjs));
5
-}(this, (function (exports, core, common, Swiper, rxjs) { 'use strict';
6
-
7
-    function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
-    var Swiper__default = /*#__PURE__*/_interopDefaultLegacy(Swiper);
10
-
11
-    /*! *****************************************************************************
12
-    Copyright (c) Microsoft Corporation.
13
-
14
-    Permission to use, copy, modify, and/or distribute this software for any
15
-    purpose with or without fee is hereby granted.
16
-
17
-    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
-    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
-    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
-    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
-    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
-    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
-    PERFORMANCE OF THIS SOFTWARE.
24
-    ***************************************************************************** */
25
-    /* global Reflect, Promise */
26
-    var extendStatics = function (d, b) {
27
-        extendStatics = Object.setPrototypeOf ||
28
-            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
29
-            function (d, b) { for (var p in b)
30
-                if (Object.prototype.hasOwnProperty.call(b, p))
31
-                    d[p] = b[p]; };
32
-        return extendStatics(d, b);
33
-    };
34
-    function __extends(d, b) {
35
-        if (typeof b !== "function" && b !== null)
36
-            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
37
-        extendStatics(d, b);
38
-        function __() { this.constructor = d; }
39
-        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40
-    }
41
-    var __assign = function () {
42
-        __assign = Object.assign || function __assign(t) {
43
-            for (var s, i = 1, n = arguments.length; i < n; i++) {
44
-                s = arguments[i];
45
-                for (var p in s)
46
-                    if (Object.prototype.hasOwnProperty.call(s, p))
47
-                        t[p] = s[p];
48
-            }
49
-            return t;
50
-        };
51
-        return __assign.apply(this, arguments);
52
-    };
53
-    function __rest(s, e) {
54
-        var t = {};
55
-        for (var p in s)
56
-            if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
57
-                t[p] = s[p];
58
-        if (s != null && typeof Object.getOwnPropertySymbols === "function")
59
-            for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
60
-                if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
61
-                    t[p[i]] = s[p[i]];
62
-            }
63
-        return t;
64
-    }
65
-    function __decorate(decorators, target, key, desc) {
66
-        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
67
-        if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
68
-            r = Reflect.decorate(decorators, target, key, desc);
69
-        else
70
-            for (var i = decorators.length - 1; i >= 0; i--)
71
-                if (d = decorators[i])
72
-                    r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
73
-        return c > 3 && r && Object.defineProperty(target, key, r), r;
74
-    }
75
-    function __param(paramIndex, decorator) {
76
-        return function (target, key) { decorator(target, key, paramIndex); };
77
-    }
78
-    function __metadata(metadataKey, metadataValue) {
79
-        if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
80
-            return Reflect.metadata(metadataKey, metadataValue);
81
-    }
82
-    function __awaiter(thisArg, _arguments, P, generator) {
83
-        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
84
-        return new (P || (P = Promise))(function (resolve, reject) {
85
-            function fulfilled(value) { try {
86
-                step(generator.next(value));
87
-            }
88
-            catch (e) {
89
-                reject(e);
90
-            } }
91
-            function rejected(value) { try {
92
-                step(generator["throw"](value));
93
-            }
94
-            catch (e) {
95
-                reject(e);
96
-            } }
97
-            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
98
-            step((generator = generator.apply(thisArg, _arguments || [])).next());
99
-        });
100
-    }
101
-    function __generator(thisArg, body) {
102
-        var _ = { label: 0, sent: function () { if (t[0] & 1)
103
-                throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
104
-        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
105
-        function verb(n) { return function (v) { return step([n, v]); }; }
106
-        function step(op) {
107
-            if (f)
108
-                throw new TypeError("Generator is already executing.");
109
-            while (_)
110
-                try {
111
-                    if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
112
-                        return t;
113
-                    if (y = 0, t)
114
-                        op = [op[0] & 2, t.value];
115
-                    switch (op[0]) {
116
-                        case 0:
117
-                        case 1:
118
-                            t = op;
119
-                            break;
120
-                        case 4:
121
-                            _.label++;
122
-                            return { value: op[1], done: false };
123
-                        case 5:
124
-                            _.label++;
125
-                            y = op[1];
126
-                            op = [0];
127
-                            continue;
128
-                        case 7:
129
-                            op = _.ops.pop();
130
-                            _.trys.pop();
131
-                            continue;
132
-                        default:
133
-                            if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
134
-                                _ = 0;
135
-                                continue;
136
-                            }
137
-                            if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
138
-                                _.label = op[1];
139
-                                break;
140
-                            }
141
-                            if (op[0] === 6 && _.label < t[1]) {
142
-                                _.label = t[1];
143
-                                t = op;
144
-                                break;
145
-                            }
146
-                            if (t && _.label < t[2]) {
147
-                                _.label = t[2];
148
-                                _.ops.push(op);
149
-                                break;
150
-                            }
151
-                            if (t[2])
152
-                                _.ops.pop();
153
-                            _.trys.pop();
154
-                            continue;
155
-                    }
156
-                    op = body.call(thisArg, _);
157
-                }
158
-                catch (e) {
159
-                    op = [6, e];
160
-                    y = 0;
161
-                }
162
-                finally {
163
-                    f = t = 0;
164
-                }
165
-            if (op[0] & 5)
166
-                throw op[1];
167
-            return { value: op[0] ? op[1] : void 0, done: true };
168
-        }
169
-    }
170
-    var __createBinding = Object.create ? (function (o, m, k, k2) {
171
-        if (k2 === undefined)
172
-            k2 = k;
173
-        Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
174
-    }) : (function (o, m, k, k2) {
175
-        if (k2 === undefined)
176
-            k2 = k;
177
-        o[k2] = m[k];
178
-    });
179
-    function __exportStar(m, o) {
180
-        for (var p in m)
181
-            if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
182
-                __createBinding(o, m, p);
183
-    }
184
-    function __values(o) {
185
-        var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
186
-        if (m)
187
-            return m.call(o);
188
-        if (o && typeof o.length === "number")
189
-            return {
190
-                next: function () {
191
-                    if (o && i >= o.length)
192
-                        o = void 0;
193
-                    return { value: o && o[i++], done: !o };
194
-                }
195
-            };
196
-        throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
197
-    }
198
-    function __read(o, n) {
199
-        var m = typeof Symbol === "function" && o[Symbol.iterator];
200
-        if (!m)
201
-            return o;
202
-        var i = m.call(o), r, ar = [], e;
203
-        try {
204
-            while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
205
-                ar.push(r.value);
206
-        }
207
-        catch (error) {
208
-            e = { error: error };
209
-        }
210
-        finally {
211
-            try {
212
-                if (r && !r.done && (m = i["return"]))
213
-                    m.call(i);
214
-            }
215
-            finally {
216
-                if (e)
217
-                    throw e.error;
218
-            }
219
-        }
220
-        return ar;
221
-    }
222
-    /** @deprecated */
223
-    function __spread() {
224
-        for (var ar = [], i = 0; i < arguments.length; i++)
225
-            ar = ar.concat(__read(arguments[i]));
226
-        return ar;
227
-    }
228
-    /** @deprecated */
229
-    function __spreadArrays() {
230
-        for (var s = 0, i = 0, il = arguments.length; i < il; i++)
231
-            s += arguments[i].length;
232
-        for (var r = Array(s), k = 0, i = 0; i < il; i++)
233
-            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
234
-                r[k] = a[j];
235
-        return r;
236
-    }
237
-    function __spreadArray(to, from) {
238
-        for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
239
-            to[j] = from[i];
240
-        return to;
241
-    }
242
-    function __await(v) {
243
-        return this instanceof __await ? (this.v = v, this) : new __await(v);
244
-    }
245
-    function __asyncGenerator(thisArg, _arguments, generator) {
246
-        if (!Symbol.asyncIterator)
247
-            throw new TypeError("Symbol.asyncIterator is not defined.");
248
-        var g = generator.apply(thisArg, _arguments || []), i, q = [];
249
-        return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
250
-        function verb(n) { if (g[n])
251
-            i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
252
-        function resume(n, v) { try {
253
-            step(g[n](v));
254
-        }
255
-        catch (e) {
256
-            settle(q[0][3], e);
257
-        } }
258
-        function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
259
-        function fulfill(value) { resume("next", value); }
260
-        function reject(value) { resume("throw", value); }
261
-        function settle(f, v) { if (f(v), q.shift(), q.length)
262
-            resume(q[0][0], q[0][1]); }
263
-    }
264
-    function __asyncDelegator(o) {
265
-        var i, p;
266
-        return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
267
-        function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
268
-    }
269
-    function __asyncValues(o) {
270
-        if (!Symbol.asyncIterator)
271
-            throw new TypeError("Symbol.asyncIterator is not defined.");
272
-        var m = o[Symbol.asyncIterator], i;
273
-        return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
274
-        function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
275
-        function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
276
-    }
277
-    function __makeTemplateObject(cooked, raw) {
278
-        if (Object.defineProperty) {
279
-            Object.defineProperty(cooked, "raw", { value: raw });
280
-        }
281
-        else {
282
-            cooked.raw = raw;
283
-        }
284
-        return cooked;
285
-    }
286
-    ;
287
-    var __setModuleDefault = Object.create ? (function (o, v) {
288
-        Object.defineProperty(o, "default", { enumerable: true, value: v });
289
-    }) : function (o, v) {
290
-        o["default"] = v;
291
-    };
292
-    function __importStar(mod) {
293
-        if (mod && mod.__esModule)
294
-            return mod;
295
-        var result = {};
296
-        if (mod != null)
297
-            for (var k in mod)
298
-                if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
299
-                    __createBinding(result, mod, k);
300
-        __setModuleDefault(result, mod);
301
-        return result;
302
-    }
303
-    function __importDefault(mod) {
304
-        return (mod && mod.__esModule) ? mod : { default: mod };
305
-    }
306
-    function __classPrivateFieldGet(receiver, privateMap) {
307
-        if (!privateMap.has(receiver)) {
308
-            throw new TypeError("attempted to get private field on non-instance");
309
-        }
310
-        return privateMap.get(receiver);
311
-    }
312
-    function __classPrivateFieldSet(receiver, privateMap, value) {
313
-        if (!privateMap.has(receiver)) {
314
-            throw new TypeError("attempted to set private field on non-instance");
315
-        }
316
-        privateMap.set(receiver, value);
317
-        return value;
318
-    }
319
-
320
-    function isObject(o) {
321
-        return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;
322
-    }
323
-    function extend(target, src) {
324
-        Object.keys(src).forEach(function (key) {
325
-            if (typeof target[key] === 'undefined') {
326
-                target[key] = src[key];
327
-                return;
328
-            }
329
-            if (target[key] && !src[key]) {
330
-                return;
331
-            }
332
-            if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {
333
-                extend(target[key], src[key]);
334
-            }
335
-            else {
336
-                target[key] = src[key];
337
-            }
338
-        });
339
-    }
340
-    function coerceBooleanProperty(value) {
341
-        return value != null && "" + value !== 'false';
342
-    }
343
-    var ignoreNgOnChanges = ['pagination', 'navigation', 'scrollbar', 'virtual'];
344
-    function setProperty(val, obj) {
345
-        if (obj === void 0) { obj = {}; }
346
-        if (isObject(val)) {
347
-            return val;
348
-        }
349
-        var newValue = coerceBooleanProperty(val);
350
-        if (newValue === true) {
351
-            return obj;
352
-        }
353
-        return newValue;
354
-    }
355
-
356
-    /* underscore in name -> watch for changes */
357
-    var paramsList = [
358
-        'init',
359
-        '_direction',
360
-        'touchEventsTarget',
361
-        'initialSlide',
362
-        '_speed',
363
-        'cssMode',
364
-        'updateOnWindowResize',
365
-        'resizeObserver',
366
-        'nested',
367
-        '_width',
368
-        '_height',
369
-        'preventInteractionOnTransition',
370
-        'userAgent',
371
-        'url',
372
-        '_edgeSwipeDetection',
373
-        '_edgeSwipeThreshold',
374
-        '_freeMode',
375
-        '_freeModeMomentum',
376
-        '_freeModeMomentumRatio',
377
-        '_freeModeMomentumBounce',
378
-        '_freeModeMomentumBounceRatio',
379
-        '_freeModeMomentumVelocityRatio',
380
-        '_freeModeSticky',
381
-        '_freeModeMinimumVelocity',
382
-        '_autoHeight',
383
-        'setWrapperSize',
384
-        'virtualTranslate',
385
-        '_effect',
386
-        'breakpoints',
387
-        '_spaceBetween',
388
-        '_slidesPerView',
389
-        '_slidesPerColumn',
390
-        '_slidesPerColumnFill',
391
-        '_slidesPerGroup',
392
-        '_slidesPerGroupSkip',
393
-        '_centeredSlides',
394
-        '_centeredSlidesBounds',
395
-        '_slidesOffsetBefore',
396
-        '_slidesOffsetAfter',
397
-        'normalizeSlideIndex',
398
-        '_centerInsufficientSlides',
399
-        '_watchOverflow',
400
-        'roundLengths',
401
-        'touchRatio',
402
-        'touchAngle',
403
-        'simulateTouch',
404
-        '_shortSwipes',
405
-        '_longSwipes',
406
-        'longSwipesRatio',
407
-        'longSwipesMs',
408
-        '_followFinger',
409
-        'allowTouchMove',
410
-        '_threshold',
411
-        'touchMoveStopPropagation',
412
-        'touchStartPreventDefault',
413
-        'touchStartForcePreventDefault',
414
-        'touchReleaseOnEdges',
415
-        'uniqueNavElements',
416
-        '_resistance',
417
-        '_resistanceRatio',
418
-        '_watchSlidesProgress',
419
-        '_watchSlidesVisibility',
420
-        '_grabCursor',
421
-        'preventClicks',
422
-        'preventClicksPropagation',
423
-        '_slideToClickedSlide',
424
-        '_preloadImages',
425
-        'updateOnImagesReady',
426
-        '_loop',
427
-        '_loopAdditionalSlides',
428
-        '_loopedSlides',
429
-        '_loopFillGroupWithBlank',
430
-        'loopPreventsSlide',
431
-        '_allowSlidePrev',
432
-        '_allowSlideNext',
433
-        '_swipeHandler',
434
-        '_noSwiping',
435
-        'noSwipingClass',
436
-        'noSwipingSelector',
437
-        'passiveListeners',
438
-        'containerModifierClass',
439
-        'slideClass',
440
-        'slideBlankClass',
441
-        'slideActiveClass',
442
-        'slideDuplicateActiveClass',
443
-        'slideVisibleClass',
444
-        'slideDuplicateClass',
445
-        'slideNextClass',
446
-        'slideDuplicateNextClass',
447
-        'slidePrevClass',
448
-        'slideDuplicatePrevClass',
449
-        'wrapperClass',
450
-        'runCallbacksOnInit',
451
-        'observer',
452
-        'observeParents',
453
-        'observeSlideChildren',
454
-        // modules
455
-        'a11y',
456
-        'autoplay',
457
-        '_controller',
458
-        'coverflowEffect',
459
-        'cubeEffect',
460
-        'fadeEffect',
461
-        'flipEffect',
462
-        'hashNavigation',
463
-        'history',
464
-        'keyboard',
465
-        'lazy',
466
-        'mousewheel',
467
-        '_navigation',
468
-        '_pagination',
469
-        'parallax',
470
-        '_scrollbar',
471
-        '_thumbs',
472
-        'virtual',
473
-        'zoom',
474
-    ];
475
-
476
-    // eslint-disable-next-line
477
-    var ɵ0 = function (key) { return key.replace(/_/, ''); };
478
-    var allowedParams = paramsList.map(ɵ0);
479
-    function getParams(obj) {
480
-        if (obj === void 0) { obj = {}; }
481
-        var params = {
482
-            on: {},
483
-        };
484
-        var passedParams = {};
485
-        extend(params, Swiper__default['default'].defaults);
486
-        extend(params, Swiper__default['default'].extendedDefaults);
487
-        params._emitClasses = true;
488
-        var rest = {};
489
-        Object.keys(obj).forEach(function (key) {
490
-            var _key = key.replace(/^_/, '');
491
-            if (typeof obj[_key] === 'undefined')
492
-                return;
493
-            if (allowedParams.indexOf(_key) >= 0) {
494
-                if (isObject(obj[_key])) {
495
-                    params[_key] = {};
496
-                    passedParams[_key] = {};
497
-                    extend(params[_key], obj[_key]);
498
-                    extend(passedParams[_key], obj[_key]);
499
-                }
500
-                else {
501
-                    params[_key] = obj[_key];
502
-                    passedParams[_key] = obj[_key];
503
-                }
504
-            }
505
-            else {
506
-                rest[_key] = obj[_key];
507
-            }
508
-        });
509
-        return { params: params, passedParams: passedParams, rest: rest };
510
-    }
511
-
512
-    var SwiperSlideDirective = /** @class */ (function () {
513
-        function SwiperSlideDirective(template) {
514
-            this.template = template;
515
-            this.class = '';
516
-            this.slideData = {
517
-                isActive: false,
518
-                isPrev: false,
519
-                isNext: false,
520
-                isVisible: false,
521
-                isDuplicate: false,
522
-            };
523
-        }
524
-        Object.defineProperty(SwiperSlideDirective.prototype, "zoom", {
525
-            get: function () {
526
-                return this._zoom;
527
-            },
528
-            set: function (val) {
529
-                this._zoom = coerceBooleanProperty(val);
530
-            },
531
-            enumerable: false,
532
-            configurable: true
533
-        });
534
-        Object.defineProperty(SwiperSlideDirective.prototype, "classNames", {
535
-            get: function () {
536
-                return this._classNames;
537
-            },
538
-            set: function (val) {
539
-                if (this._classNames === val) {
540
-                    return;
541
-                }
542
-                this._classNames = val;
543
-                this.slideData = {
544
-                    isActive: this._hasClass(['swiper-slide-active', 'swiper-slide-duplicate-active']),
545
-                    isVisible: this._hasClass(['swiper-slide-visible']),
546
-                    isDuplicate: this._hasClass(['swiper-slide-duplicate']),
547
-                    isPrev: this._hasClass(['swiper-slide-prev', 'swiper-slide-duplicate-prev']),
548
-                    isNext: this._hasClass(['swiper-slide-next', 'swiper-slide-duplicate-next']),
549
-                };
550
-            },
551
-            enumerable: false,
552
-            configurable: true
553
-        });
554
-        SwiperSlideDirective.prototype._hasClass = function (classNames) {
555
-            var _this = this;
556
-            return classNames.some(function (className) { return _this._classNames.indexOf(className) >= 0; });
557
-        };
558
-        return SwiperSlideDirective;
559
-    }());
560
-    SwiperSlideDirective.decorators = [
561
-        { type: core.Directive, args: [{
562
-                    selector: 'ng-template[swiperSlide]',
563
-                },] }
564
-    ];
565
-    SwiperSlideDirective.ctorParameters = function () { return [
566
-        { type: core.TemplateRef }
567
-    ]; };
568
-    SwiperSlideDirective.propDecorators = {
569
-        virtualIndex: [{ type: core.Input }],
570
-        class: [{ type: core.Input }],
571
-        zoom: [{ type: core.Input }]
572
-    };
573
-
574
-    var SwiperComponent = /** @class */ (function () {
575
-        function SwiperComponent(_ngZone, elementRef, _changeDetectorRef, _platformId) {
576
-            var _this = this;
577
-            this._ngZone = _ngZone;
578
-            this.elementRef = elementRef;
579
-            this._changeDetectorRef = _changeDetectorRef;
580
-            this._platformId = _platformId;
581
-            this.slideClass = 'swiper-slide';
582
-            this.wrapperClass = 'swiper-wrapper';
583
-            this.showNavigation = true;
584
-            this.showPagination = true;
585
-            this.showScrollbar = true;
586
-            // prettier-ignore
587
-            this.s__beforeBreakpoint = new core.EventEmitter();
588
-            // prettier-ignore
589
-            this.s__containerClasses = new core.EventEmitter();
590
-            // prettier-ignore
591
-            this.s__slideClass = new core.EventEmitter();
592
-            // prettier-ignore
593
-            this.s__swiper = new core.EventEmitter();
594
-            // prettier-ignore
595
-            this.s_activeIndexChange = new core.EventEmitter();
596
-            // prettier-ignore
597
-            this.s_afterInit = new core.EventEmitter();
598
-            // prettier-ignore
599
-            this.s_autoplay = new core.EventEmitter();
600
-            // prettier-ignore
601
-            this.s_autoplayStart = new core.EventEmitter();
602
-            // prettier-ignore
603
-            this.s_autoplayStop = new core.EventEmitter();
604
-            // prettier-ignore
605
-            this.s_beforeDestroy = new core.EventEmitter();
606
-            // prettier-ignore
607
-            this.s_beforeInit = new core.EventEmitter();
608
-            // prettier-ignore
609
-            this.s_beforeLoopFix = new core.EventEmitter();
610
-            // prettier-ignore
611
-            this.s_beforeResize = new core.EventEmitter();
612
-            // prettier-ignore
613
-            this.s_beforeSlideChangeStart = new core.EventEmitter();
614
-            // prettier-ignore
615
-            this.s_beforeTransitionStart = new core.EventEmitter();
616
-            // prettier-ignore
617
-            this.s_breakpoint = new core.EventEmitter();
618
-            // prettier-ignore
619
-            this.s_changeDirection = new core.EventEmitter();
620
-            // prettier-ignore
621
-            this.s_click = new core.EventEmitter();
622
-            // prettier-ignore
623
-            this.s_doubleTap = new core.EventEmitter();
624
-            // prettier-ignore
625
-            this.s_doubleClick = new core.EventEmitter();
626
-            // prettier-ignore
627
-            this.s_destroy = new core.EventEmitter();
628
-            // prettier-ignore
629
-            this.s_fromEdge = new core.EventEmitter();
630
-            // prettier-ignore
631
-            this.s_hashChange = new core.EventEmitter();
632
-            // prettier-ignore
633
-            this.s_hashSet = new core.EventEmitter();
634
-            // prettier-ignore
635
-            this.s_imagesReady = new core.EventEmitter();
636
-            // prettier-ignore
637
-            this.s_init = new core.EventEmitter();
638
-            // prettier-ignore
639
-            this.s_keyPress = new core.EventEmitter();
640
-            // prettier-ignore
641
-            this.s_lazyImageLoad = new core.EventEmitter();
642
-            // prettier-ignore
643
-            this.s_lazyImageReady = new core.EventEmitter();
644
-            // prettier-ignore
645
-            this.s_loopFix = new core.EventEmitter();
646
-            // prettier-ignore
647
-            this.s_momentumBounce = new core.EventEmitter();
648
-            // prettier-ignore
649
-            this.s_navigationHide = new core.EventEmitter();
650
-            // prettier-ignore
651
-            this.s_navigationShow = new core.EventEmitter();
652
-            // prettier-ignore
653
-            this.s_observerUpdate = new core.EventEmitter();
654
-            // prettier-ignore
655
-            this.s_orientationchange = new core.EventEmitter();
656
-            // prettier-ignore
657
-            this.s_paginationHide = new core.EventEmitter();
658
-            // prettier-ignore
659
-            this.s_paginationRender = new core.EventEmitter();
660
-            // prettier-ignore
661
-            this.s_paginationShow = new core.EventEmitter();
662
-            // prettier-ignore
663
-            this.s_paginationUpdate = new core.EventEmitter();
664
-            // prettier-ignore
665
-            this.s_progress = new core.EventEmitter();
666
-            // prettier-ignore
667
-            this.s_reachBeginning = new core.EventEmitter();
668
-            // prettier-ignore
669
-            this.s_reachEnd = new core.EventEmitter();
670
-            // prettier-ignore
671
-            this.s_realIndexChange = new core.EventEmitter();
672
-            // prettier-ignore
673
-            this.s_resize = new core.EventEmitter();
674
-            // prettier-ignore
675
-            this.s_scroll = new core.EventEmitter();
676
-            // prettier-ignore
677
-            this.s_scrollbarDragEnd = new core.EventEmitter();
678
-            // prettier-ignore
679
-            this.s_scrollbarDragMove = new core.EventEmitter();
680
-            // prettier-ignore
681
-            this.s_scrollbarDragStart = new core.EventEmitter();
682
-            // prettier-ignore
683
-            this.s_setTransition = new core.EventEmitter();
684
-            // prettier-ignore
685
-            this.s_setTranslate = new core.EventEmitter();
686
-            // prettier-ignore
687
-            this.s_slideChange = new core.EventEmitter();
688
-            // prettier-ignore
689
-            this.s_slideChangeTransitionEnd = new core.EventEmitter();
690
-            // prettier-ignore
691
-            this.s_slideChangeTransitionStart = new core.EventEmitter();
692
-            // prettier-ignore
693
-            this.s_slideNextTransitionEnd = new core.EventEmitter();
694
-            // prettier-ignore
695
-            this.s_slideNextTransitionStart = new core.EventEmitter();
696
-            // prettier-ignore
697
-            this.s_slidePrevTransitionEnd = new core.EventEmitter();
698
-            // prettier-ignore
699
-            this.s_slidePrevTransitionStart = new core.EventEmitter();
700
-            // prettier-ignore
701
-            this.s_slideResetTransitionStart = new core.EventEmitter();
702
-            // prettier-ignore
703
-            this.s_slideResetTransitionEnd = new core.EventEmitter();
704
-            // prettier-ignore
705
-            this.s_sliderMove = new core.EventEmitter();
706
-            // prettier-ignore
707
-            this.s_sliderFirstMove = new core.EventEmitter();
708
-            // prettier-ignore
709
-            this.s_slidesLengthChange = new core.EventEmitter();
710
-            // prettier-ignore
711
-            this.s_slidesGridLengthChange = new core.EventEmitter();
712
-            // prettier-ignore
713
-            this.s_snapGridLengthChange = new core.EventEmitter();
714
-            // prettier-ignore
715
-            this.s_snapIndexChange = new core.EventEmitter();
716
-            // prettier-ignore
717
-            this.s_tap = new core.EventEmitter();
718
-            // prettier-ignore
719
-            this.s_toEdge = new core.EventEmitter();
720
-            // prettier-ignore
721
-            this.s_touchEnd = new core.EventEmitter();
722
-            // prettier-ignore
723
-            this.s_touchMove = new core.EventEmitter();
724
-            // prettier-ignore
725
-            this.s_touchMoveOpposite = new core.EventEmitter();
726
-            // prettier-ignore
727
-            this.s_touchStart = new core.EventEmitter();
728
-            // prettier-ignore
729
-            this.s_transitionEnd = new core.EventEmitter();
730
-            // prettier-ignore
731
-            this.s_transitionStart = new core.EventEmitter();
732
-            // prettier-ignore
733
-            this.s_update = new core.EventEmitter();
734
-            // prettier-ignore
735
-            this.s_zoomChange = new core.EventEmitter();
736
-            // prettier-ignore
737
-            this.s_swiper = new core.EventEmitter();
738
-            this.indexChange = new core.EventEmitter();
739
-            this._activeSlides = new rxjs.Subject();
740
-            this.containerClasses = 'swiper-container';
741
-            this.slidesChanges = function (val) {
742
-                _this.slides = val.map(function (slide, index) {
743
-                    slide.slideIndex = index;
744
-                    slide.classNames = _this.slideClass;
745
-                    return slide;
746
-                });
747
-                if (_this.loop && !_this.loopedSlides) {
748
-                    _this.calcLoopedSlides();
749
-                }
750
-                if (!_this.virtual) {
751
-                    _this.prependSlides = rxjs.of(_this.slides.slice(_this.slides.length - _this.loopedSlides));
752
-                    _this.appendSlides = rxjs.of(_this.slides.slice(0, _this.loopedSlides));
753
-                }
754
-                _this._changeDetectorRef.detectChanges();
755
-            };
756
-            this.style = null;
757
-            this.updateVirtualSlides = function (virtualData) {
758
-                var _e;
759
-                // TODO: type virtualData
760
-                if (!_this.swiperRef ||
761
-                    (_this.currentVirtualData &&
762
-                        _this.currentVirtualData.from === virtualData.from &&
763
-                        _this.currentVirtualData.to === virtualData.to &&
764
-                        _this.currentVirtualData.offset === virtualData.offset)) {
765
-                    return;
766
-                }
767
-                _this.style = _this.swiperRef.isHorizontal()
768
-                    ? (_e = {},
769
-                        _e[_this.swiperRef.rtlTranslate ? 'right' : 'left'] = virtualData.offset + "px",
770
-                        _e) : {
771
-                    top: virtualData.offset + "px",
772
-                };
773
-                _this.currentVirtualData = virtualData;
774
-                _this._activeSlides.next(virtualData.slides);
775
-                _this._changeDetectorRef.detectChanges();
776
-                _this._ngZone.runOutsideAngular(function () {
777
-                    _this.swiperRef.updateSlides();
778
-                    _this.swiperRef.updateProgress();
779
-                    _this.swiperRef.updateSlidesClasses();
780
-                    if (_this.swiperRef.lazy && _this.swiperRef.params.lazy['enabled']) {
781
-                        _this.swiperRef.lazy.load();
782
-                    }
783
-                    _this.swiperRef.virtual.update(true);
784
-                });
785
-                return;
786
-            };
787
-        }
788
-        Object.defineProperty(SwiperComponent.prototype, "navigation", {
789
-            get: function () {
790
-                return this._navigation;
791
-            },
792
-            set: function (val) {
793
-                var _a, _b, _c, _d;
794
-                var currentNext = typeof this._navigation !== 'boolean' ? (_a = this._navigation) === null || _a === void 0 ? void 0 : _a.nextEl : null;
795
-                var currentPrev = typeof this._navigation !== 'boolean' ? (_b = this._navigation) === null || _b === void 0 ? void 0 : _b.prevEl : null;
796
-                this._navigation = setProperty(val, {
797
-                    nextEl: currentNext || null,
798
-                    prevEl: currentPrev || null,
799
-                });
800
-                if (typeof this._navigation !== 'boolean' &&
801
-                    (typeof ((_c = this._navigation) === null || _c === void 0 ? void 0 : _c.nextEl) === 'string' || typeof ((_d = this._navigation) === null || _d === void 0 ? void 0 : _d.prevEl) === 'string')) {
802
-                    this.showNavigation = false;
803
-                }
804
-            },
805
-            enumerable: false,
806
-            configurable: true
807
-        });
808
-        Object.defineProperty(SwiperComponent.prototype, "pagination", {
809
-            get: function () {
810
-                return this._pagination;
811
-            },
812
-            set: function (val) {
813
-                var _a, _b;
814
-                var current = typeof this._pagination !== 'boolean' ? (_a = this._pagination) === null || _a === void 0 ? void 0 : _a.el : null;
815
-                this._pagination = setProperty(val, {
816
-                    el: current || null,
817
-                });
818
-                if (typeof this._pagination !== 'boolean' && typeof ((_b = this._pagination) === null || _b === void 0 ? void 0 : _b.el) === 'string') {
819
-                    this.showPagination = false;
820
-                }
821
-            },
822
-            enumerable: false,
823
-            configurable: true
824
-        });
825
-        Object.defineProperty(SwiperComponent.prototype, "scrollbar", {
826
-            get: function () {
827
-                return this._scrollbar;
828
-            },
829
-            set: function (val) {
830
-                var _a, _b;
831
-                var current = typeof this._scrollbar !== 'boolean' ? (_a = this._scrollbar) === null || _a === void 0 ? void 0 : _a.el : null;
832
-                this._scrollbar = setProperty(val, {
833
-                    el: current || null,
834
-                });
835
-                if (typeof this._scrollbar !== 'boolean' && typeof ((_b = this._scrollbar) === null || _b === void 0 ? void 0 : _b.el) === 'string') {
836
-                    this.showScrollbar = false;
837
-                }
838
-            },
839
-            enumerable: false,
840
-            configurable: true
841
-        });
842
-        Object.defineProperty(SwiperComponent.prototype, "virtual", {
843
-            get: function () {
844
-                return this._virtual;
845
-            },
846
-            set: function (val) {
847
-                this._virtual = setProperty(val);
848
-            },
849
-            enumerable: false,
850
-            configurable: true
851
-        });
852
-        Object.defineProperty(SwiperComponent.prototype, "index", {
853
-            set: function (index) {
854
-                this.setIndex(index);
855
-            },
856
-            enumerable: false,
857
-            configurable: true
858
-        });
859
-        Object.defineProperty(SwiperComponent.prototype, "config", {
860
-            set: function (val) {
861
-                this.updateSwiper(val);
862
-                var params = getParams(val).params;
863
-                Object.assign(this, params);
864
-            },
865
-            enumerable: false,
866
-            configurable: true
867
-        });
868
-        Object.defineProperty(SwiperComponent.prototype, "prevElRef", {
869
-            set: function (el) {
870
-                this._setElement(el, this.navigation, 'navigation', 'prevEl');
871
-            },
872
-            enumerable: false,
873
-            configurable: true
874
-        });
875
-        Object.defineProperty(SwiperComponent.prototype, "nextElRef", {
876
-            set: function (el) {
877
-                this._setElement(el, this.navigation, 'navigation', 'nextEl');
878
-            },
879
-            enumerable: false,
880
-            configurable: true
881
-        });
882
-        Object.defineProperty(SwiperComponent.prototype, "scrollbarElRef", {
883
-            set: function (el) {
884
-                this._setElement(el, this.scrollbar, 'scrollbar');
885
-            },
886
-            enumerable: false,
887
-            configurable: true
888
-        });
889
-        Object.defineProperty(SwiperComponent.prototype, "paginationElRef", {
890
-            set: function (el) {
891
-                this._setElement(el, this.pagination, 'pagination');
892
-            },
893
-            enumerable: false,
894
-            configurable: true
895
-        });
896
-        Object.defineProperty(SwiperComponent.prototype, "activeSlides", {
897
-            get: function () {
898
-                if (this.virtual) {
899
-                    return this._activeSlides;
900
-                }
901
-                return rxjs.of(this.slides);
902
-            },
903
-            enumerable: false,
904
-            configurable: true
905
-        });
906
-        Object.defineProperty(SwiperComponent.prototype, "zoomContainerClass", {
907
-            get: function () {
908
-                return typeof this.zoom !== 'boolean' ? this.zoom.containerClass : 'swiper-zoom-container';
909
-            },
910
-            enumerable: false,
911
-            configurable: true
912
-        });
913
-        SwiperComponent.prototype._setElement = function (el, ref, update, key) {
914
-            if (key === void 0) { key = 'el'; }
915
-            if (!el || !ref) {
916
-                return;
917
-            }
918
-            if (ref && el.nativeElement) {
919
-                if (ref[key] === el.nativeElement) {
920
-                    return;
921
-                }
922
-                ref[key] = el.nativeElement;
923
-            }
924
-            var updateObj = {};
925
-            updateObj[update] = true;
926
-            this.updateInitSwiper(updateObj);
927
-        };
928
-        SwiperComponent.prototype.ngOnInit = function () {
929
-            var params = getParams(this).params;
930
-            Object.assign(this, params);
931
-        };
932
-        SwiperComponent.prototype.ngAfterViewInit = function () {
933
-            var _this = this;
934
-            this.childrenSlidesInit();
935
-            this.initSwiper();
936
-            this._changeDetectorRef.detectChanges();
937
-            setTimeout(function () {
938
-                _this.s_swiper.emit(_this.swiperRef);
939
-            });
940
-        };
941
-        SwiperComponent.prototype.childrenSlidesInit = function () {
942
-            this.slidesChanges(this.slidesEl);
943
-            this.slidesEl.changes.subscribe(this.slidesChanges);
944
-        };
945
-        Object.defineProperty(SwiperComponent.prototype, "isSwiperActive", {
946
-            get: function () {
947
-                return this.swiperRef && !this.swiperRef.destroyed;
948
-            },
949
-            enumerable: false,
950
-            configurable: true
951
-        });
952
-        SwiperComponent.prototype.initSwiper = function () {
953
-            var _this = this;
954
-            var _e = getParams(this), swiperParams = _e.params, passedParams = _e.passedParams;
955
-            Object.assign(this, swiperParams);
956
-            this._ngZone.runOutsideAngular(function () {
957
-                swiperParams.init = false;
958
-                if (!swiperParams.virtual) {
959
-                    swiperParams.observer = true;
960
-                }
961
-                swiperParams.onAny = function (event) {
962
-                    var args = [];
963
-                    for (var _i = 1; _i < arguments.length; _i++) {
964
-                        args[_i - 1] = arguments[_i];
965
-                    }
966
-                    var emitter = _this["s_" + event];
967
-                    if (emitter) {
968
-                        emitter.emit.apply(emitter, __spread(args));
969
-                    }
970
-                };
971
-                Object.assign(swiperParams.on, {
972
-                    _containerClasses: function (swiper, classes) {
973
-                        this.containerClasses = classes;
974
-                    },
975
-                    _slideClasses: function (_, updated) {
976
-                        updated.forEach(function (_e, index) {
977
-                            var slideEl = _e.slideEl, classNames = _e.classNames;
978
-                            var slideIndex = parseInt(slideEl.getAttribute('data-swiper-slide-index')) || index;
979
-                            if (_this.virtual) {
980
-                                var virtualSlide = _this.slides.find(function (item) {
981
-                                    return item.virtualIndex && item.virtualIndex === slideIndex;
982
-                                });
983
-                                if (virtualSlide) {
984
-                                    virtualSlide.classNames = classNames;
985
-                                    return;
986
-                                }
987
-                            }
988
-                            if (_this.slides[slideIndex]) {
989
-                                _this.slides[slideIndex].classNames = classNames;
990
-                            }
991
-                        });
992
-                        _this._changeDetectorRef.detectChanges();
993
-                    },
994
-                });
995
-                var swiperRef = new Swiper__default['default'](swiperParams);
996
-                swiperRef.loopCreate = function () { };
997
-                swiperRef.loopDestroy = function () { };
998
-                if (swiperParams.loop) {
999
-                    swiperRef.loopedSlides = _this.loopedSlides;
1000
-                }
1001
-                if (swiperRef.virtual && swiperRef.params.virtual.enabled) {
1002
-                    swiperRef.virtual.slides = _this.slides;
1003
-                    var extendWith = {
1004
-                        cache: false,
1005
-                        renderExternal: _this.updateVirtualSlides,
1006
-                        renderExternalUpdate: false,
1007
-                    };
1008
-                    extend(swiperRef.params.virtual, extendWith);
1009
-                    extend(swiperRef.originalParams.virtual, extendWith);
1010
-                }
1011
-                if (common.isPlatformBrowser(_this._platformId)) {
1012
-                    _this.swiperRef = swiperRef.init(_this.elementRef.nativeElement);
1013
-                    if (_this.swiperRef.virtual && _this.swiperRef.params.virtual.enabled) {
1014
-                        _this.swiperRef.virtual.update(true);
1015
-                    }
1016
-                    _this._changeDetectorRef.detectChanges();
1017
-                    swiperRef.on('slideChange', function () {
1018
-                        _this.indexChange.emit(_this.swiperRef.realIndex);
1019
-                    });
1020
-                }
1021
-            });
1022
-        };
1023
-        SwiperComponent.prototype.ngOnChanges = function (changedParams) {
1024
-            this.updateSwiper(changedParams);
1025
-            this._changeDetectorRef.detectChanges();
1026
-        };
1027
-        SwiperComponent.prototype.updateInitSwiper = function (changedParams) {
1028
-            var _this = this;
1029
-            if (!(changedParams && this.swiperRef && !this.swiperRef.destroyed)) {
1030
-                return;
1031
-            }
1032
-            this._ngZone.runOutsideAngular(function () {
1033
-                var _e = _this.swiperRef, currentParams = _e.params, pagination = _e.pagination, navigation = _e.navigation, scrollbar = _e.scrollbar, virtual = _e.virtual, thumbs = _e.thumbs;
1034
-                if (changedParams.pagination) {
1035
-                    if (_this.pagination &&
1036
-                        typeof _this.pagination !== 'boolean' &&
1037
-                        _this.pagination.el &&
1038
-                        pagination &&
1039
-                        !pagination.el) {
1040
-                        _this.updateParameter('pagination', _this.pagination);
1041
-                        pagination.init();
1042
-                        pagination.render();
1043
-                        pagination.update();
1044
-                    }
1045
-                    else {
1046
-                        pagination.destroy();
1047
-                        pagination.el = null;
1048
-                    }
1049
-                }
1050
-                if (changedParams.scrollbar) {
1051
-                    if (_this.scrollbar &&
1052
-                        typeof _this.scrollbar !== 'boolean' &&
1053
-                        _this.scrollbar.el &&
1054
-                        scrollbar &&
1055
-                        !scrollbar.el) {
1056
-                        _this.updateParameter('scrollbar', _this.scrollbar);
1057
-                        scrollbar.init();
1058
-                        scrollbar.updateSize();
1059
-                        scrollbar.setTranslate();
1060
-                    }
1061
-                    else {
1062
-                        scrollbar.destroy();
1063
-                        scrollbar.el = null;
1064
-                    }
1065
-                }
1066
-                if (changedParams.navigation) {
1067
-                    if (_this.navigation &&
1068
-                        typeof _this.navigation !== 'boolean' &&
1069
-                        _this.navigation.prevEl &&
1070
-                        _this.navigation.nextEl &&
1071
-                        navigation &&
1072
-                        !navigation.prevEl &&
1073
-                        !navigation.nextEl) {
1074
-                        _this.updateParameter('navigation', _this.navigation);
1075
-                        navigation.init();
1076
-                        navigation.update();
1077
-                    }
1078
-                    else if (navigation.prevEl && navigation.nextEl) {
1079
-                        navigation.destroy();
1080
-                        navigation.nextEl = null;
1081
-                        navigation.prevEl = null;
1082
-                    }
1083
-                }
1084
-                if (changedParams.thumbs && _this.thumbs && _this.thumbs.swiper) {
1085
-                    _this.updateParameter('thumbs', _this.thumbs);
1086
-                    var initialized = thumbs.init();
1087
-                    if (initialized)
1088
-                        thumbs.update(true);
1089
-                }
1090
-                if (changedParams.controller && _this.controller && _this.controller.control) {
1091
-                    _this.swiperRef.controller.control = _this.controller.control;
1092
-                }
1093
-                _this.swiperRef.update();
1094
-            });
1095
-        };
1096
-        SwiperComponent.prototype.updateSwiper = function (changedParams) {
1097
-            var _this = this;
1098
-            this._ngZone.runOutsideAngular(function () {
1099
-                var _a, _b;
1100
-                if (changedParams.config) {
1101
-                    return;
1102
-                }
1103
-                if (!(changedParams && _this.swiperRef && !_this.swiperRef.destroyed)) {
1104
-                    return;
1105
-                }
1106
-                for (var key in changedParams) {
1107
-                    if (ignoreNgOnChanges.indexOf(key) >= 0) {
1108
-                        continue;
1109
-                    }
1110
-                    var newValue = (_b = (_a = changedParams[key]) === null || _a === void 0 ? void 0 : _a.currentValue) !== null && _b !== void 0 ? _b : changedParams[key];
1111
-                    _this.updateParameter(key, newValue);
1112
-                }
1113
-                if (changedParams.allowSlideNext) {
1114
-                    _this.swiperRef.allowSlideNext = _this.allowSlideNext;
1115
-                }
1116
-                if (changedParams.allowSlidePrev) {
1117
-                    _this.swiperRef.allowSlidePrev = _this.allowSlidePrev;
1118
-                }
1119
-                if (changedParams.direction) {
1120
-                    _this.swiperRef.changeDirection(_this.direction, false);
1121
-                }
1122
-                if (changedParams.breakpoints) {
1123
-                    if (_this.loop && !_this.loopedSlides) {
1124
-                        _this.calcLoopedSlides();
1125
-                    }
1126
-                    _this.swiperRef.currentBreakpoint = null;
1127
-                    _this.swiperRef.setBreakpoint();
1128
-                }
1129
-                if (changedParams.thumbs || changedParams.controller) {
1130
-                    _this.updateInitSwiper(changedParams);
1131
-                }
1132
-                _this.swiperRef.update();
1133
-            });
1134
-        };
1135
-        SwiperComponent.prototype.calcLoopedSlides = function () {
1136
-            if (!this.loop) {
1137
-                return;
1138
-            }
1139
-            var slidesPerViewParams = this.slidesPerView;
1140
-            if (this.breakpoints) {
1141
-                var breakpoint = Swiper__default['default'].prototype.getBreakpoint(this.breakpoints);
1142
-                var breakpointOnlyParams = breakpoint in this.breakpoints ? this.breakpoints[breakpoint] : undefined;
1143
-                if (breakpointOnlyParams && breakpointOnlyParams.slidesPerView) {
1144
-                    slidesPerViewParams = breakpointOnlyParams.slidesPerView;
1145
-                }
1146
-            }
1147
-            if (slidesPerViewParams === 'auto') {
1148
-                this.loopedSlides = this.slides.length;
1149
-                return this.slides.length;
1150
-            }
1151
-            var loopedSlides = this.loopedSlides || slidesPerViewParams;
1152
-            loopedSlides += this.loopAdditionalSlides;
1153
-            if (loopedSlides > this.slides.length) {
1154
-                loopedSlides = this.slides.length;
1155
-            }
1156
-            this.loopedSlides = loopedSlides;
1157
-            return loopedSlides;
1158
-        };
1159
-        SwiperComponent.prototype.updateParameter = function (key, value) {
1160
-            if (!(this.swiperRef && !this.swiperRef.destroyed)) {
1161
-                return;
1162
-            }
1163
-            var _key = key.replace(/^_/, '');
1164
-            if (Object.keys(this.swiperRef.modules).indexOf(_key) >= 0) {
1165
-                extend(value, this.swiperRef.modules[_key].params[_key]);
1166
-            }
1167
-            if (isObject(this.swiperRef.params[_key]) && isObject(value)) {
1168
-                extend(this.swiperRef.params[_key], value);
1169
-            }
1170
-            else {
1171
-                this.swiperRef.params[_key] = value;
1172
-            }
1173
-        };
1174
-        SwiperComponent.prototype.setIndex = function (index, speed, silent) {
1175
-            var _this = this;
1176
-            if (!this.isSwiperActive) {
1177
-                this.initialSlide = index;
1178
-                return;
1179
-            }
1180
-            if (index === this.swiperRef.activeIndex) {
1181
-                return;
1182
-            }
1183
-            this._ngZone.runOutsideAngular(function () {
1184
-                if (_this.loop) {
1185
-                    _this.swiperRef.slideToLoop(index, speed, !silent);
1186
-                }
1187
-                else {
1188
-                    _this.swiperRef.slideTo(index, speed, !silent);
1189
-                }
1190
-            });
1191
-        };
1192
-        SwiperComponent.prototype.ngOnDestroy = function () {
1193
-            var _this = this;
1194
-            this._ngZone.runOutsideAngular(function () {
1195
-                var _a;
1196
-                (_a = _this.swiperRef) === null || _a === void 0 ? void 0 : _a.destroy();
1197
-            });
1198
-        };
1199
-        return SwiperComponent;
1200
-    }());
1201
-    SwiperComponent.decorators = [
1202
-        { type: core.Component, args: [{
1203
-                    selector: 'swiper, [swiper]',
1204
-                    template: "<ng-content select=\"[slot=container-start]\"></ng-content>\n<ng-container *ngIf=\"navigation && showNavigation\">\n  <div class=\"swiper-button-prev\" #prevElRef></div>\n  <div class=\"swiper-button-next\" #nextElRef></div>\n</ng-container>\n<div *ngIf=\"scrollbar && showScrollbar\" class=\"swiper-scrollbar\" #scrollbarElRef></div>\n<div *ngIf=\"pagination && showPagination\" class=\"swiper-pagination\" #paginationElRef></div>\n<div [ngClass]=\"wrapperClass\">\n  <ng-content select=\"[slot=wrapper-start]\"></ng-content>\n  <ng-template\n    *ngTemplateOutlet=\"\n      slidesTemplate;\n      context: {\n        loopSlides: prependSlides,\n        key: 'prepend'\n      }\n    \"\n  ></ng-template>\n  <ng-template\n    *ngTemplateOutlet=\"\n      slidesTemplate;\n      context: {\n        loopSlides: activeSlides,\n        key: ''\n      }\n    \"\n  ></ng-template>\n  <ng-template\n    *ngTemplateOutlet=\"\n      slidesTemplate;\n      context: {\n        loopSlides: appendSlides,\n        key: 'append'\n      }\n    \"\n  ></ng-template>\n  <ng-content select=\"[slot=wrapper-end]\"></ng-content>\n</div>\n<ng-content select=\"[slot=container-end]\"></ng-content>\n\n<ng-template #slidesTemplate let-loopSlides=\"loopSlides\" let-slideKey=\"key\">\n  <div\n    *ngFor=\"let slide of loopSlides | async\"\n    [ngClass]=\"\n      (slide.class ? slide.class + ' ' : '') +\n      slideClass +\n      (slideKey !== '' ? ' ' + slideDuplicateClass : '')\n    \"\n    [attr.data-swiper-slide-index]=\"slide.virtualIndex ? slide.virtualIndex : slide.slideIndex\"\n    [style]=\"style\"\n    [ngSwitch]=\"slide.zoom\"\n  >\n    <div *ngSwitchCase=\"true\" [ngClass]=\"zoomContainerClass\">\n      <ng-template\n        [ngTemplateOutlet]=\"slide.template\"\n        [ngTemplateOutletContext]=\"{\n          $implicit: slide.slideData\n        }\"\n      ></ng-template>\n    </div>\n    <ng-container *ngSwitchDefault>\n      <ng-template\n        [ngTemplateOutlet]=\"slide.template\"\n        [ngTemplateOutletContext]=\"{\n          $implicit: slide.slideData\n        }\"\n      ></ng-template>\n    </ng-container>\n  </div>\n</ng-template>\n",
1205
-                    changeDetection: core.ChangeDetectionStrategy.OnPush,
1206
-                    encapsulation: core.ViewEncapsulation.None,
1207
-                    styles: ["\n      swiper {\n        display: block;\n      }\n    "]
1208
-                },] }
1209
-    ];
1210
-    SwiperComponent.ctorParameters = function () { return [
1211
-        { type: core.NgZone },
1212
-        { type: core.ElementRef },
1213
-        { type: core.ChangeDetectorRef },
1214
-        { type: undefined, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] }
1215
-    ]; };
1216
-    SwiperComponent.propDecorators = {
1217
-        direction: [{ type: core.Input }],
1218
-        touchEventsTarget: [{ type: core.Input }],
1219
-        initialSlide: [{ type: core.Input }],
1220
-        speed: [{ type: core.Input }],
1221
-        cssMode: [{ type: core.Input }],
1222
-        updateOnWindowResize: [{ type: core.Input }],
1223
-        resizeObserver: [{ type: core.Input }],
1224
-        nested: [{ type: core.Input }],
1225
-        width: [{ type: core.Input }],
1226
-        height: [{ type: core.Input }],
1227
-        preventInteractionOnTransition: [{ type: core.Input }],
1228
-        userAgent: [{ type: core.Input }],
1229
-        url: [{ type: core.Input }],
1230
-        edgeSwipeDetection: [{ type: core.Input }],
1231
-        edgeSwipeThreshold: [{ type: core.Input }],
1232
-        freeMode: [{ type: core.Input }],
1233
-        freeModeMomentum: [{ type: core.Input }],
1234
-        freeModeMomentumRatio: [{ type: core.Input }],
1235
-        freeModeMomentumBounce: [{ type: core.Input }],
1236
-        freeModeMomentumBounceRatio: [{ type: core.Input }],
1237
-        freeModeMomentumVelocityRatio: [{ type: core.Input }],
1238
-        freeModeSticky: [{ type: core.Input }],
1239
-        freeModeMinimumVelocity: [{ type: core.Input }],
1240
-        autoHeight: [{ type: core.Input }],
1241
-        setWrapperSize: [{ type: core.Input }],
1242
-        virtualTranslate: [{ type: core.Input }],
1243
-        effect: [{ type: core.Input }],
1244
-        breakpoints: [{ type: core.Input }],
1245
-        spaceBetween: [{ type: core.Input }],
1246
-        slidesPerView: [{ type: core.Input }],
1247
-        slidesPerColumn: [{ type: core.Input }],
1248
-        slidesPerColumnFill: [{ type: core.Input }],
1249
-        slidesPerGroup: [{ type: core.Input }],
1250
-        slidesPerGroupSkip: [{ type: core.Input }],
1251
-        centeredSlides: [{ type: core.Input }],
1252
-        centeredSlidesBounds: [{ type: core.Input }],
1253
-        slidesOffsetBefore: [{ type: core.Input }],
1254
-        slidesOffsetAfter: [{ type: core.Input }],
1255
-        normalizeSlideIndex: [{ type: core.Input }],
1256
-        centerInsufficientSlides: [{ type: core.Input }],
1257
-        watchOverflow: [{ type: core.Input }],
1258
-        roundLengths: [{ type: core.Input }],
1259
-        touchRatio: [{ type: core.Input }],
1260
-        touchAngle: [{ type: core.Input }],
1261
-        simulateTouch: [{ type: core.Input }],
1262
-        shortSwipes: [{ type: core.Input }],
1263
-        longSwipes: [{ type: core.Input }],
1264
-        longSwipesRatio: [{ type: core.Input }],
1265
-        longSwipesMs: [{ type: core.Input }],
1266
-        followFinger: [{ type: core.Input }],
1267
-        allowTouchMove: [{ type: core.Input }],
1268
-        threshold: [{ type: core.Input }],
1269
-        touchMoveStopPropagation: [{ type: core.Input }],
1270
-        touchStartPreventDefault: [{ type: core.Input }],
1271
-        touchStartForcePreventDefault: [{ type: core.Input }],
1272
-        touchReleaseOnEdges: [{ type: core.Input }],
1273
-        uniqueNavElements: [{ type: core.Input }],
1274
-        resistance: [{ type: core.Input }],
1275
-        resistanceRatio: [{ type: core.Input }],
1276
-        watchSlidesProgress: [{ type: core.Input }],
1277
-        watchSlidesVisibility: [{ type: core.Input }],
1278
-        grabCursor: [{ type: core.Input }],
1279
-        preventClicks: [{ type: core.Input }],
1280
-        preventClicksPropagation: [{ type: core.Input }],
1281
-        slideToClickedSlide: [{ type: core.Input }],
1282
-        preloadImages: [{ type: core.Input }],
1283
-        updateOnImagesReady: [{ type: core.Input }],
1284
-        loop: [{ type: core.Input }],
1285
-        loopAdditionalSlides: [{ type: core.Input }],
1286
-        loopedSlides: [{ type: core.Input }],
1287
-        loopFillGroupWithBlank: [{ type: core.Input }],
1288
-        loopPreventsSlide: [{ type: core.Input }],
1289
-        allowSlidePrev: [{ type: core.Input }],
1290
-        allowSlideNext: [{ type: core.Input }],
1291
-        swipeHandler: [{ type: core.Input }],
1292
-        noSwiping: [{ type: core.Input }],
1293
-        noSwipingClass: [{ type: core.Input }],
1294
-        noSwipingSelector: [{ type: core.Input }],
1295
-        passiveListeners: [{ type: core.Input }],
1296
-        containerModifierClass: [{ type: core.Input }],
1297
-        slideClass: [{ type: core.Input }],
1298
-        slideBlankClass: [{ type: core.Input }],
1299
-        slideActiveClass: [{ type: core.Input }],
1300
-        slideDuplicateActiveClass: [{ type: core.Input }],
1301
-        slideVisibleClass: [{ type: core.Input }],
1302
-        slideDuplicateClass: [{ type: core.Input }],
1303
-        slideNextClass: [{ type: core.Input }],
1304
-        slideDuplicateNextClass: [{ type: core.Input }],
1305
-        slidePrevClass: [{ type: core.Input }],
1306
-        slideDuplicatePrevClass: [{ type: core.Input }],
1307
-        wrapperClass: [{ type: core.Input }],
1308
-        runCallbacksOnInit: [{ type: core.Input }],
1309
-        observeParents: [{ type: core.Input }],
1310
-        observeSlideChildren: [{ type: core.Input }],
1311
-        a11y: [{ type: core.Input }],
1312
-        autoplay: [{ type: core.Input }],
1313
-        controller: [{ type: core.Input }],
1314
-        coverflowEffect: [{ type: core.Input }],
1315
-        cubeEffect: [{ type: core.Input }],
1316
-        fadeEffect: [{ type: core.Input }],
1317
-        flipEffect: [{ type: core.Input }],
1318
-        hashNavigation: [{ type: core.Input }],
1319
-        history: [{ type: core.Input }],
1320
-        keyboard: [{ type: core.Input }],
1321
-        lazy: [{ type: core.Input }],
1322
-        mousewheel: [{ type: core.Input }],
1323
-        parallax: [{ type: core.Input }],
1324
-        thumbs: [{ type: core.Input }],
1325
-        zoom: [{ type: core.Input }],
1326
-        navigation: [{ type: core.Input }],
1327
-        pagination: [{ type: core.Input }],
1328
-        scrollbar: [{ type: core.Input }],
1329
-        virtual: [{ type: core.Input }],
1330
-        index: [{ type: core.Input }],
1331
-        config: [{ type: core.Input }],
1332
-        s__beforeBreakpoint: [{ type: core.Output, args: ['_beforeBreakpoint',] }],
1333
-        s__containerClasses: [{ type: core.Output, args: ['_containerClasses',] }],
1334
-        s__slideClass: [{ type: core.Output, args: ['_slideClass',] }],
1335
-        s__swiper: [{ type: core.Output, args: ['_swiper',] }],
1336
-        s_activeIndexChange: [{ type: core.Output, args: ['activeIndexChange',] }],
1337
-        s_afterInit: [{ type: core.Output, args: ['afterInit',] }],
1338
-        s_autoplay: [{ type: core.Output, args: ['autoplay',] }],
1339
-        s_autoplayStart: [{ type: core.Output, args: ['autoplayStart',] }],
1340
-        s_autoplayStop: [{ type: core.Output, args: ['autoplayStop',] }],
1341
-        s_beforeDestroy: [{ type: core.Output, args: ['beforeDestroy',] }],
1342
-        s_beforeInit: [{ type: core.Output, args: ['beforeInit',] }],
1343
-        s_beforeLoopFix: [{ type: core.Output, args: ['beforeLoopFix',] }],
1344
-        s_beforeResize: [{ type: core.Output, args: ['beforeResize',] }],
1345
-        s_beforeSlideChangeStart: [{ type: core.Output, args: ['beforeSlideChangeStart',] }],
1346
-        s_beforeTransitionStart: [{ type: core.Output, args: ['beforeTransitionStart',] }],
1347
-        s_breakpoint: [{ type: core.Output, args: ['breakpoint',] }],
1348
-        s_changeDirection: [{ type: core.Output, args: ['changeDirection',] }],
1349
-        s_click: [{ type: core.Output, args: ['click',] }],
1350
-        s_doubleTap: [{ type: core.Output, args: ['doubleTap',] }],
1351
-        s_doubleClick: [{ type: core.Output, args: ['doubleClick',] }],
1352
-        s_destroy: [{ type: core.Output, args: ['destroy',] }],
1353
-        s_fromEdge: [{ type: core.Output, args: ['fromEdge',] }],
1354
-        s_hashChange: [{ type: core.Output, args: ['hashChange',] }],
1355
-        s_hashSet: [{ type: core.Output, args: ['hashSet',] }],
1356
-        s_imagesReady: [{ type: core.Output, args: ['imagesReady',] }],
1357
-        s_init: [{ type: core.Output, args: ['init',] }],
1358
-        s_keyPress: [{ type: core.Output, args: ['keyPress',] }],
1359
-        s_lazyImageLoad: [{ type: core.Output, args: ['lazyImageLoad',] }],
1360
-        s_lazyImageReady: [{ type: core.Output, args: ['lazyImageReady',] }],
1361
-        s_loopFix: [{ type: core.Output, args: ['loopFix',] }],
1362
-        s_momentumBounce: [{ type: core.Output, args: ['momentumBounce',] }],
1363
-        s_navigationHide: [{ type: core.Output, args: ['navigationHide',] }],
1364
-        s_navigationShow: [{ type: core.Output, args: ['navigationShow',] }],
1365
-        s_observerUpdate: [{ type: core.Output, args: ['observerUpdate',] }],
1366
-        s_orientationchange: [{ type: core.Output, args: ['orientationchange',] }],
1367
-        s_paginationHide: [{ type: core.Output, args: ['paginationHide',] }],
1368
-        s_paginationRender: [{ type: core.Output, args: ['paginationRender',] }],
1369
-        s_paginationShow: [{ type: core.Output, args: ['paginationShow',] }],
1370
-        s_paginationUpdate: [{ type: core.Output, args: ['paginationUpdate',] }],
1371
-        s_progress: [{ type: core.Output, args: ['progress',] }],
1372
-        s_reachBeginning: [{ type: core.Output, args: ['reachBeginning',] }],
1373
-        s_reachEnd: [{ type: core.Output, args: ['reachEnd',] }],
1374
-        s_realIndexChange: [{ type: core.Output, args: ['realIndexChange',] }],
1375
-        s_resize: [{ type: core.Output, args: ['resize',] }],
1376
-        s_scroll: [{ type: core.Output, args: ['scroll',] }],
1377
-        s_scrollbarDragEnd: [{ type: core.Output, args: ['scrollbarDragEnd',] }],
1378
-        s_scrollbarDragMove: [{ type: core.Output, args: ['scrollbarDragMove',] }],
1379
-        s_scrollbarDragStart: [{ type: core.Output, args: ['scrollbarDragStart',] }],
1380
-        s_setTransition: [{ type: core.Output, args: ['setTransition',] }],
1381
-        s_setTranslate: [{ type: core.Output, args: ['setTranslate',] }],
1382
-        s_slideChange: [{ type: core.Output, args: ['slideChange',] }],
1383
-        s_slideChangeTransitionEnd: [{ type: core.Output, args: ['slideChangeTransitionEnd',] }],
1384
-        s_slideChangeTransitionStart: [{ type: core.Output, args: ['slideChangeTransitionStart',] }],
1385
-        s_slideNextTransitionEnd: [{ type: core.Output, args: ['slideNextTransitionEnd',] }],
1386
-        s_slideNextTransitionStart: [{ type: core.Output, args: ['slideNextTransitionStart',] }],
1387
-        s_slidePrevTransitionEnd: [{ type: core.Output, args: ['slidePrevTransitionEnd',] }],
1388
-        s_slidePrevTransitionStart: [{ type: core.Output, args: ['slidePrevTransitionStart',] }],
1389
-        s_slideResetTransitionStart: [{ type: core.Output, args: ['slideResetTransitionStart',] }],
1390
-        s_slideResetTransitionEnd: [{ type: core.Output, args: ['slideResetTransitionEnd',] }],
1391
-        s_sliderMove: [{ type: core.Output, args: ['sliderMove',] }],
1392
-        s_sliderFirstMove: [{ type: core.Output, args: ['sliderFirstMove',] }],
1393
-        s_slidesLengthChange: [{ type: core.Output, args: ['slidesLengthChange',] }],
1394
-        s_slidesGridLengthChange: [{ type: core.Output, args: ['slidesGridLengthChange',] }],
1395
-        s_snapGridLengthChange: [{ type: core.Output, args: ['snapGridLengthChange',] }],
1396
-        s_snapIndexChange: [{ type: core.Output, args: ['snapIndexChange',] }],
1397
-        s_tap: [{ type: core.Output, args: ['tap',] }],
1398
-        s_toEdge: [{ type: core.Output, args: ['toEdge',] }],
1399
-        s_touchEnd: [{ type: core.Output, args: ['touchEnd',] }],
1400
-        s_touchMove: [{ type: core.Output, args: ['touchMove',] }],
1401
-        s_touchMoveOpposite: [{ type: core.Output, args: ['touchMoveOpposite',] }],
1402
-        s_touchStart: [{ type: core.Output, args: ['touchStart',] }],
1403
-        s_transitionEnd: [{ type: core.Output, args: ['transitionEnd',] }],
1404
-        s_transitionStart: [{ type: core.Output, args: ['transitionStart',] }],
1405
-        s_update: [{ type: core.Output, args: ['update',] }],
1406
-        s_zoomChange: [{ type: core.Output, args: ['zoomChange',] }],
1407
-        s_swiper: [{ type: core.Output, args: ['swiper',] }],
1408
-        indexChange: [{ type: core.Output }],
1409
-        prevElRef: [{ type: core.ViewChild, args: ['prevElRef', { static: false },] }],
1410
-        nextElRef: [{ type: core.ViewChild, args: ['nextElRef', { static: false },] }],
1411
-        scrollbarElRef: [{ type: core.ViewChild, args: ['scrollbarElRef', { static: false },] }],
1412
-        paginationElRef: [{ type: core.ViewChild, args: ['paginationElRef', { static: false },] }],
1413
-        slidesEl: [{ type: core.ContentChildren, args: [SwiperSlideDirective, { descendants: true, emitDistinctChangesOnly: true },] }],
1414
-        containerClasses: [{ type: core.HostBinding, args: ['class',] }]
1415
-    };
1416
-
1417
-    var SwiperModule = /** @class */ (function () {
1418
-        function SwiperModule() {
1419
-        }
1420
-        return SwiperModule;
1421
-    }());
1422
-    SwiperModule.decorators = [
1423
-        { type: core.NgModule, args: [{
1424
-                    declarations: [SwiperComponent, SwiperSlideDirective],
1425
-                    exports: [SwiperComponent, SwiperSlideDirective],
1426
-                    imports: [common.CommonModule],
1427
-                },] }
1428
-    ];
1429
-
1430
-    /*
1431
-     * Public API Surface of angular
1432
-     */
1433
-
1434
-    /**
1435
-     * Generated bundle index. Do not edit.
1436
-     */
1437
-
1438
-    exports.SwiperComponent = SwiperComponent;
1439
-    exports.SwiperModule = SwiperModule;
1440
-    exports.SwiperSlideDirective = SwiperSlideDirective;
1441
-
1442
-    Object.defineProperty(exports, '__esModule', { value: true });
1443
-
1444
-})));
1445
-//# sourceMappingURL=swiper_angular.umd.js.map
Browse code

swiper.js version 6.5.0

Benjamin Roth authored on14/03/2021 15:29:46
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,1445 @@
1
+(function (global, factory) {
2
+    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('swiper/core'), require('rxjs')) :
3
+    typeof define === 'function' && define.amd ? define('swiper_angular', ['exports', '@angular/core', '@angular/common', 'swiper/core', 'rxjs'], factory) :
4
+    (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.swiper_angular = {}, global.ng.core, global.ng.common, global.Swiper, global.rxjs));
5
+}(this, (function (exports, core, common, Swiper, rxjs) { 'use strict';
6
+
7
+    function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+    var Swiper__default = /*#__PURE__*/_interopDefaultLegacy(Swiper);
10
+
11
+    /*! *****************************************************************************
12
+    Copyright (c) Microsoft Corporation.
13
+
14
+    Permission to use, copy, modify, and/or distribute this software for any
15
+    purpose with or without fee is hereby granted.
16
+
17
+    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
+    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
+    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
+    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
+    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
+    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
+    PERFORMANCE OF THIS SOFTWARE.
24
+    ***************************************************************************** */
25
+    /* global Reflect, Promise */
26
+    var extendStatics = function (d, b) {
27
+        extendStatics = Object.setPrototypeOf ||
28
+            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
29
+            function (d, b) { for (var p in b)
30
+                if (Object.prototype.hasOwnProperty.call(b, p))
31
+                    d[p] = b[p]; };
32
+        return extendStatics(d, b);
33
+    };
34
+    function __extends(d, b) {
35
+        if (typeof b !== "function" && b !== null)
36
+            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
37
+        extendStatics(d, b);
38
+        function __() { this.constructor = d; }
39
+        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40
+    }
41
+    var __assign = function () {
42
+        __assign = Object.assign || function __assign(t) {
43
+            for (var s, i = 1, n = arguments.length; i < n; i++) {
44
+                s = arguments[i];
45
+                for (var p in s)
46
+                    if (Object.prototype.hasOwnProperty.call(s, p))
47
+                        t[p] = s[p];
48
+            }
49
+            return t;
50
+        };
51
+        return __assign.apply(this, arguments);
52
+    };
53
+    function __rest(s, e) {
54
+        var t = {};
55
+        for (var p in s)
56
+            if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
57
+                t[p] = s[p];
58
+        if (s != null && typeof Object.getOwnPropertySymbols === "function")
59
+            for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
60
+                if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
61
+                    t[p[i]] = s[p[i]];
62
+            }
63
+        return t;
64
+    }
65
+    function __decorate(decorators, target, key, desc) {
66
+        var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
67
+        if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
68
+            r = Reflect.decorate(decorators, target, key, desc);
69
+        else
70
+            for (var i = decorators.length - 1; i >= 0; i--)
71
+                if (d = decorators[i])
72
+                    r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
73
+        return c > 3 && r && Object.defineProperty(target, key, r), r;
74
+    }
75
+    function __param(paramIndex, decorator) {
76
+        return function (target, key) { decorator(target, key, paramIndex); };
77
+    }
78
+    function __metadata(metadataKey, metadataValue) {
79
+        if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
80
+            return Reflect.metadata(metadataKey, metadataValue);
81
+    }
82
+    function __awaiter(thisArg, _arguments, P, generator) {
83
+        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
84
+        return new (P || (P = Promise))(function (resolve, reject) {
85
+            function fulfilled(value) { try {
86
+                step(generator.next(value));
87
+            }
88
+            catch (e) {
89
+                reject(e);
90
+            } }
91
+            function rejected(value) { try {
92
+                step(generator["throw"](value));
93
+            }
94
+            catch (e) {
95
+                reject(e);
96
+            } }
97
+            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
98
+            step((generator = generator.apply(thisArg, _arguments || [])).next());
99
+        });
100
+    }
101
+    function __generator(thisArg, body) {
102
+        var _ = { label: 0, sent: function () { if (t[0] & 1)
103
+                throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
104
+        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
105
+        function verb(n) { return function (v) { return step([n, v]); }; }
106
+        function step(op) {
107
+            if (f)
108
+                throw new TypeError("Generator is already executing.");
109
+            while (_)
110
+                try {
111
+                    if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
112
+                        return t;
113
+                    if (y = 0, t)
114
+                        op = [op[0] & 2, t.value];
115
+                    switch (op[0]) {
116
+                        case 0:
117
+                        case 1:
118
+                            t = op;
119
+                            break;
120
+                        case 4:
121
+                            _.label++;
122
+                            return { value: op[1], done: false };
123
+                        case 5:
124
+                            _.label++;
125
+                            y = op[1];
126
+                            op = [0];
127
+                            continue;
128
+                        case 7:
129
+                            op = _.ops.pop();
130
+                            _.trys.pop();
131
+                            continue;
132
+                        default:
133
+                            if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
134
+                                _ = 0;
135
+                                continue;
136
+                            }
137
+                            if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
138
+                                _.label = op[1];
139
+                                break;
140
+                            }
141
+                            if (op[0] === 6 && _.label < t[1]) {
142
+                                _.label = t[1];
143
+                                t = op;
144
+                                break;
145
+                            }
146
+                            if (t && _.label < t[2]) {
147
+                                _.label = t[2];
148
+                                _.ops.push(op);
149
+                                break;
150
+                            }
151
+                            if (t[2])
152
+                                _.ops.pop();
153
+                            _.trys.pop();
154
+                            continue;
155
+                    }
156
+                    op = body.call(thisArg, _);
157
+                }
158
+                catch (e) {
159
+                    op = [6, e];
160
+                    y = 0;
161
+                }
162
+                finally {
163
+                    f = t = 0;
164
+                }
165
+            if (op[0] & 5)
166
+                throw op[1];
167
+            return { value: op[0] ? op[1] : void 0, done: true };
168
+        }
169
+    }
170
+    var __createBinding = Object.create ? (function (o, m, k, k2) {
171
+        if (k2 === undefined)
172
+            k2 = k;
173
+        Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
174
+    }) : (function (o, m, k, k2) {
175
+        if (k2 === undefined)
176
+            k2 = k;
177
+        o[k2] = m[k];
178
+    });
179
+    function __exportStar(m, o) {
180
+        for (var p in m)
181
+            if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
182
+                __createBinding(o, m, p);
183
+    }
184
+    function __values(o) {
185
+        var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
186
+        if (m)
187
+            return m.call(o);
188
+        if (o && typeof o.length === "number")
189
+            return {
190
+                next: function () {
191
+                    if (o && i >= o.length)
192
+                        o = void 0;
193
+                    return { value: o && o[i++], done: !o };
194
+                }
195
+            };
196
+        throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
197
+    }
198
+    function __read(o, n) {
199
+        var m = typeof Symbol === "function" && o[Symbol.iterator];
200
+        if (!m)
201
+            return o;
202
+        var i = m.call(o), r, ar = [], e;
203
+        try {
204
+            while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
205
+                ar.push(r.value);
206
+        }
207
+        catch (error) {
208
+            e = { error: error };
209
+        }
210
+        finally {
211
+            try {
212
+                if (r && !r.done && (m = i["return"]))
213
+                    m.call(i);
214
+            }
215
+            finally {
216
+                if (e)
217
+                    throw e.error;
218
+            }
219
+        }
220
+        return ar;
221
+    }
222
+    /** @deprecated */
223
+    function __spread() {
224
+        for (var ar = [], i = 0; i < arguments.length; i++)
225
+            ar = ar.concat(__read(arguments[i]));
226
+        return ar;
227
+    }
228
+    /** @deprecated */
229
+    function __spreadArrays() {
230
+        for (var s = 0, i = 0, il = arguments.length; i < il; i++)
231
+            s += arguments[i].length;
232
+        for (var r = Array(s), k = 0, i = 0; i < il; i++)
233
+            for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
234
+                r[k] = a[j];
235
+        return r;
236
+    }
237
+    function __spreadArray(to, from) {
238
+        for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
239
+            to[j] = from[i];
240
+        return to;
241
+    }
242
+    function __await(v) {
243
+        return this instanceof __await ? (this.v = v, this) : new __await(v);
244
+    }
245
+    function __asyncGenerator(thisArg, _arguments, generator) {
246
+        if (!Symbol.asyncIterator)
247
+            throw new TypeError("Symbol.asyncIterator is not defined.");
248
+        var g = generator.apply(thisArg, _arguments || []), i, q = [];
249
+        return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
250
+        function verb(n) { if (g[n])
251
+            i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
252
+        function resume(n, v) { try {
253
+            step(g[n](v));
254
+        }
255
+        catch (e) {
256
+            settle(q[0][3], e);
257
+        } }
258
+        function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
259
+        function fulfill(value) { resume("next", value); }
260
+        function reject(value) { resume("throw", value); }
261
+        function settle(f, v) { if (f(v), q.shift(), q.length)
262
+            resume(q[0][0], q[0][1]); }
263
+    }
264
+    function __asyncDelegator(o) {
265
+        var i, p;
266
+        return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
267
+        function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
268
+    }
269
+    function __asyncValues(o) {
270
+        if (!Symbol.asyncIterator)
271
+            throw new TypeError("Symbol.asyncIterator is not defined.");
272
+        var m = o[Symbol.asyncIterator], i;
273
+        return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
274
+        function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
275
+        function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
276
+    }
277
+    function __makeTemplateObject(cooked, raw) {
278
+        if (Object.defineProperty) {
279
+            Object.defineProperty(cooked, "raw", { value: raw });
280
+        }
281
+        else {
282
+            cooked.raw = raw;
283
+        }
284
+        return cooked;
285
+    }
286
+    ;
287
+    var __setModuleDefault = Object.create ? (function (o, v) {
288
+        Object.defineProperty(o, "default", { enumerable: true, value: v });
289
+    }) : function (o, v) {
290
+        o["default"] = v;
291
+    };
292
+    function __importStar(mod) {
293
+        if (mod && mod.__esModule)
294
+            return mod;
295
+        var result = {};
296
+        if (mod != null)
297
+            for (var k in mod)
298
+                if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
299
+                    __createBinding(result, mod, k);
300
+        __setModuleDefault(result, mod);
301
+        return result;
302
+    }
303
+    function __importDefault(mod) {
304
+        return (mod && mod.__esModule) ? mod : { default: mod };
305
+    }
306
+    function __classPrivateFieldGet(receiver, privateMap) {
307
+        if (!privateMap.has(receiver)) {
308
+            throw new TypeError("attempted to get private field on non-instance");
309
+        }
310
+        return privateMap.get(receiver);
311
+    }
312
+    function __classPrivateFieldSet(receiver, privateMap, value) {
313
+        if (!privateMap.has(receiver)) {
314
+            throw new TypeError("attempted to set private field on non-instance");
315
+        }
316
+        privateMap.set(receiver, value);
317
+        return value;
318
+    }
319
+
320
+    function isObject(o) {
321
+        return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;
322
+    }
323
+    function extend(target, src) {
324
+        Object.keys(src).forEach(function (key) {
325
+            if (typeof target[key] === 'undefined') {
326
+                target[key] = src[key];
327
+                return;
328
+            }
329
+            if (target[key] && !src[key]) {
330
+                return;
331
+            }
332
+            if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {
333
+                extend(target[key], src[key]);
334
+            }
335
+            else {
336
+                target[key] = src[key];
337
+            }
338
+        });
339
+    }
340
+    function coerceBooleanProperty(value) {
341
+        return value != null && "" + value !== 'false';
342
+    }
343
+    var ignoreNgOnChanges = ['pagination', 'navigation', 'scrollbar', 'virtual'];
344
+    function setProperty(val, obj) {
345
+        if (obj === void 0) { obj = {}; }
346
+        if (isObject(val)) {
347
+            return val;
348
+        }
349
+        var newValue = coerceBooleanProperty(val);
350
+        if (newValue === true) {
351
+            return obj;
352
+        }
353
+        return newValue;
354
+    }
355
+
356
+    /* underscore in name -> watch for changes */
357
+    var paramsList = [
358
+        'init',
359
+        '_direction',
360
+        'touchEventsTarget',
361
+        'initialSlide',
362
+        '_speed',
363
+        'cssMode',
364
+        'updateOnWindowResize',
365
+        'resizeObserver',
366
+        'nested',
367
+        '_width',
368
+        '_height',
369
+        'preventInteractionOnTransition',
370
+        'userAgent',
371
+        'url',
372
+        '_edgeSwipeDetection',
373
+        '_edgeSwipeThreshold',
374
+        '_freeMode',
375
+        '_freeModeMomentum',
376
+        '_freeModeMomentumRatio',
377
+        '_freeModeMomentumBounce',
378
+        '_freeModeMomentumBounceRatio',
379
+        '_freeModeMomentumVelocityRatio',
380
+        '_freeModeSticky',
381
+        '_freeModeMinimumVelocity',
382
+        '_autoHeight',
383
+        'setWrapperSize',
384
+        'virtualTranslate',
385
+        '_effect',
386
+        'breakpoints',
387
+        '_spaceBetween',
388
+        '_slidesPerView',
389
+        '_slidesPerColumn',
390
+        '_slidesPerColumnFill',
391
+        '_slidesPerGroup',
392
+        '_slidesPerGroupSkip',
393
+        '_centeredSlides',
394
+        '_centeredSlidesBounds',
395
+        '_slidesOffsetBefore',
396
+        '_slidesOffsetAfter',
397
+        'normalizeSlideIndex',
398
+        '_centerInsufficientSlides',
399
+        '_watchOverflow',
400
+        'roundLengths',
401
+        'touchRatio',
402
+        'touchAngle',
403
+        'simulateTouch',
404
+        '_shortSwipes',
405
+        '_longSwipes',
406
+        'longSwipesRatio',
407
+        'longSwipesMs',
408
+        '_followFinger',
409
+        'allowTouchMove',
410
+        '_threshold',
411
+        'touchMoveStopPropagation',
412
+        'touchStartPreventDefault',
413
+        'touchStartForcePreventDefault',
414
+        'touchReleaseOnEdges',
415
+        'uniqueNavElements',
416
+        '_resistance',
417
+        '_resistanceRatio',
418
+        '_watchSlidesProgress',
419
+        '_watchSlidesVisibility',
420
+        '_grabCursor',
421
+        'preventClicks',
422
+        'preventClicksPropagation',
423
+        '_slideToClickedSlide',
424
+        '_preloadImages',
425
+        'updateOnImagesReady',
426
+        '_loop',
427
+        '_loopAdditionalSlides',
428
+        '_loopedSlides',
429
+        '_loopFillGroupWithBlank',
430
+        'loopPreventsSlide',
431
+        '_allowSlidePrev',
432
+        '_allowSlideNext',
433
+        '_swipeHandler',
434
+        '_noSwiping',
435
+        'noSwipingClass',
436
+        'noSwipingSelector',
437
+        'passiveListeners',
438
+        'containerModifierClass',
439
+        'slideClass',
440
+        'slideBlankClass',
441
+        'slideActiveClass',
442
+        'slideDuplicateActiveClass',
443
+        'slideVisibleClass',
444
+        'slideDuplicateClass',
445
+        'slideNextClass',
446
+        'slideDuplicateNextClass',
447
+        'slidePrevClass',
448
+        'slideDuplicatePrevClass',
449
+        'wrapperClass',
450
+        'runCallbacksOnInit',
451
+        'observer',
452
+        'observeParents',
453
+        'observeSlideChildren',
454
+        // modules
455
+        'a11y',
456
+        'autoplay',
457
+        '_controller',
458
+        'coverflowEffect',
459
+        'cubeEffect',
460
+        'fadeEffect',
461
+        'flipEffect',
462
+        'hashNavigation',
463
+        'history',
464
+        'keyboard',
465
+        'lazy',
466
+        'mousewheel',
467
+        '_navigation',
468
+        '_pagination',
469
+        'parallax',
470
+        '_scrollbar',
471
+        '_thumbs',
472
+        'virtual',
473
+        'zoom',
474
+    ];
475
+
476
+    // eslint-disable-next-line
477
+    var ɵ0 = function (key) { return key.replace(/_/, ''); };
478
+    var allowedParams = paramsList.map(ɵ0);
479
+    function getParams(obj) {
480
+        if (obj === void 0) { obj = {}; }
481
+        var params = {
482
+            on: {},
483
+        };
484
+        var passedParams = {};
485
+        extend(params, Swiper__default['default'].defaults);
486
+        extend(params, Swiper__default['default'].extendedDefaults);
487
+        params._emitClasses = true;
488
+        var rest = {};
489
+        Object.keys(obj).forEach(function (key) {
490
+            var _key = key.replace(/^_/, '');
491
+            if (typeof obj[_key] === 'undefined')
492
+                return;
493
+            if (allowedParams.indexOf(_key) >= 0) {
494
+                if (isObject(obj[_key])) {
495
+                    params[_key] = {};
496
+                    passedParams[_key] = {};
497
+                    extend(params[_key], obj[_key]);
498
+                    extend(passedParams[_key], obj[_key]);
499
+                }
500
+                else {
501
+                    params[_key] = obj[_key];
502
+                    passedParams[_key] = obj[_key];
503
+                }
504
+            }
505
+            else {
506
+                rest[_key] = obj[_key];
507
+            }
508
+        });
509
+        return { params: params, passedParams: passedParams, rest: rest };
510
+    }
511
+
512
+    var SwiperSlideDirective = /** @class */ (function () {
513
+        function SwiperSlideDirective(template) {
514
+            this.template = template;
515
+            this.class = '';
516
+            this.slideData = {
517
+                isActive: false,
518
+                isPrev: false,
519
+                isNext: false,
520
+                isVisible: false,
521
+                isDuplicate: false,
522
+            };
523
+        }
524
+        Object.defineProperty(SwiperSlideDirective.prototype, "zoom", {
525
+            get: function () {
526
+                return this._zoom;
527
+            },
528
+            set: function (val) {
529
+                this._zoom = coerceBooleanProperty(val);
530
+            },
531
+            enumerable: false,
532
+            configurable: true
533
+        });
534
+        Object.defineProperty(SwiperSlideDirective.prototype, "classNames", {
535
+            get: function () {
536
+                return this._classNames;
537
+            },
538
+            set: function (val) {
539
+                if (this._classNames === val) {
540
+                    return;
541
+                }
542
+                this._classNames = val;
543
+                this.slideData = {
544
+                    isActive: this._hasClass(['swiper-slide-active', 'swiper-slide-duplicate-active']),
545
+                    isVisible: this._hasClass(['swiper-slide-visible']),
546
+                    isDuplicate: this._hasClass(['swiper-slide-duplicate']),
547
+                    isPrev: this._hasClass(['swiper-slide-prev', 'swiper-slide-duplicate-prev']),
548
+                    isNext: this._hasClass(['swiper-slide-next', 'swiper-slide-duplicate-next']),
549
+                };
550
+            },
551
+            enumerable: false,
552
+            configurable: true
553
+        });
554
+        SwiperSlideDirective.prototype._hasClass = function (classNames) {
555
+            var _this = this;
556
+            return classNames.some(function (className) { return _this._classNames.indexOf(className) >= 0; });
557
+        };
558
+        return SwiperSlideDirective;
559
+    }());
560
+    SwiperSlideDirective.decorators = [
561
+        { type: core.Directive, args: [{
562
+                    selector: 'ng-template[swiperSlide]',
563
+                },] }
564
+    ];
565
+    SwiperSlideDirective.ctorParameters = function () { return [
566
+        { type: core.TemplateRef }
567
+    ]; };
568
+    SwiperSlideDirective.propDecorators = {
569
+        virtualIndex: [{ type: core.Input }],
570
+        class: [{ type: core.Input }],
571
+        zoom: [{ type: core.Input }]
572
+    };
573
+
574
+    var SwiperComponent = /** @class */ (function () {
575
+        function SwiperComponent(_ngZone, elementRef, _changeDetectorRef, _platformId) {
576
+            var _this = this;
577
+            this._ngZone = _ngZone;
578
+            this.elementRef = elementRef;
579
+            this._changeDetectorRef = _changeDetectorRef;
580
+            this._platformId = _platformId;
581
+            this.slideClass = 'swiper-slide';
582
+            this.wrapperClass = 'swiper-wrapper';
583
+            this.showNavigation = true;
584
+            this.showPagination = true;
585
+            this.showScrollbar = true;
586
+            // prettier-ignore
587
+            this.s__beforeBreakpoint = new core.EventEmitter();
588
+            // prettier-ignore
589
+            this.s__containerClasses = new core.EventEmitter();
590
+            // prettier-ignore
591
+            this.s__slideClass = new core.EventEmitter();
592
+            // prettier-ignore
593
+            this.s__swiper = new core.EventEmitter();
594
+            // prettier-ignore
595
+            this.s_activeIndexChange = new core.EventEmitter();
596
+            // prettier-ignore
597
+            this.s_afterInit = new core.EventEmitter();
598
+            // prettier-ignore
599
+            this.s_autoplay = new core.EventEmitter();
600
+            // prettier-ignore
601
+            this.s_autoplayStart = new core.EventEmitter();
602
+            // prettier-ignore
603
+            this.s_autoplayStop = new core.EventEmitter();
604
+            // prettier-ignore
605
+            this.s_beforeDestroy = new core.EventEmitter();
606
+            // prettier-ignore
607
+            this.s_beforeInit = new core.EventEmitter();
608
+            // prettier-ignore
609
+            this.s_beforeLoopFix = new core.EventEmitter();
610
+            // prettier-ignore
611
+            this.s_beforeResize = new core.EventEmitter();
612
+            // prettier-ignore
613
+            this.s_beforeSlideChangeStart = new core.EventEmitter();
614
+            // prettier-ignore
615
+            this.s_beforeTransitionStart = new core.EventEmitter();
616
+            // prettier-ignore
617
+            this.s_breakpoint = new core.EventEmitter();
618
+            // prettier-ignore
619
+            this.s_changeDirection = new core.EventEmitter();
620
+            // prettier-ignore
621
+            this.s_click = new core.EventEmitter();
622
+            // prettier-ignore
623
+            this.s_doubleTap = new core.EventEmitter();
624
+            // prettier-ignore
625
+            this.s_doubleClick = new core.EventEmitter();
626
+            // prettier-ignore
627
+            this.s_destroy = new core.EventEmitter();
628
+            // prettier-ignore
629
+            this.s_fromEdge = new core.EventEmitter();
630
+            // prettier-ignore
631
+            this.s_hashChange = new core.EventEmitter();
632
+            // prettier-ignore
633
+            this.s_hashSet = new core.EventEmitter();
634
+            // prettier-ignore
635
+            this.s_imagesReady = new core.EventEmitter();
636
+            // prettier-ignore
637
+            this.s_init = new core.EventEmitter();
638
+            // prettier-ignore
639
+            this.s_keyPress = new core.EventEmitter();
640
+            // prettier-ignore
641
+            this.s_lazyImageLoad = new core.EventEmitter();
642
+            // prettier-ignore
643
+            this.s_lazyImageReady = new core.EventEmitter();
644
+            // prettier-ignore
645
+            this.s_loopFix = new core.EventEmitter();
646
+            // prettier-ignore
647
+            this.s_momentumBounce = new core.EventEmitter();
648
+            // prettier-ignore
649
+            this.s_navigationHide = new core.EventEmitter();
650
+            // prettier-ignore
651
+            this.s_navigationShow = new core.EventEmitter();
652
+            // prettier-ignore
653
+            this.s_observerUpdate = new core.EventEmitter();
654
+            // prettier-ignore
655
+            this.s_orientationchange = new core.EventEmitter();
656
+            // prettier-ignore
657
+            this.s_paginationHide = new core.EventEmitter();
658
+            // prettier-ignore
659
+            this.s_paginationRender = new core.EventEmitter();
660
+            // prettier-ignore
661
+            this.s_paginationShow = new core.EventEmitter();
662
+            // prettier-ignore
663
+            this.s_paginationUpdate = new core.EventEmitter();
664
+            // prettier-ignore
665
+            this.s_progress = new core.EventEmitter();
666
+            // prettier-ignore
667
+            this.s_reachBeginning = new core.EventEmitter();
668
+            // prettier-ignore
669
+            this.s_reachEnd = new core.EventEmitter();
670
+            // prettier-ignore
671
+            this.s_realIndexChange = new core.EventEmitter();
672
+            // prettier-ignore
673
+            this.s_resize = new core.EventEmitter();
674
+            // prettier-ignore
675
+            this.s_scroll = new core.EventEmitter();
676
+            // prettier-ignore
677
+            this.s_scrollbarDragEnd = new core.EventEmitter();
678
+            // prettier-ignore
679
+            this.s_scrollbarDragMove = new core.EventEmitter();
680
+            // prettier-ignore
681
+            this.s_scrollbarDragStart = new core.EventEmitter();
682
+            // prettier-ignore
683
+            this.s_setTransition = new core.EventEmitter();
684
+            // prettier-ignore
685
+            this.s_setTranslate = new core.EventEmitter();
686
+            // prettier-ignore
687
+            this.s_slideChange = new core.EventEmitter();
688
+            // prettier-ignore
689
+            this.s_slideChangeTransitionEnd = new core.EventEmitter();
690
+            // prettier-ignore
691
+            this.s_slideChangeTransitionStart = new core.EventEmitter();
692
+            // prettier-ignore
693
+            this.s_slideNextTransitionEnd = new core.EventEmitter();
694
+            // prettier-ignore
695
+            this.s_slideNextTransitionStart = new core.EventEmitter();
696
+            // prettier-ignore
697
+            this.s_slidePrevTransitionEnd = new core.EventEmitter();
698
+            // prettier-ignore
699
+            this.s_slidePrevTransitionStart = new core.EventEmitter();
700
+            // prettier-ignore
701
+            this.s_slideResetTransitionStart = new core.EventEmitter();
702
+            // prettier-ignore
703
+            this.s_slideResetTransitionEnd = new core.EventEmitter();
704
+            // prettier-ignore
705
+            this.s_sliderMove = new core.EventEmitter();
706
+            // prettier-ignore
707
+            this.s_sliderFirstMove = new core.EventEmitter();
708
+            // prettier-ignore
709
+            this.s_slidesLengthChange = new core.EventEmitter();
710
+            // prettier-ignore
711
+            this.s_slidesGridLengthChange = new core.EventEmitter();
712
+            // prettier-ignore
713
+            this.s_snapGridLengthChange = new core.EventEmitter();
714
+            // prettier-ignore
715
+            this.s_snapIndexChange = new core.EventEmitter();
716
+            // prettier-ignore
717
+            this.s_tap = new core.EventEmitter();
718
+            // prettier-ignore
719
+            this.s_toEdge = new core.EventEmitter();
720
+            // prettier-ignore
721
+            this.s_touchEnd = new core.EventEmitter();
722
+            // prettier-ignore
723
+            this.s_touchMove = new core.EventEmitter();
724
+            // prettier-ignore
725
+            this.s_touchMoveOpposite = new core.EventEmitter();
726
+            // prettier-ignore
727
+            this.s_touchStart = new core.EventEmitter();
728
+            // prettier-ignore
729
+            this.s_transitionEnd = new core.EventEmitter();
730
+            // prettier-ignore
731
+            this.s_transitionStart = new core.EventEmitter();
732
+            // prettier-ignore
733
+            this.s_update = new core.EventEmitter();
734
+            // prettier-ignore
735
+            this.s_zoomChange = new core.EventEmitter();
736
+            // prettier-ignore
737
+            this.s_swiper = new core.EventEmitter();
738
+            this.indexChange = new core.EventEmitter();
739
+            this._activeSlides = new rxjs.Subject();
740
+            this.containerClasses = 'swiper-container';
741
+            this.slidesChanges = function (val) {
742
+                _this.slides = val.map(function (slide, index) {
743
+                    slide.slideIndex = index;
744
+                    slide.classNames = _this.slideClass;
745
+                    return slide;
746
+                });
747
+                if (_this.loop && !_this.loopedSlides) {
748
+                    _this.calcLoopedSlides();
749
+                }
750
+                if (!_this.virtual) {
751
+                    _this.prependSlides = rxjs.of(_this.slides.slice(_this.slides.length - _this.loopedSlides));
752
+                    _this.appendSlides = rxjs.of(_this.slides.slice(0, _this.loopedSlides));
753
+                }
754
+                _this._changeDetectorRef.detectChanges();
755
+            };
756
+            this.style = null;
757
+            this.updateVirtualSlides = function (virtualData) {
758
+                var _e;
759
+                // TODO: type virtualData
760
+                if (!_this.swiperRef ||
761
+                    (_this.currentVirtualData &&
762
+                        _this.currentVirtualData.from === virtualData.from &&
763
+                        _this.currentVirtualData.to === virtualData.to &&
764
+                        _this.currentVirtualData.offset === virtualData.offset)) {
765
+                    return;
766
+                }
767
+                _this.style = _this.swiperRef.isHorizontal()
768
+                    ? (_e = {},
769
+                        _e[_this.swiperRef.rtlTranslate ? 'right' : 'left'] = virtualData.offset + "px",
770
+                        _e) : {
771
+                    top: virtualData.offset + "px",
772
+                };
773
+                _this.currentVirtualData = virtualData;
774
+                _this._activeSlides.next(virtualData.slides);
775
+                _this._changeDetectorRef.detectChanges();
776
+                _this._ngZone.runOutsideAngular(function () {
777
+                    _this.swiperRef.updateSlides();
778
+                    _this.swiperRef.updateProgress();
779
+                    _this.swiperRef.updateSlidesClasses();
780
+                    if (_this.swiperRef.lazy && _this.swiperRef.params.lazy['enabled']) {
781
+                        _this.swiperRef.lazy.load();
782
+                    }
783
+                    _this.swiperRef.virtual.update(true);
784
+                });
785
+                return;
786
+            };
787
+        }
788
+        Object.defineProperty(SwiperComponent.prototype, "navigation", {
789
+            get: function () {
790
+                return this._navigation;
791
+            },
792
+            set: function (val) {
793
+                var _a, _b, _c, _d;
794
+                var currentNext = typeof this._navigation !== 'boolean' ? (_a = this._navigation) === null || _a === void 0 ? void 0 : _a.nextEl : null;
795
+                var currentPrev = typeof this._navigation !== 'boolean' ? (_b = this._navigation) === null || _b === void 0 ? void 0 : _b.prevEl : null;
796
+                this._navigation = setProperty(val, {
797
+                    nextEl: currentNext || null,
798
+                    prevEl: currentPrev || null,
799
+                });
800
+                if (typeof this._navigation !== 'boolean' &&
801
+                    (typeof ((_c = this._navigation) === null || _c === void 0 ? void 0 : _c.nextEl) === 'string' || typeof ((_d = this._navigation) === null || _d === void 0 ? void 0 : _d.prevEl) === 'string')) {
802
+                    this.showNavigation = false;
803
+                }
804
+            },
805
+            enumerable: false,
806
+            configurable: true
807
+        });
808
+        Object.defineProperty(SwiperComponent.prototype, "pagination", {
809
+            get: function () {
810
+                return this._pagination;
811
+            },
812
+            set: function (val) {
813
+                var _a, _b;
814
+                var current = typeof this._pagination !== 'boolean' ? (_a = this._pagination) === null || _a === void 0 ? void 0 : _a.el : null;
815
+                this._pagination = setProperty(val, {
816
+                    el: current || null,
817
+                });
818
+                if (typeof this._pagination !== 'boolean' && typeof ((_b = this._pagination) === null || _b === void 0 ? void 0 : _b.el) === 'string') {
819
+                    this.showPagination = false;
820
+                }
821
+            },
822
+            enumerable: false,
823
+            configurable: true
824
+        });
825
+        Object.defineProperty(SwiperComponent.prototype, "scrollbar", {
826
+            get: function () {
827
+                return this._scrollbar;
828
+            },
829
+            set: function (val) {
830
+                var _a, _b;
831
+                var current = typeof this._scrollbar !== 'boolean' ? (_a = this._scrollbar) === null || _a === void 0 ? void 0 : _a.el : null;
832
+                this._scrollbar = setProperty(val, {
833
+                    el: current || null,
834
+                });
835
+                if (typeof this._scrollbar !== 'boolean' && typeof ((_b = this._scrollbar) === null || _b === void 0 ? void 0 : _b.el) === 'string') {
836
+                    this.showScrollbar = false;
837
+                }
838
+            },
839
+            enumerable: false,
840
+            configurable: true
841
+        });
842
+        Object.defineProperty(SwiperComponent.prototype, "virtual", {
843
+            get: function () {
844
+                return this._virtual;
845
+            },
846
+            set: function (val) {
847
+                this._virtual = setProperty(val);
848
+            },
849
+            enumerable: false,
850
+            configurable: true
851
+        });
852
+        Object.defineProperty(SwiperComponent.prototype, "index", {
853
+            set: function (index) {
854
+                this.setIndex(index);
855
+            },
856
+            enumerable: false,
857
+            configurable: true
858
+        });
859
+        Object.defineProperty(SwiperComponent.prototype, "config", {
860
+            set: function (val) {
861
+                this.updateSwiper(val);
862
+                var params = getParams(val).params;
863
+                Object.assign(this, params);
864
+            },
865
+            enumerable: false,
866
+            configurable: true
867
+        });
868
+        Object.defineProperty(SwiperComponent.prototype, "prevElRef", {
869
+            set: function (el) {
870
+                this._setElement(el, this.navigation, 'navigation', 'prevEl');
871
+            },
872
+            enumerable: false,
873
+            configurable: true
874
+        });
875
+        Object.defineProperty(SwiperComponent.prototype, "nextElRef", {
876
+            set: function (el) {
877
+                this._setElement(el, this.navigation, 'navigation', 'nextEl');
878
+            },
879
+            enumerable: false,
880
+            configurable: true
881
+        });
882
+        Object.defineProperty(SwiperComponent.prototype, "scrollbarElRef", {
883
+            set: function (el) {
884
+                this._setElement(el, this.scrollbar, 'scrollbar');
885
+            },
886
+            enumerable: false,
887
+            configurable: true
888
+        });
889
+        Object.defineProperty(SwiperComponent.prototype, "paginationElRef", {
890
+            set: function (el) {
891
+                this._setElement(el, this.pagination, 'pagination');
892
+            },
893
+            enumerable: false,
894
+            configurable: true
895
+        });
896
+        Object.defineProperty(SwiperComponent.prototype, "activeSlides", {
897
+            get: function () {
898
+                if (this.virtual) {
899
+                    return this._activeSlides;
900
+                }
901
+                return rxjs.of(this.slides);
902
+            },
903
+            enumerable: false,
904
+            configurable: true
905
+        });
906
+        Object.defineProperty(SwiperComponent.prototype, "zoomContainerClass", {
907
+            get: function () {
908
+                return typeof this.zoom !== 'boolean' ? this.zoom.containerClass : 'swiper-zoom-container';
909
+            },
910
+            enumerable: false,
911
+            configurable: true
912
+        });
913
+        SwiperComponent.prototype._setElement = function (el, ref, update, key) {
914
+            if (key === void 0) { key = 'el'; }
915
+            if (!el || !ref) {
916
+                return;
917
+            }
918
+            if (ref && el.nativeElement) {
919
+                if (ref[key] === el.nativeElement) {
920
+                    return;
921
+                }
922
+                ref[key] = el.nativeElement;
923
+            }
924
+            var updateObj = {};
925
+            updateObj[update] = true;
926
+            this.updateInitSwiper(updateObj);
927
+        };
928
+        SwiperComponent.prototype.ngOnInit = function () {
929
+            var params = getParams(this).params;
930
+            Object.assign(this, params);
931
+        };
932
+        SwiperComponent.prototype.ngAfterViewInit = function () {
933
+            var _this = this;
934
+            this.childrenSlidesInit();
935
+            this.initSwiper();
936
+            this._changeDetectorRef.detectChanges();
937
+            setTimeout(function () {
938
+                _this.s_swiper.emit(_this.swiperRef);
939
+            });
940
+        };
941
+        SwiperComponent.prototype.childrenSlidesInit = function () {
942
+            this.slidesChanges(this.slidesEl);
943
+            this.slidesEl.changes.subscribe(this.slidesChanges);
944
+        };
945
+        Object.defineProperty(SwiperComponent.prototype, "isSwiperActive", {
946
+            get: function () {
947
+                return this.swiperRef && !this.swiperRef.destroyed;
948
+            },
949
+            enumerable: false,
950
+            configurable: true
951
+        });
952
+        SwiperComponent.prototype.initSwiper = function () {
953
+            var _this = this;
954
+            var _e = getParams(this), swiperParams = _e.params, passedParams = _e.passedParams;
955
+            Object.assign(this, swiperParams);
956
+            this._ngZone.runOutsideAngular(function () {
957
+                swiperParams.init = false;
958
+                if (!swiperParams.virtual) {
959
+                    swiperParams.observer = true;
960
+                }
961
+                swiperParams.onAny = function (event) {
962
+                    var args = [];
963
+                    for (var _i = 1; _i < arguments.length; _i++) {
964
+                        args[_i - 1] = arguments[_i];
965
+                    }
966
+                    var emitter = _this["s_" + event];
967
+                    if (emitter) {
968
+                        emitter.emit.apply(emitter, __spread(args));
969
+                    }
970
+                };
971
+                Object.assign(swiperParams.on, {
972
+                    _containerClasses: function (swiper, classes) {
973
+                        this.containerClasses = classes;
974
+                    },
975
+                    _slideClasses: function (_, updated) {
976
+                        updated.forEach(function (_e, index) {
977
+                            var slideEl = _e.slideEl, classNames = _e.classNames;
978
+                            var slideIndex = parseInt(slideEl.getAttribute('data-swiper-slide-index')) || index;
979
+                            if (_this.virtual) {
980
+                                var virtualSlide = _this.slides.find(function (item) {
981
+                                    return item.virtualIndex && item.virtualIndex === slideIndex;
982
+                                });
983
+                                if (virtualSlide) {
984
+                                    virtualSlide.classNames = classNames;
985
+                                    return;
986
+                                }
987
+                            }
988
+                            if (_this.slides[slideIndex]) {
989
+                                _this.slides[slideIndex].classNames = classNames;
990
+                            }
991
+                        });
992
+                        _this._changeDetectorRef.detectChanges();
993
+                    },
994
+                });
995
+                var swiperRef = new Swiper__default['default'](swiperParams);
996
+                swiperRef.loopCreate = function () { };
997
+                swiperRef.loopDestroy = function () { };
998
+                if (swiperParams.loop) {
999
+                    swiperRef.loopedSlides = _this.loopedSlides;
1000
+                }
1001
+                if (swiperRef.virtual && swiperRef.params.virtual.enabled) {
1002
+                    swiperRef.virtual.slides = _this.slides;
1003
+                    var extendWith = {
1004
+                        cache: false,
1005
+                        renderExternal: _this.updateVirtualSlides,
1006
+                        renderExternalUpdate: false,
1007
+                    };
1008
+                    extend(swiperRef.params.virtual, extendWith);
1009
+                    extend(swiperRef.originalParams.virtual, extendWith);
1010
+                }
1011
+                if (common.isPlatformBrowser(_this._platformId)) {
1012
+                    _this.swiperRef = swiperRef.init(_this.elementRef.nativeElement);
1013
+                    if (_this.swiperRef.virtual && _this.swiperRef.params.virtual.enabled) {
1014
+                        _this.swiperRef.virtual.update(true);
1015
+                    }
1016
+                    _this._changeDetectorRef.detectChanges();
1017
+                    swiperRef.on('slideChange', function () {
1018
+                        _this.indexChange.emit(_this.swiperRef.realIndex);
1019
+                    });
1020
+                }
1021
+            });
1022
+        };
1023
+        SwiperComponent.prototype.ngOnChanges = function (changedParams) {
1024
+            this.updateSwiper(changedParams);
1025
+            this._changeDetectorRef.detectChanges();
1026
+        };
1027
+        SwiperComponent.prototype.updateInitSwiper = function (changedParams) {
1028
+            var _this = this;
1029
+            if (!(changedParams && this.swiperRef && !this.swiperRef.destroyed)) {
1030
+                return;
1031
+            }
1032
+            this._ngZone.runOutsideAngular(function () {
1033
+                var _e = _this.swiperRef, currentParams = _e.params, pagination = _e.pagination, navigation = _e.navigation, scrollbar = _e.scrollbar, virtual = _e.virtual, thumbs = _e.thumbs;
1034
+                if (changedParams.pagination) {
1035
+                    if (_this.pagination &&
1036
+                        typeof _this.pagination !== 'boolean' &&
1037
+                        _this.pagination.el &&
1038
+                        pagination &&
1039
+                        !pagination.el) {
1040
+                        _this.updateParameter('pagination', _this.pagination);
1041
+                        pagination.init();
1042
+                        pagination.render();
1043
+                        pagination.update();
1044
+                    }
1045
+                    else {
1046
+                        pagination.destroy();
1047
+                        pagination.el = null;
1048
+                    }
1049
+                }
1050
+                if (changedParams.scrollbar) {
1051
+                    if (_this.scrollbar &&
1052
+                        typeof _this.scrollbar !== 'boolean' &&
1053
+                        _this.scrollbar.el &&
1054
+                        scrollbar &&
1055
+                        !scrollbar.el) {
1056
+                        _this.updateParameter('scrollbar', _this.scrollbar);
1057
+                        scrollbar.init();
1058
+                        scrollbar.updateSize();
1059
+                        scrollbar.setTranslate();
1060
+                    }
1061
+                    else {
1062
+                        scrollbar.destroy();
1063
+                        scrollbar.el = null;
1064
+                    }
1065
+                }
1066
+                if (changedParams.navigation) {
1067
+                    if (_this.navigation &&
1068
+                        typeof _this.navigation !== 'boolean' &&
1069
+                        _this.navigation.prevEl &&
1070
+                        _this.navigation.nextEl &&
1071
+                        navigation &&
1072
+                        !navigation.prevEl &&
1073
+                        !navigation.nextEl) {
1074
+                        _this.updateParameter('navigation', _this.navigation);
1075
+                        navigation.init();
1076
+                        navigation.update();
1077
+                    }
1078
+                    else if (navigation.prevEl && navigation.nextEl) {
1079
+                        navigation.destroy();
1080
+                        navigation.nextEl = null;
1081
+                        navigation.prevEl = null;
1082
+                    }
1083
+                }
1084
+                if (changedParams.thumbs && _this.thumbs && _this.thumbs.swiper) {
1085
+                    _this.updateParameter('thumbs', _this.thumbs);
1086
+                    var initialized = thumbs.init();
1087
+                    if (initialized)
1088
+                        thumbs.update(true);
1089
+                }
1090
+                if (changedParams.controller && _this.controller && _this.controller.control) {
1091
+                    _this.swiperRef.controller.control = _this.controller.control;
1092
+                }
1093
+                _this.swiperRef.update();
1094
+            });
1095
+        };
1096
+        SwiperComponent.prototype.updateSwiper = function (changedParams) {
1097
+            var _this = this;
1098
+            this._ngZone.runOutsideAngular(function () {
1099
+                var _a, _b;
1100
+                if (changedParams.config) {
1101
+                    return;
1102
+                }
1103
+                if (!(changedParams && _this.swiperRef && !_this.swiperRef.destroyed)) {
1104
+                    return;
1105
+                }
1106
+                for (var key in changedParams) {
1107
+                    if (ignoreNgOnChanges.indexOf(key) >= 0) {
1108
+                        continue;
1109
+                    }
1110
+                    var newValue = (_b = (_a = changedParams[key]) === null || _a === void 0 ? void 0 : _a.currentValue) !== null && _b !== void 0 ? _b : changedParams[key];
1111
+                    _this.updateParameter(key, newValue);
1112
+                }
1113
+                if (changedParams.allowSlideNext) {
1114
+                    _this.swiperRef.allowSlideNext = _this.allowSlideNext;
1115
+                }
1116
+                if (changedParams.allowSlidePrev) {
1117
+                    _this.swiperRef.allowSlidePrev = _this.allowSlidePrev;
1118
+                }
1119
+                if (changedParams.direction) {
1120
+                    _this.swiperRef.changeDirection(_this.direction, false);
1121
+                }
1122
+                if (changedParams.breakpoints) {
1123
+                    if (_this.loop && !_this.loopedSlides) {
1124
+                        _this.calcLoopedSlides();
1125
+                    }
1126
+                    _this.swiperRef.currentBreakpoint = null;
1127
+                    _this.swiperRef.setBreakpoint();
1128
+                }
1129
+                if (changedParams.thumbs || changedParams.controller) {
1130
+                    _this.updateInitSwiper(changedParams);
1131
+                }
1132
+                _this.swiperRef.update();
1133
+            });
1134
+        };
1135
+        SwiperComponent.prototype.calcLoopedSlides = function () {
1136
+            if (!this.loop) {
1137
+                return;
1138
+            }
1139
+            var slidesPerViewParams = this.slidesPerView;
1140
+            if (this.breakpoints) {
1141
+                var breakpoint = Swiper__default['default'].prototype.getBreakpoint(this.breakpoints);
1142
+                var breakpointOnlyParams = breakpoint in this.breakpoints ? this.breakpoints[breakpoint] : undefined;
1143
+                if (breakpointOnlyParams && breakpointOnlyParams.slidesPerView) {
1144
+                    slidesPerViewParams = breakpointOnlyParams.slidesPerView;
1145
+                }
1146
+            }
1147
+            if (slidesPerViewParams === 'auto') {
1148
+                this.loopedSlides = this.slides.length;
1149
+                return this.slides.length;
1150
+            }
1151
+            var loopedSlides = this.loopedSlides || slidesPerViewParams;
1152
+            loopedSlides += this.loopAdditionalSlides;
1153
+            if (loopedSlides > this.slides.length) {
1154
+                loopedSlides = this.slides.length;
1155
+            }
1156
+            this.loopedSlides = loopedSlides;
1157
+            return loopedSlides;
1158
+        };
1159
+        SwiperComponent.prototype.updateParameter = function (key, value) {
1160
+            if (!(this.swiperRef && !this.swiperRef.destroyed)) {
1161
+                return;
1162
+            }
1163
+            var _key = key.replace(/^_/, '');
1164
+            if (Object.keys(this.swiperRef.modules).indexOf(_key) >= 0) {
1165
+                extend(value, this.swiperRef.modules[_key].params[_key]);
1166
+            }
1167
+            if (isObject(this.swiperRef.params[_key]) && isObject(value)) {
1168
+                extend(this.swiperRef.params[_key], value);
1169
+            }
1170
+            else {
1171
+                this.swiperRef.params[_key] = value;
1172
+            }
1173
+        };
1174
+        SwiperComponent.prototype.setIndex = function (index, speed, silent) {
1175
+            var _this = this;
1176
+            if (!this.isSwiperActive) {
1177
+                this.initialSlide = index;
1178
+                return;
1179
+            }
1180
+            if (index === this.swiperRef.activeIndex) {
1181
+                return;
1182
+            }
1183
+            this._ngZone.runOutsideAngular(function () {
1184
+                if (_this.loop) {
1185
+                    _this.swiperRef.slideToLoop(index, speed, !silent);
1186
+                }
1187
+                else {
1188
+                    _this.swiperRef.slideTo(index, speed, !silent);
1189
+                }
1190
+            });
1191
+        };
1192
+        SwiperComponent.prototype.ngOnDestroy = function () {
1193
+            var _this = this;
1194
+            this._ngZone.runOutsideAngular(function () {
1195
+                var _a;
1196
+                (_a = _this.swiperRef) === null || _a === void 0 ? void 0 : _a.destroy();
1197
+            });
1198
+        };
1199
+        return SwiperComponent;
1200
+    }());
1201
+    SwiperComponent.decorators = [
1202
+        { type: core.Component, args: [{
1203
+                    selector: 'swiper, [swiper]',
1204
+                    template: "<ng-content select=\"[slot=container-start]\"></ng-content>\n<ng-container *ngIf=\"navigation && showNavigation\">\n  <div class=\"swiper-button-prev\" #prevElRef></div>\n  <div class=\"swiper-button-next\" #nextElRef></div>\n</ng-container>\n<div *ngIf=\"scrollbar && showScrollbar\" class=\"swiper-scrollbar\" #scrollbarElRef></div>\n<div *ngIf=\"pagination && showPagination\" class=\"swiper-pagination\" #paginationElRef></div>\n<div [ngClass]=\"wrapperClass\">\n  <ng-content select=\"[slot=wrapper-start]\"></ng-content>\n  <ng-template\n    *ngTemplateOutlet=\"\n      slidesTemplate;\n      context: {\n        loopSlides: prependSlides,\n        key: 'prepend'\n      }\n    \"\n  ></ng-template>\n  <ng-template\n    *ngTemplateOutlet=\"\n      slidesTemplate;\n      context: {\n        loopSlides: activeSlides,\n        key: ''\n      }\n    \"\n  ></ng-template>\n  <ng-template\n    *ngTemplateOutlet=\"\n      slidesTemplate;\n      context: {\n        loopSlides: appendSlides,\n        key: 'append'\n      }\n    \"\n  ></ng-template>\n  <ng-content select=\"[slot=wrapper-end]\"></ng-content>\n</div>\n<ng-content select=\"[slot=container-end]\"></ng-content>\n\n<ng-template #slidesTemplate let-loopSlides=\"loopSlides\" let-slideKey=\"key\">\n  <div\n    *ngFor=\"let slide of loopSlides | async\"\n    [ngClass]=\"\n      (slide.class ? slide.class + ' ' : '') +\n      slideClass +\n      (slideKey !== '' ? ' ' + slideDuplicateClass : '')\n    \"\n    [attr.data-swiper-slide-index]=\"slide.virtualIndex ? slide.virtualIndex : slide.slideIndex\"\n    [style]=\"style\"\n    [ngSwitch]=\"slide.zoom\"\n  >\n    <div *ngSwitchCase=\"true\" [ngClass]=\"zoomContainerClass\">\n      <ng-template\n        [ngTemplateOutlet]=\"slide.template\"\n        [ngTemplateOutletContext]=\"{\n          $implicit: slide.slideData\n        }\"\n      ></ng-template>\n    </div>\n    <ng-container *ngSwitchDefault>\n      <ng-template\n        [ngTemplateOutlet]=\"slide.template\"\n        [ngTemplateOutletContext]=\"{\n          $implicit: slide.slideData\n        }\"\n      ></ng-template>\n    </ng-container>\n  </div>\n</ng-template>\n",
1205
+                    changeDetection: core.ChangeDetectionStrategy.OnPush,
1206
+                    encapsulation: core.ViewEncapsulation.None,
1207
+                    styles: ["\n      swiper {\n        display: block;\n      }\n    "]
1208
+                },] }
1209
+    ];
1210
+    SwiperComponent.ctorParameters = function () { return [
1211
+        { type: core.NgZone },
1212
+        { type: core.ElementRef },
1213
+        { type: core.ChangeDetectorRef },
1214
+        { type: undefined, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] }
1215
+    ]; };
1216
+    SwiperComponent.propDecorators = {
1217
+        direction: [{ type: core.Input }],
1218
+        touchEventsTarget: [{ type: core.Input }],
1219
+        initialSlide: [{ type: core.Input }],
1220
+        speed: [{ type: core.Input }],
1221
+        cssMode: [{ type: core.Input }],
1222
+        updateOnWindowResize: [{ type: core.Input }],
1223
+        resizeObserver: [{ type: core.Input }],
1224
+        nested: [{ type: core.Input }],
1225
+        width: [{ type: core.Input }],
1226
+        height: [{ type: core.Input }],
1227
+        preventInteractionOnTransition: [{ type: core.Input }],
1228
+        userAgent: [{ type: core.Input }],
1229
+        url: [{ type: core.Input }],
1230
+        edgeSwipeDetection: [{ type: core.Input }],
1231
+        edgeSwipeThreshold: [{ type: core.Input }],
1232
+        freeMode: [{ type: core.Input }],
1233
+        freeModeMomentum: [{ type: core.Input }],
1234
+        freeModeMomentumRatio: [{ type: core.Input }],
1235
+        freeModeMomentumBounce: [{ type: core.Input }],
1236
+        freeModeMomentumBounceRatio: [{ type: core.Input }],
1237
+        freeModeMomentumVelocityRatio: [{ type: core.Input }],
1238
+        freeModeSticky: [{ type: core.Input }],
1239
+        freeModeMinimumVelocity: [{ type: core.Input }],
1240
+        autoHeight: [{ type: core.Input }],
1241
+        setWrapperSize: [{ type: core.Input }],
1242
+        virtualTranslate: [{ type: core.Input }],
1243
+        effect: [{ type: core.Input }],
1244
+        breakpoints: [{ type: core.Input }],
1245
+        spaceBetween: [{ type: core.Input }],
1246
+        slidesPerView: [{ type: core.Input }],
1247
+        slidesPerColumn: [{ type: core.Input }],
1248
+        slidesPerColumnFill: [{ type: core.Input }],
1249
+        slidesPerGroup: [{ type: core.Input }],
1250
+        slidesPerGroupSkip: [{ type: core.Input }],
1251
+        centeredSlides: [{ type: core.Input }],
1252
+        centeredSlidesBounds: [{ type: core.Input }],
1253
+        slidesOffsetBefore: [{ type: core.Input }],
1254
+        slidesOffsetAfter: [{ type: core.Input }],
1255
+        normalizeSlideIndex: [{ type: core.Input }],
1256
+        centerInsufficientSlides: [{ type: core.Input }],
1257
+        watchOverflow: [{ type: core.Input }],
1258
+        roundLengths: [{ type: core.Input }],
1259
+        touchRatio: [{ type: core.Input }],
1260
+        touchAngle: [{ type: core.Input }],
1261
+        simulateTouch: [{ type: core.Input }],
1262
+        shortSwipes: [{ type: core.Input }],
1263
+        longSwipes: [{ type: core.Input }],
1264
+        longSwipesRatio: [{ type: core.Input }],
1265
+        longSwipesMs: [{ type: core.Input }],
1266
+        followFinger: [{ type: core.Input }],
1267
+        allowTouchMove: [{ type: core.Input }],
1268
+        threshold: [{ type: core.Input }],
1269
+        touchMoveStopPropagation: [{ type: core.Input }],
1270
+        touchStartPreventDefault: [{ type: core.Input }],
1271
+        touchStartForcePreventDefault: [{ type: core.Input }],
1272
+        touchReleaseOnEdges: [{ type: core.Input }],
1273
+        uniqueNavElements: [{ type: core.Input }],
1274
+        resistance: [{ type: core.Input }],
1275
+        resistanceRatio: [{ type: core.Input }],
1276
+        watchSlidesProgress: [{ type: core.Input }],
1277
+        watchSlidesVisibility: [{ type: core.Input }],
1278
+        grabCursor: [{ type: core.Input }],
1279
+        preventClicks: [{ type: core.Input }],
1280
+        preventClicksPropagation: [{ type: core.Input }],
1281
+        slideToClickedSlide: [{ type: core.Input }],
1282
+        preloadImages: [{ type: core.Input }],
1283
+        updateOnImagesReady: [{ type: core.Input }],
1284
+        loop: [{ type: core.Input }],
1285
+        loopAdditionalSlides: [{ type: core.Input }],
1286
+        loopedSlides: [{ type: core.Input }],
1287
+        loopFillGroupWithBlank: [{ type: core.Input }],
1288
+        loopPreventsSlide: [{ type: core.Input }],
1289
+        allowSlidePrev: [{ type: core.Input }],
1290
+        allowSlideNext: [{ type: core.Input }],
1291
+        swipeHandler: [{ type: core.Input }],
1292
+        noSwiping: [{ type: core.Input }],
1293
+        noSwipingClass: [{ type: core.Input }],
1294
+        noSwipingSelector: [{ type: core.Input }],
1295
+        passiveListeners: [{ type: core.Input }],
1296
+        containerModifierClass: [{ type: core.Input }],
1297
+        slideClass: [{ type: core.Input }],
1298
+        slideBlankClass: [{ type: core.Input }],
1299
+        slideActiveClass: [{ type: core.Input }],
1300
+        slideDuplicateActiveClass: [{ type: core.Input }],
1301
+        slideVisibleClass: [{ type: core.Input }],
1302
+        slideDuplicateClass: [{ type: core.Input }],
1303
+        slideNextClass: [{ type: core.Input }],
1304
+        slideDuplicateNextClass: [{ type: core.Input }],
1305
+        slidePrevClass: [{ type: core.Input }],
1306
+        slideDuplicatePrevClass: [{ type: core.Input }],
1307
+        wrapperClass: [{ type: core.Input }],
1308
+        runCallbacksOnInit: [{ type: core.Input }],
1309
+        observeParents: [{ type: core.Input }],
1310
+        observeSlideChildren: [{ type: core.Input }],
1311
+        a11y: [{ type: core.Input }],
1312
+        autoplay: [{ type: core.Input }],
1313
+        controller: [{ type: core.Input }],
1314
+        coverflowEffect: [{ type: core.Input }],
1315
+        cubeEffect: [{ type: core.Input }],
1316
+        fadeEffect: [{ type: core.Input }],
1317
+        flipEffect: [{ type: core.Input }],
1318
+        hashNavigation: [{ type: core.Input }],
1319
+        history: [{ type: core.Input }],
1320
+        keyboard: [{ type: core.Input }],
1321
+        lazy: [{ type: core.Input }],
1322
+        mousewheel: [{ type: core.Input }],
1323
+        parallax: [{ type: core.Input }],
1324
+        thumbs: [{ type: core.Input }],
1325
+        zoom: [{ type: core.Input }],
1326
+        navigation: [{ type: core.Input }],
1327
+        pagination: [{ type: core.Input }],
1328
+        scrollbar: [{ type: core.Input }],
1329
+        virtual: [{ type: core.Input }],
1330
+        index: [{ type: core.Input }],
1331
+        config: [{ type: core.Input }],
1332
+        s__beforeBreakpoint: [{ type: core.Output, args: ['_beforeBreakpoint',] }],
1333
+        s__containerClasses: [{ type: core.Output, args: ['_containerClasses',] }],
1334
+        s__slideClass: [{ type: core.Output, args: ['_slideClass',] }],
1335
+        s__swiper: [{ type: core.Output, args: ['_swiper',] }],
1336
+        s_activeIndexChange: [{ type: core.Output, args: ['activeIndexChange',] }],
1337
+        s_afterInit: [{ type: core.Output, args: ['afterInit',] }],
1338
+        s_autoplay: [{ type: core.Output, args: ['autoplay',] }],
1339
+        s_autoplayStart: [{ type: core.Output, args: ['autoplayStart',] }],
1340
+        s_autoplayStop: [{ type: core.Output, args: ['autoplayStop',] }],
1341
+        s_beforeDestroy: [{ type: core.Output, args: ['beforeDestroy',] }],
1342
+        s_beforeInit: [{ type: core.Output, args: ['beforeInit',] }],
1343
+        s_beforeLoopFix: [{ type: core.Output, args: ['beforeLoopFix',] }],
1344
+        s_beforeResize: [{ type: core.Output, args: ['beforeResize',] }],
1345
+        s_beforeSlideChangeStart: [{ type: core.Output, args: ['beforeSlideChangeStart',] }],
1346
+        s_beforeTransitionStart: [{ type: core.Output, args: ['beforeTransitionStart',] }],
1347
+        s_breakpoint: [{ type: core.Output, args: ['breakpoint',] }],
1348
+        s_changeDirection: [{ type: core.Output, args: ['changeDirection',] }],
1349
+        s_click: [{ type: core.Output, args: ['click',] }],
1350
+        s_doubleTap: [{ type: core.Output, args: ['doubleTap',] }],
1351
+        s_doubleClick: [{ type: core.Output, args: ['doubleClick',] }],
1352
+        s_destroy: [{ type: core.Output, args: ['destroy',] }],
1353
+        s_fromEdge: [{ type: core.Output, args: ['fromEdge',] }],
1354
+        s_hashChange: [{ type: core.Output, args: ['hashChange',] }],
1355
+        s_hashSet: [{ type: core.Output, args: ['hashSet',] }],
1356
+        s_imagesReady: [{ type: core.Output, args: ['imagesReady',] }],
1357
+        s_init: [{ type: core.Output, args: ['init',] }],
1358
+        s_keyPress: [{ type: core.Output, args: ['keyPress',] }],
1359
+        s_lazyImageLoad: [{ type: core.Output, args: ['lazyImageLoad',] }],
1360
+        s_lazyImageReady: [{ type: core.Output, args: ['lazyImageReady',] }],
1361
+        s_loopFix: [{ type: core.Output, args: ['loopFix',] }],
1362
+        s_momentumBounce: [{ type: core.Output, args: ['momentumBounce',] }],
1363
+        s_navigationHide: [{ type: core.Output, args: ['navigationHide',] }],
1364
+        s_navigationShow: [{ type: core.Output, args: ['navigationShow',] }],
1365
+        s_observerUpdate: [{ type: core.Output, args: ['observerUpdate',] }],
1366
+        s_orientationchange: [{ type: core.Output, args: ['orientationchange',] }],
1367
+        s_paginationHide: [{ type: core.Output, args: ['paginationHide',] }],
1368
+        s_paginationRender: [{ type: core.Output, args: ['paginationRender',] }],
1369
+        s_paginationShow: [{ type: core.Output, args: ['paginationShow',] }],
1370
+        s_paginationUpdate: [{ type: core.Output, args: ['paginationUpdate',] }],
1371
+        s_progress: [{ type: core.Output, args: ['progress',] }],
1372
+        s_reachBeginning: [{ type: core.Output, args: ['reachBeginning',] }],
1373
+        s_reachEnd: [{ type: core.Output, args: ['reachEnd',] }],
1374
+        s_realIndexChange: [{ type: core.Output, args: ['realIndexChange',] }],
1375
+        s_resize: [{ type: core.Output, args: ['resize',] }],
1376
+        s_scroll: [{ type: core.Output, args: ['scroll',] }],
1377
+        s_scrollbarDragEnd: [{ type: core.Output, args: ['scrollbarDragEnd',] }],
1378
+        s_scrollbarDragMove: [{ type: core.Output, args: ['scrollbarDragMove',] }],
1379
+        s_scrollbarDragStart: [{ type: core.Output, args: ['scrollbarDragStart',] }],
1380
+        s_setTransition: [{ type: core.Output, args: ['setTransition',] }],
1381
+        s_setTranslate: [{ type: core.Output, args: ['setTranslate',] }],
1382
+        s_slideChange: [{ type: core.Output, args: ['slideChange',] }],
1383
+        s_slideChangeTransitionEnd: [{ type: core.Output, args: ['slideChangeTransitionEnd',] }],
1384
+        s_slideChangeTransitionStart: [{ type: core.Output, args: ['slideChangeTransitionStart',] }],
1385
+        s_slideNextTransitionEnd: [{ type: core.Output, args: ['slideNextTransitionEnd',] }],
1386
+        s_slideNextTransitionStart: [{ type: core.Output, args: ['slideNextTransitionStart',] }],
1387
+        s_slidePrevTransitionEnd: [{ type: core.Output, args: ['slidePrevTransitionEnd',] }],
1388
+        s_slidePrevTransitionStart: [{ type: core.Output, args: ['slidePrevTransitionStart',] }],
1389
+        s_slideResetTransitionStart: [{ type: core.Output, args: ['slideResetTransitionStart',] }],
1390
+        s_slideResetTransitionEnd: [{ type: core.Output, args: ['slideResetTransitionEnd',] }],
1391
+        s_sliderMove: [{ type: core.Output, args: ['sliderMove',] }],
1392
+        s_sliderFirstMove: [{ type: core.Output, args: ['sliderFirstMove',] }],
1393
+        s_slidesLengthChange: [{ type: core.Output, args: ['slidesLengthChange',] }],
1394
+        s_slidesGridLengthChange: [{ type: core.Output, args: ['slidesGridLengthChange',] }],
1395
+        s_snapGridLengthChange: [{ type: core.Output, args: ['snapGridLengthChange',] }],
1396
+        s_snapIndexChange: [{ type: core.Output, args: ['snapIndexChange',] }],
1397
+        s_tap: [{ type: core.Output, args: ['tap',] }],
1398
+        s_toEdge: [{ type: core.Output, args: ['toEdge',] }],
1399
+        s_touchEnd: [{ type: core.Output, args: ['touchEnd',] }],
1400
+        s_touchMove: [{ type: core.Output, args: ['touchMove',] }],
1401
+        s_touchMoveOpposite: [{ type: core.Output, args: ['touchMoveOpposite',] }],
1402
+        s_touchStart: [{ type: core.Output, args: ['touchStart',] }],
1403
+        s_transitionEnd: [{ type: core.Output, args: ['transitionEnd',] }],
1404
+        s_transitionStart: [{ type: core.Output, args: ['transitionStart',] }],
1405
+        s_update: [{ type: core.Output, args: ['update',] }],
1406
+        s_zoomChange: [{ type: core.Output, args: ['zoomChange',] }],
1407
+        s_swiper: [{ type: core.Output, args: ['swiper',] }],
1408
+        indexChange: [{ type: core.Output }],
1409
+        prevElRef: [{ type: core.ViewChild, args: ['prevElRef', { static: false },] }],
1410
+        nextElRef: [{ type: core.ViewChild, args: ['nextElRef', { static: false },] }],
1411
+        scrollbarElRef: [{ type: core.ViewChild, args: ['scrollbarElRef', { static: false },] }],
1412
+        paginationElRef: [{ type: core.ViewChild, args: ['paginationElRef', { static: false },] }],
1413
+        slidesEl: [{ type: core.ContentChildren, args: [SwiperSlideDirective, { descendants: true, emitDistinctChangesOnly: true },] }],
1414
+        containerClasses: [{ type: core.HostBinding, args: ['class',] }]
1415
+    };
1416
+
1417
+    var SwiperModule = /** @class */ (function () {
1418
+        function SwiperModule() {
1419
+        }
1420
+        return SwiperModule;
1421
+    }());
1422
+    SwiperModule.decorators = [
1423
+        { type: core.NgModule, args: [{
1424
+                    declarations: [SwiperComponent, SwiperSlideDirective],
1425
+                    exports: [SwiperComponent, SwiperSlideDirective],
1426
+                    imports: [common.CommonModule],
1427
+                },] }
1428
+    ];
1429
+
1430
+    /*
1431
+     * Public API Surface of angular
1432
+     */
1433
+
1434
+    /**
1435
+     * Generated bundle index. Do not edit.
1436
+     */
1437
+
1438
+    exports.SwiperComponent = SwiperComponent;
1439
+    exports.SwiperModule = SwiperModule;
1440
+    exports.SwiperSlideDirective = SwiperSlideDirective;
1441
+
1442
+    Object.defineProperty(exports, '__esModule', { value: true });
1443
+
1444
+})));
1445
+//# sourceMappingURL=swiper_angular.umd.js.map