infinity-forge 0.54.3 → 0.54.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/dist/ui/components/carousel/swiper/components-shared/get-changed-params.d.ts +2 -0
  2. package/dist/ui/components/carousel/swiper/components-shared/get-changed-params.js +51 -0
  3. package/dist/ui/components/carousel/swiper/components-shared/get-changed-params.js.map +1 -0
  4. package/dist/ui/components/carousel/swiper/components-shared/get-element-params.d.ts +5 -0
  5. package/dist/ui/components/carousel/swiper/components-shared/get-element-params.js +148 -0
  6. package/dist/ui/components/carousel/swiper/components-shared/get-element-params.js.map +1 -0
  7. package/dist/ui/components/carousel/swiper/components-shared/get-params.d.ts +9 -0
  8. package/dist/ui/components/carousel/swiper/components-shared/get-params.js +61 -0
  9. package/dist/ui/components/carousel/swiper/components-shared/get-params.js.map +1 -0
  10. package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.d.ts +9 -0
  11. package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.js +24 -0
  12. package/dist/ui/components/carousel/swiper/components-shared/mount-swiper.js.map +1 -0
  13. package/dist/ui/components/carousel/swiper/components-shared/params-list.d.ts +2 -0
  14. package/dist/ui/components/carousel/swiper/components-shared/params-list.js +125 -0
  15. package/dist/ui/components/carousel/swiper/components-shared/params-list.js.map +1 -0
  16. package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.d.ts +1 -0
  17. package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.js +18 -0
  18. package/dist/ui/components/carousel/swiper/components-shared/update-on-virtual-data.js.map +1 -0
  19. package/dist/ui/components/carousel/swiper/components-shared/update-swiper.d.ts +11 -0
  20. package/dist/ui/components/carousel/swiper/components-shared/update-swiper.js +208 -0
  21. package/dist/ui/components/carousel/swiper/components-shared/update-swiper.js.map +1 -0
  22. package/dist/ui/components/carousel/swiper/components-shared/utils.d.ts +9 -0
  23. package/dist/ui/components/carousel/swiper/components-shared/utils.js +77 -0
  24. package/dist/ui/components/carousel/swiper/components-shared/utils.js.map +1 -0
  25. package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.d.ts +1 -0
  26. package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.js +35 -0
  27. package/dist/ui/components/carousel/swiper/core/breakpoints/getBreakpoint.js.map +1 -0
  28. package/dist/ui/components/carousel/swiper/core/breakpoints/index.d.ts +7 -0
  29. package/dist/ui/components/carousel/swiper/core/breakpoints/index.js +9 -0
  30. package/dist/ui/components/carousel/swiper/core/breakpoints/index.js.map +1 -0
  31. package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.d.ts +1 -0
  32. package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.js +94 -0
  33. package/dist/ui/components/carousel/swiper/core/breakpoints/setBreakpoint.js.map +1 -0
  34. package/dist/ui/components/carousel/swiper/core/check-overflow/index.d.ts +5 -0
  35. package/dist/ui/components/carousel/swiper/core/check-overflow/index.js +31 -0
  36. package/dist/ui/components/carousel/swiper/core/check-overflow/index.js.map +1 -0
  37. package/dist/ui/components/carousel/swiper/core/classes/addClasses.d.ts +1 -0
  38. package/dist/ui/components/carousel/swiper/core/classes/addClasses.js +43 -0
  39. package/dist/ui/components/carousel/swiper/core/classes/addClasses.js.map +1 -0
  40. package/dist/ui/components/carousel/swiper/core/classes/index.d.ts +7 -0
  41. package/dist/ui/components/carousel/swiper/core/classes/index.js +9 -0
  42. package/dist/ui/components/carousel/swiper/core/classes/index.js.map +1 -0
  43. package/dist/ui/components/carousel/swiper/core/classes/removeClasses.d.ts +1 -0
  44. package/dist/ui/components/carousel/swiper/core/classes/removeClasses.js +13 -0
  45. package/dist/ui/components/carousel/swiper/core/classes/removeClasses.js.map +1 -0
  46. package/dist/ui/components/carousel/swiper/core/core.js +14 -14
  47. package/dist/ui/components/carousel/swiper/core/core.js.map +1 -1
  48. package/dist/ui/components/carousel/swiper/core/events/index.d.ts +7 -0
  49. package/dist/ui/components/carousel/swiper/core/events/index.js +77 -0
  50. package/dist/ui/components/carousel/swiper/core/events/index.js.map +1 -0
  51. package/dist/ui/components/carousel/swiper/core/events/onClick.d.ts +1 -0
  52. package/dist/ui/components/carousel/swiper/core/events/onClick.js +17 -0
  53. package/dist/ui/components/carousel/swiper/core/events/onClick.js.map +1 -0
  54. package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.d.ts +1 -0
  55. package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.js +13 -0
  56. package/dist/ui/components/carousel/swiper/core/events/onDocumentTouchStart.js.map +1 -0
  57. package/dist/ui/components/carousel/swiper/core/events/onLoad.d.ts +1 -0
  58. package/dist/ui/components/carousel/swiper/core/events/onLoad.js +14 -0
  59. package/dist/ui/components/carousel/swiper/core/events/onLoad.js.map +1 -0
  60. package/dist/ui/components/carousel/swiper/core/events/onResize.d.ts +1 -0
  61. package/dist/ui/components/carousel/swiper/core/events/onResize.js +53 -0
  62. package/dist/ui/components/carousel/swiper/core/events/onResize.js.map +1 -0
  63. package/dist/ui/components/carousel/swiper/core/events/onScroll.d.ts +1 -0
  64. package/dist/ui/components/carousel/swiper/core/events/onScroll.js +34 -0
  65. package/dist/ui/components/carousel/swiper/core/events/onScroll.js.map +1 -0
  66. package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.d.ts +1 -0
  67. package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.js +194 -0
  68. package/dist/ui/components/carousel/swiper/core/events/onTouchEnd.js.map +1 -0
  69. package/dist/ui/components/carousel/swiper/core/events/onTouchMove.d.ts +1 -0
  70. package/dist/ui/components/carousel/swiper/core/events/onTouchMove.js +314 -0
  71. package/dist/ui/components/carousel/swiper/core/events/onTouchMove.js.map +1 -0
  72. package/dist/ui/components/carousel/swiper/core/events/onTouchStart.d.ts +1 -0
  73. package/dist/ui/components/carousel/swiper/core/events/onTouchStart.js +154 -0
  74. package/dist/ui/components/carousel/swiper/core/events/onTouchStart.js.map +1 -0
  75. package/dist/ui/components/carousel/swiper/core/grab-cursor/index.d.ts +7 -0
  76. package/dist/ui/components/carousel/swiper/core/grab-cursor/index.js +12 -0
  77. package/dist/ui/components/carousel/swiper/core/grab-cursor/index.js.map +1 -0
  78. package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.d.ts +1 -0
  79. package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.js +22 -0
  80. package/dist/ui/components/carousel/swiper/core/grab-cursor/setGrabCursor.js.map +1 -0
  81. package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.d.ts +1 -0
  82. package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.js +19 -0
  83. package/dist/ui/components/carousel/swiper/core/grab-cursor/unsetGrabCursor.js.map +1 -0
  84. package/dist/ui/components/carousel/swiper/core/loop/index.d.ts +9 -0
  85. package/dist/ui/components/carousel/swiper/core/loop/index.js +14 -0
  86. package/dist/ui/components/carousel/swiper/core/loop/index.js.map +1 -0
  87. package/dist/ui/components/carousel/swiper/core/loop/loopCreate.d.ts +1 -0
  88. package/dist/ui/components/carousel/swiper/core/loop/loopCreate.js +57 -0
  89. package/dist/ui/components/carousel/swiper/core/loop/loopCreate.js.map +1 -0
  90. package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.d.ts +1 -0
  91. package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.js +26 -0
  92. package/dist/ui/components/carousel/swiper/core/loop/loopDestroy.js.map +1 -0
  93. package/dist/ui/components/carousel/swiper/core/loop/loopFix.d.ts +9 -0
  94. package/dist/ui/components/carousel/swiper/core/loop/loopFix.js +230 -0
  95. package/dist/ui/components/carousel/swiper/core/loop/loopFix.js.map +1 -0
  96. package/dist/ui/components/carousel/swiper/core/modules/observer/observer.d.ts +6 -0
  97. package/dist/ui/components/carousel/swiper/core/modules/observer/observer.js +71 -0
  98. package/dist/ui/components/carousel/swiper/core/modules/observer/observer.js.map +1 -0
  99. package/dist/ui/components/carousel/swiper/core/modules/resize/resize.d.ts +5 -0
  100. package/dist/ui/components/carousel/swiper/core/modules/resize/resize.js +71 -0
  101. package/dist/ui/components/carousel/swiper/core/modules/resize/resize.js.map +1 -0
  102. package/dist/ui/components/carousel/swiper/core/slide/index.d.ts +17 -0
  103. package/dist/ui/components/carousel/swiper/core/slide/index.js +22 -0
  104. package/dist/ui/components/carousel/swiper/core/slide/index.js.map +1 -0
  105. package/dist/ui/components/carousel/swiper/core/slide/slideNext.d.ts +1 -0
  106. package/dist/ui/components/carousel/swiper/core/slide/slideNext.js +38 -0
  107. package/dist/ui/components/carousel/swiper/core/slide/slideNext.js.map +1 -0
  108. package/dist/ui/components/carousel/swiper/core/slide/slidePrev.d.ts +1 -0
  109. package/dist/ui/components/carousel/swiper/core/slide/slidePrev.js +69 -0
  110. package/dist/ui/components/carousel/swiper/core/slide/slidePrev.js.map +1 -0
  111. package/dist/ui/components/carousel/swiper/core/slide/slideReset.d.ts +1 -0
  112. package/dist/ui/components/carousel/swiper/core/slide/slideReset.js +15 -0
  113. package/dist/ui/components/carousel/swiper/core/slide/slideReset.js.map +1 -0
  114. package/dist/ui/components/carousel/swiper/core/slide/slideTo.d.ts +1 -0
  115. package/dist/ui/components/carousel/swiper/core/slide/slideTo.js +160 -0
  116. package/dist/ui/components/carousel/swiper/core/slide/slideTo.js.map +1 -0
  117. package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.d.ts +1 -0
  118. package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.js +46 -0
  119. package/dist/ui/components/carousel/swiper/core/slide/slideToClickedSlide.js.map +1 -0
  120. package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.d.ts +1 -0
  121. package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.js +40 -0
  122. package/dist/ui/components/carousel/swiper/core/slide/slideToClosest.js.map +1 -0
  123. package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.d.ts +1 -0
  124. package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.js +84 -0
  125. package/dist/ui/components/carousel/swiper/core/slide/slideToLoop.js.map +1 -0
  126. package/dist/ui/components/carousel/swiper/core/transition/index.d.ts +9 -0
  127. package/dist/ui/components/carousel/swiper/core/transition/index.js +14 -0
  128. package/dist/ui/components/carousel/swiper/core/transition/index.js.map +1 -0
  129. package/dist/ui/components/carousel/swiper/core/transition/setTransition.d.ts +1 -0
  130. package/dist/ui/components/carousel/swiper/core/transition/setTransition.js +12 -0
  131. package/dist/ui/components/carousel/swiper/core/transition/setTransition.js.map +1 -0
  132. package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.d.ts +6 -0
  133. package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.js +31 -0
  134. package/dist/ui/components/carousel/swiper/core/transition/transitionEmit.js.map +1 -0
  135. package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.d.ts +1 -0
  136. package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.js +18 -0
  137. package/dist/ui/components/carousel/swiper/core/transition/transitionEnd.js.map +1 -0
  138. package/dist/ui/components/carousel/swiper/core/transition/transitionStart.d.ts +1 -0
  139. package/dist/ui/components/carousel/swiper/core/transition/transitionStart.js +19 -0
  140. package/dist/ui/components/carousel/swiper/core/transition/transitionStart.js.map +1 -0
  141. package/dist/ui/components/carousel/swiper/core/translate/getTranslate.d.ts +1 -0
  142. package/dist/ui/components/carousel/swiper/core/translate/getTranslate.js +21 -0
  143. package/dist/ui/components/carousel/swiper/core/translate/getTranslate.js.map +1 -0
  144. package/dist/ui/components/carousel/swiper/core/translate/index.d.ts +13 -0
  145. package/dist/ui/components/carousel/swiper/core/translate/index.js +18 -0
  146. package/dist/ui/components/carousel/swiper/core/translate/index.js.map +1 -0
  147. package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.d.ts +1 -0
  148. package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.js +7 -0
  149. package/dist/ui/components/carousel/swiper/core/translate/maxTranslate.js.map +1 -0
  150. package/dist/ui/components/carousel/swiper/core/translate/minTranslate.d.ts +1 -0
  151. package/dist/ui/components/carousel/swiper/core/translate/minTranslate.js +7 -0
  152. package/dist/ui/components/carousel/swiper/core/translate/minTranslate.js.map +1 -0
  153. package/dist/ui/components/carousel/swiper/core/translate/setTranslate.d.ts +1 -0
  154. package/dist/ui/components/carousel/swiper/core/translate/setTranslate.js +48 -0
  155. package/dist/ui/components/carousel/swiper/core/translate/setTranslate.js.map +1 -0
  156. package/dist/ui/components/carousel/swiper/core/translate/translateTo.d.ts +1 -0
  157. package/dist/ui/components/carousel/swiper/core/translate/translateTo.js +81 -0
  158. package/dist/ui/components/carousel/swiper/core/translate/translateTo.js.map +1 -0
  159. package/dist/ui/components/carousel/swiper/core/update/index.d.ts +21 -0
  160. package/dist/ui/components/carousel/swiper/core/update/index.js +26 -0
  161. package/dist/ui/components/carousel/swiper/core/update/index.js.map +1 -0
  162. package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.d.ts +2 -0
  163. package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.js +125 -0
  164. package/dist/ui/components/carousel/swiper/core/update/updateActiveIndex.js.map +1 -0
  165. package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.d.ts +1 -0
  166. package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.js +52 -0
  167. package/dist/ui/components/carousel/swiper/core/update/updateAutoHeight.js.map +1 -0
  168. package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.d.ts +1 -0
  169. package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.js +55 -0
  170. package/dist/ui/components/carousel/swiper/core/update/updateClickedSlide.js.map +1 -0
  171. package/dist/ui/components/carousel/swiper/core/update/updateProgress.d.ts +1 -0
  172. package/dist/ui/components/carousel/swiper/core/update/updateProgress.js +67 -0
  173. package/dist/ui/components/carousel/swiper/core/update/updateProgress.js.map +1 -0
  174. package/dist/ui/components/carousel/swiper/core/update/updateSize.d.ts +1 -0
  175. package/dist/ui/components/carousel/swiper/core/update/updateSize.js +45 -0
  176. package/dist/ui/components/carousel/swiper/core/update/updateSize.js.map +1 -0
  177. package/dist/ui/components/carousel/swiper/core/update/updateSlides.d.ts +1 -0
  178. package/dist/ui/components/carousel/swiper/core/update/updateSlides.js +306 -0
  179. package/dist/ui/components/carousel/swiper/core/update/updateSlides.js.map +1 -0
  180. package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.d.ts +1 -0
  181. package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.js +69 -0
  182. package/dist/ui/components/carousel/swiper/core/update/updateSlidesClasses.js.map +1 -0
  183. package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.d.ts +1 -0
  184. package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.js +20 -0
  185. package/dist/ui/components/carousel/swiper/core/update/updateSlidesOffset.js.map +1 -0
  186. package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.d.ts +1 -0
  187. package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.js +62 -0
  188. package/dist/ui/components/carousel/swiper/core/update/updateSlidesProgress.js.map +1 -0
  189. package/dist/ui/components/carousel/swiper/modules/autoplay.js +6 -6
  190. package/dist/ui/components/carousel/swiper/modules/autoplay.js.map +1 -1
  191. package/dist/ui/components/carousel/swiper/modules/virtual.js +2 -2
  192. package/dist/ui/components/carousel/swiper/modules/virtual.js.map +1 -1
  193. package/dist/ui/components/carousel/swiper/react/swiper-slide.js +1 -1
  194. package/dist/ui/components/carousel/swiper/react/swiper.js +6 -6
  195. package/dist/ui/components/carousel/swiper/shared/get-browser.js +2 -2
  196. package/dist/ui/components/carousel/swiper/shared/get-browser.js.map +1 -1
  197. package/dist/ui/components/carousel/swiper/shared/get-device.js +2 -2
  198. package/dist/ui/components/carousel/swiper/shared/get-device.js.map +1 -1
  199. package/dist/ui/components/carousel/swiper/shared/get-support.js +4 -3
  200. package/dist/ui/components/carousel/swiper/shared/get-support.js.map +1 -1
  201. package/dist/ui/components/carousel/swiper/shared/utils.js +9 -8
  202. package/dist/ui/components/carousel/swiper/shared/utils.js.map +1 -1
  203. package/dist/ui/components/carousel/swiper/ssr-window/document.d.ts +36 -0
  204. package/dist/ui/components/carousel/swiper/ssr-window/document.js +65 -0
  205. package/dist/ui/components/carousel/swiper/ssr-window/document.js.map +1 -0
  206. package/dist/ui/components/carousel/swiper/ssr-window/extend.d.ts +2 -0
  207. package/dist/ui/components/carousel/swiper/ssr-window/extend.js +24 -0
  208. package/dist/ui/components/carousel/swiper/ssr-window/extend.js.map +1 -0
  209. package/dist/ui/components/carousel/swiper/ssr-window/ssr-window.d.ts +4 -0
  210. package/dist/ui/components/carousel/swiper/ssr-window/ssr-window.js +15 -0
  211. package/dist/ui/components/carousel/swiper/ssr-window/ssr-window.js.map +1 -0
  212. package/dist/ui/components/carousel/swiper/ssr-window/window.d.ts +72 -0
  213. package/dist/ui/components/carousel/swiper/ssr-window/window.js +71 -0
  214. package/dist/ui/components/carousel/swiper/ssr-window/window.js.map +1 -0
  215. package/package.json +1 -2
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint no-unused-vars: "off" */
4
+ function slidePrev(speed, runCallbacks, internal) {
5
+ if (runCallbacks === void 0) { runCallbacks = true; }
6
+ var swiper = this;
7
+ var params = swiper.params, snapGrid = swiper.snapGrid, slidesGrid = swiper.slidesGrid, rtlTranslate = swiper.rtlTranslate, enabled = swiper.enabled, animating = swiper.animating;
8
+ if (!enabled || swiper.destroyed)
9
+ return swiper;
10
+ if (typeof speed === 'undefined') {
11
+ speed = swiper.params.speed;
12
+ }
13
+ var isVirtual = swiper.virtual && params.virtual.enabled;
14
+ if (params.loop) {
15
+ if (animating && !isVirtual && params.loopPreventsSliding)
16
+ return false;
17
+ swiper.loopFix({ direction: 'prev' });
18
+ // eslint-disable-next-line
19
+ swiper._clientLeft = swiper.wrapperEl.clientLeft;
20
+ }
21
+ var translate = rtlTranslate ? swiper.translate : -swiper.translate;
22
+ function normalize(val) {
23
+ if (val < 0)
24
+ return -Math.floor(Math.abs(val));
25
+ return Math.floor(val);
26
+ }
27
+ var normalizedTranslate = normalize(translate);
28
+ var normalizedSnapGrid = snapGrid.map(function (val) { return normalize(val); });
29
+ var prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];
30
+ if (typeof prevSnap === 'undefined' && params.cssMode) {
31
+ var prevSnapIndex_1;
32
+ snapGrid.forEach(function (snap, snapIndex) {
33
+ if (normalizedTranslate >= snap) {
34
+ // prevSnap = snap;
35
+ prevSnapIndex_1 = snapIndex;
36
+ }
37
+ });
38
+ if (typeof prevSnapIndex_1 !== 'undefined') {
39
+ prevSnap = snapGrid[prevSnapIndex_1 > 0 ? prevSnapIndex_1 - 1 : prevSnapIndex_1];
40
+ }
41
+ }
42
+ var prevIndex = 0;
43
+ if (typeof prevSnap !== 'undefined') {
44
+ prevIndex = slidesGrid.indexOf(prevSnap);
45
+ if (prevIndex < 0)
46
+ prevIndex = swiper.activeIndex - 1;
47
+ if (params.slidesPerView === 'auto' &&
48
+ params.slidesPerGroup === 1 &&
49
+ params.slidesPerGroupAuto) {
50
+ prevIndex = prevIndex - swiper.slidesPerViewDynamic('previous', true) + 1;
51
+ prevIndex = Math.max(prevIndex, 0);
52
+ }
53
+ }
54
+ if (params.rewind && swiper.isBeginning) {
55
+ var lastIndex = swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual
56
+ ? swiper.virtual.slides.length - 1
57
+ : swiper.slides.length - 1;
58
+ return swiper.slideTo(lastIndex, speed, runCallbacks, internal);
59
+ }
60
+ else if (params.loop && swiper.activeIndex === 0 && params.cssMode) {
61
+ requestAnimationFrame(function () {
62
+ swiper.slideTo(prevIndex, speed, runCallbacks, internal);
63
+ });
64
+ return true;
65
+ }
66
+ return swiper.slideTo(prevIndex, speed, runCallbacks, internal);
67
+ }
68
+ exports.default = slidePrev;
69
+ //# sourceMappingURL=slidePrev.js.map
@@ -0,0 +1 @@
1
+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,SAAS,GAAG,MAAM,CAAC,oBAAoB,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAC1E,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACxC,IAAM,SAAS,GACb,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO;YACtE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;YAClC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QAC/B,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;IAClE,CAAC;SAAM,IAAI,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,WAAW,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACrE,qBAAqB,CAAC;YACpB,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AAClE,CAAC;AAjED,4BAiEC"}
@@ -0,0 +1 @@
1
+ export default function slideReset(speed: any, runCallbacks: boolean, internal: any): any;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint no-unused-vars: "off" */
4
+ function slideReset(speed, runCallbacks, internal) {
5
+ if (runCallbacks === void 0) { runCallbacks = true; }
6
+ var swiper = this;
7
+ if (swiper.destroyed)
8
+ return;
9
+ if (typeof speed === 'undefined') {
10
+ speed = swiper.params.speed;
11
+ }
12
+ return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);
13
+ }
14
+ exports.default = slideReset;
15
+ //# sourceMappingURL=slideReset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slideReset.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/slide/slideReset.tsx"],"names":[],"mappings":";;AAAA,kCAAkC;AAClC,SAAwB,UAAU,CAAC,KAAK,EAAE,YAAmB,EAAE,QAAQ;IAA7B,6BAAA,EAAA,mBAAmB;IAC3D,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,MAAM,CAAC,SAAS;QAAE,OAAO;IAC7B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,CAAC;QACjC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAC9B,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AAC3E,CAAC;AAPD,6BAOC"}
@@ -0,0 +1 @@
1
+ export default function slideTo(index: number, speed: any, runCallbacks: boolean, internal: any, initial: any): boolean;
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var utils_1 = require("../../shared/utils.js");
4
+ function slideTo(index, speed, runCallbacks, internal, initial) {
5
+ var _a;
6
+ if (index === void 0) { index = 0; }
7
+ if (runCallbacks === void 0) { runCallbacks = true; }
8
+ if (typeof index === 'string') {
9
+ index = parseInt(index, 10);
10
+ }
11
+ var swiper = this;
12
+ var slideIndex = index;
13
+ if (slideIndex < 0)
14
+ slideIndex = 0;
15
+ var params = swiper.params, snapGrid = swiper.snapGrid, slidesGrid = swiper.slidesGrid, previousIndex = swiper.previousIndex, activeIndex = swiper.activeIndex, rtl = swiper.rtlTranslate, wrapperEl = swiper.wrapperEl, enabled = swiper.enabled;
16
+ if ((!enabled && !internal && !initial) ||
17
+ swiper.destroyed ||
18
+ (swiper.animating && params.preventInteractionOnTransition)) {
19
+ return false;
20
+ }
21
+ if (typeof speed === 'undefined') {
22
+ speed = swiper.params.speed;
23
+ }
24
+ var skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);
25
+ var snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);
26
+ if (snapIndex >= snapGrid.length)
27
+ snapIndex = snapGrid.length - 1;
28
+ var translate = -snapGrid[snapIndex];
29
+ // Normalize slideIndex
30
+ if (params.normalizeSlideIndex) {
31
+ for (var i = 0; i < slidesGrid.length; i += 1) {
32
+ var normalizedTranslate = -Math.floor(translate * 100);
33
+ var normalizedGrid = Math.floor(slidesGrid[i] * 100);
34
+ var normalizedGridNext = Math.floor(slidesGrid[i + 1] * 100);
35
+ if (typeof slidesGrid[i + 1] !== 'undefined') {
36
+ if (normalizedTranslate >= normalizedGrid &&
37
+ normalizedTranslate < normalizedGridNext - (normalizedGridNext - normalizedGrid) / 2) {
38
+ slideIndex = i;
39
+ }
40
+ else if (normalizedTranslate >= normalizedGrid &&
41
+ normalizedTranslate < normalizedGridNext) {
42
+ slideIndex = i + 1;
43
+ }
44
+ }
45
+ else if (normalizedTranslate >= normalizedGrid) {
46
+ slideIndex = i;
47
+ }
48
+ }
49
+ }
50
+ // Directions locks
51
+ if (swiper.initialized && slideIndex !== activeIndex) {
52
+ if (!swiper.allowSlideNext &&
53
+ (rtl
54
+ ? translate > swiper.translate && translate > swiper.minTranslate()
55
+ : translate < swiper.translate && translate < swiper.minTranslate())) {
56
+ return false;
57
+ }
58
+ if (!swiper.allowSlidePrev &&
59
+ translate > swiper.translate &&
60
+ translate > swiper.maxTranslate()) {
61
+ if ((activeIndex || 0) !== slideIndex) {
62
+ return false;
63
+ }
64
+ }
65
+ }
66
+ if (slideIndex !== (previousIndex || 0) && runCallbacks) {
67
+ swiper.emit('beforeSlideChangeStart');
68
+ }
69
+ // Update progress
70
+ swiper.updateProgress(translate);
71
+ var direction;
72
+ if (slideIndex > activeIndex)
73
+ direction = 'next';
74
+ else if (slideIndex < activeIndex)
75
+ direction = 'prev';
76
+ else
77
+ direction = 'reset';
78
+ // Update Index
79
+ if ((rtl && -translate === swiper.translate) || (!rtl && translate === swiper.translate)) {
80
+ swiper.updateActiveIndex(slideIndex);
81
+ // Update Height
82
+ if (params.autoHeight) {
83
+ swiper.updateAutoHeight();
84
+ }
85
+ swiper.updateSlidesClasses();
86
+ if (params.effect !== 'slide') {
87
+ swiper.setTranslate(translate);
88
+ }
89
+ if (direction !== 'reset') {
90
+ swiper.transitionStart(runCallbacks, direction);
91
+ swiper.transitionEnd(runCallbacks, direction);
92
+ }
93
+ return false;
94
+ }
95
+ if (params.cssMode) {
96
+ var isH_1 = swiper.isHorizontal();
97
+ var t_1 = rtl ? translate : -translate;
98
+ if (speed === 0) {
99
+ var isVirtual = swiper.virtual && swiper.params.virtual.enabled;
100
+ if (isVirtual) {
101
+ swiper.wrapperEl.style.scrollSnapType = 'none';
102
+ swiper._immediateVirtual = true;
103
+ }
104
+ if (isVirtual && !swiper._cssModeVirtualInitialSet && swiper.params.initialSlide > 0) {
105
+ swiper._cssModeVirtualInitialSet = true;
106
+ requestAnimationFrame(function () {
107
+ wrapperEl[isH_1 ? 'scrollLeft' : 'scrollTop'] = t_1;
108
+ });
109
+ }
110
+ else {
111
+ wrapperEl[isH_1 ? 'scrollLeft' : 'scrollTop'] = t_1;
112
+ }
113
+ if (isVirtual) {
114
+ requestAnimationFrame(function () {
115
+ swiper.wrapperEl.style.scrollSnapType = '';
116
+ swiper._immediateVirtual = false;
117
+ });
118
+ }
119
+ }
120
+ else {
121
+ if (!swiper.support.smoothScroll) {
122
+ (0, utils_1.animateCSSModeScroll)({ swiper: swiper, targetPosition: t_1, side: isH_1 ? 'left' : 'top' });
123
+ return true;
124
+ }
125
+ wrapperEl.scrollTo((_a = {},
126
+ _a[isH_1 ? 'left' : 'top'] = t_1,
127
+ _a.behavior = 'smooth',
128
+ _a));
129
+ }
130
+ return true;
131
+ }
132
+ swiper.setTransition(speed);
133
+ swiper.setTranslate(translate);
134
+ swiper.updateActiveIndex(slideIndex);
135
+ swiper.updateSlidesClasses();
136
+ swiper.emit('beforeTransitionStart', speed, internal);
137
+ swiper.transitionStart(runCallbacks, direction);
138
+ if (speed === 0) {
139
+ swiper.transitionEnd(runCallbacks, direction);
140
+ }
141
+ else if (!swiper.animating) {
142
+ swiper.animating = true;
143
+ if (!swiper.onSlideToWrapperTransitionEnd) {
144
+ swiper.onSlideToWrapperTransitionEnd = function transitionEnd(e) {
145
+ if (!swiper || swiper.destroyed)
146
+ return;
147
+ if (e.target !== this)
148
+ return;
149
+ swiper.wrapperEl.removeEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);
150
+ swiper.onSlideToWrapperTransitionEnd = null;
151
+ delete swiper.onSlideToWrapperTransitionEnd;
152
+ swiper.transitionEnd(runCallbacks, direction);
153
+ };
154
+ }
155
+ swiper.wrapperEl.addEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);
156
+ }
157
+ return true;
158
+ }
159
+ exports.default = slideTo;
160
+ //# sourceMappingURL=slideTo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slideTo.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/slide/slideTo.tsx"],"names":[],"mappings":";;AAAA,4CAA0D;AAE1D,SAAwB,OAAO,CAAC,KAAS,EAAE,KAAK,EAAE,YAAmB,EAAE,QAAQ,EAAE,OAAO;;IAAxD,sBAAA,EAAA,SAAS;IAAS,6BAAA,EAAA,mBAAmB;IACnE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,KAAK,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC9B,CAAC;IAED,IAAM,MAAM,GAAG,IAAI,CAAC;IAEpB,IAAI,UAAU,GAAG,KA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MAAM,CAAC,6BAA6B,CAAC;gBAC5C,MAAM,CAAC,aAAa,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;YAChD,CAAC,CAAC;QACJ,CAAC;QACD,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,eAAe,EAAE,MAAM,CAAC,6BAA6B,CAAC,CAAC;IAC3F,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AA3KD,0BA2KC"}
@@ -0,0 +1 @@
1
+ export default function slideToClickedSlide(): void;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var utils_1 = require("../../shared/utils.js");
4
+ function slideToClickedSlide() {
5
+ var swiper = this;
6
+ if (swiper.destroyed)
7
+ return;
8
+ var params = swiper.params, slidesEl = swiper.slidesEl;
9
+ var slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : params.slidesPerView;
10
+ var slideToIndex = swiper.clickedIndex;
11
+ var realIndex;
12
+ var slideSelector = swiper.isElement ? "swiper-slide" : ".".concat(params.slideClass);
13
+ if (params.loop) {
14
+ if (swiper.animating)
15
+ return;
16
+ realIndex = parseInt(swiper.clickedSlide.getAttribute('data-swiper-slide-index'), 10);
17
+ if (params.centeredSlides) {
18
+ if (slideToIndex < swiper.loopedSlides - slidesPerView / 2 ||
19
+ slideToIndex > swiper.slides.length - swiper.loopedSlides + slidesPerView / 2) {
20
+ swiper.loopFix();
21
+ slideToIndex = swiper.getSlideIndex((0, utils_1.elementChildren)(slidesEl, "".concat(slideSelector, "[data-swiper-slide-index=\"").concat(realIndex, "\"]"))[0]);
22
+ (0, utils_1.nextTick)(function () {
23
+ swiper.slideTo(slideToIndex);
24
+ });
25
+ }
26
+ else {
27
+ swiper.slideTo(slideToIndex);
28
+ }
29
+ }
30
+ else if (slideToIndex > swiper.slides.length - slidesPerView) {
31
+ swiper.loopFix();
32
+ slideToIndex = swiper.getSlideIndex((0, utils_1.elementChildren)(slidesEl, "".concat(slideSelector, "[data-swiper-slide-index=\"").concat(realIndex, "\"]"))[0]);
33
+ (0, utils_1.nextTick)(function () {
34
+ swiper.slideTo(slideToIndex);
35
+ });
36
+ }
37
+ else {
38
+ swiper.slideTo(slideToIndex);
39
+ }
40
+ }
41
+ else {
42
+ swiper.slideTo(slideToIndex);
43
+ }
44
+ }
45
+ exports.default = slideToClickedSlide;
46
+ //# sourceMappingURL=slideToClickedSlide.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slideToClickedSlide.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/slide/slideToClickedSlide.tsx"],"names":[],"mappings":";;AAAA,4CAA+D;AAE/D,SAAwB,mBAAmB;IACzC,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,MAAM,CAAC,SAAS;QAAE,OAAO;IACrB,IAAA,MAAM,GAAe,MAAM,OAArB,EAAE,QAAQ,GAAK,MAAM,SAAX,CAAY;IAEpC,IAAM,aAAa,GACjB,MAAM,CAAC,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;IACzF,IAAI,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IACvC,IAAI,SAAS,CAAC;IACd,IAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,WAAI,MAAM,CAAC,UAAU,CAAE,CAAC;IAClF,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QAChB,IAAI,MAAM,CAAC,SAAS;YAAE,OAAO;QAC7B,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC,yBAAyB,CAAC,EAAE,EAAE,CAAC,CAAC;QACtF,IAAI,MAAM,CAAC,cAAc,EAAE,CAAC;YAC1B,IACE,YAAY,GAAG,MAAM,CAAC,YAAY,GAAG,aAAa,GAAG,CAAC;gBACtD,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,YAAY,GAAG,aAAa,GAAG,CAAC,EAC7E,CAAC;gBACD,MAAM,CAAC,OAAO,EAAE,CAAC;gBACjB,YAAY,GAAG,MAAM,CAAC,aAAa,CACjC,IAAA,uBAAe,EAAC,QAAQ,EAAE,UAAG,aAAa,wCAA6B,SAAS,QAAI,CAAC,CAAC,CAAC,CAAC,CACzF,CAAC;gBAEF,IAAA,gBAAQ,EAAC;oBACP,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;gBAC/B,CAAC,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;aAAM,IAAI,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,aAAa,EAAE,CAAC;YAC/D,MAAM,CAAC,OAAO,EAAE,CAAC;YACjB,YAAY,GAAG,MAAM,CAAC,aAAa,CACjC,IAAA,uBAAe,EAAC,QAAQ,EAAE,UAAG,aAAa,wCAA6B,SAAS,QAAI,CAAC,CAAC,CAAC,CAAC,CACzF,CAAC;YAEF,IAAA,gBAAQ,EAAC;gBACP,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;YAC/B,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC;AA5CD,sCA4CC"}
@@ -0,0 +1 @@
1
+ export default function slideToClosest(speed: any, runCallbacks: boolean, internal: any, threshold?: number): any;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint no-unused-vars: "off" */
4
+ function slideToClosest(speed, runCallbacks, internal, threshold) {
5
+ if (runCallbacks === void 0) { runCallbacks = true; }
6
+ if (threshold === void 0) { threshold = 0.5; }
7
+ var swiper = this;
8
+ if (swiper.destroyed)
9
+ return;
10
+ if (typeof speed === 'undefined') {
11
+ speed = swiper.params.speed;
12
+ }
13
+ var index = swiper.activeIndex;
14
+ var skip = Math.min(swiper.params.slidesPerGroupSkip, index);
15
+ var snapIndex = skip + Math.floor((index - skip) / swiper.params.slidesPerGroup);
16
+ var translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;
17
+ if (translate >= swiper.snapGrid[snapIndex]) {
18
+ // The current translate is on or after the current snap index, so the choice
19
+ // is between the current index and the one after it.
20
+ var currentSnap = swiper.snapGrid[snapIndex];
21
+ var nextSnap = swiper.snapGrid[snapIndex + 1];
22
+ if (translate - currentSnap > (nextSnap - currentSnap) * threshold) {
23
+ index += swiper.params.slidesPerGroup;
24
+ }
25
+ }
26
+ else {
27
+ // The current translate is before the current snap index, so the choice
28
+ // is between the current index and the one before it.
29
+ var prevSnap = swiper.snapGrid[snapIndex - 1];
30
+ var currentSnap = swiper.snapGrid[snapIndex];
31
+ if (translate - prevSnap <= (currentSnap - prevSnap) * threshold) {
32
+ index -= swiper.params.slidesPerGroup;
33
+ }
34
+ }
35
+ index = Math.max(index, 0);
36
+ index = Math.min(index, swiper.slidesGrid.length - 1);
37
+ return swiper.slideTo(index, speed, runCallbacks, internal);
38
+ }
39
+ exports.default = slideToClosest;
40
+ //# sourceMappingURL=slideToClosest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slideToClosest.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/slide/slideToClosest.tsx"],"names":[],"mappings":";;AAAA,kCAAkC;AAClC,SAAwB,cAAc,CAAC,KAAK,EAAE,YAAmB,EAAE,QAAQ,EAAE,SAAe;IAA9C,6BAAA,EAAA,mBAAmB;IAAY,0BAAA,EAAA,eAAe;IAC1F,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,MAA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AAQ,CAAC,GAAG,SAAS,EAAE,CAAC;YACjE,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC;QACxC,CAAC;IACH,CAAC;IACD,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC3B,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAEtD,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC;AAnCD,iCAmCC"}
@@ -0,0 +1 @@
1
+ export default function slideToLoop(index: number, speed: any, runCallbacks: boolean, internal: any): any;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //@ts-nocheck
4
+ function slideToLoop(index, speed, runCallbacks, internal) {
5
+ if (index === void 0) { index = 0; }
6
+ if (runCallbacks === void 0) { runCallbacks = true; }
7
+ if (typeof index === 'string') {
8
+ var indexAsNumber = parseInt(index, 10);
9
+ index = indexAsNumber;
10
+ }
11
+ var swiper = this;
12
+ if (swiper.destroyed)
13
+ return;
14
+ if (typeof speed === 'undefined') {
15
+ speed = swiper.params.speed;
16
+ }
17
+ var gridEnabled = swiper.grid && swiper.params.grid && swiper.params.grid.rows > 1;
18
+ var newIndex = index;
19
+ if (swiper.params.loop) {
20
+ if (swiper.virtual && swiper.params.virtual.enabled) {
21
+ // eslint-disable-next-line
22
+ newIndex = newIndex + swiper.virtual.slidesBefore;
23
+ }
24
+ else {
25
+ var targetSlideIndex = void 0;
26
+ if (gridEnabled) {
27
+ var slideIndex_1 = newIndex * swiper.params.grid.rows;
28
+ targetSlideIndex = swiper.slides.filter(function (slideEl) { return slideEl.getAttribute('data-swiper-slide-index') * 1 === slideIndex_1; })[0].column;
29
+ }
30
+ else {
31
+ targetSlideIndex = swiper.getSlideIndexByData(newIndex);
32
+ }
33
+ var cols = gridEnabled
34
+ ? Math.ceil(swiper.slides.length / swiper.params.grid.rows)
35
+ : swiper.slides.length;
36
+ var centeredSlides = swiper.params.centeredSlides;
37
+ var slidesPerView = swiper.params.slidesPerView;
38
+ if (slidesPerView === 'auto') {
39
+ slidesPerView = swiper.slidesPerViewDynamic();
40
+ }
41
+ else {
42
+ slidesPerView = Math.ceil(parseFloat(swiper.params.slidesPerView, 10));
43
+ if (centeredSlides && slidesPerView % 2 === 0) {
44
+ slidesPerView = slidesPerView + 1;
45
+ }
46
+ }
47
+ var needLoopFix = cols - targetSlideIndex < slidesPerView;
48
+ if (centeredSlides) {
49
+ needLoopFix = needLoopFix || targetSlideIndex < Math.ceil(slidesPerView / 2);
50
+ }
51
+ if (internal && centeredSlides && swiper.params.slidesPerView !== 'auto' && !gridEnabled) {
52
+ needLoopFix = false;
53
+ }
54
+ if (needLoopFix) {
55
+ var direction = centeredSlides
56
+ ? targetSlideIndex < swiper.activeIndex
57
+ ? 'prev'
58
+ : 'next'
59
+ : targetSlideIndex - swiper.activeIndex - 1 < swiper.params.slidesPerView
60
+ ? 'next'
61
+ : 'prev';
62
+ swiper.loopFix({
63
+ direction: direction,
64
+ slideTo: true,
65
+ activeSlideIndex: direction === 'next' ? targetSlideIndex + 1 : targetSlideIndex - cols + 1,
66
+ slideRealIndex: direction === 'next' ? swiper.realIndex : undefined,
67
+ });
68
+ }
69
+ if (gridEnabled) {
70
+ var slideIndex_2 = newIndex * swiper.params.grid.rows;
71
+ newIndex = swiper.slides.filter(function (slideEl) { return slideEl.getAttribute('data-swiper-slide-index') * 1 === slideIndex_2; })[0].column;
72
+ }
73
+ else {
74
+ newIndex = swiper.getSlideIndexByData(newIndex);
75
+ }
76
+ }
77
+ }
78
+ requestAnimationFrame(function () {
79
+ swiper.slideTo(newIndex, speed, runCallbacks, internal);
80
+ });
81
+ return swiper;
82
+ }
83
+ exports.default = slideToLoop;
84
+ //# sourceMappingURL=slideToLoop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slideToLoop.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/slide/slideToLoop.tsx"],"names":[],"mappings":";;AAAA,aAAa;AACb,SAAwB,WAAW,CAAC,KAAS,EAAE,KAAK,EAAE,YAAmB,EAAE,QAAQ;IAA/C,sBAAA,EAAA,SAAS;IAAS,6BAAA,EAAA,mBAAmB;IACvE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAE1C,KAAK,GAAG,aAAa,CAAC;IACxB,CAAC;IACD,IAAM,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,MAAM,CAAC,SAAS;QAAE,OAAO;IAE7B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,CAAC;QACjC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAC9B,CAAC;IAED,IAAM,WAAW,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IACrF,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACpD,2BAA2B;YAC3B,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,IAAI,gBAAgB,SAAA,CAAC;YACrB,IAAI,WAAW,EAAE,CAAC;gBAChB,IAAM,YAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBACtD,gBAAgB,GAAG,MAAM,C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C,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AArFD,8BAqFC"}
@@ -0,0 +1,9 @@
1
+ import setTransition from './setTransition.js';
2
+ import transitionStart from './transitionStart.js';
3
+ import transitionEnd from './transitionEnd.js';
4
+ declare const _default: {
5
+ setTransition: typeof setTransition;
6
+ transitionStart: typeof transitionStart;
7
+ transitionEnd: typeof transitionEnd;
8
+ };
9
+ export default _default;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var setTransition_1 = __importDefault(require("./setTransition.js"));
7
+ var transitionStart_1 = __importDefault(require("./transitionStart.js"));
8
+ var transitionEnd_1 = __importDefault(require("./transitionEnd.js"));
9
+ exports.default = {
10
+ setTransition: setTransition_1.default,
11
+ transitionStart: transitionStart_1.default,
12
+ transitionEnd: transitionEnd_1.default,
13
+ };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/transition/index.tsx"],"names":[],"mappings":";;;;;AAAA,kEAA4C;AAC5C,sEAAgD;AAChD,kEAA4C;AAE5C,kBAAe;IACb,aAAa,yBAAA;IACb,eAAe,2BAAA;IACf,aAAa,yBAAA;CACd,CAAC"}
@@ -0,0 +1 @@
1
+ export default function setTransition(duration: any, byController: any): void;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function setTransition(duration, byController) {
4
+ var swiper = this;
5
+ if (!swiper.params.cssMode) {
6
+ swiper.wrapperEl.style.transitionDuration = "".concat(duration, "ms");
7
+ swiper.wrapperEl.style.transitionDelay = duration === 0 ? "0ms" : '';
8
+ }
9
+ swiper.emit('setTransition', duration, byController);
10
+ }
11
+ exports.default = setTransition;
12
+ //# sourceMappingURL=setTransition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setTransition.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/transition/setTransition.tsx"],"names":[],"mappings":";;AAAA,SAAwB,aAAa,CAAC,QAAQ,EAAE,YAAY;IAC1D,IAAM,MAAM,GAAG,IAAI,CAAC;IAEpB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,kBAAkB,GAAG,UAAG,QAAQ,OAAI,CAAC;QAC5D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,eAAe,GAAG,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACvD,CAAC;AATD,gCASC"}
@@ -0,0 +1,6 @@
1
+ export default function transitionEmit({ swiper, runCallbacks, direction, step }: {
2
+ swiper: any;
3
+ runCallbacks: any;
4
+ direction: any;
5
+ step: any;
6
+ }): void;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function transitionEmit(_a) {
4
+ var swiper = _a.swiper, runCallbacks = _a.runCallbacks, direction = _a.direction, step = _a.step;
5
+ var activeIndex = swiper.activeIndex, previousIndex = swiper.previousIndex;
6
+ var dir = direction;
7
+ if (!dir) {
8
+ if (activeIndex > previousIndex)
9
+ dir = 'next';
10
+ else if (activeIndex < previousIndex)
11
+ dir = 'prev';
12
+ else
13
+ dir = 'reset';
14
+ }
15
+ swiper.emit("transition".concat(step));
16
+ if (runCallbacks && activeIndex !== previousIndex) {
17
+ if (dir === 'reset') {
18
+ swiper.emit("slideResetTransition".concat(step));
19
+ return;
20
+ }
21
+ swiper.emit("slideChangeTransition".concat(step));
22
+ if (dir === 'next') {
23
+ swiper.emit("slideNextTransition".concat(step));
24
+ }
25
+ else {
26
+ swiper.emit("slidePrevTransition".concat(step));
27
+ }
28
+ }
29
+ }
30
+ exports.default = transitionEmit;
31
+ //# sourceMappingURL=transitionEmit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transitionEmit.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/transition/transitionEmit.tsx"],"names":[],"mappings":";;AAAA,SAAwB,cAAc,CAAC,EAAyC;QAAvC,MAAM,YAAA,EAAE,YAAY,kBAAA,EAAE,SAAS,eAAA,EAAE,IAAI,UAAA;IACpE,IAAA,WAAW,GAAoB,MAAM,YAA1B,EAAE,aAAa,GAAK,MAAM,cAAX,CAAY;IAC9C,IAAI,GAAG,GAAG,SAAS,CAAC;IACpB,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,IAAI,WAAW,GAAG,aAAa;YAAE,GAAG,GAAG,MAAM,CAAC;aACzC,IAAI,WAAW,GAAG,aAAa;YAAE,GAAG,GAAG,MAAM,CAAC;;YAC9C,GAAG,GAAG,OAAO,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,oBAAa,IAAI,CAAE,CAAC,CAAC;IAEjC,IAAI,YAAY,IAAI,WAAW,KAAK,aAAa,EAAE,CAAC;QAClD,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;YACpB,MAAM,CAAC,IAAI,CAAC,8BAAuB,IAAI,CAAE,CAAC,CAAC;YAC3C,OAAO;QACT,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,+BAAwB,IAAI,CAAE,CAAC,CAAC;QAC5C,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,6BAAsB,IAAI,CAAE,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,CAAC,6BAAsB,IAAI,CAAE,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;AACH,CAAC;AAvBD,iCAuBC"}
@@ -0,0 +1 @@
1
+ export default function transitionEnd(runCallbacks: boolean, direction: any): void;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var transitionEmit_1 = __importDefault(require("./transitionEmit.js"));
7
+ function transitionEnd(runCallbacks, direction) {
8
+ if (runCallbacks === void 0) { runCallbacks = true; }
9
+ var swiper = this;
10
+ var params = swiper.params;
11
+ swiper.animating = false;
12
+ if (params.cssMode)
13
+ return;
14
+ swiper.setTransition(0);
15
+ (0, transitionEmit_1.default)({ swiper: swiper, runCallbacks: runCallbacks, direction: direction, step: 'End' });
16
+ }
17
+ exports.default = transitionEnd;
18
+ //# sourceMappingURL=transitionEnd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transitionEnd.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/transition/transitionEnd.tsx"],"names":[],"mappings":";;;;;AAAA,oEAA8C;AAE9C,SAAwB,aAAa,CAAC,YAAmB,EAAE,SAAS;IAA9B,6BAAA,EAAA,mBAAmB;IACvD,IAAM,MAAM,GAAG,IAAI,CAAC;IACZ,IAAA,MAAM,GAAK,MAAM,OAAX,CAAY;IAC1B,MAAM,CAAC,SAAS,GAAG,KAAK,CAAC;IACzB,IAAI,MAAM,CAAC,OAAO;QAAE,OAAO;IAC3B,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAExB,IAAA,wBAAc,EAAC,EAAE,MAAM,QAAA,EAAE,YAAY,cAAA,EAAE,SAAS,WAAA,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AACnE,CAAC;AARD,gCAQC"}
@@ -0,0 +1 @@
1
+ export default function transitionStart(runCallbacks: boolean, direction: any): void;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var transitionEmit_1 = __importDefault(require("./transitionEmit.js"));
7
+ function transitionStart(runCallbacks, direction) {
8
+ if (runCallbacks === void 0) { runCallbacks = true; }
9
+ var swiper = this;
10
+ var params = swiper.params;
11
+ if (params.cssMode)
12
+ return;
13
+ if (params.autoHeight) {
14
+ swiper.updateAutoHeight();
15
+ }
16
+ (0, transitionEmit_1.default)({ swiper: swiper, runCallbacks: runCallbacks, direction: direction, step: 'Start' });
17
+ }
18
+ exports.default = transitionStart;
19
+ //# sourceMappingURL=transitionStart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transitionStart.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/carousel/swiper/core/transition/transitionStart.tsx"],"names":[],"mappings":";;;;;AAAA,oEAA8C;AAE9C,SAAwB,eAAe,CAAC,YAAmB,EAAE,SAAS;IAA9B,6BAAA,EAAA,mBAAmB;IACzD,IAAM,MAAM,GAAG,IAAI,CAAC;IACZ,IAAA,MAAM,GAAK,MAAM,OAAX,CAAY;IAC1B,IAAI,MAAM,CAAC,OAAO;QAAE,OAAO;IAC3B,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACtB,MAAM,CAAC,gBAAgB,EAAE,CAAC;IAC5B,CAAC;IAED,IAAA,wBAAc,EAAC,EAAE,MAAM,QAAA,EAAE,YAAY,cAAA,EAAE,SAAS,WAAA,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;AACrE,CAAC;AATD,kCASC"}
@@ -0,0 +1 @@
1
+ export default function getSwiperTranslate(axis?: string): any;