@anoki/fse-ui 1.0.0-beta1.38.15 → 1.0.0-beta1.38.17

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 (268) hide show
  1. package/dist/components/ui/HeroContentCard/HeroContentCard.css +1 -1
  2. package/dist/index.cjs137.js +1 -1
  3. package/dist/index.cjs140.js +1 -1
  4. package/dist/index.cjs144.js +1 -1
  5. package/dist/index.cjs148.js +1 -1
  6. package/dist/index.cjs149.js +1 -1
  7. package/dist/index.cjs150.js +1 -1
  8. package/dist/index.cjs220.js +1 -1
  9. package/dist/index.cjs222.js +1 -1
  10. package/dist/index.cjs257.js +1 -1
  11. package/dist/index.cjs262.js +1 -1
  12. package/dist/index.cjs270.js +1 -1
  13. package/dist/index.cjs287.js +1 -1
  14. package/dist/index.cjs318.js +1 -1
  15. package/dist/index.cjs360.js +1 -1
  16. package/dist/index.cjs366.js +1 -1
  17. package/dist/index.cjs413.js +1 -1
  18. package/dist/{index.cjs425.js → index.cjs424.js} +1 -1
  19. package/dist/index.cjs424.js.map +1 -0
  20. package/dist/index.cjs431.js +2 -0
  21. package/dist/index.cjs431.js.map +1 -0
  22. package/dist/index.cjs435.js +2 -0
  23. package/dist/index.cjs435.js.map +1 -0
  24. package/dist/index.cjs436.js +1 -1
  25. package/dist/index.cjs436.js.map +1 -1
  26. package/dist/{index.cjs439.js → index.cjs438.js} +1 -1
  27. package/dist/{index.cjs439.js.map → index.cjs438.js.map} +1 -1
  28. package/dist/index.cjs440.js +2 -0
  29. package/dist/index.cjs440.js.map +1 -0
  30. package/dist/index.cjs441.js +1 -1
  31. package/dist/index.cjs441.js.map +1 -1
  32. package/dist/index.cjs446.js +2 -0
  33. package/dist/index.cjs446.js.map +1 -0
  34. package/dist/index.cjs447.js +1 -1
  35. package/dist/index.cjs447.js.map +1 -1
  36. package/dist/index.cjs448.js +1 -1
  37. package/dist/index.cjs448.js.map +1 -1
  38. package/dist/index.cjs449.js +1 -1
  39. package/dist/index.cjs449.js.map +1 -1
  40. package/dist/index.cjs450.js +1 -1
  41. package/dist/index.cjs450.js.map +1 -1
  42. package/dist/index.cjs451.js +1 -1
  43. package/dist/index.cjs451.js.map +1 -1
  44. package/dist/index.cjs452.js +1 -1
  45. package/dist/index.cjs452.js.map +1 -1
  46. package/dist/index.cjs454.js +1 -1
  47. package/dist/index.cjs454.js.map +1 -1
  48. package/dist/index.cjs457.js +1 -1
  49. package/dist/index.cjs457.js.map +1 -1
  50. package/dist/{index.cjs455.js → index.cjs458.js} +1 -1
  51. package/dist/{index.cjs455.js.map → index.cjs458.js.map} +1 -1
  52. package/dist/{index.cjs456.js → index.cjs459.js} +2 -2
  53. package/dist/{index.cjs456.js.map → index.cjs459.js.map} +1 -1
  54. package/dist/index.cjs463.js +1 -1
  55. package/dist/index.cjs463.js.map +1 -1
  56. package/dist/index.cjs464.js +1 -1
  57. package/dist/index.cjs464.js.map +1 -1
  58. package/dist/index.cjs465.js +1 -1
  59. package/dist/index.cjs465.js.map +1 -1
  60. package/dist/index.cjs466.js +1 -1
  61. package/dist/index.cjs466.js.map +1 -1
  62. package/dist/index.cjs467.js +2 -0
  63. package/dist/index.cjs467.js.map +1 -0
  64. package/dist/index.cjs468.js +2 -0
  65. package/dist/index.cjs468.js.map +1 -0
  66. package/dist/index.cjs469.js +2 -0
  67. package/dist/index.cjs469.js.map +1 -0
  68. package/dist/index.cjs490.js +1 -1
  69. package/dist/index.cjs490.js.map +1 -1
  70. package/dist/index.cjs491.js +1 -1
  71. package/dist/index.cjs492.js +2 -0
  72. package/dist/index.cjs492.js.map +1 -0
  73. package/dist/index.cjs5.js +1 -1
  74. package/dist/index.cjs504.js +1 -1
  75. package/dist/index.cjs509.js +1 -1
  76. package/dist/index.cjs511.js +1 -1
  77. package/dist/index.cjs512.js +1 -1
  78. package/dist/index.cjs519.js +1 -1
  79. package/dist/index.cjs521.js +1 -1
  80. package/dist/index.cjs526.js +1 -1
  81. package/dist/index.cjs527.js +1 -1
  82. package/dist/index.cjs530.js +1 -1
  83. package/dist/index.cjs532.js +1 -1
  84. package/dist/index.cjs535.js +1 -1
  85. package/dist/index.cjs536.js +1 -1
  86. package/dist/index.cjs537.js +1 -1
  87. package/dist/index.cjs544.js +1 -1
  88. package/dist/index.cjs549.js +1 -1
  89. package/dist/index.cjs551.js +1 -1
  90. package/dist/index.cjs553.js +1 -1
  91. package/dist/index.cjs555.js +1 -1
  92. package/dist/index.cjs560.js +1 -1
  93. package/dist/index.cjs560.js.map +1 -1
  94. package/dist/index.cjs561.js +1 -1
  95. package/dist/index.cjs561.js.map +1 -1
  96. package/dist/index.cjs562.js +1 -1
  97. package/dist/index.cjs562.js.map +1 -1
  98. package/dist/index.cjs563.js +1 -1
  99. package/dist/index.cjs563.js.map +1 -1
  100. package/dist/index.cjs564.js +1 -1
  101. package/dist/index.cjs564.js.map +1 -1
  102. package/dist/index.cjs570.js +38 -1
  103. package/dist/index.cjs570.js.map +1 -1
  104. package/dist/index.cjs571.js +1 -38
  105. package/dist/index.cjs571.js.map +1 -1
  106. package/dist/index.cjs572.js +1 -1
  107. package/dist/index.cjs572.js.map +1 -1
  108. package/dist/index.cjs573.js +1 -1
  109. package/dist/index.cjs573.js.map +1 -1
  110. package/dist/index.cjs574.js +1 -1
  111. package/dist/index.cjs574.js.map +1 -1
  112. package/dist/index.cjs578.js +1 -1
  113. package/dist/index.cjs578.js.map +1 -1
  114. package/dist/index.cjs579.js +1 -1
  115. package/dist/index.cjs579.js.map +1 -1
  116. package/dist/index.cjs580.js +1 -1
  117. package/dist/index.cjs580.js.map +1 -1
  118. package/dist/index.es137.js +1 -1
  119. package/dist/index.es140.js +1 -1
  120. package/dist/index.es144.js +1 -1
  121. package/dist/index.es148.js +1 -1
  122. package/dist/index.es149.js +2 -2
  123. package/dist/index.es150.js +1 -1
  124. package/dist/index.es220.js +1 -1
  125. package/dist/index.es222.js +1 -1
  126. package/dist/index.es257.js +7 -7
  127. package/dist/index.es262.js +1 -1
  128. package/dist/index.es270.js +8 -8
  129. package/dist/index.es287.js +14 -14
  130. package/dist/index.es318.js +7 -7
  131. package/dist/index.es360.js +4 -4
  132. package/dist/index.es366.js +1 -1
  133. package/dist/index.es413.js +1 -1
  134. package/dist/{index.es425.js → index.es424.js} +1 -1
  135. package/dist/index.es424.js.map +1 -0
  136. package/dist/{index.es432.js → index.es431.js} +2 -2
  137. package/dist/index.es431.js.map +1 -0
  138. package/dist/index.es435.js +12 -0
  139. package/dist/index.es435.js.map +1 -0
  140. package/dist/index.es436.js +188 -8
  141. package/dist/index.es436.js.map +1 -1
  142. package/dist/{index.es439.js → index.es438.js} +1 -1
  143. package/dist/{index.es439.js.map → index.es438.js.map} +1 -1
  144. package/dist/index.es440.js +48 -0
  145. package/dist/index.es440.js.map +1 -0
  146. package/dist/index.es441.js +136 -45
  147. package/dist/index.es441.js.map +1 -1
  148. package/dist/index.es446.js +10 -0
  149. package/dist/index.es446.js.map +1 -0
  150. package/dist/index.es447.js +25 -5
  151. package/dist/index.es447.js.map +1 -1
  152. package/dist/index.es448.js +64 -23
  153. package/dist/index.es448.js.map +1 -1
  154. package/dist/index.es449.js +27 -65
  155. package/dist/index.es449.js.map +1 -1
  156. package/dist/index.es450.js +32 -29
  157. package/dist/index.es450.js.map +1 -1
  158. package/dist/index.es451.js +620 -31
  159. package/dist/index.es451.js.map +1 -1
  160. package/dist/index.es452.js +10 -621
  161. package/dist/index.es452.js.map +1 -1
  162. package/dist/index.es454.js +15 -6
  163. package/dist/index.es454.js.map +1 -1
  164. package/dist/index.es457.js +6 -15
  165. package/dist/index.es457.js.map +1 -1
  166. package/dist/{index.es455.js → index.es458.js} +1 -1
  167. package/dist/{index.es455.js.map → index.es458.js.map} +1 -1
  168. package/dist/{index.es456.js → index.es459.js} +2 -2
  169. package/dist/{index.es456.js.map → index.es459.js.map} +1 -1
  170. package/dist/index.es463.js +122 -12
  171. package/dist/index.es463.js.map +1 -1
  172. package/dist/index.es464.js +134 -8
  173. package/dist/index.es464.js.map +1 -1
  174. package/dist/index.es465.js +14 -50
  175. package/dist/index.es465.js.map +1 -1
  176. package/dist/index.es466.js +13 -54
  177. package/dist/index.es466.js.map +1 -1
  178. package/dist/index.es467.js +12 -0
  179. package/dist/index.es467.js.map +1 -0
  180. package/dist/index.es468.js +53 -0
  181. package/dist/index.es468.js.map +1 -0
  182. package/dist/index.es469.js +59 -0
  183. package/dist/index.es469.js.map +1 -0
  184. package/dist/index.es490.js +73 -5
  185. package/dist/index.es490.js.map +1 -1
  186. package/dist/index.es491.js +6 -2
  187. package/dist/index.es491.js.map +1 -1
  188. package/dist/index.es492.js +5 -0
  189. package/dist/index.es492.js.map +1 -0
  190. package/dist/index.es5.js +1 -1
  191. package/dist/index.es504.js +1 -1
  192. package/dist/index.es509.js +3 -3
  193. package/dist/index.es511.js +4 -4
  194. package/dist/index.es512.js +6 -6
  195. package/dist/index.es519.js +1 -1
  196. package/dist/index.es521.js +1 -1
  197. package/dist/index.es526.js +1 -1
  198. package/dist/index.es527.js +3 -3
  199. package/dist/index.es530.js +3 -3
  200. package/dist/index.es532.js +1 -1
  201. package/dist/index.es535.js +2 -2
  202. package/dist/index.es536.js +1 -1
  203. package/dist/index.es537.js +14 -14
  204. package/dist/index.es544.js +6 -6
  205. package/dist/index.es549.js +7 -7
  206. package/dist/index.es551.js +1 -1
  207. package/dist/index.es553.js +1 -1
  208. package/dist/index.es555.js +4 -4
  209. package/dist/index.es560.js +2 -6
  210. package/dist/index.es560.js.map +1 -1
  211. package/dist/index.es561.js +2 -16
  212. package/dist/index.es561.js.map +1 -1
  213. package/dist/index.es562.js +2 -2
  214. package/dist/index.es562.js.map +1 -1
  215. package/dist/index.es563.js +6 -2
  216. package/dist/index.es563.js.map +1 -1
  217. package/dist/index.es564.js +16 -2
  218. package/dist/index.es564.js.map +1 -1
  219. package/dist/index.es570.js +69 -65
  220. package/dist/index.es570.js.map +1 -1
  221. package/dist/index.es571.js +8 -68
  222. package/dist/index.es571.js.map +1 -1
  223. package/dist/index.es572.js +14 -9
  224. package/dist/index.es572.js.map +1 -1
  225. package/dist/index.es573.js +62 -14
  226. package/dist/index.es573.js.map +1 -1
  227. package/dist/index.es574.js +64 -61
  228. package/dist/index.es574.js.map +1 -1
  229. package/dist/index.es578.js +3 -4
  230. package/dist/index.es578.js.map +1 -1
  231. package/dist/index.es579.js +2 -3
  232. package/dist/index.es579.js.map +1 -1
  233. package/dist/index.es580.js +4 -2
  234. package/dist/index.es580.js.map +1 -1
  235. package/package.json +1 -1
  236. package/dist/index.cjs422.js +0 -2
  237. package/dist/index.cjs422.js.map +0 -1
  238. package/dist/index.cjs425.js.map +0 -1
  239. package/dist/index.cjs432.js +0 -2
  240. package/dist/index.cjs432.js.map +0 -1
  241. package/dist/index.cjs437.js +0 -2
  242. package/dist/index.cjs437.js.map +0 -1
  243. package/dist/index.cjs453.js +0 -2
  244. package/dist/index.cjs453.js.map +0 -1
  245. package/dist/index.cjs460.js +0 -2
  246. package/dist/index.cjs460.js.map +0 -1
  247. package/dist/index.cjs461.js +0 -2
  248. package/dist/index.cjs461.js.map +0 -1
  249. package/dist/index.cjs462.js +0 -2
  250. package/dist/index.cjs462.js.map +0 -1
  251. package/dist/index.cjs489.js +0 -2
  252. package/dist/index.cjs489.js.map +0 -1
  253. package/dist/index.es422.js +0 -139
  254. package/dist/index.es422.js.map +0 -1
  255. package/dist/index.es425.js.map +0 -1
  256. package/dist/index.es432.js.map +0 -1
  257. package/dist/index.es437.js +0 -192
  258. package/dist/index.es437.js.map +0 -1
  259. package/dist/index.es453.js +0 -14
  260. package/dist/index.es453.js.map +0 -1
  261. package/dist/index.es460.js +0 -128
  262. package/dist/index.es460.js.map +0 -1
  263. package/dist/index.es461.js +0 -138
  264. package/dist/index.es461.js.map +0 -1
  265. package/dist/index.es462.js +0 -17
  266. package/dist/index.es462.js.map +0 -1
  267. package/dist/index.es489.js +0 -77
  268. package/dist/index.es489.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es424.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,8 +1,8 @@
