@okam/stack-ui 1.28.0 → 1.29.1

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 (569) hide show
  1. package/components/Button/interface.d.ts +2 -2
  2. package/components/Menu/interface.d.ts +5 -2
  3. package/components/Video/index.d.ts +3 -0
  4. package/components/Video/interface.d.ts +6 -0
  5. package/components/WysiwygBlock/attributes.d.ts +2 -0
  6. package/index.d.ts +1 -2
  7. package/index.js +1 -1
  8. package/index.mjs +101 -103
  9. package/index10.js +1 -1
  10. package/index10.mjs +1 -1
  11. package/index100.js +2 -1
  12. package/index100.mjs +22 -17
  13. package/index101.js +1 -2
  14. package/index101.mjs +63 -22
  15. package/index102.js +1 -1
  16. package/index102.mjs +24 -58
  17. package/index103.js +1 -1
  18. package/index103.mjs +52 -29
  19. package/index104.js +1 -1
  20. package/index107.js +1 -1
  21. package/index107.mjs +1 -1
  22. package/index108.js +1 -1
  23. package/index109.js +1 -1
  24. package/index109.mjs +2 -2
  25. package/index11.js +1 -1
  26. package/index11.mjs +3 -3
  27. package/index110.js +1 -1
  28. package/index111.js +1 -1
  29. package/index112.js +1 -1
  30. package/index112.mjs +1 -1
  31. package/index113.js +1 -1
  32. package/index113.mjs +1 -1
  33. package/index114.js +1 -1
  34. package/index114.mjs +1 -1
  35. package/index115.js +1 -1
  36. package/index115.mjs +9 -9
  37. package/index116.js +1 -1
  38. package/index116.mjs +3 -3
  39. package/index117.js +1 -1
  40. package/index118.js +1 -1
  41. package/index119.js +1 -1
  42. package/index12.js +1 -1
  43. package/index12.mjs +1 -1
  44. package/index120.js +1 -1
  45. package/index120.mjs +2 -2
  46. package/index121.js +1 -1
  47. package/index121.mjs +1 -1
  48. package/index122.js +1 -1
  49. package/index122.mjs +1 -1
  50. package/index123.js +1 -1
  51. package/index123.mjs +21 -5
  52. package/index124.js +1 -1
  53. package/index124.mjs +11 -21
  54. package/index125.js +2 -1
  55. package/index125.mjs +22 -11
  56. package/index126.js +1 -1
  57. package/index126.mjs +12 -42
  58. package/index127.js +1 -2
  59. package/index127.mjs +46 -22
  60. package/index128.js +1 -1
  61. package/index128.mjs +241 -12
  62. package/index129.js +2 -1
  63. package/index129.mjs +13 -46
  64. package/index13.js +1 -1
  65. package/index13.mjs +8 -5
  66. package/index130.js +1 -1
  67. package/index130.mjs +28 -239
  68. package/index131.js +1 -2
  69. package/index131.mjs +51 -13
  70. package/index132.js +1 -1
  71. package/index132.mjs +27 -30
  72. package/index133.js +1 -1
  73. package/index133.mjs +19 -49
  74. package/index134.js +1 -1
  75. package/index134.mjs +61 -26
  76. package/index135.js +1 -1
  77. package/index135.mjs +91 -17
  78. package/index136.js +1 -1
  79. package/index136.mjs +31 -3
  80. package/index137.js +1 -4
  81. package/index137.mjs +119 -244
  82. package/index138.js +1 -1
  83. package/index138.mjs +27 -61
  84. package/index139.js +1 -1
  85. package/index139.mjs +122 -92
  86. package/index14.js +1 -1
  87. package/index14.mjs +2 -2
  88. package/index140.js +1 -1
  89. package/index140.mjs +134 -31
  90. package/index141.js +1 -1
  91. package/index141.mjs +12 -119
  92. package/index142.js +1 -1
  93. package/index142.mjs +93 -25
  94. package/index143.js +1 -1
  95. package/index143.mjs +103 -121
  96. package/index144.js +1 -1
  97. package/index144.mjs +5 -134
  98. package/index145.js +1 -1
  99. package/index145.mjs +3 -14
  100. package/index146.js +1 -1
  101. package/index146.mjs +113 -83
  102. package/index147.js +1 -1
  103. package/index147.mjs +25 -102
  104. package/index148.js +1 -1
  105. package/index148.mjs +51 -5
  106. package/index149.js +1 -1
  107. package/index149.mjs +44 -3
  108. package/index15.js +1 -1
  109. package/index15.mjs +1 -1
  110. package/index150.js +1 -1
  111. package/index150.mjs +29 -117
  112. package/index151.js +1 -1
  113. package/index151.mjs +100 -16
  114. package/index152.js +1 -1
  115. package/index152.mjs +70 -44
  116. package/index153.js +1 -1
  117. package/index153.mjs +90 -33
  118. package/index154.js +1 -1
  119. package/index154.mjs +98 -38
  120. package/index155.js +1 -1
  121. package/index155.mjs +195 -109
  122. package/index156.js +1 -1
  123. package/index156.mjs +61 -74
  124. package/index157.js +1 -1
  125. package/index157.mjs +141 -101
  126. package/index158.js +1 -1
  127. package/index158.mjs +120 -98
  128. package/index159.js +1 -1
  129. package/index159.mjs +218 -2
  130. package/index16.js +1 -1
  131. package/index160.js +1 -1
  132. package/index160.mjs +190 -5
  133. package/index161.js +1 -1
  134. package/index161.mjs +68 -63
  135. package/index162.js +1 -1
  136. package/index162.mjs +255 -23
  137. package/index163.js +1 -1
  138. package/index163.mjs +94 -51
  139. package/index164.js +1 -1
  140. package/index164.mjs +171 -152
  141. package/index165.js +1 -1
  142. package/index165.mjs +83 -21
  143. package/index166.js +1 -1
  144. package/index166.mjs +57 -18
  145. package/index167.js +1 -1
  146. package/index167.mjs +123 -36
  147. package/index168.js +1 -1
  148. package/index168.mjs +113 -79
  149. package/index169.js +1 -1
  150. package/index169.mjs +119 -27
  151. package/index17.js +1 -1
  152. package/index17.mjs +1 -1
  153. package/index170.js +1 -1
  154. package/index170.mjs +70 -19
  155. package/index171.js +1 -1
  156. package/index171.mjs +110 -53
  157. package/index172.js +1 -1
  158. package/index172.mjs +53 -2
  159. package/index173.js +1 -11
  160. package/index173.mjs +92 -114
  161. package/index174.js +1 -1
  162. package/index174.mjs +63 -192
  163. package/index175.js +1 -1
  164. package/index175.mjs +51 -59
  165. package/index176.js +1 -1
  166. package/index176.mjs +93 -135
  167. package/index177.js +5 -1
  168. package/index177.mjs +75 -114
  169. package/index178.js +1 -1
  170. package/index178.mjs +1994 -200
  171. package/index179.js +1 -1
  172. package/index179.mjs +57 -188
  173. package/index18.js +1 -1
  174. package/index18.mjs +3 -3
  175. package/index180.js +1 -1
  176. package/index180.mjs +186 -67
  177. package/index181.js +1 -1
  178. package/index181.mjs +5 -258
  179. package/index182.js +1 -1
  180. package/index182.mjs +127 -94
  181. package/index183.js +1 -1
  182. package/index183.mjs +171 -166
  183. package/index184.js +1 -1
  184. package/index184.mjs +8 -83
  185. package/index185.js +1 -1
  186. package/index185.mjs +3 -58
  187. package/index186.js +1 -1
  188. package/index186.mjs +32 -122
  189. package/index187.js +1 -1
  190. package/index187.mjs +5 -116
  191. package/index188.js +1 -1
  192. package/index188.mjs +25 -118
  193. package/index189.js +1 -1
  194. package/index189.mjs +6 -72
  195. package/index19.js +1 -1
  196. package/index190.js +1 -1
  197. package/index190.mjs +306 -103
  198. package/index191.js +1 -1
  199. package/index191.mjs +189 -49
  200. package/index192.js +1 -1
  201. package/index192.mjs +8 -93
  202. package/index193.js +1 -1
  203. package/index193.mjs +24 -68
  204. package/index194.js +1 -1
  205. package/index194.mjs +54 -55
  206. package/index195.js +1 -1
  207. package/index195.mjs +42 -95
  208. package/index196.js +1 -5
  209. package/index196.mjs +123 -79
  210. package/index197.js +1 -1
  211. package/index197.mjs +5 -2011
  212. package/index198.js +1 -1
  213. package/index198.mjs +26 -57
  214. package/index199.js +1 -1
  215. package/index199.mjs +7 -189
  216. package/index2.js +1 -1
  217. package/index2.mjs +20 -20
  218. package/index20.js +1 -1
  219. package/index20.mjs +1 -1
  220. package/index200.js +1 -1
  221. package/index200.mjs +6 -4
  222. package/index201.js +1 -1
  223. package/index201.mjs +8 -2
  224. package/index202.js +1 -1
  225. package/index202.mjs +4 -52
  226. package/index203.js +1 -1
  227. package/index203.mjs +5 -20
  228. package/index204.js +1 -1
  229. package/index204.mjs +9 -23
  230. package/index21.js +1 -1
  231. package/index21.mjs +1 -1
  232. package/index22.js +1 -1
  233. package/index22.mjs +1 -1
  234. package/index23.js +1 -1
  235. package/index23.mjs +1 -1
  236. package/index24.js +1 -1
  237. package/index24.mjs +1 -1
  238. package/index25.js +1 -1
  239. package/index25.mjs +1 -1
  240. package/index26.js +1 -1
  241. package/index26.mjs +1 -1
  242. package/index27.js +1 -1
  243. package/index28.js +1 -1
  244. package/index28.mjs +2 -2
  245. package/index29.js +1 -1
  246. package/index29.mjs +1 -1
  247. package/index3.js +1 -1
  248. package/index3.mjs +1 -1
  249. package/index30.js +1 -1
  250. package/index31.js +1 -1
  251. package/index31.mjs +2 -2
  252. package/index32.js +1 -1
  253. package/index32.mjs +1 -1
  254. package/index33.js +1 -1
  255. package/index33.mjs +88 -65
  256. package/index34.js +1 -1
  257. package/index34.mjs +2 -2
  258. package/index35.js +1 -1
  259. package/index35.mjs +2 -2
  260. package/index36.js +1 -1
  261. package/index36.mjs +1 -1
  262. package/index37.js +1 -1
  263. package/index38.js +2 -1
  264. package/index38.mjs +20 -45
  265. package/index39.js +1 -2
  266. package/index39.mjs +5 -26
  267. package/index4.js +1 -1
  268. package/index4.mjs +4 -4
  269. package/index40.js +1 -1
  270. package/index40.mjs +7 -4
  271. package/index41.js +1 -1
  272. package/index41.mjs +5 -5
  273. package/index42.js +1 -1
  274. package/index42.mjs +5 -8
  275. package/index43.js +1 -1
  276. package/index43.mjs +2 -2
  277. package/index44.js +1 -1
  278. package/index44.mjs +1 -1
  279. package/index45.js +1 -1
  280. package/index45.mjs +4 -4
  281. package/index46.js +1 -1
  282. package/index46.mjs +9 -3
  283. package/index47.js +1 -1
  284. package/index47.mjs +9 -7
  285. package/index48.js +1 -1
  286. package/index48.mjs +9 -9
  287. package/index49.js +1 -1
  288. package/index49.mjs +46 -13
  289. package/index50.js +1 -1
  290. package/index50.mjs +8 -46
  291. package/index51.js +1 -1
  292. package/index51.mjs +69 -6
  293. package/index52.js +1 -1
  294. package/index52.mjs +8 -71
  295. package/index53.js +1 -1
  296. package/index53.mjs +12 -7
  297. package/index54.js +1 -1
  298. package/index54.mjs +9 -12
  299. package/index55.js +1 -1
  300. package/index55.mjs +17 -10
  301. package/index56.js +1 -1
  302. package/index56.mjs +13 -17
  303. package/index57.js +1 -1
  304. package/index57.mjs +5 -5
  305. package/index58.js +1 -1
  306. package/index58.mjs +6 -6
  307. package/index59.js +1 -1
  308. package/index59.mjs +8 -10
  309. package/index6.js +1 -1
  310. package/index6.mjs +1 -1
  311. package/index60.js +1 -1
  312. package/index60.mjs +5 -5
  313. package/index61.js +1 -1
  314. package/index61.mjs +8 -6
  315. package/index62.js +1 -1
  316. package/index62.mjs +14 -13
  317. package/index63.js +2 -1
  318. package/index63.mjs +23 -14
  319. package/index64.js +1 -1
  320. package/index64.mjs +15 -21
  321. package/index65.js +1 -1
  322. package/index65.mjs +14 -16
  323. package/index66.js +1 -1
  324. package/index66.mjs +40 -13
  325. package/index67.js +1 -1
  326. package/index67.mjs +36 -39
  327. package/index68.js +1 -1
  328. package/index68.mjs +11 -37
  329. package/index69.js +1 -1
  330. package/index69.mjs +10 -11
  331. package/index7.js +1 -1
  332. package/index7.mjs +1 -1
  333. package/index70.js +1 -1
  334. package/index70.mjs +13 -10
  335. package/index71.js +1 -1
  336. package/index71.mjs +10 -13
  337. package/index72.js +1 -2
  338. package/index72.mjs +2 -12
  339. package/index73.js +2 -1
  340. package/index73.mjs +9 -2
  341. package/index74.js +1 -1
  342. package/index74.mjs +6 -7
  343. package/index75.js +1 -1
  344. package/index75.mjs +6 -6
  345. package/index76.js +1 -1
  346. package/index76.mjs +6 -6
  347. package/index77.js +1 -2
  348. package/index77.mjs +25 -8
  349. package/index78.js +1 -1
  350. package/index78.mjs +2 -25
  351. package/index79.js +6 -1
  352. package/index79.mjs +94 -2
  353. package/index8.js +1 -1
  354. package/index8.mjs +3 -3
  355. package/index80.js +1 -6
  356. package/index80.mjs +54 -79
  357. package/index81.js +1 -1
  358. package/index81.mjs +33 -61
  359. package/index82.js +42 -1
  360. package/index82.mjs +67 -34
  361. package/index83.js +1 -42
  362. package/index83.mjs +154 -65
  363. package/index84.js +9 -1
  364. package/index84.mjs +47 -149
  365. package/index85.js +1 -9
  366. package/index85.mjs +36 -48
  367. package/index86.js +1 -1
  368. package/index86.mjs +8 -40
  369. package/index87.js +1 -1
  370. package/index87.mjs +31 -9
  371. package/index88.js +1 -1
  372. package/index88.mjs +6 -35
  373. package/index89.js +12 -1
  374. package/index89.mjs +40 -6
  375. package/index9.js +1 -1
  376. package/index9.mjs +38 -43
  377. package/index90.js +1 -12
  378. package/index90.mjs +25 -36
  379. package/index91.js +1 -1
  380. package/index91.mjs +8 -24
  381. package/index92.js +7 -1
  382. package/index92.mjs +13 -7
  383. package/index93.js +14 -6
  384. package/index93.mjs +65 -13
  385. package/index94.js +1 -15
  386. package/index94.mjs +7 -71
  387. package/index95.js +16 -1
  388. package/index95.mjs +25 -7
  389. package/index96.js +1 -16
  390. package/index96.mjs +37 -20
  391. package/index97.js +1 -1
  392. package/index97.mjs +43 -40
  393. package/index98.js +1 -1
  394. package/index98.mjs +47 -44
  395. package/index99.js +1 -1
  396. package/index99.mjs +17 -48
  397. package/package.json +1 -1
  398. package/theme/Alerts/index.d.ts +88 -0
  399. package/theme/Button/index.d.ts +28 -0
  400. package/theme/Carousel/index.d.ts +36 -0
  401. package/types/next-link.d.ts +16 -0
  402. package/components/DirectusImg/index.d.ts +0 -3
  403. package/components/DirectusImg/interface.d.ts +0 -20
  404. package/components/Img/index.d.ts +0 -3
  405. package/components/Img/interface.d.ts +0 -6
  406. package/index205.js +0 -1
  407. package/index205.mjs +0 -29
  408. package/index206.js +0 -1
  409. package/index206.mjs +0 -49
  410. package/index207.js +0 -1
  411. package/index207.mjs +0 -4
  412. package/index208.js +0 -1
  413. package/index208.mjs +0 -23
  414. package/index209.js +0 -1
  415. package/index209.mjs +0 -4
  416. package/index210.js +0 -1
  417. package/index210.mjs +0 -31
  418. package/index211.js +0 -1
  419. package/index211.mjs +0 -4
  420. package/index212.js +0 -1
  421. package/index212.mjs +0 -4
  422. package/index213.js +0 -1
  423. package/index213.mjs +0 -25
  424. package/index214.js +0 -1
  425. package/index214.mjs +0 -4
  426. package/index215.js +0 -1
  427. package/index215.mjs +0 -4
  428. package/index216.js +0 -1
  429. package/index216.mjs +0 -4
  430. package/index217.js +0 -1
  431. package/index217.mjs +0 -40
  432. package/index218.js +0 -1
  433. package/index218.mjs +0 -4
  434. package/index219.js +0 -1
  435. package/index219.mjs +0 -23
  436. package/index220.js +0 -1
  437. package/index220.mjs +0 -25
  438. package/index221.js +0 -1
  439. package/index221.mjs +0 -4
  440. package/index222.js +0 -1
  441. package/index222.mjs +0 -25
  442. package/index223.js +0 -1
  443. package/index223.mjs +0 -4
  444. package/index224.js +0 -1
  445. package/index224.mjs +0 -133
  446. package/index225.js +0 -1
  447. package/index225.mjs +0 -182
  448. package/index226.js +0 -1
  449. package/index226.mjs +0 -12
  450. package/index227.js +0 -1
  451. package/index227.mjs +0 -6
  452. package/index228.js +0 -1
  453. package/index228.mjs +0 -39
  454. package/index229.js +0 -1
  455. package/index229.mjs +0 -8
  456. package/index230.js +0 -1
  457. package/index230.mjs +0 -32
  458. package/index231.js +0 -1
  459. package/index231.mjs +0 -9
  460. package/index232.js +0 -1
  461. package/index232.mjs +0 -316
  462. package/index233.js +0 -1
  463. package/index233.mjs +0 -195
  464. package/index234.js +0 -1
  465. package/index234.mjs +0 -11
  466. package/index235.js +0 -1
  467. package/index235.mjs +0 -29
  468. package/index236.js +0 -1
  469. package/index236.mjs +0 -58
  470. package/index237.js +0 -1
  471. package/index237.mjs +0 -49
  472. package/index238.js +0 -1
  473. package/index238.mjs +0 -127
  474. package/index239.js +0 -1
  475. package/index239.mjs +0 -4
  476. package/index240.js +0 -1
  477. package/index240.mjs +0 -4
  478. package/index241.js +0 -1
  479. package/index241.mjs +0 -4
  480. package/index242.js +0 -1
  481. package/index242.mjs +0 -20
  482. package/index243.js +0 -1
  483. package/index243.mjs +0 -29
  484. package/index244.js +0 -1
  485. package/index244.mjs +0 -4
  486. package/index245.js +0 -1
  487. package/index245.mjs +0 -91
  488. package/index246.js +0 -1
  489. package/index246.mjs +0 -22
  490. package/index247.js +0 -1
  491. package/index247.mjs +0 -4
  492. package/index248.js +0 -1
  493. package/index248.mjs +0 -40
  494. package/index249.js +0 -1
  495. package/index249.mjs +0 -139
  496. package/index250.js +0 -1
  497. package/index250.mjs +0 -4
  498. package/index251.js +0 -1
  499. package/index251.mjs +0 -25
  500. package/index252.js +0 -1
  501. package/index252.mjs +0 -4
  502. package/index253.js +0 -1
  503. package/index253.mjs +0 -4
  504. package/index254.js +0 -1
  505. package/index254.mjs +0 -4
  506. package/index255.js +0 -1
  507. package/index255.mjs +0 -4
  508. package/index256.js +0 -1
  509. package/index256.mjs +0 -25
  510. package/index257.js +0 -1
  511. package/index257.mjs +0 -4
  512. package/index258.js +0 -1
  513. package/index258.mjs +0 -28
  514. package/index259.js +0 -1
  515. package/index259.mjs +0 -4
  516. package/index260.js +0 -1
  517. package/index260.mjs +0 -8
  518. package/index261.js +0 -1
  519. package/index261.mjs +0 -4
  520. package/index262.js +0 -1
  521. package/index262.mjs +0 -4
  522. package/index263.js +0 -1
  523. package/index263.mjs +0 -4
  524. package/index264.js +0 -1
  525. package/index264.mjs +0 -4
  526. package/index265.js +0 -1
  527. package/index265.mjs +0 -74
  528. package/index266.js +0 -1
  529. package/index266.mjs +0 -4
  530. package/index267.js +0 -1
  531. package/index267.mjs +0 -4
  532. package/index268.js +0 -1
  533. package/index268.mjs +0 -21
  534. package/index269.js +0 -1
  535. package/index269.mjs +0 -4
  536. package/index270.js +0 -1
  537. package/index270.mjs +0 -4
  538. package/index271.js +0 -1
  539. package/index271.mjs +0 -4
  540. package/index272.js +0 -1
  541. package/index272.mjs +0 -31
  542. package/index273.js +0 -1
  543. package/index273.mjs +0 -9
  544. package/index274.js +0 -1
  545. package/index274.mjs +0 -10
  546. package/index275.js +0 -1
  547. package/index275.mjs +0 -10
  548. package/index276.js +0 -1
  549. package/index276.mjs +0 -4
  550. package/index277.js +0 -1
  551. package/index277.mjs +0 -39
  552. package/index278.js +0 -1
  553. package/index278.mjs +0 -4
  554. package/index279.js +0 -1
  555. package/index279.mjs +0 -7
  556. package/index280.js +0 -1
  557. package/index280.mjs +0 -8
  558. package/index281.js +0 -1
  559. package/index281.mjs +0 -12
  560. package/index282.js +0 -1
  561. package/index282.mjs +0 -4
  562. package/index283.js +0 -1
  563. package/index283.mjs +0 -20
  564. package/index284.js +0 -1
  565. package/index284.mjs +0 -33
  566. package/index285.js +0 -1
  567. package/index285.mjs +0 -4
  568. package/index286.js +0 -1
  569. package/index286.mjs +0 -4
