@okam/stack-ui 1.32.1 → 1.32.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.
Files changed (278) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +1 -1
  3. package/index.mjs +53 -55
  4. package/index101.js +1 -1
  5. package/index101.mjs +1 -1
  6. package/index102.js +1 -1
  7. package/index102.mjs +3 -3
  8. package/index103.js +1 -1
  9. package/index103.mjs +1 -1
  10. package/index110.js +1 -1
  11. package/index110.mjs +5 -5
  12. package/index111.js +1 -1
  13. package/index111.mjs +2 -2
  14. package/index112.js +1 -1
  15. package/index112.mjs +1 -1
  16. package/index113.js +1 -1
  17. package/index113.mjs +2 -2
  18. package/index115.js +1 -1
  19. package/index115.mjs +4 -4
  20. package/index116.js +1 -1
  21. package/index116.mjs +2 -2
  22. package/index120.js +1 -1
  23. package/index120.mjs +4 -4
  24. package/index121.js +1 -1
  25. package/index121.mjs +2 -2
  26. package/index124.js +1 -1
  27. package/index124.mjs +1 -1
  28. package/index125.js +1 -1
  29. package/index125.mjs +3 -3
  30. package/index126.js +1 -1
  31. package/index126.mjs +3 -3
  32. package/index130.js +1 -1
  33. package/index130.mjs +2 -2
  34. package/index133.js +1 -1
  35. package/index133.mjs +1 -1
  36. package/index138.js +1 -1
  37. package/index138.mjs +12 -46
  38. package/index139.js +1 -1
  39. package/index139.mjs +46 -241
  40. package/index140.js +1 -2
  41. package/index140.mjs +241 -13
  42. package/index141.js +2 -1
  43. package/index141.mjs +12 -29
  44. package/index142.js +1 -1
  45. package/index142.mjs +30 -52
  46. package/index143.js +1 -1
  47. package/index143.mjs +52 -12
  48. package/index145.js +1 -1
  49. package/index145.mjs +1 -1
  50. package/index147.js +1 -1
  51. package/index147.mjs +2 -2
  52. package/index148.js +1 -1
  53. package/index148.mjs +3 -3
  54. package/index149.js +1 -1
  55. package/index149.mjs +3 -3
  56. package/index150.js +1 -1
  57. package/index150.mjs +1 -1
  58. package/index151.js +1 -1
  59. package/index151.mjs +3 -3
  60. package/index152.js +1 -1
  61. package/index152.mjs +20 -106
  62. package/index153.js +1 -1
  63. package/index153.mjs +107 -83
  64. package/index154.js +1 -1
  65. package/index154.mjs +83 -26
  66. package/index155.js +1 -1
  67. package/index155.mjs +25 -20
  68. package/index156.js +1 -1
  69. package/index156.mjs +123 -17
  70. package/index157.js +1 -1
  71. package/index157.mjs +24 -122
  72. package/index158.js +1 -1
  73. package/index158.mjs +17 -71
  74. package/index159.js +1 -1
  75. package/index159.mjs +62 -338
  76. package/index160.js +1 -1
  77. package/index160.mjs +346 -42
  78. package/index161.js +1 -1
  79. package/index161.mjs +43 -29
  80. package/index162.js +1 -1
  81. package/index162.mjs +28 -24
  82. package/index164.js +1 -1
  83. package/index164.mjs +2 -2
  84. package/index167.js +1 -1
  85. package/index167.mjs +3 -3
  86. package/index169.js +1 -1
  87. package/index169.mjs +1 -1
  88. package/index170.js +1 -1
  89. package/index170.mjs +1 -1
  90. package/index171.js +1 -1
  91. package/index171.mjs +1 -1
  92. package/index178.js +1 -1
  93. package/index178.mjs +1 -1
  94. package/index180.js +1 -1
  95. package/index180.mjs +2 -2
  96. package/index182.js +1 -1
  97. package/index182.mjs +1 -1
  98. package/index198.js +1 -1
  99. package/index198.mjs +70 -201
  100. package/index199.js +1 -1
  101. package/index199.mjs +91 -60
  102. package/index200.js +1 -1
  103. package/index200.mjs +151 -139
  104. package/index201.js +1 -1
  105. package/index201.mjs +72 -125
  106. package/index202.js +1 -1
  107. package/index202.mjs +38 -220
  108. package/index203.js +1 -1
  109. package/index203.mjs +5 -190
  110. package/index204.js +1 -1
  111. package/index204.mjs +60 -68
  112. package/index205.js +1 -1
  113. package/index205.mjs +53 -273
  114. package/index206.js +1 -1
  115. package/index206.mjs +191 -86
  116. package/index207.js +1 -1
  117. package/index207.mjs +56 -180
  118. package/index208.js +1 -1
  119. package/index208.mjs +134 -75
  120. package/index209.js +1 -1
  121. package/index209.mjs +118 -52
  122. package/index210.js +1 -1
  123. package/index210.mjs +214 -116
  124. package/index211.js +1 -1
  125. package/index211.mjs +181 -107
  126. package/index212.js +1 -1
  127. package/index212.mjs +61 -114
  128. package/index213.js +1 -1
  129. package/index213.mjs +272 -65
  130. package/index214.js +1 -1
  131. package/index214.mjs +93 -105
  132. package/index215.js +1 -1
  133. package/index215.mjs +183 -47
  134. package/index216.js +1 -1
  135. package/index216.mjs +77 -86
  136. package/index217.js +1 -1
  137. package/index217.mjs +53 -65
  138. package/index218.js +1 -1
  139. package/index218.mjs +122 -52
  140. package/index219.js +1 -1
  141. package/index219.mjs +111 -94
  142. package/index220.js +1 -5
  143. package/index220.mjs +117 -75
  144. package/index221.js +1 -1
  145. package/index221.mjs +63 -2016
  146. package/index222.js +1 -1
  147. package/index222.mjs +105 -54
  148. package/index223.js +1 -1
  149. package/index223.mjs +50 -186
  150. package/index224.js +1 -1
  151. package/index224.mjs +89 -68
  152. package/index225.js +1 -1
  153. package/index225.mjs +68 -93
  154. package/index226.js +1 -1
  155. package/index226.mjs +52 -151
  156. package/index227.js +1 -1
  157. package/index227.mjs +100 -72
  158. package/index228.js +5 -1
  159. package/index228.mjs +78 -40
  160. package/index229.js +1 -1
  161. package/index229.mjs +2025 -5
  162. package/index230.js +1 -1
  163. package/index230.mjs +59 -61
  164. package/index231.js +1 -1
  165. package/index231.mjs +187 -58
  166. package/index270.js +1 -1
  167. package/index270.mjs +44 -126
  168. package/index271.js +1 -1
  169. package/index271.mjs +9 -190
  170. package/index272.js +1 -1
  171. package/index272.mjs +16 -10
  172. package/index273.js +1 -1
  173. package/index273.mjs +16 -4
  174. package/index274.js +1 -1
  175. package/index274.mjs +16 -37
  176. package/index275.js +1 -1
  177. package/index275.mjs +16 -6
  178. package/index276.js +1 -1
  179. package/index276.mjs +16 -30
  180. package/index277.js +1 -1
  181. package/index277.mjs +16 -7
  182. package/index278.js +1 -1
  183. package/index278.mjs +16 -49
  184. package/index279.js +1 -1
  185. package/index279.mjs +16 -10
  186. package/index280.js +1 -1
  187. package/index280.mjs +15 -15
  188. package/index281.js +1 -1
  189. package/index281.mjs +15 -15
  190. package/index282.js +1 -1
  191. package/index282.mjs +12 -12
  192. package/index283.js +1 -1
  193. package/index283.mjs +15 -15
  194. package/index284.js +1 -1
  195. package/index284.mjs +15 -15
  196. package/index285.js +1 -1
  197. package/index285.mjs +15 -15
  198. package/index286.js +1 -1
  199. package/index286.mjs +15 -15
  200. package/index287.js +1 -1
  201. package/index287.mjs +15 -15
  202. package/index288.js +1 -1
  203. package/index288.mjs +15 -15
  204. package/index289.js +1 -1
  205. package/index289.mjs +15 -15
  206. package/index290.js +1 -1
  207. package/index290.mjs +12 -12
  208. package/index291.js +1 -1
  209. package/index291.mjs +15 -15
  210. package/index292.js +1 -1
  211. package/index292.mjs +15 -15
  212. package/index293.js +1 -1
  213. package/index293.mjs +15 -15
  214. package/index294.js +1 -1
  215. package/index294.mjs +12 -12
  216. package/index295.js +1 -1
  217. package/index295.mjs +15 -15
  218. package/index296.js +1 -1
  219. package/index296.mjs +15 -15
  220. package/index297.js +1 -1
  221. package/index297.mjs +15 -15
  222. package/index298.js +1 -1
  223. package/index298.mjs +12 -12
  224. package/index299.js +1 -1
  225. package/index299.mjs +15 -15
  226. package/index300.js +1 -1
  227. package/index300.mjs +15 -15
  228. package/index301.js +1 -1
  229. package/index301.mjs +15 -15
  230. package/index302.js +1 -1
  231. package/index302.mjs +12 -12
  232. package/index303.js +1 -1
  233. package/index303.mjs +15 -15
  234. package/index304.js +1 -1
  235. package/index304.mjs +15 -15
  236. package/index305.js +1 -1
  237. package/index305.mjs +12 -12
  238. package/index306.js +1 -1
  239. package/index306.mjs +130 -15
  240. package/index307.js +1 -1
  241. package/index307.mjs +191 -16
  242. package/index308.js +1 -1
  243. package/index308.mjs +10 -16
  244. package/index309.js +1 -1
  245. package/index309.mjs +4 -16
  246. package/index310.js +1 -1
  247. package/index310.mjs +37 -16
  248. package/index311.js +1 -1
  249. package/index311.mjs +6 -16
  250. package/index312.js +1 -1
  251. package/index312.mjs +30 -16
  252. package/index313.js +1 -1
  253. package/index313.mjs +7 -16
  254. package/index315.js +1 -1
  255. package/index315.mjs +1 -1
  256. package/index318.js +1 -1
  257. package/index318.mjs +1 -1
  258. package/index325.js +1 -1
  259. package/index325.mjs +1 -1
  260. package/index330.js +1 -1
  261. package/index330.mjs +1 -1
  262. package/index338.js +1 -1
  263. package/index338.mjs +4 -7
  264. package/index339.js +1 -1
  265. package/index339.mjs +6 -68
  266. package/index340.js +1 -1
  267. package/index340.mjs +65 -27
  268. package/index341.js +1 -1
  269. package/index341.mjs +30 -6
  270. package/index342.js +1 -1
  271. package/index342.mjs +6 -6
  272. package/index343.js +1 -1
  273. package/index343.mjs +6 -20
  274. package/index344.js +1 -1
  275. package/index344.mjs +20 -3
  276. package/index99.js +1 -1
  277. package/index99.mjs +1 -1
  278. package/package.json +1 -1