1
- import { getDefaultExportFromCjs as r } from "./index.es490.js";
1
+ import { getDefaultExportFromCjs as r } from "./index.es491.js";
2
2
  import { __require as o } from "./index.es502.js";
3
3
  var e = o();
4
4
  const a = /* @__PURE__ */ r(e);
5
5
  export {
6
6
  a as default
7
7
  };
8
- //# sourceMappingURL=index.es432.js.map
8
+ //# sourceMappingURL=index.es431.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es431.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,12 @@
1
+ import { useState as r, useEffect as c } from "react";
2
+ function i(e, t = 300) {
3
+ const [u, o] = r(e);
4
+ return c(() => {
5
+ const n = setTimeout(() => o(e), t);
6
+ return () => clearTimeout(n);
7
+ }, [e, t]), u;
8
+ }
9
+ export {
10
+ i as useDebouncedValue
11
+ };
12
+ //# sourceMappingURL=index.es435.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es435.js","sources":["../src/utils/useDebouncedValue.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\r\n\r\nexport function useDebouncedValue<T>(value: T, delay: number = 300): T {\r\n const [debouncedValue, setDebouncedValue] = useState(value);\r\n\r\n useEffect(() => {\r\n const timer = setTimeout(() => setDebouncedValue(value), delay);\r\n return () => clearTimeout(timer);\r\n }, [value, delay]);\r\n\r\n return debouncedValue;\r\n}\r\n"],"names":["useDebouncedValue","value","delay","debouncedValue","setDebouncedValue","useState","useEffect","timer"],"mappings":";AAEgB,SAAAA,EAAqBC,GAAUC,IAAgB,KAAQ;AACrE,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAASJ,CAAK;AAE1D,SAAAK,EAAU,MAAM;AACd,UAAMC,IAAQ,WAAW,MAAMH,EAAkBH,CAAK,GAAGC,CAAK;AACvD,WAAA,MAAM,aAAaK,CAAK;AAAA,EAAA,GAC9B,CAACN,GAAOC,CAAK,CAAC,GAEVC;AACT;"}
@@ -1,12 +1,192 @@
1
- import { useState as r, useEffect as c } from "react";
2
- function i(e, t = 300) {
3
- const [u, o] = r(e);
4
- return c(() => {
5
- const n = setTimeout(() => o(e), t);
6
- return () => clearTimeout(n);
7
- }, [e, t]), u;
1
+ import { g as F } from "./index.es515.js";
2
+ import { c as y } from "./index.es518.js";
3
+ import { c as K, m as n, h as j } from "./index.es516.js";
4
+ function Y(P) {
5
+ let {
6
+ swiper: i,
7
+ extendParams: N,
8
+ on: o
9
+ } = P;
10
+ N({
11
+ a11y: {
12
+ enabled: !0,
13
+ notificationClass: "swiper-notification",
14
+ prevSlideMessage: "Previous slide",
15
+ nextSlideMessage: "Next slide",
16
+ firstSlideMessage: "This is the first slide",
17
+ lastSlideMessage: "This is the last slide",
18
+ paginationBulletMessage: "Go to slide {{index}}",
19
+ slideLabelMessage: "{{index}} / {{slidesLength}}",
20
+ containerMessage: null,
21
+ containerRoleDescriptionMessage: null,
22
+ containerRole: null,
23
+ itemRoleDescriptionMessage: null,
24
+ slideRole: "group",
25
+ id: null,
26
+ scrollOnFocus: !0
27
+ }
28
+ }), i.a11y = {
29
+ clicked: !1
30
+ };
31
+ let r = null, p, f, L = (/* @__PURE__ */ new Date()).getTime();
32
+ function u(e) {
33
+ const t = r;
34
+ t.length !== 0 && (t.innerHTML = "", t.innerHTML = e);
35
+ }
36
+ function B(e) {
37
+ const t = () => Math.round(16 * Math.random()).toString(16);
38
+ return "x".repeat(e).replace(/x/g, t);
39
+ }
40
+ function g(e) {
41
+ e = n(e), e.forEach((t) => {
42
+ t.setAttribute("tabIndex", "0");
43
+ });
44
+ }
45
+ function x(e) {
46
+ e = n(e), e.forEach((t) => {
47
+ t.setAttribute("tabIndex", "-1");
48
+ });
49
+ }
50
+ function m(e, t) {
51
+ e = n(e), e.forEach((a) => {
52
+ a.setAttribute("role", t);
53
+ });
54
+ }
55
+ function M(e, t) {
56
+ e = n(e), e.forEach((a) => {
57
+ a.setAttribute("aria-roledescription", t);
58
+ });
59
+ }
60
+ function O(e, t) {
61
+ e = n(e), e.forEach((a) => {
62
+ a.setAttribute("aria-controls", t);
63
+ });
64
+ }
65
+ function E(e, t) {
66
+ e = n(e), e.forEach((a) => {
67
+ a.setAttribute("aria-label", t);
68
+ });
69
+ }
70
+ function H(e, t) {
71
+ e = n(e), e.forEach((a) => {
72
+ a.setAttribute("id", t);
73
+ });
74
+ }
75
+ function q(e, t) {
76
+ e = n(e), e.forEach((a) => {
77
+ a.setAttribute("aria-live", t);
78
+ });
79
+ }
80
+ function A(e) {
81
+ e = n(e), e.forEach((t) => {
82
+ t.setAttribute("aria-disabled", !0);
83
+ });
84
+ }
85
+ function w(e) {
86
+ e = n(e), e.forEach((t) => {
87
+ t.setAttribute("aria-disabled", !1);
88
+ });
89
+ }
90
+ function d(e) {
91
+ if (e.keyCode !== 13 && e.keyCode !== 32) return;
92
+ const t = i.params.a11y, a = e.target;
93
+ if (!(i.pagination && i.pagination.el && (a === i.pagination.el || i.pagination.el.contains(e.target)) && !e.target.matches(y(i.params.pagination.bulletClass)))) {
94
+ if (i.navigation && i.navigation.prevEl && i.navigation.nextEl) {
95
+ const s = n(i.navigation.prevEl);
96
+ n(i.navigation.nextEl).includes(a) && (i.isEnd && !i.params.loop || i.slideNext(), i.isEnd ? u(t.lastSlideMessage) : u(t.nextSlideMessage)), s.includes(a) && (i.isBeginning && !i.params.loop || i.slidePrev(), i.isBeginning ? u(t.firstSlideMessage) : u(t.prevSlideMessage));
97
+ }
98
+ i.pagination && a.matches(y(i.params.pagination.bulletClass)) && a.click();
99
+ }
100
+ }
101
+ function G() {
102
+ if (i.params.loop || i.params.rewind || !i.navigation) return;
103
+ const {
104
+ nextEl: e,
105
+ prevEl: t
106
+ } = i.navigation;
107
+ t && (i.isBeginning ? (A(t), x(t)) : (w(t), g(t))), e && (i.isEnd ? (A(e), x(e)) : (w(e), g(e)));
108
+ }
109
+ function k() {
110
+ return i.pagination && i.pagination.bullets && i.pagination.bullets.length;
111
+ }
112
+ function C() {
113
+ return k() && i.params.pagination.clickable;
114
+ }
115
+ function U() {
116
+ const e = i.params.a11y;
117
+ k() && i.pagination.bullets.forEach((t) => {
118
+ i.params.pagination.clickable && (g(t), i.params.pagination.renderBullet || (m(t, "button"), E(t, e.paginationBulletMessage.replace(/\{\{index\}\}/, j(t) + 1)))), t.matches(y(i.params.pagination.bulletActiveClass)) ? t.setAttribute("aria-current", "true") : t.removeAttribute("aria-current");
119
+ });
120
+ }
121
+ const S = (e, t, a) => {
122
+ g(e), e.tagName !== "BUTTON" && (m(e, "button"), e.addEventListener("keydown", d)), E(e, a), O(e, t);
123
+ }, R = (e) => {
124
+ f && f !== e.target && !f.contains(e.target) && (p = !0), i.a11y.clicked = !0;
125
+ }, T = () => {
126
+ p = !1, requestAnimationFrame(() => {
127
+ requestAnimationFrame(() => {
128
+ i.destroyed || (i.a11y.clicked = !1);
129
+ });
130
+ });
131
+ }, D = (e) => {
132
+ L = (/* @__PURE__ */ new Date()).getTime();
133
+ }, h = (e) => {
134
+ if (i.a11y.clicked || !i.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - L < 100) return;
135
+ const t = e.target.closest(`.${i.params.slideClass}, swiper-slide`);
136
+ if (!t || !i.slides.includes(t)) return;
137
+ f = t;
138
+ const a = i.slides.indexOf(t) === i.activeIndex, s = i.params.watchSlidesProgress && i.visibleSlides && i.visibleSlides.includes(t);
139
+ a || s || e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents || (i.isHorizontal() ? i.el.scrollLeft = 0 : i.el.scrollTop = 0, requestAnimationFrame(() => {
140
+ p || (i.params.loop ? i.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")), 0) : i.slideTo(i.slides.indexOf(t), 0), p = !1);
141
+ }));
142
+ }, I = () => {
143
+ const e = i.params.a11y;
144
+ e.itemRoleDescriptionMessage && M(i.slides, e.itemRoleDescriptionMessage), e.slideRole && m(i.slides, e.slideRole);
145
+ const t = i.slides.length;
146
+ e.slideLabelMessage && i.slides.forEach((a, s) => {
147
+ const l = i.params.loop ? parseInt(a.getAttribute("data-swiper-slide-index"), 10) : s, c = e.slideLabelMessage.replace(/\{\{index\}\}/, l + 1).replace(/\{\{slidesLength\}\}/, t);
148
+ E(a, c);
149
+ });
150
+ }, V = () => {
151
+ const e = i.params.a11y;
152
+ i.el.append(r);
153
+ const t = i.el;
154
+ e.containerRoleDescriptionMessage && M(t, e.containerRoleDescriptionMessage), e.containerMessage && E(t, e.containerMessage), e.containerRole && m(t, e.containerRole);
155
+ const a = i.wrapperEl, s = e.id || a.getAttribute("id") || `swiper-wrapper-${B(16)}`, l = i.params.autoplay && i.params.autoplay.enabled ? "off" : "polite";
156
+ H(a, s), q(a, l), I();
157
+ let {
158
+ nextEl: c,
159
+ prevEl: v
160
+ } = i.navigation ? i.navigation : {};
161
+ c = n(c), v = n(v), c && c.forEach((b) => S(b, s, e.nextSlideMessage)), v && v.forEach((b) => S(b, s, e.prevSlideMessage)), C() && n(i.pagination.el).forEach((z) => {
162
+ z.addEventListener("keydown", d);
163
+ }), F().addEventListener("visibilitychange", D), i.el.addEventListener("focus", h, !0), i.el.addEventListener("focus", h, !0), i.el.addEventListener("pointerdown", R, !0), i.el.addEventListener("pointerup", T, !0);
164
+ };
165
+ function $() {
166
+ r && r.remove();
167
+ let {
168
+ nextEl: e,
169
+ prevEl: t
170
+ } = i.navigation ? i.navigation : {};
171
+ e = n(e), t = n(t), e && e.forEach((s) => s.removeEventListener("keydown", d)), t && t.forEach((s) => s.removeEventListener("keydown", d)), C() && n(i.pagination.el).forEach((l) => {
172
+ l.removeEventListener("keydown", d);
173
+ }), F().removeEventListener("visibilitychange", D), i.el && typeof i.el != "string" && (i.el.removeEventListener("focus", h, !0), i.el.removeEventListener("pointerdown", R, !0), i.el.removeEventListener("pointerup", T, !0));
174
+ }
175
+ o("beforeInit", () => {
176
+ r = K("span", i.params.a11y.notificationClass), r.setAttribute("aria-live", "assertive"), r.setAttribute("aria-atomic", "true");
177
+ }), o("afterInit", () => {
178
+ i.params.a11y.enabled && V();
179
+ }), o("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
180
+ i.params.a11y.enabled && I();
181
+ }), o("fromEdge toEdge afterInit lock unlock", () => {
182
+ i.params.a11y.enabled && G();
183
+ }), o("paginationUpdate", () => {
184
+ i.params.a11y.enabled && U();
185
+ }), o("destroy", () => {
186
+ i.params.a11y.enabled && $();
187
+ });
8
188
  }
9
189
  export {
10
- i as useDebouncedValue
190
+ Y as default
11
191
  };
12
192
  //# sourceMappingURL=index.es436.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es436.js","sources":["../src/utils/useDebouncedValue.ts"],"sourcesContent":["import { useEffect, useState } from \"react\";\r\n\r\nexport function useDebouncedValue<T>(value: T, delay: number = 300): T {\r\n const [debouncedValue, setDebouncedValue] = useState(value);\r\n\r\n useEffect(() => {\r\n const timer = setTimeout(() => setDebouncedValue(value), delay);\r\n return () => clearTimeout(timer);\r\n }, [value, delay]);\r\n\r\n return debouncedValue;\r\n}\r\n"],"names":["useDebouncedValue","value","delay","debouncedValue","setDebouncedValue","useState","useEffect","timer"],"mappings":";AAEgB,SAAAA,EAAqBC,GAAUC,IAAgB,KAAQ;AACrE,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAASJ,CAAK;AAE1D,SAAAK,EAAU,MAAM;AACd,UAAMC,IAAQ,WAAW,MAAMH,EAAkBH,CAAK,GAAGC,CAAK;AACvD,WAAA,MAAM,aAAaK,CAAK;AAAA,EAAA,GAC9B,CAACN,GAAOC,CAAK,CAAC,GAEVC;AACT;"}
1
+ {"version":3,"file":"index.es436.js","sources":["../node_modules/swiper/modules/a11y.mjs"],"sourcesContent":["import { g as getDocument } from '../shared/ssr-window.esm.mjs';\nimport { c as classesToSelector } from '../shared/classes-to-selector.mjs';\nimport { c as createElement, h as elementIndex, m as makeElementsArray } from '../shared/utils.mjs';\n\nfunction A11y(_ref) {\n let {\n swiper,\n extendParams,\n on\n } = _ref;\n extendParams({\n a11y: {\n enabled: true,\n notificationClass: 'swiper-notification',\n prevSlideMessage: 'Previous slide',\n nextSlideMessage: 'Next slide',\n firstSlideMessage: 'This is the first slide',\n lastSlideMessage: 'This is the last slide',\n paginationBulletMessage: 'Go to slide {{index}}',\n slideLabelMessage: '{{index}} / {{slidesLength}}',\n containerMessage: null,\n containerRoleDescriptionMessage: null,\n containerRole: null,\n itemRoleDescriptionMessage: null,\n slideRole: 'group',\n id: null,\n scrollOnFocus: true\n }\n });\n swiper.a11y = {\n clicked: false\n };\n let liveRegion = null;\n let preventFocusHandler;\n let focusTargetSlideEl;\n let visibilityChangedTimestamp = new Date().getTime();\n function notify(message) {\n const notification = liveRegion;\n if (notification.length === 0) return;\n notification.innerHTML = '';\n notification.innerHTML = message;\n }\n function getRandomNumber(size) {\n if (size === void 0) {\n size = 16;\n }\n const randomChar = () => Math.round(16 * Math.random()).toString(16);\n return 'x'.repeat(size).replace(/x/g, randomChar);\n }\n function makeElFocusable(el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('tabIndex', '0');\n });\n }\n function makeElNotFocusable(el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('tabIndex', '-1');\n });\n }\n function addElRole(el, role) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('role', role);\n });\n }\n function addElRoleDescription(el, description) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-roledescription', description);\n });\n }\n function addElControls(el, controls) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-controls', controls);\n });\n }\n function addElLabel(el, label) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-label', label);\n });\n }\n function addElId(el, id) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('id', id);\n });\n }\n function addElLive(el, live) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-live', live);\n });\n }\n function disableEl(el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-disabled', true);\n });\n }\n function enableEl(el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.setAttribute('aria-disabled', false);\n });\n }\n function onEnterOrSpaceKey(e) {\n if (e.keyCode !== 13 && e.keyCode !== 32) return;\n const params = swiper.params.a11y;\n const targetEl = e.target;\n if (swiper.pagination && swiper.pagination.el && (targetEl === swiper.pagination.el || swiper.pagination.el.contains(e.target))) {\n if (!e.target.matches(classesToSelector(swiper.params.pagination.bulletClass))) return;\n }\n if (swiper.navigation && swiper.navigation.prevEl && swiper.navigation.nextEl) {\n const prevEls = makeElementsArray(swiper.navigation.prevEl);\n const nextEls = makeElementsArray(swiper.navigation.nextEl);\n if (nextEls.includes(targetEl)) {\n if (!(swiper.isEnd && !swiper.params.loop)) {\n swiper.slideNext();\n }\n if (swiper.isEnd) {\n notify(params.lastSlideMessage);\n } else {\n notify(params.nextSlideMessage);\n }\n }\n if (prevEls.includes(targetEl)) {\n if (!(swiper.isBeginning && !swiper.params.loop)) {\n swiper.slidePrev();\n }\n if (swiper.isBeginning) {\n notify(params.firstSlideMessage);\n } else {\n notify(params.prevSlideMessage);\n }\n }\n }\n if (swiper.pagination && targetEl.matches(classesToSelector(swiper.params.pagination.bulletClass))) {\n targetEl.click();\n }\n }\n function updateNavigation() {\n if (swiper.params.loop || swiper.params.rewind || !swiper.navigation) return;\n const {\n nextEl,\n prevEl\n } = swiper.navigation;\n if (prevEl) {\n if (swiper.isBeginning) {\n disableEl(prevEl);\n makeElNotFocusable(prevEl);\n } else {\n enableEl(prevEl);\n makeElFocusable(prevEl);\n }\n }\n if (nextEl) {\n if (swiper.isEnd) {\n disableEl(nextEl);\n makeElNotFocusable(nextEl);\n } else {\n enableEl(nextEl);\n makeElFocusable(nextEl);\n }\n }\n }\n function hasPagination() {\n return swiper.pagination && swiper.pagination.bullets && swiper.pagination.bullets.length;\n }\n function hasClickablePagination() {\n return hasPagination() && swiper.params.pagination.clickable;\n }\n function updatePagination() {\n const params = swiper.params.a11y;\n if (!hasPagination()) return;\n swiper.pagination.bullets.forEach(bulletEl => {\n if (swiper.params.pagination.clickable) {\n makeElFocusable(bulletEl);\n if (!swiper.params.pagination.renderBullet) {\n addElRole(bulletEl, 'button');\n addElLabel(bulletEl, params.paginationBulletMessage.replace(/\\{\\{index\\}\\}/, elementIndex(bulletEl) + 1));\n }\n }\n if (bulletEl.matches(classesToSelector(swiper.params.pagination.bulletActiveClass))) {\n bulletEl.setAttribute('aria-current', 'true');\n } else {\n bulletEl.removeAttribute('aria-current');\n }\n });\n }\n const initNavEl = (el, wrapperId, message) => {\n makeElFocusable(el);\n if (el.tagName !== 'BUTTON') {\n addElRole(el, 'button');\n el.addEventListener('keydown', onEnterOrSpaceKey);\n }\n addElLabel(el, message);\n addElControls(el, wrapperId);\n };\n const handlePointerDown = e => {\n if (focusTargetSlideEl && focusTargetSlideEl !== e.target && !focusTargetSlideEl.contains(e.target)) {\n preventFocusHandler = true;\n }\n swiper.a11y.clicked = true;\n };\n const handlePointerUp = () => {\n preventFocusHandler = false;\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n if (!swiper.destroyed) {\n swiper.a11y.clicked = false;\n }\n });\n });\n };\n const onVisibilityChange = e => {\n visibilityChangedTimestamp = new Date().getTime();\n };\n const handleFocus = e => {\n if (swiper.a11y.clicked || !swiper.params.a11y.scrollOnFocus) return;\n if (new Date().getTime() - visibilityChangedTimestamp < 100) return;\n const slideEl = e.target.closest(`.${swiper.params.slideClass}, swiper-slide`);\n if (!slideEl || !swiper.slides.includes(slideEl)) return;\n focusTargetSlideEl = slideEl;\n const isActive = swiper.slides.indexOf(slideEl) === swiper.activeIndex;\n const isVisible = swiper.params.watchSlidesProgress && swiper.visibleSlides && swiper.visibleSlides.includes(slideEl);\n if (isActive || isVisible) return;\n if (e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents) return;\n if (swiper.isHorizontal()) {\n swiper.el.scrollLeft = 0;\n } else {\n swiper.el.scrollTop = 0;\n }\n requestAnimationFrame(() => {\n if (preventFocusHandler) return;\n if (swiper.params.loop) {\n swiper.slideToLoop(parseInt(slideEl.getAttribute('data-swiper-slide-index')), 0);\n } else {\n swiper.slideTo(swiper.slides.indexOf(slideEl), 0);\n }\n preventFocusHandler = false;\n });\n };\n const initSlides = () => {\n const params = swiper.params.a11y;\n if (params.itemRoleDescriptionMessage) {\n addElRoleDescription(swiper.slides, params.itemRoleDescriptionMessage);\n }\n if (params.slideRole) {\n addElRole(swiper.slides, params.slideRole);\n }\n const slidesLength = swiper.slides.length;\n if (params.slideLabelMessage) {\n swiper.slides.forEach((slideEl, index) => {\n const slideIndex = swiper.params.loop ? parseInt(slideEl.getAttribute('data-swiper-slide-index'), 10) : index;\n const ariaLabelMessage = params.slideLabelMessage.replace(/\\{\\{index\\}\\}/, slideIndex + 1).replace(/\\{\\{slidesLength\\}\\}/, slidesLength);\n addElLabel(slideEl, ariaLabelMessage);\n });\n }\n };\n const init = () => {\n const params = swiper.params.a11y;\n swiper.el.append(liveRegion);\n\n // Container\n const containerEl = swiper.el;\n if (params.containerRoleDescriptionMessage) {\n addElRoleDescription(containerEl, params.containerRoleDescriptionMessage);\n }\n if (params.containerMessage) {\n addElLabel(containerEl, params.containerMessage);\n }\n if (params.containerRole) {\n addElRole(containerEl, params.containerRole);\n }\n\n // Wrapper\n const wrapperEl = swiper.wrapperEl;\n const wrapperId = params.id || wrapperEl.getAttribute('id') || `swiper-wrapper-${getRandomNumber(16)}`;\n const live = swiper.params.autoplay && swiper.params.autoplay.enabled ? 'off' : 'polite';\n addElId(wrapperEl, wrapperId);\n addElLive(wrapperEl, live);\n\n // Slide\n initSlides();\n\n // Navigation\n let {\n nextEl,\n prevEl\n } = swiper.navigation ? swiper.navigation : {};\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n if (nextEl) {\n nextEl.forEach(el => initNavEl(el, wrapperId, params.nextSlideMessage));\n }\n if (prevEl) {\n prevEl.forEach(el => initNavEl(el, wrapperId, params.prevSlideMessage));\n }\n\n // Pagination\n if (hasClickablePagination()) {\n const paginationEl = makeElementsArray(swiper.pagination.el);\n paginationEl.forEach(el => {\n el.addEventListener('keydown', onEnterOrSpaceKey);\n });\n }\n\n // Tab focus\n const document = getDocument();\n document.addEventListener('visibilitychange', onVisibilityChange);\n swiper.el.addEventListener('focus', handleFocus, true);\n swiper.el.addEventListener('focus', handleFocus, true);\n swiper.el.addEventListener('pointerdown', handlePointerDown, true);\n swiper.el.addEventListener('pointerup', handlePointerUp, true);\n };\n function destroy() {\n if (liveRegion) liveRegion.remove();\n let {\n nextEl,\n prevEl\n } = swiper.navigation ? swiper.navigation : {};\n nextEl = makeElementsArray(nextEl);\n prevEl = makeElementsArray(prevEl);\n if (nextEl) {\n nextEl.forEach(el => el.removeEventListener('keydown', onEnterOrSpaceKey));\n }\n if (prevEl) {\n prevEl.forEach(el => el.removeEventListener('keydown', onEnterOrSpaceKey));\n }\n\n // Pagination\n if (hasClickablePagination()) {\n const paginationEl = makeElementsArray(swiper.pagination.el);\n paginationEl.forEach(el => {\n el.removeEventListener('keydown', onEnterOrSpaceKey);\n });\n }\n const document = getDocument();\n document.removeEventListener('visibilitychange', onVisibilityChange);\n // Tab focus\n if (swiper.el && typeof swiper.el !== 'string') {\n swiper.el.removeEventListener('focus', handleFocus, true);\n swiper.el.removeEventListener('pointerdown', handlePointerDown, true);\n swiper.el.removeEventListener('pointerup', handlePointerUp, true);\n }\n }\n on('beforeInit', () => {\n liveRegion = createElement('span', swiper.params.a11y.notificationClass);\n liveRegion.setAttribute('aria-live', 'assertive');\n liveRegion.setAttribute('aria-atomic', 'true');\n });\n on('afterInit', () => {\n if (!swiper.params.a11y.enabled) return;\n init();\n });\n on('slidesLengthChange snapGridLengthChange slidesGridLengthChange', () => {\n if (!swiper.params.a11y.enabled) return;\n initSlides();\n });\n on('fromEdge toEdge afterInit lock unlock', () => {\n if (!swiper.params.a11y.enabled) return;\n updateNavigation();\n });\n on('paginationUpdate', () => {\n if (!swiper.params.a11y.enabled) return;\n updatePagination();\n });\n on('destroy', () => {\n if (!swiper.params.a11y.enabled) return;\n destroy();\n });\n}\n\nexport { A11y as default };\n"],"names":["A11y","_ref","swiper","extendParams","on","liveRegion","preventFocusHandler","focusTargetSlideEl","visibilityChangedTimestamp","notify","message","notification","getRandomNumber","size","randomChar","makeElFocusable","el","makeElementsArray","subEl","makeElNotFocusable","addElRole","role","addElRoleDescription","description","addElControls","controls","addElLabel","label","addElId","id","addElLive","live","disableEl","enableEl","onEnterOrSpaceKey","params","targetEl","classesToSelector","prevEls","updateNavigation","nextEl","prevEl","hasPagination","hasClickablePagination","updatePagination","bulletEl","elementIndex","initNavEl","wrapperId","handlePointerDown","handlePointerUp","onVisibilityChange","handleFocus","slideEl","isActive","isVisible","initSlides","slidesLength","index","slideIndex","ariaLabelMessage","init","containerEl","wrapperEl","getDocument","destroy","createElement"],"mappings":";;;AAIA,SAASA,EAAKC,GAAM;AAClB,MAAI;AAAA,IACF,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,IAAAC;AAAA,EACJ,IAAMH;AACJ,EAAAE,EAAa;AAAA,IACX,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,mBAAmB;AAAA,MACnB,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,MAClB,mBAAmB;AAAA,MACnB,kBAAkB;AAAA,MAClB,yBAAyB;AAAA,MACzB,mBAAmB;AAAA,MACnB,kBAAkB;AAAA,MAClB,iCAAiC;AAAA,MACjC,eAAe;AAAA,MACf,4BAA4B;AAAA,MAC5B,WAAW;AAAA,MACX,IAAI;AAAA,MACJ,eAAe;AAAA,IACrB;AAAA,EACA,CAAG,GACDD,EAAO,OAAO;AAAA,IACZ,SAAS;AAAA,EACV;AACD,MAAIG,IAAa,MACbC,GACAC,GACAC,KAA6B,oBAAI,KAAM,GAAC,QAAS;AACrD,WAASC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 +47,4 @@ const s = (t) => /* @__PURE__ */ i.jsxs(
47
47
  export {
48
48
  s as Pause
49
49
  };
50
- //# sourceMappingURL=index.es439.js.map
50
+ //# sourceMappingURL=index.es438.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es439.js","sources":["../src/icons/Pause/index.tsx"],"sourcesContent":["import { IconProps } from \"@/types/icons\";\r\n\r\nexport const Pause = (props: IconProps) => (\r\n <svg\r\n width=\"35\"\r\n height=\"34\"\r\n viewBox=\"0 0 35 34\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n {...props}\r\n >\r\n <g clipPath=\"url(#clip0)\">\r\n <path\r\n d=\"M29.6874 4.97921C26.4766 1.76827 22.2075 0 17.6666 0C13.1258 0 8.85664 1.76827 5.64583 4.97921C2.43496 8.19008 0.666626 12.4591 0.666626 17C0.666626 21.5409 2.43489 25.81 5.64583 29.0208C8.85671 32.2317 13.1258 34 17.6666 34C22.2075 34 26.4766 32.2317 29.6874 29.0208C32.8983 25.8099 34.6666 21.5409 34.6666 17C34.6666 12.4591 32.8984 8.19002 29.6874 4.97921ZM17.6666 31.9184C9.44062 31.9184 2.74826 25.226 2.74826 17C2.74826 8.77399 9.44062 2.08164 17.6666 2.08164C25.8926 2.08164 32.585 8.77399 32.585 17C32.585 25.226 25.8926 31.9184 17.6666 31.9184Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n d=\"M10.381 9.02039V24.9796H16.6259V9.02039H10.381ZM14.5443 22.8979H12.4626V11.102H14.5443V22.8979Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n d=\"M19.0833 9.02039V24.9796H25.3282V9.02039H19.0833ZM23.2465 22.8979H21.1649V11.102H23.2465V22.8979Z\"\r\n fill=\"white\"\r\n />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0\">\r\n <rect\r\n width=\"34\"\r\n height=\"34\"\r\n fill=\"white\"\r\n transform=\"translate(0.666626)\"\r\n />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n);\r\n"],"names":["Pause","props","jsxs","jsx"],"mappings":";AAEa,MAAAA,IAAQ,CAACC,MACpBC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,OAAM;AAAA,IACL,GAAGD;AAAA,IAEJ,UAAA;AAAA,MAACC,gBAAAA,EAAAA,KAAA,KAAA,EAAE,UAAS,eACV,UAAA;AAAA,QAAAC,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,QACAA,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,QACAA,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACP,GACF;AAAA,MACCA,gBAAAA,MAAA,QAAA,EACC,UAACA,gBAAAA,EAAA,IAAA,YAAA,EAAS,IAAG,SACX,UAAAA,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,QAAO;AAAA,UACP,MAAK;AAAA,UACL,WAAU;AAAA,QAAA;AAAA,SAEd,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AACF;"}
1
+ {"version":3,"file":"index.es438.js","sources":["../src/icons/Pause/index.tsx"],"sourcesContent":["import { IconProps } from \"@/types/icons\";\r\n\r\nexport const Pause = (props: IconProps) => (\r\n <svg\r\n width=\"35\"\r\n height=\"34\"\r\n viewBox=\"0 0 35 34\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n {...props}\r\n >\r\n <g clipPath=\"url(#clip0)\">\r\n <path\r\n d=\"M29.6874 4.97921C26.4766 1.76827 22.2075 0 17.6666 0C13.1258 0 8.85664 1.76827 5.64583 4.97921C2.43496 8.19008 0.666626 12.4591 0.666626 17C0.666626 21.5409 2.43489 25.81 5.64583 29.0208C8.85671 32.2317 13.1258 34 17.6666 34C22.2075 34 26.4766 32.2317 29.6874 29.0208C32.8983 25.8099 34.6666 21.5409 34.6666 17C34.6666 12.4591 32.8984 8.19002 29.6874 4.97921ZM17.6666 31.9184C9.44062 31.9184 2.74826 25.226 2.74826 17C2.74826 8.77399 9.44062 2.08164 17.6666 2.08164C25.8926 2.08164 32.585 8.77399 32.585 17C32.585 25.226 25.8926 31.9184 17.6666 31.9184Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n d=\"M10.381 9.02039V24.9796H16.6259V9.02039H10.381ZM14.5443 22.8979H12.4626V11.102H14.5443V22.8979Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n d=\"M19.0833 9.02039V24.9796H25.3282V9.02039H19.0833ZM23.2465 22.8979H21.1649V11.102H23.2465V22.8979Z\"\r\n fill=\"white\"\r\n />\r\n </g>\r\n <defs>\r\n <clipPath id=\"clip0\">\r\n <rect\r\n width=\"34\"\r\n height=\"34\"\r\n fill=\"white\"\r\n transform=\"translate(0.666626)\"\r\n />\r\n </clipPath>\r\n </defs>\r\n </svg>\r\n);\r\n"],"names":["Pause","props","jsxs","jsx"],"mappings":";AAEa,MAAAA,IAAQ,CAACC,MACpBC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,OAAM;AAAA,IACL,GAAGD;AAAA,IAEJ,UAAA;AAAA,MAACC,gBAAAA,EAAAA,KAAA,KAAA,EAAE,UAAS,eACV,UAAA;AAAA,QAAAC,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,QACAA,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QACP;AAAA,QACAA,gBAAAA,EAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACP,GACF;AAAA,MACCA,gBAAAA,MAAA,QAAA,EACC,UAACA,gBAAAA,EAAA,IAAA,YAAA,EAAS,IAAG,SACX,UAAAA,gBAAAA,EAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,QAAO;AAAA,UACP,MAAK;AAAA,UACL,WAAU;AAAA,QAAA;AAAA,SAEd,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AACF;"}
@@ -0,0 +1,48 @@
1
+ import { useId as v, createContext as w, useMemo as m, Children as _, isValidElement as E, useState as j, useCallback as C, useEffect as f, useLayoutEffect as b } from "react";
2
+ import { j as u } from "./index.es236.js";
3
+ const y = typeof window < "u", g = y ? b : f, M = (e = !0) => {
4
+ let [n, r] = j(y ? window.innerWidth : 0), t = C(() => {
5
+ r(window.innerWidth);
6
+ }, []);
7
+ return f(() => (e && window.addEventListener("resize", t), () => {
8
+ window.removeEventListener("resize", t);
9
+ }), [e, t]), g(() => {
10
+ t();
11
+ }, [t]), n;
12
+ };
13
+ var $ = M;
14
+ const k = [640, 786, 1024, 1280, 1536], A = (e) => e.reduce((n, r, t) => typeof r == "number" ? { ...n, [k[t]]: r } : n, {}), L = (e) => Array.isArray(e) ? A(e) : e, z = (e, n) => {
15
+ let r = Object.keys(L(e)).map(Number).sort((o, s) => o - s), t = null;
16
+ for (let o of r) n >= o && (t = o);
17
+ return t ?? r[0];
18
+ };
19
+ var O = z;
20
+ const c = 3, S = (e) => {
21
+ let n = typeof e == "object", r = $(n);
22
+ return m(() => {
23
+ if (!n) return e ?? c;
24
+ let o = O(e, r);
25
+ return e[o] ?? c;
26
+ }, [n, r, e]);
27
+ };
28
+ var W = S;
29
+ const D = (e) => Array.from({ length: e }, () => []), I = (e, n) => {
30
+ let r = W(n);
31
+ return m(() => {
32
+ let o = D(r);
33
+ return _.forEach(e, (s, a) => {
34
+ E(s) && o[a % r].push(s);
35
+ }), o;
36
+ }, [r, e]);
37
+ };
38
+ var N = I;
39
+ const P = w({ column: 0, position: 0 }), R = (e) => {
40
+ let { gap: n, as: r = "div", columnProps: t, columns: o, ref: s, ...a } = e, l = v(), p = N(e.children, o);
41
+ return u.jsx(r, { ...a, "data-masonry-id": `Masonry-${l}`, style: { display: "flex", gap: n, ...a.style }, ref: s, children: p.map((h, i) => u.jsx(r, { "data-masonry-column": i + 1, ...t, style: { display: "flex", flex: 1, flexDirection: "column", gap: n, ...t == null ? void 0 : t.style }, children: h.map((x, d) => u.jsx(P, { value: { column: i, position: d }, children: x }, `Masonry__Column_Child_${l}_${d}`)) }, `Masonry__Column_${l}_${i}`)) });
42
+ };
43
+ var q = R;
44
+ export {
45
+ q as default,
46
+ N as useMasonry
47
+ };
48
+ //# sourceMappingURL=index.es440.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es440.js","sources":["../node_modules/react-layout-masonry/dist/index.js"],"sourcesContent":["import{Children as e,createContext as t,isValidElement as n,useCallback as r,useContext as i,useEffect as a,useId as o,useLayoutEffect as s,useMemo as c,useState as l}from\"react\";import{jsx as u}from\"react/jsx-runtime\";const d=typeof window<`u`,f=d?s:a,p=(e=!0)=>{let[t,n]=l(d?window.innerWidth:0),i=r(()=>{n(window.innerWidth)},[]);return a(()=>(e&&window.addEventListener(`resize`,i),()=>{window.removeEventListener(`resize`,i)}),[e,i]),f(()=>{i()},[i]),t};var m=p;const h=[640,786,1024,1280,1536],g=e=>e.reduce((e,t,n)=>typeof t==`number`?{...e,[h[n]]:t}:e,{}),_=e=>Array.isArray(e)?g(e):e,v=(e,t)=>{let n=Object.keys(_(e)).map(Number).sort((e,t)=>e-t),r=null;for(let e of n)t>=e&&(r=e);return r??n[0]};var y=v;const b=3,x=e=>{let t=typeof e==`object`,n=m(t),r=c(()=>{if(!t)return e??b;let r=y(e,n);return e[r]??b},[t,n,e]);return r};var S=x;const C=e=>Array.from({length:e},()=>[]),w=(t,r)=>{let i=S(r),a=c(()=>{let r=C(i);return e.forEach(t,(e,t)=>{n(e)&&r[t%i].push(e)}),r},[i,t]);return a};var T=w;const E=t({column:0,position:0}),D=()=>i(E),O=e=>{let{gap:t,as:n=`div`,columnProps:r,columns:i,ref:a,...s}=e,c=o(),l=T(e.children,i);return u(n,{...s,\"data-masonry-id\":`Masonry-${c}`,style:{display:`flex`,gap:t,...s.style},ref:a,children:l.map((e,i)=>u(n,{\"data-masonry-column\":i+1,...r,style:{display:`flex`,flex:1,flexDirection:`column`,gap:t,...r?.style},children:e.map((e,t)=>u(E,{value:{column:i,position:t},children:e},`Masonry__Column_Child_${c}_${t}`))},`Masonry__Column_${c}_${i}`))})};var k=O;export{k as default,T as useMasonry,D as useMasonryItem};\n//# sourceMappingURL=index.js.map"],"names":["d","f","s","a","p","t","n","l","i","r","m","h","g","e","_","v","y","b","x","c","S","C","w","T","E","O","o","u","k"],"mappings":";;AAA2N,MAAMA,IAAE,OAAO,SAAO,KAAIC,IAAED,IAAEE,IAAEC,GAAEC,IAAE,CAAC,IAAE,OAAK;AAAC,MAAG,CAACC,GAAEC,CAAC,IAAEC,EAAEP,IAAE,OAAO,aAAW,CAAC,GAAEQ,IAAEC,EAAE,MAAI;AAAC,IAAAH,EAAE,OAAO,UAAU;AAAA,EAAC,GAAE,CAAA,CAAE;AAAE,SAAOH,EAAE,OAAK,KAAG,OAAO,iBAAiB,UAASK,CAAC,GAAE,MAAI;AAAC,WAAO,oBAAoB,UAASA,CAAC;AAAA,EAAC,IAAG,CAAC,GAAEA,CAAC,CAAC,GAAEP,EAAE,MAAI;AAAC,IAAAO,EAAC;AAAA,EAAE,GAAE,CAACA,CAAC,CAAC,GAAEH;AAAC;AAAE,IAAIK,IAAEN;AAAE,MAAMO,IAAE,CAAC,KAAI,KAAI,MA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AAAU;AAAK,IAACkB,IAAED;AAAO,MAACE,IAAEnB,EAAE,EAAC,QAAO,GAAE,UAAS,EAAC,CAAC,GAAaoB,IAAE,OAAG;AAAC,MAAG,EAAC,KAAIpB,GAAE,IAAGC,IAAE,OAAM,aAAYG,GAAE,SAAQD,GAAE,KAAIL,GAAE,GAAGD,EAAC,IAAE,GAAEiB,IAAEO,EAAG,GAACnB,IAAEgB,EAAE,EAAE,UAASf,CAAC;AAAE,SAAOmB,EAAAA,IAAErB,GAAE,EAAC,GAAGJ,GAAE,mBAAkB,WAAWiB,CAAC,IAAG,OAAM,EAAC,SAAQ,QAAO,KAAId,GAAE,GAAGH,EAAE,MAAK,GAAE,KAAIC,GAAE,UAASI,EAAE,IAAI,CAACM,GAAE,MAAIc,MAAErB,GAAE,EAAC,uBAAsB,IAAE,GAAE,GAAGG,GAAE,OAAM,EAAC,SAAQ,QAAO,MAAK,GAAE,eAAc,UAAS,KAAIJ,GAAE,GAAGI,KAAA,gBAAAA,EAAG,MAAK,GAAE,UAASI,EAAE,IAAI,CAACA,GAAER,MAAIsB,EAAAA,IAAEH,GAAE,EAAC,OAAM,EAAC,QAAO,GAAE,UAASnB,EAAC,GAAE,UAASQ,EAAC,GAAE,yBAAyBM,CAAC,IAAId,CAAC,EAAE,CAAC,EAAC,GAAE,mBAAmBc,CAAC,IAAI,CAAC,EAAE,CAAC,EAAC,CAAC;AAAC;AAAK,IAACS,IAAEH;","x_google_ignoreList":[0]}
@@ -1,48 +1,139 @@
1
- import { useId as v, createContext as w, useMemo as m, Children as _, isValidElement as E, useState as j, useCallback as C, useEffect as f, useLayoutEffect as b } from "react";
2
- import { j as u } from "./index.es236.js";
3
- const y = typeof window < "u", g = y ? b : f, M = (e = !0) => {
4
- let [n, r] = j(y ? window.innerWidth : 0), t = C(() => {
5
- r(window.innerWidth);
6
- }, []);
7
- return f(() => (e && window.addEventListener("resize", t), () => {
8
- window.removeEventListener("resize", t);
9
- }), [e, t]), g(() => {
10
- t();
11
- }, [t]), n;
12
- };
13
- var $ = M;
14
- const k = [640, 786, 1024, 1280, 1536], A = (e) => e.reduce((n, r, t) => typeof r == "number" ? { ...n, [k[t]]: r } : n, {}), L = (e) => Array.isArray(e) ? A(e) : e, z = (e, n) => {
15
- let r = Object.keys(L(e)).map(Number).sort((o, s) => o - s), t = null;
16
- for (let o of r) n >= o && (t = o);
17
- return t ?? r[0];
18
- };
19
- var O = z;
20
- const c = 3, S = (e) => {
21
- let n = typeof e == "object", r = $(n);
22
- return m(() => {
23
- if (!n) return e ?? c;
24
- let o = O(e, r);
25
- return e[o] ?? c;
26
- }, [n, r, e]);
27
- };
28
- var W = S;
29
- const D = (e) => Array.from({ length: e }, () => []), I = (e, n) => {
30
- let r = W(n);
31
- return m(() => {
32
- let o = D(r);
33
- return _.forEach(e, (s, a) => {
34
- E(s) && o[a % r].push(s);
35
- }), o;
36
- }, [r, e]);
37
- };
38
- var N = I;
39
- const P = w({ column: 0, position: 0 }), R = (e) => {
40
- let { gap: n, as: r = "div", columnProps: t, columns: o, ref: s, ...a } = e, l = v(), p = N(e.children, o);
41
- return u.jsx(r, { ...a, "data-masonry-id": `Masonry-${l}`, style: { display: "flex", gap: n, ...a.style }, ref: s, children: p.map((h, i) => u.jsx(r, { "data-masonry-column": i + 1, ...t, style: { display: "flex", flex: 1, flexDirection: "column", gap: n, ...t == null ? void 0 : t.style }, children: h.map((x, d) => u.jsx(P, { value: { column: i, position: d }, children: x }, `Masonry__Column_Child_${l}_${d}`)) }, `Masonry__Column_${l}_${i}`)) });
42
- };
43
- var q = R;
1
+ import "./index.es3.js";
2
+ import "./index.es5.js";
3
+ const y = [
4
+ "January",
5
+ "February",
6
+ "March",
7
+ "April",
8
+ "May",
9
+ "June",
10
+ "July",
11
+ "August",
12
+ "September",
13
+ "October",
14
+ "November",
15
+ "December"
16
+ ], h = [
17
+ "Jan",
18
+ "Feb",
19
+ "Mar",
20
+ "Apr",
21
+ "May",
22
+ "Jun",
23
+ "Jul",
24
+ "Aug",
25
+ "Sep",
26
+ "Oct",
27
+ "Nov",
28
+ "Dec"
29
+ ], l = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
30
+ function w(e) {
31
+ switch (e) {
32
+ case "narrow":
33
+ return [...l];
34
+ case "short":
35
+ return [...h];
36
+ case "long":
37
+ return [...y];
38
+ case "numeric":
39
+ return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
40
+ case "2-digit":
41
+ return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"];
42
+ default:
43
+ return null;
44
+ }
45
+ }
46
+ const f = [
47
+ "Monday",
48
+ "Tuesday",
49
+ "Wednesday",
50
+ "Thursday",
51
+ "Friday",
52
+ "Saturday",
53
+ "Sunday"
54
+ ], M = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], S = ["M", "T", "W", "T", "F", "S", "S"];
55
+ function g(e) {
56
+ switch (e) {
57
+ case "narrow":
58
+ return [...S];
59
+ case "short":
60
+ return [...M];
61
+ case "long":
62
+ return [...f];
63
+ case "numeric":
64
+ return ["1", "2", "3", "4", "5", "6", "7"];
65
+ default:
66
+ return null;
67
+ }
68
+ }
69
+ const T = ["AM", "PM"], A = ["Before Christ", "Anno Domini"], D = ["BC", "AD"], F = ["B", "A"];
70
+ function b(e) {
71
+ switch (e) {
72
+ case "narrow":
73
+ return [...F];
74
+ case "short":
75
+ return [...D];
76
+ case "long":
77
+ return [...A];
78
+ default:
79
+ return null;
80
+ }
81
+ }
82
+ function p(e) {
83
+ return T[e.hour < 12 ? 0 : 1];
84
+ }
85
+ function $(e, r) {
86
+ return g(r)[e.weekday - 1];
87
+ }
88
+ function N(e, r) {
89
+ return w(r)[e.month - 1];
90
+ }
91
+ function O(e, r) {
92
+ return b(r)[e.year < 0 ? 0 : 1];
93
+ }
94
+ function q(e, r, c = "always", i = !1) {
95
+ const t = {
96
+ years: ["year", "yr."],
97
+ quarters: ["quarter", "qtr."],
98
+ months: ["month", "mo."],
99
+ weeks: ["week", "wk."],
100
+ days: ["day", "day", "days"],
101
+ hours: ["hour", "hr."],
102
+ minutes: ["minute", "min."],
103
+ seconds: ["second", "sec."]
104
+ }, m = ["hours", "minutes", "seconds"].indexOf(e) === -1;
105
+ if (c === "auto" && m) {
106
+ const a = e === "days";
107
+ switch (r) {
108
+ case 1:
109
+ return a ? "tomorrow" : `next ${t[e][0]}`;
110
+ case -1:
111
+ return a ? "yesterday" : `last ${t[e][0]}`;
112
+ case 0:
113
+ return a ? "today" : `this ${t[e][0]}`;
114
+ }
115
+ }
116
+ const d = Object.is(r, -0) || r < 0, n = Math.abs(r), o = n === 1, s = t[e], u = i ? o ? s[1] : s[2] || s[1] : o ? t[e][0] : e;
117
+ return d ? `${n} ${u} ago` : `in ${n} ${u}`;
118
+ }
44
119
  export {
45
- q as default,
46
- N as useMasonry
120
+ O as eraForDateTime,
121
+ b as eras,
122
+ A as erasLong,
123
+ F as erasNarrow,
124
+ D as erasShort,
125
+ q as formatRelativeTime,
126
+ p as meridiemForDateTime,
127
+ T as meridiems,
128
+ N as monthForDateTime,
129
+ w as months,
130
+ y as monthsLong,
131
+ l as monthsNarrow,
132
+ h as monthsShort,
133
+ $ as weekdayForDateTime,
134
+ g as weekdays,
135
+ f as weekdaysLong,
136
+ S as weekdaysNarrow,
137
+ M as weekdaysShort
47
138
  };
48
139
  //# sourceMappingURL=index.es441.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es441.js","sources":["../node_modules/react-layout-masonry/dist/index.js"],"sourcesContent":["import{Children as e,createContext as t,isValidElement as n,useCallback as r,useContext as i,useEffect as a,useId as o,useLayoutEffect as s,useMemo as c,useState as l}from\"react\";import{jsx as u}from\"react/jsx-runtime\";const d=typeof window<`u`,f=d?s:a,p=(e=!0)=>{let[t,n]=l(d?window.innerWidth:0),i=r(()=>{n(window.innerWidth)},[]);return a(()=>(e&&window.addEventListener(`resize`,i),()=>{window.removeEventListener(`resize`,i)}),[e,i]),f(()=>{i()},[i]),t};var m=p;const h=[640,786,1024,1280,1536],g=e=>e.reduce((e,t,n)=>typeof t==`number`?{...e,[h[n]]:t}:e,{}),_=e=>Array.isArray(e)?g(e):e,v=(e,t)=>{let n=Object.keys(_(e)).map(Number).sort((e,t)=>e-t),r=null;for(let e of n)t>=e&&(r=e);return r??n[0]};var y=v;const b=3,x=e=>{let t=typeof e==`object`,n=m(t),r=c(()=>{if(!t)return e??b;let r=y(e,n);return e[r]??b},[t,n,e]);return r};var S=x;const C=e=>Array.from({length:e},()=>[]),w=(t,r)=>{let i=S(r),a=c(()=>{let r=C(i);return e.forEach(t,(e,t)=>{n(e)&&r[t%i].push(e)}),r},[i,t]);return a};var T=w;const E=t({column:0,position:0}),D=()=>i(E),O=e=>{let{gap:t,as:n=`div`,columnProps:r,columns:i,ref:a,...s}=e,c=o(),l=T(e.children,i);return u(n,{...s,\"data-masonry-id\":`Masonry-${c}`,style:{display:`flex`,gap:t,...s.style},ref:a,children:l.map((e,i)=>u(n,{\"data-masonry-column\":i+1,...r,style:{display:`flex`,flex:1,flexDirection:`column`,gap:t,...r?.style},children:e.map((e,t)=>u(E,{value:{column:i,position:t},children:e},`Masonry__Column_Child_${c}_${t}`))},`Masonry__Column_${c}_${i}`))})};var k=O;export{k as default,T as useMasonry,D as useMasonryItem};\n//# sourceMappingURL=index.js.map"],"names":["d","f","s","a","p","t","n","l","i","r","m","h","g","e","_","v","y","b","x","c","S","C","w","T","E","O","o","u","k"],"mappings":";;AAA2N,MAAMA,IAAE,OAAO,SAAO,KAAIC,IAAED,IAAEE,IAAEC,GAAEC,IAAE,CAAC,IAAE,OAAK;AAAC,MAAG,CAACC,GAAEC,CAAC,IAAEC,EAAEP,IAAE,OAAO,aAAW,CAAC,GAAEQ,IAAEC,EAAE,MAAI;AAAC,IAAAH,EAAE,OAAO,UAAU;AAAA,EAAC,GAAE,CAAA,CAAE;AAAE,SAAOH,EAAE,OAAK,KAAG,OAAO,iBAAiB,UAASK,CAAC,GAA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;AAAC,QAAIV,IAAEY,EAAEb,CAAC;AAAE,WAAOK,EAAE,QAAQR,GAAE,CAACQ,GAAER,MAAI;AAACC,MAAAA,EAAEO,CAAC,KAAGJ,EAAEJ,IAAEG,CAAC,EAAE,KAAKK,CAAC;AAAA,IAAC,CAAC,GAAEJ;AAAA,EAAC,GAAE,CAACD,GAAEH,CAAC,CAAC;AAAU;AAAK,IAACkB,IAAED;AAAO,MAACE,IAAEnB,EAAE,EAAC,QAAO,GAAE,UAAS,EAAC,CAAC,GAAaoB,IAAE,OAAG;AAAC,MAAG,EAAC,KAAIpB,GAAE,IAAGC,IAAE,OAAM,aAAYG,GAAE,SAAQD,GAAE,KAAIL,GAAE,GAAGD,EAAC,IAAE,GAAEiB,IAAEO,EAAG,GAACnB,IAAEgB,EAAE,EAAE,UAASf,CAAC;AAAE,SAAOmB,EAAAA,IAAErB,GAAE,EAAC,GAAGJ,GAAE,mBAAkB,WAAWiB,CAAC,IAAG,OAAM,EAAC,SAAQ,QAAO,KAAId,GAAE,GAAGH,EAAE,MAAK,GAAE,KAAIC,GAAE,UAASI,EAAE,IAAI,CAACM,GAAE,MAAIc,MAAErB,GAAE,EAAC,uBAAsB,IAAE,GAAE,GAAGG,GAAE,OAAM,EAAC,SAAQ,QAAO,MAAK,GAAE,eAAc,UAAS,KAAIJ,GAAE,GAAGI,KAAA,gBAAAA,EAAG,MAAK,GAAE,UAASI,EAAE,IAAI,CAACA,GAAER,MAAIsB,EAAAA,IAAEH,GAAE,EAAC,OAAM,EAAC,QAAO,GAAE,UAASnB,EAAC,GAAE,UAASQ,EAAC,GAAE,yBAAyBM,CAAC,IAAId,CAAC,EAAE,CAAC,EAAC,GAAE,mBAAmBc,CAAC,IAAI,CAAC,EAAE,CAAC,EAAC,CAAC;AAAC;AAAK,IAACS,IAAEH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es441.js","sources":["../node_modules/luxon/src/impl/english.js"],"sourcesContent":["import * as Formats from \"./formats.js\";\nimport { pick } from \"./util.js\";\n\nfunction stringify(obj) {\n return JSON.stringify(obj, Object.keys(obj).sort());\n}\n\n/**\n * @private\n */\n\nexport const monthsLong = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n];\n\nexport const monthsShort = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n];\n\nexport const monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nexport function months(length) {\n switch (length) {\n case \"narrow\":\n return [...monthsNarrow];\n case \"short\":\n return [...monthsShort];\n case \"long\":\n return [...monthsLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\n\nexport const weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n];\n\nexport const weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nexport const weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nexport function weekdays(length) {\n switch (length) {\n case \"narrow\":\n return [...weekdaysNarrow];\n case \"short\":\n return [...weekdaysShort];\n case \"long\":\n return [...weekdaysLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\n\nexport const meridiems = [\"AM\", \"PM\"];\n\nexport const erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nexport const erasShort = [\"BC\", \"AD\"];\n\nexport const erasNarrow = [\"B\", \"A\"];\n\nexport function eras(length) {\n switch (length) {\n case \"narrow\":\n return [...erasNarrow];\n case \"short\":\n return [...erasShort];\n case \"long\":\n return [...erasLong];\n default:\n return null;\n }\n}\n\nexport function meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nexport function weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nexport function monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nexport function eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nexport function formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"],\n };\n\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n default: // fall through\n }\n }\n\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow\n ? singular\n ? lilUnits[1]\n : lilUnits[2] || lilUnits[1]\n : singular\n ? units[unit][0]\n : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nexport function formatString(knownFormat) {\n // these all have the offsets removed because we don't have access to them\n // without all the intl stuff this is backfilling\n const filtered = pick(knownFormat, [\n \"weekday\",\n \"era\",\n \"year\",\n \"month\",\n \"day\",\n \"hour\",\n \"minute\",\n \"second\",\n \"timeZoneName\",\n \"hourCycle\",\n ]),\n key = stringify(filtered),\n dateTimeHuge = \"EEEE, LLLL d, yyyy, h:mm a\";\n switch (key) {\n case stringify(Formats.DATE_SHORT):\n return \"M/d/yyyy\";\n case stringify(Formats.DATE_MED):\n return \"LLL d, yyyy\";\n case stringify(Formats.DATE_MED_WITH_WEEKDAY):\n return \"EEE, LLL d, yyyy\";\n case stringify(Formats.DATE_FULL):\n return \"LLLL d, yyyy\";\n case stringify(Formats.DATE_HUGE):\n return \"EEEE, LLLL d, yyyy\";\n case stringify(Formats.TIME_SIMPLE):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_SECONDS):\n return \"h:mm:ss a\";\n case stringify(Formats.TIME_WITH_SHORT_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_WITH_LONG_OFFSET):\n return \"h:mm a\";\n case stringify(Formats.TIME_24_SIMPLE):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_SECONDS):\n return \"HH:mm:ss\";\n case stringify(Formats.TIME_24_WITH_SHORT_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.TIME_24_WITH_LONG_OFFSET):\n return \"HH:mm\";\n case stringify(Formats.DATETIME_SHORT):\n return \"M/d/yyyy, h:mm a\";\n case stringify(Formats.DATETIME_MED):\n return \"LLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL):\n return \"LLLL d, yyyy, h:mm a\";\n case stringify(Formats.DATETIME_HUGE):\n return dateTimeHuge;\n case stringify(Formats.DATETIME_SHORT_WITH_SECONDS):\n return \"M/d/yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_SECONDS):\n return \"LLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_MED_WITH_WEEKDAY):\n return \"EEE, d LLL yyyy, h:mm a\";\n case stringify(Formats.DATETIME_FULL_WITH_SECONDS):\n return \"LLLL d, yyyy, h:mm:ss a\";\n case stringify(Formats.DATETIME_HUGE_WITH_SECONDS):\n return \"EEEE, LLLL d, yyyy, h:mm:ss a\";\n default:\n return dateTimeHuge;\n }\n}\n"],"names":["monthsLong","monthsShort","monthsNarrow","months","length","weekdaysLong","weekdaysShort","weekdaysNarrow","weekdays","meridiems","erasLong","erasShort","erasNarrow","eras","meridiemForDateTime","dt","weekdayForDateTime","monthForDateTime","eraForDateTime","formatRelativeTime","unit","count","numeric","narrow","units","lastable","isDay","isInPast","fmtValue","singular","lilUnits","fmtUnit"],"mappings":";;AAWY,MAACA,IAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAc;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAe,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AAEhF,SAASC,EAAOC,GAAQ;AAC7B,UAAQA,GAAM;AAAA,IACZ,KAAK;AACH,aAAO,CAAC,GAAGF,CAAY;AAAA,IACzB,KAAK;AACH,aAAO,CAAC,GAAGD,CAAW;AAAA,IACxB,KAAK;AACH,aAAO,CAAC,GAAGD,CAAU;AAAA,IACvB,KAAK;AACH,aAAO,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,MAAM,MAAM,IAAI;AAAA,IACvE,KAAK;AACH,aAAO,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,IAAI;AAAA,IAChF;AACE,aAAO;AAAA,EACb;AACA;AAEY,MAACK,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