package/index183.mjs CHANGED
@@ -1,177 +1,182 @@
1
- import { c as v } from "./index227.mjs";
2
- import { c as U, g as q, m as n } from "./index225.mjs";
3
- function K(R) {
1
+ import { a as c, g as h } from "./index182.mjs";
2
+ function S(e) {
3
+ return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
4
+ }
5
+ function E(e) {
6
+ const t = e;
7
+ Object.keys(t).forEach((n) => {
8
+ try {
9
+ t[n] = null;
10
+ } catch {
11
+ }
12
+ try {
13
+ delete t[n];
14
+ } catch {
15
+ }
16
+ });
17
+ }
18
+ function v(e, t) {
19
+ return t === void 0 && (t = 0), setTimeout(e, t);
20
+ }
21
+ function M() {
22
+ return Date.now();
23
+ }
24
+ function T(e) {
25
+ const t = c();
26
+ let n;
27
+ return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
28
+ }
29
+ function C(e, t) {
30
+ t === void 0 && (t = "x");
31
+ const n = c();
32
+ let r, i, s;
33
+ const l = T(e);
34
+ return n.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((o) => o.replace(",", ".")).join(", ")), s = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = s.toString().split(",")), t === "x" && (n.WebKitCSSMatrix ? i = s.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), t === "y" && (n.WebKitCSSMatrix ? i = s.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
35
+ }
36
+ function m(e) {
37
+ return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
38
+ }
39
+ function b(e) {
40
+ return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
41
+ }
42
+ function y() {
43
+ const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
44
+ for (let n = 1; n < arguments.length; n += 1) {
45
+ const r = n < 0 || arguments.length <= n ? void 0 : arguments[n];
46
+ if (r != null && !b(r)) {
47
+ const i = Object.keys(Object(r)).filter((s) => t.indexOf(s) < 0);
48
+ for (let s = 0, l = i.length; s < l; s += 1) {
49
+ const o = i[s], a = Object.getOwnPropertyDescriptor(r, o);
50
+ a !== void 0 && a.enumerable && (m(e[o]) && m(r[o]) ? r[o].__swiper__ ? e[o] = r[o] : y(e[o], r[o]) : !m(e[o]) && m(r[o]) ? (e[o] = {}, r[o].__swiper__ ? e[o] = r[o] : y(e[o], r[o])) : e[o] = r[o]);
51
+ }
52
+ }
53
+ }
54
+ return e;
55
+ }
56
+ function O(e, t, n) {
57
+ e.style.setProperty(t, n);
58
+ }
59
+ function P(e) {
4
60
  let {
5
- swiper: i,
6
- extendParams: I,
7
- on: o
8
- } = R;
9
- I({
10
- a11y: {
11
- enabled: !0,
12
- notificationClass: "swiper-notification",
13
- prevSlideMessage: "Previous slide",
14
- nextSlideMessage: "Next slide",
15
- firstSlideMessage: "This is the first slide",
16
- lastSlideMessage: "This is the last slide",
17
- paginationBulletMessage: "Go to slide {{index}}",
18
- slideLabelMessage: "{{index}} / {{slidesLength}}",
19
- containerMessage: null,
20
- containerRoleDescriptionMessage: null,
21
- itemRoleDescriptionMessage: null,
22
- slideRole: "group",
23
- id: null
61
+ swiper: t,
62
+ targetPosition: n,
63
+ side: r
64
+ } = e;
65
+ const i = c(), s = -t.translate;
66
+ let l = null, o;
67
+ const a = t.params.speed;
68
+ t.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(t.cssModeFrameID);
69
+ const d = n > s ? "next" : "prev", g = (f, p) => d === "next" && f >= p || d === "prev" && f <= p, w = () => {
70
+ o = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = o);
71
+ const f = Math.max(Math.min((o - l) / a, 1), 0), p = 0.5 - Math.cos(f * Math.PI) / 2;
72
+ let u = s + p * (n - s);
73
+ if (g(u, n) && (u = n), t.wrapperEl.scrollTo({
74
+ [r]: u
75
+ }), g(u, n)) {
76
+ t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
77
+ t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({
78
+ [r]: u
79
+ });
80
+ }), i.cancelAnimationFrame(t.cssModeFrameID);
81
+ return;
24
82
  }
25
- }), i.a11y = {
26
- clicked: !1
83
+ t.cssModeFrameID = i.requestAnimationFrame(w);
27
84
  };
