@okam/stack-ui 1.41.0 → 1.41.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.
- package/CHANGELOG.md +10 -0
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +169 -167
- package/index10.js +1 -1
- package/index10.mjs +1 -1
- package/index100.js +1 -2
- package/index100.mjs +24 -10
- package/index101.js +1 -1
- package/index101.mjs +9 -18
- package/index102.js +1 -1
- package/index102.mjs +15 -47
- package/index103.js +1 -1
- package/index103.mjs +47 -38
- package/index104.js +1 -1
- package/index104.mjs +39 -10
- package/index105.js +1 -1
- package/index105.mjs +10 -35
- package/index106.js +1 -1
- package/index106.mjs +35 -13
- package/index107.js +1 -1
- package/index107.mjs +10 -16
- package/index108.js +1 -1
- package/index108.mjs +16 -12
- package/index109.js +1 -1
- package/index109.mjs +15 -11
- package/index110.js +1 -1
- package/index110.mjs +13 -12
- package/index111.js +1 -1
- package/index111.mjs +11 -34
- package/index112.js +2 -1
- package/index112.mjs +37 -4
- package/index113.js +1 -1
- package/index113.mjs +4 -2
- package/index114.js +1 -6
- package/index114.mjs +2 -94
- package/index115.js +6 -1
- package/index115.mjs +79 -55
- package/index116.js +1 -1
- package/index116.mjs +62 -33
- package/index117.js +1 -42
- package/index117.mjs +34 -67
- package/index118.js +38 -60
- package/index118.mjs +65 -219
- package/index119.js +63 -9
- package/index119.mjs +214 -57
- package/index12.js +1 -1
- package/index12.mjs +3 -3
- package/index120.js +10 -1
- package/index120.mjs +61 -35
- package/index121.js +1 -1
- package/index121.mjs +40 -8
- package/index122.js +1 -6
- package/index122.mjs +10 -46
- package/index123.js +6 -5
- package/index123.mjs +44 -83
- package/index124.js +5 -1
- package/index124.mjs +88 -6
- package/index125.js +1 -12
- package/index125.mjs +6 -40
- package/index126.js +12 -1
- package/index126.mjs +34 -83
- package/index127.js +1 -1
- package/index127.mjs +88 -12
- package/index128.js +1 -1
- package/index128.mjs +13 -29
- package/index129.js +1 -1
- package/index129.mjs +24 -8
- package/index13.js +1 -1
- package/index13.mjs +3 -3
- package/index130.js +1 -7
- package/index130.mjs +7 -13
- package/index131.js +6 -14
- package/index131.mjs +13 -65
- package/index132.js +15 -1
- package/index132.mjs +71 -7
- package/index133.js +1 -41
- package/index133.mjs +7 -106
- package/index134.js +32 -38
- package/index134.mjs +78 -74
- package/index135.js +46 -15
- package/index135.mjs +96 -19
- package/index136.js +16 -1
- package/index136.mjs +20 -37
- package/index137.js +1 -2
- package/index137.mjs +42 -49
- package/index138.js +2 -1
- package/index138.mjs +48 -22
- package/index139.js +1 -2
- package/index139.mjs +22 -8
- package/index14.js +1 -1
- package/index14.mjs +2 -2
- package/index140.js +1 -1
- package/index140.mjs +7 -11
- package/index141.js +1 -1
- package/index141.mjs +11 -13
- package/index142.js +1 -1
- package/index142.mjs +240 -52
- package/index143.js +1 -1
- package/index143.mjs +52 -4
- package/index144.js +1 -1
- package/index144.mjs +4 -11
- package/index145.js +1 -1
- package/index145.mjs +11 -14
- package/index146.js +1 -2
- package/index146.mjs +13 -38
- package/index147.js +1 -1
- package/index147.mjs +35 -20
- package/index148.js +2 -1
- package/index148.mjs +23 -43
- package/index149.js +1 -1
- package/index149.mjs +42 -18
- package/index15.js +1 -1
- package/index15.mjs +1 -1
- package/index150.js +1 -1
- package/index150.mjs +18 -36
- package/index151.js +1 -1
- package/index151.mjs +35 -13
- package/index152.js +1 -1
- package/index152.mjs +13 -237
- package/index154.js +1 -1
- package/index154.mjs +2 -2
- package/index155.js +1 -1
- package/index155.mjs +2 -2
- package/index157.js +1 -1
- package/index157.mjs +2 -2
- package/index158.js +1 -1
- package/index158.mjs +1 -1
- package/index159.js +1 -1
- package/index159.mjs +3 -3
- package/index16.js +1 -1
- package/index16.mjs +1 -1
- package/index160.js +1 -1
- package/index160.mjs +6 -6
- package/index161.js +1 -1
- package/index161.mjs +3 -3
- package/index162.js +1 -1
- package/index162.mjs +9 -9
- package/index163.js +1 -1
- package/index163.mjs +3 -3
- package/index164.js +1 -1
- package/index164.mjs +2 -2
- package/index165.js +1 -1
- package/index165.mjs +1 -1
- package/index167.js +1 -1
- package/index167.mjs +1 -1
- package/index168.js +1 -1
- package/index168.mjs +2 -2
- package/index169.js +1 -1
- package/index169.mjs +1 -1
- package/index17.js +1 -1
- package/index17.mjs +3 -3
- package/index170.js +1 -1
- package/index170.mjs +3 -3
- package/index171.js +1 -1
- package/index171.mjs +1 -1
- package/index172.js +1 -1
- package/index172.mjs +5 -5
- package/index173.js +1 -1
- package/index173.mjs +1 -1
- package/index174.js +1 -1
- package/index174.mjs +3 -3
- package/index175.js +1 -1
- package/index175.mjs +4 -4
- package/index177.js +1 -1
- package/index177.mjs +3 -3
- package/index178.js +1 -1
- package/index178.mjs +23 -23
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index18.js +1 -1
- package/index18.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +2025 -5
- package/index181.js +1 -2
- package/index181.mjs +58 -48
- package/index182.js +1 -1
- package/index182.mjs +188 -11
- package/index183.js +1 -1
- package/index183.mjs +5 -203
- package/index184.js +2 -1
- package/index184.mjs +47 -62
- package/index185.js +1 -1
- package/index185.mjs +9 -141
- package/index186.js +1 -1
- package/index186.mjs +189 -110
- package/index187.js +1 -1
- package/index187.mjs +53 -213
- package/index188.js +1 -1
- package/index188.mjs +129 -176
- package/index189.js +1 -1
- package/index189.mjs +116 -61
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +210 -265
- package/index191.js +1 -1
- package/index191.mjs +180 -88
- package/index192.js +1 -1
- package/index192.mjs +60 -179
- package/index193.js +1 -1
- package/index193.mjs +266 -71
- package/index194.js +1 -1
- package/index194.mjs +92 -52
- package/index195.js +1 -1
- package/index195.mjs +182 -120
- package/index196.js +1 -1
- package/index196.mjs +76 -108
- package/index197.js +1 -1
- package/index197.mjs +50 -114
- package/index198.js +1 -1
- package/index198.mjs +118 -64
- package/index199.js +1 -1
- package/index199.mjs +111 -105
- package/index2.js +1 -1
- package/index2.mjs +25 -25
- package/index20.js +1 -1
- package/index20.mjs +13 -47
- package/index200.js +1 -1
- package/index200.mjs +117 -47
- package/index201.js +1 -1
- package/index201.mjs +67 -88
- package/index202.js +1 -1
- package/index202.mjs +108 -68
- package/index203.js +1 -1
- package/index203.mjs +41 -45
- package/index204.js +1 -1
- package/index204.mjs +77 -83
- package/index205.js +1 -5
- package/index205.mjs +49 -59
- package/index206.js +1 -1
- package/index206.mjs +55 -123
- package/index207.js +1 -1
- package/index207.mjs +97 -132
- package/index208.js +5 -1
- package/index208.mjs +80 -44
- package/index209.js +1 -1
- package/index209.mjs +128 -12
- package/index21.js +1 -1
- package/index21.mjs +47 -18
- package/index210.js +1 -1
- package/index210.mjs +184 -89
- package/index211.js +1 -1
- package/index211.mjs +121 -103
- package/index212.js +1 -1
- package/index212.mjs +134 -4
- package/index213.js +1 -1
- package/index213.mjs +44 -3
- package/index214.js +1 -1
- package/index214.mjs +12 -123
- package/index215.js +1 -1
- package/index215.mjs +84 -18
- package/index216.js +1 -1
- package/index216.mjs +101 -46
- package/index217.js +1 -1
- package/index217.mjs +4 -44
- package/index218.js +1 -1
- package/index218.mjs +3 -37
- package/index219.js +1 -1
- package/index219.mjs +114 -102
- package/index22.js +1 -1
- package/index22.mjs +18 -17
- package/index220.js +1 -1
- package/index220.mjs +21 -69
- package/index221.js +1 -1
- package/index221.mjs +36 -86
- package/index222.js +1 -1
- package/index222.mjs +45 -98
- package/index223.js +1 -1
- package/index223.mjs +28 -2016
- package/index224.js +1 -1
- package/index224.mjs +114 -60
- package/index225.js +1 -1
- package/index225.mjs +70 -181
- package/index226.js +1 -1
- package/index226.mjs +95 -119
- package/index227.js +1 -1
- package/index227.mjs +98 -74
- package/index228.js +1 -1
- package/index228.mjs +113 -369
- package/index229.js +1 -1
- package/index229.mjs +71 -44
- package/index23.js +1 -1
- package/index23.mjs +16 -165
- package/index230.js +1 -1
- package/index230.mjs +382 -4
- package/index231.js +1 -1
- package/index231.mjs +45 -23
- package/index232.js +1 -1
- package/index232.mjs +4 -48
- package/index233.js +1 -1
- package/index233.mjs +24 -5
- package/index234.js +1 -1
- package/index234.mjs +44 -21
- package/index235.js +1 -1
- package/index235.mjs +5 -12
- package/index236.js +1 -1
- package/index236.mjs +23 -3
- package/index237.js +1 -1
- package/index237.mjs +11 -13
- package/index238.js +1 -1
- package/index238.mjs +4 -42
- package/index239.js +1 -1
- package/index239.mjs +13 -56
- package/index24.js +1 -1
- package/index24.mjs +148 -93
- package/index240.js +1 -1
- package/index240.mjs +40 -39
- package/index241.js +1 -1
- package/index241.mjs +55 -26
- package/index242.js +1 -1
- package/index242.mjs +41 -31
- package/index243.js +1 -1
- package/index243.mjs +27 -13
- package/index244.js +1 -1
- package/index244.mjs +31 -10
- package/index245.js +1 -1
- package/index245.mjs +14 -28
- package/index246.js +1 -1
- package/index246.mjs +10 -9
- package/index247.js +1 -1
- package/index247.mjs +28 -6
- package/index248.js +1 -1
- package/index248.mjs +9 -5
- package/index249.js +1 -1
- package/index249.mjs +6 -7
- package/index25.js +1 -1
- package/index25.mjs +110 -115
- package/index250.js +1 -1
- package/index250.mjs +5 -29
- package/index251.js +1 -1
- package/index251.mjs +7 -18
- package/index252.js +1 -1
- package/index252.mjs +28 -12
- package/index253.js +1 -1
- package/index253.mjs +18 -43
- package/index254.js +1 -1
- package/index254.mjs +13 -8
- package/index255.js +1 -1
- package/index255.mjs +43 -17
- package/index256.js +1 -1
- package/index256.mjs +9 -3
- package/index257.js +1 -1
- package/index257.mjs +17 -4
- package/index258.js +1 -1
- package/index258.mjs +3 -20
- package/index259.js +1 -1
- package/index259.mjs +4 -54
- package/index26.js +1 -1
- package/index26.mjs +116 -31
- package/index260.js +1 -1
- package/index260.mjs +19 -27
- package/index261.js +1 -1
- package/index261.mjs +49 -135
- package/index262.js +1 -1
- package/index262.mjs +26 -196
- package/index263.js +1 -1
- package/index263.mjs +136 -18
- package/index264.js +1 -1
- package/index264.mjs +193 -45
- package/index265.js +1 -1
- package/index265.mjs +20 -46
- package/index266.js +1 -1
- package/index266.mjs +43 -91
- package/index267.js +1 -1
- package/index267.mjs +49 -72
- package/index268.js +1 -1
- package/index268.mjs +92 -63
- package/index269.js +1 -1
- package/index269.mjs +72 -8
- package/index27.js +1 -1
- package/index27.mjs +27 -104
- package/index270.js +1 -1
- package/index270.mjs +67 -10
- package/index271.js +1 -1
- package/index271.mjs +7 -5
- package/index272.js +1 -1
- package/index272.mjs +11 -121
- package/index273.js +1 -1
- package/index273.mjs +5 -43
- package/index274.js +1 -1
- package/index274.mjs +111 -220
- package/index275.js +1 -1
- package/index275.mjs +43 -31
- package/index276.js +1 -1
- package/index276.mjs +225 -125
- package/index277.js +1 -1
- package/index277.mjs +28 -187
- package/index278.js +1 -1
- package/index278.mjs +1 -1
- package/index28.js +1 -1
- package/index28.mjs +84 -122
- package/index281.js +1 -1
- package/index281.mjs +1 -1
- package/index282.js +1 -1
- package/index282.mjs +1 -1
- package/index283.js +1 -1
- package/index283.mjs +1 -1
- package/index29.js +1 -1
- package/index29.mjs +110 -124
- package/index3.js +1 -1
- package/index3.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +151 -102
- package/index31.js +1 -1
- package/index31.mjs +110 -22
- package/index32.js +1 -1
- package/index32.mjs +21 -68
- package/index320.js +1 -1
- package/index320.mjs +3 -3
- package/index322.js +1 -1
- package/index322.mjs +2 -2
- package/index323.js +1 -1
- package/index323.mjs +5 -5
- package/index326.js +1 -1
- package/index326.mjs +3 -3
- package/index329.js +1 -1
- package/index329.mjs +6 -6
- package/index33.js +1 -1
- package/index33.mjs +69 -147
- package/index330.js +1 -1
- package/index330.mjs +2 -2
- package/index331.js +1 -1
- package/index331.mjs +4 -4
- package/index332.js +1 -1
- package/index332.mjs +1 -1
- package/index336.js +1 -1
- package/index336.mjs +2 -2
- package/index337.js +1 -1
- package/index337.mjs +1 -1
- package/index338.js +1 -1
- package/index338.mjs +1 -1
- package/index34.js +1 -1
- package/index34.mjs +149 -20
- package/index342.js +1 -1
- package/index342.mjs +4 -166
- package/index344.js +1 -1
- package/index344.mjs +166 -4
- package/index35.js +1 -1
- package/index35.mjs +20 -59
- package/index36.js +1 -1
- package/index36.mjs +42 -33
- package/index37.js +1 -1
- package/index37.mjs +49 -19
- package/index38.js +1 -1
- package/index38.mjs +19 -32
- package/index39.js +1 -1
- package/index39.mjs +32 -23
- package/index4.js +1 -1
- package/index4.mjs +4 -4
- package/index40.js +1 -1
- package/index40.mjs +22 -12
- package/index41.js +1 -1
- package/index41.mjs +13 -31
- package/index42.js +1 -1
- package/index42.mjs +30 -31
- package/index43.js +1 -1
- package/index43.mjs +28 -121
- package/index44.js +1 -1
- package/index44.mjs +125 -8
- package/index45.js +1 -1
- package/index45.mjs +8 -46
- package/index46.js +1 -1
- package/index46.mjs +46 -17
- package/index47.js +1 -1
- package/index47.mjs +17 -6
- package/index48.js +1 -1
- package/index48.mjs +6 -20
- package/index49.js +1 -1
- package/index49.mjs +18 -32
- package/index50.js +1 -1
- package/index50.mjs +34 -39
- package/index51.js +1 -1
- package/index51.mjs +39 -48
- package/index52.js +1 -1
- package/index52.mjs +48 -39
- package/index53.js +1 -1
- package/index53.mjs +38 -26
- package/index54.js +1 -1
- package/index54.mjs +27 -18
- package/index55.js +1 -1
- package/index55.mjs +18 -111
- package/index56.js +1 -1
- package/index56.mjs +107 -52
- package/index57.js +1 -1
- package/index57.mjs +54 -38
- package/index58.js +1 -1
- package/index58.mjs +37 -61
- package/index59.js +1 -1
- package/index59.mjs +64 -72
- package/index6.js +1 -1
- package/index6.mjs +1 -1
- package/index60.js +2 -1
- package/index60.mjs +74 -5
- package/index61.js +1 -1
- package/index61.mjs +4 -7
- package/index62.js +1 -1
- package/index62.mjs +5 -5
- package/index63.js +1 -1
- package/index63.mjs +8 -5
- package/index64.js +1 -1
- package/index64.mjs +2 -2
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +4 -4
- package/index67.js +1 -1
- package/index67.mjs +3 -9
- package/index68.js +1 -1
- package/index68.mjs +7 -9
- package/index69.js +1 -1
- package/index69.mjs +9 -9
- package/index7.js +1 -1
- package/index7.mjs +2 -2
- package/index70.js +1 -1
- package/index70.mjs +13 -46
- package/index71.js +1 -1
- package/index71.mjs +46 -8
- package/index72.js +1 -1
- package/index72.mjs +6 -69
- package/index73.js +1 -1
- package/index73.mjs +71 -8
- package/index74.js +1 -1
- package/index74.mjs +7 -12
- package/index75.js +1 -1
- package/index75.mjs +12 -9
- package/index76.js +1 -1
- package/index76.mjs +10 -17
- package/index77.js +1 -1
- package/index77.mjs +17 -13
- package/index78.js +1 -1
- package/index78.mjs +5 -5
- package/index79.js +1 -1
- package/index79.mjs +6 -6
- package/index8.js +1 -1
- package/index8.mjs +5 -5
- package/index80.js +1 -1
- package/index80.mjs +10 -8
- package/index81.js +1 -1
- package/index81.mjs +5 -5
- package/index82.js +1 -1
- package/index82.mjs +6 -8
- package/index83.js +1 -1
- package/index83.mjs +13 -14
- package/index84.js +1 -2
- package/index84.mjs +14 -23
- package/index85.js +1 -1
- package/index85.mjs +21 -15
- package/index86.js +1 -1
- package/index86.mjs +16 -14
- package/index87.js +1 -1
- package/index87.mjs +13 -45
- package/index88.js +1 -1
- package/index88.mjs +44 -36
- package/index89.js +1 -1
- package/index89.mjs +37 -11
- package/index9.js +1 -1
- package/index9.mjs +4 -4
- package/index90.js +1 -1
- package/index90.mjs +11 -10
- package/index91.js +1 -1
- package/index91.mjs +10 -13
- package/index92.js +1 -1
- package/index92.mjs +12 -43
- package/index93.js +1 -1
- package/index93.mjs +43 -28
- package/index94.js +2 -1
- package/index94.mjs +31 -2
- package/index95.js +1 -2
- package/index95.mjs +2 -9
- package/index96.js +1 -1
- package/index96.mjs +7 -6
- package/index97.js +1 -1
- package/index97.mjs +6 -6
- package/index98.js +1 -1
- package/index98.mjs +6 -6
- package/index99.js +2 -1
- package/index99.mjs +8 -25
- package/package.json +1 -1
package/index188.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const B=require("./index209.js"),c=require("./index210.js");function N(P){let{swiper:e,extendParams:S,on:I,emit:T}=P;const Y=B.a();S({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let E,g=c.d(),u;const i=[];function L(t){let o=0,r=0,s=0,l=0;return"detail"in t&&(r=t.detail),"wheelDelta"in t&&(r=-t.wheelDelta/120),"wheelDeltaY"in t&&(r=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(o=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(o=r,r=0),s=o*10,l=r*10,"deltaY"in t&&(l=t.deltaY),"deltaX"in t&&(s=t.deltaX),t.shiftKey&&!s&&(s=l,l=0),(s||l)&&t.deltaMode&&(t.deltaMode===1?(s*=40,l*=40):(s*=800,l*=800)),s&&!o&&(o=s<1?-1:1),l&&!r&&(r=l<1?-1:1),{spinX:o,spinY:r,pixelX:s,pixelY:l}}function _(){e.enabled&&(e.mouseEntered=!0)}function G(){e.enabled&&(e.mouseEntered=!1)}function y(t){return e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&c.d()-g<e.params.mousewheel.thresholdTime?!1:t.delta>=6&&c.d()-g<60?!0:(t.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),T("scroll",t.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),T("scroll",t.raw)),g=new Y.Date().getTime(),!1)}function O(t){const a=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&a.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&a.releaseOnEdges)return!0;return!1}function w(t){let a=t,b=!0;if(!e.enabled||t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const f=e.params.mousewheel;e.params.cssMode&&a.preventDefault();let o=e.el;e.params.mousewheel.eventsTarget!=="container"&&(o=document.querySelector(e.params.mousewheel.eventsTarget));const r=o&&o.contains(a.target);if(!e.mouseEntered&&!r&&!f.releaseOnEdges)return!0;a.originalEvent&&(a=a.originalEvent);let s=0;const l=e.rtlTranslate?-1:1,d=L(a);if(f.forceToAxis)if(e.isHorizontal())if(Math.abs(d.pixelX)>Math.abs(d.pixelY))s=-d.pixelX*l;else return!0;else if(Math.abs(d.pixelY)>Math.abs(d.pixelX))s=-d.pixelY;else return!0;else s=Math.abs(d.pixelX)>Math.abs(d.pixelY)?-d.pixelX*l:-d.pixelY;if(s===0)return!0;f.invert&&(s=-s);let h=e.getTranslate()+s*f.sensitivity;if(h>=e.minTranslate()&&(h=e.minTranslate()),h<=e.maxTranslate()&&(h=e.maxTranslate()),b=e.params.loop?!0:!(h===e.minTranslate()||h===e.maxTranslate()),b&&e.params.nested&&a.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const n={time:c.d(),delta:Math.abs(s),direction:Math.sign(s),raw:t};i.length>=2&&i.shift();const m=i.length?i[i.length-1]:void 0;if(i.push(n),m?(n.direction!==m.direction||n.delta>m.delta||n.time>m.time+150)&&y(n):y(n),O(n))return!0}else{const n={time:c.d(),delta:Math.abs(s),direction:Math.sign(s)},m=u&&n.time<u.time+500&&n.delta<=u.delta&&n.direction===u.direction;if(!m){u=void 0;let p=e.getTranslate()+s*f.sensitivity;const A=e.isBeginning,C=e.isEnd;if(p>=e.minTranslate()&&(p=e.minTranslate()),p<=e.maxTranslate()&&(p=e.maxTranslate()),e.setTransition(0),e.setTranslate(p),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!A&&e.isBeginning||!C&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:n.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(E),E=void 0,i.length>=15&&i.shift();const M=i.length?i[i.length-1]:void 0,H=i[0];if(i.push(n),M&&(n.delta>M.delta||n.direction!==M.direction))i.splice(0);else if(i.length>=15&&n.time-H.time<500&&H.delta-n.delta>=1&&n.delta<=6){const X=s>0?.8:.2;u=n,i.splice(0),E=c.n(()=>{e.destroyed||!e.params||e.slideToClosest(e.params.speed,!0,void 0,X)},0)}E||(E=c.n(()=>{if(e.destroyed||!e.params)return;const X=.5;u=n,i.splice(0),e.slideToClosest(e.params.speed,!0,void 0,X)},500))}if(m||T("scroll",a),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),f.releaseOnEdges&&(p===e.minTranslate()||p===e.maxTranslate()))return!0}}return a.preventDefault?a.preventDefault():a.returnValue=!1,!1}function D(t){let a=e.el;e.params.mousewheel.eventsTarget!=="container"&&(a=document.querySelector(e.params.mousewheel.eventsTarget)),a[t]("mouseenter",_),a[t]("mouseleave",G),a[t]("wheel",w)}function v(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",w),!0):e.mousewheel.enabled?!1:(D("addEventListener"),e.mousewheel.enabled=!0,!0)}function x(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,w),!0):e.mousewheel.enabled?(D("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}I("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&x(),e.params.mousewheel.enabled&&v()}),I("destroy",()=>{e.params.cssMode&&v(),e.mousewheel.enabled&&x()}),Object.assign(e.mousewheel,{enable:v,disable:x})}module.exports=N;
|
package/index188.mjs
CHANGED
|
@@ -1,193 +1,146 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { c as U } from "./index279.mjs";
|
|
5
|
-
function _(x) {
|
|
1
|
+
import { a as N } from "./index209.mjs";
|
|
2
|
+
import { n as P, d as T } from "./index210.mjs";
|
|
3
|
+
function q(S) {
|
|
6
4
|
let {
|
|
7
|
-
swiper:
|
|
8
|
-
extendParams:
|
|
9
|
-
on:
|
|
5
|
+
swiper: e,
|
|
6
|
+
extendParams: Y,
|
|
7
|
+
on: I,
|
|
10
8
|
emit: g
|
|
11
|
-
} =
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
horizontalClass: "swiper-scrollbar-horizontal",
|
|
25
|
-
verticalClass: "swiper-scrollbar-vertical"
|
|
9
|
+
} = S;
|
|
10
|
+
const L = N();
|
|
11
|
+
Y({
|
|
12
|
+
mousewheel: {
|
|
13
|
+
enabled: !1,
|
|
14
|
+
releaseOnEdges: !1,
|
|
15
|
+
invert: !1,
|
|
16
|
+
forceToAxis: !1,
|
|
17
|
+
sensitivity: 1,
|
|
18
|
+
eventsTarget: "container",
|
|
19
|
+
thresholdDelta: null,
|
|
20
|
+
thresholdTime: null,
|
|
21
|
+
noMousewheelClass: "swiper-no-mousewheel"
|
|
26
22
|
}
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
dragEl: null
|
|
23
|
+
}), e.mousewheel = {
|
|
24
|
+
enabled: !1
|
|
30
25
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
e ? (o = -o, o > 0 ? (p = i - o, o = 0) : -o + i > c && (p = c + o)) : o < 0 ? (p = i + o, o = 0) : o + i > c && (p = c - o), s.isHorizontal() ? (a.style.transform = `translate3d(${o}px, 0, 0)`, a.style.width = `${p}px`) : (a.style.transform = `translate3d(0px, ${o}px, 0)`, a.style.height = `${p}px`), t.hide && (clearTimeout(E), r.style.opacity = 1, E = setTimeout(() => {
|
|
42
|
-
r.style.opacity = 0, r.style.transitionDuration = "400ms";
|
|
43
|
-
}, 1e3));
|
|
26
|
+
let c, w = T(), u;
|
|
27
|
+
const i = [];
|
|
28
|
+
function _(t) {
|
|
29
|
+
let o = 0, r = 0, a = 0, l = 0;
|
|
30
|
+
return "detail" in t && (r = t.detail), "wheelDelta" in t && (r = -t.wheelDelta / 120), "wheelDeltaY" in t && (r = -t.wheelDeltaY / 120), "wheelDeltaX" in t && (o = -t.wheelDeltaX / 120), "axis" in t && t.axis === t.HORIZONTAL_AXIS && (o = r, r = 0), a = o * 10, l = r * 10, "deltaY" in t && (l = t.deltaY), "deltaX" in t && (a = t.deltaX), t.shiftKey && !a && (a = l, l = 0), (a || l) && t.deltaMode && (t.deltaMode === 1 ? (a *= 40, l *= 40) : (a *= 800, l *= 800)), a && !o && (o = a < 1 ? -1 : 1), l && !r && (r = l < 1 ? -1 : 1), {
|
|
31
|
+
spinX: o,
|
|
32
|
+
spinY: r,
|
|
33
|
+
pixelX: a,
|
|
34
|
+
pixelY: l
|
|
35
|
+
};
|
|
44
36
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
37
|
+
function G() {
|
|
38
|
+
e.enabled && (e.mouseEntered = !0);
|
|
47
39
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
const {
|
|
51
|
-
scrollbar: l
|
|
52
|
-
} = s, {
|
|
53
|
-
dragEl: e,
|
|
54
|
-
el: a
|
|
55
|
-
} = l;
|
|
56
|
-
e.style.width = "", e.style.height = "", c = s.isHorizontal() ? a.offsetWidth : a.offsetHeight, D = s.size / (s.virtualSize + s.params.slidesOffsetBefore - (s.params.centeredSlides ? s.snapGrid[0] : 0)), s.params.scrollbar.dragSize === "auto" ? i = c * D : i = parseInt(s.params.scrollbar.dragSize, 10), s.isHorizontal() ? e.style.width = `${i}px` : e.style.height = `${i}px`, D >= 1 ? a.style.display = "none" : a.style.display = "", s.params.scrollbar.hide && (a.style.opacity = 0), s.params.watchOverflow && s.enabled && l.el.classList[s.isLocked ? "add" : "remove"](s.params.scrollbar.lockClass);
|
|
40
|
+
function O() {
|
|
41
|
+
e.enabled && (e.mouseEntered = !1);
|
|
57
42
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
43
|
+
function y(t) {
|
|
44
|
+
return e.params.mousewheel.thresholdDelta && t.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && T() - w < e.params.mousewheel.thresholdTime ? !1 : t.delta >= 6 && T() - w < 60 ? !0 : (t.direction < 0 ? (!e.isEnd || e.params.loop) && !e.animating && (e.slideNext(), g("scroll", t.raw)) : (!e.isBeginning || e.params.loop) && !e.animating && (e.slidePrev(), g("scroll", t.raw)), w = new L.Date().getTime(), !1);
|
|
60
45
|
}
|
|
61
|
-
function
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
t = (w(l) - N(r)[s.isHorizontal() ? "left" : "top"] - (h !== null ? h : i / 2)) / (c - i), t = Math.max(Math.min(t, 1), 0), a && (t = 1 - t);
|
|
70
|
-
const n = s.minTranslate() + (s.maxTranslate() - s.minTranslate()) * t;
|
|
71
|
-
s.updateProgress(n), s.setTranslate(n), s.updateActiveIndex(), s.updateSlidesClasses();
|
|
46
|
+
function A(t) {
|
|
47
|
+
const s = e.params.mousewheel;
|
|
48
|
+
if (t.direction < 0) {
|
|
49
|
+
if (e.isEnd && !e.params.loop && s.releaseOnEdges)
|
|
50
|
+
return !0;
|
|
51
|
+
} else if (e.isBeginning && !e.params.loop && s.releaseOnEdges)
|
|
52
|
+
return !0;
|
|
53
|
+
return !1;
|
|
72
54
|
}
|
|
73
|
-
function
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
55
|
+
function E(t) {
|
|
56
|
+
let s = t, b = !0;
|
|
57
|
+
if (!e.enabled || t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`)) return;
|
|
58
|
+
const f = e.params.mousewheel;
|
|
59
|
+
e.params.cssMode && s.preventDefault();
|
|
60
|
+
let o = e.el;
|
|
61
|
+
e.params.mousewheel.eventsTarget !== "container" && (o = document.querySelector(e.params.mousewheel.eventsTarget));
|
|
62
|
+
const r = o && o.contains(s.target);
|
|
63
|
+
if (!e.mouseEntered && !r && !f.releaseOnEdges) return !0;
|
|
64
|
+
s.originalEvent && (s = s.originalEvent);
|
|
65
|
+
let a = 0;
|
|
66
|
+
const l = e.rtlTranslate ? -1 : 1, d = _(s);
|
|
67
|
+
if (f.forceToAxis)
|
|
68
|
+
if (e.isHorizontal())
|
|
69
|
+
if (Math.abs(d.pixelX) > Math.abs(d.pixelY)) a = -d.pixelX * l;
|
|
70
|
+
else return !0;
|
|
71
|
+
else if (Math.abs(d.pixelY) > Math.abs(d.pixelX)) a = -d.pixelY;
|
|
72
|
+
else return !0;
|
|
73
|
+
else
|
|
74
|
+
a = Math.abs(d.pixelX) > Math.abs(d.pixelY) ? -d.pixelX * l : -d.pixelY;
|
|
75
|
+
if (a === 0) return !0;
|
|
76
|
+
f.invert && (a = -a);
|
|
77
|
+
let h = e.getTranslate() + a * f.sensitivity;
|
|
78
|
+
if (h >= e.minTranslate() && (h = e.minTranslate()), h <= e.maxTranslate() && (h = e.maxTranslate()), b = e.params.loop ? !0 : !(h === e.minTranslate() || h === e.maxTranslate()), b && e.params.nested && s.stopPropagation(), !e.params.freeMode || !e.params.freeMode.enabled) {
|
|
79
|
+
const n = {
|
|
80
|
+
time: T(),
|
|
81
|
+
delta: Math.abs(a),
|
|
82
|
+
direction: Math.sign(a),
|
|
83
|
+
raw: t
|
|
84
|
+
};
|
|
85
|
+
i.length >= 2 && i.shift();
|
|
86
|
+
const m = i.length ? i[i.length - 1] : void 0;
|
|
87
|
+
if (i.push(n), m ? (n.direction !== m.direction || n.delta > m.delta || n.time > m.time + 150) && y(n) : y(n), A(n))
|
|
88
|
+
return !0;
|
|
89
|
+
} else {
|
|
90
|
+
const n = {
|
|
91
|
+
time: T(),
|
|
92
|
+
delta: Math.abs(a),
|
|
93
|
+
direction: Math.sign(a)
|
|
94
|
+
}, m = u && n.time < u.time + 500 && n.delta <= u.delta && n.direction === u.direction;
|
|
95
|
+
if (!m) {
|
|
96
|
+
u = void 0;
|
|
97
|
+
let p = e.getTranslate() + a * f.sensitivity;
|
|
98
|
+
const C = e.isBeginning, B = e.isEnd;
|
|
99
|
+
if (p >= e.minTranslate() && (p = e.minTranslate()), p <= e.maxTranslate() && (p = e.maxTranslate()), e.setTransition(0), e.setTranslate(p), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses(), (!C && e.isBeginning || !B && e.isEnd) && e.updateSlidesClasses(), e.params.loop && e.loopFix({
|
|
100
|
+
direction: n.direction < 0 ? "next" : "prev",
|
|
101
|
+
byMousewheel: !0
|
|
102
|
+
}), e.params.freeMode.sticky) {
|
|
103
|
+
clearTimeout(c), c = void 0, i.length >= 15 && i.shift();
|
|
104
|
+
const M = i.length ? i[i.length - 1] : void 0, H = i[0];
|
|
105
|
+
if (i.push(n), M && (n.delta > M.delta || n.direction !== M.direction))
|
|
106
|
+
i.splice(0);
|
|
107
|
+
else if (i.length >= 15 && n.time - H.time < 500 && H.delta - n.delta >= 1 && n.delta <= 6) {
|
|
108
|
+
const X = a > 0 ? 0.8 : 0.2;
|
|
109
|
+
u = n, i.splice(0), c = P(() => {
|
|
110
|
+
e.destroyed || !e.params || e.slideToClosest(e.params.speed, !0, void 0, X);
|
|
111
|
+
}, 0);
|
|
112
|
+
}
|
|
113
|
+
c || (c = P(() => {
|
|
114
|
+
if (e.destroyed || !e.params) return;
|
|
115
|
+
const X = 0.5;
|
|
116
|
+
u = n, i.splice(0), e.slideToClosest(e.params.speed, !0, void 0, X);
|
|
117
|
+
}, 500));
|
|
118
|
+
}
|
|
119
|
+
if (m || g("scroll", s), e.params.autoplay && e.params.autoplayDisableOnInteraction && e.autoplay.stop(), f.releaseOnEdges && (p === e.minTranslate() || p === e.maxTranslate()))
|
|
120
|
+
return !0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return s.preventDefault ? s.preventDefault() : s.returnValue = !1, !1;
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
125
|
+
function D(t) {
|
|
126
|
+
let s = e.el;
|
|
127
|
+
e.params.mousewheel.eventsTarget !== "container" && (s = document.querySelector(e.params.mousewheel.eventsTarget)), s[t]("mouseenter", G), s[t]("mouseleave", O), s[t]("wheel", E);
|
|
126
128
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
129
|
-
scrollbar: l,
|
|
130
|
-
el: e
|
|
131
|
-
} = s;
|
|
132
|
-
s.params.scrollbar = G(s, s.originalParams.scrollbar, s.params.scrollbar, {
|
|
133
|
-
el: "swiper-scrollbar"
|
|
134
|
-
});
|
|
135
|
-
const a = s.params.scrollbar;
|
|
136
|
-
if (!a.el) return;
|
|
137
|
-
let r;
|
|
138
|
-
if (typeof a.el == "string" && s.isElement && (r = s.el.querySelector(a.el)), !r && typeof a.el == "string") {
|
|
139
|
-
if (r = y.querySelectorAll(a.el), !r.length) return;
|
|
140
|
-
} else r || (r = a.el);
|
|
141
|
-
s.params.uniqueNavElements && typeof a.el == "string" && r.length > 1 && e.querySelectorAll(a.el).length === 1 && (r = e.querySelector(a.el)), r.length > 0 && (r = r[0]), r.classList.add(s.isHorizontal() ? a.horizontalClass : a.verticalClass);
|
|
142
|
-
let t;
|
|
143
|
-
r && (t = r.querySelector(U(s.params.scrollbar.dragClass)), t || (t = j("div", s.params.scrollbar.dragClass), r.append(t))), Object.assign(l, {
|
|
144
|
-
el: r,
|
|
145
|
-
dragEl: t
|
|
146
|
-
}), a.draggable && $(), r && r.classList[s.enabled ? "remove" : "add"](...d(s.params.scrollbar.lockClass));
|
|
129
|
+
function v() {
|
|
130
|
+
return e.params.cssMode ? (e.wrapperEl.removeEventListener("wheel", E), !0) : e.mousewheel.enabled ? !1 : (D("addEventListener"), e.mousewheel.enabled = !0, !0);
|
|
147
131
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
150
|
-
e && e.classList.remove(...d(s.isHorizontal() ? l.horizontalClass : l.verticalClass)), q();
|
|
132
|
+
function x() {
|
|
133
|
+
return e.params.cssMode ? (e.wrapperEl.addEventListener(event, E), !0) : e.mousewheel.enabled ? (D("removeEventListener"), e.mousewheel.enabled = !1, !0) : !1;
|
|
151
134
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
a.classList.remove(l.horizontalClass, l.verticalClass), a.classList.add(s.isHorizontal() ? l.horizontalClass : l.verticalClass);
|
|
160
|
-
});
|
|
161
|
-
}), f("init", () => {
|
|
162
|
-
s.params.scrollbar.enabled === !1 ? L() : (z(), u(), m());
|
|
163
|
-
}), f("update resize observerUpdate lock unlock changeDirection", () => {
|
|
164
|
-
u();
|
|
165
|
-
}), f("setTranslate", () => {
|
|
166
|
-
m();
|
|
167
|
-
}), f("setTransition", (l, e) => {
|
|
168
|
-
H(e);
|
|
169
|
-
}), f("enable disable", () => {
|
|
170
|
-
const {
|
|
171
|
-
el: l
|
|
172
|
-
} = s.scrollbar;
|
|
173
|
-
l && l.classList[s.enabled ? "remove" : "add"](...d(s.params.scrollbar.lockClass));
|
|
174
|
-
}), f("destroy", () => {
|
|
175
|
-
C();
|
|
176
|
-
});
|
|
177
|
-
const A = () => {
|
|
178
|
-
s.el.classList.remove(...d(s.params.scrollbar.scrollbarDisabledClass)), s.scrollbar.el && s.scrollbar.el.classList.remove(...d(s.params.scrollbar.scrollbarDisabledClass)), z(), u(), m();
|
|
179
|
-
}, L = () => {
|
|
180
|
-
s.el.classList.add(...d(s.params.scrollbar.scrollbarDisabledClass)), s.scrollbar.el && s.scrollbar.el.classList.add(...d(s.params.scrollbar.scrollbarDisabledClass)), C();
|
|
181
|
-
};
|
|
182
|
-
Object.assign(s.scrollbar, {
|
|
183
|
-
enable: A,
|
|
184
|
-
disable: L,
|
|
185
|
-
updateSize: u,
|
|
186
|
-
setTranslate: m,
|
|
187
|
-
init: z,
|
|
188
|
-
destroy: C
|
|
135
|
+
I("init", () => {
|
|
136
|
+
!e.params.mousewheel.enabled && e.params.cssMode && x(), e.params.mousewheel.enabled && v();
|
|
137
|
+
}), I("destroy", () => {
|
|
138
|
+
e.params.cssMode && v(), e.mousewheel.enabled && x();
|
|
139
|
+
}), Object.assign(e.mousewheel, {
|
|
140
|
+
enable: v,
|
|
141
|
+
disable: x
|
|
189
142
|
});
|
|
190
143
|
}
|
|
191
144
|
export {
|
|
192
|
-
|
|
145
|
+
q as default
|
|
193
146
|
};
|
package/index189.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const w=require("./index278.js"),l=require("./index210.js");function L(x){let{swiper:a,extendParams:C,on:c,emit:g}=x;C({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,prevEl:null};function u(i){let n;return i&&typeof i=="string"&&a.isElement&&(n=a.el.querySelector(i)||a.hostEl.querySelector(i),n)?n:(i&&(typeof i=="string"&&(n=[...document.querySelectorAll(i)]),a.params.uniqueNavElements&&typeof i=="string"&&n&&n.length>1&&a.el.querySelectorAll(i).length===1?n=a.el.querySelector(i):n&&n.length===1&&(n=n[0])),i&&!n?i:n)}function v(i,n){const t=a.params.navigation;i=l.m(i),i.forEach(e=>{e&&(e.classList[n?"add":"remove"](...t.disabledClass.split(" ")),e.tagName==="BUTTON"&&(e.disabled=n),a.params.watchOverflow&&a.enabled&&e.classList[a.isLocked?"add":"remove"](t.lockClass))})}function d(){const{nextEl:i,prevEl:n}=a.navigation;if(a.params.loop){v(n,!1),v(i,!1);return}v(n,a.isBeginning&&!a.params.rewind),v(i,a.isEnd&&!a.params.rewind)}function E(i){i.preventDefault(),!(a.isBeginning&&!a.params.loop&&!a.params.rewind)&&(a.slidePrev(),g("navigationPrev"))}function h(i){i.preventDefault(),!(a.isEnd&&!a.params.loop&&!a.params.rewind)&&(a.slideNext(),g("navigationNext"))}function f(){const i=a.params.navigation;if(a.params.navigation=w.c(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(i.nextEl||i.prevEl))return;let n=u(i.nextEl),t=u(i.prevEl);Object.assign(a.navigation,{nextEl:n,prevEl:t}),n=l.m(n),t=l.m(t);const e=(s,p)=>{s&&s.addEventListener("click",p==="next"?h:E),!a.enabled&&s&&s.classList.add(...i.lockClass.split(" "))};n.forEach(s=>e(s,"next")),t.forEach(s=>e(s,"prev"))}function m(){let{nextEl:i,prevEl:n}=a.navigation;i=l.m(i),n=l.m(n);const t=(e,s)=>{e.removeEventListener("click",s==="next"?h:E),e.classList.remove(...a.params.navigation.disabledClass.split(" "))};i.forEach(e=>t(e,"next")),n.forEach(e=>t(e,"prev"))}c("init",()=>{a.params.navigation.enabled===!1?b():(f(),d())}),c("toEdge fromEdge lock unlock",()=>{d()}),c("destroy",()=>{m()}),c("enable disable",()=>{let{nextEl:i,prevEl:n}=a.navigation;if(i=l.m(i),n=l.m(n),a.enabled){d();return}[...i,...n].filter(t=>!!t).forEach(t=>t.classList.add(a.params.navigation.lockClass))}),c("click",(i,n)=>{let{nextEl:t,prevEl:e}=a.navigation;t=l.m(t),e=l.m(e);const s=n.target;let p=e.includes(s)||t.includes(s);if(a.isElement&&!p){const r=n.path||n.composedPath&&n.composedPath();r&&(p=r.find(o=>t.includes(o)||e.includes(o)))}if(a.params.navigation.hideOnClick&&!p){if(a.pagination&&a.params.pagination&&a.params.pagination.clickable&&(a.pagination.el===s||a.pagination.el.contains(s)))return;let r;t.length?r=t[0].classList.contains(a.params.navigation.hiddenClass):e.length&&(r=e[0].classList.contains(a.params.navigation.hiddenClass)),g(r===!0?"navigationShow":"navigationHide"),[...t,...e].filter(o=>!!o).forEach(o=>o.classList.toggle(a.params.navigation.hiddenClass))}});const k=()=>{a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")),f(),d()},b=()=>{a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")),m()};Object.assign(a.navigation,{enable:k,disable:b,update:d,init:f,destroy:m})}module.exports=L;
|
package/index189.mjs
CHANGED
|
@@ -1,72 +1,127 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { c as w } from "./index278.mjs";
|
|
2
|
+
import { m as l } from "./index210.mjs";
|
|
3
|
+
function N(x) {
|
|
3
4
|
let {
|
|
4
|
-
swiper:
|
|
5
|
-
extendParams:
|
|
6
|
-
on:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
swiper: a,
|
|
6
|
+
extendParams: C,
|
|
7
|
+
on: c,
|
|
8
|
+
emit: g
|
|
9
|
+
} = x;
|
|
10
|
+
C({
|
|
11
|
+
navigation: {
|
|
12
|
+
nextEl: null,
|
|
13
|
+
prevEl: null,
|
|
14
|
+
hideOnClick: !1,
|
|
15
|
+
disabledClass: "swiper-button-disabled",
|
|
16
|
+
hiddenClass: "swiper-button-hidden",
|
|
17
|
+
lockClass: "swiper-button-lock",
|
|
18
|
+
navigationDisabledClass: "swiper-navigation-disabled"
|
|
11
19
|
}
|
|
12
|
-
})
|
|
13
|
-
|
|
20
|
+
}), a.navigation = {
|
|
21
|
+
nextEl: null,
|
|
22
|
+
prevEl: null
|
|
23
|
+
};
|
|
24
|
+
function u(i) {
|
|
25
|
+
let n;
|
|
26
|
+
return i && typeof i == "string" && a.isElement && (n = a.el.querySelector(i) || a.hostEl.querySelector(i), n) ? n : (i && (typeof i == "string" && (n = [...document.querySelectorAll(i)]), a.params.uniqueNavElements && typeof i == "string" && n && n.length > 1 && a.el.querySelectorAll(i).length === 1 ? n = a.el.querySelector(i) : n && n.length === 1 && (n = n[0])), i && !n ? i : n);
|
|
27
|
+
}
|
|
28
|
+
function f(i, n) {
|
|
29
|
+
const t = a.params.navigation;
|
|
30
|
+
i = l(i), i.forEach((e) => {
|
|
31
|
+
e && (e.classList[n ? "add" : "remove"](...t.disabledClass.split(" ")), e.tagName === "BUTTON" && (e.disabled = n), a.params.watchOverflow && a.enabled && e.classList[a.isLocked ? "add" : "remove"](t.lockClass));
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function d() {
|
|
14
35
|
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
e.style.opacity = f;
|
|
36
|
+
nextEl: i,
|
|
37
|
+
prevEl: n
|
|
38
|
+
} = a.navigation;
|
|
39
|
+
if (a.params.loop) {
|
|
40
|
+
f(n, !1), f(i, !1);
|
|
41
|
+
return;
|
|
22
42
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
43
|
+
f(n, a.isBeginning && !a.params.rewind), f(i, a.isEnd && !a.params.rewind);
|
|
44
|
+
}
|
|
45
|
+
function E(i) {
|
|
46
|
+
i.preventDefault(), !(a.isBeginning && !a.params.loop && !a.params.rewind) && (a.slidePrev(), g("navigationPrev"));
|
|
47
|
+
}
|
|
48
|
+
function h(i) {
|
|
49
|
+
i.preventDefault(), !(a.isEnd && !a.params.loop && !a.params.rewind) && (a.slideNext(), g("navigationNext"));
|
|
50
|
+
}
|
|
51
|
+
function v() {
|
|
52
|
+
const i = a.params.navigation;
|
|
53
|
+
if (a.params.navigation = w(a, a.originalParams.navigation, a.params.navigation, {
|
|
54
|
+
nextEl: "swiper-button-next",
|
|
55
|
+
prevEl: "swiper-button-prev"
|
|
56
|
+
}), !(i.nextEl || i.prevEl)) return;
|
|
57
|
+
let n = u(i.nextEl), t = u(i.prevEl);
|
|
58
|
+
Object.assign(a.navigation, {
|
|
59
|
+
nextEl: n,
|
|
60
|
+
prevEl: t
|
|
61
|
+
}), n = l(n), t = l(t);
|
|
62
|
+
const e = (s, p) => {
|
|
63
|
+
s && s.addEventListener("click", p === "next" ? h : E), !a.enabled && s && s.classList.add(...i.lockClass.split(" "));
|
|
64
|
+
};
|
|
65
|
+
n.forEach((s) => e(s, "next")), t.forEach((s) => e(s, "prev"));
|
|
66
|
+
}
|
|
67
|
+
function m() {
|
|
68
|
+
let {
|
|
69
|
+
nextEl: i,
|
|
70
|
+
prevEl: n
|
|
71
|
+
} = a.navigation;
|
|
72
|
+
i = l(i), n = l(n);
|
|
73
|
+
const t = (e, s) => {
|
|
74
|
+
e.removeEventListener("click", s === "next" ? h : E), e.classList.remove(...a.params.navigation.disabledClass.split(" "));
|
|
75
|
+
};
|
|
76
|
+
i.forEach((e) => t(e, "next")), n.forEach((e) => t(e, "prev"));
|
|
77
|
+
}
|
|
78
|
+
c("init", () => {
|
|
79
|
+
a.params.navigation.enabled === !1 ? b() : (v(), d());
|
|
80
|
+
}), c("toEdge fromEdge lock unlock", () => {
|
|
81
|
+
d();
|
|
82
|
+
}), c("destroy", () => {
|
|
83
|
+
m();
|
|
84
|
+
}), c("enable disable", () => {
|
|
85
|
+
let {
|
|
86
|
+
nextEl: i,
|
|
87
|
+
prevEl: n
|
|
88
|
+
} = a.navigation;
|
|
89
|
+
if (i = l(i), n = l(n), a.enabled) {
|
|
90
|
+
d();
|
|
91
|
+
return;
|
|
27
92
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
93
|
+
[...i, ...n].filter((t) => !!t).forEach((t) => t.classList.add(a.params.navigation.lockClass));
|
|
94
|
+
}), c("click", (i, n) => {
|
|
95
|
+
let {
|
|
96
|
+
nextEl: t,
|
|
97
|
+
prevEl: e
|
|
98
|
+
} = a.navigation;
|
|
99
|
+
t = l(t), e = l(e);
|
|
100
|
+
const s = n.target;
|
|
101
|
+
let p = e.includes(s) || t.includes(s);
|
|
102
|
+
if (a.isElement && !p) {
|
|
103
|
+
const o = n.path || n.composedPath && n.composedPath();
|
|
104
|
+
o && (p = o.find((r) => t.includes(r) || e.includes(r)));
|
|
31
105
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
m(r, n);
|
|
43
|
-
}), l.forEach((r, o) => {
|
|
44
|
-
let s = r.progress;
|
|
45
|
-
t.params.slidesPerGroup > 1 && t.params.slidesPerView !== "auto" && (s += Math.ceil(o / 2) - n * (i.length - 1)), s = Math.min(Math.max(s, -1), 1), r.querySelectorAll(`${d}, [data-swiper-parallax-rotate]`).forEach((c) => {
|
|
46
|
-
m(c, s);
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
}, A = function(e) {
|
|
50
|
-
e === void 0 && (e = t.params.speed);
|
|
51
|
-
const {
|
|
52
|
-
el: l,
|
|
53
|
-
hostEl: n
|
|
54
|
-
} = t, i = [...l.querySelectorAll(d)];
|
|
55
|
-
t.isElement && i.push(...n.querySelectorAll(d)), i.forEach((p) => {
|
|
56
|
-
let a = parseInt(p.getAttribute("data-swiper-parallax-duration"), 10) || e;
|
|
57
|
-
e === 0 && (a = 0), p.style.transitionDuration = `${a}ms`;
|
|
58
|
-
});
|
|
106
|
+
if (a.params.navigation.hideOnClick && !p) {
|
|
107
|
+
if (a.pagination && a.params.pagination && a.params.pagination.clickable && (a.pagination.el === s || a.pagination.el.contains(s))) return;
|
|
108
|
+
let o;
|
|
109
|
+
t.length ? o = t[0].classList.contains(a.params.navigation.hiddenClass) : e.length && (o = e[0].classList.contains(a.params.navigation.hiddenClass)), g(o === !0 ? "navigationShow" : "navigationHide"), [...t, ...e].filter((r) => !!r).forEach((r) => r.classList.toggle(a.params.navigation.hiddenClass));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const k = () => {
|
|
113
|
+
a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")), v(), d();
|
|
114
|
+
}, b = () => {
|
|
115
|
+
a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")), m();
|
|
59
116
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}), u("setTransition", (e, l) => {
|
|
67
|
-
t.params.parallax.enabled && A(l);
|
|
117
|
+
Object.assign(a.navigation, {
|
|
118
|
+
enable: k,
|
|
119
|
+
disable: b,
|
|
120
|
+
update: d,
|
|
121
|
+
init: v,
|
|
122
|
+
destroy: m
|
|
68
123
|
});
|
|
69
124
|
}
|
|
70
125
|
export {
|
|
71
|
-
|
|
126
|
+
N as default
|
|
72
127
|
};
|
package/index19.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const a=require("react/jsx-runtime"),l=require("./
|
|
2
|
+
"use strict";const a=require("react/jsx-runtime"),l=require("./index35.js"),n=require("./index3.js"),m=require("./index107.js"),d=r=>{const{themeName:e="carousel.pagination",tokens:t,children:i="/",customTheme:o}=r,{paginationFractionProps:s,current:c,total:u}=m.useCarouselPaginationFraction(r);return a.jsxs(l.default,{...s,themeName:`${e}.fraction.wrapper`,tokens:t,customTheme:o,children:[a.jsx(n.default,{themeName:`${e}.fraction.current`,tokens:t,children:c}),i&&a.jsx(n.default,{themeName:`${e}.fraction.separator`,tokens:t,children:i}),a.jsx(n.default,{themeName:`${e}.fraction.total`,tokens:t,children:u})]})};module.exports=d;
|
package/index19.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import p from "./
|
|
3
|
+
import p from "./index35.mjs";
|
|
4
4
|
import o from "./index3.mjs";
|
|
5
|
-
import { useCarouselPaginationFraction as l } from "./
|
|
5
|
+
import { useCarouselPaginationFraction as l } from "./index107.mjs";
|
|
6
6
|
const N = (a) => {
|
|
7
7
|
const { themeName: t = "carousel.pagination", tokens: r, children: n = "/", customTheme: i } = a, { paginationFractionProps: m, current: c, total: s } = l(a);
|
|
8
8
|
return /* @__PURE__ */ h(
|