@okam/stack-ui 1.32.5 → 1.32.7

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 (425) hide show
  1. package/index101.js +1 -1
  2. package/index101.mjs +1 -1
  3. package/index102.js +1 -1
  4. package/index102.mjs +3 -3
  5. package/index103.js +1 -1
  6. package/index103.mjs +1 -1
  7. package/index110.js +1 -1
  8. package/index110.mjs +5 -5
  9. package/index111.js +1 -1
  10. package/index111.mjs +2 -2
  11. package/index112.js +1 -1
  12. package/index112.mjs +1 -1
  13. package/index113.js +1 -1
  14. package/index113.mjs +2 -2
  15. package/index115.js +1 -1
  16. package/index115.mjs +4 -4
  17. package/index116.js +1 -1
  18. package/index116.mjs +2 -2
  19. package/index120.js +1 -1
  20. package/index120.mjs +4 -4
  21. package/index121.js +1 -1
  22. package/index121.mjs +2 -2
  23. package/index122.js +1 -1
  24. package/index122.mjs +2 -2
  25. package/index123.js +1 -1
  26. package/index123.mjs +8 -8
  27. package/index125.js +1 -1
  28. package/index125.mjs +2 -2
  29. package/index126.js +1 -1
  30. package/index126.mjs +3 -3
  31. package/index130.js +1 -1
  32. package/index130.mjs +2 -2
  33. package/index138.js +1 -1
  34. package/index138.mjs +52 -12
  35. package/index139.js +1 -1
  36. package/index139.mjs +46 -52
  37. package/index140.js +1 -1
  38. package/index140.mjs +241 -46
  39. package/index141.js +2 -1
  40. package/index141.mjs +13 -241
  41. package/index142.js +1 -2
  42. package/index142.mjs +29 -12
  43. package/index143.js +1 -1
  44. package/index143.mjs +11 -29
  45. package/index145.js +1 -1
  46. package/index145.mjs +1 -1
  47. package/index146.js +1 -1
  48. package/index146.mjs +1 -1
  49. package/index147.js +1 -1
  50. package/index147.mjs +2 -2
  51. package/index148.js +1 -1
  52. package/index148.mjs +3 -3
  53. package/index149.js +1 -1
  54. package/index149.mjs +3 -3
  55. package/index150.js +1 -1
  56. package/index150.mjs +107 -24
  57. package/index151.js +1 -1
  58. package/index151.mjs +79 -110
  59. package/index152.js +1 -1
  60. package/index152.mjs +25 -106
  61. package/index153.js +1 -1
  62. package/index153.mjs +23 -82
  63. package/index154.js +1 -1
  64. package/index154.mjs +113 -25
  65. package/index155.js +1 -1
  66. package/index155.mjs +2 -2
  67. package/index156.js +1 -1
  68. package/index156.mjs +123 -17
  69. package/index157.js +1 -1
  70. package/index157.mjs +24 -122
  71. package/index158.js +1 -1
  72. package/index158.mjs +17 -71
  73. package/index159.js +1 -1
  74. package/index159.mjs +62 -338
  75. package/index160.js +1 -1
  76. package/index160.mjs +346 -42
  77. package/index161.js +1 -1
  78. package/index161.mjs +43 -29
  79. package/index162.js +1 -1
  80. package/index162.mjs +28 -24
  81. package/index164.js +1 -1
  82. package/index164.mjs +2 -2
  83. package/index167.js +1 -1
  84. package/index167.mjs +3 -3
  85. package/index169.js +1 -1
  86. package/index169.mjs +4 -4
  87. package/index17.js +1 -1
  88. package/index17.mjs +15 -15
  89. package/index170.js +1 -1
  90. package/index170.mjs +2 -2
  91. package/index171.js +1 -1
  92. package/index171.mjs +1 -1
  93. package/index173.js +1 -1
  94. package/index173.mjs +1 -1
  95. package/index175.js +1 -1
  96. package/index175.mjs +1 -1
  97. package/index176.js +1 -1
  98. package/index176.mjs +1 -1
  99. package/index177.js +1 -1
  100. package/index177.mjs +1 -1
  101. package/index178.js +1 -1
  102. package/index178.mjs +4 -4
  103. package/index179.js +1 -1
  104. package/index179.mjs +1 -1
  105. package/index180.js +1 -1
  106. package/index180.mjs +2 -2
  107. package/index182.js +1 -1
  108. package/index182.mjs +1 -1
  109. package/index184.js +1 -1
  110. package/index184.mjs +1 -1
  111. package/index185.js +1 -1
  112. package/index185.mjs +197 -205
  113. package/index186.js +1 -1
  114. package/index186.mjs +64 -24
  115. package/index187.js +1 -1
  116. package/index187.mjs +143 -4
  117. package/index188.js +1 -1
  118. package/index188.mjs +124 -3
  119. package/index189.js +1 -1
  120. package/index189.mjs +215 -116
  121. package/index190.js +1 -1
  122. package/index190.mjs +184 -23
  123. package/index191.js +1 -1
  124. package/index191.mjs +69 -51
  125. package/index192.js +1 -1
  126. package/index192.mjs +278 -43
  127. package/index193.js +1 -1
  128. package/index193.mjs +92 -31
  129. package/index194.js +1 -1
  130. package/index194.mjs +184 -109
  131. package/index195.js +1 -1
  132. package/index195.mjs +84 -77
  133. package/index196.js +1 -1
  134. package/index196.mjs +58 -101
  135. package/index197.js +1 -1
  136. package/index197.mjs +127 -98
  137. package/index198.js +1 -1
  138. package/index198.mjs +101 -188
  139. package/index199.js +1 -1
  140. package/index199.mjs +110 -52
  141. package/index200.js +1 -1
  142. package/index200.mjs +67 -138
  143. package/index201.js +1 -1
  144. package/index201.mjs +105 -119
  145. package/index202.js +1 -1
  146. package/index202.mjs +47 -219
  147. package/index203.js +1 -1
  148. package/index203.mjs +88 -185
  149. package/index204.js +1 -1
  150. package/index204.mjs +63 -62
  151. package/index205.js +1 -1
  152. package/index205.mjs +52 -275
  153. package/index206.js +1 -1
  154. package/index206.mjs +94 -93
  155. package/index207.js +5 -1
  156. package/index207.mjs +75 -183
  157. package/index208.js +1 -1
  158. package/index208.mjs +2014 -73
  159. package/index209.js +1 -1
  160. package/index209.mjs +57 -56
  161. package/index21.js +1 -1
  162. package/index21.mjs +96 -92
  163. package/index210.js +1 -1
  164. package/index210.mjs +185 -123
  165. package/index211.js +1 -1
  166. package/index211.mjs +205 -110
  167. package/index212.js +1 -1
  168. package/index212.mjs +24 -122
  169. package/index213.js +1 -1
  170. package/index213.mjs +4 -72
  171. package/index214.js +1 -1
  172. package/index214.mjs +3 -110
  173. package/index215.js +1 -1
  174. package/index215.mjs +124 -51
  175. package/index216.js +1 -1
  176. package/index216.mjs +29 -93
  177. package/index217.js +1 -1
  178. package/index217.mjs +51 -70
  179. package/index218.js +1 -1
  180. package/index218.mjs +44 -56
  181. package/index219.js +1 -1
  182. package/index219.mjs +36 -98
  183. package/index220.js +1 -5
  184. package/index220.mjs +111 -78
  185. package/index221.js +1 -1
  186. package/index221.mjs +73 -2021
  187. package/index222.js +1 -1
  188. package/index222.mjs +99 -57
  189. package/index223.js +1 -1
  190. package/index223.mjs +98 -189
  191. package/index224.js +1 -1
  192. package/index224.mjs +4 -4
  193. package/index225.js +1 -1
  194. package/index225.mjs +1 -1
  195. package/index226.js +1 -1
  196. package/index226.mjs +3 -3
  197. package/index227.js +1 -1
  198. package/index227.mjs +34 -34
  199. package/index230.js +1 -1
  200. package/index230.mjs +2 -2
  201. package/index231.js +1 -1
  202. package/index231.mjs +1 -1
  203. package/index266.js +1 -1
  204. package/index266.mjs +34 -34
  205. package/index269.js +1 -1
  206. package/index269.mjs +130 -4
  207. package/index270.js +1 -1
  208. package/index270.mjs +188 -22
  209. package/index271.js +1 -1
  210. package/index271.mjs +8 -46
  211. package/index272.js +1 -1
  212. package/index272.mjs +3 -5
  213. package/index273.js +1 -1
  214. package/index273.mjs +37 -6
  215. package/index274.js +1 -1
  216. package/index274.mjs +5 -14
  217. package/index275.js +1 -1
  218. package/index275.mjs +29 -24
  219. package/index276.js +1 -1
  220. package/index276.mjs +6 -28
  221. package/index277.js +1 -1
  222. package/index277.mjs +4 -31
  223. package/index278.js +1 -1
  224. package/index278.mjs +48 -9
  225. package/index279.js +1 -1
  226. package/index279.mjs +9 -28
  227. package/index280.js +1 -1
  228. package/index280.mjs +16 -10
  229. package/index281.js +1 -1
  230. package/index281.mjs +16 -6
  231. package/index282.js +1 -1
  232. package/index282.mjs +16 -8
  233. package/index283.js +1 -1
  234. package/index283.mjs +16 -14
  235. package/index284.js +1 -1
  236. package/index284.mjs +16 -9
  237. package/index285.js +1 -1
  238. package/index285.mjs +15 -130
  239. package/index286.js +1 -1
  240. package/index286.mjs +16 -191
  241. package/index287.js +1 -1
  242. package/index287.mjs +16 -10
  243. package/index288.js +1 -1
  244. package/index288.mjs +16 -4
  245. package/index289.js +1 -1
  246. package/index289.mjs +16 -37
  247. package/index290.js +1 -1
  248. package/index290.mjs +16 -6
  249. package/index291.js +1 -1
  250. package/index291.mjs +16 -30
  251. package/index292.js +1 -1
  252. package/index292.mjs +16 -7
  253. package/index293.js +1 -1
  254. package/index293.mjs +16 -49
  255. package/index294.js +1 -1
  256. package/index294.mjs +15 -15
  257. package/index295.js +1 -1
  258. package/index295.mjs +12 -12
  259. package/index296.js +1 -1
  260. package/index296.mjs +15 -15
  261. package/index297.js +1 -1
  262. package/index297.mjs +12 -12
  263. package/index298.js +1 -1
  264. package/index298.mjs +12 -12
  265. package/index299.js +1 -1
  266. package/index299.mjs +15 -15
  267. package/index300.js +1 -1
  268. package/index300.mjs +12 -12
  269. package/index301.js +1 -1
  270. package/index301.mjs +15 -15
  271. package/index302.js +1 -1
  272. package/index302.mjs +12 -12
  273. package/index303.js +1 -1
  274. package/index303.mjs +12 -12
  275. package/index304.js +1 -1
  276. package/index304.mjs +12 -12
  277. package/index305.js +1 -1
  278. package/index305.mjs +15 -15
  279. package/index306.js +1 -1
  280. package/index306.mjs +15 -15
  281. package/index307.js +1 -1
  282. package/index307.mjs +15 -15
  283. package/index308.js +1 -1
  284. package/index308.mjs +15 -15
  285. package/index309.js +1 -1
  286. package/index309.mjs +15 -15
  287. package/index310.js +1 -1
  288. package/index310.mjs +15 -15
  289. package/index311.js +1 -1
  290. package/index311.mjs +15 -15
  291. package/index312.js +1 -1
  292. package/index312.mjs +15 -15
  293. package/index313.js +1 -1
  294. package/index313.mjs +15 -15
  295. package/index314.js +1 -1
  296. package/index314.mjs +25 -16
  297. package/index315.js +1 -1
  298. package/index315.mjs +48 -16
  299. package/index316.js +1 -1
  300. package/index316.mjs +6 -16
  301. package/index317.js +1 -1
  302. package/index317.mjs +6 -16
  303. package/index318.js +1 -1
  304. package/index318.mjs +15 -16
  305. package/index319.js +1 -1
  306. package/index319.mjs +25 -16
  307. package/index320.js +1 -1
  308. package/index320.mjs +29 -16
  309. package/index321.js +1 -1
  310. package/index321.mjs +32 -16
  311. package/index322.js +1 -1
  312. package/index322.mjs +29 -16
  313. package/index323.js +1 -1
  314. package/index323.mjs +10 -16
  315. package/index324.js +1 -1
  316. package/index324.mjs +6 -16
  317. package/index325.js +1 -1
  318. package/index325.mjs +8 -16
  319. package/index326.js +1 -1
  320. package/index326.mjs +14 -16
  321. package/index327.js +1 -1
  322. package/index327.mjs +9 -16
  323. package/index328.js +1 -1
  324. package/index328.mjs +1 -1
  325. package/index329.js +1 -1
  326. package/index329.mjs +1 -1
  327. package/index331.js +1 -1
  328. package/index331.mjs +1 -1
  329. package/index332.js +1 -1
  330. package/index332.mjs +2 -2
  331. package/index333.js +1 -1
  332. package/index333.mjs +1 -1
  333. package/index337.js +1 -1
  334. package/index337.mjs +1 -1
  335. package/index338.js +1 -1
  336. package/index338.mjs +4 -7
  337. package/index339.js +1 -1
  338. package/index339.mjs +6 -68
  339. package/index340.js +1 -1
  340. package/index340.mjs +65 -27
  341. package/index341.js +1 -1
  342. package/index341.mjs +30 -6
  343. package/index342.js +1 -1
  344. package/index342.mjs +6 -6
  345. package/index343.js +1 -1
  346. package/index343.mjs +6 -20
  347. package/index344.js +1 -1
  348. package/index344.mjs +20 -3
  349. package/index345.js +1 -1
  350. package/index345.mjs +117 -5
  351. package/index346.js +1 -1
  352. package/index346.mjs +71 -117
  353. package/index347.js +1 -1
  354. package/index347.mjs +7 -71
  355. package/index348.js +1 -1
  356. package/index348.mjs +7 -7
  357. package/index349.js +1 -1
  358. package/index349.mjs +7 -7
  359. package/index350.js +1 -1
  360. package/index350.mjs +7 -7
  361. package/index351.js +1 -1
  362. package/index351.mjs +4 -4
  363. package/index352.js +1 -1
  364. package/index352.mjs +7 -7
  365. package/index353.js +1 -1
  366. package/index353.mjs +7 -7
  367. package/index354.js +1 -1
  368. package/index354.mjs +4 -4
  369. package/index355.js +1 -1
  370. package/index355.mjs +4 -4
  371. package/index356.js +1 -1
  372. package/index356.mjs +4 -4
  373. package/index357.js +1 -1
  374. package/index357.mjs +4 -4
  375. package/index358.js +1 -1
  376. package/index358.mjs +7 -7
  377. package/index359.js +1 -1
  378. package/index359.mjs +7 -7
  379. package/index360.js +1 -1
  380. package/index360.mjs +7 -7
  381. package/index361.js +1 -1
  382. package/index361.mjs +4 -4
  383. package/index362.js +1 -1
  384. package/index362.mjs +7 -7
  385. package/index363.js +1 -1
  386. package/index363.mjs +7 -7
  387. package/index364.js +1 -1
  388. package/index364.mjs +7 -7
  389. package/index365.js +1 -1
  390. package/index365.mjs +7 -7
  391. package/index366.js +1 -1
  392. package/index366.mjs +7 -7
  393. package/index367.js +1 -1
  394. package/index367.mjs +4 -4
  395. package/index368.js +1 -1
  396. package/index368.mjs +7 -7
  397. package/index369.js +1 -1
  398. package/index369.mjs +7 -7
  399. package/index370.js +1 -1
  400. package/index370.mjs +3 -3
  401. package/index371.js +1 -1
  402. package/index371.mjs +4 -4
  403. package/index372.js +1 -1
  404. package/index372.mjs +7 -7
  405. package/index373.js +1 -1
  406. package/index373.mjs +7 -7
  407. package/index374.js +1 -1
  408. package/index374.mjs +7 -7
  409. package/index375.js +1 -1
  410. package/index375.mjs +4 -4
  411. package/index376.js +1 -1
  412. package/index376.mjs +7 -7
  413. package/index377.js +1 -1
  414. package/index377.mjs +4 -4
  415. package/index378.js +1 -1
  416. package/index378.mjs +4 -4
  417. package/index379.js +1 -1
  418. package/index379.mjs +7 -7
  419. package/index380.js +1 -1
  420. package/index380.mjs +4 -4
  421. package/index381.js +1 -1
  422. package/index381.mjs +6 -8
  423. package/index99.js +1 -1
  424. package/index99.mjs +1 -1
  425. package/package.json +1 -1