28
- let r = null;
29
- function c(e) {
30
- const a = r;
31
- a.length !== 0 && (a.innerHTML = "", a.innerHTML = e);
32
- }
33
- function T(e) {
34
- const a = () => Math.round(16 * Math.random()).toString(16);
35
- return "x".repeat(e).replace(/x/g, a);
36
- }
37
- function p(e) {
38
- e = n(e), e.forEach((a) => {
39
- a.setAttribute("tabIndex", "0");
40
- });
41
- }
42
- function b(e) {
43
- e = n(e), e.forEach((a) => {
44
- a.setAttribute("tabIndex", "-1");
45
- });
46
- }
47
- function m(e, a) {
48
- e = n(e), e.forEach((t) => {
49
- t.setAttribute("role", a);
50
- });
51
- }
52
- function h(e, a) {
53
- e = n(e), e.forEach((t) => {
54
- t.setAttribute("aria-roledescription", a);
55
- });
56
- }
57
- function P(e, a) {
58
- e = n(e), e.forEach((t) => {
59
- t.setAttribute("aria-controls", a);
60
- });
61
- }
62
- function f(e, a) {
63
- e = n(e), e.forEach((t) => {
64
- t.setAttribute("aria-label", a);
65
- });
66
- }
67
- function D(e, a) {
68
- e = n(e), e.forEach((t) => {
69
- t.setAttribute("id", a);
70
- });
71
- }
72
- function N(e, a) {
73
- e = n(e), e.forEach((t) => {
74
- t.setAttribute("aria-live", a);
75
- });
76
- }
77
- function y(e) {
78
- e = n(e), e.forEach((a) => {
79
- a.setAttribute("aria-disabled", !0);
80
- });
81
- }
82
- function M(e) {
83
- e = n(e), e.forEach((a) => {
84
- a.setAttribute("aria-disabled", !1);
85
- });
86
- }
87
- function d(e) {
88
- if (e.keyCode !== 13 && e.keyCode !== 32) return;
89
- const a = i.params.a11y, t = e.target;
90
- i.pagination && i.pagination.el && (t === i.pagination.el || i.pagination.el.contains(e.target)) && !e.target.matches(v(i.params.pagination.bulletClass)) || (i.navigation && i.navigation.nextEl && t === i.navigation.nextEl && (i.isEnd && !i.params.loop || i.slideNext(), i.isEnd ? c(a.lastSlideMessage) : c(a.nextSlideMessage)), i.navigation && i.navigation.prevEl && t === i.navigation.prevEl && (i.isBeginning && !i.params.loop || i.slidePrev(), i.isBeginning ? c(a.firstSlideMessage) : c(a.prevSlideMessage)), i.pagination && t.matches(v(i.params.pagination.bulletClass)) && t.click());
91
- }
92
- function B() {
93
- if (i.params.loop || i.params.rewind || !i.navigation) return;
94
- const {
95
- nextEl: e,
96
- prevEl: a
97
- } = i.navigation;
98
- a && (i.isBeginning ? (y(a), b(a)) : (M(a), p(a))), e && (i.isEnd ? (y(e), b(e)) : (M(e), p(e)));
85
+ w();
86
+ }
87
+ function j(e) {
88
+ return e.querySelector(".swiper-slide-transform") || e.shadowRoot && e.shadowRoot.querySelector(".swiper-slide-transform") || e;
89
+ }
90
+ function F(e, t) {
91
+ return t === void 0 && (t = ""), [...e.children].filter((n) => n.matches(t));
92
+ }
93
+ function _(e) {
94
+ try {
95
+ console.warn(e);
96
+ return;
97
+ } catch {
99
98
  }
100
- function x() {
101
- return i.pagination && i.pagination.bullets && i.pagination.bullets.length;
99
+ }
100
+ function A(e, t) {
101
+ t === void 0 && (t = []);
102
+ const n = document.createElement(e);
103
+ return n.classList.add(...Array.isArray(t) ? t : S(t)), n;
104
+ }
105
+ function L(e) {
106
+ const t = c(), n = h(), r = e.getBoundingClientRect(), i = n.body, s = e.clientTop || i.clientTop || 0, l = e.clientLeft || i.clientLeft || 0, o = e === t ? t.scrollY : e.scrollTop, a = e === t ? t.scrollX : e.scrollLeft;
107
+ return {
108
+ top: r.top + o - s,
109
+ left: r.left + a - l
110
+ };
111
+ }
112
+ function k(e, t) {
113
+ const n = [];
114
+ for (; e.previousElementSibling; ) {
115
+ const r = e.previousElementSibling;
116
+ t ? r.matches(t) && n.push(r) : n.push(r), e = r;
102
117
  }
103
- function L() {
104
- return x() && i.params.pagination.clickable;
118
+ return n;
119
+ }
120
+ function D(e, t) {
121
+ const n = [];
122
+ for (; e.nextElementSibling; ) {
123
+ const r = e.nextElementSibling;
124
+ t ? r.matches(t) && n.push(r) : n.push(r), e = r;
105
125
  }
106
- function F() {
107
- const e = i.params.a11y;
108
- x() && i.pagination.bullets.forEach((a) => {
109
- i.params.pagination.clickable && (p(a), i.params.pagination.renderBullet || (m(a, "button"), f(a, e.paginationBulletMessage.replace(/\{\{index\}\}/, q(a) + 1)))), a.matches(v(i.params.pagination.bulletActiveClass)) ? a.setAttribute("aria-current", "true") : a.removeAttribute("aria-current");
110
- });
126
+ return n;
127
+ }
128
+ function W(e, t) {
129
+ return c().getComputedStyle(e, null).getPropertyValue(t);
130
+ }
131
+ function I(e) {
132
+ let t = e, n;
133
+ if (t) {
134
+ for (n = 0; (t = t.previousSibling) !== null; )
135
+ t.nodeType === 1 && (n += 1);
136
+ return n;
111
137
  }
112
- const A = (e, a, t) => {
113
- p(e), e.tagName !== "BUTTON" && (m(e, "button"), e.addEventListener("keydown", d)), f(e, t), P(e, a);
114
- }, k = () => {
115
- i.a11y.clicked = !0;
116
- }, w = () => {
117
- requestAnimationFrame(() => {
118
- requestAnimationFrame(() => {
119
- i.destroyed || (i.a11y.clicked = !1);
120
- });
121
- });
122
- }, S = (e) => {
123
- if (i.a11y.clicked) return;
124
- const a = e.target.closest(`.${i.params.slideClass}, swiper-slide`);
125
- if (!a || !i.slides.includes(a)) return;
126
- const t = i.slides.indexOf(a) === i.activeIndex, s = i.params.watchSlidesProgress && i.visibleSlides && i.visibleSlides.includes(a);
127
- t || s || e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents || (i.isHorizontal() ? i.el.scrollLeft = 0 : i.el.scrollTop = 0, i.slideTo(i.slides.indexOf(a), 0));
128
- }, C = () => {
129
- const e = i.params.a11y;
130
- e.itemRoleDescriptionMessage && h(i.slides, e.itemRoleDescriptionMessage), e.slideRole && m(i.slides, e.slideRole);
131
- const a = i.slides.length;
132
- e.slideLabelMessage && i.slides.forEach((t, s) => {
133
- const E = i.params.loop ? parseInt(t.getAttribute("data-swiper-slide-index"), 10) : s, l = e.slideLabelMessage.replace(/\{\{index\}\}/, E + 1).replace(/\{\{slidesLength\}\}/, a);
134
- f(t, l);
135
- });
136
- }, O = () => {
137
- const e = i.params.a11y;
138
- i.el.append(r);
139
- const a = i.el;
140
- e.containerRoleDescriptionMessage && h(a, e.containerRoleDescriptionMessage), e.containerMessage && f(a, e.containerMessage);
141
- const t = i.wrapperEl, s = e.id || t.getAttribute("id") || `swiper-wrapper-${T(16)}`, E = i.params.autoplay && i.params.autoplay.enabled ? "off" : "polite";
142
- D(t, s), N(t, E), C();
143
- let {
144
- nextEl: l,
145
- prevEl: g
146
- } = i.navigation ? i.navigation : {};
147
- l = n(l), g = n(g), l && l.forEach((u) => A(u, s, e.nextSlideMessage)), g && g.forEach((u) => A(u, s, e.prevSlideMessage)), L() && n(i.pagination.el).forEach((H) => {
148
- H.addEventListener("keydown", d);
149
- }), i.el.addEventListener("focus", S, !0), i.el.addEventListener("pointerdown", k, !0), i.el.addEventListener("pointerup", w, !0);
150
- };
151
- function G() {
152
- r && r.remove();
153
- let {
154
- nextEl: e,
155
- prevEl: a
156
- } = i.navigation ? i.navigation : {};
157
- e = n(e), a = n(a), e && e.forEach((t) => t.removeEventListener("keydown", d)), a && a.forEach((t) => t.removeEventListener("keydown", d)), L() && n(i.pagination.el).forEach((s) => {
158
- s.removeEventListener("keydown", d);
159
- }), i.el.removeEventListener("focus", S, !0), i.el.removeEventListener("pointerdown", k, !0), i.el.removeEventListener("pointerup", w, !0);
138
+ }
139
+ function K(e, t) {
140
+ const n = [];
141
+ let r = e.parentElement;
142
+ for (; r; )
143
+ t ? r.matches(t) && n.push(r) : n.push(r), r = r.parentElement;
144
+ return n;
145
+ }
146
+ function q(e, t) {
147
+ function n(r) {
148
+ r.target === e && (t.call(e, r), e.removeEventListener("transitionend", n));
160
149
  }
161
- o("beforeInit", () => {
162
- r = U("span", i.params.a11y.notificationClass), r.setAttribute("aria-live", "assertive"), r.setAttribute("aria-atomic", "true");
163
- }), o("afterInit", () => {
164
- i.params.a11y.enabled && O();
165
- }), o("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
166
- i.params.a11y.enabled && C();
167
- }), o("fromEdge toEdge afterInit lock unlock", () => {
168
- i.params.a11y.enabled && B();
169
- }), o("paginationUpdate", () => {
170
- i.params.a11y.enabled && F();
171
- }), o("destroy", () => {
172
- i.params.a11y.enabled && G();
173
- });
150
+ t && e.addEventListener("transitionend", n);
151
+ }
152
+ function V(e, t, n) {
153
+ const r = c();
154
+ return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
155
+ }
156
+ function B(e) {
157
+ return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
174
158
  }
175
159
  export {
176
- K as default
160
+ K as a,
161
+ L as b,
162
+ A as c,
163
+ M as d,
164
+ F as e,
165
+ V as f,
166
+ I as g,
167
+ S as h,
168
+ C as i,
169
+ q as j,
170
+ m as k,
171
+ j as l,
172
+ B as m,
173
+ v as n,
174
+ W as o,
175
+ D as p,
176
+ k as q,
177
+ P as r,
178
+ O as s,
179
+ _ as t,
180
+ y as u,
181
+ E as v
177
182
  };
package/index184.js CHANGED
@@ -1 +1 @@
1
- "use strict";const h=require("./index224.js");function $(w){let{swiper:e,extendParams:S,on:c}=w;S({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let d=!1,o={};const u=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),f=t=>{const l=h.a();let r;t?r=new URL(t):r=l.location;const a=r.pathname.slice(1).split("/").filter(i=>i!==""),n=a.length,s=a[n-2],p=a[n-1];return{key:s,value:p}},m=(t,l)=>{const r=h.a();if(!d||!e.params.history.enabled)return;let a;e.params.url?a=new URL(e.params.url):a=r.location;const n=e.slides[l];let s=u(n.getAttribute("data-history"));if(e.params.history.root.length>0){let i=e.params.history.root;i[i.length-1]==="/"&&(i=i.slice(0,i.length-1)),s=`${i}/${t?`${t}/`:""}${s}`}else a.pathname.includes(t)||(s=`${t?`${t}/`:""}${s}`);e.params.history.keepQuery&&(s+=a.search);const p=r.history.state;p&&p.value===s||(e.params.history.replaceState?r.history.replaceState({value:s},null,s):r.history.pushState({value:s},null,s))},g=(t,l,r)=>{if(l)for(let a=0,n=e.slides.length;a<n;a+=1){const s=e.slides[a];if(u(s.getAttribute("data-history"))===l){const i=e.getSlideIndex(s);e.slideTo(i,t,r)}}else e.slideTo(0,t,r)},y=()=>{o=f(e.params.url),g(e.params.speed,o.value,!1)},v=()=>{const t=h.a();if(e.params.history){if(!t.history||!t.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(d=!0,o=f(e.params.url),!o.key&&!o.value){e.params.history.replaceState||t.addEventListener("popstate",y);return}g(0,o.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",y)}},b=()=>{const t=h.a();e.params.history.replaceState||t.removeEventListener("popstate",y)};c("init",()=>{e.params.history.enabled&&v()}),c("destroy",()=>{e.params.history.enabled&&b()}),c("transitionEnd _freeModeNoMomentumRelease",()=>{d&&m(e.params.history.key,e.activeIndex)}),c("slideChange",()=>{d&&e.params.cssMode&&m(e.params.history.key,e.activeIndex)})}module.exports=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index183.js");function o(i,f,l,n){return i.params.createElements&&Object.keys(n).forEach(e=>{if(!l[e]&&l.auto===!0){let t=u.e(i.el,`.${n[e]}`)[0];t||(t=u.c("div",n[e]),t.className=n[e],i.el.append(t)),l[e]=t,f[e]=t}}),l}exports.c=o;
package/index184.mjs CHANGED
@@ -1,87 +1,12 @@
1
- import { a as h } from "./index224.mjs";
2
- function x(w) {
3
- let {
4
- swiper: e,
5
- extendParams: S,
6
- on: c
7
- } = w;
8
- S({
9
- history: {
10
- enabled: !1,
11
- root: "",
12
- replaceState: !1,
13
- key: "slides",
14
- keepQuery: !1
1
+ import { e as i, c as m } from "./index183.mjs";
2
+ function o(f, a, n, l) {
3
+ return f.params.createElements && Object.keys(l).forEach((e) => {
4
+ if (!n[e] && n.auto === !0) {
5
+ let t = i(f.el, `.${l[e]}`)[0];
6
+ t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
15
7
  }
16
- });
17
- let d = !1, o = {};
18
- const y = (t) => t.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), u = (t) => {
19
- const l = h();
20
- let r;
21
- t ? r = new URL(t) : r = l.location;
22
- const a = r.pathname.slice(1).split("/").filter((i) => i !== ""), n = a.length, s = a[n - 2], p = a[n - 1];
23
- return {
24
- key: s,
25
- value: p
26
- };
27
- }, m = (t, l) => {
28
- const r = h();
29
- if (!d || !e.params.history.enabled) return;
30
- let a;
31
- e.params.url ? a = new URL(e.params.url) : a = r.location;
32
- const n = e.slides[l];
33
- let s = y(n.getAttribute("data-history"));
34
- if (e.params.history.root.length > 0) {
35
- let i = e.params.history.root;
36
- i[i.length - 1] === "/" && (i = i.slice(0, i.length - 1)), s = `${i}/${t ? `${t}/` : ""}${s}`;
37
- } else a.pathname.includes(t) || (s = `${t ? `${t}/` : ""}${s}`);
38
- e.params.history.keepQuery && (s += a.search);
39
- const p = r.history.state;
40
- p && p.value === s || (e.params.history.replaceState ? r.history.replaceState({
41
- value: s
42
- }, null, s) : r.history.pushState({
43
- value: s
44
- }, null, s));
45
- }, g = (t, l, r) => {
46
- if (l)
47
- for (let a = 0, n = e.slides.length; a < n; a += 1) {
48
- const s = e.slides[a];
49
- if (y(s.getAttribute("data-history")) === l) {
50
- const i = e.getSlideIndex(s);
51
- e.slideTo(i, t, r);
52
- }
53
- }
54
- else
55
- e.slideTo(0, t, r);
56
- }, f = () => {
57
- o = u(e.params.url), g(e.params.speed, o.value, !1);
58
- }, v = () => {
59
- const t = h();
60
- if (e.params.history) {
61
- if (!t.history || !t.history.pushState) {
62
- e.params.history.enabled = !1, e.params.hashNavigation.enabled = !0;
63
- return;
64
- }
65
- if (d = !0, o = u(e.params.url), !o.key && !o.value) {
66
- e.params.history.replaceState || t.addEventListener("popstate", f);
67
- return;
68
- }
69
- g(0, o.value, e.params.runCallbacksOnInit), e.params.history.replaceState || t.addEventListener("popstate", f);
70
- }
71
- }, b = () => {
72
- const t = h();
73
- e.params.history.replaceState || t.removeEventListener("popstate", f);
74
- };
75
- c("init", () => {
76
- e.params.history.enabled && v();
77
- }), c("destroy", () => {
78
- e.params.history.enabled && b();
79
- }), c("transitionEnd _freeModeNoMomentumRelease", () => {
80
- d && m(e.params.history.key, e.activeIndex);
81
- }), c("slideChange", () => {
82
- d && e.params.cssMode && m(e.params.history.key, e.activeIndex);
83
- });
8
+ }), n;
84
9
  }
85
10
  export {
86
- x as default
11
+ o as c
87
12
  };
package/index185.js CHANGED
@@ -1 +1 @@
1
- "use strict";const p=require("./index224.js"),S=require("./index225.js");function x(u){let{swiper:e,extendParams:v,emit:l,on:n}=u,r=!1;const h=p.g(),i=p.a();v({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(a,t){if(e.virtual&&e.params.virtual.enabled){const s=e.slides.filter(f=>f.getAttribute("data-hash")===t)[0];return s?parseInt(s.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(S.e(e.slidesEl,`.${e.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0])}}});const o=()=>{l("hashChange");const a=h.location.hash.replace("#",""),t=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],s=t?t.getAttribute("data-hash"):"";if(a!==s){const d=e.params.hashNavigation.getSlideIndex(e,a);if(typeof d>"u"||Number.isNaN(d))return;e.slideTo(d)}},c=()=>{if(!r||!e.params.hashNavigation.enabled)return;const a=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],t=a?a.getAttribute("data-hash")||a.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&i.history&&i.history.replaceState?(i.history.replaceState(null,null,`#${t}`||""),l("hashSet")):(h.location.hash=t||"",l("hashSet"))},g=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;r=!0;const a=h.location.hash.replace("#","");if(a){const s=e.params.hashNavigation.getSlideIndex(e,a);e.slideTo(s||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&i.addEventListener("hashchange",o)},m=()=>{e.params.hashNavigation.watchState&&i.removeEventListener("hashchange",o)};n("init",()=>{e.params.hashNavigation.enabled&&g()}),n("destroy",()=>{e.params.hashNavigation.enabled&&m()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{r&&c()}),n("slideChange",()=>{r&&e.params.cssMode&&c()})}module.exports=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}exports.c=r;
package/index185.mjs CHANGED
@@ -1,61 +1,6 @@
1
- import { g as f, a as S } from "./index224.mjs";
2
- import { e as x } from "./index225.mjs";
3
- function w(p) {
4
- let {
5
- swiper: e,
6
- extendParams: u,
7
- emit: l,
8
- on: n
9
- } = p, r = !1;
10
- const h = f(), s = S();
11
- u({
12
- hashNavigation: {
13
- enabled: !1,
14
- replaceState: !1,
15
- watchState: !1,
16
- getSlideIndex(a, t) {
17
- if (e.virtual && e.params.virtual.enabled) {
18
- const i = e.slides.filter((v) => v.getAttribute("data-hash") === t)[0];
19
- return i ? parseInt(i.getAttribute("data-swiper-slide-index"), 10) : 0;
20
- }
21
- return e.getSlideIndex(x(e.slidesEl, `.${e.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0]);
22
- }
23
- }
24
- });
25
- const o = () => {
26
- l("hashChange");
27
- const a = h.location.hash.replace("#", ""), t = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], i = t ? t.getAttribute("data-hash") : "";
28
- if (a !== i) {
29
- const d = e.params.hashNavigation.getSlideIndex(e, a);
30
- if (typeof d > "u" || Number.isNaN(d)) return;
31
- e.slideTo(d);
32
- }
33
- }, c = () => {
34
- if (!r || !e.params.hashNavigation.enabled) return;
35
- const a = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], t = a ? a.getAttribute("data-hash") || a.getAttribute("data-history") : "";
36
- e.params.hashNavigation.replaceState && s.history && s.history.replaceState ? (s.history.replaceState(null, null, `#${t}` || ""), l("hashSet")) : (h.location.hash = t || "", l("hashSet"));
37
- }, m = () => {
38
- if (!e.params.hashNavigation.enabled || e.params.history && e.params.history.enabled) return;
39
- r = !0;
40
- const a = h.location.hash.replace("#", "");
41
- if (a) {
42
- const i = e.params.hashNavigation.getSlideIndex(e, a);
43
- e.slideTo(i || 0, 0, e.params.runCallbacksOnInit, !0);
44
- }
45
- e.params.hashNavigation.watchState && s.addEventListener("hashchange", o);
46
- }, g = () => {
47
- e.params.hashNavigation.watchState && s.removeEventListener("hashchange", o);
48
- };
49
- n("init", () => {
50
- e.params.hashNavigation.enabled && m();
51
- }), n("destroy", () => {
52
- e.params.hashNavigation.enabled && g();
53
- }), n("transitionEnd _freeModeNoMomentumRelease", () => {
54
- r && c();
55
- }), n("slideChange", () => {
56
- r && e.params.cssMode && c();
57
- });
1
+ function r(e) {
2
+ return e === void 0 && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
58
3
  }
59
4
  export {
60
- w as default
5
+ r as c
61
6
  };
package/index186.js CHANGED
@@ -1 +1 @@
1
- "use strict";const S=require("./index224.js");function V(q){let{swiper:e,extendParams:x,on:s,emit:r,params:l}=q;e.autoplay={running:!1,paused:!1,timeLeft:0},x({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let y,E,w=l&&l.autoplay?l.autoplay.delay:3e3,g=l&&l.autoplay?l.autoplay.delay:3e3,n,f=new Date().getTime(),L,v,p,h,b,o,D;function O(t){!e||e.destroyed||!e.wrapperEl||t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",O),!D&&u())}const M=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?L=!0:L&&(g=n,L=!1);const t=e.autoplay.paused?n:f+g-new Date().getTime();e.autoplay.timeLeft=t,r("autoplayTimeLeft",t,t/w),E=requestAnimationFrame(()=>{M()})},B=()=>{let t;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},T=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(E),M();let i=typeof t>"u"?e.params.autoplay.delay:t;w=e.params.autoplay.delay,g=e.params.autoplay.delay;const a=B();!Number.isNaN(a)&&a>0&&typeof t>"u"&&(i=a,w=a,g=a),n=i;const c=e.params.speed,N=()=>{!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=new Date().getTime(),requestAnimationFrame(()=>{T()})))};return i>0?(clearTimeout(y),y=setTimeout(()=>{N()},i)):requestAnimationFrame(()=>{N()}),i},I=()=>{f=new Date().getTime(),e.autoplay.running=!0,T(),r("autoplayStart")},m=()=>{e.autoplay.running=!1,clearTimeout(y),cancelAnimationFrame(E),r("autoplayStop")},d=(t,i)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(y),t||(o=!0);const a=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",O):u()};if(e.autoplay.paused=!0,i){b&&(n=e.params.autoplay.delay),b=!1,a();return}n=(n||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&n<0&&!e.params.loop)&&(n<0&&(n=0),a())},u=()=>{e.isEnd&&n<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),o?(o=!1,T(n)):T(),e.autoplay.paused=!1,r("autoplayResume"))},A=()=>{if(e.destroyed||!e.autoplay.running)return;const t=S.g();t.visibilityState==="hidden"&&(o=!0,d(!0)),t.visibilityState==="visible"&&u()},P=t=>{t.pointerType==="mouse"&&(o=!0,D=!0,!(e.animating||e.autoplay.paused)&&d(!0))},F=t=>{t.pointerType==="mouse"&&(D=!1,e.autoplay.paused&&u())},C=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",P),e.el.addEventListener("pointerleave",F))},_=()=>{e.el.removeEventListener("pointerenter",P),e.el.removeEventListener("pointerleave",F)},R=()=>{S.g().addEventListener("visibilitychange",A)},j=()=>{S.g().removeEventListener("visibilitychange",A)};s("init",()=>{e.params.autoplay.enabled&&(C(),R(),I())}),s("destroy",()=>{_(),j(),e.autoplay.running&&m()}),s("_freeModeStaticRelease",()=>{(p||o)&&u()}),s("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?m():d(!0,!0)}),s("beforeTransitionStart",(t,i,a)=>{e.destroyed||!e.autoplay.running||(a||!e.params.autoplay.disableOnInteraction?d(!0,!0):m())}),s("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){m();return}v=!0,p=!1,o=!1,h=setTimeout(()=>{o=!0,p=!0,d(!0)},200)}}),s("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!v)){if(clearTimeout(h),clearTimeout(y),e.params.autoplay.disableOnInteraction){p=!1,v=!1;return}p&&e.params.cssMode&&u(),p=!1,v=!1}}),s("slideChange",()=>{e.destroyed||!e.autoplay.running||(b=!0)}),Object.assign(e.autoplay,{start:I,stop:m,pause:d,resume:u})}module.exports=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(d){const{effect:s,swiper:e,on:r,setTranslate:n,setTransition:p,overwriteParams:f,perspective:o,recreateShadows:l,getEffectParams:c}=d;r("beforeInit",()=>{if(e.params.effect!==s)return;e.classNames.push(`${e.params.containerModifierClass}${s}`),o&&o()&&e.classNames.push(`${e.params.containerModifierClass}3d`);const t=f?f():{};Object.assign(e.params,t),Object.assign(e.originalParams,t)}),r("setTranslate",()=>{e.params.effect===s&&n()}),r("setTransition",(t,i)=>{e.params.effect===s&&p(i)}),r("transitionEnd",()=>{if(e.params.effect===s&&l){if(!c||!c().slideShadows)return;e.slides.forEach(t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(i=>i.remove())}),l()}});let a;r("virtualUpdate",()=>{e.params.effect===s&&(e.slides.length||(a=!0),requestAnimationFrame(()=>{a&&e.slides&&e.slides.length&&(n(),a=!1)}))})}exports.e=m;