@okam/stack-ui 1.27.3 → 1.29.0
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/Box/interface.d.ts +0 -1
- package/components/Button/interface.d.ts +2 -2
- package/components/Menu/interface.d.ts +5 -2
- package/components/Typography/interface.d.ts +0 -1
- package/components/Video/index.d.ts +3 -0
- package/components/Video/interface.d.ts +6 -0
- package/index.d.ts +1 -2
- package/index.js +1 -1
- package/index.mjs +101 -103
- package/index10.js +1 -1
- package/index10.mjs +1 -1
- package/index100.js +2 -1
- package/index100.mjs +22 -17
- package/index101.js +1 -2
- package/index101.mjs +63 -22
- package/index102.js +1 -1
- package/index102.mjs +24 -58
- package/index103.js +1 -1
- package/index103.mjs +4 -29
- package/index104.js +1 -1
- package/index104.mjs +11 -4
- package/index105.js +1 -1
- package/index105.mjs +14 -11
- package/index106.js +1 -1
- package/index106.mjs +22 -13
- package/index107.js +1 -1
- package/index107.mjs +19 -19
- package/index108.js +1 -1
- package/index108.mjs +38 -22
- package/index109.js +2 -1
- package/index109.mjs +12 -38
- package/index11.js +1 -1
- package/index11.mjs +3 -3
- package/index110.js +1 -2
- package/index110.mjs +7 -12
- package/index111.js +1 -1
- package/index111.mjs +21 -7
- package/index112.js +1 -1
- package/index112.mjs +38 -21
- package/index113.js +1 -1
- package/index113.mjs +49 -38
- package/index114.js +1 -1
- package/index114.mjs +40 -49
- package/index115.js +1 -1
- package/index115.mjs +13 -40
- package/index116.js +1 -1
- package/index116.mjs +26 -14
- package/index117.js +1 -1
- package/index117.mjs +17 -23
- package/index118.js +1 -1
- package/index118.mjs +8 -19
- package/index119.js +1 -1
- package/index119.mjs +30 -9
- package/index12.js +1 -1
- package/index12.mjs +1 -1
- package/index120.js +1 -1
- package/index120.mjs +15 -30
- package/index121.js +1 -1
- package/index121.mjs +15 -13
- package/index122.js +1 -1
- package/index122.mjs +21 -17
- package/index123.js +1 -1
- package/index123.mjs +11 -5
- package/index124.js +2 -1
- package/index124.mjs +21 -20
- package/index125.js +1 -1
- package/index125.mjs +12 -11
- package/index126.js +1 -1
- package/index126.mjs +46 -42
- package/index127.js +1 -2
- package/index127.mjs +239 -20
- package/index128.js +2 -1
- package/index128.mjs +12 -11
- package/index129.js +1 -1
- package/index129.mjs +30 -46
- package/index13.js +1 -1
- package/index13.mjs +32 -15
- package/index130.js +1 -1
- package/index130.mjs +43 -233
- package/index131.js +1 -2
- package/index131.mjs +27 -13
- package/index132.js +1 -1
- package/index132.mjs +21 -30
- package/index133.js +1 -1
- package/index133.mjs +61 -50
- package/index134.js +1 -1
- package/index134.mjs +93 -25
- package/index135.js +1 -1
- package/index135.mjs +27 -16
- package/index136.js +1 -1
- package/index136.mjs +121 -3
- package/index137.js +1 -4
- package/index137.mjs +27 -246
- package/index138.js +1 -1
- package/index138.mjs +124 -61
- package/index139.js +1 -1
- package/index139.mjs +132 -92
- package/index14.js +1 -1
- package/index14.mjs +4 -4
- package/index140.js +1 -1
- package/index140.mjs +14 -31
- package/index141.js +1 -1
- package/index141.mjs +90 -116
- package/index142.js +1 -1
- package/index142.mjs +105 -26
- package/index143.js +1 -1
- package/index143.mjs +5 -124
- package/index144.js +1 -1
- package/index144.mjs +3 -134
- package/index145.js +1 -1
- package/index145.mjs +123 -12
- package/index146.js +1 -1
- package/index146.mjs +18 -84
- package/index147.js +1 -1
- package/index147.mjs +46 -101
- package/index148.js +1 -1
- package/index148.mjs +44 -5
- package/index149.js +1 -1
- package/index149.mjs +37 -3
- package/index15.js +1 -1
- package/index15.mjs +1 -1
- package/index150.js +1 -1
- package/index150.mjs +102 -114
- package/index151.js +1 -1
- package/index151.mjs +69 -21
- package/index152.js +1 -1
- package/index152.mjs +86 -36
- package/index153.js +1 -1
- package/index153.mjs +98 -45
- package/index154.js +1 -1
- package/index154.mjs +192 -30
- package/index155.js +1 -1
- package/index155.mjs +58 -107
- package/index156.js +1 -1
- package/index156.mjs +132 -68
- package/index157.js +1 -1
- package/index157.mjs +119 -101
- package/index158.js +1 -1
- package/index158.mjs +218 -98
- package/index159.js +1 -1
- package/index159.mjs +191 -2
- package/index16.js +1 -1
- package/index16.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +69 -5
- package/index161.js +1 -1
- package/index161.mjs +253 -59
- package/index162.js +1 -1
- package/index162.mjs +95 -24
- package/index163.js +1 -1
- package/index163.mjs +173 -53
- package/index164.js +1 -1
- package/index164.mjs +78 -149
- package/index165.js +1 -1
- package/index165.mjs +57 -21
- package/index166.js +1 -1
- package/index166.mjs +125 -18
- package/index167.js +1 -1
- package/index167.mjs +115 -38
- package/index168.js +1 -1
- package/index168.mjs +117 -77
- package/index169.js +1 -1
- package/index169.mjs +70 -28
- package/index17.js +1 -1
- package/index17.mjs +1 -1
- package/index170.js +1 -1
- package/index170.mjs +110 -21
- package/index171.js +1 -1
- package/index171.mjs +50 -51
- package/index172.js +1 -1
- package/index172.mjs +94 -2
- package/index173.js +1 -11
- package/index173.mjs +69 -114
- package/index174.js +1 -1
- package/index174.mjs +50 -193
- package/index175.js +1 -1
- package/index175.mjs +91 -56
- package/index176.js +5 -1
- package/index176.mjs +75 -136
- package/index177.js +1 -1
- package/index177.mjs +1999 -107
- package/index178.js +1 -1
- package/index178.mjs +56 -214
- package/index179.js +1 -1
- package/index179.mjs +186 -188
- package/index18.js +1 -1
- package/index18.mjs +4 -4
- package/index180.js +1 -1
- package/index180.mjs +5 -69
- package/index181.js +1 -1
- package/index181.mjs +121 -249
- package/index182.js +1 -1
- package/index182.mjs +171 -89
- package/index183.js +1 -1
- package/index183.mjs +8 -173
- package/index184.js +1 -1
- package/index184.mjs +3 -84
- package/index185.js +1 -1
- package/index185.mjs +32 -54
- package/index186.js +1 -1
- package/index186.mjs +5 -126
- package/index187.js +1 -1
- package/index187.mjs +25 -112
- package/index188.js +1 -1
- package/index188.mjs +6 -122
- package/index189.js +1 -1
- package/index189.mjs +307 -66
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +190 -108
- package/index191.js +1 -1
- package/index191.mjs +8 -52
- package/index192.js +1 -1
- package/index192.mjs +24 -91
- package/index193.js +1 -1
- package/index193.mjs +54 -69
- package/index194.js +1 -1
- package/index194.mjs +43 -53
- package/index195.js +1 -1
- package/index195.mjs +123 -98
- package/index196.js +1 -5
- package/index196.mjs +5 -80
- package/index197.js +1 -1
- package/index197.mjs +25 -2008
- package/index198.js +1 -1
- package/index198.mjs +6 -59
- package/index199.js +1 -1
- package/index199.mjs +7 -188
- package/index2.js +1 -1
- package/index2.mjs +20 -20
- package/index20.js +1 -1
- package/index20.mjs +2 -2
- package/index200.js +1 -1
- package/index200.mjs +6 -4
- package/index201.js +1 -1
- package/index201.mjs +5 -2
- package/index202.js +1 -1
- package/index202.mjs +5 -52
- package/index203.js +1 -1
- package/index203.mjs +9 -20
- package/index21.js +1 -1
- package/index21.mjs +1 -1
- package/index22.js +1 -1
- package/index22.mjs +1 -1
- package/index23.js +1 -1
- package/index23.mjs +4 -4
- package/index24.js +1 -1
- package/index24.mjs +5 -5
- package/index25.js +1 -1
- package/index25.mjs +1 -1
- package/index26.js +1 -1
- package/index26.mjs +3 -3
- package/index27.js +1 -1
- package/index27.mjs +3 -3
- package/index28.js +1 -1
- package/index28.mjs +2 -2
- package/index29.js +1 -1
- package/index29.mjs +2 -2
- package/index3.js +1 -1
- package/index3.mjs +1 -1
- package/index30.js +1 -1
- package/index31.js +1 -1
- package/index31.mjs +4 -4
- package/index32.js +1 -1
- package/index32.mjs +2 -2
- package/index33.js +1 -1
- package/index33.mjs +88 -65
- package/index34.js +1 -1
- package/index34.mjs +2 -2
- package/index35.js +1 -1
- package/index35.mjs +3 -3
- package/index36.js +1 -1
- package/index36.mjs +1 -1
- package/index37.js +1 -1
- package/index38.js +2 -1
- package/index38.mjs +20 -45
- package/index39.js +1 -2
- package/index39.mjs +5 -26
- package/index4.js +1 -1
- package/index4.mjs +4 -4
- package/index40.js +1 -1
- package/index40.mjs +7 -4
- package/index41.js +1 -1
- package/index41.mjs +5 -5
- package/index42.js +1 -1
- package/index42.mjs +5 -8
- 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 +9 -3
- package/index47.js +1 -1
- package/index47.mjs +9 -7
- package/index48.js +1 -1
- package/index48.mjs +9 -9
- package/index49.js +1 -1
- package/index49.mjs +46 -13
- package/index50.js +1 -1
- package/index50.mjs +8 -46
- package/index51.js +1 -1
- package/index51.mjs +69 -6
- package/index52.js +1 -1
- package/index52.mjs +8 -71
- package/index53.js +1 -1
- package/index53.mjs +12 -7
- package/index54.js +1 -1
- package/index54.mjs +9 -12
- package/index55.js +1 -1
- package/index55.mjs +17 -10
- package/index56.js +1 -1
- package/index56.mjs +13 -17
- 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 +8 -10
- 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 +8 -6
- package/index62.js +1 -1
- package/index62.mjs +14 -13
- package/index63.js +2 -1
- package/index63.mjs +23 -14
- package/index64.js +1 -1
- package/index64.mjs +15 -21
- package/index65.js +1 -1
- package/index65.mjs +14 -16
- package/index66.js +1 -1
- package/index66.mjs +40 -13
- package/index67.js +1 -1
- package/index67.mjs +36 -39
- package/index68.js +1 -1
- package/index68.mjs +11 -37
- package/index69.js +1 -1
- package/index69.mjs +10 -11
- package/index7.js +1 -1
- package/index7.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +13 -10
- package/index71.js +1 -1
- package/index71.mjs +10 -13
- package/index72.js +1 -2
- package/index72.mjs +2 -12
- package/index73.js +2 -1
- package/index73.mjs +9 -2
- package/index74.js +1 -1
- package/index74.mjs +6 -7
- package/index75.js +1 -1
- package/index75.mjs +6 -6
- package/index76.js +1 -1
- package/index76.mjs +6 -6
- package/index77.js +1 -2
- package/index77.mjs +25 -8
- package/index78.js +1 -1
- package/index78.mjs +2 -25
- package/index79.js +6 -1
- package/index79.mjs +94 -2
- package/index8.js +1 -1
- package/index8.mjs +3 -3
- package/index80.js +1 -6
- package/index80.mjs +54 -79
- package/index81.js +1 -1
- package/index81.mjs +33 -61
- package/index82.js +42 -1
- package/index82.mjs +67 -34
- package/index83.js +1 -42
- package/index83.mjs +154 -65
- package/index84.js +9 -1
- package/index84.mjs +47 -149
- package/index85.js +1 -9
- package/index85.mjs +36 -48
- package/index86.js +1 -1
- package/index86.mjs +8 -40
- package/index87.js +1 -1
- package/index87.mjs +31 -9
- package/index88.js +1 -1
- package/index88.mjs +6 -35
- package/index89.js +12 -1
- package/index89.mjs +40 -6
- package/index9.js +1 -1
- package/index9.mjs +38 -43
- package/index90.js +1 -12
- package/index90.mjs +25 -36
- package/index91.js +1 -1
- package/index91.mjs +8 -24
- package/index92.js +7 -1
- package/index92.mjs +13 -7
- package/index93.js +14 -6
- package/index93.mjs +65 -13
- package/index94.js +1 -15
- package/index94.mjs +7 -71
- package/index95.js +16 -1
- package/index95.mjs +25 -7
- package/index96.js +1 -16
- package/index96.mjs +37 -20
- package/index97.js +1 -1
- package/index97.mjs +43 -40
- package/index98.js +1 -1
- package/index98.mjs +47 -44
- package/index99.js +1 -1
- package/index99.mjs +17 -48
- package/package.json +1 -1
- package/theme/Alerts/index.d.ts +88 -0
- package/theme/Button/index.d.ts +28 -0
- package/theme/Carousel/index.d.ts +36 -0
- package/types/next-link.d.ts +16 -0
- package/components/DirectusImg/index.d.ts +0 -3
- package/components/DirectusImg/interface.d.ts +0 -20
- package/components/Img/index.d.ts +0 -3
- package/components/Img/interface.d.ts +0 -6
- package/index204.js +0 -1
- package/index204.mjs +0 -26
- package/index205.js +0 -1
- package/index205.mjs +0 -29
- package/index206.js +0 -1
- package/index206.mjs +0 -49
- package/index207.js +0 -1
- package/index207.mjs +0 -4
- package/index208.js +0 -1
- package/index208.mjs +0 -23
- package/index209.js +0 -1
- package/index209.mjs +0 -4
- package/index210.js +0 -1
- package/index210.mjs +0 -31
- package/index211.js +0 -1
- package/index211.mjs +0 -4
- package/index212.js +0 -1
- package/index212.mjs +0 -4
- package/index213.js +0 -1
- package/index213.mjs +0 -25
- package/index214.js +0 -1
- package/index214.mjs +0 -4
- package/index215.js +0 -1
- package/index215.mjs +0 -4
- package/index216.js +0 -1
- package/index216.mjs +0 -4
- package/index217.js +0 -1
- package/index217.mjs +0 -40
- package/index218.js +0 -1
- package/index218.mjs +0 -4
- package/index219.js +0 -1
- package/index219.mjs +0 -23
- package/index220.js +0 -1
- package/index220.mjs +0 -25
- package/index221.js +0 -1
- package/index221.mjs +0 -4
- package/index222.js +0 -1
- package/index222.mjs +0 -25
- package/index223.js +0 -1
- package/index223.mjs +0 -4
- package/index224.js +0 -1
- package/index224.mjs +0 -133
- package/index225.js +0 -1
- package/index225.mjs +0 -182
- package/index226.js +0 -1
- package/index226.mjs +0 -12
- package/index227.js +0 -1
- package/index227.mjs +0 -6
- package/index228.js +0 -1
- package/index228.mjs +0 -39
- package/index229.js +0 -1
- package/index229.mjs +0 -8
- package/index230.js +0 -1
- package/index230.mjs +0 -32
- package/index231.js +0 -1
- package/index231.mjs +0 -9
- package/index232.js +0 -1
- package/index232.mjs +0 -316
- package/index233.js +0 -1
- package/index233.mjs +0 -195
- package/index234.js +0 -1
- package/index234.mjs +0 -11
- package/index235.js +0 -1
- package/index235.mjs +0 -29
- package/index236.js +0 -1
- package/index236.mjs +0 -58
- package/index237.js +0 -1
- package/index237.mjs +0 -49
- package/index238.js +0 -1
- package/index238.mjs +0 -127
- package/index239.js +0 -1
- package/index239.mjs +0 -4
- package/index240.js +0 -1
- package/index240.mjs +0 -4
- package/index241.js +0 -1
- package/index241.mjs +0 -4
- package/index242.js +0 -1
- package/index242.mjs +0 -20
- package/index243.js +0 -1
- package/index243.mjs +0 -29
- package/index244.js +0 -1
- package/index244.mjs +0 -4
- package/index245.js +0 -1
- package/index245.mjs +0 -91
- package/index246.js +0 -1
- package/index246.mjs +0 -22
- package/index247.js +0 -1
- package/index247.mjs +0 -4
- package/index248.js +0 -1
- package/index248.mjs +0 -40
- package/index249.js +0 -1
- package/index249.mjs +0 -139
- package/index250.js +0 -1
- package/index250.mjs +0 -4
- package/index251.js +0 -1
- package/index251.mjs +0 -4
- package/index252.js +0 -1
- package/index252.mjs +0 -25
- package/index253.js +0 -1
- package/index253.mjs +0 -4
- package/index254.js +0 -1
- package/index254.mjs +0 -4
- package/index255.js +0 -1
- package/index255.mjs +0 -4
- package/index256.js +0 -1
- package/index256.mjs +0 -25
- package/index257.js +0 -1
- package/index257.mjs +0 -4
- package/index258.js +0 -1
- package/index258.mjs +0 -28
- package/index259.js +0 -1
- package/index259.mjs +0 -4
- package/index260.js +0 -1
- package/index260.mjs +0 -8
- package/index261.js +0 -1
- package/index261.mjs +0 -4
- package/index262.js +0 -1
- package/index262.mjs +0 -4
- package/index263.js +0 -1
- package/index263.mjs +0 -4
- package/index264.js +0 -1
- package/index264.mjs +0 -4
- package/index265.js +0 -1
- package/index265.mjs +0 -74
- package/index266.js +0 -1
- package/index266.mjs +0 -4
- package/index267.js +0 -1
- package/index267.mjs +0 -4
- package/index268.js +0 -1
- package/index268.mjs +0 -21
- package/index269.js +0 -1
- package/index269.mjs +0 -4
- package/index270.js +0 -1
- package/index270.mjs +0 -4
- package/index271.js +0 -1
- package/index271.mjs +0 -4
- package/index272.js +0 -1
- package/index272.mjs +0 -31
- package/index273.js +0 -1
- package/index273.mjs +0 -9
- package/index274.js +0 -1
- package/index274.mjs +0 -10
- package/index275.js +0 -1
- package/index275.mjs +0 -10
- package/index276.js +0 -1
- package/index276.mjs +0 -4
- package/index277.js +0 -1
- package/index277.mjs +0 -39
- package/index278.js +0 -1
- package/index278.mjs +0 -4
- package/index279.js +0 -1
- package/index279.mjs +0 -7
- package/index280.js +0 -1
- package/index280.mjs +0 -8
- package/index281.js +0 -1
- package/index281.mjs +0 -12
- package/index282.js +0 -1
- package/index282.mjs +0 -4
- package/index283.js +0 -1
- package/index283.mjs +0 -20
- package/index284.js +0 -1
- package/index284.mjs +0 -33
- package/index285.js +0 -1
- package/index285.mjs +0 -4
- package/index286.js +0 -1
- package/index286.mjs +0 -4
package/index182.mjs
CHANGED
|
@@ -1,100 +1,182 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { a as c, g as h } from "./index181.mjs";
|
|
2
|
+
function S(e) {
|
|
3
|
+
return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
|
|
4
|
+
}
|
|
5
|
+
function E(e) {
|
|
6
|
+
const t = e;
|
|
7
|
+
Object.keys(t).forEach((n) => {
|
|
8
|
+
try {
|
|
9
|
+
t[n] = null;
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
try {
|
|
13
|
+
delete t[n];
|
|
14
|
+
} catch {
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function v(e, t) {
|
|
19
|
+
return t === void 0 && (t = 0), setTimeout(e, t);
|
|
20
|
+
}
|
|
21
|
+
function M() {
|
|
22
|
+
return Date.now();
|
|
23
|
+
}
|
|
24
|
+
function T(e) {
|
|
25
|
+
const t = c();
|
|
26
|
+
let n;
|
|
27
|
+
return t.getComputedStyle && (n = t.getComputedStyle(e, null)), !n && e.currentStyle && (n = e.currentStyle), n || (n = e.style), n;
|
|
28
|
+
}
|
|
29
|
+
function C(e, t) {
|
|
30
|
+
t === void 0 && (t = "x");
|
|
31
|
+
const n = c();
|
|
32
|
+
let r, i, s;
|
|
33
|
+
const l = T(e);
|
|
34
|
+
return n.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((o) => o.replace(",", ".")).join(", ")), s = new n.WebKitCSSMatrix(i === "none" ? "" : i)) : (s = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = s.toString().split(",")), t === "x" && (n.WebKitCSSMatrix ? i = s.m41 : r.length === 16 ? i = parseFloat(r[12]) : i = parseFloat(r[4])), t === "y" && (n.WebKitCSSMatrix ? i = s.m42 : r.length === 16 ? i = parseFloat(r[13]) : i = parseFloat(r[5])), i || 0;
|
|
35
|
+
}
|
|
36
|
+
function m(e) {
|
|
37
|
+
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
38
|
+
}
|
|
39
|
+
function b(e) {
|
|
40
|
+
return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
|
41
|
+
}
|
|
42
|
+
function y() {
|
|
43
|
+
const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
|
|
44
|
+
for (let n = 1; n < arguments.length; n += 1) {
|
|
45
|
+
const r = n < 0 || arguments.length <= n ? void 0 : arguments[n];
|
|
46
|
+
if (r != null && !b(r)) {
|
|
47
|
+
const i = Object.keys(Object(r)).filter((s) => t.indexOf(s) < 0);
|
|
48
|
+
for (let s = 0, l = i.length; s < l; s += 1) {
|
|
49
|
+
const o = i[s], a = Object.getOwnPropertyDescriptor(r, o);
|
|
50
|
+
a !== void 0 && a.enumerable && (m(e[o]) && m(r[o]) ? r[o].__swiper__ ? e[o] = r[o] : y(e[o], r[o]) : !m(e[o]) && m(r[o]) ? (e[o] = {}, r[o].__swiper__ ? e[o] = r[o] : y(e[o], r[o])) : e[o] = r[o]);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return e;
|
|
55
|
+
}
|
|
56
|
+
function O(e, t, n) {
|
|
57
|
+
e.style.setProperty(t, n);
|
|
58
|
+
}
|
|
59
|
+
function P(e) {
|
|
3
60
|
let {
|
|
4
|
-
swiper:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
|
14
82
|
}
|
|
15
|
-
|
|
16
|
-
control: void 0
|
|
83
|
+
t.cssModeFrameID = i.requestAnimationFrame(w);
|
|
17
84
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
}, this;
|
|
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 {
|
|
32
98
|
}
|
|
33
|
-
|
|
34
|
-
|
|
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;
|
|
35
117
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
e.params.controller.by === "slide" && (h(n), l = -e.controller.spline.interpolate(-c)), (!l || e.params.controller.by === "container") && (t = (n.maxTranslate() - n.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(t) || !Number.isFinite(t)) && (t = 1), l = (c - e.minTranslate()) * t + n.minTranslate()), e.params.controller.inverse && (l = n.maxTranslate() - l), n.updateProgress(l), n.setTranslate(l, e), n.updateActiveIndex(), n.updateSlidesClasses();
|
|
44
|
-
}
|
|
45
|
-
if (Array.isArray(o))
|
|
46
|
-
for (let n = 0; n < o.length; n += 1)
|
|
47
|
-
o[n] !== s && o[n] instanceof a && r(o[n]);
|
|
48
|
-
else o instanceof a && s !== o && r(o);
|
|
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;
|
|
49
125
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
for (l = 0; l < t.length; l += 1)
|
|
62
|
-
t[l] !== s && t[l] instanceof o && a(t[l]);
|
|
63
|
-
else t instanceof o && s !== t && a(t);
|
|
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;
|
|
64
137
|
}
|
|
65
|
-
|
|
66
|
-
|
|
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));
|
|
67
149
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
e.controller.control = o.detail[0], e.update(), i.removeEventListener("init", s);
|
|
77
|
-
};
|
|
78
|
-
i.addEventListener("init", s);
|
|
79
|
-
}
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
e.controller.control = e.params.controller.control;
|
|
83
|
-
}), f("update", () => {
|
|
84
|
-
d();
|
|
85
|
-
}), f("resize", () => {
|
|
86
|
-
d();
|
|
87
|
-
}), f("observerUpdate", () => {
|
|
88
|
-
d();
|
|
89
|
-
}), f("setTranslate", (i, s, o) => {
|
|
90
|
-
!e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(s, o);
|
|
91
|
-
}), f("setTransition", (i, s, o) => {
|
|
92
|
-
!e.controller.control || e.controller.control.destroyed || e.controller.setTransition(s, o);
|
|
93
|
-
}), Object.assign(e.controller, {
|
|
94
|
-
setTranslate: y,
|
|
95
|
-
setTransition: x
|
|
96
|
-
});
|
|
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);
|
|
97
158
|
}
|
|
98
159
|
export {
|
|
99
|
-
|
|
160
|
+
K as a,
|
|
161
|
+
L as b,
|
|
162
|
+
A as c,
|
|
163
|
+
M as d,
|
|
164
|
+
F as e,
|
|
165
|
+
V as f,
|
|
166
|
+
I as g,
|
|
167
|
+
S as h,
|
|
168
|
+
C as i,
|
|
169
|
+
q as j,
|
|
170
|
+
m as k,
|
|
171
|
+
j as l,
|
|
172
|
+
B as m,
|
|
173
|
+
v as n,
|
|
174
|
+
W as o,
|
|
175
|
+
D as p,
|
|
176
|
+
k as q,
|
|
177
|
+
P as r,
|
|
178
|
+
O as s,
|
|
179
|
+
_ as t,
|
|
180
|
+
y as u,
|
|
181
|
+
E as v
|
|
100
182
|
};
|
package/index183.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index182.js");function o(i,f,l,n){return i.params.createElements&&Object.keys(n).forEach(e=>{if(!l[e]&&l.auto===!0){let t=u.e(i.el,`.${n[e]}`)[0];t||(t=u.c("div",n[e]),t.className=n[e],i.el.append(t)),l[e]=t,f[e]=t}}),l}exports.c=o;
|
package/index183.mjs
CHANGED
|
@@ -1,177 +1,12 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
on: o
|
|
8
|
-
} = R;
|
|
9
|
-
I({
|
|
10
|
-
a11y: {
|
|
11
|
-
enabled: !0,
|
|
12
|
-
notificationClass: "swiper-notification",
|
|
13
|
-
prevSlideMessage: "Previous slide",
|
|
14
|
-
nextSlideMessage: "Next slide",
|
|
15
|
-
firstSlideMessage: "This is the first slide",
|
|
16
|
-
lastSlideMessage: "This is the last slide",
|
|
17
|
-
paginationBulletMessage: "Go to slide {{index}}",
|
|
18
|
-
slideLabelMessage: "{{index}} / {{slidesLength}}",
|
|
19
|
-
containerMessage: null,
|
|
20
|
-
containerRoleDescriptionMessage: null,
|
|
21
|
-
itemRoleDescriptionMessage: null,
|
|
22
|
-
slideRole: "group",
|
|
23
|
-
id: null
|
|
1
|
+
import { e as i, c as m } from "./index182.mjs";
|
|
2
|
+
function o(f, a, n, l) {
|
|
3
|
+
return f.params.createElements && Object.keys(l).forEach((e) => {
|
|
4
|
+
if (!n[e] && n.auto === !0) {
|
|
5
|
+
let t = i(f.el, `.${l[e]}`)[0];
|
|
6
|
+
t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
|
|
24
7
|
}
|
|
25
|
-
}),
|
|
26
|
-
clicked: !1
|
|
27
|
-
};
|
|
28
|
-
let r = null;
|
|
29
|
-
function c(e) {
|
|
30
|
-
const a = r;
|
|
31
|
-
a.length !== 0 && (a.innerHTML = "", a.innerHTML = e);
|
|
32
|
-
}
|
|
33
|
-
function T(e) {
|
|
34
|
-
const a = () => Math.round(16 * Math.random()).toString(16);
|
|
35
|
-
return "x".repeat(e).replace(/x/g, a);
|
|
36
|
-
}
|
|
37
|
-
function p(e) {
|
|
38
|
-
e = n(e), e.forEach((a) => {
|
|
39
|
-
a.setAttribute("tabIndex", "0");
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function b(e) {
|
|
43
|
-
e = n(e), e.forEach((a) => {
|
|
44
|
-
a.setAttribute("tabIndex", "-1");
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
function m(e, a) {
|
|
48
|
-
e = n(e), e.forEach((t) => {
|
|
49
|
-
t.setAttribute("role", a);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function h(e, a) {
|
|
53
|
-
e = n(e), e.forEach((t) => {
|
|
54
|
-
t.setAttribute("aria-roledescription", a);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
function P(e, a) {
|
|
58
|
-
e = n(e), e.forEach((t) => {
|
|
59
|
-
t.setAttribute("aria-controls", a);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function f(e, a) {
|
|
63
|
-
e = n(e), e.forEach((t) => {
|
|
64
|
-
t.setAttribute("aria-label", a);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function D(e, a) {
|
|
68
|
-
e = n(e), e.forEach((t) => {
|
|
69
|
-
t.setAttribute("id", a);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function N(e, a) {
|
|
73
|
-
e = n(e), e.forEach((t) => {
|
|
74
|
-
t.setAttribute("aria-live", a);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
function y(e) {
|
|
78
|
-
e = n(e), e.forEach((a) => {
|
|
79
|
-
a.setAttribute("aria-disabled", !0);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
function M(e) {
|
|
83
|
-
e = n(e), e.forEach((a) => {
|
|
84
|
-
a.setAttribute("aria-disabled", !1);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function d(e) {
|
|
88
|
-
if (e.keyCode !== 13 && e.keyCode !== 32) return;
|
|
89
|
-
const a = i.params.a11y, t = e.target;
|
|
90
|
-
i.pagination && i.pagination.el && (t === i.pagination.el || i.pagination.el.contains(e.target)) && !e.target.matches(v(i.params.pagination.bulletClass)) || (i.navigation && i.navigation.nextEl && t === i.navigation.nextEl && (i.isEnd && !i.params.loop || i.slideNext(), i.isEnd ? c(a.lastSlideMessage) : c(a.nextSlideMessage)), i.navigation && i.navigation.prevEl && t === i.navigation.prevEl && (i.isBeginning && !i.params.loop || i.slidePrev(), i.isBeginning ? c(a.firstSlideMessage) : c(a.prevSlideMessage)), i.pagination && t.matches(v(i.params.pagination.bulletClass)) && t.click());
|
|
91
|
-
}
|
|
92
|
-
function B() {
|
|
93
|
-
if (i.params.loop || i.params.rewind || !i.navigation) return;
|
|
94
|
-
const {
|
|
95
|
-
nextEl: e,
|
|
96
|
-
prevEl: a
|
|
97
|
-
} = i.navigation;
|
|
98
|
-
a && (i.isBeginning ? (y(a), b(a)) : (M(a), p(a))), e && (i.isEnd ? (y(e), b(e)) : (M(e), p(e)));
|
|
99
|
-
}
|
|
100
|
-
function x() {
|
|
101
|
-
return i.pagination && i.pagination.bullets && i.pagination.bullets.length;
|
|
102
|
-
}
|
|
103
|
-
function L() {
|
|
104
|
-
return x() && i.params.pagination.clickable;
|
|
105
|
-
}
|
|
106
|
-
function F() {
|
|
107
|
-
const e = i.params.a11y;
|
|
108
|
-
x() && i.pagination.bullets.forEach((a) => {
|
|
109
|
-
i.params.pagination.clickable && (p(a), i.params.pagination.renderBullet || (m(a, "button"), f(a, e.paginationBulletMessage.replace(/\{\{index\}\}/, q(a) + 1)))), a.matches(v(i.params.pagination.bulletActiveClass)) ? a.setAttribute("aria-current", "true") : a.removeAttribute("aria-current");
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
const A = (e, a, t) => {
|
|
113
|
-
p(e), e.tagName !== "BUTTON" && (m(e, "button"), e.addEventListener("keydown", d)), f(e, t), P(e, a);
|
|
114
|
-
}, k = () => {
|
|
115
|
-
i.a11y.clicked = !0;
|
|
116
|
-
}, w = () => {
|
|
117
|
-
requestAnimationFrame(() => {
|
|
118
|
-
requestAnimationFrame(() => {
|
|
119
|
-
i.destroyed || (i.a11y.clicked = !1);
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
}, S = (e) => {
|
|
123
|
-
if (i.a11y.clicked) return;
|
|
124
|
-
const a = e.target.closest(`.${i.params.slideClass}, swiper-slide`);
|
|
125
|
-
if (!a || !i.slides.includes(a)) return;
|
|
126
|
-
const t = i.slides.indexOf(a) === i.activeIndex, s = i.params.watchSlidesProgress && i.visibleSlides && i.visibleSlides.includes(a);
|
|
127
|
-
t || s || e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents || (i.isHorizontal() ? i.el.scrollLeft = 0 : i.el.scrollTop = 0, i.slideTo(i.slides.indexOf(a), 0));
|
|
128
|
-
}, C = () => {
|
|
129
|
-
const e = i.params.a11y;
|
|
130
|
-
e.itemRoleDescriptionMessage && h(i.slides, e.itemRoleDescriptionMessage), e.slideRole && m(i.slides, e.slideRole);
|
|
131
|
-
const a = i.slides.length;
|
|
132
|
-
e.slideLabelMessage && i.slides.forEach((t, s) => {
|
|
133
|
-
const E = i.params.loop ? parseInt(t.getAttribute("data-swiper-slide-index"), 10) : s, l = e.slideLabelMessage.replace(/\{\{index\}\}/, E + 1).replace(/\{\{slidesLength\}\}/, a);
|
|
134
|
-
f(t, l);
|
|
135
|
-
});
|
|
136
|
-
}, O = () => {
|
|
137
|
-
const e = i.params.a11y;
|
|
138
|
-
i.el.append(r);
|
|
139
|
-
const a = i.el;
|
|
140
|
-
e.containerRoleDescriptionMessage && h(a, e.containerRoleDescriptionMessage), e.containerMessage && f(a, e.containerMessage);
|
|
141
|
-
const t = i.wrapperEl, s = e.id || t.getAttribute("id") || `swiper-wrapper-${T(16)}`, E = i.params.autoplay && i.params.autoplay.enabled ? "off" : "polite";
|
|
142
|
-
D(t, s), N(t, E), C();
|
|
143
|
-
let {
|
|
144
|
-
nextEl: l,
|
|
145
|
-
prevEl: g
|
|
146
|
-
} = i.navigation ? i.navigation : {};
|
|
147
|
-
l = n(l), g = n(g), l && l.forEach((u) => A(u, s, e.nextSlideMessage)), g && g.forEach((u) => A(u, s, e.prevSlideMessage)), L() && n(i.pagination.el).forEach((H) => {
|
|
148
|
-
H.addEventListener("keydown", d);
|
|
149
|
-
}), i.el.addEventListener("focus", S, !0), i.el.addEventListener("pointerdown", k, !0), i.el.addEventListener("pointerup", w, !0);
|
|
150
|
-
};
|
|
151
|
-
function G() {
|
|
152
|
-
r && r.remove();
|
|
153
|
-
let {
|
|
154
|
-
nextEl: e,
|
|
155
|
-
prevEl: a
|
|
156
|
-
} = i.navigation ? i.navigation : {};
|
|
157
|
-
e = n(e), a = n(a), e && e.forEach((t) => t.removeEventListener("keydown", d)), a && a.forEach((t) => t.removeEventListener("keydown", d)), L() && n(i.pagination.el).forEach((s) => {
|
|
158
|
-
s.removeEventListener("keydown", d);
|
|
159
|
-
}), i.el.removeEventListener("focus", S, !0), i.el.removeEventListener("pointerdown", k, !0), i.el.removeEventListener("pointerup", w, !0);
|
|
160
|
-
}
|
|
161
|
-
o("beforeInit", () => {
|
|
162
|
-
r = U("span", i.params.a11y.notificationClass), r.setAttribute("aria-live", "assertive"), r.setAttribute("aria-atomic", "true");
|
|
163
|
-
}), o("afterInit", () => {
|
|
164
|
-
i.params.a11y.enabled && O();
|
|
165
|
-
}), o("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
|
|
166
|
-
i.params.a11y.enabled && C();
|
|
167
|
-
}), o("fromEdge toEdge afterInit lock unlock", () => {
|
|
168
|
-
i.params.a11y.enabled && B();
|
|
169
|
-
}), o("paginationUpdate", () => {
|
|
170
|
-
i.params.a11y.enabled && F();
|
|
171
|
-
}), o("destroy", () => {
|
|
172
|
-
i.params.a11y.enabled && G();
|
|
173
|
-
});
|
|
8
|
+
}), n;
|
|
174
9
|
}
|
|
175
10
|
export {
|
|
176
|
-
|
|
11
|
+
o as c
|
|
177
12
|
};
|
package/index184.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}exports.c=r;
|
package/index184.mjs
CHANGED
|
@@ -1,87 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let {
|
|
4
|
-
swiper: e,
|
|
5
|
-
extendParams: S,
|
|
6
|
-
on: c
|
|
7
|
-
} = w;
|
|
8
|
-
S({
|
|
9
|
-
history: {
|
|
10
|
-
enabled: !1,
|
|
11
|
-
root: "",
|
|
12
|
-
replaceState: !1,
|
|
13
|
-
key: "slides",
|
|
14
|
-
keepQuery: !1
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
let d = !1, o = {};
|
|
18
|
-
const y = (t) => t.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), u = (t) => {
|
|
19
|
-
const l = h();
|
|
20
|
-
let r;
|
|
21
|
-
t ? r = new URL(t) : r = l.location;
|
|
22
|
-
const a = r.pathname.slice(1).split("/").filter((i) => i !== ""), n = a.length, s = a[n - 2], p = a[n - 1];
|
|
23
|
-
return {
|
|
24
|
-
key: s,
|
|
25
|
-
value: p
|
|
26
|
-
};
|
|
27
|
-
}, m = (t, l) => {
|
|
28
|
-
const r = h();
|
|
29
|
-
if (!d || !e.params.history.enabled) return;
|
|
30
|
-
let a;
|
|
31
|
-
e.params.url ? a = new URL(e.params.url) : a = r.location;
|
|
32
|
-
const n = e.slides[l];
|
|
33
|
-
let s = y(n.getAttribute("data-history"));
|
|
34
|
-
if (e.params.history.root.length > 0) {
|
|
35
|
-
let i = e.params.history.root;
|
|
36
|
-
i[i.length - 1] === "/" && (i = i.slice(0, i.length - 1)), s = `${i}/${t ? `${t}/` : ""}${s}`;
|
|
37
|
-
} else a.pathname.includes(t) || (s = `${t ? `${t}/` : ""}${s}`);
|
|
38
|
-
e.params.history.keepQuery && (s += a.search);
|
|
39
|
-
const p = r.history.state;
|
|
40
|
-
p && p.value === s || (e.params.history.replaceState ? r.history.replaceState({
|
|
41
|
-
value: s
|
|
42
|
-
}, null, s) : r.history.pushState({
|
|
43
|
-
value: s
|
|
44
|
-
}, null, s));
|
|
45
|
-
}, g = (t, l, r) => {
|
|
46
|
-
if (l)
|
|
47
|
-
for (let a = 0, n = e.slides.length; a < n; a += 1) {
|
|
48
|
-
const s = e.slides[a];
|
|
49
|
-
if (y(s.getAttribute("data-history")) === l) {
|
|
50
|
-
const i = e.getSlideIndex(s);
|
|
51
|
-
e.slideTo(i, t, r);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else
|
|
55
|
-
e.slideTo(0, t, r);
|
|
56
|
-
}, f = () => {
|
|
57
|
-
o = u(e.params.url), g(e.params.speed, o.value, !1);
|
|
58
|
-
}, v = () => {
|
|
59
|
-
const t = h();
|
|
60
|
-
if (e.params.history) {
|
|
61
|
-
if (!t.history || !t.history.pushState) {
|
|
62
|
-
e.params.history.enabled = !1, e.params.hashNavigation.enabled = !0;
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (d = !0, o = u(e.params.url), !o.key && !o.value) {
|
|
66
|
-
e.params.history.replaceState || t.addEventListener("popstate", f);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
g(0, o.value, e.params.runCallbacksOnInit), e.params.history.replaceState || t.addEventListener("popstate", f);
|
|
70
|
-
}
|
|
71
|
-
}, b = () => {
|
|
72
|
-
const t = h();
|
|
73
|
-
e.params.history.replaceState || t.removeEventListener("popstate", f);
|
|
74
|
-
};
|
|
75
|
-
c("init", () => {
|
|
76
|
-
e.params.history.enabled && v();
|
|
77
|
-
}), c("destroy", () => {
|
|
78
|
-
e.params.history.enabled && b();
|
|
79
|
-
}), c("transitionEnd _freeModeNoMomentumRelease", () => {
|
|
80
|
-
d && m(e.params.history.key, e.activeIndex);
|
|
81
|
-
}), c("slideChange", () => {
|
|
82
|
-
d && e.params.cssMode && m(e.params.history.key, e.activeIndex);
|
|
83
|
-
});
|
|
1
|
+
function r(e) {
|
|
2
|
+
return e === void 0 && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
|
|
84
3
|
}
|
|
85
4
|
export {
|
|
86
|
-
|
|
5
|
+
r as c
|
|
87
6
|
};
|
package/index185.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(d){const{effect:s,swiper:e,on:r,setTranslate:n,setTransition:p,overwriteParams:f,perspective:o,recreateShadows:l,getEffectParams:c}=d;r("beforeInit",()=>{if(e.params.effect!==s)return;e.classNames.push(`${e.params.containerModifierClass}${s}`),o&&o()&&e.classNames.push(`${e.params.containerModifierClass}3d`);const t=f?f():{};Object.assign(e.params,t),Object.assign(e.originalParams,t)}),r("setTranslate",()=>{e.params.effect===s&&n()}),r("setTransition",(t,i)=>{e.params.effect===s&&p(i)}),r("transitionEnd",()=>{if(e.params.effect===s&&l){if(!c||!c().slideShadows)return;e.slides.forEach(t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(i=>i.remove())}),l()}});let a;r("virtualUpdate",()=>{e.params.effect===s&&(e.slides.length||(a=!0),requestAnimationFrame(()=>{a&&e.slides&&e.slides.length&&(n(),a=!1)}))})}exports.e=m;
|