package/index210.mjs CHANGED
@@ -1,129 +1,191 @@
1
- import { g as S } from "./index285.mjs";
2
- function k(x) {
3
- let {
4
- swiper: e,
5
- extendParams: B,
6
- on: s,
7
- emit: r,
8
- params: u
9
- } = x;
10
- e.autoplay = {
11
- running: !1,
12
- paused: !1,
13
- timeLeft: 0
14
- }, B({
15
- autoplay: {
16
- enabled: !1,
17
- delay: 3e3,
18
- waitForTransition: !0,
19
- disableOnInteraction: !1,
20
- stopOnLastSlide: !1,
21
- reverseDirection: !1,
22
- pauseOnMouseEnter: !1
23
- }
1
+ const z = [
2
+ "eventsPrefix",
3
+ "injectStyles",
4
+ "injectStylesUrls",
5
+ "modules",
6
+ "init",
7
+ "_direction",
8
+ "oneWayMovement",
9
+ "swiperElementNodeName",
10
+ "touchEventsTarget",
11
+ "initialSlide",
12
+ "_speed",
13
+ "cssMode",
14
+ "updateOnWindowResize",
15
+ "resizeObserver",
16
+ "nested",
17
+ "focusableElements",
18
+ "_enabled",
19
+ "_width",
20
+ "_height",
21
+ "preventInteractionOnTransition",
22
+ "userAgent",
23
+ "url",
24
+ "_edgeSwipeDetection",
25
+ "_edgeSwipeThreshold",
26
+ "_freeMode",
27
+ "_autoHeight",
28
+ "setWrapperSize",
29
+ "virtualTranslate",
30
+ "_effect",
31
+ "breakpoints",
32
+ "breakpointsBase",
33
+ "_spaceBetween",
34
+ "_slidesPerView",
35
+ "maxBackfaceHiddenSlides",
36
+ "_grid",
37
+ "_slidesPerGroup",
38
+ "_slidesPerGroupSkip",
39
+ "_slidesPerGroupAuto",
40
+ "_centeredSlides",
41
+ "_centeredSlidesBounds",
42
+ "_slidesOffsetBefore",
43
+ "_slidesOffsetAfter",
44
+ "normalizeSlideIndex",
45
+ "_centerInsufficientSlides",
46
+ "_watchOverflow",
47
+ "roundLengths",
48
+ "touchRatio",
49
+ "touchAngle",
50
+ "simulateTouch",
51
+ "_shortSwipes",
52
+ "_longSwipes",
53
+ "longSwipesRatio",
54
+ "longSwipesMs",
55
+ "_followFinger",
56
+ "allowTouchMove",
57
+ "_threshold",
58
+ "touchMoveStopPropagation",
59
+ "touchStartPreventDefault",
60
+ "touchStartForcePreventDefault",
61
+ "touchReleaseOnEdges",
62
+ "uniqueNavElements",
63
+ "_resistance",
64
+ "_resistanceRatio",
65
+ "_watchSlidesProgress",
66
+ "_grabCursor",
67
+ "preventClicks",
68
+ "preventClicksPropagation",
69
+ "_slideToClickedSlide",
70
+ "_loop",
71
+ "loopAdditionalSlides",
72
+ "loopAddBlankSlides",
73
+ "loopPreventsSliding",
74
+ "_rewind",
75
+ "_allowSlidePrev",
76
+ "_allowSlideNext",
77
+ "_swipeHandler",
78
+ "_noSwiping",
79
+ "noSwipingClass",
80
+ "noSwipingSelector",
81
+ "passiveListeners",
82
+ "containerModifierClass",
83
+ "slideClass",
84
+ "slideActiveClass",
85
+ "slideVisibleClass",
86
+ "slideFullyVisibleClass",
87
+ "slideNextClass",
88
+ "slidePrevClass",
89
+ "slideBlankClass",
90
+ "wrapperClass",
91
+ "lazyPreloaderClass",
92
+ "lazyPreloadPrevNext",
93
+ "runCallbacksOnInit",
94
+ "observer",
95
+ "observeParents",
96
+ "observeSlideChildren",
97
+ // modules
98
+ "a11y",
99
+ "_autoplay",
100
+ "_controller",
101
+ "coverflowEffect",
102
+ "cubeEffect",
103
+ "fadeEffect",
104
+ "flipEffect",
105
+ "creativeEffect",
106
+ "cardsEffect",
107
+ "hashNavigation",
108
+ "history",
109
+ "keyboard",
110
+ "mousewheel",
111
+ "_navigation",
112
+ "_pagination",
113
+ "parallax",
114
+ "_scrollbar",
115
+ "_thumbs",
116
+ "virtual",
117
+ "zoom",
118
+ "control"
119
+ ];
120
+ function b(t) {
121
+ return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
122
+ }
123
+ function j(t, i) {
124
+ const r = ["__proto__", "constructor", "prototype"];
125
+ Object.keys(i).filter((e) => r.indexOf(e) < 0).forEach((e) => {
126
+ typeof t[e] > "u" ? t[e] = i[e] : b(i[e]) && b(t[e]) && Object.keys(i[e]).length > 0 ? i[e].__swiper__ ? t[e] = i[e] : j(t[e], i[e]) : t[e] = i[e];
24
127
  });
25
- let y, E, b = u && u.autoplay ? u.autoplay.delay : 3e3, g = u && u.autoplay ? u.autoplay.delay : 3e3, n, f = (/* @__PURE__ */ new Date()).getTime(), w, v, p, h, L, o, D;
26
- function M(t) {
27
- !e || e.destroyed || !e.wrapperEl || t.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", M), !(D || t.detail && t.detail.bySwiperTouchMove) && l());
28
- }
29
- const O = () => {
30
- if (e.destroyed || !e.autoplay.running) return;
31
- e.autoplay.paused ? w = !0 : w && (g = n, w = !1);
32
- const t = e.autoplay.paused ? n : f + g - (/* @__PURE__ */ new Date()).getTime();
33
- e.autoplay.timeLeft = t, r("autoplayTimeLeft", t, t / b), E = requestAnimationFrame(() => {
34
- O();
35
- });
36
- }, C = () => {
37
- let t;
38
- return e.virtual && e.params.virtual.enabled ? t = e.slides.filter((a) => a.classList.contains("swiper-slide-active"))[0] : t = e.slides[e.activeIndex], t ? parseInt(t.getAttribute("data-swiper-autoplay"), 10) : void 0;
39
- }, T = (t) => {
40
- if (e.destroyed || !e.autoplay.running) return;
41
- cancelAnimationFrame(E), O();
42
- let i = typeof t > "u" ? e.params.autoplay.delay : t;
43
- b = e.params.autoplay.delay, g = e.params.autoplay.delay;
44
- const a = C();
45
- !Number.isNaN(a) && a > 0 && typeof t > "u" && (i = a, b = a, g = a), n = i;
46
- const c = e.params.speed, N = () => {
47
- !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(c, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, c, !0, !0), r("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(c, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, c, !0, !0), r("autoplay")), e.params.cssMode && (f = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
48
- T();
49
- })));
50
- };
51
- return i > 0 ? (clearTimeout(y), y = setTimeout(() => {
52
- N();
53
- }, i)) : requestAnimationFrame(() => {
54
- N();
55
- }), i;
56
- }, I = () => {
57
- f = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, T(), r("autoplayStart");
58
- }, m = () => {
59
- e.autoplay.running = !1, clearTimeout(y), cancelAnimationFrame(E), r("autoplayStop");
60
- }, d = (t, i) => {
61
- if (e.destroyed || !e.autoplay.running) return;
62
- clearTimeout(y), t || (o = !0);
63
- const a = () => {
64
- r("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", M) : l();
65
- };
66
- if (e.autoplay.paused = !0, i) {
67
- L && (n = e.params.autoplay.delay), L = !1, a();
68
- return;
69
- }
70
- n = (n || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - f), !(e.isEnd && n < 0 && !e.params.loop) && (n < 0 && (n = 0), a());
71
- }, l = () => {
72
- e.isEnd && n < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (f = (/* @__PURE__ */ new Date()).getTime(), o ? (o = !1, T(n)) : T(), e.autoplay.paused = !1, r("autoplayResume"));
73
- }, A = () => {
74
- if (e.destroyed || !e.autoplay.running) return;
75
- const t = S();
76
- t.visibilityState === "hidden" && (o = !0, d(!0)), t.visibilityState === "visible" && l();
77
- }, P = (t) => {
78
- t.pointerType === "mouse" && (o = !0, D = !0, !(e.animating || e.autoplay.paused) && d(!0));
79
- }, F = (t) => {
80
- t.pointerType === "mouse" && (D = !1, e.autoplay.paused && l());
81
- }, q = () => {
82
- e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", P), e.el.addEventListener("pointerleave", F));
83
- }, R = () => {
84
- e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", P), e.el.removeEventListener("pointerleave", F));
85
- }, _ = () => {
86
- S().addEventListener("visibilitychange", A);
87
- }, j = () => {
88
- S().removeEventListener("visibilitychange", A);
128
+ }
129
+ function M(t) {
130
+ return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
131
+ }
132
+ function B(t) {
133
+ return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
134
+ }
135
+ function I(t) {
136
+ return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
137
+ }
138
+ function L(t) {
139
+ t === void 0 && (t = "");
140
+ const i = t.split(" ").map((e) => e.trim()).filter((e) => !!e), r = [];
141
+ return i.forEach((e) => {
142
+ r.indexOf(e) < 0 && r.push(e);
143
+ }), r.join(" ");
144
+ }
145
+ function N(t) {
146
+ return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
147
+ }
148
+ function A(t) {
149
+ let {
150
+ swiper: i,
151
+ slides: r,
152
+ passedParams: e,
153
+ changedParams: o,
154
+ nextEl: s,
155
+ prevEl: a,
156
+ scrollbarEl: d,
157
+ paginationEl: c
158
+ } = t;
159
+ const h = o.filter((n) => n !== "children" && n !== "direction" && n !== "wrapperClass"), {
160
+ params: l,
161
+ pagination: p,
162
+ navigation: f,
163
+ scrollbar: v,
164
+ virtual: u,
165
+ thumbs: E
166
+ } = i;
167
+ let S, _, x, C, P, m, O, g;
168
+ o.includes("thumbs") && e.thumbs && e.thumbs.swiper && !e.thumbs.swiper.destroyed && l.thumbs && (!l.thumbs.swiper || l.thumbs.swiper.destroyed) && (S = !0), o.includes("controller") && e.controller && e.controller.control && l.controller && !l.controller.control && (_ = !0), o.includes("pagination") && e.pagination && (e.pagination.el || c) && (l.pagination || l.pagination === !1) && p && !p.el && (x = !0), o.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || d) && (l.scrollbar || l.scrollbar === !1) && v && !v.el && (C = !0), o.includes("navigation") && e.navigation && (e.navigation.prevEl || a) && (e.navigation.nextEl || s) && (l.navigation || l.navigation === !1) && f && !f.prevEl && !f.nextEl && (P = !0);
169
+ const T = (n) => {
170
+ i[n] && (i[n].destroy(), n === "navigation" ? (i.isElement && (i[n].prevEl.remove(), i[n].nextEl.remove()), l[n].prevEl = void 0, l[n].nextEl = void 0, i[n].prevEl = void 0, i[n].nextEl = void 0) : (i.isElement && i[n].el.remove(), l[n].el = void 0, i[n].el = void 0));
89
171
  };
90
- s("init", () => {
91
- e.params.autoplay.enabled && (q(), _(), I());
92
- }), s("destroy", () => {
93
- R(), j(), e.autoplay.running && m();
94
- }), s("_freeModeStaticRelease", () => {
95
- (p || o) && l();
96
- }), s("_freeModeNoMomentumRelease", () => {
97
- e.params.autoplay.disableOnInteraction ? m() : d(!0, !0);
98
- }), s("beforeTransitionStart", (t, i, a) => {
99
- e.destroyed || !e.autoplay.running || (a || !e.params.autoplay.disableOnInteraction ? d(!0, !0) : m());
100
- }), s("sliderFirstMove", () => {
101
- if (!(e.destroyed || !e.autoplay.running)) {
102
- if (e.params.autoplay.disableOnInteraction) {
103
- m();
104
- return;
105
- }
106
- v = !0, p = !1, o = !1, h = setTimeout(() => {
107
- o = !0, p = !0, d(!0);
108
- }, 200);
109
- }
110
- }), s("touchEnd", () => {
111
- if (!(e.destroyed || !e.autoplay.running || !v)) {
112
- if (clearTimeout(h), clearTimeout(y), e.params.autoplay.disableOnInteraction) {
113
- p = !1, v = !1;
114
- return;
115
- }
116
- p && e.params.cssMode && l(), p = !1, v = !1;
172
+ o.includes("loop") && i.isElement && (l.loop && !e.loop ? m = !0 : !l.loop && e.loop ? O = !0 : g = !0), h.forEach((n) => {
173
+ if (b(l[n]) && b(e[n]))
174
+ Object.assign(l[n], e[n]), (n === "navigation" || n === "pagination" || n === "scrollbar") && "enabled" in e[n] && !e[n].enabled && T(n);
175
+ else {
176
+ const w = e[n];
177
+ (w === !0 || w === !1) && (n === "navigation" || n === "pagination" || n === "scrollbar") ? w === !1 && T(n) : l[n] = e[n];
117
178
  }
118
- }), s("slideChange", () => {
119
- e.destroyed || !e.autoplay.running || (L = !0);
120
- }), Object.assign(e.autoplay, {
121
- start: I,
122
- stop: m,
123
- pause: d,
124
- resume: l
125
- });
179
+ }), h.includes("controller") && !_ && i.controller && i.controller.control && l.controller && l.controller.control && (i.controller.control = l.controller.control), o.includes("children") && r && u && l.virtual.enabled ? (u.slides = r, u.update(!0)) : o.includes("virtual") && u && l.virtual.enabled && (r && (u.slides = r), u.update(!0)), o.includes("children") && r && l.loop && (g = !0), S && E.init() && E.update(!0), _ && (i.controller.control = l.controller.control), x && (i.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), i.el.appendChild(c)), c && (l.pagination.el = c), p.init(), p.render(), p.update()), C && (i.isElement && (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-scrollbar"), d.part.add("scrollbar"), i.el.appendChild(d)), d && (l.scrollbar.el = d), v.init(), v.updateSize(), v.setTranslate()), P && (i.isElement && ((!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-next"), s.innerHTML = i.hostEl.constructor.nextButtonSvg, s.part.add("button-next"), i.el.appendChild(s)), (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-prev"), a.innerHTML = i.hostEl.constructor.prevButtonSvg, a.part.add("button-prev"), i.el.appendChild(a))), s && (l.navigation.nextEl = s), a && (l.navigation.prevEl = a), f.init(), f.update()), o.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), o.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), o.includes("direction") && i.changeDirection(e.direction, !1), (m || g) && i.loopDestroy(), (O || g) && i.loopCreate(), i.update();
126
180
  }
