swiper_angular.umd.js 85 KB

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