@okam/stack-ui 1.32.0 → 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 (241) hide show
  1. package/components/fields/TextInputField/index.d.ts +1 -2
  2. package/index.d.ts +5 -0
  3. package/index.js +1 -1
  4. package/index.mjs +26 -25
  5. package/index101.js +1 -1
  6. package/index101.mjs +1 -1
  7. package/index102.js +1 -1
  8. package/index102.mjs +3 -3
  9. package/index103.js +1 -1
  10. package/index103.mjs +1 -1
  11. package/index110.js +1 -1
  12. package/index110.mjs +5 -5
  13. package/index111.js +1 -1
  14. package/index111.mjs +2 -2
  15. package/index112.js +1 -1
  16. package/index112.mjs +1 -1
  17. package/index113.js +1 -1
  18. package/index113.mjs +2 -2
  19. package/index115.js +1 -1
  20. package/index115.mjs +4 -4
  21. package/index116.js +1 -1
  22. package/index116.mjs +2 -2
  23. package/index120.js +1 -1
  24. package/index120.mjs +4 -4
  25. package/index121.js +1 -1
  26. package/index121.mjs +2 -2
  27. package/index125.js +1 -1
  28. package/index125.mjs +2 -2
  29. package/index126.js +1 -1
  30. package/index126.mjs +3 -3
  31. package/index130.js +1 -1
  32. package/index130.mjs +2 -2
  33. package/index133.js +1 -1
  34. package/index133.mjs +1 -1
  35. package/index138.js +1 -1
  36. package/index138.mjs +12 -52
  37. package/index139.js +1 -1
  38. package/index139.mjs +46 -12
  39. package/index140.js +1 -1
  40. package/index140.mjs +241 -46
  41. package/index141.js +2 -1
  42. package/index141.mjs +13 -241
  43. package/index142.js +1 -2
  44. package/index142.mjs +29 -12
  45. package/index143.js +1 -1
  46. package/index143.mjs +52 -30
  47. package/index144.js +1 -1
  48. package/index144.mjs +1 -1
  49. package/index145.js +1 -1
  50. package/index145.mjs +5 -5
  51. package/index146.js +1 -1
  52. package/index146.mjs +3 -3
  53. package/index147.js +1 -1
  54. package/index147.mjs +2 -2
  55. package/index148.js +1 -1
  56. package/index148.mjs +3 -3
  57. package/index149.js +1 -1
  58. package/index149.mjs +3 -3
  59. package/index151.js +1 -1
  60. package/index151.mjs +2 -2
  61. package/index152.js +1 -1
  62. package/index152.mjs +20 -106
  63. package/index153.js +1 -1
  64. package/index153.mjs +107 -83
  65. package/index154.js +1 -1
  66. package/index154.mjs +83 -26
  67. package/index155.js +1 -1
  68. package/index155.mjs +25 -20
  69. package/index156.js +1 -1
  70. package/index156.mjs +123 -17
  71. package/index157.js +1 -1
  72. package/index157.mjs +24 -122
  73. package/index158.js +1 -1
  74. package/index158.mjs +17 -71
  75. package/index159.js +1 -1
  76. package/index159.mjs +62 -338
  77. package/index160.js +1 -1
  78. package/index160.mjs +346 -42
  79. package/index161.js +1 -1
  80. package/index161.mjs +43 -29
  81. package/index162.js +1 -1
  82. package/index162.mjs +28 -24
  83. package/index164.js +1 -1
  84. package/index164.mjs +2 -2
  85. package/index167.js +1 -1
  86. package/index167.mjs +3 -3
  87. package/index169.js +1 -1
  88. package/index169.mjs +1 -1
  89. package/index170.js +1 -1
  90. package/index170.mjs +1 -1
  91. package/index171.js +1 -1
  92. package/index171.mjs +1 -1
  93. package/index173.js +1 -1
  94. package/index173.mjs +1 -1
  95. package/index175.js +1 -1
  96. package/index175.mjs +1 -1
  97. package/index176.js +1 -1
  98. package/index176.mjs +1 -1
  99. package/index178.js +1 -1
  100. package/index178.mjs +2 -2
  101. package/index179.js +1 -1
  102. package/index179.mjs +1 -1
  103. package/index180.js +1 -1
  104. package/index180.mjs +2 -2
  105. package/index182.js +1 -1
  106. package/index182.mjs +1 -1
  107. package/index198.js +1 -1
  108. package/index198.mjs +2 -2
  109. package/index199.js +1 -1
  110. package/index199.mjs +1 -1
  111. package/index200.js +1 -1
  112. package/index200.mjs +3 -3
  113. package/index204.js +1 -1
  114. package/index204.mjs +2 -2
  115. package/index205.js +1 -1
  116. package/index205.mjs +1 -1
  117. package/index206.js +1 -1
  118. package/index206.mjs +2 -2
  119. package/index207.js +1 -1
  120. package/index207.mjs +2 -2
  121. package/index208.js +1 -1
  122. package/index208.mjs +2 -2
  123. package/index209.js +1 -1
  124. package/index209.mjs +2 -2
  125. package/index210.js +1 -1
  126. package/index210.mjs +3 -3
  127. package/index211.js +1 -1
  128. package/index211.mjs +4 -4
  129. package/index212.js +1 -1
  130. package/index212.mjs +1 -1
  131. package/index213.js +1 -1
  132. package/index213.mjs +2 -2
  133. package/index214.js +1 -1
  134. package/index214.mjs +1 -1
  135. package/index215.js +1 -1
  136. package/index215.mjs +3 -3
  137. package/index216.js +1 -1
  138. package/index216.mjs +1 -1
  139. package/index217.js +1 -1
  140. package/index217.mjs +2 -2
  141. package/index218.js +1 -1
  142. package/index218.mjs +1 -1
  143. package/index219.js +1 -1
  144. package/index219.mjs +2 -2
  145. package/index220.js +1 -1
  146. package/index220.mjs +1 -1
  147. package/index223.js +1 -1
  148. package/index223.mjs +4 -4
  149. package/index224.js +1 -1
  150. package/index224.mjs +2 -2
  151. package/index225.js +1 -1
  152. package/index225.mjs +5 -5
  153. package/index226.js +1 -1
  154. package/index226.mjs +4 -4
  155. package/index227.js +1 -1
  156. package/index227.mjs +5 -5
  157. package/index228.js +1 -1
  158. package/index228.mjs +5 -5
  159. package/index229.js +1 -1
  160. package/index229.mjs +2 -2
  161. package/index306.js +1 -1
  162. package/index306.mjs +129 -23
  163. package/index307.js +1 -1
  164. package/index307.mjs +181 -38
  165. package/index308.js +1 -1
  166. package/index308.mjs +9 -5
  167. package/index309.js +1 -1
  168. package/index309.mjs +4 -6
  169. package/index310.js +1 -1
  170. package/index310.mjs +36 -14
  171. package/index311.js +1 -1
  172. package/index311.mjs +5 -24
  173. package/index312.js +1 -1
  174. package/index312.mjs +28 -27
  175. package/index313.js +1 -1
  176. package/index313.mjs +6 -31
  177. package/index314.js +1 -1
  178. package/index314.mjs +138 -26
  179. package/index315.js +1 -1
  180. package/index315.mjs +197 -9
  181. package/index316.js +1 -1
  182. package/index316.mjs +22 -5
  183. package/index317.js +1 -1
  184. package/index317.mjs +28 -7
  185. package/index318.js +1 -1
  186. package/index318.mjs +46 -13
  187. package/index319.js +1 -1
  188. package/index319.mjs +47 -7
  189. package/index320.js +1 -1
  190. package/index320.mjs +95 -125
  191. package/index321.js +1 -1
  192. package/index321.mjs +4 -189
  193. package/index322.js +1 -1
  194. package/index322.mjs +72 -10
  195. package/index323.js +1 -1
  196. package/index323.mjs +58 -3
  197. package/index324.js +1 -1
  198. package/index324.mjs +7 -36
  199. package/index325.js +1 -1
  200. package/index325.mjs +11 -5
  201. package/index326.js +1 -1
  202. package/index326.mjs +46 -28
  203. package/index327.js +1 -1
  204. package/index327.mjs +24 -6
  205. package/index328.js +1 -1
  206. package/index328.mjs +6 -141
  207. package/index329.js +1 -1
  208. package/index329.mjs +14 -197
  209. package/index330.js +1 -1
  210. package/index330.mjs +24 -22
  211. package/index331.js +1 -1
  212. package/index331.mjs +26 -44
  213. package/index332.js +1 -1
  214. package/index332.mjs +29 -46
  215. package/index333.js +1 -1
  216. package/index333.mjs +8 -99
  217. package/index334.js +1 -1
  218. package/index334.mjs +6 -72
  219. package/index335.js +1 -1
  220. package/index335.mjs +7 -58
  221. package/index336.js +1 -1
  222. package/index336.mjs +13 -7
  223. package/index337.js +1 -1
  224. package/index337.mjs +8 -11
  225. package/index338.js +1 -1
  226. package/index338.mjs +4 -7
  227. package/index339.js +1 -1
  228. package/index339.mjs +6 -68
  229. package/index340.js +1 -1
  230. package/index340.mjs +65 -27
  231. package/index341.js +1 -1
  232. package/index341.mjs +30 -6
  233. package/index342.js +1 -1
  234. package/index342.mjs +6 -6
  235. package/index343.js +1 -1
  236. package/index343.mjs +6 -20
  237. package/index344.js +1 -1
  238. package/index344.mjs +20 -3
  239. package/index99.js +1 -1
  240. package/index99.mjs +1 -1
  241. package/package.json +1 -1