127
181
  export {
128
- k as default
182
+ B as a,
183
+ I as b,
184
+ L as d,
185
+ j as e,
186
+ b as i,
187
+ M as n,
188
+ z as p,
189
+ A as u,
190
+ N as w
129
191
  };
package/index211.js CHANGED
@@ -1 +1 @@
1
- "use strict";const I=require("./index285.js"),h=require("./index286.js");function g(w){let{swiper:e,extendParams:x,on:m}=w;x({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let f=!1,b=!1;e.thumbs={swiper:null};function v(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const s=t.clickedIndex,r=t.clickedSlide;if(r&&r.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof s>"u"||s===null)return;let a;t.params.loop?a=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10):a=s,e.params.loop?e.slideToLoop(a):e.slideTo(a)}function p(){const{thumbs:t}=e.params;if(f)return!1;f=!0;const s=e.constructor;if(t.swiper instanceof s)e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(h.l(t.swiper)){const r=Object.assign({},t.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new s(r),b=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",v),!0}function o(t){const s=e.thumbs.swiper;if(!s||s.destroyed)return;const r=s.params.slidesPerView==="auto"?s.slidesPerViewDynamic():s.params.slidesPerView;let a=1;const l=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(a=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(a=1),a=Math.floor(a),s.slides.forEach(i=>i.classList.remove(l)),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let i=0;i<a;i+=1)h.e(s.slidesEl,`[data-swiper-slide-index="${e.realIndex+i}"]`).forEach(n=>{n.classList.add(l)});else for(let i=0;i<a;i+=1)s.slides[e.realIndex+i]&&s.slides[e.realIndex+i].classList.add(l);const d=e.params.thumbs.autoScrollOffset,u=d&&!s.params.loop;if(e.realIndex!==s.realIndex||u){const i=s.activeIndex;let n,c;if(s.params.loop){const S=s.slides.filter(T=>T.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];n=s.slides.indexOf(S),c=e.activeIndex>e.previousIndex?"next":"prev"}else n=e.realIndex,c=n>e.previousIndex?"next":"prev";u&&(n+=c==="next"?d:-1*d),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(n)<0&&(s.params.centeredSlides?n>i?n=n-Math.floor(r/2)+1:n=n+Math.floor(r/2)-1:n>i&&s.params.slidesPerGroup,s.slideTo(n,t?0:void 0))}}m("beforeInit",()=>{const{thumbs:t}=e.params;if(!(!t||!t.swiper))if(typeof t.swiper=="string"||t.swiper instanceof HTMLElement){const s=I.g(),r=()=>{const l=typeof t.swiper=="string"?s.querySelector(t.swiper):t.swiper;if(l&&l.swiper)t.swiper=l.swiper,p(),o(!0);else if(l){const d=`${e.params.eventsPrefix}init`,u=i=>{t.swiper=i.detail[0],l.removeEventListener(d,u),p(),o(!0),t.swiper.update(),e.update()};l.addEventListener(d,u)}return l},a=()=>{if(e.destroyed)return;r()||requestAnimationFrame(a)};requestAnimationFrame(a)}else p(),o(!0)}),m("slideChange update resize observerUpdate",()=>{o()}),m("setTransition",(t,s)=>{const r=e.thumbs.swiper;!r||r.destroyed||r.setTransition(s)}),m("beforeDestroy",()=>{const t=e.thumbs.swiper;!t||t.destroyed||b&&t.destroy()}),Object.assign(e.thumbs,{init:p,update:o})}module.exports=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index170.js"),w=require("./index184.js"),u=36e5;function g(e,r){let n=e.copy(),a="hour"in n?v(n,r):0;D(n,r.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=r.months||0,x(n),I(n),n.day+=(r.weeks||0)*7,n.day+=r.days||0,n.day+=a,F(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var c,h;let d=(c=(h=n.calendar).isInverseEra)===null||c===void 0?void 0:c.call(h,n);n.year=o,n.month=d?1:n.calendar.getMonthsInYear(n),n.day=d?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let t=n.calendar.getMonthsInYear(n);return n.month>t&&(n.month=t,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function D(e,r){var n,a;!((n=(a=e.calendar).isInverseEra)===null||n===void 0)&&n.call(a,e)&&(r=-r),e.year+=r}function x(e){for(;e.month<1;)D(e,-1),e.month+=e.calendar.getMonthsInYear(e);let r=0;for(;e.month>(r=e.calendar.getMonthsInYear(e));)e.month-=r,D(e,1)}function F(e){for(;e.day<1;)e.month--,x(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,x(e)}function I(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function $(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),I(e)}function b(e){let r={};for(let n in e)typeof e[n]=="number"&&(r[n]=-e[n]);return r}function G(e,r){return g(e,b(r))}function Z(e,r){let n=e.copy();return r.era!=null&&(n.era=r.era),r.year!=null&&(n.year=r.year),r.month!=null&&(n.month=r.month),r.day!=null&&(n.day=r.day),$(n),n}function m(e,r){let n=e.copy();return r.hour!=null&&(n.hour=r.hour),r.minute!=null&&(n.minute=r.minute),r.second!=null&&(n.second=r.second),r.millisecond!=null&&(n.millisecond=r.millisecond),Y(n),n}function P(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=y(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=y(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=y(e.minute,60);let r=Math.floor(e.hour/24);return e.hour=y(e.hour,24),r}function Y(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function y(e,r){let n=e%r;return n<0&&(n+=r),n}function v(e,r){return e.hour+=r.hours||0,e.minute+=r.minutes||0,e.second+=r.seconds||0,e.millisecond+=r.milliseconds||0,P(e)}function A(e,r){let n=e.copy();return v(n,r),n}function q(e,r){return A(e,b(r))}function C(e,r,n,a){let o=e.copy();switch(r){case"era":{let t=e.calendar.getEras(),d=t.indexOf(e.era);if(d<0)throw new Error("Invalid era: "+e.era);d=s(d,n,0,t.length-1,a==null?void 0:a.round),o.era=t[d],$(o);break}case"year":var c,h;!((c=(h=o.calendar).isInverseEra)===null||c===void 0)&&c.call(h,o)&&(n=-n),o.year=s(e.year,n,-1/0,9999,a==null?void 0:a.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=s(e.month,n,1,e.calendar.getMonthsInYear(e),a==null?void 0:a.round);break;case"day":o.day=s(e.day,n,1,e.calendar.getDaysInMonth(e),a==null?void 0:a.round);break;default:throw new Error("Unsupported field "+r)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),$(o),o}function k(e,r,n,a){let o=e.copy();switch(r){case"hour":{let c=e.hour,h=0,t=23;if((a==null?void 0:a.hourCycle)===12){let d=c>=12;h=d?12:0,t=d?23:11}o.hour=s(c,n,h,t,a==null?void 0:a.round);break}case"minute":o.minute=s(e.minute,n,0,59,a==null?void 0:a.round);break;case"second":o.second=s(e.second,n,0,59,a==null?void 0:a.round);break;case"millisecond":o.millisecond=s(e.millisecond,n,0,999,a==null?void 0:a.round);break;default:throw new Error("Unsupported field "+r)}return o}function s(e,r,n,a,o=!1){if(o){e+=Math.sign(r),e<n&&(e=a);let c=Math.abs(r);r>0?e=Math.ceil(e/c)*c:e=Math.floor(e/c)*c,e>a&&(e=n)}else e+=r,e<n?e=a-(n-e-1):e>a&&(e=n+(e-a-1));return e}function E(e,r){let n;if(r.years!=null&&r.years!==0||r.months!=null&&r.months!==0||r.weeks!=null&&r.weeks!==0||r.days!=null&&r.days!==0){let o=g(l.toCalendarDateTime(e),{years:r.years,months:r.months,weeks:r.weeks,days:r.days});n=l.toAbsolute(o,e.timeZone)}else n=l.epochFromDate(e)-e.offset;n+=r.milliseconds||0,n+=(r.seconds||0)*1e3,n+=(r.minutes||0)*6e4,n+=(r.hours||0)*36e5;let a=l.fromAbsolute(n,e.timeZone);return l.toCalendar(a,e.calendar)}function N(e,r){return E(e,b(r))}function S(e,r,n,a){switch(r){case"hour":{let o=0,c=23;if((a==null?void 0:a.hourCycle)===12){let i=e.hour>=12;o=i?12:0,c=i?23:11}let h=l.toCalendarDateTime(e),t=l.toCalendar(m(h,{hour:o}),new w.GregorianCalendar),d=[l.toAbsolute(t,e.timeZone,"earlier"),l.toAbsolute(t,e.timeZone,"later")].filter(i=>l.fromAbsolute(i,e.timeZone).day===t.day)[0],M=l.toCalendar(m(h,{hour:c}),new w.GregorianCalendar),p=[l.toAbsolute(M,e.timeZone,"earlier"),l.toAbsolute(M,e.timeZone,"later")].filter(i=>l.fromAbsolute(i,e.timeZone).day===M.day).pop(),f=l.epochFromDate(e)-e.offset,O=Math.floor(f/u),U=f%u;return f=s(O,n,Math.floor(d/u),Math.floor(p/u),a==null?void 0:a.round)*u+U,l.toCalendar(l.fromAbsolute(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return k(e,r,n,a);case"era":case"year":case"month":case"day":{let o=C(l.toCalendarDateTime(e),r,n,a),c=l.toAbsolute(o,e.timeZone);return l.toCalendar(l.fromAbsolute(c,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+r)}}function V(e,r,n){let a=l.toCalendarDateTime(e),o=m(Z(a,r),r);if(o.compare(a)===0)return e;let c=l.toAbsolute(o,e.timeZone,n);return l.toCalendar(l.fromAbsolute(c,e.timeZone),e.calendar)}exports.add=g;exports.addTime=A;exports.addZoned=E;exports.constrain=$;exports.constrainTime=Y;exports.cycleDate=C;exports.cycleTime=k;exports.cycleZoned=S;exports.invertDuration=b;exports.set=Z;exports.setTime=m;exports.setZoned=V;exports.subtract=G;exports.subtractTime=q;exports.subtractZoned=N;