package/index222.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index223.js"),p=require("./index221.js");function d(n,i){n===void 0&&(n={}),i===void 0&&(i=!0);const t={on:{}},f={},s={};o.e(t,p.d),t._emitClasses=!0,t.init=!1;const e={},l=o.p.map(a=>a.replace(/_/,"")),r=Object.assign({},n);return Object.keys(r).forEach(a=>{typeof n[a]>"u"||(l.indexOf(a)>=0?o.i(n[a])?(t[a]={},s[a]={},o.e(t[a],n[a]),o.e(s[a],n[a])):(t[a]=n[a],s[a]=n[a]):a.search(/on[A-Z]/)===0&&typeof n[a]=="function"?i?f[`${a[2].toLowerCase()}${a.substr(3)}`]=n[a]:t.on[`${a[2].toLowerCase()}${a.substr(3)}`]=n[a]:e[a]=n[a])}),["navigation","pagination","scrollbar"].forEach(a=>{t[a]===!0&&(t[a]={}),t[a]===!1&&delete t[a]}),{params:t,passedParams:s,rest:e,events:f}}function m(n,i){let{el:t,nextEl:f,prevEl:s,paginationEl:e,scrollbarEl:l,swiper:r}=n;o.n(i)&&f&&s&&(r.params.navigation.nextEl=f,r.originalParams.navigation.nextEl=f,r.params.navigation.prevEl=s,r.originalParams.navigation.prevEl=s),o.a(i)&&e&&(r.params.pagination.el=e,r.originalParams.pagination.el=e),o.b(i)&&l&&(r.params.scrollbar.el=l,r.originalParams.scrollbar.el=l),r.init(t)}function h(n,i,t,f,s){const e=[];if(!i)return e;const l=a=>{e.indexOf(a)<0&&e.push(a)};if(t&&f){const a=f.map(s),u=t.map(s);a.join("")!==u.join("")&&l("children"),f.length!==t.length&&l("children")}return o.p.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in n&&a in i)if(o.i(n[a])&&o.i(i[a])){const u=Object.keys(n[a]),g=Object.keys(i[a]);u.length!==g.length?l(a):(u.forEach(c=>{n[a][c]!==i[a][c]&&l(a)}),g.forEach(c=>{n[a][c]!==i[a][c]&&l(a)}))}else n[a]!==i[a]&&l(a)}),e}const v=n=>{!n||n.destroyed||!n.params.virtual||n.params.virtual&&!n.params.virtual.enabled||(n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.parallax&&n.params.parallax&&n.params.parallax.enabled&&n.parallax.setTranslate())};exports.a=h;exports.g=d;exports.m=m;exports.u=v;
1
+ "use strict";function a(o){const e=this,{params:t,slidesEl:p}=e;t.loop&&e.loopDestroy();const f=n=>{if(typeof n=="string"){const i=document.createElement("div");i.innerHTML=n,p.append(i.children[0]),i.innerHTML=""}else p.append(n)};if(typeof o=="object"&&"length"in o)for(let n=0;n<o.length;n+=1)o[n]&&f(o[n]);else f(o);e.recalcSlides(),t.loop&&e.loopCreate(),(!t.observer||e.isElement)&&e.update()}function m(o){const e=this,{params:t,activeIndex:p,slidesEl:f}=e;t.loop&&e.loopDestroy();let n=p+1;const i=l=>{if(typeof l=="string"){const c=document.createElement("div");c.innerHTML=l,f.prepend(c.children[0]),c.innerHTML=""}else f.prepend(l)};if(typeof o=="object"&&"length"in o){for(let l=0;l<o.length;l+=1)o[l]&&i(o[l]);n=p+o.length}else i(o);e.recalcSlides(),t.loop&&e.loopCreate(),(!t.observer||e.isElement)&&e.update(),e.slideTo(n,0,!1)}function h(o,e){const t=this,{params:p,activeIndex:f,slidesEl:n}=t;let i=f;p.loop&&(i-=t.loopedSlides,t.loopDestroy(),t.recalcSlides());const l=t.slides.length;if(o<=0){t.prependSlide(e);return}if(o>=l){t.appendSlide(e);return}let c=i>o?i+1:i;const s=[];for(let r=l-1;r>=o;r-=1){const d=t.slides[r];d.remove(),s.unshift(d)}if(typeof e=="object"&&"length"in e){for(let r=0;r<e.length;r+=1)e[r]&&n.append(e[r]);c=i>o?i+e.length:i}else n.append(e);for(let r=0;r<s.length;r+=1)n.append(s[r]);t.recalcSlides(),p.loop&&t.loopCreate(),(!p.observer||t.isElement)&&t.update(),p.loop?t.slideTo(c+t.loopedSlides,0,!1):t.slideTo(c,0,!1)}function v(o){const e=this,{params:t,activeIndex:p}=e;let f=p;t.loop&&(f-=e.loopedSlides,e.loopDestroy());let n=f,i;if(typeof o=="object"&&"length"in o){for(let l=0;l<o.length;l+=1)i=o[l],e.slides[i]&&e.slides[i].remove(),i<n&&(n-=1);n=Math.max(n,0)}else i=o,e.slides[i]&&e.slides[i].remove(),i<n&&(n-=1),n=Math.max(n,0);e.recalcSlides(),t.loop&&e.loopCreate(),(!t.observer||e.isElement)&&e.update(),t.loop?e.slideTo(n+e.loopedSlides,0,!1):e.slideTo(n,0,!1)}function S(){const o=this,e=[];for(let t=0;t<o.slides.length;t+=1)e.push(t);o.removeSlide(e)}function u(o){let{swiper:e}=o;Object.assign(e,{appendSlide:a.bind(e),prependSlide:m.bind(e),addSlide:h.bind(e),removeSlide:v.bind(e),removeAllSlides:S.bind(e)})}module.exports=u;
package/index222.mjs CHANGED
@@ -1,62 +1,113 @@
1
- import { e as u, p as d, i as g, n as m, a as h, b as v } from "./index223.mjs";
2
- import { d as x } from "./index221.mjs";
3
- function b(n, i) {
4
- n === void 0 && (n = {}), i === void 0 && (i = !0);
5
- const t = {
6
- on: {}
7
- }, e = {}, r = {};
8
- u(t, x), t._emitClasses = !0, t.init = !1;
9
- const o = {}, s = d.map((a) => a.replace(/_/, "")), l = Object.assign({}, n);
10
- return Object.keys(l).forEach((a) => {
11
- typeof n[a] > "u" || (s.indexOf(a) >= 0 ? g(n[a]) ? (t[a] = {}, r[a] = {}, u(t[a], n[a]), u(r[a], n[a])) : (t[a] = n[a], r[a] = n[a]) : a.search(/on[A-Z]/) === 0 && typeof n[a] == "function" ? i ? e[`${a[2].toLowerCase()}${a.substr(3)}`] = n[a] : t.on[`${a[2].toLowerCase()}${a.substr(3)}`] = n[a] : o[a] = n[a]);
12
- }), ["navigation", "pagination", "scrollbar"].forEach((a) => {
13
- t[a] === !0 && (t[a] = {}), t[a] === !1 && delete t[a];
14
- }), {
1
+ function s(o) {
2
+ const e = this, {
15
3
  params: t,
16
- passedParams: r,
17
- rest: o,
18
- events: e
4
+ slidesEl: p
5
+ } = e;
6
+ t.loop && e.loopDestroy();
7
+ const f = (n) => {
8
+ if (typeof n == "string") {
9
+ const i = document.createElement("div");
10
+ i.innerHTML = n, p.append(i.children[0]), i.innerHTML = "";
11
+ } else
12
+ p.append(n);
19
13
  };
14
+ if (typeof o == "object" && "length" in o)
15
+ for (let n = 0; n < o.length; n += 1)
16
+ o[n] && f(o[n]);
17
+ else
18
+ f(o);
19
+ e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update();
20
20
  }
21
- function C(n, i) {
22
- let {
23
- el: t,
24
- nextEl: e,
25
- prevEl: r,
26
- paginationEl: o,
27
- scrollbarEl: s,
28
- swiper: l
29
- } = n;
30
- m(i) && e && r && (l.params.navigation.nextEl = e, l.originalParams.navigation.nextEl = e, l.params.navigation.prevEl = r, l.originalParams.navigation.prevEl = r), h(i) && o && (l.params.pagination.el = o, l.originalParams.pagination.el = o), v(i) && s && (l.params.scrollbar.el = s, l.originalParams.scrollbar.el = s), l.init(t);
31
- }
32
- function S(n, i, t, e, r) {
33
- const o = [];
34
- if (!i) return o;
35
- const s = (a) => {
36
- o.indexOf(a) < 0 && o.push(a);
21
+ function m(o) {
22
+ const e = this, {
23
+ params: t,
24
+ activeIndex: p,
25
+ slidesEl: f
26
+ } = e;
27
+ t.loop && e.loopDestroy();
28
+ let n = p + 1;
29
+ const i = (l) => {
30
+ if (typeof l == "string") {
31
+ const a = document.createElement("div");
32
+ a.innerHTML = l, f.prepend(a.children[0]), a.innerHTML = "";
33
+ } else
34
+ f.prepend(l);
37
35
  };
38
- if (t && e) {
39
- const a = e.map(r), c = t.map(r);
40
- a.join("") !== c.join("") && s("children"), e.length !== t.length && s("children");
36
+ if (typeof o == "object" && "length" in o) {
37
+ for (let l = 0; l < o.length; l += 1)
38
+ o[l] && i(o[l]);
39
+ n = p + o.length;
40
+ } else
41
+ i(o);
42
+ e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update(), e.slideTo(n, 0, !1);
43
+ }
44
+ function h(o, e) {
45
+ const t = this, {
46
+ params: p,
47
+ activeIndex: f,
48
+ slidesEl: n
49
+ } = t;
50
+ let i = f;
51
+ p.loop && (i -= t.loopedSlides, t.loopDestroy(), t.recalcSlides());
52
+ const l = t.slides.length;
53
+ if (o <= 0) {
54
+ t.prependSlide(e);
55
+ return;
56
+ }
57
+ if (o >= l) {
58
+ t.appendSlide(e);
59
+ return;
60
+ }
61
+ let a = i > o ? i + 1 : i;
62
+ const d = [];
63
+ for (let r = l - 1; r >= o; r -= 1) {
64
+ const c = t.slides[r];
65
+ c.remove(), d.unshift(c);
41
66
  }
42
- return d.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
43
- if (a in n && a in i)
44
- if (g(n[a]) && g(i[a])) {
45
- const c = Object.keys(n[a]), p = Object.keys(i[a]);
46
- c.length !== p.length ? s(a) : (c.forEach((f) => {
47
- n[a][f] !== i[a][f] && s(a);
48
- }), p.forEach((f) => {
49
- n[a][f] !== i[a][f] && s(a);
50
- }));
51
- } else n[a] !== i[a] && s(a);
52
- }), o;
67
+ if (typeof e == "object" && "length" in e) {
68
+ for (let r = 0; r < e.length; r += 1)
69
+ e[r] && n.append(e[r]);
70
+ a = i > o ? i + e.length : i;
71
+ } else
72
+ n.append(e);
73
+ for (let r = 0; r < d.length; r += 1)
74
+ n.append(d[r]);
75
+ t.recalcSlides(), p.loop && t.loopCreate(), (!p.observer || t.isElement) && t.update(), p.loop ? t.slideTo(a + t.loopedSlides, 0, !1) : t.slideTo(a, 0, !1);
76
+ }
77
+ function v(o) {
78
+ const e = this, {
79
+ params: t,
80
+ activeIndex: p
81
+ } = e;
82
+ let f = p;
83
+ t.loop && (f -= e.loopedSlides, e.loopDestroy());
84
+ let n = f, i;
85
+ if (typeof o == "object" && "length" in o) {
86
+ for (let l = 0; l < o.length; l += 1)
87
+ i = o[l], e.slides[i] && e.slides[i].remove(), i < n && (n -= 1);
88
+ n = Math.max(n, 0);
89
+ } else
90
+ i = o, e.slides[i] && e.slides[i].remove(), i < n && (n -= 1), n = Math.max(n, 0);
91
+ e.recalcSlides(), t.loop && e.loopCreate(), (!t.observer || e.isElement) && e.update(), t.loop ? e.slideTo(n + e.loopedSlides, 0, !1) : e.slideTo(n, 0, !1);
92
+ }
93
+ function S() {
94
+ const o = this, e = [];
95
+ for (let t = 0; t < o.slides.length; t += 1)
96
+ e.push(t);
97
+ o.removeSlide(e);
98
+ }
99
+ function u(o) {
100
+ let {
101
+ swiper: e
102
+ } = o;
103
+ Object.assign(e, {
104
+ appendSlide: s.bind(e),
105
+ prependSlide: m.bind(e),
106
+ addSlide: h.bind(e),
107
+ removeSlide: v.bind(e),
108
+ removeAllSlides: S.bind(e)
109
+ });
53
110
  }
54
- const _ = (n) => {
55
- !n || n.destroyed || !n.params.virtual || n.params.virtual && !n.params.virtual.enabled || (n.updateSlides(), n.updateProgress(), n.updateSlidesClasses(), n.parallax && n.params.parallax && n.params.parallax.enabled && n.parallax.setTranslate());
56
- };
57
111
  export {
58
- S as a,
59
- b as g,
60
- C as m,
61
- _ as u
112
+ u as default
62
113
  };
package/index223.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function g(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function j(t,i){const r=["__proto__","constructor","prototype"];Object.keys(i).filter(e=>r.indexOf(e)<0).forEach(e=>{typeof t[e]>"u"?t[e]=i[e]:g(i[e])&&g(t[e])&&Object.keys(i[e]).length>0?i[e].__swiper__?t[e]=i[e]:j(t[e],i[e]):t[e]=i[e]})}function z(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function B(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function I(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function L(t){t===void 0&&(t="");const i=t.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return i.forEach(e=>{r.indexOf(e)<0&&r.push(e)}),r.join(" ")}function N(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function A(t){let{swiper:i,slides:r,passedParams:e,changedParams:o,nextEl:s,prevEl:a,scrollbarEl:d,paginationEl:c}=t;const h=o.filter(n=>n!=="children"&&n!=="direction"&&n!=="wrapperClass"),{params:l,pagination:p,navigation:f,scrollbar:v,virtual:u,thumbs:E}=i;let S,_,P,C,x,m,O,b;o.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&!e.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(S=!0),o.includes("controller")&&e.controller&&e.controller.control&&l.controller&&!l.controller.control&&(_=!0),o.includes("pagination")&&e.pagination&&(e.pagination.el||c)&&(l.pagination||l.pagination===!1)&&p&&!p.el&&(P=!0),o.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||d)&&(l.scrollbar||l.scrollbar===!1)&&v&&!v.el&&(C=!0),o.includes("navigation")&&e.navigation&&(e.navigation.prevEl||a)&&(e.navigation.nextEl||s)&&(l.navigation||l.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(x=!0);const T=n=>{i[n]&&(i[n].destroy(),n==="navigation"?(i.isElement&&(i[n].prevEl.remove(),i[n].nextEl.remove()),l[n].prevEl=void 0,l[n].nextEl=void 0,i[n].prevEl=void 0,i[n].nextEl=void 0):(i.isElement&&i[n].el.remove(),l[n].el=void 0,i[n].el=void 0))};o.includes("loop")&&i.isElement&&(l.loop&&!e.loop?m=!0:!l.loop&&e.loop?O=!0:b=!0),h.forEach(n=>{if(g(l[n])&&g(e[n]))Object.assign(l[n],e[n]),(n==="navigation"||n==="pagination"||n==="scrollbar")&&"enabled"in e[n]&&!e[n].enabled&&T(n);else{const w=e[n];(w===!0||w===!1)&&(n==="navigation"||n==="pagination"||n==="scrollbar")?w===!1&&T(n):l[n]=e[n]}}),h.includes("controller")&&!_&&i.controller&&i.controller.control&&l.controller&&l.controller.control&&(i.controller.control=l.controller.control),o.includes("children")&&r&&u&&l.virtual.enabled?(u.slides=r,u.update(!0)):o.includes("virtual")&&u&&l.virtual.enabled&&(r&&(u.slides=r),u.update(!0)),o.includes("children")&&r&&l.loop&&(b=!0),S&&E.init()&&E.update(!0),_&&(i.controller.control=l.controller.control),P&&(i.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),i.el.appendChild(c)),c&&(l.pagination.el=c),p.init(),p.render(),p.update()),C&&(i.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),i.el.appendChild(d)),d&&(l.scrollbar.el=d),v.init(),v.updateSize(),v.setTranslate()),x&&(i.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=i.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),i.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=i.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),i.el.appendChild(a))),s&&(l.navigation.nextEl=s),a&&(l.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(i.allowSlideNext=e.allowSlideNext),o.includes("allowSlidePrev")&&(i.allowSlidePrev=e.allowSlidePrev),o.includes("direction")&&i.changeDirection(e.direction,!1),(m||b)&&i.loopDestroy(),(O||b)&&i.loopCreate(),i.update()}exports.a=B;exports.b=I;exports.d=L;exports.e=j;exports.i=g;exports.n=z;exports.p=M;exports.u=A;exports.w=N;
1
+ "use strict";const u=require("./index310.js"),E=require("./index311.js"),x=require("./index312.js"),g=require("./index307.js");function h(f){let{swiper:e,extendParams:l,on:c}=f;l({fadeEffect:{crossFade:!1}});const d=()=>{const{slides:t}=e,a=e.params.fadeEffect;for(let s=0;s<t.length;s+=1){const r=e.slides[s];let i=-r.swiperSlideOffset;e.params.virtualTranslate||(i-=e.translate);let n=0;e.isHorizontal()||(n=i,i=0);const m=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(r.progress),0):1+Math.min(Math.max(r.progress,-1),0),o=E.e(a,r);o.style.opacity=m,o.style.transform=`translate3d(${i}px, ${n}px, 0px)`}},p=t=>{const a=e.slides.map(s=>g.g(s));a.forEach(s=>{s.style.transitionDuration=`${t}ms`}),x.e({swiper:e,duration:t,transformElements:a,allSlides:!0})};u.e({effect:"fade",swiper:e,on:c,setTranslate:d,setTransition:p,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}module.exports=h;
package/index223.mjs CHANGED
@@ -1,191 +1,55 @@
1
- const z = [
2
- "eventsPrefix",
3
- "injectStyles",
4
- "injectStylesUrls",
5
- "modules",
6
- "init",
7
- "_direction",
8
- "oneWayMovement",
9
- "swiperElementNodeName",
10
- "touchEventsTarget",
11
- "initialSlide",
12
- "_speed",
13
- "cssMode",
14
- "updateOnWindowResize",
15
- "resizeObserver",
16
- "nested",
17
- "focusableElements",
18
- "_enabled",
19
- "_width",
20
- "_height",
21
- "preventInteractionOnTransition",
22
- "userAgent",
23
- "url",
24
- "_edgeSwipeDetection",
25
- "_edgeSwipeThreshold",
26
- "_freeMode",
27
- "_autoHeight",
28
- "setWrapperSize",
29
- "virtualTranslate",
30
- "_effect",
31
- "breakpoints",
32
- "breakpointsBase",
33
- "_spaceBetween",
34
- "_slidesPerView",
35
- "maxBackfaceHiddenSlides",
36
- "_grid",
37
- "_slidesPerGroup",
38
- "_slidesPerGroupSkip",
39
- "_slidesPerGroupAuto",
40
- "_centeredSlides",
41
- "_centeredSlidesBounds",
42
- "_slidesOffsetBefore",
43
- "_slidesOffsetAfter",
44
- "normalizeSlideIndex",
45
- "_centerInsufficientSlides",
46
- "_watchOverflow",
47
- "roundLengths",
48
- "touchRatio",
49
- "touchAngle",
50
- "simulateTouch",
51
- "_shortSwipes",
52
- "_longSwipes",
53
- "longSwipesRatio",
54
- "longSwipesMs",
55
- "_followFinger",
56
- "allowTouchMove",
57
- "_threshold",
58
- "touchMoveStopPropagation",
59
- "touchStartPreventDefault",
60
- "touchStartForcePreventDefault",
61
- "touchReleaseOnEdges",
62
- "uniqueNavElements",
63
- "_resistance",
64
- "_resistanceRatio",
65
- "_watchSlidesProgress",
66
- "_grabCursor",
67
- "preventClicks",
68
- "preventClicksPropagation",
69
- "_slideToClickedSlide",
70
- "_loop",
71
- "loopAdditionalSlides",
72
- "loopAddBlankSlides",
73
- "loopPreventsSliding",
74
- "_rewind",
75
- "_allowSlidePrev",
76
- "_allowSlideNext",
77
- "_swipeHandler",
78
- "_noSwiping",
79
- "noSwipingClass",
80
- "noSwipingSelector",
81
- "passiveListeners",
82
- "containerModifierClass",
83
- "slideClass",
84
- "slideActiveClass",
85
- "slideVisibleClass",
86
- "slideFullyVisibleClass",
87
- "slideNextClass",
88
- "slidePrevClass",
89
- "slideBlankClass",
90
- "wrapperClass",
91
- "lazyPreloaderClass",
92
- "lazyPreloadPrevNext",
93
- "runCallbacksOnInit",
94
- "observer",
95
- "observeParents",
96
- "observeSlideChildren",
97
- // modules
98
- "a11y",
99
- "_autoplay",
100
- "_controller",
101
- "coverflowEffect",
102
- "cubeEffect",
103
- "fadeEffect",
104
- "flipEffect",
105
- "creativeEffect",
106
- "cardsEffect",
107
- "hashNavigation",
108
- "history",
109
- "keyboard",
110
- "mousewheel",
111
- "_navigation",
112
- "_pagination",
113
- "parallax",
114
- "_scrollbar",
115
- "_thumbs",
116
- "virtual",
117
- "zoom",
118
- "control"
119
- ];
120
- function b(t) {
121
- return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
122
- }
123
- function j(t, i) {
124
- const r = ["__proto__", "constructor", "prototype"];
125
- Object.keys(i).filter((e) => r.indexOf(e) < 0).forEach((e) => {
126
- typeof t[e] > "u" ? t[e] = i[e] : b(i[e]) && b(t[e]) && Object.keys(i[e]).length > 0 ? i[e].__swiper__ ? t[e] = i[e] : j(t[e], i[e]) : t[e] = i[e];
127
- });
128
- }
129
- function M(t) {
130
- return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
131
- }
132
- function B(t) {
133
- return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
134
- }
135
- function I(t) {
136
- return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
137
- }
138
- function L(t) {
139
- t === void 0 && (t = "");
140
- const i = t.split(" ").map((e) => e.trim()).filter((e) => !!e), r = [];
141
- return i.forEach((e) => {
142
- r.indexOf(e) < 0 && r.push(e);
143
- }), r.join(" ");
144
- }
145
- function N(t) {
146
- return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
147
- }
148
- function A(t) {
1
+ import { e as d } from "./index310.mjs";
2
+ import { e as p } from "./index311.mjs";
3
+ import { e as E } from "./index312.mjs";
4
+ import { g as T } from "./index307.mjs";
5
+ function P(l) {
149
6
  let {
150
- swiper: i,
151
- slides: r,
152
- passedParams: e,
153
- changedParams: o,
154
- nextEl: s,
155
- prevEl: a,
156
- scrollbarEl: d,
157
- paginationEl: c
158
- } = t;
159
- const h = o.filter((n) => n !== "children" && n !== "direction" && n !== "wrapperClass"), {
160
- params: l,
161
- pagination: p,
162
- navigation: f,
163
- scrollbar: v,
164
- virtual: u,
165
- thumbs: E
166
- } = i;
167
- let S, _, x, C, P, m, O, g;
168
- o.includes("thumbs") && e.thumbs && e.thumbs.swiper && !e.thumbs.swiper.destroyed && l.thumbs && (!l.thumbs.swiper || l.thumbs.swiper.destroyed) && (S = !0), o.includes("controller") && e.controller && e.controller.control && l.controller && !l.controller.control && (_ = !0), o.includes("pagination") && e.pagination && (e.pagination.el || c) && (l.pagination || l.pagination === !1) && p && !p.el && (x = !0), o.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || d) && (l.scrollbar || l.scrollbar === !1) && v && !v.el && (C = !0), o.includes("navigation") && e.navigation && (e.navigation.prevEl || a) && (e.navigation.nextEl || s) && (l.navigation || l.navigation === !1) && f && !f.prevEl && !f.nextEl && (P = !0);
169
- const T = (n) => {
170
- i[n] && (i[n].destroy(), n === "navigation" ? (i.isElement && (i[n].prevEl.remove(), i[n].nextEl.remove()), l[n].prevEl = void 0, l[n].nextEl = void 0, i[n].prevEl = void 0, i[n].nextEl = void 0) : (i.isElement && i[n].el.remove(), l[n].el = void 0, i[n].el = void 0));
171
- };
172
- o.includes("loop") && i.isElement && (l.loop && !e.loop ? m = !0 : !l.loop && e.loop ? O = !0 : g = !0), h.forEach((n) => {
173
- if (b(l[n]) && b(e[n]))
174
- Object.assign(l[n], e[n]), (n === "navigation" || n === "pagination" || n === "scrollbar") && "enabled" in e[n] && !e[n].enabled && T(n);
175
- else {
176
- const w = e[n];
177
- (w === !0 || w === !1) && (n === "navigation" || n === "pagination" || n === "scrollbar") ? w === !1 && T(n) : l[n] = e[n];
7
+ swiper: e,
8
+ extendParams: n,
9
+ on: c
10
+ } = l;
11
+ n({
12
+ fadeEffect: {
13
+ crossFade: !1
178
14
  }
179
- }), h.includes("controller") && !_ && i.controller && i.controller.control && l.controller && l.controller.control && (i.controller.control = l.controller.control), o.includes("children") && r && u && l.virtual.enabled ? (u.slides = r, u.update(!0)) : o.includes("virtual") && u && l.virtual.enabled && (r && (u.slides = r), u.update(!0)), o.includes("children") && r && l.loop && (g = !0), S && E.init() && E.update(!0), _ && (i.controller.control = l.controller.control), x && (i.isElement && (!c || typeof c == "string") && (c = document.createElement("div"), c.classList.add("swiper-pagination"), c.part.add("pagination"), i.el.appendChild(c)), c && (l.pagination.el = c), p.init(), p.render(), p.update()), C && (i.isElement && (!d || typeof d == "string") && (d = document.createElement("div"), d.classList.add("swiper-scrollbar"), d.part.add("scrollbar"), i.el.appendChild(d)), d && (l.scrollbar.el = d), v.init(), v.updateSize(), v.setTranslate()), P && (i.isElement && ((!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-next"), s.innerHTML = i.hostEl.constructor.nextButtonSvg, s.part.add("button-next"), i.el.appendChild(s)), (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-prev"), a.innerHTML = i.hostEl.constructor.prevButtonSvg, a.part.add("button-prev"), i.el.appendChild(a))), s && (l.navigation.nextEl = s), a && (l.navigation.prevEl = a), f.init(), f.update()), o.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), o.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), o.includes("direction") && i.changeDirection(e.direction, !1), (m || g) && i.loopDestroy(), (O || g) && i.loopCreate(), i.update();
15
+ }), d({
16
+ effect: "fade",
17
+ swiper: e,
18
+ on: c,
19
+ setTranslate: () => {
20
+ const {
21
+ slides: t
22
+ } = e, a = e.params.fadeEffect;
23
+ for (let s = 0; s < t.length; s += 1) {
24
+ const r = e.slides[s];
25
+ let o = -r.swiperSlideOffset;
26
+ e.params.virtualTranslate || (o -= e.translate);
27
+ let f = 0;
28
+ e.isHorizontal() || (f = o, o = 0);
29
+ const m = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(r.progress), 0) : 1 + Math.min(Math.max(r.progress, -1), 0), i = p(a, r);
30
+ i.style.opacity = m, i.style.transform = `translate3d(${o}px, ${f}px, 0px)`;
31
+ }
32
+ },
33
+ setTransition: (t) => {
34
+ const a = e.slides.map((s) => T(s));
35
+ a.forEach((s) => {
36
+ s.style.transitionDuration = `${t}ms`;
37
+ }), E({
38
+ swiper: e,
39
+ duration: t,
40
+ transformElements: a,
41
+ allSlides: !0
42
+ });
43
+ },
44
+ overwriteParams: () => ({
45
+ slidesPerView: 1,
46
+ slidesPerGroup: 1,
47
+ watchSlidesProgress: !0,
48
+ spaceBetween: 0,
49
+ virtualTranslate: !e.params.cssMode
50
+ })
51
+ });
180
52
  }