package/index320.mjs CHANGED
@@ -1,133 +1,103 @@
1
- function r(e) {
2
- return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
1
+ import { chain as $ } from "./index321.mjs";
2
+ import { useLayoutEffect as b } from "./index172.mjs";
3
+ import { getScrollParent as E } from "./index173.mjs";
4
+ import { isIOS as y } from "./index174.mjs";
5
+ const m = typeof document < "u" && window.visualViewport, T = /* @__PURE__ */ new Set([
6
+ "checkbox",
7
+ "radio",
8
+ "range",
9
+ "color",
10
+ "file",
11
+ "image",
12
+ "button",
13
+ "submit",
14
+ "reset"
15
+ ]);
16
+ let s = 0, f;
17
+ function C(e = {}) {
18
+ let { isDisabled: t } = e;
19
+ b(() => {
20
+ if (!t)
21
+ return s++, s === 1 && (y() ? f = x() : f = S()), () => {
22
+ s--, s === 0 && f();
23
+ };
24
+ }, [
25
+ t
26
+ ]);
3
27
  }
4
- function o(e, n) {
5
- e === void 0 && (e = {}), n === void 0 && (n = {}), Object.keys(n).forEach((t) => {
6
- typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
7
- });
28
+ function S() {
29
+ return $(l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"));
8
30
  }
9
- const u = {
10
- body: {},
11
- addEventListener() {
12
- },
13
- removeEventListener() {
14
- },
15
- activeElement: {
16
- blur() {
17
- },
18
- nodeName: ""
19
- },
20
- querySelector() {
21
- return null;
22
- },
23
- querySelectorAll() {
24
- return [];
25
- },
26
- getElementById() {
27
- return null;
28
- },
29
- createEvent() {
30
- return {
31
- initEvent() {
32
- }
33
- };
34
- },
35
- createElement() {
36
- return {
37
- children: [],
38
- childNodes: [],
39
- style: {},
40
- setAttribute() {
41
- },
42
- getElementsByTagName() {
43
- return [];
44
- }
45
- };
46
- },
47
- createElementNS() {
48
- return {};
49
- },
50
- importNode() {
51
- return null;
52
- },
53
- location: {
54
- hash: "",
55
- host: "",
56
- hostname: "",
57
- href: "",
58
- origin: "",
59
- pathname: "",
60
- protocol: "",
61
- search: ""
62
- }
63
- };
64
- function c() {
65
- const e = typeof document < "u" ? document : {};
66
- return o(e, u), e;
31
+ function x() {
32
+ let e, t, n = (r) => {
33
+ e = E(r.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = l(e, "overscrollBehavior", "contain"));
34
+ }, o = (r) => {
35
+ if (!e || e === document.documentElement || e === document.body) {
36
+ r.preventDefault();
37
+ return;
38
+ }
39
+ e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth && r.preventDefault();
40
+ }, u = (r) => {
41
+ let c = r.target;
42
+ h(c) && c !== document.activeElement && (r.preventDefault(), p(), c.style.transform = "translateY(-2000px)", c.focus(), requestAnimationFrame(() => {
43
+ c.style.transform = "";
44
+ })), t && t();
45
+ }, a = (r) => {
46
+ let c = r.target;
47
+ h(c) && (p(), c.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
48
+ c.style.transform = "", m && (m.height < window.innerHeight ? requestAnimationFrame(() => {
49
+ w(c);
50
+ }) : m.addEventListener("resize", () => w(c), {
51
+ once: !0
52
+ }));
53
+ }));
54
+ }, i = null, p = () => {
55
+ if (i) return;
56
+ let r = () => {
57
+ window.scrollTo(0, 0);
58
+ }, c = window.pageXOffset, v = window.pageYOffset;
59
+ i = $(d(window, "scroll", r), l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"), l(document.body, "marginTop", `-${v}px`), () => {
60
+ window.scrollTo(c, v);
61
+ }), window.scrollTo(0, 0);
62
+ }, g = $(d(document, "touchstart", n, {
63
+ passive: !1,
64
+ capture: !0
65
+ }), d(document, "touchmove", o, {
66
+ passive: !1,
67
+ capture: !0
68
+ }), d(document, "touchend", u, {
69
+ passive: !1,
70
+ capture: !0
71
+ }), d(document, "focus", a, !0));
72
+ return () => {
73
+ t == null || t(), i == null || i(), g();
74
+ };
75
+ }
76
+ function l(e, t, n) {
77
+ let o = e.style[t];
78
+ return e.style[t] = n, () => {
79
+ e.style[t] = o;
80
+ };
67
81
  }
68
- const i = {
69
- document: u,
70
- navigator: {
71
- userAgent: ""
72
- },
73
- location: {
74
- hash: "",
75
- host: "",
76
- hostname: "",
77
- href: "",
78
- origin: "",
79
- pathname: "",
80
- protocol: "",
81
- search: ""
82
- },
83
- history: {
84
- replaceState() {
85
- },
86
- pushState() {
87
- },
88
- go() {
89
- },
90
- back() {
82
+ function d(e, t, n, o) {
83
+ return e.addEventListener(t, n, o), () => {
84
+ e.removeEventListener(t, n, o);
85
+ };
86
+ }
87
+ function w(e) {
88
+ let t = document.scrollingElement || document.documentElement, n = e;
89
+ for (; n && n !== t; ) {
90
+ let o = E(n);
91
+ if (o !== document.documentElement && o !== document.body && o !== n) {
92
+ let u = o.getBoundingClientRect().top, a = n.getBoundingClientRect().top;
93
+ a > u + n.clientHeight && (o.scrollTop += a - u);
91
94
  }
92
- },
93
- CustomEvent: function() {
94
- return this;
95
- },
96
- addEventListener() {
97
- },
98
- removeEventListener() {
99
- },
100
- getComputedStyle() {
101
- return {
102
- getPropertyValue() {
103
- return "";
104
- }
105
- };
106
- },
107
- Image() {
108
- },
109
- Date() {
110
- },
111
- screen: {},
112
- setTimeout() {
113
- },
114
- clearTimeout() {
115
- },
116
- matchMedia() {
117
- return {};
118
- },
119
- requestAnimationFrame(e) {
120
- return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
121
- },
122
- cancelAnimationFrame(e) {
123
- typeof setTimeout > "u" || clearTimeout(e);
95
+ n = o.parentElement;
124
96
  }
125
- };
126
- function s() {
127
- const e = typeof window < "u" ? window : {};
128
- return o(e, i), e;
97
+ }
98
+ function h(e) {
99
+ return e instanceof HTMLInputElement && !T.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
129
100
  }
130
101
  export {
131
- s as a,
132
- c as g
102
+ C as usePreventScroll
133
103
  };
package/index321.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index320.js");function y(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function S(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function T(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function b(){return Date.now()}function x(e){const t=c.a();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function E(e,t){t===void 0&&(t="x");const n=c.a();let r,i,s;const l=x(e);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}function f(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function M(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!M(r)){const i=Object.keys(Object(r)).filter(s=>t.indexOf(s)<0);for(let s=0,l=i.length;s<l;s+=1){const o=i[s],a=Object.getOwnPropertyDescriptor(r,o);a!==void 0&&a.enumerable&&(f(e[o])&&f(r[o])?r[o].__swiper__?e[o]=r[o]:p(e[o],r[o]):!f(e[o])&&f(r[o])?(e[o]={},r[o].__swiper__?e[o]=r[o]:p(e[o],r[o])):e[o]=r[o])}}}return e}function v(e,t,n){e.style.setProperty(t,n)}function C(e){let{swiper:t,targetPosition:n,side:r}=e;const i=c.a(),s=-t.translate;let l=null,o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const g=n>s?"next":"prev",h=(m,d)=>g==="next"&&m>=d||g==="prev"&&m<=d,w=()=>{o=new Date().getTime(),l===null&&(l=o);const m=Math.max(Math.min((o-l)/a,1),0),d=.5-Math.cos(m*Math.PI)/2;let u=s+d*(n-s);if(h(u,n)&&(u=n),t.wrapperEl.scrollTo({[r]:u}),h(u,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:u})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(w)};w()}function O(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function P(e,t){t===void 0&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(r=>r.matches(t)):n}function F(e,t){const n=t.contains(e);return!n&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):n}function j(e){try{console.warn(e);return}catch{}}function _(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:y(t)),n}function L(e){const t=c.a(),n=c.g(),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;return{top:r.top+o-s,left:r.left+a-l}}function A(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function k(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function I(e,t){return c.a().getComputedStyle(e,null).getPropertyValue(t)}function W(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function D(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function q(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function H(e,t,n){const r=c.a();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"))}function K(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function R(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90===0?t+.001:t}exports.a=D;exports.b=L;exports.c=_;exports.d=b;exports.e=P;exports.f=H;exports.g=O;exports.h=W;exports.i=y;exports.j=E;exports.k=q;exports.l=f;exports.m=K;exports.n=T;exports.o=R;exports.p=I;exports.q=k;exports.r=A;exports.s=v;exports.t=C;exports.u=j;exports.v=F;exports.w=p;exports.x=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(...t){return(...f)=>{for(let e of t)typeof e=="function"&&e(...f)}}exports.chain=o;
package/index321.mjs CHANGED
@@ -1,193 +1,8 @@
1
- import { a as c, g as y } from "./index320.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 M(e, t) {
19
- return t === void 0 && (t = 0), setTimeout(e, t);
20
- }
21
- function C() {
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 v(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 p(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 w() {
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 && (p(e[o]) && p(r[o]) ? r[o].__swiper__ ? e[o] = r[o] : w(e[o], r[o]) : !p(e[o]) && p(r[o]) ? (e[o] = {}, r[o].__swiper__ ? e[o] = r[o] : w(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) {
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, m) => d === "next" && f >= m || d === "prev" && f <= m, h = () => {
70
- o = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = o);
71
- const f = Math.max(Math.min((o - l) / a, 1), 0), m = 0.5 - Math.cos(f * Math.PI) / 2;
72
- let u = s + m * (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(h);
84
- };
85
- h();
86
- }
87
- function F(e) {
88
- return e.querySelector(".swiper-slide-transform") || e.shadowRoot && e.shadowRoot.querySelector(".swiper-slide-transform") || e;
89
- }
90
- function j(e, t) {
91
- t === void 0 && (t = "");
92
- const n = [...e.children];
93
- return e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((r) => r.matches(t)) : n;
94
- }
95
- function L(e, t) {
96
- const n = t.contains(e);
97
- return !n && t instanceof HTMLSlotElement ? [...t.assignedElements()].includes(e) : n;
98
- }
99
- function _(e) {
100
- try {
101
- console.warn(e);
102
- return;
103
- } catch {
104
- }
105
- }
106
- function A(e, t) {
107
- t === void 0 && (t = []);
108
- const n = document.createElement(e);
109
- return n.classList.add(...Array.isArray(t) ? t : S(t)), n;
110
- }
111
- function k(e) {
112
- const t = c(), n = y(), 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;
113
- return {
114
- top: r.top + o - s,
115
- left: r.left + a - l
1
+ function o(...f) {
2
+ return (...c) => {
3
+ for (let e of f) typeof e == "function" && e(...c);
116
4
  };
117
5
  }
118
- function D(e, t) {
119
- const n = [];
120
- for (; e.previousElementSibling; ) {
121
- const r = e.previousElementSibling;
122
- t ? r.matches(t) && n.push(r) : n.push(r), e = r;
123
- }
124
- return n;
125
- }
126
- function I(e, t) {
127
- const n = [];
128
- for (; e.nextElementSibling; ) {
129
- const r = e.nextElementSibling;
130
- t ? r.matches(t) && n.push(r) : n.push(r), e = r;
131
- }
132
- return n;
133
- }
134
- function W(e, t) {
135
- return c().getComputedStyle(e, null).getPropertyValue(t);
136
- }
137
- function H(e) {
138
- let t = e, n;
139
- if (t) {
140
- for (n = 0; (t = t.previousSibling) !== null; )
141
- t.nodeType === 1 && (n += 1);
142
- return n;
143
- }
144
- }
145
- function K(e, t) {
146
- const n = [];
147
- let r = e.parentElement;
148
- for (; r; )
149
- t ? r.matches(t) && n.push(r) : n.push(r), r = r.parentElement;
150
- return n;
151
- }
152
- function q(e, t) {
153
- function n(r) {
154
- r.target === e && (t.call(e, r), e.removeEventListener("transitionend", n));
155
- }
156
- t && e.addEventListener("transitionend", n);
157
- }
158
- function R(e, t, n) {
159
- const r = c();
160
- 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"));
161
- }
162
- function V(e) {
163
- return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
164
- }
165
- function B(e) {
166
- return (t) => Math.abs(t) > 0 && e.browser && e.browser.need3dFix && Math.abs(t) % 90 === 0 ? t + 1e-3 : t;
167
- }
168
6
  export {
169
- K as a,
170
- k as b,
171
- A as c,
172
- C as d,
173
- j as e,
174
- R as f,
175
- F as g,
176
- H as h,
177
- S as i,
178
- v as j,
179
- q as k,
180
- p as l,
181
- V as m,
182
- M as n,
183
- B as o,
184
- W as p,
185
- I as q,
186
- D as r,
187
- O as s,
188
- P as t,
189
- _ as u,
190
- L as v,
191
- w,
192
- E as x
7
+ o as chain
193
8
  };
package/index322.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index321.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;
1
+ "use strict";const e=require("./index382.js"),r=require("./index383.js"),t=require("./index384.js"),s=require("./index385.js"),u=require("./index386.js"),n=require("./index387.js"),i=require("./index388.js"),o=require("./index389.js"),c=require("./index390.js"),q=require("./index391.js"),R=require("./index392.js"),l=require("./index393.js"),E=require("./index394.js"),S=require("./index395.js"),h=require("./index396.js"),L=require("./index397.js"),T=require("./index398.js"),a=require("./index399.js"),I=require("./index400.js"),P=require("./index401.js"),U=require("./index402.js"),d=require("./index403.js"),f=require("./index404.js"),p=require("./index405.js"),k=require("./index406.js"),K=require("./index407.js"),N=require("./index408.js"),b=require("./index409.js"),v=require("./index410.js"),z=require("./index411.js"),A=require("./index412.js"),B=require("./index413.js"),C=require("./index414.js"),D=require("./index415.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
package/index322.mjs CHANGED
@@ -1,12 +1,74 @@
1
- import { e as i, c as m } from "./index321.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;
7
- }
8
- }), n;
9
- }
1
+ import r from "./index382.mjs";
2
+ import o from "./index383.mjs";
3
+ import f from "./index384.mjs";
4
+ import t from "./index385.mjs";
5
+ import p from "./index386.mjs";
6
+ import $ from "./index387.mjs";
7
+ import e from "./index388.mjs";
8
+ import m from "./index389.mjs";
9
+ import s from "./index390.mjs";
10
+ import d from "./index391.mjs";
11
+ import c from "./index392.mjs";
12
+ import i from "./index393.mjs";
13
+ import x from "./index394.mjs";
14
+ import a from "./index395.mjs";
15
+ import b from "./index396.mjs";
16
+ import R from "./index397.mjs";
17
+ import l from "./index398.mjs";
18
+ import E from "./index399.mjs";
19
+ import S from "./index400.mjs";
20
+ import h from "./index401.mjs";
21
+ import L from "./index402.mjs";
22
+ import T from "./index403.mjs";
23
+ import u from "./index404.mjs";
24
+ import I from "./index405.mjs";
25
+ import P from "./index406.mjs";
26
+ import U from "./index407.mjs";
27
+ import k from "./index408.mjs";
28
+ import n from "./index409.mjs";
29
+ import v from "./index410.mjs";
30
+ import K from "./index411.mjs";
31
+ import N from "./index412.mjs";
32
+ import z from "./index413.mjs";
33
+ import A from "./index414.mjs";
34
+ import B from "./index415.mjs";
35
+ var C = {};
36
+ C = {
37
+ "ar-AE": r,
38
+ "bg-BG": o,
39
+ "cs-CZ": f,
40
+ "da-DK": t,
41
+ "de-DE": p,
42
+ "el-GR": $,
43
+ "en-US": e,
44
+ "es-ES": m,
45
+ "et-EE": s,
46
+ "fi-FI": d,
47
+ "fr-FR": c,
48
+ "he-IL": i,
49
+ "hr-HR": x,
50
+ "hu-HU": a,
51
+ "it-IT": b,
52
+ "ja-JP": R,
53
+ "ko-KR": l,
54
+ "lt-LT": E,
55
+ "lv-LV": S,
56
+ "nb-NO": h,
57
+ "nl-NL": L,
58
+ "pl-PL": T,
59
+ "pt-BR": u,
60
+ "pt-PT": I,
61
+ "ro-RO": P,
62
+ "ru-RU": U,
63
+ "sk-SK": k,
64
+ "sl-SI": n,
65
+ "sr-SP": v,
66
+ "sv-SE": K,
67
+ "tr-TR": N,
68
+ "uk-UA": z,
69
+ "zh-CN": A,
70
+ "zh-TW": B
71
+ };
10
72
  export {
11
- o as c
73
+ C as default
12
74
  };
package/index323.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let o=new WeakMap,n=[];function h(b,c=document.body){let i=new Set(b),a=new Set,u=t=>{for(let l of t.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))i.add(l);let r=l=>{if(i.has(l)||l.parentElement&&a.has(l.parentElement)&&l.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of i)if(l.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r}),E=r(t);if(E===NodeFilter.FILTER_ACCEPT&&f(t),E!==NodeFilter.FILTER_REJECT){let l=e.nextNode();for(;l!=null;)f(l),l=e.nextNode()}},f=t=>{var r;let e=(r=o.get(t))!==null&&r!==void 0?r:0;t.getAttribute("aria-hidden")==="true"&&e===0||(e===0&&t.setAttribute("aria-hidden","true"),a.add(t),o.set(t,e+1))};n.length&&n[n.length-1].disconnect(),u(c);let d=new MutationObserver(t=>{for(let r of t)if(!(r.type!=="childList"||r.addedNodes.length===0)&&![...i,...a].some(e=>e.contains(r.target))){for(let e of r.removedNodes)e instanceof Element&&(i.delete(e),a.delete(e));for(let e of r.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer==="true"||e.dataset.reactAriaTopLayer==="true")?i.add(e):e instanceof Element&&u(e)}});d.observe(c,{childList:!0,subtree:!0});let s={observe(){d.observe(c,{childList:!0,subtree:!0})},disconnect(){d.disconnect()}};return n.push(s),()=>{d.disconnect();for(let t of a){let r=o.get(t);r!=null&&(r===1?(t.removeAttribute("aria-hidden"),o.delete(t)):o.set(t,r-1))}s===n[n.length-1]?(n.pop(),n.length&&n[n.length-1].observe()):n.splice(n.indexOf(s),1)}}exports.ariaHideOutside=h;
package/index323.mjs CHANGED
@@ -1,6 +1,61 @@
1
- function r(e) {
2
- return e === void 0 && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
1
+ let o = /* @__PURE__ */ new WeakMap(), n = [];
2
+ function b(p, c = document.body) {
3
+ let i = new Set(p), a = /* @__PURE__ */ new Set(), f = (t) => {
4
+ for (let l of t.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) i.add(l);
5
+ let r = (l) => {
6
+ if (i.has(l) || l.parentElement && a.has(l.parentElement) && l.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
7
+ for (let h of i)
8
+ if (l.contains(h)) return NodeFilter.FILTER_SKIP;
9
+ return NodeFilter.FILTER_ACCEPT;
10
+ }, e = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
11
+ acceptNode: r
12
+ }), E = r(t);
13
+ if (E === NodeFilter.FILTER_ACCEPT && u(t), E !== NodeFilter.FILTER_REJECT) {
14
+ let l = e.nextNode();
15
+ for (; l != null; )
16
+ u(l), l = e.nextNode();
17
+ }
18
+ }, u = (t) => {
19
+ var r;
20
+ let e = (r = o.get(t)) !== null && r !== void 0 ? r : 0;
21
+ t.getAttribute("aria-hidden") === "true" && e === 0 || (e === 0 && t.setAttribute("aria-hidden", "true"), a.add(t), o.set(t, e + 1));
22
+ };
23
+ n.length && n[n.length - 1].disconnect(), f(c);
24
+ let d = new MutationObserver((t) => {
25
+ for (let r of t)
26
+ if (!(r.type !== "childList" || r.addedNodes.length === 0) && ![
27
+ ...i,
28
+ ...a
29
+ ].some((e) => e.contains(r.target))) {
30
+ for (let e of r.removedNodes) e instanceof Element && (i.delete(e), a.delete(e));
31
+ for (let e of r.addedNodes)
32
+ (e instanceof HTMLElement || e instanceof SVGElement) && (e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer === "true") ? i.add(e) : e instanceof Element && f(e);
33
+ }
34
+ });
35
+ d.observe(c, {
36
+ childList: !0,
37
+ subtree: !0
38
+ });
39
+ let s = {
40
+ observe() {
41
+ d.observe(c, {
42
+ childList: !0,
43
+ subtree: !0
44
+ });
45
+ },
46
+ disconnect() {
47
+ d.disconnect();
48
+ }
49
+ };
50
+ return n.push(s), () => {
51
+ d.disconnect();
52
+ for (let t of a) {
53
+ let r = o.get(t);
54
+ r != null && (r === 1 ? (t.removeAttribute("aria-hidden"), o.delete(t)) : o.set(t, r - 1));
55
+ }
56
+ s === n[n.length - 1] ? (n.pop(), n.length && n[n.length - 1].observe()) : n.splice(n.indexOf(s), 1);
57
+ };
3
58
  }
4
59
  export {
5
- r as c
60
+ b as ariaHideOutside
6
61
  };
package/index324.js CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),o=t.createContext({});function r(){var e;return(e=t.useContext(o))!==null&&e!==void 0?e:{}}exports.PortalContext=o;exports.useUNSTABLE_PortalContext=r;
package/index324.mjs CHANGED
@@ -1,39 +1,10 @@
1
- function m(d) {
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
- });
1
+ import { useContext as e, createContext as o } from "react";
2
+ const r = /* @__PURE__ */ o({});
3
+ function a() {
4
+ var t;
5
+ return (t = e(r)) !== null && t !== void 0 ? t : {};
36
6
  }
37
7
  export {
38
- m as e
8
+ r as PortalContext,
9
+ a as useUNSTABLE_PortalContext
39
10
  };