@okam/stack-ui 1.26.0 → 1.27.2
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/components/Alerts/interface.d.ts +3 -28
- package/components/Button/index.d.ts +2 -2
- package/components/Button/interface.d.ts +2 -2
- package/components/Carousel/components/CarouselNavigationButton.d.ts +8 -0
- package/components/Carousel/components/CarouselSlide.d.ts +3 -0
- package/components/Carousel/components/CarouselSwiper.d.ts +3 -0
- package/components/Carousel/components/pagination/CarouselPagination.d.ts +3 -0
- package/components/Carousel/components/pagination/CarouselPaginationBullet.d.ts +3 -0
- package/components/Carousel/interface.d.ts +34 -17
- package/index.d.ts +4 -2
- package/index.js +1 -1
- package/index.mjs +167 -159
- package/index10.js +1 -1
- package/index10.mjs +2 -2
- package/index100.js +1 -1
- package/index100.mjs +17 -65
- package/index101.js +2 -1
- package/index101.mjs +20 -140
- package/index102.js +1 -1
- package/index102.mjs +62 -119
- package/index103.js +1 -1
- package/index103.mjs +28 -217
- package/index104.js +1 -1
- package/index104.mjs +4 -175
- package/index105.js +1 -1
- package/index105.mjs +11 -127
- package/index106.js +1 -1
- package/index106.mjs +13 -240
- package/index107.js +1 -1
- package/index107.mjs +23 -4
- package/index108.js +1 -1
- package/index108.mjs +23 -11
- package/index109.js +1 -1
- package/index109.mjs +39 -14
- package/index11.js +1 -1
- package/index11.mjs +67 -60
- package/index110.js +2 -1
- package/index110.mjs +11 -21
- package/index111.js +1 -1
- package/index111.mjs +8 -23
- package/index112.js +1 -1
- package/index112.mjs +20 -37
- package/index113.js +1 -2
- package/index113.mjs +38 -12
- package/index114.js +1 -1
- package/index114.mjs +49 -7
- package/index115.js +1 -1
- package/index115.mjs +40 -21
- package/index116.js +1 -1
- package/index116.mjs +13 -38
- package/index117.js +1 -1
- package/index117.mjs +26 -50
- package/index118.js +1 -1
- package/index118.mjs +20 -41
- package/index119.js +1 -1
- package/index119.mjs +9 -14
- package/index12.js +1 -1
- package/index12.mjs +44 -15
- package/index120.js +1 -1
- package/index120.mjs +30 -26
- package/index121.js +1 -1
- package/index121.mjs +13 -18
- package/index122.js +1 -1
- package/index122.mjs +16 -8
- package/index123.js +1 -1
- package/index123.mjs +5 -30
- package/index124.js +1 -1
- package/index124.mjs +21 -15
- package/index125.js +1 -1
- package/index125.mjs +11 -17
- package/index126.js +1 -1
- package/index126.mjs +42 -5
- package/index127.js +2 -1
- package/index127.mjs +21 -20
- package/index128.js +1 -1
- package/index128.mjs +12 -11
- package/index129.js +1 -1
- package/index129.mjs +46 -104
- package/index13.js +1 -2
- package/index13.mjs +17 -20
- package/index130.js +1 -1
- package/index130.mjs +237 -38
- package/index131.js +1 -1
- package/index131.mjs +12 -21
- package/index132.js +1 -1
- package/index132.mjs +29 -11
- package/index133.js +1 -1
- package/index133.mjs +1 -1
- package/index134.js +1 -1
- package/index134.mjs +2 -2
- package/index135.js +1 -1
- package/index135.mjs +1 -1
- package/index136.js +1 -1
- package/index136.mjs +4 -25
- package/index137.js +4 -1
- package/index137.mjs +247 -46
- package/index138.js +1 -2
- package/index138.mjs +61 -11
- package/index139.js +1 -0
- package/index139.mjs +97 -0
- package/index14.js +1 -1
- package/index14.mjs +18 -17
- package/index140.js +1 -0
- package/index140.mjs +34 -0
- package/index141.js +1 -1
- package/index141.mjs +119 -39
- package/index142.js +1 -1
- package/index142.mjs +28 -29
- package/index143.js +1 -1
- package/index143.mjs +122 -197
- package/index144.js +1 -1
- package/index144.mjs +131 -187
- package/index145.js +1 -1
- package/index145.mjs +14 -69
- package/index146.js +1 -1
- package/index146.mjs +85 -248
- package/index147.js +1 -1
- package/index147.mjs +102 -93
- package/index148.js +1 -1
- package/index148.mjs +5 -84
- package/index149.js +1 -1
- package/index149.mjs +3 -58
- package/index15.js +1 -1
- package/index15.mjs +16 -83
- package/index150.js +1 -1
- package/index150.mjs +121 -112
- package/index151.js +1 -1
- package/index151.mjs +26 -119
- package/index152.js +1 -1
- package/index152.mjs +51 -72
- package/index153.js +1 -1
- package/index153.mjs +41 -107
- package/index154.js +1 -1
- package/index154.mjs +36 -51
- package/index155.js +1 -1
- package/index155.mjs +111 -91
- package/index156.js +1 -1
- package/index156.mjs +77 -70
- package/index157.js +1 -1
- package/index157.mjs +101 -56
- package/index158.js +1 -1
- package/index158.mjs +98 -100
- package/index159.js +11 -5
- package/index159.mjs +114 -79
- package/index16.js +1 -1
- package/index16.mjs +81 -28
- package/index160.js +1 -1
- package/index160.mjs +2 -2012
- package/index161.js +1 -1
- package/index161.mjs +5 -59
- package/index162.js +1 -1
- package/index162.mjs +63 -187
- package/index163.js +1 -1
- package/index163.mjs +26 -5
- package/index164.js +1 -4
- package/index164.mjs +48 -240
- package/index165.js +1 -1
- package/index165.mjs +156 -31
- package/index166.js +1 -1
- package/index166.mjs +21 -60
- package/index167.js +1 -1
- package/index167.mjs +18 -93
- package/index168.js +1 -1
- package/index168.mjs +39 -31
- package/index169.js +1 -1
- package/index169.mjs +80 -128
- package/index17.js +1 -1
- package/index17.mjs +30 -32
- package/index170.js +1 -1
- package/index170.mjs +27 -176
- package/index171.js +1 -1
- package/index171.mjs +20 -8
- package/index172.js +1 -1
- package/index172.mjs +53 -3
- package/index173.js +1 -1
- package/index173.mjs +2 -37
- package/index174.js +1 -1
- package/index174.mjs +199 -5
- package/index175.js +1 -1
- package/index175.mjs +61 -26
- package/index176.js +1 -1
- package/index176.mjs +141 -6
- package/index177.js +1 -1
- package/index177.mjs +114 -116
- package/index178.js +1 -1
- package/index178.mjs +217 -27
- package/index179.js +1 -1
- package/index179.mjs +188 -122
- package/index18.js +1 -1
- package/index18.mjs +33 -31
- package/index180.js +1 -1
- package/index180.mjs +67 -132
- package/index181.js +1 -1
- package/index181.mjs +258 -14
- package/index182.js +1 -1
- package/index182.mjs +92 -90
- package/index183.js +1 -1
- package/index183.mjs +172 -104
- package/index184.js +1 -1
- package/index184.mjs +84 -5
- package/index185.js +1 -1
- package/index185.mjs +58 -3
- package/index186.js +1 -1
- package/index186.mjs +123 -122
- package/index187.js +1 -1
- package/index187.mjs +113 -26
- package/index188.js +1 -1
- package/index188.mjs +119 -48
- package/index189.js +1 -1
- package/index189.mjs +72 -44
- package/index19.js +1 -1
- package/index19.mjs +30 -33
- package/index190.js +1 -1
- package/index190.mjs +107 -34
- package/index191.js +1 -1
- package/index191.mjs +50 -111
- package/index192.js +1 -1
- package/index192.mjs +93 -77
- package/index193.js +1 -1
- package/index193.mjs +70 -101
- package/index194.js +1 -1
- package/index194.mjs +57 -98
- package/index195.js +1 -1
- package/index195.mjs +100 -2
- package/index196.js +5 -1
- package/index196.mjs +80 -5
- package/index197.js +1 -1
- package/index197.mjs +2005 -58
- package/index198.js +1 -1
- package/index198.mjs +59 -26
- package/index199.js +1 -1
- package/index199.mjs +187 -53
- package/index2.js +1 -1
- package/index2.mjs +20 -20
- package/index20.js +1 -1
- package/index20.mjs +32 -67
- package/index200.js +1 -1
- package/index200.mjs +5 -155
- package/index201.js +1 -1
- package/index201.mjs +2 -23
- package/index202.js +1 -1
- package/index202.mjs +47 -14
- package/index203.js +1 -1
- package/index203.mjs +17 -36
- package/index204.js +1 -1
- package/index204.mjs +18 -77
- package/index205.js +1 -1
- package/index205.mjs +23 -27
- package/index206.js +1 -1
- package/index206.mjs +40 -15
- package/index207.js +1 -1
- package/index207.mjs +2 -61
- package/index208.js +1 -1
- package/index208.mjs +21 -2
- package/index209.js +1 -11
- package/index209.mjs +2 -116
- package/index21.js +1 -1
- package/index21.mjs +61 -58
- package/index210.js +1 -1
- package/index210.mjs +29 -2
- package/index211.js +1 -1
- package/index211.mjs +2 -6
- package/index212.mjs +2 -2
- package/index213.js +1 -1
- package/index213.mjs +18 -48
- package/index214.js +1 -1
- package/index214.mjs +2 -21
- package/index215.js +1 -1
- package/index215.mjs +2 -24
- package/index216.js +1 -1
- package/index216.mjs +2 -27
- package/index217.js +1 -1
- package/index217.mjs +34 -43
- package/index218.js +1 -1
- package/index218.mjs +2 -2
- package/index219.js +1 -1
- package/index219.mjs +12 -12
- package/index22.js +1 -1
- package/index22.mjs +66 -52
- package/index220.js +1 -1
- package/index220.mjs +23 -2
- package/index221.js +1 -1
- package/index221.mjs +2 -29
- package/index222.js +1 -1
- package/index222.mjs +23 -2
- package/index223.mjs +2 -2
- package/index224.js +1 -1
- package/index224.mjs +128 -20
- package/index225.js +1 -1
- package/index225.mjs +180 -2
- package/index226.js +1 -1
- package/index226.mjs +10 -2
- package/index227.js +1 -1
- package/index227.mjs +4 -2
- package/index228.js +1 -1
- package/index228.mjs +35 -36
- package/index229.js +1 -1
- package/index229.mjs +6 -2
- package/index23.js +1 -1
- package/index23.mjs +38 -42
- package/index230.js +1 -1
- package/index230.mjs +28 -19
- package/index231.js +1 -1
- package/index231.mjs +6 -22
- package/index232.js +1 -1
- package/index232.mjs +314 -2
- package/index233.js +1 -1
- package/index233.mjs +190 -20
- package/index234.js +1 -1
- package/index234.mjs +9 -2
- package/index235.js +1 -1
- package/index235.mjs +22 -309
- package/index236.js +1 -1
- package/index236.mjs +54 -191
- package/index237.js +1 -1
- package/index237.mjs +46 -8
- package/index238.js +1 -1
- package/index238.mjs +123 -25
- package/index239.js +1 -1
- package/index239.mjs +2 -56
- package/index24.js +1 -1
- package/index24.mjs +57 -20
- package/index240.js +1 -1
- package/index240.mjs +2 -47
- package/index241.js +1 -1
- package/index241.mjs +2 -125
- package/index242.js +1 -1
- package/index242.mjs +17 -5
- package/index243.js +1 -1
- package/index243.mjs +27 -2
- package/index244.mjs +2 -2
- package/index245.js +1 -1
- package/index245.mjs +89 -2
- package/index246.js +1 -1
- package/index246.mjs +11 -9
- package/index247.js +1 -1
- package/index247.mjs +2 -27
- package/index248.js +1 -1
- package/index248.mjs +38 -2
- package/index249.js +1 -1
- package/index249.mjs +131 -83
- package/index25.js +1 -1
- package/index25.mjs +20 -50
- package/index250.js +1 -1
- package/index250.mjs +2 -20
- package/index251.js +1 -1
- package/index251.mjs +23 -2
- package/index252.js +1 -1
- package/index252.mjs +2 -38
- package/index253.js +1 -1
- package/index253.mjs +2 -137
- package/index254.mjs +2 -2
- package/index255.js +1 -1
- package/index255.mjs +2 -23
- package/index256.js +1 -1
- package/index256.mjs +23 -2
- package/index257.js +1 -1
- package/index257.mjs +2 -2
- package/index258.js +1 -1
- package/index258.mjs +26 -2
- package/index259.js +1 -1
- package/index259.mjs +2 -2
- package/index26.js +1 -1
- package/index26.mjs +50 -17
- package/index260.js +1 -1
- package/index260.mjs +5 -22
- package/index261.js +1 -1
- package/index261.mjs +2 -2
- package/index262.js +1 -1
- package/index262.mjs +2 -26
- package/index263.mjs +2 -2
- package/index264.mjs +2 -2
- package/index265.js +1 -1
- package/index265.mjs +72 -2
- package/index266.mjs +2 -2
- package/index267.mjs +2 -2
- package/index268.js +1 -1
- package/index268.mjs +14 -67
- package/index269.mjs +2 -2
- package/index27.js +1 -1
- package/index27.mjs +16 -32
- package/index270.mjs +2 -2
- package/index271.js +1 -1
- package/index271.mjs +2 -19
- package/index272.js +1 -1
- package/index272.mjs +29 -2
- package/index273.js +1 -1
- package/index273.mjs +7 -2
- package/index274.js +1 -1
- package/index274.mjs +8 -2
- package/index275.js +1 -1
- package/index275.mjs +7 -28
- package/index276.js +1 -1
- package/index276.mjs +2 -7
- package/index277.js +1 -1
- package/index277.mjs +36 -7
- package/index278.js +1 -1
- package/index278.mjs +2 -8
- package/index279.js +1 -1
- package/index279.mjs +5 -2
- package/index28.js +1 -1
- package/index28.mjs +32 -23
- package/index280.js +1 -1
- package/index280.mjs +5 -36
- package/index281.js +1 -1
- package/index281.mjs +10 -2
- package/index282.js +1 -1
- package/index282.mjs +2 -5
- package/index283.js +1 -1
- package/index283.mjs +17 -5
- package/index284.js +1 -1
- package/index284.mjs +30 -9
- package/index285.mjs +2 -2
- package/index286.js +1 -1
- package/index286.mjs +2 -18
- package/index29.js +1 -1
- package/index29.mjs +24 -8
- package/index3.js +1 -1
- package/index3.mjs +1 -1
- package/index30.js +1 -1
- package/index30.mjs +8 -32
- package/index31.js +1 -1
- package/index31.mjs +29 -30
- package/index32.js +1 -1
- package/index32.mjs +28 -98
- package/index33.js +1 -1
- package/index33.mjs +102 -8
- package/index34.js +1 -1
- package/index34.mjs +8 -45
- package/index35.js +1 -1
- package/index35.mjs +46 -17
- package/index36.js +2 -1
- package/index36.mjs +19 -6
- package/index37.js +1 -1
- package/index37.mjs +6 -46
- package/index38.js +1 -1
- package/index38.mjs +45 -23
- package/index39.js +2 -1
- package/index39.mjs +26 -5
- package/index4.js +1 -1
- package/index4.mjs +5 -5
- package/index40.js +1 -1
- package/index40.mjs +4 -7
- package/index41.js +1 -1
- package/index41.mjs +5 -5
- package/index42.js +1 -1
- package/index42.mjs +8 -5
- package/index43.js +1 -1
- package/index43.mjs +2 -2
- package/index44.js +1 -1
- package/index44.mjs +1 -1
- package/index45.js +1 -1
- package/index45.mjs +4 -4
- package/index46.js +1 -1
- package/index46.mjs +3 -9
- package/index47.js +1 -1
- package/index47.mjs +7 -9
- package/index48.js +1 -1
- package/index48.mjs +9 -9
- package/index49.js +1 -1
- package/index49.mjs +13 -46
- package/index50.js +1 -1
- package/index50.mjs +46 -8
- package/index51.js +1 -1
- package/index51.mjs +6 -69
- package/index52.js +1 -1
- package/index52.mjs +71 -8
- package/index53.js +1 -1
- package/index53.mjs +7 -12
- package/index54.js +1 -1
- package/index54.mjs +12 -9
- package/index55.js +1 -1
- package/index55.mjs +10 -17
- package/index56.js +1 -1
- package/index56.mjs +17 -13
- package/index57.js +1 -1
- package/index57.mjs +5 -5
- package/index58.js +1 -1
- package/index58.mjs +6 -6
- package/index59.js +1 -1
- package/index59.mjs +10 -8
- package/index6.js +1 -1
- package/index6.mjs +1 -1
- package/index60.js +1 -1
- package/index60.mjs +5 -5
- package/index61.js +1 -1
- package/index61.mjs +6 -8
- package/index62.js +1 -1
- package/index62.mjs +13 -14
- package/index63.js +1 -2
- package/index63.mjs +14 -23
- package/index64.js +1 -1
- package/index64.mjs +21 -15
- package/index65.js +1 -1
- package/index65.mjs +16 -14
- package/index66.js +1 -1
- package/index66.mjs +13 -40
- package/index67.js +1 -1
- package/index67.mjs +39 -36
- package/index68.js +1 -1
- package/index68.mjs +37 -11
- package/index69.js +1 -1
- package/index69.mjs +11 -10
- package/index7.js +1 -1
- package/index7.mjs +2 -2
- package/index70.js +1 -1
- package/index70.mjs +10 -13
- package/index71.js +2 -1
- package/index71.mjs +15 -2
- package/index72.js +1 -1
- package/index72.mjs +11 -8
- package/index73.js +1 -2
- package/index73.mjs +1 -7
- package/index74.js +1 -1
- package/index74.mjs +7 -6
- package/index75.js +1 -1
- package/index75.mjs +6 -6
- package/index76.js +2 -1
- package/index76.mjs +8 -25
- package/index77.js +2 -1
- package/index77.mjs +8 -2
- package/index78.js +1 -6
- package/index78.mjs +25 -94
- package/index79.js +1 -1
- package/index79.mjs +2 -69
- package/index8.js +1 -1
- package/index8.mjs +5 -5
- package/index80.js +6 -1
- package/index80.mjs +82 -29
- package/index81.js +1 -42
- package/index81.mjs +64 -65
- package/index82.js +1 -1
- package/index82.mjs +32 -150
- package/index83.js +42 -1
- package/index83.mjs +68 -20
- package/index84.js +1 -1
- package/index84.mjs +145 -31
- package/index85.js +9 -1
- package/index85.mjs +54 -10
- package/index86.js +1 -1
- package/index86.mjs +38 -28
- package/index87.js +1 -1
- package/index87.mjs +12 -5
- package/index88.js +1 -12
- package/index88.mjs +31 -36
- package/index89.js +1 -1
- package/index89.mjs +6 -29
- package/index9.js +1 -1
- package/index9.mjs +4 -4
- package/index90.js +12 -1
- package/index90.mjs +39 -12
- package/index91.js +1 -7
- package/index91.mjs +23 -13
- package/index92.js +1 -15
- package/index92.mjs +9 -67
- package/index93.js +7 -1
- package/index93.mjs +17 -5
- package/index94.js +13 -14
- package/index94.mjs +63 -17
- package/index95.js +1 -1
- package/index95.mjs +7 -42
- package/index96.js +16 -1
- package/index96.mjs +24 -44
- package/index97.js +1 -1
- package/index97.mjs +42 -48
- package/index98.js +1 -1
- package/index98.mjs +45 -17
- package/index99.js +1 -2
- package/index99.mjs +47 -21
- package/package.json +1 -1
- package/providers/Swiper/index.d.ts +4 -0
- package/providers/{Alerts → Swiper}/interface.d.ts +2 -2
- package/theme/Alerts/index.d.ts +1 -1
- package/theme/Carousel/index.d.ts +216 -8
- package/components/Alerts/components/AlertsNavigationButton.d.ts +0 -8
- package/components/Alerts/components/AlertsSwiper.d.ts +0 -3
- package/components/Alerts/components/pagination/AlertsPagination.d.ts +0 -3
- package/components/Alerts/components/pagination/AlertsPaginationBullet.d.ts +0 -3
- package/index287.js +0 -1
- package/index287.mjs +0 -33
- package/index288.js +0 -1
- package/index288.mjs +0 -4
- package/index289.js +0 -1
- package/index289.mjs +0 -4
- package/providers/Alerts/index.d.ts +0 -4
- package/style.css +0 -1
package/index170.mjs
CHANGED
|
@@ -1,182 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
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
|
-
}
|
|
1
|
+
import { __module as a } from "./index218.mjs";
|
|
2
|
+
import { __require as h } from "./index204.mjs";
|
|
3
|
+
import { __require as p } from "./index219.mjs";
|
|
4
|
+
import { __require as g } from "./index220.mjs";
|
|
5
|
+
var n;
|
|
42
6
|
function y() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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]);
|
|
7
|
+
return n ? a.exports : (n = 1, function(i, e) {
|
|
8
|
+
Object.defineProperty(e, "__esModule", {
|
|
9
|
+
value: !0
|
|
10
|
+
}), Object.defineProperty(e, "getDomainLocale", {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: function() {
|
|
13
|
+
return c;
|
|
51
14
|
}
|
|
15
|
+
});
|
|
16
|
+
const l = h(), u = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
17
|
+
function c(r, f, s, d) {
|
|
18
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
19
|
+
const m = p().normalizeLocalePath, _ = g().detectDomainLocale, o = f || m(r, s).detectedLocale, t = _(d, void 0, o);
|
|
20
|
+
if (t) {
|
|
21
|
+
const L = "http" + (t.http ? "" : "s") + "://", P = o === t.defaultLocale ? "" : "/" + o;
|
|
22
|
+
return "" + L + t.domain + (0, l.normalizePathTrailingSlash)("" + u + P + r);
|
|
23
|
+
}
|
|
24
|
+
return !1;
|
|
25
|
+
} else
|
|
26
|
+
return !1;
|
|
52
27
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
function O(e, t, n) {
|
|
57
|
-
e.style.setProperty(t, n);
|
|
58
|
-
}
|
|
59
|
-
function P(e) {
|
|
60
|
-
let {
|
|
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;
|
|
82
|
-
}
|
|
83
|
-
t.cssModeFrameID = i.requestAnimationFrame(w);
|
|
84
|
-
};
|
|
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 {
|
|
98
|
-
}
|
|
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;
|
|
117
|
-
}
|
|
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;
|
|
125
|
-
}
|
|
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;
|
|
137
|
-
}
|
|
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));
|
|
149
|
-
}
|
|
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);
|
|
28
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), i.exports = e.default);
|
|
29
|
+
}(a, a.exports), a.exports);
|
|
158
30
|
}
|
|
159
31
|
export {
|
|
160
|
-
|
|
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
|
|
32
|
+
y as __require
|
|
182
33
|
};
|
package/index171.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index221.js"),o=require("./index222.js"),f=require("./index204.js");var r;function s(){return r||(r=1,function(u,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return _}});const d=o.__require(),n=f.__require(),i=process.env.__NEXT_ROUTER_BASEPATH||"";function _(a,l){return(0,n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH&&!l?a:(0,d.addPathPrefix)(a,i))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),u.exports=e.default)}(t.__module,t.__module.exports)),t.__module.exports}exports.__require=s;
|
package/index171.mjs
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { __module as a } from "./index221.mjs";
|
|
2
|
+
import { __require as _ } from "./index222.mjs";
|
|
3
|
+
import { __require as l } from "./index204.mjs";
|
|
4
|
+
var t;
|
|
5
|
+
function h() {
|
|
6
|
+
return t ? a.exports : (t = 1, function(u, e) {
|
|
7
|
+
Object.defineProperty(e, "__esModule", {
|
|
8
|
+
value: !0
|
|
9
|
+
}), Object.defineProperty(e, "addBasePath", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: function() {
|
|
12
|
+
return f;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const i = _(), d = l(), n = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
16
|
+
function f(r, o) {
|
|
17
|
+
return (0, d.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !o ? r : (0, i.addPathPrefix)(r, n));
|
|
7
18
|
}
|
|
8
|
-
|
|
19
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), u.exports = e.default);
|
|
20
|
+
}(a, a.exports), a.exports);
|
|
9
21
|
}
|
|
10
22
|
export {
|
|
11
|
-
|
|
23
|
+
h as __require
|
|
12
24
|
};
|
package/index172.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index223.js");var f;function a(){return f||(f=1,function(c,e){Object.defineProperty(e,"__esModule",{value:!0});function _(t,u){for(var o in u)Object.defineProperty(t,o,{enumerable:!0,get:u[o]})}_(e,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return T},ACTION_RESTORE:function(){return R},ACTION_SERVER_PATCH:function(){return E},ACTION_PREFETCH:function(){return A},ACTION_FAST_REFRESH:function(){return d},ACTION_SERVER_ACTION:function(){return O},isThenable:function(){return s}});const i="refresh",T="navigate",R="restore",E="server-patch",A="prefetch",d="fast-refresh",O="server-action";var r;(function(t){t.AUTO="auto",t.FULL="full",t.TEMPORARY="temporary"})(r||(r={}));function s(t){return t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),c.exports=e.default)}(n.__module,n.__module.exports)),n.__module.exports}exports.__require=a;
|
package/index172.mjs
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { __module as n } from "./index223.mjs";
|
|
2
|
+
var f;
|
|
3
|
+
function C() {
|
|
4
|
+
return f ? n.exports : (f = 1, function(c, e) {
|
|
5
|
+
Object.defineProperty(e, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
});
|
|
8
|
+
function i(t, u) {
|
|
9
|
+
for (var o in u) Object.defineProperty(t, o, {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: u[o]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
i(e, {
|
|
15
|
+
PrefetchKind: function() {
|
|
16
|
+
return r;
|
|
17
|
+
},
|
|
18
|
+
ACTION_REFRESH: function() {
|
|
19
|
+
return T;
|
|
20
|
+
},
|
|
21
|
+
ACTION_NAVIGATE: function() {
|
|
22
|
+
return _;
|
|
23
|
+
},
|
|
24
|
+
ACTION_RESTORE: function() {
|
|
25
|
+
return R;
|
|
26
|
+
},
|
|
27
|
+
ACTION_SERVER_PATCH: function() {
|
|
28
|
+
return E;
|
|
29
|
+
},
|
|
30
|
+
ACTION_PREFETCH: function() {
|
|
31
|
+
return A;
|
|
32
|
+
},
|
|
33
|
+
ACTION_FAST_REFRESH: function() {
|
|
34
|
+
return O;
|
|
35
|
+
},
|
|
36
|
+
ACTION_SERVER_ACTION: function() {
|
|
37
|
+
return a;
|
|
38
|
+
},
|
|
39
|
+
isThenable: function() {
|
|
40
|
+
return s;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const T = "refresh", _ = "navigate", R = "restore", E = "server-patch", A = "prefetch", O = "fast-refresh", a = "server-action";
|
|
44
|
+
var r;
|
|
45
|
+
(function(t) {
|
|
46
|
+
t.AUTO = "auto", t.FULL = "full", t.TEMPORARY = "temporary";
|
|
47
|
+
})(r || (r = {}));
|
|
48
|
+
function s(t) {
|
|
49
|
+
return t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function";
|
|
50
|
+
}
|
|
51
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), c.exports = e.default);
|
|
52
|
+
}(n, n.exports), n.exports);
|
|
3
53
|
}
|
|
4
54
|
export {
|
|
5
|
-
|
|
55
|
+
C as __require
|
|
6
56
|
};
|
package/index173.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/index173.mjs
CHANGED
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const {
|
|
3
|
-
effect: s,
|
|
4
|
-
swiper: e,
|
|
5
|
-
on: r,
|
|
6
|
-
setTranslate: f,
|
|
7
|
-
setTransition: p,
|
|
8
|
-
overwriteParams: n,
|
|
9
|
-
perspective: o,
|
|
10
|
-
recreateShadows: l,
|
|
11
|
-
getEffectParams: c
|
|
12
|
-
} = d;
|
|
13
|
-
r("beforeInit", () => {
|
|
14
|
-
if (e.params.effect !== s) return;
|
|
15
|
-
e.classNames.push(`${e.params.containerModifierClass}${s}`), o && o() && e.classNames.push(`${e.params.containerModifierClass}3d`);
|
|
16
|
-
const a = n ? n() : {};
|
|
17
|
-
Object.assign(e.params, a), Object.assign(e.originalParams, a);
|
|
18
|
-
}), r("setTranslate", () => {
|
|
19
|
-
e.params.effect === s && f();
|
|
20
|
-
}), r("setTransition", (a, i) => {
|
|
21
|
-
e.params.effect === s && p(i);
|
|
22
|
-
}), r("transitionEnd", () => {
|
|
23
|
-
if (e.params.effect === s && l) {
|
|
24
|
-
if (!c || !c().slideShadows) return;
|
|
25
|
-
e.slides.forEach((a) => {
|
|
26
|
-
a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((i) => i.remove());
|
|
27
|
-
}), l();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
let t;
|
|
31
|
-
r("virtualUpdate", () => {
|
|
32
|
-
e.params.effect === s && (e.slides.length || (t = !0), requestAnimationFrame(() => {
|
|
33
|
-
t && e.slides && e.slides.length && (f(), t = !1);
|
|
34
|
-
}));
|
|
35
|
-
});
|
|
36
|
-
}
|
|
1
|
+
var e = {};
|
|
37
2
|
export {
|
|
38
|
-
|
|
3
|
+
e as __exports
|
|
39
4
|
};
|
package/index174.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const R=require("./index224.js"),x=require("./index225.js");function _(I){let{swiper:e,extendParams:U,on:M,emit:T}=I;U({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let P;const y=R.g();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const $=y.createElement("div");function G(i,r){const a=e.params.virtual;if(a.cache&&e.virtual.cache[r])return e.virtual.cache[r];let s;return a.renderSlide?(s=a.renderSlide.call(e,i,r),typeof s=="string"&&($.innerHTML=s,s=$.children[0])):e.isElement?s=x.c("swiper-slide"):s=x.c("div",e.params.slideClass),s.setAttribute("data-swiper-slide-index",r),a.renderSlide||(s.innerHTML=i),a.cache&&(e.virtual.cache[r]=s),s}function u(i){const{slidesPerView:r,slidesPerGroup:a,centeredSlides:s,loop:d}=e.params,{addSlidesBefore:g,addSlidesAfter:w}=e.params.virtual,{from:p,to:h,slides:n,slidesGrid:V,offset:q}=e.virtual;e.params.cssMode||e.updateActiveIndex();const S=e.activeIndex||0;let b;e.rtlTranslate?b="right":b=e.isHorizontal()?"left":"top";let A,o;s?(A=Math.floor(r/2)+a+w,o=Math.floor(r/2)+a+g):(A=r+(a-1)+w,o=(d?r:a)+g);let c=S-o,f=S+A;d||(c=Math.max(c,0),f=Math.min(f,n.length-1));let v=(e.slidesGrid[c]||0)-(e.slidesGrid[0]||0);d&&S>=o?(c-=o,s||(v+=e.slidesGrid[0])):d&&S<o&&(c=-o,s&&(v+=e.slidesGrid[0])),Object.assign(e.virtual,{from:c,to:f,offset:v,slidesGrid:e.slidesGrid,slidesBefore:o,slidesAfter:A});function j(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),T("virtualUpdate")}if(p===c&&h===f&&!i){e.slidesGrid!==V&&v!==q&&e.slides.forEach(t=>{t.style[b]=`${v-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),T("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:v,from:c,to:f,slides:function(){const l=[];for(let m=c;m<=f;m+=1)l.push(n[m]);return l}()}),e.params.virtual.renderExternalUpdate?j():T("virtualUpdate");return}const E=[],O=[],C=t=>{let l=t;return t<0?l=n.length+t:l>=n.length&&(l=l-n.length),l};if(i)e.slides.filter(t=>t.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(t=>{t.remove()});else for(let t=p;t<=h;t+=1)if(t<c||t>f){const l=C(t);e.slides.filter(m=>m.matches(`.${e.params.slideClass}[data-swiper-slide-index="${l}"], swiper-slide[data-swiper-slide-index="${l}"]`)).forEach(m=>{m.remove()})}const F=d?-n.length:0,N=d?n.length*2:n.length;for(let t=F;t<N;t+=1)if(t>=c&&t<=f){const l=C(t);typeof h>"u"||i?O.push(l):(t>h&&O.push(l),t<p&&E.push(l))}if(O.forEach(t=>{e.slidesEl.append(G(n[t],t))}),d)for(let t=E.length-1;t>=0;t-=1){const l=E[t];e.slidesEl.prepend(G(n[l],l))}else E.sort((t,l)=>l-t),E.forEach(t=>{e.slidesEl.prepend(G(n[t],t))});x.e(e.slidesEl,".swiper-slide, swiper-slide").forEach(t=>{t.style[b]=`${v-Math.abs(e.cssOverflowAdjustment())}px`}),j()}function z(i){if(typeof i=="object"&&"length"in i)for(let r=0;r<i.length;r+=1)i[r]&&e.virtual.slides.push(i[r]);else e.virtual.slides.push(i);u(!0)}function B(i){const r=e.activeIndex;let a=r+1,s=1;if(Array.isArray(i)){for(let d=0;d<i.length;d+=1)i[d]&&e.virtual.slides.unshift(i[d]);a=r+i.length,s=i.length}else e.virtual.slides.unshift(i);if(e.params.virtual.cache){const d=e.virtual.cache,g={};Object.keys(d).forEach(w=>{const p=d[w],h=p.getAttribute("data-swiper-slide-index");h&&p.setAttribute("data-swiper-slide-index",parseInt(h,10)+s),g[parseInt(w,10)+s]=p}),e.virtual.cache=g}u(!0),e.slideTo(a,0)}function H(i){if(typeof i>"u"||i===null)return;let r=e.activeIndex;if(Array.isArray(i))for(let a=i.length-1;a>=0;a-=1)e.params.virtual.cache&&(delete e.virtual.cache[i[a]],Object.keys(e.virtual.cache).forEach(s=>{s>i&&(e.virtual.cache[s-1]=e.virtual.cache[s],e.virtual.cache[s-1].setAttribute("data-swiper-slide-index",s-1),delete e.virtual.cache[s])})),e.virtual.slides.splice(i[a],1),i[a]<r&&(r-=1),r=Math.max(r,0);else e.params.virtual.cache&&(delete e.virtual.cache[i],Object.keys(e.virtual.cache).forEach(a=>{a>i&&(e.virtual.cache[a-1]=e.virtual.cache[a],e.virtual.cache[a-1].setAttribute("data-swiper-slide-index",a-1),delete e.virtual.cache[a])})),e.virtual.slides.splice(i,1),i<r&&(r-=1),r=Math.max(r,0);u(!0),e.slideTo(r,0)}function L(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),u(!0),e.slideTo(0,0)}M("beforeInit",()=>{if(!e.params.virtual.enabled)return;let i;if(typeof e.passedParams.virtual.slides>"u"){const r=[...e.slidesEl.children].filter(a=>a.matches(`.${e.params.slideClass}, swiper-slide`));r&&r.length&&(e.virtual.slides=[...r],i=!0,r.forEach((a,s)=>{a.setAttribute("data-swiper-slide-index",s),e.virtual.cache[s]=a,a.remove()}))}i||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,u()}),M("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(P),P=setTimeout(()=>{u()},100)):u())}),M("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&x.s(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:z,prependSlide:B,removeSlide:H,removeAllSlides:L,update:u})}module.exports=_;
|
package/index174.mjs
CHANGED
|
@@ -1,8 +1,202 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { g as R } from "./index224.mjs";
|
|
2
|
+
import { s as _, e as q, c as j } from "./index225.mjs";
|
|
3
|
+
function Q(y) {
|
|
4
|
+
let {
|
|
5
|
+
swiper: e,
|
|
6
|
+
extendParams: I,
|
|
7
|
+
on: x,
|
|
8
|
+
emit: M
|
|
9
|
+
} = y;
|
|
10
|
+
I({
|
|
11
|
+
virtual: {
|
|
12
|
+
enabled: !1,
|
|
13
|
+
slides: [],
|
|
14
|
+
cache: !0,
|
|
15
|
+
renderSlide: null,
|
|
16
|
+
renderExternal: null,
|
|
17
|
+
renderExternalUpdate: !0,
|
|
18
|
+
addSlidesBefore: 0,
|
|
19
|
+
addSlidesAfter: 0
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
let P;
|
|
23
|
+
const U = R();
|
|
24
|
+
e.virtual = {
|
|
25
|
+
cache: {},
|
|
26
|
+
from: void 0,
|
|
27
|
+
to: void 0,
|
|
28
|
+
slides: [],
|
|
29
|
+
offset: 0,
|
|
30
|
+
slidesGrid: []
|
|
31
|
+
};
|
|
32
|
+
const O = U.createElement("div");
|
|
33
|
+
function T(i, r) {
|
|
34
|
+
const a = e.params.virtual;
|
|
35
|
+
if (a.cache && e.virtual.cache[r])
|
|
36
|
+
return e.virtual.cache[r];
|
|
37
|
+
let s;
|
|
38
|
+
return a.renderSlide ? (s = a.renderSlide.call(e, i, r), typeof s == "string" && (O.innerHTML = s, s = O.children[0])) : e.isElement ? s = j("swiper-slide") : s = j("div", e.params.slideClass), s.setAttribute("data-swiper-slide-index", r), a.renderSlide || (s.innerHTML = i), a.cache && (e.virtual.cache[r] = s), s;
|
|
39
|
+
}
|
|
40
|
+
function o(i) {
|
|
41
|
+
const {
|
|
42
|
+
slidesPerView: r,
|
|
43
|
+
slidesPerGroup: a,
|
|
44
|
+
centeredSlides: s,
|
|
45
|
+
loop: d
|
|
46
|
+
} = e.params, {
|
|
47
|
+
addSlidesBefore: g,
|
|
48
|
+
addSlidesAfter: S
|
|
49
|
+
} = e.params.virtual, {
|
|
50
|
+
from: p,
|
|
51
|
+
to: h,
|
|
52
|
+
slides: n,
|
|
53
|
+
slidesGrid: V,
|
|
54
|
+
offset: D
|
|
55
|
+
} = e.virtual;
|
|
56
|
+
e.params.cssMode || e.updateActiveIndex();
|
|
57
|
+
const E = e.activeIndex || 0;
|
|
58
|
+
let b;
|
|
59
|
+
e.rtlTranslate ? b = "right" : b = e.isHorizontal() ? "left" : "top";
|
|
60
|
+
let A, u;
|
|
61
|
+
s ? (A = Math.floor(r / 2) + a + S, u = Math.floor(r / 2) + a + g) : (A = r + (a - 1) + S, u = (d ? r : a) + g);
|
|
62
|
+
let c = E - u, f = E + A;
|
|
63
|
+
d || (c = Math.max(c, 0), f = Math.min(f, n.length - 1));
|
|
64
|
+
let v = (e.slidesGrid[c] || 0) - (e.slidesGrid[0] || 0);
|
|
65
|
+
d && E >= u ? (c -= u, s || (v += e.slidesGrid[0])) : d && E < u && (c = -u, s && (v += e.slidesGrid[0])), Object.assign(e.virtual, {
|
|
66
|
+
from: c,
|
|
67
|
+
to: f,
|
|
68
|
+
offset: v,
|
|
69
|
+
slidesGrid: e.slidesGrid,
|
|
70
|
+
slidesBefore: u,
|
|
71
|
+
slidesAfter: A
|
|
72
|
+
});
|
|
73
|
+
function C() {
|
|
74
|
+
e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), M("virtualUpdate");
|
|
75
|
+
}
|
|
76
|
+
if (p === c && h === f && !i) {
|
|
77
|
+
e.slidesGrid !== V && v !== D && e.slides.forEach((t) => {
|
|
78
|
+
t.style[b] = `${v - Math.abs(e.cssOverflowAdjustment())}px`;
|
|
79
|
+
}), e.updateProgress(), M("virtualUpdate");
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (e.params.virtual.renderExternal) {
|
|
83
|
+
e.params.virtual.renderExternal.call(e, {
|
|
84
|
+
offset: v,
|
|
85
|
+
from: c,
|
|
86
|
+
to: f,
|
|
87
|
+
slides: function() {
|
|
88
|
+
const l = [];
|
|
89
|
+
for (let m = c; m <= f; m += 1)
|
|
90
|
+
l.push(n[m]);
|
|
91
|
+
return l;
|
|
92
|
+
}()
|
|
93
|
+
}), e.params.virtual.renderExternalUpdate ? C() : M("virtualUpdate");
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const w = [], G = [], $ = (t) => {
|
|
97
|
+
let l = t;
|
|
98
|
+
return t < 0 ? l = n.length + t : l >= n.length && (l = l - n.length), l;
|
|
99
|
+
};
|
|
100
|
+
if (i)
|
|
101
|
+
e.slides.filter((t) => t.matches(`.${e.params.slideClass}, swiper-slide`)).forEach((t) => {
|
|
102
|
+
t.remove();
|
|
103
|
+
});
|
|
104
|
+
else
|
|
105
|
+
for (let t = p; t <= h; t += 1)
|
|
106
|
+
if (t < c || t > f) {
|
|
107
|
+
const l = $(t);
|
|
108
|
+
e.slides.filter((m) => m.matches(`.${e.params.slideClass}[data-swiper-slide-index="${l}"], swiper-slide[data-swiper-slide-index="${l}"]`)).forEach((m) => {
|
|
109
|
+
m.remove();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
const F = d ? -n.length : 0, N = d ? n.length * 2 : n.length;
|
|
113
|
+
for (let t = F; t < N; t += 1)
|
|
114
|
+
if (t >= c && t <= f) {
|
|
115
|
+
const l = $(t);
|
|
116
|
+
typeof h > "u" || i ? G.push(l) : (t > h && G.push(l), t < p && w.push(l));
|
|
117
|
+
}
|
|
118
|
+
if (G.forEach((t) => {
|
|
119
|
+
e.slidesEl.append(T(n[t], t));
|
|
120
|
+
}), d)
|
|
121
|
+
for (let t = w.length - 1; t >= 0; t -= 1) {
|
|
122
|
+
const l = w[t];
|
|
123
|
+
e.slidesEl.prepend(T(n[l], l));
|
|
124
|
+
}
|
|
125
|
+
else
|
|
126
|
+
w.sort((t, l) => l - t), w.forEach((t) => {
|
|
127
|
+
e.slidesEl.prepend(T(n[t], t));
|
|
128
|
+
});
|
|
129
|
+
q(e.slidesEl, ".swiper-slide, swiper-slide").forEach((t) => {
|
|
130
|
+
t.style[b] = `${v - Math.abs(e.cssOverflowAdjustment())}px`;
|
|
131
|
+
}), C();
|
|
132
|
+
}
|
|
133
|
+
function z(i) {
|
|
134
|
+
if (typeof i == "object" && "length" in i)
|
|
135
|
+
for (let r = 0; r < i.length; r += 1)
|
|
136
|
+
i[r] && e.virtual.slides.push(i[r]);
|
|
137
|
+
else
|
|
138
|
+
e.virtual.slides.push(i);
|
|
139
|
+
o(!0);
|
|
140
|
+
}
|
|
141
|
+
function B(i) {
|
|
142
|
+
const r = e.activeIndex;
|
|
143
|
+
let a = r + 1, s = 1;
|
|
144
|
+
if (Array.isArray(i)) {
|
|
145
|
+
for (let d = 0; d < i.length; d += 1)
|
|
146
|
+
i[d] && e.virtual.slides.unshift(i[d]);
|
|
147
|
+
a = r + i.length, s = i.length;
|
|
148
|
+
} else
|
|
149
|
+
e.virtual.slides.unshift(i);
|
|
150
|
+
if (e.params.virtual.cache) {
|
|
151
|
+
const d = e.virtual.cache, g = {};
|
|
152
|
+
Object.keys(d).forEach((S) => {
|
|
153
|
+
const p = d[S], h = p.getAttribute("data-swiper-slide-index");
|
|
154
|
+
h && p.setAttribute("data-swiper-slide-index", parseInt(h, 10) + s), g[parseInt(S, 10) + s] = p;
|
|
155
|
+
}), e.virtual.cache = g;
|
|
156
|
+
}
|
|
157
|
+
o(!0), e.slideTo(a, 0);
|
|
158
|
+
}
|
|
159
|
+
function H(i) {
|
|
160
|
+
if (typeof i > "u" || i === null) return;
|
|
161
|
+
let r = e.activeIndex;
|
|
162
|
+
if (Array.isArray(i))
|
|
163
|
+
for (let a = i.length - 1; a >= 0; a -= 1)
|
|
164
|
+
e.params.virtual.cache && (delete e.virtual.cache[i[a]], Object.keys(e.virtual.cache).forEach((s) => {
|
|
165
|
+
s > i && (e.virtual.cache[s - 1] = e.virtual.cache[s], e.virtual.cache[s - 1].setAttribute("data-swiper-slide-index", s - 1), delete e.virtual.cache[s]);
|
|
166
|
+
})), e.virtual.slides.splice(i[a], 1), i[a] < r && (r -= 1), r = Math.max(r, 0);
|
|
167
|
+
else
|
|
168
|
+
e.params.virtual.cache && (delete e.virtual.cache[i], Object.keys(e.virtual.cache).forEach((a) => {
|
|
169
|
+
a > i && (e.virtual.cache[a - 1] = e.virtual.cache[a], e.virtual.cache[a - 1].setAttribute("data-swiper-slide-index", a - 1), delete e.virtual.cache[a]);
|
|
170
|
+
})), e.virtual.slides.splice(i, 1), i < r && (r -= 1), r = Math.max(r, 0);
|
|
171
|
+
o(!0), e.slideTo(r, 0);
|
|
172
|
+
}
|
|
173
|
+
function L() {
|
|
174
|
+
e.virtual.slides = [], e.params.virtual.cache && (e.virtual.cache = {}), o(!0), e.slideTo(0, 0);
|
|
175
|
+
}
|
|
176
|
+
x("beforeInit", () => {
|
|
177
|
+
if (!e.params.virtual.enabled) return;
|
|
178
|
+
let i;
|
|
179
|
+
if (typeof e.passedParams.virtual.slides > "u") {
|
|
180
|
+
const r = [...e.slidesEl.children].filter((a) => a.matches(`.${e.params.slideClass}, swiper-slide`));
|
|
181
|
+
r && r.length && (e.virtual.slides = [...r], i = !0, r.forEach((a, s) => {
|
|
182
|
+
a.setAttribute("data-swiper-slide-index", s), e.virtual.cache[s] = a, a.remove();
|
|
183
|
+
}));
|
|
184
|
+
}
|
|
185
|
+
i || (e.virtual.slides = e.params.virtual.slides), e.classNames.push(`${e.params.containerModifierClass}virtual`), e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0, o();
|
|
186
|
+
}), x("setTranslate", () => {
|
|
187
|
+
e.params.virtual.enabled && (e.params.cssMode && !e._immediateVirtual ? (clearTimeout(P), P = setTimeout(() => {
|
|
188
|
+
o();
|
|
189
|
+
}, 100)) : o());
|
|
190
|
+
}), x("init update resize", () => {
|
|
191
|
+
e.params.virtual.enabled && e.params.cssMode && _(e.wrapperEl, "--swiper-virtual-size", `${e.virtualSize}px`);
|
|
192
|
+
}), Object.assign(e.virtual, {
|
|
193
|
+
appendSlide: z,
|
|
194
|
+
prependSlide: B,
|
|
195
|
+
removeSlide: H,
|
|
196
|
+
removeAllSlides: L,
|
|
197
|
+
update: o
|
|
198
|
+
});
|
|
5
199
|
}
|
|
6
200
|
export {
|
|
7
|
-
|
|
201
|
+
Q as default
|
|
8
202
|
};
|
package/index175.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const P=require("./index224.js"),b=require("./index225.js");function U(V){let{swiper:e,extendParams:x,on:y,emit:L}=V;const a=P.g(),m=P.a();e.keyboard={enabled:!1},x({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function g(N){if(!e.enabled)return;const{rtlTranslate:l}=e;let t=N;t.originalEvent&&(t=t.originalEvent);const i=t.keyCode||t.charCode,h=e.params.keyboard.pageUpDown,r=h&&i===33,o=h&&i===34,d=i===37,f=i===39,c=i===38,u=i===40;if(!e.allowSlideNext&&(e.isHorizontal()&&f||e.isVertical()&&u||o)||!e.allowSlidePrev&&(e.isHorizontal()&&d||e.isVertical()&&c||r))return!1;if(!(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey)&&!(a.activeElement&&a.activeElement.nodeName&&(a.activeElement.nodeName.toLowerCase()==="input"||a.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(r||o||d||f||c||u)){let D=!1;if(b.a(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&b.a(e.el,`.${e.params.slideActiveClass}`).length===0)return;const p=e.el,E=p.clientWidth,C=p.clientHeight,A=m.innerWidth,K=m.innerHeight,n=b.b(p);l&&(n.left-=p.scrollLeft);const H=[[n.left,n.top],[n.left+E,n.top],[n.left,n.top+C],[n.left+E,n.top+C]];for(let w=0;w<H.length;w+=1){const s=H[w];if(s[0]>=0&&s[0]<=A&&s[1]>=0&&s[1]<=K){if(s[0]===0&&s[1]===0)continue;D=!0}}if(!D)return}e.isHorizontal()?((r||o||d||f)&&(t.preventDefault?t.preventDefault():t.returnValue=!1),((o||f)&&!l||(r||d)&&l)&&e.slideNext(),((r||d)&&!l||(o||f)&&l)&&e.slidePrev()):((r||o||c||u)&&(t.preventDefault?t.preventDefault():t.returnValue=!1),(o||u)&&e.slideNext(),(r||c)&&e.slidePrev()),L("keyPress",i)}}function v(){e.keyboard.enabled||(a.addEventListener("keydown",g),e.keyboard.enabled=!0)}function k(){e.keyboard.enabled&&(a.removeEventListener("keydown",g),e.keyboard.enabled=!1)}y("init",()=>{e.params.keyboard.enabled&&v()}),y("destroy",()=>{e.keyboard.enabled&&k()}),Object.assign(e.keyboard,{enable:v,disable:k})}module.exports=U;
|