181
53
  export {
182
- B as a,
183
- I as b,
184
- L as d,
185
- j as e,
186
- b as i,
187
- M as n,
188
- z as p,
189
- A as u,
190
- N as w
54
+ P as default
191
55
  };
package/index224.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index225.js"),m=require("./index227.js"),c=require("./index278.js"),q=require("./index142.js"),R=require("./index156.js"),S=require("./index165.js"),p=require("./index171.js"),b=require("./index279.js"),x=require("@react-aria/i18n"),f=require("react");function y(e){return e&&e.__esModule?e.default:e}function M(e,i){let l=x.useLocalizedStringFormatter(y(m),"@react-aria/calendar"),g=S.filterDOMProps(e),D=a.useVisibleRangeDescription(i.visibleRange.start,i.visibleRange.end,i.timeZone,!1),s=a.useVisibleRangeDescription(i.visibleRange.start,i.visibleRange.end,i.timeZone,!0);b.useUpdateEffect(()=>{i.isFocused||c.announce(s)},[s]);let r=a.useSelectedDateDescription(i);b.useUpdateEffect(()=>{r&&c.announce(r,"polite",4e3)},[r]);let t=q.useSlotId([!!e.errorMessage,e.isInvalid,e.validationState]);a.hookData.set(i,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:t,selectedDateDescription:r});let[v,n]=f.useState(!1),o=e.isDisabled||i.isNextVisibleRangeInvalid();o&&v&&(n(!1),i.setFocused(!0));let[P,u]=f.useState(!1),d=e.isDisabled||i.isPreviousVisibleRangeInvalid();d&&P&&(u(!1),i.setFocused(!0));let F=p.useLabels({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:R.mergeProps(g,F,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>i.focusNextPage(),"aria-label":l.format("next"),isDisabled:o,onFocusChange:n},prevButtonProps:{onPress:()=>i.focusPreviousPage(),"aria-label":l.format("previous"),isDisabled:d,onFocusChange:u},errorMessageProps:{id:t},title:D}}exports.useCalendarBase=M;
1
+ "use strict";const X=require("./index310.js"),y=require("./index307.js");function D(P){let{swiper:e,extendParams:z,on:E}=P;z({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const M=(t,r,a)=>{let s=a?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),l=a?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");s||(s=y.c("div",`swiper-slide-shadow-cube swiper-slide-shadow-${a?"left":"top"}`.split(" ")),t.append(s)),l||(l=y.c("div",`swiper-slide-shadow-cube swiper-slide-shadow-${a?"right":"bottom"}`.split(" ")),t.append(l)),s&&(s.style.opacity=Math.max(-r,0)),l&&(l.style.opacity=Math.max(r,0))},A=()=>{const t=e.isHorizontal();e.slides.forEach(r=>{const a=Math.max(Math.min(r.progress,1),-1);M(r,a,t)})},H=()=>{const{el:t,wrapperEl:r,slides:a,width:s,height:l,rtlTranslate:$,size:o,browser:S}=e,g=y.o(e),p=e.params.cubeEffect,h=e.isHorizontal(),O=e.virtual&&e.params.virtual.enabled;let u=0,i;p.shadow&&(h?(i=e.wrapperEl.querySelector(".swiper-cube-shadow"),i||(i=y.c("div","swiper-cube-shadow"),e.wrapperEl.append(i)),i.style.height=`${s}px`):(i=t.querySelector(".swiper-cube-shadow"),i||(i=y.c("div","swiper-cube-shadow"),t.append(i))));for(let w=0;w<a.length;w+=1){const m=a[w];let d=w;O&&(d=parseInt(m.getAttribute("data-swiper-slide-index"),10));let c=d*90,f=Math.floor(c/360);$&&(c=-c,f=Math.floor(-c/360));const b=Math.max(Math.min(m.progress,1),-1);let n=0,v=0,x=0;d%4===0?(n=-f*4*o,x=0):(d-1)%4===0?(n=0,x=-f*4*o):(d-2)%4===0?(n=o+f*4*o,x=o):(d-3)%4===0&&(n=-o,x=3*o+o*4*f),$&&(n=-n),h||(v=n,n=0);const T=`rotateX(${g(h?0:-c)}deg) rotateY(${g(h?c:0)}deg) translate3d(${n}px, ${v}px, ${x}px)`;b<=1&&b>-1&&(u=d*90+b*90,$&&(u=-d*90-b*90)),m.style.transform=T,p.slideShadows&&M(m,b,h)}if(r.style.transformOrigin=`50% 50% -${o/2}px`,r.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,p.shadow)if(h)i.style.transform=`translate3d(0px, ${s/2+p.shadowOffset}px, ${-s/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${p.shadowScale})`;else{const w=Math.abs(u)-Math.floor(Math.abs(u)/90)*90,m=1.5-(Math.sin(w*2*Math.PI/360)/2+Math.cos(w*2*Math.PI/360)/2),d=p.shadowScale,c=p.shadowScale/m,f=p.shadowOffset;i.style.transform=`scale3d(${d}, 1, ${c}) translate3d(0px, ${l/2+f}px, ${-l/2/c}px) rotateX(-89.99deg)`}const q=(S.isSafari||S.isWebView)&&S.needPerspectiveFix?-o/2:0;r.style.transform=`translate3d(0px,0,${q}px) rotateX(${g(e.isHorizontal()?0:u)}deg) rotateY(${g(e.isHorizontal()?-u:0)}deg)`,r.style.setProperty("--swiper-cube-translate-z",`${q}px`)},I=t=>{const{el:r,slides:a}=e;if(a.forEach(s=>{s.style.transitionDuration=`${t}ms`,s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(l=>{l.style.transitionDuration=`${t}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const s=r.querySelector(".swiper-cube-shadow");s&&(s.style.transitionDuration=`${t}ms`)}};X.e({effect:"cube",swiper:e,on:E,setTranslate:H,setTransition:I,recreateShadows:A,getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}module.exports=D;
package/index224.mjs CHANGED
@@ -1,75 +1,96 @@
1
- import { useVisibleRangeDescription as n, useSelectedDateDescription as D, hookData as v } from "./index225.mjs";
2
- import P from "./index227.mjs";
3
- import { announce as c } from "./index278.mjs";
4
- import { useSlotId as F } from "./index142.mjs";
5
- import { mergeProps as R } from "./index156.mjs";
6
- import { filterDOMProps as y } from "./index165.mjs";
7
- import { useLabels as B } from "./index171.mjs";
8
- import { useUpdateEffect as f } from "./index279.mjs";
9
- import { useLocalizedStringFormatter as I } from "@react-aria/i18n";
10
- import { useState as u } from "react";
11
- function M(e) {
12
- return e && e.__esModule ? e.default : e;
13
- }
14
- function z(e, a) {
15
- let o = I(M(P), "@react-aria/calendar"), $ = y(e), m = n(a.visibleRange.start, a.visibleRange.end, a.timeZone, !1), r = n(a.visibleRange.start, a.visibleRange.end, a.timeZone, !0);
16
- f(() => {
17
- a.isFocused || c(r);
18
- }, [
19
- r
20
- ]);
21
- let i = D(a);
22
- f(() => {
23
- i && c(i, "polite", 4e3);
24
- }, [
25
- i
26
- ]);
27
- let l = F([
28
- !!e.errorMessage,
29
- e.isInvalid,
30
- e.validationState
31
- ]);
32
- v.set(a, {
33
- ariaLabel: e["aria-label"],
34
- ariaLabelledBy: e["aria-labelledby"],
35
- errorMessageId: l,
36
- selectedDateDescription: i
37
- });
38
- let [p, s] = u(!1), t = e.isDisabled || a.isNextVisibleRangeInvalid();
39
- t && p && (s(!1), a.setFocused(!0));
40
- let [g, d] = u(!1), b = e.isDisabled || a.isPreviousVisibleRangeInvalid();
41
- b && g && (d(!1), a.setFocused(!0));
42
- let x = B({
43
- id: e.id,
44
- "aria-label": [
45
- e["aria-label"],
46
- r
47
- ].filter(Boolean).join(", "),
48
- "aria-labelledby": e["aria-labelledby"]
1
+ import { e as H } from "./index310.mjs";
2
+ import { c as y, o as I } from "./index307.mjs";
3
+ function V(z) {
4
+ let {
5
+ swiper: e,
6
+ extendParams: E,
7
+ on: q
8
+ } = z;
9
+ E({
10
+ cubeEffect: {
11
+ slideShadows: !0,
12
+ shadow: !0,
13
+ shadowOffset: 20,
14
+ shadowScale: 0.94
15
+ }
49
16
  });
50
- return {
51
- calendarProps: R($, x, {
52
- role: "application",
53
- "aria-describedby": e["aria-describedby"] || void 0
54
- }),
55
- nextButtonProps: {
56
- onPress: () => a.focusNextPage(),
57
- "aria-label": o.format("next"),
58
- isDisabled: t,
59
- onFocusChange: s
17
+ const M = (t, a, r) => {
18
+ let s = r ? t.querySelector(".swiper-slide-shadow-left") : t.querySelector(".swiper-slide-shadow-top"), l = r ? t.querySelector(".swiper-slide-shadow-right") : t.querySelector(".swiper-slide-shadow-bottom");
19
+ s || (s = y("div", `swiper-slide-shadow-cube swiper-slide-shadow-${r ? "left" : "top"}`.split(" ")), t.append(s)), l || (l = y("div", `swiper-slide-shadow-cube swiper-slide-shadow-${r ? "right" : "bottom"}`.split(" ")), t.append(l)), s && (s.style.opacity = Math.max(-a, 0)), l && (l.style.opacity = Math.max(a, 0));
20
+ };
21
+ H({
22
+ effect: "cube",
23
+ swiper: e,
24
+ on: q,
25
+ setTranslate: () => {
26
+ const {
27
+ el: t,
28
+ wrapperEl: a,
29
+ slides: r,
30
+ width: s,
31
+ height: l,
32
+ rtlTranslate: $,
33
+ size: o,
34
+ browser: S
35
+ } = e, g = I(e), c = e.params.cubeEffect, h = e.isHorizontal(), T = e.virtual && e.params.virtual.enabled;
36
+ let u = 0, i;
37
+ c.shadow && (h ? (i = e.wrapperEl.querySelector(".swiper-cube-shadow"), i || (i = y("div", "swiper-cube-shadow"), e.wrapperEl.append(i)), i.style.height = `${s}px`) : (i = t.querySelector(".swiper-cube-shadow"), i || (i = y("div", "swiper-cube-shadow"), t.append(i))));
38
+ for (let w = 0; w < r.length; w += 1) {
39
+ const m = r[w];
40
+ let d = w;
41
+ T && (d = parseInt(m.getAttribute("data-swiper-slide-index"), 10));
42
+ let n = d * 90, f = Math.floor(n / 360);
43
+ $ && (n = -n, f = Math.floor(-n / 360));
44
+ const x = Math.max(Math.min(m.progress, 1), -1);
45
+ let p = 0, P = 0, b = 0;
46
+ d % 4 === 0 ? (p = -f * 4 * o, b = 0) : (d - 1) % 4 === 0 ? (p = 0, b = -f * 4 * o) : (d - 2) % 4 === 0 ? (p = o + f * 4 * o, b = o) : (d - 3) % 4 === 0 && (p = -o, b = 3 * o + o * 4 * f), $ && (p = -p), h || (P = p, p = 0);
47
+ const A = `rotateX(${g(h ? 0 : -n)}deg) rotateY(${g(h ? n : 0)}deg) translate3d(${p}px, ${P}px, ${b}px)`;
48
+ x <= 1 && x > -1 && (u = d * 90 + x * 90, $ && (u = -d * 90 - x * 90)), m.style.transform = A, c.slideShadows && M(m, x, h);
49
+ }
50
+ if (a.style.transformOrigin = `50% 50% -${o / 2}px`, a.style["-webkit-transform-origin"] = `50% 50% -${o / 2}px`, c.shadow)
51
+ if (h)
52
+ i.style.transform = `translate3d(0px, ${s / 2 + c.shadowOffset}px, ${-s / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${c.shadowScale})`;
53
+ else {
54
+ const w = Math.abs(u) - Math.floor(Math.abs(u) / 90) * 90, m = 1.5 - (Math.sin(w * 2 * Math.PI / 360) / 2 + Math.cos(w * 2 * Math.PI / 360) / 2), d = c.shadowScale, n = c.shadowScale / m, f = c.shadowOffset;
55
+ i.style.transform = `scale3d(${d}, 1, ${n}) translate3d(0px, ${l / 2 + f}px, ${-l / 2 / n}px) rotateX(-89.99deg)`;
56
+ }
57
+ const v = (S.isSafari || S.isWebView) && S.needPerspectiveFix ? -o / 2 : 0;
58
+ a.style.transform = `translate3d(0px,0,${v}px) rotateX(${g(e.isHorizontal() ? 0 : u)}deg) rotateY(${g(e.isHorizontal() ? -u : 0)}deg)`, a.style.setProperty("--swiper-cube-translate-z", `${v}px`);
60
59
  },
61
- prevButtonProps: {
62
- onPress: () => a.focusPreviousPage(),
63
- "aria-label": o.format("previous"),
64
- isDisabled: b,
65
- onFocusChange: d
60
+ setTransition: (t) => {
61
+ const {
62
+ el: a,
63
+ slides: r
64
+ } = e;
65
+ if (r.forEach((s) => {
66
+ s.style.transitionDuration = `${t}ms`, s.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((l) => {
67
+ l.style.transitionDuration = `${t}ms`;
68
+ });
69
+ }), e.params.cubeEffect.shadow && !e.isHorizontal()) {
70
+ const s = a.querySelector(".swiper-cube-shadow");
71
+ s && (s.style.transitionDuration = `${t}ms`);
72
+ }
66
73
  },
67
- errorMessageProps: {
68
- id: l
74
+ recreateShadows: () => {
75
+ const t = e.isHorizontal();
76
+ e.slides.forEach((a) => {
77
+ const r = Math.max(Math.min(a.progress, 1), -1);
78
+ M(a, r, t);
79
+ });
69
80
  },
70
- title: m
71
- };
81
+ getEffectParams: () => e.params.cubeEffect,
82
+ perspective: () => !0,
83
+ overwriteParams: () => ({
84
+ slidesPerView: 1,
85
+ slidesPerGroup: 1,
86
+ watchSlidesProgress: !0,
87
+ resistanceRatio: 0,
88
+ spaceBetween: 0,
89
+ centeredSlides: !1,
90
+ virtualTranslate: !0
91
+ })
92
+ });
72
93
  }
73
94
  export {
74
- z as useCalendarBase
95
+ V as default
75
96
  };